typecomposer 0.1.47 → 0.1.50
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/assets/index.js +1 -2
- package/core/components/AlertPanel.d.ts +6 -6
- package/core/components/AlertPanel.js +1 -75
- package/core/components/AlertPanel.js.map +1 -1
- package/core/components/AvatarPanel.d.ts +2 -2
- package/core/components/AvatarPanel.js +1 -62
- package/core/components/AvatarPanel.js.map +1 -1
- package/core/components/BorderPanel.d.ts +2 -2
- package/core/components/BorderPanel.js +1 -90
- package/core/components/BorderPanel.js.map +1 -1
- package/core/components/CardPanel.d.ts +2 -2
- package/core/components/CardPanel.js +1 -11
- package/core/components/CardPanel.js.map +1 -1
- package/core/components/CheckBox.d.ts +2 -2
- package/core/components/CheckBox.js +1 -109
- package/core/components/CheckBox.js.map +1 -1
- package/core/components/ColorPicker.d.ts +2 -2
- package/core/components/ColorPicker.js +1 -36
- package/core/components/ColorPicker.js.map +1 -1
- package/core/components/ContextMenu.d.ts +3 -3
- package/core/components/ContextMenu.js +1 -64
- package/core/components/ContextMenu.js.map +1 -1
- package/core/components/DialogPanel.d.ts +2 -2
- package/core/components/DialogPanel.js +1 -62
- package/core/components/DialogPanel.js.map +1 -1
- package/core/components/DropDown.d.ts +3 -3
- package/core/components/DropDown.js +1 -231
- package/core/components/DropDown.js.map +1 -1
- package/core/components/FlowPanel.d.ts +2 -2
- package/core/components/FlowPanel.js +1 -40
- package/core/components/FlowPanel.js.map +1 -1
- package/core/components/ForEach.d.ts +2 -2
- package/core/components/ForEach.js +1 -88
- package/core/components/ForEach.js.map +1 -1
- package/core/components/GridPanel.d.ts +4 -7
- package/core/components/GridPanel.js +1 -30
- package/core/components/GridPanel.js.map +1 -1
- package/core/components/HBox.d.ts +2 -2
- package/core/components/HBox.js +1 -10
- package/core/components/HBox.js.map +1 -1
- package/core/components/LazyLoading.d.ts +2 -2
- package/core/components/LazyLoading.js +1 -36
- package/core/components/LazyLoading.js.map +1 -1
- package/core/components/ListPanel.d.ts +2 -2
- package/core/components/ListPanel.js +1 -153
- package/core/components/ListPanel.js.map +1 -1
- package/core/components/PopUpButton.d.ts +2 -2
- package/core/components/PopUpButton.js +1 -57
- package/core/components/PopUpButton.js.map +1 -1
- package/core/components/ScrollPanel.d.ts +2 -2
- package/core/components/ScrollPanel.js +1 -35
- package/core/components/ScrollPanel.js.map +1 -1
- package/core/components/SliderPanel.d.ts +2 -2
- package/core/components/SliderPanel.js +1 -135
- package/core/components/SliderPanel.js.map +1 -1
- package/core/components/StackPanel.d.ts +2 -2
- package/core/components/StackPanel.js +1 -10
- package/core/components/StackPanel.js.map +1 -1
- package/core/components/TabItem.js +1 -84
- package/core/components/TabPanel.d.ts +2 -2
- package/core/components/TabPanel.js +1 -96
- package/core/components/TabPanel.js.map +1 -1
- package/core/components/TextEdit.js +1 -174
- package/core/components/TextField.d.ts +2 -2
- package/core/components/TextField.js +1 -140
- package/core/components/TextField.js.map +1 -1
- package/core/components/ToggleButton.d.ts +2 -2
- package/core/components/ToggleButton.js +1 -20
- package/core/components/ToggleButton.js.map +1 -1
- package/core/components/Tooltip.d.ts +4 -6
- package/core/components/Tooltip.js +1 -14
- package/core/components/Tooltip.js.map +1 -1
- package/core/components/VBox.d.ts +2 -2
- package/core/components/VBox.js +1 -10
- package/core/components/VBox.js.map +1 -1
- package/core/components/VirtualScroll.d.ts +2 -2
- package/core/components/VirtualScroll.js +1 -47
- package/core/components/index.d.ts +1 -2
- package/core/components/index.js +1 -30
- package/core/components/index.js.map +1 -1
- package/core/decorators/RegisterComponent.js +1 -20
- package/core/decorators/StyleLink.js +1 -13
- package/core/decorators/index.js +1 -6
- package/core/element/AbbreviationElement.d.ts +2 -4
- package/core/element/AbbreviationElement.js +1 -10
- package/core/element/AbbreviationElement.js.map +1 -1
- package/core/element/AnchorElement.d.ts +2 -18
- package/core/element/AnchorElement.js +1 -31
- package/core/element/AnchorElement.js.map +1 -1
- package/core/element/AreaElement.d.ts +2 -15
- package/core/element/AreaElement.js +1 -11
- package/core/element/AreaElement.js.map +1 -1
- package/core/element/ArticleElement.d.ts +2 -2
- package/core/element/ArticleElement.js +1 -12
- package/core/element/ArticleElement.js.map +1 -1
- package/core/element/AudioElement.d.ts +2 -9
- package/core/element/AudioElement.js +1 -10
- package/core/element/AudioElement.js.map +1 -1
- package/core/element/BaseElement.d.ts +2 -5
- package/core/element/BaseElement.js +1 -11
- package/core/element/BaseElement.js.map +1 -1
- package/core/element/BodyElement.d.ts +2 -2
- package/core/element/BodyElement.js +1 -11
- package/core/element/BodyElement.js.map +1 -1
- package/core/element/BoldElement.d.ts +2 -2
- package/core/element/BoldElement.js +1 -10
- package/core/element/BoldElement.js.map +1 -1
- package/core/element/BreakElement.d.ts +2 -2
- package/core/element/BreakElement.js +1 -10
- package/core/element/BreakElement.js.map +1 -1
- package/core/element/ButtonElement.d.ts +4 -21
- package/core/element/ButtonElement.js +1 -47
- package/core/element/ButtonElement.js.map +1 -1
- package/core/element/CanvasElement.d.ts +2 -2
- package/core/element/CanvasElement.js +1 -14
- package/core/element/CanvasElement.js.map +1 -1
- package/core/element/CaptionElement.d.ts +2 -2
- package/core/element/CaptionElement.js +1 -13
- package/core/element/CaptionElement.js.map +1 -1
- package/core/element/CiteElement.d.ts +2 -2
- package/core/element/CiteElement.js +1 -11
- package/core/element/CiteElement.js.map +1 -1
- package/core/element/CodeElement.d.ts +2 -2
- package/core/element/CodeElement.js +1 -13
- package/core/element/CodeElement.js.map +1 -1
- package/core/element/DataListElement.d.ts +2 -2
- package/core/element/DataListElement.js +1 -13
- package/core/element/DataListElement.js.map +1 -1
- package/core/element/DefinitionDescriptionElement.d.ts +2 -2
- package/core/element/DefinitionDescriptionElement.js +1 -13
- package/core/element/DefinitionDescriptionElement.js.map +1 -1
- package/core/element/DefinitionElement.d.ts +2 -2
- package/core/element/DefinitionElement.js +1 -13
- package/core/element/DefinitionElement.js.map +1 -1
- package/core/element/DeletedTextElement.d.ts +2 -4
- package/core/element/DeletedTextElement.js +1 -15
- package/core/element/DeletedTextElement.js.map +1 -1
- package/core/element/DetailsElement.d.ts +3 -6
- package/core/element/DetailsElement.js +1 -28
- package/core/element/DetailsElement.js.map +1 -1
- package/core/element/DialogElement.d.ts +2 -4
- package/core/element/DialogElement.js +1 -14
- package/core/element/DialogElement.js.map +1 -1
- package/core/element/DivElement.d.ts +2 -2
- package/core/element/DivElement.js +1 -10
- package/core/element/DivElement.js.map +1 -1
- package/core/element/EmElement.d.ts +2 -2
- package/core/element/EmElement.js +1 -10
- package/core/element/EmElement.js.map +1 -1
- package/core/element/EmbedElement.d.ts +2 -7
- package/core/element/EmbedElement.js +1 -19
- package/core/element/EmbedElement.js.map +1 -1
- package/core/element/FieldSetElement.d.ts +3 -6
- package/core/element/FieldSetElement.js +1 -34
- package/core/element/FieldSetElement.js.map +1 -1
- package/core/element/FooterElement.d.ts +2 -2
- package/core/element/FooterElement.js +1 -13
- package/core/element/FooterElement.js.map +1 -1
- package/core/element/FormElement.d.ts +2 -17
- package/core/element/FormElement.js +1 -36
- package/core/element/FormElement.js.map +1 -1
- package/core/element/Fragment.js +1 -103
- package/core/element/H1Element.d.ts +2 -2
- package/core/element/H1Element.js +1 -10
- package/core/element/H1Element.js.map +1 -1
- package/core/element/H2Element.d.ts +2 -2
- package/core/element/H2Element.js +1 -10
- package/core/element/H2Element.js.map +1 -1
- package/core/element/H3Element.d.ts +2 -2
- package/core/element/H3Element.js +1 -10
- package/core/element/H3Element.js.map +1 -1
- package/core/element/H4Element.d.ts +2 -2
- package/core/element/H4Element.js +1 -10
- package/core/element/H4Element.js.map +1 -1
- package/core/element/H5Element.d.ts +2 -2
- package/core/element/H5Element.js +1 -10
- package/core/element/H5Element.js.map +1 -1
- package/core/element/H6Element.d.ts +2 -2
- package/core/element/H6Element.js +1 -10
- package/core/element/H6Element.js.map +1 -1
- package/core/element/HeadElement.d.ts +2 -2
- package/core/element/HeadElement.js +1 -11
- package/core/element/HeadElement.js.map +1 -1
- package/core/element/HeaderElement.d.ts +2 -2
- package/core/element/HeaderElement.js +1 -13
- package/core/element/HeaderElement.js.map +1 -1
- package/core/element/HorizontalRuleElement.d.ts +2 -2
- package/core/element/HorizontalRuleElement.js +1 -13
- package/core/element/HorizontalRuleElement.js.map +1 -1
- package/core/element/HtmlElement.d.ts +2 -4
- package/core/element/HtmlElement.js +1 -19
- package/core/element/HtmlElement.js.map +1 -1
- package/core/element/IFrameElement.d.ts +2 -15
- package/core/element/IFrameElement.js +1 -67
- package/core/element/IFrameElement.js.map +1 -1
- package/core/element/ILayout.d.ts +2 -2
- package/core/element/ILayout.js +1 -9
- package/core/element/ILayout.js.map +1 -1
- package/core/element/IconElement.d.ts +2 -2
- package/core/element/IconElement.js +1 -32
- package/core/element/IconElement.js.map +1 -1
- package/core/element/IdiomaticElement.d.ts +2 -1
- package/core/element/IdiomaticElement.js +1 -6
- package/core/element/IdiomaticElement.js.map +1 -1
- package/core/element/ImageElement.d.ts +2 -2
- package/core/element/ImageElement.js +1 -17
- package/core/element/ImageElement.js.map +1 -1
- package/core/element/InputElement.d.ts +2 -16
- package/core/element/InputElement.js +1 -81
- package/core/element/InputElement.js.map +1 -1
- package/core/element/LabelElement.d.ts +2 -5
- package/core/element/LabelElement.js +1 -10
- package/core/element/LabelElement.js.map +1 -1
- package/core/element/LegendElement.d.ts +2 -4
- package/core/element/LegendElement.js +1 -15
- package/core/element/LegendElement.js.map +1 -1
- package/core/element/ListItemElement.d.ts +2 -4
- package/core/element/ListItemElement.js +1 -28
- package/core/element/ListItemElement.js.map +1 -1
- package/core/element/MainElement.d.ts +2 -2
- package/core/element/MainElement.js +1 -10
- package/core/element/MainElement.js.map +1 -1
- package/core/element/NavElement.d.ts +2 -2
- package/core/element/NavElement.js +1 -10
- package/core/element/NavElement.js.map +1 -1
- package/core/element/OrderedListElement.d.ts +2 -2
- package/core/element/OrderedListElement.js +1 -10
- package/core/element/OrderedListElement.js.map +1 -1
- package/core/element/ParagraphElement.d.ts +2 -2
- package/core/element/ParagraphElement.js +1 -10
- package/core/element/ParagraphElement.js.map +1 -1
- package/core/element/PreElement.d.ts +2 -2
- package/core/element/PreElement.js +1 -10
- package/core/element/PreElement.js.map +1 -1
- package/core/element/SectionElement.d.ts +2 -2
- package/core/element/SectionElement.js +1 -12
- package/core/element/SectionElement.js.map +1 -1
- package/core/element/SelectElement.d.ts +2 -2
- package/core/element/SelectElement.js +1 -12
- package/core/element/SelectElement.js.map +1 -1
- package/core/element/SourceElement.d.ts +2 -5
- package/core/element/SourceElement.js +1 -14
- package/core/element/SourceElement.js.map +1 -1
- package/core/element/SpanElement.d.ts +2 -2
- package/core/element/SpanElement.js +1 -10
- package/core/element/SpanElement.js.map +1 -1
- package/core/element/StrongElement.d.ts +2 -2
- package/core/element/StrongElement.js +1 -12
- package/core/element/StrongElement.js.map +1 -1
- package/core/element/StyleElement.d.ts +2 -2
- package/core/element/StyleElement.js +1 -10
- package/core/element/StyleElement.js.map +1 -1
- package/core/element/SummaryElement.d.ts +2 -2
- package/core/element/SummaryElement.js +1 -12
- package/core/element/SummaryElement.js.map +1 -1
- package/core/element/SvgElement.d.ts +3 -3
- package/core/element/SvgElement.js +1 -151
- package/core/element/SvgElement.js.map +1 -1
- package/core/element/TableBodyElement.d.ts +2 -2
- package/core/element/TableBodyElement.js +1 -10
- package/core/element/TableBodyElement.js.map +1 -1
- package/core/element/TableCellElement.d.ts +3 -6
- package/core/element/TableCellElement.js +1 -25
- package/core/element/TableCellElement.js.map +1 -1
- package/core/element/TableColElement.d.ts +2 -4
- package/core/element/TableColElement.js +1 -13
- package/core/element/TableColElement.js.map +1 -1
- package/core/element/TableColGroupElement.d.ts +2 -4
- package/core/element/TableColGroupElement.js +1 -15
- package/core/element/TableColGroupElement.js.map +1 -1
- package/core/element/TableElement.d.ts +2 -42
- package/core/element/TableElement.js +1 -228
- package/core/element/TableElement.js.map +1 -1
- package/core/element/TableFootElement.d.ts +2 -2
- package/core/element/TableFootElement.js +1 -10
- package/core/element/TableFootElement.js.map +1 -1
- package/core/element/TableFootRowElement.d.ts +2 -2
- package/core/element/TableFootRowElement.js +1 -23
- package/core/element/TableFootRowElement.js.map +1 -1
- package/core/element/TableHeadCellElement.d.ts +2 -2
- package/core/element/TableHeadCellElement.js +1 -24
- package/core/element/TableHeadCellElement.js.map +1 -1
- package/core/element/TableHeadElement.d.ts +2 -2
- package/core/element/TableHeadElement.js +1 -10
- package/core/element/TableHeadElement.js.map +1 -1
- package/core/element/TableHeadRowElement.d.ts +2 -2
- package/core/element/TableHeadRowElement.js +1 -29
- package/core/element/TableHeadRowElement.js.map +1 -1
- package/core/element/TableRowElement.d.ts +2 -2
- package/core/element/TableRowElement.js +1 -29
- package/core/element/TableRowElement.js.map +1 -1
- package/core/element/TextAreaElement.d.ts +2 -4
- package/core/element/TextAreaElement.js +1 -10
- package/core/element/TextAreaElement.js.map +1 -1
- package/core/element/UListElement.d.ts +2 -2
- package/core/element/UListElement.js +1 -10
- package/core/element/UListElement.js.map +1 -1
- package/core/element/VideoElement.d.ts +2 -10
- package/core/element/VideoElement.js +1 -16
- package/core/element/VideoElement.js.map +1 -1
- package/core/element/index.d.ts +3 -3
- package/core/element/index.js +1 -73
- package/core/element/index.js.map +1 -1
- package/core/event/index.js +1 -75
- package/core/index.d.ts +0 -3
- package/core/index.js +1 -10
- package/core/index.js.map +1 -1
- package/core/ref/Computed.js +1 -75
- package/core/ref/Computed.js.map +1 -1
- package/core/ref/RefBoolean.js +1 -119
- package/core/ref/RefContainer.js +1 -114
- package/core/ref/RefContainer.js.map +1 -1
- package/core/ref/RefList.js +1 -240
- package/core/ref/RefMap.js +1 -149
- package/core/ref/RefNumber.js +1 -157
- package/core/ref/RefObject.js +1 -265
- package/core/ref/RefObject.js.map +1 -1
- package/core/ref/RefProperty.js +1 -46
- package/core/ref/RefSet.js +1 -148
- package/core/ref/RefState.js +1 -89
- package/core/ref/RefString.js +1 -179
- package/core/ref/RefString.js.map +1 -1
- package/core/ref/index.js +1 -71
- package/core/router/RouteView.d.ts +2 -2
- package/core/router/RouteView.js +1 -84
- package/core/router/RouteView.js.map +1 -1
- package/core/router/Router.d.ts +8 -9
- package/core/router/Router.js +1 -307
- package/core/router/Router.js.map +1 -1
- package/core/router/RouterEvent.js +1 -43
- package/core/router/RouterGuard.js +1 -3
- package/core/router/index.js +1 -5
- package/core/styles/index.d.ts +3 -3
- package/core/styles/index.js +1 -36
- package/core/styles/index.js.map +1 -1
- package/{core/app/index.d.ts → global/app.d.ts} +5 -7
- package/global/app.js +1 -0
- package/global/app.js.map +1 -0
- package/global/index.d.ts +10 -4
- package/global/index.js +1 -1286
- package/global/index.js.map +1 -1
- package/global/safari-polyfill.js +1 -234
- package/index.d.ts +1 -0
- package/index.js +1 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/style.scss +2 -17
- package/typings/index.d.ts +58 -66
- package/LICENSE +0 -21
- package/README.md +0 -62
- 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.js +0 -181
- package/core/app/index.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/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/ref/RefObject copy.d.ts +0 -124
- package/core/ref/RefObject copy.js +0 -271
- package/core/ref/RefObject copy.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogElement.js","sourceRoot":"","sources":["../../../src/core/element/DialogElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DialogElement.js","sourceRoot":"","sources":["../../../src/core/element/DialogElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,WAAW;AACX,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAkC;QAC7C,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;IAC5D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class DivElement extends HTMLDivElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<HTMLDivElement>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class DivElement extends HTMLDivElement {
|
|
3
|
-
static TAG = "tc-div-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(DivElement.TAG, DivElement, { extends: "div" });
|
|
10
|
-
//# sourceMappingURL=DivElement.js.map
|
|
1
|
+
import{Component}from"../../";export class DivElement extends HTMLDivElement{static TAG="tc-div-element";constructor(e){super(),Component.initComponent(this,DivElement,e)}}TypeComposer.defineElement(DivElement.TAG,DivElement,{extends:"div"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DivElement.js","sourceRoot":"","sources":["../../../src/core/element/DivElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DivElement.js","sourceRoot":"","sources":["../../../src/core/element/DivElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,UAAW,SAAQ,cAAc;IAC7C,MAAM,CAAU,GAAG,GAAW,gBAAgB,CAAC;IAC/C,YAAY,KAAmC;QAC9C,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IAClD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class EmElement extends HTMLEmbedElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<EmElement>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class EmElement extends HTMLEmbedElement {
|
|
3
|
-
static TAG = "tc-em-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(EmElement.TAG, EmElement, { extends: "em" });
|
|
10
|
-
//# sourceMappingURL=EmElement.js.map
|
|
1
|
+
import{Component}from"../../";export class EmElement extends HTMLEmbedElement{static TAG="tc-em-element";constructor(e){super(),Component.initComponent(this,EmElement,e)}}TypeComposer.defineElement(EmElement.TAG,EmElement,{extends:"em"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmElement.js","sourceRoot":"","sources":["../../../src/core/element/EmElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"EmElement.js","sourceRoot":"","sources":["../../../src/core/element/EmElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,SAAU,SAAQ,gBAAgB;IAC9C,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAA8B;QACzC,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class EmbedElement extends HTMLEmbedElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
height?: number;
|
|
6
|
-
src?: string;
|
|
7
|
-
type?: string;
|
|
8
|
-
width?: number;
|
|
9
|
-
});
|
|
4
|
+
constructor(props?: ElementType<EmbedElement>);
|
|
10
5
|
}
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// <embed>
|
|
3
|
-
export class EmbedElement extends HTMLEmbedElement {
|
|
4
|
-
static TAG = "tc-embed-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
if (props?.height)
|
|
8
|
-
this.height = props.height;
|
|
9
|
-
if (props?.src)
|
|
10
|
-
this.src = props.src;
|
|
11
|
-
if (props?.type)
|
|
12
|
-
this.type = props.type;
|
|
13
|
-
if (props?.width)
|
|
14
|
-
this.width = props.width;
|
|
15
|
-
Component.applyProps(this, props);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
TypeComposer.defineElement(EmbedElement.TAG, EmbedElement, { extends: "embed" });
|
|
19
|
-
//# sourceMappingURL=EmbedElement.js.map
|
|
1
|
+
import{Component}from"../../";export class EmbedElement extends HTMLEmbedElement{static TAG="tc-embed-element";constructor(e){super(),Component.initComponent(this,EmbedElement,e)}}TypeComposer.defineElement(EmbedElement.TAG,EmbedElement,{extends:"embed"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedElement.js","sourceRoot":"","sources":["../../../src/core/element/EmbedElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"EmbedElement.js","sourceRoot":"","sources":["../../../src/core/element/EmbedElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACjD,MAAM,CAAU,GAAG,GAAW,kBAAkB,CAAC;IACjD,YAAY,KAAiC;QAC5C,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IACpD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, LegendElement } from "../../";
|
|
2
2
|
export declare class FieldSetElement extends HTMLFieldSetElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
|
|
6
|
-
legend?: string | LegendElement;
|
|
7
|
-
});
|
|
8
|
-
setLegend(legend: LegendElement | string): void;
|
|
4
|
+
constructor(props?: ElementType<FieldSetElement>);
|
|
5
|
+
set legend(element: LegendElement | string);
|
|
9
6
|
}
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
import { Component, LegendElement }
|
|
2
|
-
// <fieldset>
|
|
3
|
-
export class FieldSetElement extends HTMLFieldSetElement {
|
|
4
|
-
static TAG = "tc-fieldset-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
if (props?.name)
|
|
9
|
-
this.name = props.name;
|
|
10
|
-
if (props?.legend) {
|
|
11
|
-
if (typeof props.legend == "string") {
|
|
12
|
-
// @ts-ignore
|
|
13
|
-
this.setLegend(new LegendElement({ text: props.legend }));
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
this.setLegend(props.legend);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
setLegend(legend) {
|
|
21
|
-
const legendElement = this.querySelector("legend");
|
|
22
|
-
if (legend instanceof LegendElement) {
|
|
23
|
-
legendElement?.remove();
|
|
24
|
-
this.appendChild(legend);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
legendElement.innerHTML = legend;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
TypeComposer.defineElement(FieldSetElement.TAG, FieldSetElement, {
|
|
32
|
-
extends: "fieldset",
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=FieldSetElement.js.map
|
|
1
|
+
import{Component,LegendElement}from"../../";export class FieldSetElement extends HTMLFieldSetElement{static TAG="tc-fieldset-element";constructor(e){super(),Component.initComponent(this,FieldSetElement,e)}set legend(e){const t=this.querySelector("legend");e instanceof LegendElement?(t?.remove(),this.appendChild(e)):t?t.innerHTML=e:this.appendChild(new LegendElement({text:e}))}}TypeComposer.defineElement(FieldSetElement.TAG,FieldSetElement,{extends:"fieldset"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldSetElement.js","sourceRoot":"","sources":["../../../src/core/element/FieldSetElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FieldSetElement.js","sourceRoot":"","sources":["../../../src/core/element/FieldSetElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE/D,MAAM,OAAO,eAAgB,SAAQ,mBAAmB;IACvD,MAAM,CAAU,GAAG,GAAW,qBAAqB,CAAC;IACpD,YAAY,KAAoC;QAC/C,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IAED,IAAW,MAAM,CAAC,OAA+B;QAChD,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACnD,IAAI,OAAO,YAAY,aAAa,EAAE,CAAC;YACtC,aAAa,EAAE,MAAM,EAAE,CAAC;YACxB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC3B,CAAC;aAAM,IAAI,aAAa,EAAE,CAAC;YAC1B,aAAa,CAAC,SAAS,GAAG,OAAO,CAAC;QACnC,CAAC;aACI,CAAC;YACL,IAAI,CAAC,WAAW,CAAC,IAAI,aAAa,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;QACxD,CAAC;IACF,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,EAAE;IAChE,OAAO,EAAE,UAAU;CACnB,CAAC,CAAC"}
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// <footer>
|
|
3
|
-
export class FooterElement extends HTMLElement {
|
|
4
|
-
static TAG = "tc-footer-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
TypeComposer.defineElement(FooterElement.TAG, FooterElement, {
|
|
11
|
-
extends: "footer",
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=FooterElement.js.map
|
|
1
|
+
import{Component}from"../../";export class FooterElement extends HTMLElement{static TAG="tc-footer-element";constructor(e){super(),Component.initComponent(this,FooterElement,e)}}TypeComposer.defineElement(FooterElement.TAG,FooterElement,{extends:"footer"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FooterElement.js","sourceRoot":"","sources":["../../../src/core/element/FooterElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FooterElement.js","sourceRoot":"","sources":["../../../src/core/element/FooterElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC7C,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAmB;QAC9B,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;IAC5D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface FormElementProps extends ElementProps<HTMLElement> {
|
|
3
|
-
acceptCharset?: string;
|
|
4
|
-
action?: string;
|
|
5
|
-
enctype?: string;
|
|
6
|
-
method?: "get" | "post" | "dialog";
|
|
7
|
-
name?: string;
|
|
8
|
-
novalidate?: boolean;
|
|
9
|
-
rel?: "external" | "help" | "license" | "next" | "nofollow" | "noopener" | "noreferrer" | "opener" | "prev" | "search";
|
|
10
|
-
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
11
|
-
/**
|
|
12
|
-
* The credentials mode of the request, which indicates whether credentials will be sent with the request.
|
|
13
|
-
*/
|
|
14
|
-
credentials?: RequestCredentials;
|
|
15
|
-
onResponse?: (response: Response) => void;
|
|
16
|
-
}
|
|
1
|
+
import { ElementType } from "../../";
|
|
17
2
|
export declare class FormElement extends HTMLFormElement implements IComponent {
|
|
18
3
|
static readonly TAG: string;
|
|
19
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<FormElement>);
|
|
20
5
|
}
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class FormElement extends HTMLFormElement {
|
|
3
|
-
static TAG = "tc-form-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
if (props?.onResponse) {
|
|
7
|
-
const onResponse = props.onResponse;
|
|
8
|
-
this.onsubmit = (event) => {
|
|
9
|
-
event.preventDefault();
|
|
10
|
-
const formData = new FormData(this);
|
|
11
|
-
const entries = formData.entries();
|
|
12
|
-
const jsonObject = Object.fromEntries(entries);
|
|
13
|
-
const init = {
|
|
14
|
-
method: this.method || "get",
|
|
15
|
-
headers: {
|
|
16
|
-
"Accept": "application/json",
|
|
17
|
-
"Content-Type": "application/json"
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
if (props?.credentials)
|
|
21
|
-
init.credentials = props.credentials;
|
|
22
|
-
if (this.method == "post")
|
|
23
|
-
init.body = JSON.stringify(jsonObject);
|
|
24
|
-
else if (this.method == "get")
|
|
25
|
-
init.params = jsonObject;
|
|
26
|
-
fetch(this.action, init).then(response => onResponse(response))
|
|
27
|
-
.catch(error => { onResponse(new Response(JSON.stringify({ error: error.message }), { status: 500, statusText: "Internal Server Error" })); });
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
delete props?.onResponse;
|
|
31
|
-
Component.applyProps(this, props);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
Component.setVariant(FormElement, "vbox", (element) => element.classList.add("vbox"));
|
|
35
|
-
TypeComposer.defineElement(FormElement.TAG, FormElement, { extends: "form" });
|
|
36
|
-
//# sourceMappingURL=FormElement.js.map
|
|
1
|
+
import{Component}from"../../";export class FormElement extends HTMLFormElement{static TAG="tc-form-element";constructor(e){super(),Component.initComponent(this,FormElement,e)}}Component.setVariant(FormElement,"vbox",e=>e.classList.add("vbox")),TypeComposer.defineElement(FormElement.TAG,FormElement,{extends:"form"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormElement.js","sourceRoot":"","sources":["../../../src/core/element/FormElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FormElement.js","sourceRoot":"","sources":["../../../src/core/element/FormElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGhD,sEAAsE;AACtE,2BAA2B;AAC3B,oBAAoB;AACpB,qBAAqB;AACrB,uCAAuC;AACvC,kBAAkB;AAClB,yBAAyB;AACzB,2HAA2H;AAC3H,qDAAqD;AACrD,OAAO;AACP,8GAA8G;AAC9G,OAAO;AACP,oCAAoC;AACpC,8CAA8C;AAC9C,IAAI;AAEJ,MAAM,OAAO,WAAY,SAAQ,eAAe;IAC/C,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAChD,YAAY,KAAgC;QAC3C,KAAK,EAAE,CAAC;QACR,2BAA2B;QAC3B,wCAAwC;QAExC,gCAAgC;QAChC,4BAA4B;QAC5B,yCAAyC;QACzC,iDAAiD;QACjD,oDAAoD;QACpD,gCAAgC;QAChC,mCAAmC;QACnC,gBAAgB;QAChB,oCAAoC;QACpC,yCAAyC;QACzC,OAAO;QACP,MAAM;QACN,kEAAkE;QAClE,uEAAuE;QACvE,6DAA6D;QAC7D,oEAAoE;QACpE,oJAAoJ;QACpJ,MAAM;QACN,IAAI;QACJ,4BAA4B;QAC5B,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;;AAGF,SAAS,CAAC,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AACtF,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
package/core/element/Fragment.js
CHANGED
|
@@ -1,103 +1 @@
|
|
|
1
|
-
import { ref }
|
|
2
|
-
export class Fragment extends DocumentFragment {
|
|
3
|
-
constructor(onConnected) {
|
|
4
|
-
super();
|
|
5
|
-
this.addEventListener("onConnected", () => {
|
|
6
|
-
this.onBuildFragment(onConnected);
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
onBuildFragment(onConnected) {
|
|
10
|
-
const data = {
|
|
11
|
-
parentElement: undefined,
|
|
12
|
-
elementIndex: -1,
|
|
13
|
-
elements: []
|
|
14
|
-
};
|
|
15
|
-
data.parentElement = this.parentElement;
|
|
16
|
-
const childrens = this.parentElement?.children || [];
|
|
17
|
-
for (let i = 0; i < childrens.length; i++) {
|
|
18
|
-
if (childrens[i] === this) {
|
|
19
|
-
data.elementIndex = i > 0 ? i : 0;
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
onConnected(data);
|
|
24
|
-
//this.remove();
|
|
25
|
-
}
|
|
26
|
-
static getElement(data) {
|
|
27
|
-
const begin = data.elements[0]?.element;
|
|
28
|
-
const childrens = data.parentElement.children;
|
|
29
|
-
let element = childrens[0];
|
|
30
|
-
if (!childrens)
|
|
31
|
-
return undefined;
|
|
32
|
-
for (let i = 0; i < childrens.length; i++) {
|
|
33
|
-
if (begin === childrens[i]) {
|
|
34
|
-
data.elementIndex = i;
|
|
35
|
-
return childrens[i];
|
|
36
|
-
}
|
|
37
|
-
else if (!begin && i >= data.elementIndex) {
|
|
38
|
-
return childrens[i];
|
|
39
|
-
}
|
|
40
|
-
else
|
|
41
|
-
element = childrens[i];
|
|
42
|
-
}
|
|
43
|
-
return element;
|
|
44
|
-
}
|
|
45
|
-
static forEach(items, callbackfn) {
|
|
46
|
-
const onConnected = (data) => {
|
|
47
|
-
const updadeItems = () => {
|
|
48
|
-
if (!data.parentElement)
|
|
49
|
-
return;
|
|
50
|
-
const begin = Fragment.getElement(data);
|
|
51
|
-
const newElemets = items.map((e, index) => {
|
|
52
|
-
return { element: callbackfn(e, index), value: e, index };
|
|
53
|
-
});
|
|
54
|
-
for (const element of newElemets) {
|
|
55
|
-
data.parentElement.insertBefore(element.element, begin);
|
|
56
|
-
}
|
|
57
|
-
for (const element of data.elements)
|
|
58
|
-
element.element.remove();
|
|
59
|
-
data.elements = newElemets;
|
|
60
|
-
};
|
|
61
|
-
if (items instanceof ref) {
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
items.subscribe(updadeItems);
|
|
64
|
-
}
|
|
65
|
-
updadeItems();
|
|
66
|
-
};
|
|
67
|
-
return new Fragment(onConnected);
|
|
68
|
-
}
|
|
69
|
-
static create(condition, references) {
|
|
70
|
-
const onConnected = (data) => {
|
|
71
|
-
const updadeItems = (t, tr) => {
|
|
72
|
-
if (!data.parentElement)
|
|
73
|
-
return;
|
|
74
|
-
const begin = Fragment.getElement(data);
|
|
75
|
-
let newElemets = condition();
|
|
76
|
-
if (newElemets && !Array.isArray(newElemets))
|
|
77
|
-
newElemets = [newElemets];
|
|
78
|
-
if (newElemets)
|
|
79
|
-
newElemets = newElemets.map((e, index) => {
|
|
80
|
-
return { element: e, value: undefined, index };
|
|
81
|
-
});
|
|
82
|
-
if (newElemets)
|
|
83
|
-
for (const element of newElemets) {
|
|
84
|
-
data.parentElement.insertBefore(element.element, begin);
|
|
85
|
-
}
|
|
86
|
-
for (const element of data.elements)
|
|
87
|
-
element.element.remove();
|
|
88
|
-
if (newElemets)
|
|
89
|
-
data.elements = newElemets;
|
|
90
|
-
};
|
|
91
|
-
for (const reference of references) {
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
if (reference instanceof ref)
|
|
94
|
-
reference.subscribe(updadeItems);
|
|
95
|
-
}
|
|
96
|
-
updadeItems("a", "b");
|
|
97
|
-
};
|
|
98
|
-
return new Fragment(onConnected);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
globalThis.forEach = Fragment.forEach;
|
|
102
|
-
globalThis.Fragment = Fragment;
|
|
103
|
-
//# sourceMappingURL=Fragment.js.map
|
|
1
|
+
import{ref}from"../..";export class Fragment extends DocumentFragment{constructor(e){super(),this.addEventListener("onConnected",()=>{this.onBuildFragment(e)})}onBuildFragment(e){const t={parentElement:void 0,elementIndex:-1,elements:[]};t.parentElement=this.parentElement;const n=this.parentElement?.children||[];for(let e=0;e<n.length;e++)if(n[e]===this){t.elementIndex=e>0?e:0;break}e(t)}static getElement(e){const t=e.elements[0]?.element,n=e.parentElement.children;let r=n[0];if(n){for(let m=0;m<n.length;m++){if(t===n[m])return e.elementIndex=m,n[m];if(!t&&m>=e.elementIndex)return n[m];r=n[m]}return r}}static forEach(e,t){return new Fragment(n=>{const r=()=>{if(!n.parentElement)return;const r=Fragment.getElement(n),m=e.map((e,n)=>({element:t(e,n),value:e,index:n}));for(const e of m)n.parentElement.insertBefore(e.element,r);for(const e of n.elements)e.element.remove();n.elements=m};e instanceof ref&&e.subscribe(r),r()})}static create(e,t){return new Fragment(n=>{const r=(t,r)=>{if(!n.parentElement)return;const m=Fragment.getElement(n);let o=e();if(o&&!Array.isArray(o)&&(o=[o]),o&&(o=o.map((e,t)=>({element:e,value:void 0,index:t}))),o)for(const e of o)n.parentElement.insertBefore(e.element,m);for(const e of n.elements)e.element.remove();o&&(n.elements=o)};for(const e of t)e instanceof ref&&e.subscribe(r);r()})}}globalThis.forEach=Fragment.forEach,globalThis.Fragment=Fragment;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class H1Element extends HTMLHeadingElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<H1Element>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class H1Element extends HTMLHeadingElement {
|
|
3
|
-
static TAG = "tc-h1-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(H1Element.TAG, H1Element, { extends: "h1" });
|
|
10
|
-
//# sourceMappingURL=H1Element.js.map
|
|
1
|
+
import{Component}from"../../";export class H1Element extends HTMLHeadingElement{static TAG="tc-h1-element";constructor(e){super(),Component.initComponent(this,H1Element,e)}}TypeComposer.defineElement(H1Element.TAG,H1Element,{extends:"h1"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H1Element.js","sourceRoot":"","sources":["../../../src/core/element/H1Element.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"H1Element.js","sourceRoot":"","sources":["../../../src/core/element/H1Element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,SAAU,SAAQ,kBAAkB;IAChD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAA8B;QACzC,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class H2Element extends HTMLHeadingElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<H2Element>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class H2Element extends HTMLHeadingElement {
|
|
3
|
-
static TAG = "tc-h2-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(H2Element.TAG, H2Element, { extends: "h2" });
|
|
10
|
-
//# sourceMappingURL=H2Element.js.map
|
|
1
|
+
import{Component}from"../../";export class H2Element extends HTMLHeadingElement{static TAG="tc-h2-element";constructor(e){super(),Component.initComponent(this,H2Element,e)}}TypeComposer.defineElement(H2Element.TAG,H2Element,{extends:"h2"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H2Element.js","sourceRoot":"","sources":["../../../src/core/element/H2Element.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"H2Element.js","sourceRoot":"","sources":["../../../src/core/element/H2Element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,SAAU,SAAQ,kBAAkB;IAChD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAA8B;QACzC,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class H3Element extends HTMLHeadingElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<H3Element>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class H3Element extends HTMLHeadingElement {
|
|
3
|
-
static TAG = "tc-h3-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(H3Element.TAG, H3Element, { extends: "h3" });
|
|
10
|
-
//# sourceMappingURL=H3Element.js.map
|
|
1
|
+
import{Component}from"../../";export class H3Element extends HTMLHeadingElement{static TAG="tc-h3-element";constructor(e){super(),Component.initComponent(this,H3Element,e)}}TypeComposer.defineElement(H3Element.TAG,H3Element,{extends:"h3"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H3Element.js","sourceRoot":"","sources":["../../../src/core/element/H3Element.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"H3Element.js","sourceRoot":"","sources":["../../../src/core/element/H3Element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,SAAU,SAAQ,kBAAkB;IAChD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAA8B;QACzC,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class H4Element extends HTMLHeadingElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<H4Element>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class H4Element extends HTMLHeadingElement {
|
|
3
|
-
static TAG = "tc-h4-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(H4Element.TAG, H4Element, { extends: "h4" });
|
|
10
|
-
//# sourceMappingURL=H4Element.js.map
|
|
1
|
+
import{Component}from"../../";export class H4Element extends HTMLHeadingElement{static TAG="tc-h4-element";constructor(e){super(),Component.initComponent(this,H4Element,e)}}TypeComposer.defineElement(H4Element.TAG,H4Element,{extends:"h4"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H4Element.js","sourceRoot":"","sources":["../../../src/core/element/H4Element.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"H4Element.js","sourceRoot":"","sources":["../../../src/core/element/H4Element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,SAAU,SAAQ,kBAAkB;IAChD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAA8B;QACzC,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class H5Element extends HTMLHeadingElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<H5Element>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class H5Element extends HTMLHeadingElement {
|
|
3
|
-
static TAG = "tc-h5-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(H5Element.TAG, H5Element, { extends: "h5" });
|
|
10
|
-
//# sourceMappingURL=H5Element.js.map
|
|
1
|
+
import{Component}from"../../";export class H5Element extends HTMLHeadingElement{static TAG="tc-h5-element";constructor(e){super(),Component.initComponent(this,H5Element,e)}}TypeComposer.defineElement(H5Element.TAG,H5Element,{extends:"h5"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H5Element.js","sourceRoot":"","sources":["../../../src/core/element/H5Element.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"H5Element.js","sourceRoot":"","sources":["../../../src/core/element/H5Element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,SAAU,SAAQ,kBAAkB;IAChD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAA8B;QACzC,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class H6Element extends HTMLHeadingElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<H6Element>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class H6Element extends HTMLHeadingElement {
|
|
3
|
-
static TAG = "tc-h6-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(H6Element.TAG, H6Element, { extends: "h6" });
|
|
10
|
-
//# sourceMappingURL=H6Element.js.map
|
|
1
|
+
import{Component}from"../../";export class H6Element extends HTMLHeadingElement{static TAG="tc-h6-element";constructor(e){super(),Component.initComponent(this,H6Element,e)}}TypeComposer.defineElement(H6Element.TAG,H6Element,{extends:"h6"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"H6Element.js","sourceRoot":"","sources":["../../../src/core/element/H6Element.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"H6Element.js","sourceRoot":"","sources":["../../../src/core/element/H6Element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,SAAU,SAAQ,kBAAkB;IAChD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAA8B;QACzC,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class HeadElement extends HTMLHeadElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<HeadElement>);
|
|
5
5
|
}
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// <head>
|
|
3
|
-
export class HeadElement extends HTMLHeadElement {
|
|
4
|
-
static TAG = "tc-head-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
TypeComposer.defineElement(HeadElement.TAG, HeadElement, { extends: "head" });
|
|
11
|
-
//# sourceMappingURL=HeadElement.js.map
|
|
1
|
+
import{Component}from"../../";export class HeadElement extends HTMLHeadElement{static TAG="tc-head-element";constructor(e){super(),Component.initComponent(this,HeadElement,e)}}TypeComposer.defineElement(HeadElement.TAG,HeadElement,{extends:"head"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadElement.js","sourceRoot":"","sources":["../../../src/core/element/HeadElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HeadElement.js","sourceRoot":"","sources":["../../../src/core/element/HeadElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,WAAY,SAAQ,eAAe;IAC/C,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAChD,YAAY,KAAgC;QAC3C,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// <header>
|
|
3
|
-
export class HeaderElement extends HTMLElement {
|
|
4
|
-
static TAG = "tc-header-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
TypeComposer.defineElement(HeaderElement.TAG, HeaderElement, {
|
|
11
|
-
extends: "header",
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=HeaderElement.js.map
|
|
1
|
+
import{Component}from"../../";export class HeaderElement extends HTMLElement{static TAG="tc-header-element";constructor(e){super(),Component.initComponent(this,HeaderElement,e)}}TypeComposer.defineElement(HeaderElement.TAG,HeaderElement,{extends:"header"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderElement.js","sourceRoot":"","sources":["../../../src/core/element/HeaderElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HeaderElement.js","sourceRoot":"","sources":["../../../src/core/element/HeaderElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC7C,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAmB;QAC9B,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;IAC5D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|