Commit Graph
100 Commits
Author SHA1 Message Date
MattMo a171b3da4d Added value support for files, you can't set the value to a file, but you can set it to null to clear the current file and reflect to get the file value. Fixed html template deconstructing by making it remove the elements it created. 2023-04-25 06:46:34 -07:00
MattMo 83e53ed4c3 Improved ignite template deconstruct and construct functions. Simplified IgniteObject constructor. 2023-04-24 13:39:50 -07:00
MattMo 018179ec56 Tweaked doc. 2023-04-20 08:23:35 -07:00
MattMo fb99e9d240 Improved documentation further. 2023-04-20 08:22:43 -07:00
MattMo 0a6af3ad98 Improving documentation 2023-04-20 07:55:42 -07:00
MattMo 4f164766bb Updating to latest jsdoc 2023-04-20 07:33:44 -07:00
MattMo 9a84f9a07c Working on jsdoc readme 2023-04-20 06:59:47 -07:00
MattMo 5d3cf6e0a7 Added readme and remove gitignore. 2023-04-20 06:35:53 -07:00
MattMo 4203884aff Added more documentation. Fixed bugs with pagination to better support push, and slice. 2023-04-18 15:38:49 -07:00
MattMo 3383001c3a Added more documentation. Fixed a few bugs and improved the code. Added a new pager template that can construct a pager used for pagination. 2023-04-17 12:09:21 -07:00
MattMo 1ccd66910c Fixed a bug where getOldPropertyValues didn't check for the same instance of a property but rather their value. Added nav template. Fixed pagination so that the list can be null, though it's not ideal. 2023-04-15 08:27:11 -07:00
MattMo 485f8ae2bd Cleaned up code and improved documentation. Added new OnSeen event that fires the first time the element is seen and stops firing after that. 2023-02-05 19:04:08 -08:00
MattMo 7ba146443f Fixed a bug with lists where elements would be in the wrong order in the DOM. 2023-01-31 19:14:44 -08:00
MattMo edfac3782f Added readonly extension for input elements. 2022-12-14 07:33:04 -08:00
MattMo eb3ed065a2 Added code to select the first option in a select element if the new value is null or empty. 2022-12-12 21:10:55 -08:00
MattMo 84464863c7 Removed old list refresh code. 2022-10-28 08:06:50 -07:00
MattMo 58f1ceb512 Renamed variable. 2022-10-28 08:02:37 -07:00
MattMo 118e4367df Fixed a bug with IgniteProperty toString. Added more documentation. Ready callbacks now support regular functions or callbacks. 2022-10-24 08:39:41 -07:00
MattMo 73bf9812dd Added IgniteProperty create method to construct properties onto any object in the same way they are done for components. 2022-09-13 21:10:42 -07:00
MattMo fca9af5f73 Renamed IgniteRenderingContext to IgniteRendering. Added a new IgniteHtml class which contains function to register elements for rendering and a global render function to start the rendering process. Changed elements css style class name to be more meaningful. 2022-08-26 08:34:20 -07:00
MattMo 9af84da6a0 Improved the pull down refresh code and logic. 2022-06-30 09:19:27 -07:00
MattMo b981d8f7c1 InnerText now supports functions. 2022-06-21 22:24:26 -07:00
MattMo 6c9ecaf37a Attribute extension now allows functions to be used for the value for more dynamic code. 2022-06-14 10:38:13 -07:00
MattMo 3b497beb96 Improved pull to refresh on higher dpis. 2022-06-01 08:40:24 -07:00
MattMo 133b888764 Improving the feel of the swipe to refresh. 2022-06-01 07:58:55 -07:00
MattMo 61f8628f9d Made it so that custom elements for the refresh placeholder and prepended to the parent. 2022-05-25 08:20:48 -07:00
MattMo 9a8705b715 Fixed a bug where the list refresh was being activated when the scroll top wasn't 0. 2022-05-24 08:01:28 -07:00
MattMo b805dc4bca Added more documentation. Added new refresh mechanism to lists. 2022-05-23 09:12:23 -07:00
MattMo 6cc18174f1 Added role attribute helper. 2022-05-16 10:19:27 -07:00
MattMo fea4a2684d Fixed missing doc on onPaste. 2022-05-04 09:02:59 -07:00
MattMo 52bd743b45 Removed await from ready. 2022-04-04 22:54:33 -07:00
MattMo 5a1be0a368 Adding extra code to ensure more than one ready timer runs at a time. Exposed IgniteCallback to window. 2022-03-26 02:11:27 -07:00
MattMo e36ee1d42c Fixed a type in the visible function naming. 2022-03-06 22:57:29 -08:00
MattMo 2a22c3a89f Made placeholder respect textarea's. 2022-01-26 01:48:42 -08:00
MattMo 3bf10153d4 Updated docs. Added live option to value, if true value changes are reflected as they happen. Added onInput event handler helper. 2021-12-30 18:47:55 -08:00
MattMo b87ea24fe6 Added more documentation to IgniteElement. Fixed ref function on IgniteTemplates accepting non function parameters. 2021-12-28 22:32:19 -08:00
MattMo 645b0520b0 Added prop shortcut to property. 2021-12-16 11:53:19 -08:00
MattMo 1fc825d990 Added async ability to ignite callback and async to ready to help UI not freeze up. 2021-12-06 09:32:31 -08:00
MattMo 02b7824ce0 Updated docs for innerText. 2021-11-27 14:50:09 -08:00
MattMo 644241b486 Added min, max, step helper attribute functions. 2021-11-24 23:23:10 -08:00
MattMo ca957f1703 Style template now uses all available callbacks. 2021-11-09 21:11:41 -08:00
MattMo f46e4e181c On list change list templates now reset themselves so any scroll positions get reset as well. 2021-10-27 11:26:19 -07:00
MattMo ba3f7e8095 Placeholder can now be used on regular elements to trigger a placeholder class to be added. List forEach now passes the list count with better documentation. 2021-10-26 00:14:30 -07:00
MattMo af0348c861 Cleaned up onAttributeChanged and attributes can now use arrays like styles. 2021-10-13 07:46:40 -07:00
MattMo 59bb836bac Added innerText and Text template to help secure apps from code injection or other bad behavior. 2021-10-06 08:08:02 -07:00
MattMo 31503e62d1 Added target attribute support. Ignite Object now supports setProperties. Added null check for props. Fixed some documentation wording. 2021-09-22 09:43:18 -07:00
MattMo 46ff7743a1 Adding more documentation to make it easier when writing extensions. 2021-08-24 23:59:38 -07:00
MattMo 2d99f31bd4 Added invisible and visible functions to ignite templates. 2021-08-18 10:16:58 -07:00
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
MattMo a22d5cc6aa Spelling and minor variable name tweak 2020-08-21 22:14:57 -07:00
MattMo 138513ce2b Added onClick and onEvent shorthand event handlers to reduce duplicate code. 2020-08-21 22:13:06 -07:00