@webtides/element-js 0.7.4 → 1.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/docs/README.md +174 -0
- package/docs/concepts/classes.md +167 -0
- package/docs/concepts/hierarchy.md +61 -0
- package/docs/concepts/lifecycle.md +45 -0
- package/docs/concepts/reactivity.md +14 -0
- package/docs/features/computed-properties.md +28 -0
- package/docs/features/dependency-injection-context-protocol.md +132 -0
- package/docs/features/events.md +155 -0
- package/docs/features/global-styles.md +131 -0
- package/docs/features/methods.md +34 -0
- package/docs/features/properties.md +56 -0
- package/docs/features/refs.md +47 -0
- package/docs/features/renderless.md +70 -0
- package/docs/features/store.md +143 -0
- package/docs/features/styles.md +169 -0
- package/docs/features/templates.md +308 -0
- package/docs/features/watch.md +54 -0
- package/docs/getting-started/upgrade-to-v1.md +243 -0
- package/docs/guide/guide.md +112 -0
- package/index.js +9 -2
- package/package.json +19 -27
- package/src/BaseElement.js +176 -86
- package/src/StyledElement.js +66 -55
- package/src/TemplateElement.js +34 -8
- package/src/dom-parts/AttributePart.js +167 -0
- package/src/dom-parts/ChildNodePart.js +329 -0
- package/src/dom-parts/NodePart.js +38 -0
- package/src/dom-parts/Part.js +12 -0
- package/src/dom-parts/TemplatePart.js +134 -0
- package/src/dom-parts/TemplateResult.js +342 -0
- package/src/dom-parts/directives.js +111 -0
- package/src/dom-parts/html.js +12 -0
- package/src/dom-parts/render.js +10 -0
- package/src/util/AttributeParser.js +62 -29
- package/src/util/DOMHelper.js +253 -5
- package/src/util/Directive.js +42 -0
- package/src/util/GlobalStylesStore.js +66 -0
- package/src/util/SerializeStateHelper.js +103 -0
- package/src/util/Store.js +92 -9
- package/src/util/defineElement.js +2 -2
- package/src/util/toString.js +2 -2
- package/CHANGELOG.md +0 -154
- package/dist/index.js +0 -1673
- package/dist/index.js.map +0 -7
- package/src/renderer/vanilla/TemplateElement.js +0 -50
- package/src/renderer/vanilla/index.js +0 -18
- package/src/renderer/vanilla/util/directives.js +0 -78
- package/src/renderer/vanilla/util/html.js +0 -65
- package/src/renderer/vanilla/util/render.js +0 -149
- package/src/util/i18n.js +0 -20
package/CHANGELOG.md
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
|
-
|
|
7
|
-
<!--
|
|
8
|
-
PRs should document their user-visible changes (if any) in the
|
|
9
|
-
Unreleased section, uncommenting the header as necessary.
|
|
10
|
-
-->
|
|
11
|
-
|
|
12
|
-
<!-- ## Unreleased -->
|
|
13
|
-
<!-- ### Added -->
|
|
14
|
-
<!-- ### Changed -->
|
|
15
|
-
<!-- ### Removed -->
|
|
16
|
-
<!-- ### Fixed -->
|
|
17
|
-
|
|
18
|
-
## [0.7.4] - 2023-11-24
|
|
19
|
-
|
|
20
|
-
### Added
|
|
21
|
-
* storeception (reactive store properties in parent stores)
|
|
22
|
-
* context injection in shadow elements requests travel though shadow roots
|
|
23
|
-
* defer element connection (disables client side code until called manually)
|
|
24
|
-
|
|
25
|
-
### Fixed
|
|
26
|
-
* late context injection if parent mounts after child (loading order)
|
|
27
|
-
* stores updating elements that want to be updated
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [0.7.3] - 2023-03-07
|
|
31
|
-
|
|
32
|
-
### Fixed
|
|
33
|
-
* last release was tagged wrong
|
|
34
|
-
|
|
35
|
-
## [0.7.2] - 2023-03-03
|
|
36
|
-
|
|
37
|
-
### Fixed
|
|
38
|
-
* watcher callbacks for injected stores
|
|
39
|
-
|
|
40
|
-
## [0.7.1] - 2023-03-03
|
|
41
|
-
|
|
42
|
-
### Added
|
|
43
|
-
* Elements are now able to watch Stores
|
|
44
|
-
|
|
45
|
-
### Fixed
|
|
46
|
-
* Injection of falsy values
|
|
47
|
-
|
|
48
|
-
## [0.7.0] - 2023-02-13
|
|
49
|
-
|
|
50
|
-
### Added
|
|
51
|
-
* Dependency Injection via Context Protocol 💉
|
|
52
|
-
* Provide reactive Properties or entire Stores via: provideProperties() { return { name : value}}
|
|
53
|
-
* Inject / Request them via injectProperties() { return { name : 'defaultValue'}}
|
|
54
|
-
|
|
55
|
-
### Changed
|
|
56
|
-
* docs structure
|
|
57
|
-
|
|
58
|
-
### Fixed
|
|
59
|
-
* Cannot re-render slotted light dom when using the vanilla renderer https://github.com/webtides/element-js/issues/76
|
|
60
|
-
* adds Vanilla Renderer Tests
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
## [0.6.2] - 2022-11-18
|
|
64
|
-
|
|
65
|
-
### FIXED
|
|
66
|
-
* Store always switching to singleProperty Mode if constructed without any arguments.
|
|
67
|
-
|
|
68
|
-
## [0.6.1] - 2022-11-18
|
|
69
|
-
|
|
70
|
-
### ADDED
|
|
71
|
-
* Store watch() map to control internal store state scope
|
|
72
|
-
|
|
73
|
-
## [0.6.0] - 2022-11-17
|
|
74
|
-
|
|
75
|
-
### ADDED
|
|
76
|
-
* StoreProperty for shared application state
|
|
77
|
-
* Directives for Vanilla Renderer
|
|
78
|
-
|
|
79
|
-
## [0.5.0] - 2022-09-13
|
|
80
|
-
|
|
81
|
-
### Changed
|
|
82
|
-
* improved the performance of the vanilla-renderer
|
|
83
|
-
|
|
84
|
-
### Removed
|
|
85
|
-
* setting attributes as properties during dom diffing for the vanilla renderer. This is potentially a **breaking** change if you used attributes with the "." (dot) notation
|
|
86
|
-
|
|
87
|
-
## [0.4.3] - 2022-07-06
|
|
88
|
-
|
|
89
|
-
### ADDED
|
|
90
|
-
* parse option to propertyOptions that can be either a boolean OR a function for custom parsing
|
|
91
|
-
* enhance reflect option in propertyOptions that it can also be a function for custom reflection
|
|
92
|
-
|
|
93
|
-
## [0.4.2] - 2022-02-03
|
|
94
|
-
|
|
95
|
-
### Fixed
|
|
96
|
-
* vanilla-renderer: fixes attribute comparsion
|
|
97
|
-
|
|
98
|
-
## [0.4.1] - 2022-02-01
|
|
99
|
-
|
|
100
|
-
### Fixed
|
|
101
|
-
* refs="id[]" indexing keys not nodes *rolleyes*
|
|
102
|
-
|
|
103
|
-
### Added
|
|
104
|
-
* refs="id[]" aka possibbility to refrence a list of nodes to the $refs map.
|
|
105
|
-
|
|
106
|
-
## [0.4.0] - 2022-01-28
|
|
107
|
-
|
|
108
|
-
### Added
|
|
109
|
-
* a "vanilla" renderer with support for hydration and no dependencies
|
|
110
|
-
|
|
111
|
-
### Changed
|
|
112
|
-
* uses new @web/test-runner isntead of karma (#27)
|
|
113
|
-
|
|
114
|
-
## [0.3.3] - 2021-09-22
|
|
115
|
-
|
|
116
|
-
### Added
|
|
117
|
-
* optional complex event callback notation to support addEventListener options (i.E. for passive Event Listeners )
|
|
118
|
-
* Example: {listener: () => {}, options: { passive: true } }
|
|
119
|
-
* docs
|
|
120
|
-
* tests
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
## [0.3.2] - 2021-03-09
|
|
124
|
-
|
|
125
|
-
### Added
|
|
126
|
-
* bundled version of `element-js` to use from a CDN and be able to prototype in tools like CodePen etc.
|
|
127
|
-
|
|
128
|
-
## [0.3.1] - 2020-12-08
|
|
129
|
-
|
|
130
|
-
### Fixed
|
|
131
|
-
* i18n fallback values
|
|
132
|
-
|
|
133
|
-
### Added
|
|
134
|
-
* i18n tests
|
|
135
|
-
|
|
136
|
-
## [0.3.0] - 2020-07-27
|
|
137
|
-
|
|
138
|
-
### Added
|
|
139
|
-
* first batch/draft of the documentation
|
|
140
|
-
* property/attribute reflection via constructor options (see the [Documentation](/docs/README.md#propertyoptions) for more info)
|
|
141
|
-
* mutationObserverOptions to enable observing subtree mutations (see the [Documentation](/docs/README.md#mutationobserveroptions) for more info)
|
|
142
|
-
|
|
143
|
-
### Removed
|
|
144
|
-
* `childListUpdate` constructor option has been deprecated and will be removed before `1.0`
|
|
145
|
-
|
|
146
|
-
## [0.2.0] - 2020-07-01
|
|
147
|
-
|
|
148
|
-
### Changed
|
|
149
|
-
* uses shady-render instead of render from `lit-html` for rendering templates to be compatible with the shady-css polyfill
|
|
150
|
-
* refactored and simplified `StyledElement`s handling/loading of style sheets
|
|
151
|
-
|
|
152
|
-
## [0.1.0] - 2020-06-26
|
|
153
|
-
|
|
154
|
-
* initial release
|