Commit Graph

32 Commits

Author SHA1 Message Date
c2691d11d2 Add license 2025-05-15 06:34:13 +00:00
a36fd4a2f9
Add prepare script to package.json for build automation 2025-05-15 16:32:21 +10:00
5098c74c90
Update README: specify sample code context for a simple to-do app 2025-05-15 16:30:39 +10:00
2e198110cd
Update README: enhance usage instructions and add sample code for component integration 2025-05-15 16:30:23 +10:00
f577942298
Add initial README content: introduce Laterano framework 2025-05-15 16:15:27 +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
cd4d195bd4
Refactor component structure: move ComponentOptions to main.ts, update package.json, and remove unused files 2025-05-14 15:21:45 +10:00
5a1d8469d6
Add ComponentOptions type definition and update index.ts to use it 2025-05-14 10:19:10 +10:00
8fe77f3b9b
initial commit
with basic features of Laterano
2025-05-14 09:34:13 +10:00