Commit Graph

  • 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. Matt Mo 2021-03-09 13:06:29 -08:00
  • 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. Matt Mo 2021-02-12 18:53:09 -08:00
  • 4bbdf4865d Modified InnerHTMLChanged to support array changes. Matt Mo 2021-02-03 10:15:04 -08:00
  • 2c9879a937 Added new disabled function that allows easy control of disabling the element a template constructs. Matt Mo 2021-02-03 10:00:26 -08:00
  • 815b6d99bf Class function now attaches to property array changes to allow the use of a converter with array based properties. Matt Mo 2021-01-10 23:09:50 -08:00
  • 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. Matt Mo 2021-01-09 16:24:24 -08:00
  • e58e6e58e4 Added a template for line elements. Matt Mo 2021-01-08 02:22:29 -08:00
  • ea14328eb4 Added g and path elements to ignite template. Matt Mo 2021-01-06 23:42:55 -08:00
  • 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. Matt Mo 2021-01-06 08:51:24 -08:00
  • 5e276a0ddb Renamed connected to elementConnected in order to avoid property naming conflicts. Matt Mo 2021-01-05 21:09:12 -08:00
  • 9ca2f9e63d Added for & checked attribute template functions. Added form element template. Matt Mo 2021-01-05 10:29:14 -08:00
  • 9a12fbfc28 Simplifying ignite html repo and adding latest changes. Matt Mo 2020-12-09 20:41:11 -08:00
  • 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. Matt Mo 2020-11-09 09:38:00 -08:00
  • 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. Matt Mo 2020-10-26 15:30:11 -07:00
  • 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. Matt Mo 2020-10-20 13:18:26 -07:00
  • 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. Matt Mo 2020-10-07 08:30:03 -07:00
  • b49a513831 Added multi property support classes and cleaned up some code. Matt Mo 2020-09-29 14:28:27 -07:00
  • a05ce20610 Fixed a few bugs and cleaned up code. Select elements now can have their value set correctly when using the value function. Matt Mo 2020-09-28 09:02:57 -07:00
  • 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. Matt Mo 2020-09-25 09:36:39 -07:00
  • 0fcb908941 Implemented a ready function that is only invoked once all ignite elements on a page are ready. Matt Mo 2020-09-11 07:57:37 -07:00
  • 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. Matt Mo 2020-09-09 08:24:18 -07:00
  • 3072bb2f7c Improved documentation, added placeholder function to shorten template code. Matt Mo 2020-09-01 08:50:11 -07:00
  • 52077d1797 Removed test console logging code from value function. Matt Mo 2020-09-01 08:29:45 -07:00
  • 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. Matt Mo 2020-08-31 22:11:19 -07:00
  • 9346e01bec Cleaned up code, added a new auto doc generator and documented code extensively. Matt Mo 2020-08-30 21:55:21 -07:00
  • 2da77f5177 Added converters for classes, styles, and attributes. Only one class can now be defined per function call but this is worth while trade. Matt Mo 2020-08-23 22:27:12 -07:00
  • c7529f1efc Adding null check for the properties getter. Matt Mo 2020-08-23 17:06:18 -07:00
  • 7c0dfd9f7f Removing dead code and cleaning up files. Matt Mo 2020-08-23 13:21:32 -07:00
  • 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. Matt Mo 2020-08-23 11:50:31 -07:00
  • 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. Matt Mo 2020-08-22 18:11:37 -07:00
  • 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. Matt Mo 2020-08-22 16:15:45 -07:00
  • a22d5cc6aa Spelling and minor variable name tweak Matt Mo 2020-08-21 22:14:57 -07:00
  • 138513ce2b Added onClick and onEvent shorthand event handlers to reduce duplicate code. Matt Mo 2020-08-21 22:13:06 -07:00
  • b0b9a83cc6 Added a rendering context which replaces the rendered flag on ignite elements so that properties won't return their value if we are rendering. This fixes an issue where lists would get messed up since they reconstruct whenever the list changes. Matt Mo 2020-08-21 21:42:10 -07:00
  • 057960db8a Added static css styling for templates via a styles property. Matt Mo 2020-08-11 13:45:54 -07:00
  • 1d13c50711 Added dynamic styling to templates via a style function, with this properties can be used to create styles that automatically update. Or you can use static style values. Matt Mo 2020-08-11 12:53:57 -07:00
  • 4e53913331 Dont store empty classes or events if they are null upon change. Matt Mo 2020-07-30 10:11:09 -07:00
  • bfca6d48e6 You can now have multiple callbacks for a single event, and we now pass back the template for any element we construct. Matt Mo 2020-07-30 09:58:47 -07:00
  • 68d301c16e Added events to templates so that we can use properties or functions and have them setup on the constructed element for us. Matt Mo 2020-07-30 08:32:44 -07:00
  • 8b98026a5a Added support for numbers being used as children, they now get wrapped automatically in a html template. Matt Mo 2020-07-29 14:03:52 -07:00
  • feac134353 Removed property template, made html template do the same thing and now it is automatically used if a property is added as a child. Strings now also use the html template. Added a check to warn if adding a child that is not supported. Matt Mo 2020-07-29 14:01:41 -07:00
  • 4f2d3aa63c Super legit change, properties now return their value after render, but during render they return themselves so that templates can be setup correctly. This allows natural use of properties without having to .value after render. This also supports resetProperties()! Matt Mo 2020-07-29 12:32:16 -07:00
  • 1d5c85ea9d Added a ref callback so that if the reference property changes we will automatically populate the property with the reference to our element. This is allows resetProperties to be used without losing references to elements. Matt Mo 2020-07-29 12:24:36 -07:00
  • 274e09a59b Moved properties over to a object model and added a resetProperties function that will reset properties to their default values. Fixed a few bugs and cleaned up the code a little more. Matt Mo 2020-07-29 11:21:02 -07:00
  • 374defdc82 Added a new ability to specify a slot for child elements of a IgniteElement to be placed in. Next up is a reconstruct method, which may or may not be possible, not sure. Matt Mo 2020-07-28 22:46:22 -07:00
  • 43962757f0 Added deconstruct functionality and cleanup code so that everything gets correctly cleaned up once a element is removed from the DOM. Added a new property template that allows properties to be used as content or html anywhere within a template's children. Next up is slot support. Matt Mo 2020-07-28 22:23:49 -07:00
  • 1adb844c97 Added ref functionality to get a ref from any template once it's created. Next up is property callback cleanup and disconnection upon element being removed. Matt Mo 2020-07-28 09:50:26 -07:00
  • b591a42370 Cleaned up code, added support for lists, classes, attributes, and more. Added more test code, everything appears to be working. More cleanup and testing is needed. Matt Mo 2020-07-28 09:04:04 -07:00
  • 8f9ade2dbd Fixed gulp script, it's now building and running the code with no issues. Matt Mo 2020-07-26 15:17:03 -07:00
  • 6bd8b7c3d4 Start of the ignite html project. Matt Mo 2020-07-26 15:10:12 -07:00