typecomposer 0.1.46 → 0.1.49
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/{core → dist/core}/index.d.ts +0 -3
- package/{core → dist/core}/index.js +0 -3
- package/dist/core/index.js.map +1 -0
- package/{core → dist/core}/styles/index.d.ts +3 -3
- package/{core → dist/core}/styles/index.js +0 -8
- package/{core → dist/core}/styles/index.js.map +1 -1
- package/{global → dist/global}/index.d.ts +10 -4
- package/{global → dist/global}/index.js +387 -322
- package/dist/global/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/{index.d.ts → dist/index.js} +1 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -10
- package/styles/style.scss +2 -23
- package/typings/index.d.ts +58 -66
- package/core/app/Validate.d.ts +0 -61
- package/core/app/Validate.js +0 -2
- package/core/app/Validate.js.map +0 -1
- package/core/app/index.d.ts +0 -40
- package/core/app/index.js +0 -181
- package/core/app/index.js.map +0 -1
- package/core/components/AlertPanel.d.ts +0 -32
- package/core/components/AlertPanel.js +0 -75
- package/core/components/AlertPanel.js.map +0 -1
- package/core/components/AvatarPanel.d.ts +0 -21
- package/core/components/AvatarPanel.js +0 -62
- package/core/components/AvatarPanel.js.map +0 -1
- package/core/components/BorderPanel.d.ts +0 -28
- package/core/components/BorderPanel.js +0 -90
- package/core/components/BorderPanel.js.map +0 -1
- package/core/components/CardPanel.d.ts +0 -5
- package/core/components/CardPanel.js +0 -11
- package/core/components/CardPanel.js.map +0 -1
- package/core/components/CheckBox.d.ts +0 -36
- package/core/components/CheckBox.js +0 -109
- package/core/components/CheckBox.js.map +0 -1
- package/core/components/ColorPicker.d.ts +0 -10
- package/core/components/ColorPicker.js +0 -36
- package/core/components/ColorPicker.js.map +0 -1
- package/core/components/ContextMenu.d.ts +0 -16
- package/core/components/ContextMenu.js +0 -64
- package/core/components/ContextMenu.js.map +0 -1
- package/core/components/DialogPanel.d.ts +0 -15
- package/core/components/DialogPanel.js +0 -62
- package/core/components/DialogPanel.js.map +0 -1
- package/core/components/DropDown.d.ts +0 -54
- package/core/components/DropDown.js +0 -231
- package/core/components/DropDown.js.map +0 -1
- package/core/components/FlowPanel.d.ts +0 -11
- package/core/components/FlowPanel.js +0 -40
- package/core/components/FlowPanel.js.map +0 -1
- package/core/components/ForEach.d.ts +0 -11
- package/core/components/ForEach.js +0 -88
- package/core/components/ForEach.js.map +0 -1
- package/core/components/GridPanel.d.ts +0 -10
- package/core/components/GridPanel.js +0 -30
- package/core/components/GridPanel.js.map +0 -1
- package/core/components/HBox.d.ts +0 -5
- package/core/components/HBox.js +0 -10
- package/core/components/HBox.js.map +0 -1
- package/core/components/LazyLoading.d.ts +0 -19
- package/core/components/LazyLoading.js +0 -36
- package/core/components/LazyLoading.js.map +0 -1
- package/core/components/ListPanel.d.ts +0 -27
- package/core/components/ListPanel.js +0 -153
- package/core/components/ListPanel.js.map +0 -1
- package/core/components/PopUpButton.d.ts +0 -18
- package/core/components/PopUpButton.js +0 -57
- package/core/components/PopUpButton.js.map +0 -1
- package/core/components/ScrollPanel.d.ts +0 -14
- package/core/components/ScrollPanel.js +0 -35
- package/core/components/ScrollPanel.js.map +0 -1
- package/core/components/SliderPanel.d.ts +0 -7
- package/core/components/SliderPanel.js +0 -135
- package/core/components/SliderPanel.js.map +0 -1
- package/core/components/StackPanel.d.ts +0 -5
- package/core/components/StackPanel.js +0 -10
- package/core/components/StackPanel.js.map +0 -1
- package/core/components/TabItem.d.ts +0 -19
- package/core/components/TabItem.js +0 -84
- package/core/components/TabItem.js.map +0 -1
- package/core/components/TabPanel.d.ts +0 -25
- package/core/components/TabPanel.js +0 -96
- package/core/components/TabPanel.js.map +0 -1
- package/core/components/TablePanel.d.ts +0 -34
- package/core/components/TablePanel.js +0 -127
- package/core/components/TablePanel.js.map +0 -1
- package/core/components/TextEdit.d.ts +0 -32
- package/core/components/TextEdit.js +0 -174
- package/core/components/TextEdit.js.map +0 -1
- package/core/components/TextField.d.ts +0 -34
- package/core/components/TextField.js +0 -140
- package/core/components/TextField.js.map +0 -1
- package/core/components/ToggleButton.d.ts +0 -7
- package/core/components/ToggleButton.js +0 -20
- package/core/components/ToggleButton.js.map +0 -1
- package/core/components/Tooltip.d.ts +0 -10
- package/core/components/Tooltip.js +0 -14
- package/core/components/Tooltip.js.map +0 -1
- package/core/components/VBox.d.ts +0 -5
- package/core/components/VBox.js +0 -10
- package/core/components/VBox.js.map +0 -1
- package/core/components/VirtualScroll copy 2.d.ts +0 -24
- package/core/components/VirtualScroll copy 2.js +0 -92
- package/core/components/VirtualScroll copy 2.js.map +0 -1
- package/core/components/VirtualScroll.d.ts +0 -20
- package/core/components/VirtualScroll.js +0 -47
- package/core/components/VirtualScroll.js.map +0 -1
- package/core/components/index.d.ts +0 -28
- package/core/components/index.js +0 -30
- package/core/components/index.js.map +0 -1
- package/core/decorators/RegisterComponent.d.ts +0 -8
- package/core/decorators/RegisterComponent.js +0 -20
- package/core/decorators/RegisterComponent.js.map +0 -1
- package/core/decorators/StyleLink.d.ts +0 -1
- package/core/decorators/StyleLink.js +0 -13
- package/core/decorators/StyleLink.js.map +0 -1
- package/core/decorators/index.d.ts +0 -4
- package/core/decorators/index.js +0 -6
- package/core/decorators/index.js.map +0 -1
- package/core/element/AbbreviationElement.d.ts +0 -7
- package/core/element/AbbreviationElement.js +0 -10
- package/core/element/AbbreviationElement.js.map +0 -1
- package/core/element/AnchorElement.d.ts +0 -24
- package/core/element/AnchorElement.js +0 -31
- package/core/element/AnchorElement.js.map +0 -1
- package/core/element/AreaElement.d.ts +0 -18
- package/core/element/AreaElement.js +0 -11
- package/core/element/AreaElement.js.map +0 -1
- package/core/element/ArticleElement.d.ts +0 -5
- package/core/element/ArticleElement.js +0 -12
- package/core/element/ArticleElement.js.map +0 -1
- package/core/element/AudioElement.d.ts +0 -12
- package/core/element/AudioElement.js +0 -10
- package/core/element/AudioElement.js.map +0 -1
- package/core/element/BaseElement.d.ts +0 -8
- package/core/element/BaseElement.js +0 -11
- package/core/element/BaseElement.js.map +0 -1
- package/core/element/BodyElement.d.ts +0 -5
- package/core/element/BodyElement.js +0 -11
- package/core/element/BodyElement.js.map +0 -1
- package/core/element/BoldElement.d.ts +0 -5
- package/core/element/BoldElement.js +0 -10
- package/core/element/BoldElement.js.map +0 -1
- package/core/element/BreakElement.d.ts +0 -5
- package/core/element/BreakElement.js +0 -10
- package/core/element/BreakElement.js.map +0 -1
- package/core/element/ButtonElement.d.ts +0 -26
- package/core/element/ButtonElement.js +0 -47
- package/core/element/ButtonElement.js.map +0 -1
- package/core/element/CanvasElement.d.ts +0 -5
- package/core/element/CanvasElement.js +0 -14
- package/core/element/CanvasElement.js.map +0 -1
- package/core/element/CaptionElement.d.ts +0 -5
- package/core/element/CaptionElement.js +0 -13
- package/core/element/CaptionElement.js.map +0 -1
- package/core/element/CiteElement.d.ts +0 -5
- package/core/element/CiteElement.js +0 -11
- package/core/element/CiteElement.js.map +0 -1
- package/core/element/CodeElement.d.ts +0 -7
- package/core/element/CodeElement.js +0 -13
- package/core/element/CodeElement.js.map +0 -1
- package/core/element/DataListElement.d.ts +0 -5
- package/core/element/DataListElement.js +0 -13
- package/core/element/DataListElement.js.map +0 -1
- package/core/element/DefinitionDescriptionElement.d.ts +0 -5
- package/core/element/DefinitionDescriptionElement.js +0 -13
- package/core/element/DefinitionDescriptionElement.js.map +0 -1
- package/core/element/DefinitionElement.d.ts +0 -5
- package/core/element/DefinitionElement.js +0 -13
- package/core/element/DefinitionElement.js.map +0 -1
- package/core/element/DeletedTextElement.d.ts +0 -7
- package/core/element/DeletedTextElement.js +0 -15
- package/core/element/DeletedTextElement.js.map +0 -1
- package/core/element/DetailsElement.d.ts +0 -9
- package/core/element/DetailsElement.js +0 -28
- package/core/element/DetailsElement.js.map +0 -1
- package/core/element/DialogElement.d.ts +0 -7
- package/core/element/DialogElement.js +0 -14
- package/core/element/DialogElement.js.map +0 -1
- package/core/element/DivElement.d.ts +0 -5
- package/core/element/DivElement.js +0 -10
- package/core/element/DivElement.js.map +0 -1
- package/core/element/EmElement.d.ts +0 -5
- package/core/element/EmElement.js +0 -10
- package/core/element/EmElement.js.map +0 -1
- package/core/element/EmbedElement.d.ts +0 -10
- package/core/element/EmbedElement.js +0 -19
- package/core/element/EmbedElement.js.map +0 -1
- package/core/element/FieldSetElement.d.ts +0 -9
- package/core/element/FieldSetElement.js +0 -34
- package/core/element/FieldSetElement.js.map +0 -1
- package/core/element/FooterElement.d.ts +0 -5
- package/core/element/FooterElement.js +0 -13
- package/core/element/FooterElement.js.map +0 -1
- package/core/element/FormElement.d.ts +0 -20
- package/core/element/FormElement.js +0 -36
- package/core/element/FormElement.js.map +0 -1
- package/core/element/Fragment.d.ts +0 -32
- package/core/element/Fragment.js +0 -103
- package/core/element/Fragment.js.map +0 -1
- package/core/element/H1Element.d.ts +0 -5
- package/core/element/H1Element.js +0 -10
- package/core/element/H1Element.js.map +0 -1
- package/core/element/H2Element.d.ts +0 -5
- package/core/element/H2Element.js +0 -10
- package/core/element/H2Element.js.map +0 -1
- package/core/element/H3Element.d.ts +0 -5
- package/core/element/H3Element.js +0 -10
- package/core/element/H3Element.js.map +0 -1
- package/core/element/H4Element.d.ts +0 -5
- package/core/element/H4Element.js +0 -10
- package/core/element/H4Element.js.map +0 -1
- package/core/element/H5Element.d.ts +0 -5
- package/core/element/H5Element.js +0 -10
- package/core/element/H5Element.js.map +0 -1
- package/core/element/H6Element.d.ts +0 -5
- package/core/element/H6Element.js +0 -10
- package/core/element/H6Element.js.map +0 -1
- package/core/element/HeadElement.d.ts +0 -5
- package/core/element/HeadElement.js +0 -11
- package/core/element/HeadElement.js.map +0 -1
- package/core/element/HeaderElement.d.ts +0 -5
- package/core/element/HeaderElement.js +0 -13
- package/core/element/HeaderElement.js.map +0 -1
- package/core/element/HorizontalRuleElement.d.ts +0 -5
- package/core/element/HorizontalRuleElement.js +0 -13
- package/core/element/HorizontalRuleElement.js.map +0 -1
- package/core/element/HtmlElement.d.ts +0 -9
- package/core/element/HtmlElement.js +0 -19
- package/core/element/HtmlElement.js.map +0 -1
- package/core/element/IFrameElement.d.ts +0 -28
- package/core/element/IFrameElement.js +0 -67
- package/core/element/IFrameElement.js.map +0 -1
- package/core/element/ILayout.d.ts +0 -5
- package/core/element/ILayout.js +0 -9
- package/core/element/ILayout.js.map +0 -1
- package/core/element/IconElement.d.ts +0 -14
- package/core/element/IconElement.js +0 -32
- package/core/element/IconElement.js.map +0 -1
- package/core/element/IdiomaticElement.d.ts +0 -4
- package/core/element/IdiomaticElement.js +0 -6
- package/core/element/IdiomaticElement.js.map +0 -1
- package/core/element/ImageElement.d.ts +0 -19
- package/core/element/ImageElement.js +0 -17
- package/core/element/ImageElement.js.map +0 -1
- package/core/element/InputElement.d.ts +0 -19
- package/core/element/InputElement.js +0 -81
- package/core/element/InputElement.js.map +0 -1
- package/core/element/LabelElement.d.ts +0 -8
- package/core/element/LabelElement.js +0 -10
- package/core/element/LabelElement.js.map +0 -1
- package/core/element/LegendElement.d.ts +0 -7
- package/core/element/LegendElement.js +0 -15
- package/core/element/LegendElement.js.map +0 -1
- package/core/element/ListItemElement.d.ts +0 -12
- package/core/element/ListItemElement.js +0 -28
- package/core/element/ListItemElement.js.map +0 -1
- package/core/element/MainElement.d.ts +0 -5
- package/core/element/MainElement.js +0 -10
- package/core/element/MainElement.js.map +0 -1
- package/core/element/NavElement.d.ts +0 -5
- package/core/element/NavElement.js +0 -10
- package/core/element/NavElement.js.map +0 -1
- package/core/element/OrderedListElement.d.ts +0 -5
- package/core/element/OrderedListElement.js +0 -10
- package/core/element/OrderedListElement.js.map +0 -1
- package/core/element/ParagraphElement.d.ts +0 -5
- package/core/element/ParagraphElement.js +0 -10
- package/core/element/ParagraphElement.js.map +0 -1
- package/core/element/PreElement.d.ts +0 -5
- package/core/element/PreElement.js +0 -10
- package/core/element/PreElement.js.map +0 -1
- package/core/element/SectionElement.d.ts +0 -5
- package/core/element/SectionElement.js +0 -12
- package/core/element/SectionElement.js.map +0 -1
- package/core/element/SelectElement.d.ts +0 -5
- package/core/element/SelectElement.js +0 -12
- package/core/element/SelectElement.js.map +0 -1
- package/core/element/SourceElement.d.ts +0 -8
- package/core/element/SourceElement.js +0 -14
- package/core/element/SourceElement.js.map +0 -1
- package/core/element/SpanElement.d.ts +0 -5
- package/core/element/SpanElement.js +0 -10
- package/core/element/SpanElement.js.map +0 -1
- package/core/element/StrongElement.d.ts +0 -5
- package/core/element/StrongElement.js +0 -12
- package/core/element/StrongElement.js.map +0 -1
- package/core/element/StyleElement.d.ts +0 -5
- package/core/element/StyleElement.js +0 -10
- package/core/element/StyleElement.js.map +0 -1
- package/core/element/SummaryElement.d.ts +0 -5
- package/core/element/SummaryElement.js +0 -12
- package/core/element/SummaryElement.js.map +0 -1
- package/core/element/SvgElement.d.ts +0 -18
- package/core/element/SvgElement.js +0 -151
- package/core/element/SvgElement.js.map +0 -1
- package/core/element/TableBodyElement.d.ts +0 -5
- package/core/element/TableBodyElement.js +0 -10
- package/core/element/TableBodyElement.js.map +0 -1
- package/core/element/TableCellElement.d.ts +0 -10
- package/core/element/TableCellElement.js +0 -25
- package/core/element/TableCellElement.js.map +0 -1
- package/core/element/TableColElement.d.ts +0 -7
- package/core/element/TableColElement.js +0 -13
- package/core/element/TableColElement.js.map +0 -1
- package/core/element/TableColGroupElement.d.ts +0 -7
- package/core/element/TableColGroupElement.js +0 -15
- package/core/element/TableColGroupElement.js.map +0 -1
- package/core/element/TableElement.d.ts +0 -45
- package/core/element/TableElement.js +0 -228
- package/core/element/TableElement.js.map +0 -1
- package/core/element/TableFootElement.d.ts +0 -5
- package/core/element/TableFootElement.js +0 -10
- package/core/element/TableFootElement.js.map +0 -1
- package/core/element/TableFootRowElement.d.ts +0 -9
- package/core/element/TableFootRowElement.js +0 -23
- package/core/element/TableFootRowElement.js.map +0 -1
- package/core/element/TableHeadCellElement.d.ts +0 -10
- package/core/element/TableHeadCellElement.js +0 -24
- package/core/element/TableHeadCellElement.js.map +0 -1
- package/core/element/TableHeadElement.d.ts +0 -5
- package/core/element/TableHeadElement.js +0 -10
- package/core/element/TableHeadElement.js.map +0 -1
- package/core/element/TableHeadRowElement.d.ts +0 -11
- package/core/element/TableHeadRowElement.js +0 -29
- package/core/element/TableHeadRowElement.js.map +0 -1
- package/core/element/TableRowElement.d.ts +0 -11
- package/core/element/TableRowElement.js +0 -29
- package/core/element/TableRowElement.js.map +0 -1
- package/core/element/TextAreaElement.d.ts +0 -7
- package/core/element/TextAreaElement.js +0 -10
- package/core/element/TextAreaElement.js.map +0 -1
- package/core/element/UListElement.d.ts +0 -5
- package/core/element/UListElement.js +0 -10
- package/core/element/UListElement.js.map +0 -1
- package/core/element/VideoElement.d.ts +0 -13
- package/core/element/VideoElement.js +0 -16
- package/core/element/VideoElement.js.map +0 -1
- package/core/element/index.d.ts +0 -72
- package/core/element/index.js +0 -73
- package/core/element/index.js.map +0 -1
- package/core/event/index.d.ts +0 -16
- package/core/event/index.js +0 -75
- package/core/event/index.js.map +0 -1
- package/core/index.js.map +0 -1
- package/core/ref/Computed.d.ts +0 -3
- package/core/ref/Computed.js +0 -75
- package/core/ref/Computed.js.map +0 -1
- package/core/ref/RefBoolean.d.ts +0 -91
- package/core/ref/RefBoolean.js +0 -119
- package/core/ref/RefBoolean.js.map +0 -1
- package/core/ref/RefContainer.d.ts +0 -28
- package/core/ref/RefContainer.js +0 -114
- package/core/ref/RefContainer.js.map +0 -1
- package/core/ref/RefList.d.ts +0 -120
- package/core/ref/RefList.js +0 -240
- package/core/ref/RefList.js.map +0 -1
- package/core/ref/RefMap.d.ts +0 -100
- package/core/ref/RefMap.js +0 -149
- package/core/ref/RefMap.js.map +0 -1
- package/core/ref/RefNumber.d.ts +0 -118
- package/core/ref/RefNumber.js +0 -157
- package/core/ref/RefNumber.js.map +0 -1
- package/core/ref/RefObject copy.d.ts +0 -124
- package/core/ref/RefObject copy.js +0 -271
- package/core/ref/RefObject copy.js.map +0 -1
- package/core/ref/RefObject.d.ts +0 -120
- package/core/ref/RefObject.js +0 -265
- package/core/ref/RefObject.js.map +0 -1
- package/core/ref/RefProperty.d.ts +0 -3
- package/core/ref/RefProperty.js +0 -46
- package/core/ref/RefProperty.js.map +0 -1
- package/core/ref/RefSet.d.ts +0 -99
- package/core/ref/RefSet.js +0 -148
- package/core/ref/RefSet.js.map +0 -1
- package/core/ref/RefState.d.ts +0 -25
- package/core/ref/RefState.js +0 -89
- package/core/ref/RefState.js.map +0 -1
- package/core/ref/RefString.d.ts +0 -148
- package/core/ref/RefString.js +0 -179
- package/core/ref/RefString.js.map +0 -1
- package/core/ref/index.d.ts +0 -23
- package/core/ref/index.js +0 -71
- package/core/ref/index.js.map +0 -1
- package/core/router/RouteView.d.ts +0 -20
- package/core/router/RouteView.js +0 -84
- package/core/router/RouteView.js.map +0 -1
- package/core/router/Router.d.ts +0 -78
- package/core/router/Router.js +0 -307
- package/core/router/Router.js.map +0 -1
- package/core/router/RouterEvent.d.ts +0 -36
- package/core/router/RouterEvent.js +0 -43
- package/core/router/RouterEvent.js.map +0 -1
- package/core/router/RouterGuard.d.ts +0 -12
- package/core/router/RouterGuard.js +0 -3
- package/core/router/RouterGuard.js.map +0 -1
- package/core/router/index.d.ts +0 -4
- package/core/router/index.js +0 -5
- package/core/router/index.js.map +0 -1
- package/global/index.js.map +0 -1
- package/global/safari-polyfill.d.ts +0 -0
- package/global/safari-polyfill.js +0 -234
- package/global/safari-polyfill.js.map +0 -1
- package/index.js +0 -4
- package/index.js.map +0 -1
- package/translation/index.d.ts +0 -0
- /package/{assets → dist/assets}/index.d.ts +0 -0
- /package/{assets → dist/assets}/index.js +0 -0
- /package/{assets → dist/assets}/index.js.map +0 -0
package/core/element/index.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
export { AbbreviationElement } from "./AbbreviationElement";
|
|
2
|
-
export { AnchorElement } from "./AnchorElement";
|
|
3
|
-
export { ButtonElement } from "./ButtonElement";
|
|
4
|
-
export { DataListElement } from "./DataListElement";
|
|
5
|
-
export { DefinitionElement } from "./DefinitionElement";
|
|
6
|
-
export { DivElement } from "./DivElement";
|
|
7
|
-
export { FieldSetElement } from "./FieldSetElement";
|
|
8
|
-
export { FormElement, type FormElementProps } from "./FormElement";
|
|
9
|
-
export { ImageElement } from "./ImageElement";
|
|
10
|
-
export { InputElement, type InputType, type InputElementProps } from "./InputElement";
|
|
11
|
-
export { LabelElement } from "./LabelElement";
|
|
12
|
-
export { LegendElement } from "./LegendElement";
|
|
13
|
-
export { ListItemElement } from "./ListItemElement";
|
|
14
|
-
export { ParagraphElement } from "./ParagraphElement";
|
|
15
|
-
export { AreaElement } from "./AreaElement";
|
|
16
|
-
export { ArticleElement } from "./ArticleElement";
|
|
17
|
-
export { AudioElement } from "./AudioElement";
|
|
18
|
-
export { BaseElement } from "./BaseElement";
|
|
19
|
-
export { BodyElement } from "./BodyElement";
|
|
20
|
-
export { BoldElement } from "./BoldElement";
|
|
21
|
-
export { BreakElement } from "./BreakElement";
|
|
22
|
-
export { CanvasElement } from "./CanvasElement";
|
|
23
|
-
export { CaptionElement } from "./CaptionElement";
|
|
24
|
-
export { CiteElement } from "./CiteElement";
|
|
25
|
-
export { CodeElement } from "./CodeElement";
|
|
26
|
-
export { DefinitionDescriptionElement } from "./DefinitionDescriptionElement";
|
|
27
|
-
export { DeletedTextElement } from "./DeletedTextElement";
|
|
28
|
-
export { DetailsElement } from "./DetailsElement";
|
|
29
|
-
export { DialogElement } from "./DialogElement";
|
|
30
|
-
export { EmbedElement } from "./EmbedElement";
|
|
31
|
-
export { EmElement } from "./EmElement";
|
|
32
|
-
export { FooterElement } from "./FooterElement";
|
|
33
|
-
export { Fragment } from "./Fragment";
|
|
34
|
-
export { H1Element } from "./H1Element";
|
|
35
|
-
export { H2Element } from "./H2Element";
|
|
36
|
-
export { H3Element } from "./H3Element";
|
|
37
|
-
export { H4Element } from "./H4Element";
|
|
38
|
-
export { H5Element } from "./H5Element";
|
|
39
|
-
export { H6Element } from "./H6Element";
|
|
40
|
-
export { HeadElement } from "./HeadElement";
|
|
41
|
-
export { HeaderElement } from "./HeaderElement";
|
|
42
|
-
export { HorizontalRuleElement } from "./HorizontalRuleElement";
|
|
43
|
-
export { HtmlElement } from "./HtmlElement";
|
|
44
|
-
export { IconElement } from "./IconElement";
|
|
45
|
-
export { IFrameElement } from "./IFrameElement";
|
|
46
|
-
export { MainElement } from "./MainElement";
|
|
47
|
-
export { NavElement } from "./NavElement";
|
|
48
|
-
export { OrderedListElement } from "./OrderedListElement";
|
|
49
|
-
export { PreElement } from "./PreElement";
|
|
50
|
-
export { SectionElement } from "./SectionElement";
|
|
51
|
-
export { SelectElement } from "./SelectElement";
|
|
52
|
-
export { SourceElement } from "./SourceElement";
|
|
53
|
-
export { SpanElement } from "./SpanElement";
|
|
54
|
-
export { StrongElement } from "./StrongElement";
|
|
55
|
-
export { StyleElement } from "./StyleElement";
|
|
56
|
-
export { SummaryElement } from "./SummaryElement";
|
|
57
|
-
export { SvgElement } from "./SvgElement";
|
|
58
|
-
export { TableBodyElement } from "./TableBodyElement";
|
|
59
|
-
export { TableCellElement } from "./TableCellElement";
|
|
60
|
-
export { TableColElement } from "./TableColElement";
|
|
61
|
-
export { TableColGroupElement } from "./TableColGroupElement";
|
|
62
|
-
export { TableElement, type TableElementProps } from "./TableElement";
|
|
63
|
-
export { TableFootElement } from "./TableFootElement";
|
|
64
|
-
export { TableFootRowElement } from "./TableFootRowElement";
|
|
65
|
-
export { TableHeadCellElement } from "./TableHeadCellElement";
|
|
66
|
-
export { TableHeadElement } from "./TableHeadElement";
|
|
67
|
-
export { TableHeadRowElement } from "./TableHeadRowElement";
|
|
68
|
-
export { TableRowElement } from "./TableRowElement";
|
|
69
|
-
export { TextAreaElement } from "./TextAreaElement";
|
|
70
|
-
export { UListElement } from "./UListElement";
|
|
71
|
-
export { VideoElement } from "./VideoElement";
|
|
72
|
-
export { IdiomaticElement } from "./IdiomaticElement";
|
package/core/element/index.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export { AbbreviationElement } from "./AbbreviationElement";
|
|
2
|
-
export { AnchorElement } from "./AnchorElement";
|
|
3
|
-
export { ButtonElement } from "./ButtonElement";
|
|
4
|
-
export { DataListElement } from "./DataListElement";
|
|
5
|
-
export { DefinitionElement } from "./DefinitionElement";
|
|
6
|
-
export { DivElement } from "./DivElement";
|
|
7
|
-
export { FieldSetElement } from "./FieldSetElement";
|
|
8
|
-
export { FormElement } from "./FormElement";
|
|
9
|
-
export { ImageElement } from "./ImageElement";
|
|
10
|
-
export { InputElement } from "./InputElement";
|
|
11
|
-
export { LabelElement } from "./LabelElement";
|
|
12
|
-
export { LegendElement } from "./LegendElement";
|
|
13
|
-
export { ListItemElement } from "./ListItemElement";
|
|
14
|
-
export { ParagraphElement } from "./ParagraphElement";
|
|
15
|
-
export { AreaElement } from "./AreaElement";
|
|
16
|
-
export { ArticleElement } from "./ArticleElement";
|
|
17
|
-
export { AudioElement } from "./AudioElement";
|
|
18
|
-
export { BaseElement } from "./BaseElement";
|
|
19
|
-
export { BodyElement } from "./BodyElement";
|
|
20
|
-
export { BoldElement } from "./BoldElement";
|
|
21
|
-
export { BreakElement } from "./BreakElement";
|
|
22
|
-
export { CanvasElement } from "./CanvasElement";
|
|
23
|
-
export { CaptionElement } from "./CaptionElement";
|
|
24
|
-
export { CiteElement } from "./CiteElement";
|
|
25
|
-
export { CodeElement } from "./CodeElement";
|
|
26
|
-
export { DefinitionDescriptionElement } from "./DefinitionDescriptionElement";
|
|
27
|
-
export { DeletedTextElement } from "./DeletedTextElement";
|
|
28
|
-
export { DetailsElement } from "./DetailsElement";
|
|
29
|
-
export { DialogElement } from "./DialogElement";
|
|
30
|
-
export { EmbedElement } from "./EmbedElement";
|
|
31
|
-
export { EmElement } from "./EmElement";
|
|
32
|
-
export { FooterElement } from "./FooterElement";
|
|
33
|
-
export { Fragment } from "./Fragment";
|
|
34
|
-
export { H1Element } from "./H1Element";
|
|
35
|
-
export { H2Element } from "./H2Element";
|
|
36
|
-
export { H3Element } from "./H3Element";
|
|
37
|
-
export { H4Element } from "./H4Element";
|
|
38
|
-
export { H5Element } from "./H5Element";
|
|
39
|
-
export { H6Element } from "./H6Element";
|
|
40
|
-
export { HeadElement } from "./HeadElement";
|
|
41
|
-
export { HeaderElement } from "./HeaderElement";
|
|
42
|
-
export { HorizontalRuleElement } from "./HorizontalRuleElement";
|
|
43
|
-
export { HtmlElement } from "./HtmlElement";
|
|
44
|
-
export { IconElement } from "./IconElement";
|
|
45
|
-
export { IFrameElement } from "./IFrameElement";
|
|
46
|
-
export { MainElement } from "./MainElement";
|
|
47
|
-
export { NavElement } from "./NavElement";
|
|
48
|
-
export { OrderedListElement } from "./OrderedListElement";
|
|
49
|
-
export { PreElement } from "./PreElement";
|
|
50
|
-
export { SectionElement } from "./SectionElement";
|
|
51
|
-
export { SelectElement } from "./SelectElement";
|
|
52
|
-
export { SourceElement } from "./SourceElement";
|
|
53
|
-
export { SpanElement } from "./SpanElement";
|
|
54
|
-
export { StrongElement } from "./StrongElement";
|
|
55
|
-
export { StyleElement } from "./StyleElement";
|
|
56
|
-
export { SummaryElement } from "./SummaryElement";
|
|
57
|
-
export { SvgElement } from "./SvgElement";
|
|
58
|
-
export { TableBodyElement } from "./TableBodyElement";
|
|
59
|
-
export { TableCellElement } from "./TableCellElement";
|
|
60
|
-
export { TableColElement } from "./TableColElement";
|
|
61
|
-
export { TableColGroupElement } from "./TableColGroupElement";
|
|
62
|
-
export { TableElement } from "./TableElement";
|
|
63
|
-
export { TableFootElement } from "./TableFootElement";
|
|
64
|
-
export { TableFootRowElement } from "./TableFootRowElement";
|
|
65
|
-
export { TableHeadCellElement } from "./TableHeadCellElement";
|
|
66
|
-
export { TableHeadElement } from "./TableHeadElement";
|
|
67
|
-
export { TableHeadRowElement } from "./TableHeadRowElement";
|
|
68
|
-
export { TableRowElement } from "./TableRowElement";
|
|
69
|
-
export { TextAreaElement } from "./TextAreaElement";
|
|
70
|
-
export { UListElement } from "./UListElement";
|
|
71
|
-
export { VideoElement } from "./VideoElement";
|
|
72
|
-
export { IdiomaticElement } from "./IdiomaticElement";
|
|
73
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/element/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAA0C,MAAM,gBAAgB,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C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AAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/core/event/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type EventHandler = (...params: any[]) => void;
|
|
2
|
-
export declare class EventComponent extends Event {
|
|
3
|
-
data: any[];
|
|
4
|
-
isInit: boolean;
|
|
5
|
-
private static events;
|
|
6
|
-
private eventsListener;
|
|
7
|
-
private static serialize;
|
|
8
|
-
constructor(type: string, options?: EventInit);
|
|
9
|
-
static emitEvent(type: string, ...data: any[]): boolean;
|
|
10
|
-
private static createEventBase;
|
|
11
|
-
static createEvent(type: string, ...data: any[]): boolean;
|
|
12
|
-
static addEventListener(component: IComponent, type: string, listener: EventHandler, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
13
|
-
static removeEventListener(component: IComponent, type: string): void;
|
|
14
|
-
static removeEventListeners(component: IComponent): void;
|
|
15
|
-
static deleteEvent(type: string): void;
|
|
16
|
-
}
|
package/core/event/index.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export class EventComponent extends Event {
|
|
2
|
-
data = [];
|
|
3
|
-
isInit = false;
|
|
4
|
-
static events = new Map();
|
|
5
|
-
eventsListener = new Map();
|
|
6
|
-
static serialize = "event-component-";
|
|
7
|
-
constructor(type, options) {
|
|
8
|
-
super(EventComponent.serialize + type, options);
|
|
9
|
-
}
|
|
10
|
-
static emitEvent(type, ...data) {
|
|
11
|
-
const event = EventComponent.createEventBase(type, ...data);
|
|
12
|
-
if (event) {
|
|
13
|
-
if (data.length > 0)
|
|
14
|
-
event.data = data;
|
|
15
|
-
event.isInit = true;
|
|
16
|
-
return document.dispatchEvent(event);
|
|
17
|
-
}
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
static createEventBase(type, ...data) {
|
|
21
|
-
if (type === undefined || type === null || type === "")
|
|
22
|
-
return null;
|
|
23
|
-
let event = EventComponent.events.get(type);
|
|
24
|
-
if (event)
|
|
25
|
-
return event;
|
|
26
|
-
event = new EventComponent(type);
|
|
27
|
-
EventComponent.events.set(type, event);
|
|
28
|
-
event.data = data;
|
|
29
|
-
event.isInit = data.length > 0;
|
|
30
|
-
return event;
|
|
31
|
-
}
|
|
32
|
-
static createEvent(type, ...data) {
|
|
33
|
-
return EventComponent.createEventBase(type, ...data) !== null;
|
|
34
|
-
}
|
|
35
|
-
static addEventListener(component, type, listener, options) {
|
|
36
|
-
const e = EventComponent.createEventBase(type);
|
|
37
|
-
if (e) {
|
|
38
|
-
const eventListener = function (event) {
|
|
39
|
-
listener(...event.data);
|
|
40
|
-
};
|
|
41
|
-
if (e.isInit)
|
|
42
|
-
listener(...e.data);
|
|
43
|
-
const listeners = e.eventsListener.get(component) || [];
|
|
44
|
-
listeners.push(eventListener);
|
|
45
|
-
e.eventsListener.set(component, listeners);
|
|
46
|
-
document.addEventListener(e.type, eventListener, options);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
static removeEventListener(component, type) {
|
|
50
|
-
const e = EventComponent.events.get(type);
|
|
51
|
-
if (e) {
|
|
52
|
-
const listeners = e.eventsListener.get(component);
|
|
53
|
-
if (listeners) {
|
|
54
|
-
for (let event of listeners) {
|
|
55
|
-
document.removeEventListener(e.type, event);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
static removeEventListeners(component) {
|
|
61
|
-
for (let type of EventComponent.events.keys()) {
|
|
62
|
-
EventComponent.removeEventListener(component, type);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
static deleteEvent(type) {
|
|
66
|
-
const e = EventComponent.events.get(type);
|
|
67
|
-
if (e) {
|
|
68
|
-
for (let component of e.eventsListener.keys()) {
|
|
69
|
-
EventComponent.removeEventListeners(component);
|
|
70
|
-
}
|
|
71
|
-
EventComponent.events.delete(type);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=index.js.map
|
package/core/event/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/event/index.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,cAAe,SAAQ,KAAK;IAChC,IAAI,GAAU,EAAE,CAAC;IACjB,MAAM,GAAY,KAAK,CAAC;IACvB,MAAM,CAAC,MAAM,GAAgC,IAAI,GAAG,EAAE,CAAC;IACvD,cAAc,GAA0D,IAAI,GAAG,EAAE,CAAC;IAClF,MAAM,CAAC,SAAS,GAAW,kBAAkB,CAAC;IAEtD,YAAY,IAAY,EAAE,OAAmB;QAC3C,KAAK,CAAC,cAAc,CAAC,SAAS,GAAG,IAAI,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,IAAY,EAAE,GAAG,IAAW;QAClD,MAAM,KAAK,GAAG,cAAc,CAAC,eAAe,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;QAC5D,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;gBAAE,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;YACvC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;YACpB,OAAO,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,MAAM,CAAC,eAAe,CAAC,IAAY,EAAE,GAAG,IAAW;QACzD,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,EAAE;YAAE,OAAO,IAAI,CAAC;QACpE,IAAI,KAAK,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,KA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Ac,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|
package/core/ref/Computed.d.ts
DELETED
package/core/ref/Computed.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { ref } from "./RefObject";
|
|
2
|
-
function isTemplateElement(value) {
|
|
3
|
-
const cache = new Map();
|
|
4
|
-
if (!Array.isArray(value)) {
|
|
5
|
-
value = [value];
|
|
6
|
-
}
|
|
7
|
-
for (const v of value) {
|
|
8
|
-
if (v && v instanceof HTMLElement) {
|
|
9
|
-
const key = (v.key || "").toString();
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return cache.size > 0;
|
|
13
|
-
}
|
|
14
|
-
const computedSymbol = Symbol("computed");
|
|
15
|
-
class ComputedSet extends Set {
|
|
16
|
-
[computedSymbol] = true;
|
|
17
|
-
elements = new Map();
|
|
18
|
-
put(item) {
|
|
19
|
-
if (item && item instanceof ref) {
|
|
20
|
-
this.add(item);
|
|
21
|
-
return item.value;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
cache(key) {
|
|
25
|
-
return { key: key, controller: this };
|
|
26
|
-
}
|
|
27
|
-
setCache(key, value) {
|
|
28
|
-
this.elements.set(key, new WeakRef(value));
|
|
29
|
-
}
|
|
30
|
-
getCache(key) {
|
|
31
|
-
const ref = this.elements.get(key);
|
|
32
|
-
if (ref && !ref.deref()) {
|
|
33
|
-
this.elements.delete(key);
|
|
34
|
-
}
|
|
35
|
-
return ref ? ref.deref() : undefined;
|
|
36
|
-
}
|
|
37
|
-
clone() {
|
|
38
|
-
const newSet = new ComputedSet();
|
|
39
|
-
for (const item of this) {
|
|
40
|
-
newSet.add(item);
|
|
41
|
-
}
|
|
42
|
-
return newSet;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
export function computed(fn, ...values) {
|
|
46
|
-
if (typeof fn !== "function")
|
|
47
|
-
throw new Error("computed: fn must be a function");
|
|
48
|
-
const observers = new ComputedSet();
|
|
49
|
-
for (const v of values) {
|
|
50
|
-
observers.put(v);
|
|
51
|
-
}
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
const r = ref(fn(observers));
|
|
54
|
-
// @ts-ignore
|
|
55
|
-
const func = observers.length > 0 ? () => fn(observers)
|
|
56
|
-
: () => {
|
|
57
|
-
const oldObservers = observers.clone();
|
|
58
|
-
observers.clear();
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
r.value = fn(observers);
|
|
61
|
-
const observersToRemove = oldObservers.size > 0 ? [...oldObservers].filter(o => !observers.has(o)) : [];
|
|
62
|
-
const observersToAdd = observers.size > 0 ? [...observers].filter(o => !oldObservers.has(o)) : [];
|
|
63
|
-
for (const item of observersToRemove) {
|
|
64
|
-
item.unsubscribe(func);
|
|
65
|
-
}
|
|
66
|
-
for (const item of observersToAdd) {
|
|
67
|
-
item.listen(func);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
for (const item of observers) {
|
|
71
|
-
item.listen(func);
|
|
72
|
-
}
|
|
73
|
-
return r;
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=Computed.js.map
|
package/core/ref/Computed.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Computed.js","sourceRoot":"","sources":["../../../src/core/ref/Computed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,GAAG,EAAE,MAAM,aAAa,CAAC;AAEvD,SAAS,iBAAiB,CAAC,KAAU;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAe,CAAC;IACrC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;IAClB,CAAC;IACD,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,IAAI,CAAC,IAAI,CAAC,YAAY,WAAW,EAAE,CAAC;YAClC,MAAM,GAAG,GAAE,CAAE,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,Q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AC,WAAW,CAAC,IAAI,CAAC,CAAC;YAC3B,CAAC;YACD,KAAK,MAAM,IAAI,IAAI,cAAc,EAAE,CAAC;gBAChC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;QACH,CAAC,CAAA;IACD,KAAK,MAAM,IAAI,IAAI,SAAS,EAAE,CAAC;QACzB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IACD,OAAO,CAAkB,CAAC;AAC5B,CAAC"}
|
package/core/ref/RefBoolean.d.ts
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { ref } from ".";
|
|
2
|
-
/**
|
|
3
|
-
* Creates a new reactive boolean reference.
|
|
4
|
-
*
|
|
5
|
-
* @param value - The initial boolean value.
|
|
6
|
-
* @returns A new instance of RefBoolean.
|
|
7
|
-
*/
|
|
8
|
-
export declare function refBoolean(value: boolean): RefBoolean;
|
|
9
|
-
/**
|
|
10
|
-
* Union type for accepting both primitive booleans and RefBoolean instances.
|
|
11
|
-
*/
|
|
12
|
-
export type refBoolean = boolean | RefBoolean;
|
|
13
|
-
/**
|
|
14
|
-
* Reactive wrapper for a boolean value, supporting subscriptions and reactivity.
|
|
15
|
-
*/
|
|
16
|
-
export declare class RefBoolean implements Boolean, ref<boolean> {
|
|
17
|
-
/**
|
|
18
|
-
* Internal container that manages subscribers and the current value.
|
|
19
|
-
*/
|
|
20
|
-
private readonly container;
|
|
21
|
-
readonly id: string;
|
|
22
|
-
/**
|
|
23
|
-
* Constructs a reactive boolean wrapper.
|
|
24
|
-
*
|
|
25
|
-
* @param value - The initial boolean value.
|
|
26
|
-
* @param refKey - Optional key used for registration in a central Ref registry.
|
|
27
|
-
*/
|
|
28
|
-
constructor(value: boolean);
|
|
29
|
-
/**
|
|
30
|
-
* Emits a change if the new value differs from the current value.
|
|
31
|
-
*
|
|
32
|
-
* @param propertyName - The property being updated (typically "value").
|
|
33
|
-
* @param value - The new value being set.
|
|
34
|
-
*/
|
|
35
|
-
private emit;
|
|
36
|
-
/**
|
|
37
|
-
* Subscribes to value changes and immediately emits the current value.
|
|
38
|
-
*/
|
|
39
|
-
subscribe(target: (value: boolean, oldValue: boolean) => void): boolean;
|
|
40
|
-
subscribe(target: (value: boolean, oldValue: boolean) => void, onUnsubscribe: Function): boolean;
|
|
41
|
-
subscribe(target: object, propertyName: string | symbol): boolean;
|
|
42
|
-
subscribe(target: object, propertyName: string | symbol, onUnsubscribe: Function): boolean;
|
|
43
|
-
subscribe(target: object | ((value: boolean, oldValue: boolean) => void), propertyName: string | symbol | Function, onUnsubscribe?: Function): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Subscribes to value changes without emitting the current value.
|
|
46
|
-
*
|
|
47
|
-
* @param target - Callback function to be invoked on future value changes.
|
|
48
|
-
* @param onUnsubscribe - Optional callback to be invoked when unsubscribed.
|
|
49
|
-
* @returns true if subscription was successful.
|
|
50
|
-
*/
|
|
51
|
-
listen(target: (value: boolean, oldValue: boolean) => void, onUnsubscribe?: Function): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Unsubscribes a function or object-property pair from receiving value changes.
|
|
54
|
-
*/
|
|
55
|
-
unsubscribe(target: (arg: boolean) => void): boolean;
|
|
56
|
-
unsubscribe(target: object, propertyName: string | symbol): boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Provides primitive conversion support for the boolean wrapper.
|
|
59
|
-
*
|
|
60
|
-
* @param hint - The conversion context ("default", "number", "string", etc.)
|
|
61
|
-
* @returns The primitive boolean value.
|
|
62
|
-
*/
|
|
63
|
-
[Symbol.toPrimitive](hint: string): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Specifies the primitive type associated with this object.
|
|
66
|
-
*/
|
|
67
|
-
static get [Symbol.species](): BooleanConstructor;
|
|
68
|
-
/**
|
|
69
|
-
* Gets the current boolean value.
|
|
70
|
-
*/
|
|
71
|
-
get value(): boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Sets a new boolean value and notifies subscribers if changed.
|
|
74
|
-
*/
|
|
75
|
-
set value(value: boolean);
|
|
76
|
-
/**
|
|
77
|
-
* Returns the primitive boolean value.
|
|
78
|
-
*/
|
|
79
|
-
valueOf(): boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Returns a JSON-serializable representation of this boolean.
|
|
82
|
-
* If this is a root ref, only the value is returned. Otherwise, a wrapped object is returned.
|
|
83
|
-
*/
|
|
84
|
-
toJSON(): boolean | {
|
|
85
|
-
value: boolean;
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* Returns a string representation of the current value.
|
|
89
|
-
*/
|
|
90
|
-
toString(): string;
|
|
91
|
-
}
|
package/core/ref/RefBoolean.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { Ref } from ".";
|
|
2
|
-
import { RefContainer } from "./RefContainer";
|
|
3
|
-
/**
|
|
4
|
-
* Creates a new reactive boolean reference.
|
|
5
|
-
*
|
|
6
|
-
* @param value - The initial boolean value.
|
|
7
|
-
* @returns A new instance of RefBoolean.
|
|
8
|
-
*/
|
|
9
|
-
export function refBoolean(value) {
|
|
10
|
-
return new RefBoolean(value);
|
|
11
|
-
}
|
|
12
|
-
// Customizes instanceof behavior for type checking
|
|
13
|
-
Object.defineProperty(refBoolean, Symbol.hasInstance, {
|
|
14
|
-
value: function (instance) {
|
|
15
|
-
return !!instance && instance instanceof RefBoolean;
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
/**
|
|
19
|
-
* Reactive wrapper for a boolean value, supporting subscriptions and reactivity.
|
|
20
|
-
*/
|
|
21
|
-
export class RefBoolean {
|
|
22
|
-
/**
|
|
23
|
-
* Internal container that manages subscribers and the current value.
|
|
24
|
-
*/
|
|
25
|
-
container;
|
|
26
|
-
id;
|
|
27
|
-
/**
|
|
28
|
-
* Constructs a reactive boolean wrapper.
|
|
29
|
-
*
|
|
30
|
-
* @param value - The initial boolean value.
|
|
31
|
-
* @param refKey - Optional key used for registration in a central Ref registry.
|
|
32
|
-
*/
|
|
33
|
-
constructor(value) {
|
|
34
|
-
this.container = new RefContainer(value);
|
|
35
|
-
this.id = this.container.id;
|
|
36
|
-
// Registers in Ref registry if key is provided
|
|
37
|
-
Ref.set(this.id, this);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Emits a change if the new value differs from the current value.
|
|
41
|
-
*
|
|
42
|
-
* @param propertyName - The property being updated (typically "value").
|
|
43
|
-
* @param value - The new value being set.
|
|
44
|
-
*/
|
|
45
|
-
// @ts-ignore
|
|
46
|
-
emit(propertyName, value) {
|
|
47
|
-
if (this.value === value)
|
|
48
|
-
return;
|
|
49
|
-
const oldValue = this.valueOf();
|
|
50
|
-
this.container.emitAll(propertyName, (this.container.value = value.valueOf()), oldValue);
|
|
51
|
-
}
|
|
52
|
-
subscribe(target, propertyName, onUnsubscribe) {
|
|
53
|
-
return this.container.emit(this.container.subscribe(target, propertyName, onUnsubscribe), this.value, this.value);
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Subscribes to value changes without emitting the current value.
|
|
57
|
-
*
|
|
58
|
-
* @param target - Callback function to be invoked on future value changes.
|
|
59
|
-
* @param onUnsubscribe - Optional callback to be invoked when unsubscribed.
|
|
60
|
-
* @returns true if subscription was successful.
|
|
61
|
-
*/
|
|
62
|
-
listen(target, onUnsubscribe) {
|
|
63
|
-
return this.container.subscribe(target, onUnsubscribe) !== undefined;
|
|
64
|
-
}
|
|
65
|
-
unsubscribe(targe, propertyName = "") {
|
|
66
|
-
return this.container.unsubscribe(targe, propertyName);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Provides primitive conversion support for the boolean wrapper.
|
|
70
|
-
*
|
|
71
|
-
* @param hint - The conversion context ("default", "number", "string", etc.)
|
|
72
|
-
* @returns The primitive boolean value.
|
|
73
|
-
*/
|
|
74
|
-
[Symbol.toPrimitive](hint) {
|
|
75
|
-
if (hint === "boolean" || hint === "default") {
|
|
76
|
-
return this.value;
|
|
77
|
-
}
|
|
78
|
-
return this.valueOf();
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Specifies the primitive type associated with this object.
|
|
82
|
-
*/
|
|
83
|
-
static get [Symbol.species]() {
|
|
84
|
-
return Boolean;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Gets the current boolean value.
|
|
88
|
-
*/
|
|
89
|
-
get value() {
|
|
90
|
-
return this.container.value.valueOf();
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Sets a new boolean value and notifies subscribers if changed.
|
|
94
|
-
*/
|
|
95
|
-
set value(value) {
|
|
96
|
-
this.emit("value", value);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Returns the primitive boolean value.
|
|
100
|
-
*/
|
|
101
|
-
valueOf() {
|
|
102
|
-
return this.value.valueOf();
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Returns a JSON-serializable representation of this boolean.
|
|
106
|
-
* If this is a root ref, only the value is returned. Otherwise, a wrapped object is returned.
|
|
107
|
-
*/
|
|
108
|
-
// @ts-ignore
|
|
109
|
-
toJSON() {
|
|
110
|
-
return this.container.root ? this.value : { value: this.value };
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Returns a string representation of the current value.
|
|
114
|
-
*/
|
|
115
|
-
toString() {
|
|
116
|
-
return this.container.toString();
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
//# sourceMappingURL=RefBoolean.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RefBoolean.js","sourceRoot":"","sources":["../../../src/core/ref/RefBoolean.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAO,MAAM,GAAG,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,OAAO,IAAI,UAAU,CAAC,KAAK,CAAC,CAA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target: WeakRef<any> | Function;
|
|
4
|
-
propertyName: string | symbol;
|
|
5
|
-
onUnsubscribe?: Function;
|
|
6
|
-
refSubscriber: typeof refSubscriber;
|
|
7
|
-
}
|
|
8
|
-
export declare class RefContainer {
|
|
9
|
-
#private;
|
|
10
|
-
value?: any;
|
|
11
|
-
readonly root?: RefContainer;
|
|
12
|
-
readonly id: string;
|
|
13
|
-
constructor(value?: any, root?: RefContainer);
|
|
14
|
-
emit(subscriber: IRefSubscriber, value: any, oldValue: any): boolean;
|
|
15
|
-
info(): void;
|
|
16
|
-
emitAll(propertyName: string | symbol, value: any, oldValue: any): any;
|
|
17
|
-
getSubscriber(target: object | Function, propertyName: string | symbol | Function): {
|
|
18
|
-
subscriber?: IRefSubscriber;
|
|
19
|
-
index: number;
|
|
20
|
-
};
|
|
21
|
-
subscribe(target: any, propertyName: any, onUnsubscribe?: any): IRefSubscriber;
|
|
22
|
-
listen(target: (arg: any) => void, onUnsubscribe?: Function): IRefSubscriber;
|
|
23
|
-
unsubscribe(target: object | Function, propertyName: string | symbol): boolean;
|
|
24
|
-
[Symbol.toPrimitive](hint: string): string;
|
|
25
|
-
toString(): string;
|
|
26
|
-
toJSON(): any;
|
|
27
|
-
}
|
|
28
|
-
export {};
|