typecomposer 0.1.26 → 0.1.27
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/app/Validate.d.ts +61 -0
- package/core/app/Validate.js +2 -0
- package/core/app/Validate.js.map +1 -0
- package/core/app/index.d.ts +39 -0
- package/core/app/index.js +174 -0
- package/core/app/index.js.map +1 -0
- package/core/components/AlertPanel.d.ts +31 -0
- package/core/components/AlertPanel.js +74 -0
- package/core/components/AlertPanel.js.map +1 -0
- package/core/components/AvatarPanel.d.ts +20 -0
- package/core/components/AvatarPanel.js +62 -0
- package/core/components/AvatarPanel.js.map +1 -0
- package/core/components/BorderPanel.d.ts +27 -0
- package/core/components/BorderPanel.js +89 -0
- package/core/components/BorderPanel.js.map +1 -0
- package/core/components/CardPanel.d.ts +4 -0
- package/core/components/CardPanel.js +10 -0
- package/core/components/CardPanel.js.map +1 -0
- package/core/components/CheckBox.d.ts +34 -0
- package/core/components/CheckBox.js +107 -0
- package/core/components/CheckBox.js.map +1 -0
- package/core/components/ColorPicker.d.ts +9 -0
- package/core/components/ColorPicker.js +32 -0
- package/core/components/ColorPicker.js.map +1 -0
- package/core/components/ContextMenu.d.ts +14 -0
- package/core/components/ContextMenu.js +62 -0
- package/core/components/ContextMenu.js.map +1 -0
- package/core/components/DialogPanel.d.ts +14 -0
- package/core/components/DialogPanel.js +62 -0
- package/core/components/DialogPanel.js.map +1 -0
- package/core/components/DropDown.d.ts +51 -0
- package/core/components/DropDown.js +213 -0
- package/core/components/DropDown.js.map +1 -0
- package/core/components/FlowPanel.d.ts +10 -0
- package/core/components/FlowPanel.js +39 -0
- package/core/components/FlowPanel.js.map +1 -0
- package/core/components/ForEach.d.ts +10 -0
- package/core/components/ForEach.js +86 -0
- package/core/components/ForEach.js.map +1 -0
- package/core/components/GridPanel.d.ts +9 -0
- package/core/components/GridPanel.js +29 -0
- package/core/components/GridPanel.js.map +1 -0
- package/core/components/HBox.d.ts +4 -0
- package/core/components/HBox.js +9 -0
- package/core/components/HBox.js.map +1 -0
- package/core/components/LazyLoading.d.ts +18 -0
- package/core/components/LazyLoading.js +35 -0
- package/core/components/LazyLoading.js.map +1 -0
- package/core/components/ListPanel.d.ts +26 -0
- package/core/components/ListPanel.js +152 -0
- package/core/components/ListPanel.js.map +1 -0
- package/core/components/PopUpButton.d.ts +17 -0
- package/core/components/PopUpButton.js +54 -0
- package/core/components/PopUpButton.js.map +1 -0
- package/core/components/ScrollPanel.d.ts +13 -0
- package/core/components/ScrollPanel.js +34 -0
- package/core/components/ScrollPanel.js.map +1 -0
- package/core/components/StackPanel.d.ts +4 -0
- package/core/components/StackPanel.js +9 -0
- package/core/components/StackPanel.js.map +1 -0
- package/core/components/TabItem.d.ts +18 -0
- package/core/components/TabItem.js +81 -0
- package/core/components/TabItem.js.map +1 -0
- package/core/components/TabPanel.d.ts +24 -0
- package/core/components/TabPanel.js +95 -0
- package/core/components/TabPanel.js.map +1 -0
- package/core/components/TablePanel.d.ts +32 -0
- package/core/components/TablePanel.js +125 -0
- package/core/components/TablePanel.js.map +1 -0
- package/core/components/TextEdit.d.ts +31 -0
- package/core/components/TextEdit.js +172 -0
- package/core/components/TextEdit.js.map +1 -0
- package/core/components/TextField.d.ts +32 -0
- package/core/components/TextField.js +147 -0
- package/core/components/TextField.js.map +1 -0
- package/core/components/ToggleButton.d.ts +6 -0
- package/core/components/ToggleButton.js +19 -0
- package/core/components/ToggleButton.js.map +1 -0
- package/core/components/VBox.d.ts +4 -0
- package/core/components/VBox.js +9 -0
- package/core/components/VBox.js.map +1 -0
- package/core/components/VirtualScroll copy 2.d.ts +24 -0
- package/core/components/VirtualScroll copy 2.js +98 -0
- package/core/components/VirtualScroll copy 2.js.map +1 -0
- package/core/components/VirtualScroll.d.ts +19 -0
- package/core/components/VirtualScroll.js +46 -0
- package/core/components/VirtualScroll.js.map +1 -0
- package/core/components/index.d.ts +26 -0
- package/core/components/index.js +28 -0
- package/core/components/index.js.map +1 -0
- package/core/decorators/RegisterComponent.d.ts +8 -0
- package/core/decorators/RegisterComponent.js +5 -0
- package/core/decorators/RegisterComponent.js.map +1 -0
- package/core/decorators/StyleLink.d.ts +1 -0
- package/core/decorators/StyleLink.js +13 -0
- package/core/decorators/StyleLink.js.map +1 -0
- package/core/decorators/index.d.ts +4 -0
- package/core/decorators/index.js +6 -0
- package/core/decorators/index.js.map +1 -0
- package/core/element/AbbreviationElement.d.ts +6 -0
- package/core/element/AbbreviationElement.js +11 -0
- package/core/element/AbbreviationElement.js.map +1 -0
- package/core/element/AnchorElement.d.ts +23 -0
- package/core/element/AnchorElement.js +29 -0
- package/core/element/AnchorElement.js.map +1 -0
- package/core/element/AreaElement.d.ts +17 -0
- package/core/element/AreaElement.js +10 -0
- package/core/element/AreaElement.js.map +1 -0
- package/core/element/ArticleElement.d.ts +4 -0
- package/core/element/ArticleElement.js +11 -0
- package/core/element/ArticleElement.js.map +1 -0
- package/core/element/AudioElement.d.ts +11 -0
- package/core/element/AudioElement.js +9 -0
- package/core/element/AudioElement.js.map +1 -0
- package/core/element/BaseElement.d.ts +7 -0
- package/core/element/BaseElement.js +10 -0
- package/core/element/BaseElement.js.map +1 -0
- package/core/element/BodyElement.d.ts +4 -0
- package/core/element/BodyElement.js +10 -0
- package/core/element/BodyElement.js.map +1 -0
- package/core/element/BoldElement.d.ts +4 -0
- package/core/element/BoldElement.js +9 -0
- package/core/element/BoldElement.js.map +1 -0
- package/core/element/BreakElement.d.ts +4 -0
- package/core/element/BreakElement.js +9 -0
- package/core/element/BreakElement.js.map +1 -0
- package/core/element/ButtonElement.d.ts +25 -0
- package/core/element/ButtonElement.js +46 -0
- package/core/element/ButtonElement.js.map +1 -0
- package/core/element/CanvasElement.d.ts +4 -0
- package/core/element/CanvasElement.js +13 -0
- package/core/element/CanvasElement.js.map +1 -0
- package/core/element/CaptionElement.d.ts +4 -0
- package/core/element/CaptionElement.js +12 -0
- package/core/element/CaptionElement.js.map +1 -0
- package/core/element/CiteElement.d.ts +4 -0
- package/core/element/CiteElement.js +10 -0
- package/core/element/CiteElement.js.map +1 -0
- package/core/element/CodeElement.d.ts +6 -0
- package/core/element/CodeElement.js +12 -0
- package/core/element/CodeElement.js.map +1 -0
- package/core/element/DataListElement.d.ts +4 -0
- package/core/element/DataListElement.js +12 -0
- package/core/element/DataListElement.js.map +1 -0
- package/core/element/DefinitionDescriptionElement.d.ts +4 -0
- package/core/element/DefinitionDescriptionElement.js +12 -0
- package/core/element/DefinitionDescriptionElement.js.map +1 -0
- package/core/element/DefinitionElement.d.ts +4 -0
- package/core/element/DefinitionElement.js +12 -0
- package/core/element/DefinitionElement.js.map +1 -0
- package/core/element/DeletedTextElement.d.ts +6 -0
- package/core/element/DeletedTextElement.js +14 -0
- package/core/element/DeletedTextElement.js.map +1 -0
- package/core/element/DetailsElement.d.ts +8 -0
- package/core/element/DetailsElement.js +27 -0
- package/core/element/DetailsElement.js.map +1 -0
- package/core/element/DialogElement.d.ts +6 -0
- package/core/element/DialogElement.js +13 -0
- package/core/element/DialogElement.js.map +1 -0
- package/core/element/DivElement.d.ts +4 -0
- package/core/element/DivElement.js +9 -0
- package/core/element/DivElement.js.map +1 -0
- package/core/element/EmElement.d.ts +4 -0
- package/core/element/EmElement.js +9 -0
- package/core/element/EmElement.js.map +1 -0
- package/core/element/EmbedElement.d.ts +9 -0
- package/core/element/EmbedElement.js +18 -0
- package/core/element/EmbedElement.js.map +1 -0
- package/core/element/FieldSetElement.d.ts +8 -0
- package/core/element/FieldSetElement.js +33 -0
- package/core/element/FieldSetElement.js.map +1 -0
- package/core/element/FooterElement.d.ts +4 -0
- package/core/element/FooterElement.js +12 -0
- package/core/element/FooterElement.js.map +1 -0
- package/core/element/FormElement.d.ts +13 -0
- package/core/element/FormElement.js +9 -0
- package/core/element/FormElement.js.map +1 -0
- package/core/element/Fragment.d.ts +33 -0
- package/core/element/Fragment.js +146 -0
- package/core/element/Fragment.js.map +1 -0
- package/core/element/H1Element.d.ts +4 -0
- package/core/element/H1Element.js +9 -0
- package/core/element/H1Element.js.map +1 -0
- package/core/element/H2Element.d.ts +4 -0
- package/core/element/H2Element.js +9 -0
- package/core/element/H2Element.js.map +1 -0
- package/core/element/H3Element.d.ts +4 -0
- package/core/element/H3Element.js +9 -0
- package/core/element/H3Element.js.map +1 -0
- package/core/element/H4Element.d.ts +4 -0
- package/core/element/H4Element.js +9 -0
- package/core/element/H4Element.js.map +1 -0
- package/core/element/H5Element.d.ts +4 -0
- package/core/element/H5Element.js +9 -0
- package/core/element/H5Element.js.map +1 -0
- package/core/element/H6Element.d.ts +4 -0
- package/core/element/H6Element.js +9 -0
- package/core/element/H6Element.js.map +1 -0
- package/core/element/HeadElement.d.ts +4 -0
- package/core/element/HeadElement.js +10 -0
- package/core/element/HeadElement.js.map +1 -0
- package/core/element/HeaderElement.d.ts +4 -0
- package/core/element/HeaderElement.js +12 -0
- package/core/element/HeaderElement.js.map +1 -0
- package/core/element/HorizontalRuleElement.d.ts +4 -0
- package/core/element/HorizontalRuleElement.js +12 -0
- package/core/element/HorizontalRuleElement.js.map +1 -0
- package/core/element/HtmlElement.d.ts +8 -0
- package/core/element/HtmlElement.js +18 -0
- package/core/element/HtmlElement.js.map +1 -0
- package/core/element/IFrameElement.d.ts +27 -0
- package/core/element/IFrameElement.js +66 -0
- package/core/element/IFrameElement.js.map +1 -0
- package/core/element/ILayout.d.ts +4 -0
- package/core/element/ILayout.js +8 -0
- package/core/element/ILayout.js.map +1 -0
- package/core/element/IconElement.d.ts +13 -0
- package/core/element/IconElement.js +31 -0
- package/core/element/IconElement.js.map +1 -0
- package/core/element/ImageElement.d.ts +18 -0
- package/core/element/ImageElement.js +16 -0
- package/core/element/ImageElement.js.map +1 -0
- package/core/element/InputElement.d.ts +37 -0
- package/core/element/InputElement.js +81 -0
- package/core/element/InputElement.js.map +1 -0
- package/core/element/LabelElement.d.ts +7 -0
- package/core/element/LabelElement.js +9 -0
- package/core/element/LabelElement.js.map +1 -0
- package/core/element/LegendElement.d.ts +6 -0
- package/core/element/LegendElement.js +14 -0
- package/core/element/LegendElement.js.map +1 -0
- package/core/element/ListItemElement.d.ts +11 -0
- package/core/element/ListItemElement.js +27 -0
- package/core/element/ListItemElement.js.map +1 -0
- package/core/element/MainElement.d.ts +4 -0
- package/core/element/MainElement.js +9 -0
- package/core/element/MainElement.js.map +1 -0
- package/core/element/NavElement.d.ts +4 -0
- package/core/element/NavElement.js +9 -0
- package/core/element/NavElement.js.map +1 -0
- package/core/element/OrderedListElement.d.ts +4 -0
- package/core/element/OrderedListElement.js +9 -0
- package/core/element/OrderedListElement.js.map +1 -0
- package/core/element/ParagraphElement.d.ts +4 -0
- package/core/element/ParagraphElement.js +9 -0
- package/core/element/ParagraphElement.js.map +1 -0
- package/core/element/PreElement.d.ts +4 -0
- package/core/element/PreElement.js +9 -0
- package/core/element/PreElement.js.map +1 -0
- package/core/element/SectionElement.d.ts +4 -0
- package/core/element/SectionElement.js +11 -0
- package/core/element/SectionElement.js.map +1 -0
- package/core/element/SelectElement.d.ts +4 -0
- package/core/element/SelectElement.js +11 -0
- package/core/element/SelectElement.js.map +1 -0
- package/core/element/SourceElement.d.ts +7 -0
- package/core/element/SourceElement.js +13 -0
- package/core/element/SourceElement.js.map +1 -0
- package/core/element/SpanElement.d.ts +4 -0
- package/core/element/SpanElement.js +9 -0
- package/core/element/SpanElement.js.map +1 -0
- package/core/element/StrongElement.d.ts +4 -0
- package/core/element/StrongElement.js +11 -0
- package/core/element/StrongElement.js.map +1 -0
- package/core/element/StyleElement.d.ts +4 -0
- package/core/element/StyleElement.js +9 -0
- package/core/element/StyleElement.js.map +1 -0
- package/core/element/SummaryElement.d.ts +4 -0
- package/core/element/SummaryElement.js +11 -0
- package/core/element/SummaryElement.js.map +1 -0
- package/core/element/SvgElement.d.ts +17 -0
- package/core/element/SvgElement.js +149 -0
- package/core/element/SvgElement.js.map +1 -0
- package/core/element/TableBodyElement.d.ts +4 -0
- package/core/element/TableBodyElement.js +9 -0
- package/core/element/TableBodyElement.js.map +1 -0
- package/core/element/TableCellElement.d.ts +9 -0
- package/core/element/TableCellElement.js +24 -0
- package/core/element/TableCellElement.js.map +1 -0
- package/core/element/TableColElement.d.ts +6 -0
- package/core/element/TableColElement.js +12 -0
- package/core/element/TableColElement.js.map +1 -0
- package/core/element/TableColGroupElement.d.ts +6 -0
- package/core/element/TableColGroupElement.js +14 -0
- package/core/element/TableColGroupElement.js.map +1 -0
- package/core/element/TableElement.d.ts +44 -0
- package/core/element/TableElement.js +227 -0
- package/core/element/TableElement.js.map +1 -0
- package/core/element/TableFootElement.d.ts +4 -0
- package/core/element/TableFootElement.js +9 -0
- package/core/element/TableFootElement.js.map +1 -0
- package/core/element/TableFootRowElement.d.ts +8 -0
- package/core/element/TableFootRowElement.js +22 -0
- package/core/element/TableFootRowElement.js.map +1 -0
- package/core/element/TableHeadCellElement.d.ts +9 -0
- package/core/element/TableHeadCellElement.js +23 -0
- package/core/element/TableHeadCellElement.js.map +1 -0
- package/core/element/TableHeadElement.d.ts +4 -0
- package/core/element/TableHeadElement.js +9 -0
- package/core/element/TableHeadElement.js.map +1 -0
- package/core/element/TableHeadRowElement.d.ts +10 -0
- package/core/element/TableHeadRowElement.js +28 -0
- package/core/element/TableHeadRowElement.js.map +1 -0
- package/core/element/TableRowElement.d.ts +10 -0
- package/core/element/TableRowElement.js +28 -0
- package/core/element/TableRowElement.js.map +1 -0
- package/core/element/TextAreaElement.d.ts +6 -0
- package/core/element/TextAreaElement.js +9 -0
- package/core/element/TextAreaElement.js.map +1 -0
- package/core/element/UListElement.d.ts +4 -0
- package/core/element/UListElement.js +9 -0
- package/core/element/UListElement.js.map +1 -0
- package/core/element/VideoElement.d.ts +12 -0
- package/core/element/VideoElement.js +15 -0
- package/core/element/VideoElement.js.map +1 -0
- package/core/element/index.d.ts +71 -0
- package/core/element/index.js +72 -0
- package/core/element/index.js.map +1 -0
- package/core/event/index.d.ts +16 -0
- package/core/event/index.js +75 -0
- package/core/event/index.js.map +1 -0
- package/core/index.d.ts +9 -0
- package/core/index.js +10 -0
- package/core/index.js.map +1 -0
- package/core/ref/RefBoolean.d.ts +26 -0
- package/core/ref/RefBoolean.js +58 -0
- package/core/ref/RefBoolean.js.map +1 -0
- package/core/ref/RefContainer.d.ts +25 -0
- package/core/ref/RefContainer.js +105 -0
- package/core/ref/RefContainer.js.map +1 -0
- package/core/ref/RefList.d.ts +51 -0
- package/core/ref/RefList.js +155 -0
- package/core/ref/RefList.js.map +1 -0
- package/core/ref/RefMap.d.ts +25 -0
- package/core/ref/RefMap.js +71 -0
- package/core/ref/RefMap.js.map +1 -0
- package/core/ref/RefNumber.d.ts +30 -0
- package/core/ref/RefNumber.js +69 -0
- package/core/ref/RefNumber.js.map +1 -0
- package/core/ref/RefObject.d.ts +30 -0
- package/core/ref/RefObject.js +211 -0
- package/core/ref/RefObject.js.map +1 -0
- package/core/ref/RefProperty.d.ts +3 -0
- package/core/ref/RefProperty.js +46 -0
- package/core/ref/RefProperty.js.map +1 -0
- package/core/ref/RefSet.d.ts +25 -0
- package/core/ref/RefSet.js +72 -0
- package/core/ref/RefSet.js.map +1 -0
- package/core/ref/RefState.d.ts +23 -0
- package/core/ref/RefState.js +79 -0
- package/core/ref/RefState.js.map +1 -0
- package/core/ref/RefString.d.ts +75 -0
- package/core/ref/RefString.js +202 -0
- package/core/ref/RefString.js.map +1 -0
- package/core/ref/index.d.ts +21 -0
- package/core/ref/index.js +64 -0
- package/core/ref/index.js.map +1 -0
- package/core/router/RouteView.d.ts +19 -0
- package/core/router/RouteView.js +75 -0
- package/core/router/RouteView.js.map +1 -0
- package/core/router/Router.d.ts +70 -0
- package/core/router/Router.js +287 -0
- package/core/router/Router.js.map +1 -0
- package/core/router/RouterEvent.d.ts +36 -0
- package/core/router/RouterEvent.js +43 -0
- package/core/router/RouterEvent.js.map +1 -0
- package/core/router/RouterGuard.d.ts +12 -0
- package/core/router/RouterGuard.js +3 -0
- package/core/router/RouterGuard.js.map +1 -0
- package/core/router/index.d.ts +4 -0
- package/core/router/index.js +5 -0
- package/core/router/index.js.map +1 -0
- package/core/styles/index.d.ts +97 -0
- package/core/styles/index.js +36 -0
- package/core/styles/index.js.map +1 -0
- package/global/index.d.ts +79 -0
- package/global/index.js +931 -0
- package/global/index.js.map +1 -0
- package/global/safari-polyfill.d.ts +0 -0
- package/global/safari-polyfill.js +234 -0
- package/global/safari-polyfill.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js.map +1 -0
- package/package.json +7 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class TableHeadElement extends HTMLTableSectionElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-thead-element", TableHeadElement, { extends: "thead" });
|
|
9
|
+
//# sourceMappingURL=TableHeadElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHeadElement.js","sourceRoot":"","sources":["../../../src/core/element/TableHeadElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,gBAAiB,SAAQ,uBAAuB;IAC5D,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentProps, TableCellElement } from "../../";
|
|
2
|
+
export declare class TableHeadRowElement extends HTMLTableRowElement {
|
|
3
|
+
value: any[] | undefined;
|
|
4
|
+
constructor(props?: ComponentProps & {
|
|
5
|
+
cells?: TableCellElement[];
|
|
6
|
+
value?: any[];
|
|
7
|
+
});
|
|
8
|
+
addCells(...cells: TableCellElement[]): void;
|
|
9
|
+
addCell(cell: TableCellElement): TableCellElement;
|
|
10
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component, TableCellElement } from "../../";
|
|
2
|
+
export class TableHeadRowElement extends HTMLTableRowElement {
|
|
3
|
+
value;
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super();
|
|
6
|
+
this.value = props?.value;
|
|
7
|
+
if (props?.cells) {
|
|
8
|
+
this.addCells(...props.cells);
|
|
9
|
+
}
|
|
10
|
+
else if (this.value) {
|
|
11
|
+
this.addCells(...this.value.map((cell) => cell instanceof TableCellElement ? cell : new TableCellElement({ value: cell })));
|
|
12
|
+
}
|
|
13
|
+
delete props?.cells;
|
|
14
|
+
delete props?.value;
|
|
15
|
+
Component.applyProps(this, props);
|
|
16
|
+
}
|
|
17
|
+
addCells(...cells) {
|
|
18
|
+
cells.forEach((cell) => {
|
|
19
|
+
this.appendChild(cell);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
addCell(cell) {
|
|
23
|
+
this.appendChild(cell);
|
|
24
|
+
return cell;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
customElements.define("base-th-row-element", TableHeadRowElement, { extends: "tr" });
|
|
28
|
+
//# sourceMappingURL=TableHeadRowElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHeadRowElement.js","sourceRoot":"","sources":["../../../src/core/element/TableHeadRowElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAErE,MAAM,OAAO,mBAAoB,SAAQ,mBAAmB;IAC3D,KAAK,CAAoB;IACzB,YACC,KAGC;QAED,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,EAAE,KAAK,CAAC;QAC1B,IAAI,KAAK,EAAE,KAAK,EAAE,CAAC;YAClB,IAAI,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;aAAM,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACvB,IAAI,CAAC,QAAQ,CAAC,GAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,YAAY,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,gBAAgB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9H,CAAC;QAED,OAAO,KAAK,EAAE,KAAK,CAAC;QACpB,OAAO,KAAK,EAAE,KAAK,CAAC;QACpB,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;IACD,QAAQ,CAAC,GAAG,KAAyB;QACpC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACtB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,IAAsB;QAC7B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvB,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AACD,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentProps, TableCellElement } from "../../";
|
|
2
|
+
export declare class TableRowElement extends HTMLTableRowElement implements IComponent {
|
|
3
|
+
value: any[] | undefined;
|
|
4
|
+
constructor(props?: ComponentProps & {
|
|
5
|
+
cells?: TableCellElement[];
|
|
6
|
+
value?: any[];
|
|
7
|
+
});
|
|
8
|
+
addCells(...cells: any[]): void;
|
|
9
|
+
addCell(cell: any): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component, TableCellElement } from "../../";
|
|
2
|
+
export class TableRowElement extends HTMLTableRowElement {
|
|
3
|
+
value;
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super();
|
|
6
|
+
this.value = props?.value;
|
|
7
|
+
if (props?.cells) {
|
|
8
|
+
this.addCells(...props.cells);
|
|
9
|
+
}
|
|
10
|
+
else if (this.value) {
|
|
11
|
+
this.addCells(...this.value.map((cell) => cell instanceof TableCellElement ? cell : new TableCellElement({ value: cell })));
|
|
12
|
+
}
|
|
13
|
+
delete props?.cells;
|
|
14
|
+
delete props?.value;
|
|
15
|
+
Component.applyProps(this, props);
|
|
16
|
+
}
|
|
17
|
+
addCells(...cells) {
|
|
18
|
+
cells.forEach((cell) => {
|
|
19
|
+
this.appendChild(cell);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
addCell(cell) {
|
|
23
|
+
this.appendChild(cell);
|
|
24
|
+
return cell;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
customElements.define("base-tr-element", TableRowElement, { extends: "tr" });
|
|
28
|
+
//# sourceMappingURL=TableRowElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableRowElement.js","sourceRoot":"","sources":["../../../src/core/element/TableRowElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAErE,MAAM,OAAO,eAAgB,SAAQ,mBAAmB;IACvD,KAAK,CAAoB;IACzB,YACC,KAGC;QAED,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,EAAE,KAAK,CAAC;QAC1B,IAAI,KAAK,EAAE,KAAK,EAAE,CAAC;YAClB,IAAI,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;aAAM,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACvB,IAAI,CAAC,QAAQ,CAAC,GAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,YAAY,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,gBAAgB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9H,CAAC;QACD,OAAO,KAAK,EAAE,KAAK,CAAC;QACpB,OAAO,KAAK,EAAE,KAAK,CAAC;QACpB,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;IACD,QAAQ,CAAC,GAAG,KAAK;QAChB,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACtB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,IAAI;QACX,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACvB,OAAO,IAAI,CAAC;IACb,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class TextAreaElement extends HTMLTextAreaElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-textarea-element", TextAreaElement, { extends: "textarea" });
|
|
9
|
+
//# sourceMappingURL=TextAreaElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextAreaElement.js","sourceRoot":"","sources":["../../../src/core/element/TextAreaElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAa,MAAM,QAAQ,CAAC;AAE9D,MAAM,OAAO,eAAgB,SAAQ,mBAAmB;IACvD,YAAY,KAA8C;QACzD,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,uBAAuB,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class UListElement extends HTMLUListElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-ul-element", UListElement, { extends: "ul" });
|
|
9
|
+
//# sourceMappingURL=UListElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UListElement.js","sourceRoot":"","sources":["../../../src/core/element/UListElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACjD,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps } from "../../";
|
|
2
|
+
export declare class VideoElement extends HTMLVideoElement implements IComponent {
|
|
3
|
+
constructor(props?: ComponentProps & {
|
|
4
|
+
autoplay?: boolean;
|
|
5
|
+
controls?: boolean;
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
muted?: boolean;
|
|
8
|
+
poster?: string;
|
|
9
|
+
preload?: "auto" | "metadata" | "none";
|
|
10
|
+
src?: string;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Component, SourceElement } from "../../";
|
|
2
|
+
// <video>
|
|
3
|
+
export class VideoElement extends HTMLVideoElement {
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super();
|
|
6
|
+
const src = props?.src;
|
|
7
|
+
delete props?.src;
|
|
8
|
+
if (src) {
|
|
9
|
+
this.appendChild(new SourceElement({ src: src }));
|
|
10
|
+
}
|
|
11
|
+
Component.applyProps(this, props);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
customElements.define("base-video-element", VideoElement, { extends: "video" });
|
|
15
|
+
//# sourceMappingURL=VideoElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoElement.js","sourceRoot":"","sources":["../../../src/core/element/VideoElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAClE,UAAU;AACV,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACjD,YACC,KAQC;QAED,KAAK,EAAE,CAAC;QACR,MAAM,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC;QACvB,OAAO,KAAK,EAAE,GAAG,CAAC;QAClB,IAAI,GAAG,EAAE,CAAC;YACT,IAAI,CAAC,WAAW,CAAC,IAAI,aAAa,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;QACnD,CAAC;QACD,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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, type InputType, type InputProps } 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";
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
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 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/event/index.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,cAAe,S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C,mBAAmB,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBAC9C,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAEM,MAAM,CAAC,oBAAoB,CAAC,SAAqB;QACtD,KAAK,IAAI,IAAI,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;YAC9C,cAAc,CAAC,mBAAmB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC;IACH,CAAC;IAEM,MAAM,CAAC,WAAW,CAAC,IAAY;QACpC,MAAM,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,EAAE,CAAC;YACN,KAAK,IAAI,SAAS,IAAI,CAAC,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC;gBAC9C,cAAc,CAAC,oBAAoB,CAAC,SAAS,CAAC,CAAC;YACjD,CAAC;YACD,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACrC,CAAC;IACH,CAAC"}
|
package/core/index.d.ts
ADDED
package/core/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./ref";
|
|
2
|
+
export * from "./app";
|
|
3
|
+
export * from "./app/Validate";
|
|
4
|
+
export * from "../global";
|
|
5
|
+
export * from "./styles";
|
|
6
|
+
export * from "./decorators";
|
|
7
|
+
export * from "./element";
|
|
8
|
+
export * from "./components";
|
|
9
|
+
export * from "./router";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAA;AACrB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ref } from ".";
|
|
2
|
+
import { RefContainer } from "./RefContainer";
|
|
3
|
+
export declare function refBoolean(value: boolean): RefBoolean;
|
|
4
|
+
export type refBoolean = boolean | RefBoolean;
|
|
5
|
+
export declare class RefBoolean implements Boolean, ref<boolean> {
|
|
6
|
+
readonly container: RefContainer;
|
|
7
|
+
readonly refKey: string;
|
|
8
|
+
constructor(value: boolean, refKey?: string);
|
|
9
|
+
private emit;
|
|
10
|
+
subscribe(target: (arg: boolean) => void): boolean;
|
|
11
|
+
subscribe(target: (arg: boolean) => void, onUnsubscribe: Function): boolean;
|
|
12
|
+
subscribe(target: object, propertyName: string | symbol): boolean;
|
|
13
|
+
subscribe(target: object, propertyName: string | symbol, onUnsubscribe: Function): boolean;
|
|
14
|
+
subscribe(target: object | ((arg: boolean) => void), propertyName: string | symbol | Function, onUnsubscribe?: Function): boolean;
|
|
15
|
+
unsubscribe(target: (arg: boolean) => void): boolean;
|
|
16
|
+
unsubscribe(target: object, propertyName: string | symbol): boolean;
|
|
17
|
+
[Symbol.toPrimitive](hint: string): boolean;
|
|
18
|
+
static get [Symbol.species](): BooleanConstructor;
|
|
19
|
+
get value(): boolean;
|
|
20
|
+
set value(value: boolean);
|
|
21
|
+
valueOf(): boolean;
|
|
22
|
+
toJSON(): boolean | {
|
|
23
|
+
value: boolean;
|
|
24
|
+
};
|
|
25
|
+
toString(): string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Ref } from ".";
|
|
2
|
+
import { RefContainer } from "./RefContainer";
|
|
3
|
+
export function refBoolean(value) {
|
|
4
|
+
return new RefBoolean(value);
|
|
5
|
+
}
|
|
6
|
+
Object.defineProperty(refBoolean, Symbol.hasInstance, {
|
|
7
|
+
value: function (instance) {
|
|
8
|
+
return !!instance && instance instanceof RefBoolean;
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
export class RefBoolean {
|
|
12
|
+
container;
|
|
13
|
+
refKey;
|
|
14
|
+
constructor(value, refKey) {
|
|
15
|
+
this.refKey = refKey;
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
refKey && Ref.set(refKey, this);
|
|
18
|
+
this.container = new RefContainer(value);
|
|
19
|
+
}
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
emit(propertyName, value) {
|
|
22
|
+
if (this.value === value)
|
|
23
|
+
return;
|
|
24
|
+
this.container.emitAll(propertyName, (this.container.value = value.valueOf()));
|
|
25
|
+
}
|
|
26
|
+
subscribe(target, propertyName, onUnsubscribe) {
|
|
27
|
+
return this.container.emit(this.container.subscribe(target, propertyName, onUnsubscribe), this.value);
|
|
28
|
+
}
|
|
29
|
+
unsubscribe(targe, propertyName = "") {
|
|
30
|
+
return this.container.unsubscribe(targe, propertyName);
|
|
31
|
+
}
|
|
32
|
+
[Symbol.toPrimitive](hint) {
|
|
33
|
+
if (hint === "boolean" || hint === "default") {
|
|
34
|
+
return this.value;
|
|
35
|
+
}
|
|
36
|
+
return this.valueOf();
|
|
37
|
+
}
|
|
38
|
+
static get [Symbol.species]() {
|
|
39
|
+
return Boolean;
|
|
40
|
+
}
|
|
41
|
+
get value() {
|
|
42
|
+
return this.container.value.valueOf();
|
|
43
|
+
}
|
|
44
|
+
set value(value) {
|
|
45
|
+
this.emit("value", value);
|
|
46
|
+
}
|
|
47
|
+
valueOf() {
|
|
48
|
+
return this.value.valueOf();
|
|
49
|
+
}
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
toJSON() {
|
|
52
|
+
return this.container.root ? this.value : { value: this.value };
|
|
53
|
+
}
|
|
54
|
+
toString() {
|
|
55
|
+
return this.container.toString();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=RefBoolean.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RefBoolean.js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AE,eAAgC,EAAE;QAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACzD,CAAC;IAED,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAY;QAC/B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YAC7C,OAAO,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;IAED,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;QACzB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,CAAA;IACvC,CAAC;IAED,IAAI,KAAK,CAAC,KAAc;QACtB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IACD,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IAC9B,CAAC;IACD,aAAa;IACb,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;IAClE,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const refSubscriber: unique symbol;
|
|
2
|
+
interface IRefSubscriber {
|
|
3
|
+
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
|
+
constructor(value?: any, root?: RefContainer);
|
|
13
|
+
emit(subscriber: IRefSubscriber, value: any): boolean;
|
|
14
|
+
emitAll(propertyName: string | symbol, value: any): any;
|
|
15
|
+
getSubscriber(target: object | Function, propertyName: string | symbol | Function): {
|
|
16
|
+
subscriber?: IRefSubscriber;
|
|
17
|
+
index: number;
|
|
18
|
+
};
|
|
19
|
+
subscribe(target: any, propertyName: any, onUnsubscribe?: any): IRefSubscriber;
|
|
20
|
+
unsubscribe(target: object | Function, propertyName: string | symbol): boolean;
|
|
21
|
+
[Symbol.toPrimitive](hint: string): string;
|
|
22
|
+
toString(): string;
|
|
23
|
+
toJSON(): any;
|
|
24
|
+
}
|
|
25
|
+
export {};
|