Commit Graph

51 Commits

Author SHA1 Message Date
9b1ce3faca
chore: remove _initialize() function
All checks were successful
Quality Check & Publish / quality (push) Successful in 22s
Quality Check & Publish / quality-failed-webhook (push) Has been skipped
Quality Check & Publish / publish (push) Successful in 26s
Quality Check & Publish / publish-failed-webhook (push) Has been skipped
2025-05-21 21:39:40 +10:00
c2b5300756
chore: linting
Some checks failed
Quality Check & Publish / quality (push) Failing after 27s
Quality Check & Publish / quality-failed-webhook (push) Has been skipped
Quality Check & Publish / publish (push) Has been skipped
Quality Check & Publish / publish-failed-webhook (push) Has been skipped
2025-05-21 21:36:32 +10:00
27be016d29
fix: statesListener issue
Some checks failed
Quality Check & Publish / quality (push) Failing after 27s
Quality Check & Publish / quality-failed-webhook (push) Has been skipped
Quality Check & Publish / publish (push) Has been skipped
Quality Check & Publish / publish-failed-webhook (push) Has been skipped
2025-05-21 21:35:17 +10:00
0a971f16d9
refactor: split initState function into indipendent file
Some checks failed
Quality Check & Publish / quality (push) Failing after 19s
Quality Check & Publish / quality-failed-webhook (push) Has been skipped
Quality Check & Publish / publish (push) Has been skipped
Quality Check & Publish / publish-failed-webhook (push) Has been skipped
2025-05-21 21:27:11 +10:00
2c04be8607
chore: modify the function calling
All checks were successful
Quality Check & Publish / quality (push) Successful in 23s
Quality Check & Publish / quality-failed-webhook (push) Has been skipped
Quality Check & Publish / publish (push) Successful in 26s
Quality Check & Publish / publish-failed-webhook (push) Has been skipped
2025-05-21 20:57:24 +10:00
de02d090e8
refactor: fix issue 2025-05-21 16:33:01 +10:00
fe046f4500
refactor: move arrow function handler logic to a dedicated utility function
Some checks failed
Publish to npm / quality (push) Failing after 20s
Publish to npm / publish (push) Has been skipped
2025-05-21 16:07:42 +10:00
8f6b4a6cd9
refactor: remove list rendering setup from component options and related utility
All checks were successful
Publish to npm / quality (push) Successful in 19s
Publish to npm / publish (push) Successful in 24s
2025-05-21 16:00:23 +10:00
3b344af52d
refactor: move ListRenderingContext interface to types.d.ts and clean up processTemplateMarco.ts
All checks were successful
Publish to npm / quality (push) Successful in 22s
Publish to npm / publish (push) Successful in 26s
2025-05-21 15:55:12 +10:00
8f80a4842e
chore: process list rendering feature code into independent file 2025-05-21 15:50:25 +10:00
956bdbc6f5
chore: refactor condition rendering logic by moving it to a dedicated function and updating related options
All checks were successful
Publish to npm / quality (push) Successful in 22s
Publish to npm / publish (push) Successful in 24s
2025-05-21 14:43:06 +10:00
15a63968ea
chore: split two-way binding logic into another file
All checks were successful
Publish to npm / quality (push) Successful in 20s
Publish to npm / publish (push) Successful in 24s
2025-05-21 14:36:30 +10:00
9ea14fc2b9
refactor: improve formatting and readability in triggerDomUpdates and processTemplateMacros
All checks were successful
Publish to npm / quality (push) Successful in 20s
Publish to npm / publish (push) Successful in 25s
2025-05-21 14:28:11 +10:00
4aed034100
feat: add triggerDomUpdates utility and refactor DOM update logic in main component
Some checks failed
Publish to npm / quality (push) Failing after 19s
Publish to npm / publish (push) Has been skipped
2025-05-21 14:24:11 +10:00
df92e93e7c
feat: refactor template processing by consolidating utility functions and adding processTemplateMacros 2025-05-21 14:15:53 +10:00
1b8b61a8d9
feat: implement parseTemplate utility and refactor component initialization 2025-05-21 14:04:09 +10:00
5344a58e10
refactor: move CustomElement interface to types.d.ts
All checks were successful
Publish to npm / quality (push) Successful in 22s
Publish to npm / publish (push) Successful in 31s
2025-05-21 13:57:28 +10:00
a8b1a1512d
chore: linting the files 2025-05-16 19:48:50 +10:00
fcbee7c0b2
fix: replace “any” type declaration with “unknown” or other specific type 2025-05-16 19:35:06 +10:00
b1dc96783a
fix: improve readability by simplifying conditional statements and replacing forEach with for-of loops 2025-05-16 16:51:52 +10:00
aae4a85a49
fix: enhance readability by replacing forEach with for-of loops in rendering logic 2025-05-16 16:19:45 +10:00
75a37043b7
fix: optimize iteration methods and improve readability in state management 2025-05-16 16:11:18 +10:00
0e22cbf130
fix: streamline state retrieval logic by removing unnecessary else blocks 2025-05-16 16:04:09 +10:00
ba82252dd7
fix: simplify state update event triggering with optional chaining 2025-05-16 16:03:15 +10:00
0ce566f502
fix: refine type definitions and improve loop constructs for better clarity 2025-05-16 16:02:26 +10:00
4def8050a1
feat: add biome configuration and update dependencies
- Introduced a new `biome.json` configuration file for Biome setup.
- Added `@biomejs/biome` as a development dependency in `package.json` and `package-lock.json`.
- Updated `main.ts` to improve code formatting and readability by adjusting indentation and line breaks.
- Enhanced state management and event handling within the component to ensure better performance and maintainability.
2025-05-16 15:45:12 +10:00
b420684b3f
Enhance list rendering: add error handling for placeholder's parent node and improve DOM item detachment 2025-05-15 15:49:12 +10:00
8257f64a76
Refactor state management: streamline dependency relationship setup for state paths in text node updates 2025-05-15 15:16:16 +10:00
77229cd4b0
Refactor ComponentOptions: replace events with funcs for event handling and enhance getState method for nested state retrieval 2025-05-15 15:04:01 +10:00
1afae00c45
Refactor %for macro handling: dynamically bind key attribute and remove original %key attribute 2025-05-15 14:30:37 +10:00
719853d2d1
Enhance %for macro handling: optimize DOM updates by using a document fragment for list rendering 2025-05-15 14:26:33 +10:00
7ca68b88a4
Enhance %for macro handling: improve collection evaluation and item context processing for nested lists 2025-05-15 14:18:20 +10:00
42aa5a1d75
Refactor %for macro handling: improve list rendering logic and key expression evaluation 2025-05-15 13:52:44 +10:00
89bb2ea27d
Fix typos in macro handling comments and method names for consistency 2025-05-15 13:51:57 +10:00
59e5124c14
Refactor %for macro handling: remove key attribute requirement and streamline list rendering logic 2025-05-15 13:48:02 +10:00
7f818b5324
Enhance macro handling: implement %for macro with key attribute validation and improve list rendering logic 2025-05-15 13:45:43 +10:00
6f3d40754a
Enhance condition rendering: defer processing of %if directives until after initial DOM traversal 2025-05-15 12:40:06 +10:00
4a7737c74f
Enhance condition rendering: trigger updates for %if macros and improve setup logic 2025-05-15 10:23:41 +10:00
723110efab
Remove debug log from two-way binding setup in CustomElement 2025-05-15 10:09:07 +10:00
943678b4f3
Enhance template processing: implement macro handling for condition rendering and two-way data binding 2025-05-15 10:07:35 +10:00
45af436648
Refactor attribute binding logic: streamline detection of bindings and improve handling of non-standard attributes 2025-05-15 09:14:24 +10:00
ae48c89291
Enhance arrow function handler: improve syntax validation and parameter formatting for better error handling 2025-05-14 22:08:50 +10:00
e9ddbcdf47
Refactor event handler setup: improve arrow function and function call handling, enhance error logging 2025-05-14 21:57:38 +10:00
c44c9fc2c0
Add event handling support in ComponentOptions and implement event binding logic in CustomElement 2025-05-14 21:54:17 +10:00
841f02bb38
Enhance state management in CustomElement: add state listeners, improve DOM update logic, and implement text and attribute binding mechanisms 2025-05-14 20:48:30 +10:00
b9cb3f455c
Add statesListeners to ComponentOptions and trigger state update events in setState 2025-05-14 16:25:51 +10:00
9d62c64b0f
Refactor state management in CustomElement: simplify setState and getState methods, update keyPath parameter naming for consistency 2025-05-14 16:13:52 +10:00
0aee6488d2
Refactor CustomElement implementation: update interface for onMount and onUnmount, enhance setState logic, and rename class to CustomElementImpl 2025-05-14 16:02:50 +10:00
cbd2c67d2d
Add state management to CustomElement and update ComponentOptions interface 2025-05-14 15:35:35 +10:00
3a05316522
Remove commented code and improve clarity in template parsing logic 2025-05-14 15:25:30 +10:00