Commit Graph

69 Commits

Author SHA1 Message Date
MattMo 1bc054903c Added null check to props. 2021-08-11 10:46:44 -07:00
MattMo b353045019 Added a set properties function to IgniteElement to help populate an element's events quickly. 2021-08-11 10:46:00 -07:00
MattMo b4545c9dc5 Added footer and header templates. 2021-08-04 10:03:20 -07:00
MattMo 38e8b884a7 Added small element template. 2021-07-28 08:38:33 -07:00
MattMo a013bad19a List template now passes index of item to ForEach. 2021-07-21 09:36:55 -07:00
MattMo 0ae84fc73b InnerHtml now allows property arrays to be used. 2021-06-30 08:48:24 -07:00
MattMo 8259fdb9ab Adding doc comment 2021-06-10 00:01:35 -07:00
MattMo d6142ea250 Added IgniteObject to support full end to end properties. 2021-05-25 22:27:23 -07:00
MattMo 67b4bd60a0 Removing timeout from keyup, causing issues with value. 2021-05-11 22:32:46 -07:00
MattMo 1dae4ecece Value onKeyUp now gets reset if the value changed before the keyup event fired. 2021-05-05 03:09:13 -07:00
MattMo ad435e7098 Setting intersect observer to detect visibility and added delay. 2021-05-04 22:15:31 -07:00
MattMo 8b5a4b91ae Merge branch 'HEAD' 2021-05-04 14:14:33 -07:00
MattMo f290bc9c46 Added multiple resize observer support. Added intersect observer with multiple support. Added 3rd party constructors support. Added 3rd party destructors support. Added delay to keyup on value change. 2021-05-04 14:13:08 -07:00
MattMo 1041f1b290 Cleaned up template value function and it now automatically converts element value to a number if the type was set to number. 2021-04-18 12:49:17 -07:00
MattMo d3ae384634 Added variable function to be able to add variables to an ignite template. 2021-03-28 23:23:58 -07:00
MattMo f49aad478c Added Variables to ignite element. Added ability to create an IgniteProperty with a set of optional callbacks to create advanced components. 2021-03-28 20:34:35 -07:00
MattMo 92a5eb3384 Added list template reflect option which will remove items from the source list if the items element is removed from the DOM. Added Title template helper. Cleaned up some code as well. 2021-03-16 22:26:33 -07:00
MattMo 6986197339 Added new strong element to ignite template. 2021-03-10 08:56:14 -08:00
MattMo 653abb3aec Fixed a bug with newValue on the template. 2021-03-09 14:18:23 -08:00
MattMo 3eaf3b136a When passing a value to a template's element you can now use a function for the reflection. The value function now also supports radio checks. Cleaned up a few things as well. 2021-03-09 13:06:29 -08:00
MattMo e99d1e9051 Properties now change their value if an array is modified. Properties don't invoke any callbacks if the value hasn't actually changed. And a few other improvements. 2021-02-12 18:53:09 -08:00
MattMo 4bbdf4865d Modified InnerHTMLChanged to support array changes. 2021-02-03 10:15:04 -08:00
MattMo 2c9879a937 Added new disabled function that allows easy control of disabling the element a template constructs. 2021-02-03 10:00:26 -08:00
MattMo 815b6d99bf Class function now attaches to property array changes to allow the use of a converter with array based properties. 2021-01-10 23:09:50 -08:00
MattMo e398b61c08 Added uuid function to element class to easily allow generating uuid's. May move this later. Added reflect() option to reflect properties once changed via a function or another property. Added onResize function that adds a resize observer to the element constructed by a template and cleans it up nicely. Added onTouch event helper function. Modified reflect callback to allow calling functions or setting the value of a property. 2021-01-09 16:24:24 -08:00
MattMo e58e6e58e4 Added a template for line elements. 2021-01-08 02:22:29 -08:00
MattMo ea14328eb4 Added g and path elements to ignite template. 2021-01-06 23:42:55 -08:00
MattMo fb49e9ec35 Removed the on disconnected callback for elements since the only subscriber is the template and the template is already deconstructed by the element so there is no need to call it twice via the callback. 2021-01-06 08:51:24 -08:00
MattMo 5e276a0ddb Renamed connected to elementConnected in order to avoid property naming conflicts. 2021-01-05 21:09:12 -08:00
MattMo 9ca2f9e63d Added for & checked attribute template functions. Added form element template. 2021-01-05 10:29:14 -08:00
MattMo 9a12fbfc28 Simplifying ignite html repo and adding latest changes. 2020-12-09 20:41:11 -08:00
MattMo 00cd30eb54 Fixed a few bugs and added a init method to ignite elements that can be used to setup stuff before the element is created. 2020-11-09 09:38:00 -08:00
MattMo 3bee5614ab Ignite properties now try to keep the value as the same type as the original when a new value is set. Support for value() on contenteditable was added along with reflecting contenteditable values. 2020-10-26 15:30:11 -07:00
MattMo c172cb5599 Added pagination template and population template to help create pagination components. Allowed the use of non properties in property arrays for class, style ect. 2020-10-20 13:18:26 -07:00
MattMo 08f4f9006f Multiple bug fixes and improvements. Shift, Unshift, and Splice are now supported to do inline array modifications without losing the original array reference across elements. 2020-10-07 08:30:03 -07:00
MattMo b49a513831 Added multi property support classes and cleaned up some code. 2020-09-29 14:28:27 -07:00
MattMo a05ce20610 Fixed a few bugs and cleaned up code. Select elements now can have their value set correctly when using the value function. 2020-09-28 09:02:57 -07:00
MattMo 2d01b8fafb Many updates and improvements. For styles you can now combine two properties with a converter to get more custom styling updates. Cleaned up code and made a few things easier to use, also fixed a few bugs. 2020-09-25 09:36:39 -07:00
MattMo 0fcb908941 Implemented a ready function that is only invoked once all ignite elements on a page are ready. 2020-09-11 07:57:37 -07:00
MattMo 780f70188e Fixed a bug where the browser will call onConnected and onDisconnected for an IgniteElement if it is moved to another location in the DOM. The element instance is the same but it triggers a disconnect and then a connect, to combat this I added code to mitigate this and detect it. Slots now apply classes, styles, attributes to children in the slot. And a few other minor changes. 2020-09-09 08:24:18 -07:00
MattMo 3072bb2f7c Improved documentation, added placeholder function to shorten template code. 2020-09-01 08:50:11 -07:00
MattMo 52077d1797 Removed test console logging code from value function. 2020-09-01 08:29:45 -07:00
MattMo 2f3b7a9b28 Added multi class support to reduce the name of class function calls that have to be made. This also works for IgniteProperties. Added a few helper functions like src, name, id, type to help shorten template code. Added a new value function that can set the value of an input or checkbox and also reflect back the value if changed in the DOM back to the property passed if desired, very cool feature. 2020-08-31 22:11:19 -07:00
MattMo 9346e01bec Cleaned up code, added a new auto doc generator and documented code extensively. 2020-08-30 21:55:21 -07:00
MattMo 2da77f5177 Added converters for classes, styles, and attributes. Only one class can now be defined per function call but this is worth while trade. 2020-08-23 22:27:12 -07:00
MattMo c7529f1efc Adding null check for the properties getter. 2020-08-23 17:06:18 -07:00
MattMo 7c0dfd9f7f Removing dead code and cleaning up files. 2020-08-23 13:21:32 -07:00
MattMo f4ac568976 Cleaned up code and fixed an issue with the gulp file where dev was still minifying js. Added reflected properties support and fixed a few other issues. 2020-08-23 11:50:31 -07:00
MattMo d4df41e427 Simplified callbacks into a single class with a detach function option so we can use them generically. Patached arrays can have multiple on push/on pop callbacks and moved over to this new model. Needs more testing and cleanup. 2020-08-22 18:11:37 -07:00
MattMo 56530fc966 Ignite properties now patch lists to capture push/pop events so that when used in a list template the whole list doesn't have to be rerendered. Also cleaned up some code and moved things around. 2020-08-22 16:15:45 -07:00