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":"NavElement.js","sourceRoot":"","sources":["../../../src/core/element/NavElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"NavElement.js","sourceRoot":"","sources":["../../../src/core/element/NavElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,UAAW,SAAQ,WAAW;IAC1C,MAAM,CAAU,GAAG,GAAW,gBAAgB,CAAC;IAC/C,YAAY,KAAmB;QAC9B,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IACxD,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 OrderedListElement extends HTMLOListElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<OrderedListElement>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class OrderedListElement extends HTMLOListElement {
|
|
3
|
-
static TAG = "tc-ol-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(OrderedListElement.TAG, OrderedListElement, { extends: "ol" });
|
|
10
|
-
//# sourceMappingURL=OrderedListElement.js.map
|
|
1
|
+
import{Component}from"../../";export class OrderedListElement extends HTMLOListElement{static TAG="tc-ol-element";constructor(e){super(),Component.initComponent(this,OrderedListElement,e)}}TypeComposer.defineElement(OrderedListElement.TAG,OrderedListElement,{extends:"ol"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderedListElement.js","sourceRoot":"","sources":["../../../src/core/element/OrderedListElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"OrderedListElement.js","sourceRoot":"","sources":["../../../src/core/element/OrderedListElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,kBAAmB,SAAQ,gBAAgB;IACvD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAAuC;QAClD,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,kBAAkB,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class ParagraphElement extends HTMLParagraphElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<ParagraphElement>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class ParagraphElement extends HTMLParagraphElement {
|
|
3
|
-
static TAG = "tc-p-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(ParagraphElement.TAG, ParagraphElement, { extends: "p" });
|
|
10
|
-
//# sourceMappingURL=ParagraphElement.js.map
|
|
1
|
+
import{Component}from"../../";export class ParagraphElement extends HTMLParagraphElement{static TAG="tc-p-element";constructor(e){super(),Component.initComponent(this,ParagraphElement,e)}}TypeComposer.defineElement(ParagraphElement.TAG,ParagraphElement,{extends:"p"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParagraphElement.js","sourceRoot":"","sources":["../../../src/core/element/ParagraphElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ParagraphElement.js","sourceRoot":"","sources":["../../../src/core/element/ParagraphElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,gBAAiB,SAAQ,oBAAoB;IACzD,MAAM,CAAU,GAAG,GAAW,cAAc,CAAC;IAC7C,YAAY,KAAqC;QAChD,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class PreElement extends HTMLPreElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<PreElement>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class PreElement extends HTMLPreElement {
|
|
3
|
-
static TAG = "tc-pre-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(PreElement.TAG, PreElement, { extends: "pre" });
|
|
10
|
-
//# sourceMappingURL=PreElement.js.map
|
|
1
|
+
import{Component}from"../../";export class PreElement extends HTMLPreElement{static TAG="tc-pre-element";constructor(e){super(),Component.initComponent(this,PreElement,e)}}TypeComposer.defineElement(PreElement.TAG,PreElement,{extends:"pre"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreElement.js","sourceRoot":"","sources":["../../../src/core/element/PreElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PreElement.js","sourceRoot":"","sources":["../../../src/core/element/PreElement.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,KAA+B;QAC1C,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;IACxD,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 SectionElement extends HTMLElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType);
|
|
5
5
|
}
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class SectionElement extends HTMLElement {
|
|
3
|
-
static TAG = "tc-section-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(SectionElement.TAG, SectionElement, {
|
|
10
|
-
extends: "section",
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=SectionElement.js.map
|
|
1
|
+
import{Component}from"../../";export class SectionElement extends HTMLElement{static TAG="tc-section-element";constructor(e){super(),Component.initComponent(this,SectionElement,e)}}TypeComposer.defineElement(SectionElement.TAG,SectionElement,{extends:"section"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionElement.js","sourceRoot":"","sources":["../../../src/core/element/SectionElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SectionElement.js","sourceRoot":"","sources":["../../../src/core/element/SectionElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC9C,MAAM,CAAU,GAAG,GAAW,oBAAoB,CAAC;IACnD,YAAY,KAAmB;QAC9B,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE;IAC9D,OAAO,EAAE,SAAS;CAClB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class SelectElement extends HTMLSelectElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<SelectElement>);
|
|
5
5
|
}
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class SelectElement extends HTMLSelectElement {
|
|
3
|
-
static TAG = "tc-select-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(SelectElement.TAG, SelectElement, {
|
|
10
|
-
extends: "select",
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=SelectElement.js.map
|
|
1
|
+
import{Component}from"../../";export class SelectElement extends HTMLSelectElement{static TAG="tc-select-element";constructor(e){super(),Component.initComponent(this,SelectElement,e)}}TypeComposer.defineElement(SelectElement.TAG,SelectElement,{extends:"select"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectElement.js","sourceRoot":"","sources":["../../../src/core/element/SelectElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SelectElement.js","sourceRoot":"","sources":["../../../src/core/element/SelectElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAkC;QAC7C,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;IAC5D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class SourceElement extends HTMLSourceElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
src?: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
});
|
|
4
|
+
constructor(props?: ElementType<SourceElement>);
|
|
8
5
|
}
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class SourceElement extends HTMLSourceElement {
|
|
3
|
-
static TAG = "tc-source-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
if (props?.src)
|
|
7
|
-
this.src = props.src;
|
|
8
|
-
if (props?.type)
|
|
9
|
-
this.type = props.type;
|
|
10
|
-
Component.applyProps(this, props);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
TypeComposer.defineElement(SourceElement.TAG, SourceElement, { extends: "source" });
|
|
14
|
-
//# sourceMappingURL=SourceElement.js.map
|
|
1
|
+
import{Component}from"../../";export class SourceElement extends HTMLSourceElement{static TAG="tc-source-element";constructor(e){super(),e?.src&&(this.src=e.src),e?.type&&(this.type=e.type),Component.initComponent(this,SourceElement,e)}}TypeComposer.defineElement(SourceElement.TAG,SourceElement,{extends:"source"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceElement.js","sourceRoot":"","sources":["../../../src/core/element/SourceElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SourceElement.js","sourceRoot":"","sources":["../../../src/core/element/SourceElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAkC;QAC7C,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,GAAG;YAAE,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAU,CAAC;QAC5C,IAAI,KAAK,EAAE,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAW,CAAC;QAC/C,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class SpanElement extends HTMLSpanElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<SpanElement>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class SpanElement extends HTMLSpanElement {
|
|
3
|
-
static TAG = "tc-span-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(SpanElement.TAG, SpanElement, { extends: "span" });
|
|
10
|
-
//# sourceMappingURL=SpanElement.js.map
|
|
1
|
+
import{Component}from"../../";export class SpanElement extends HTMLSpanElement{static TAG="tc-span-element";constructor(e){super(),Component.initComponent(this,SpanElement,e)}}TypeComposer.defineElement(SpanElement.TAG,SpanElement,{extends:"span"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpanElement.js","sourceRoot":"","sources":["../../../src/core/element/SpanElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SpanElement.js","sourceRoot":"","sources":["../../../src/core/element/SpanElement.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;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class StrongElement extends HTMLSpanElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<StrongElement>);
|
|
5
5
|
}
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class StrongElement extends HTMLSpanElement {
|
|
3
|
-
static TAG = "tc-strong-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(StrongElement.TAG, StrongElement, {
|
|
10
|
-
extends: "strong",
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=StrongElement.js.map
|
|
1
|
+
import{Component}from"../../";export class StrongElement extends HTMLSpanElement{static TAG="tc-strong-element";constructor(e){super(),Component.initComponent(this,StrongElement,e)}}TypeComposer.defineElement(StrongElement.TAG,StrongElement,{extends:"strong"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StrongElement.js","sourceRoot":"","sources":["../../../src/core/element/StrongElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"StrongElement.js","sourceRoot":"","sources":["../../../src/core/element/StrongElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,aAAc,SAAQ,eAAe;IACjD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAkC;QAC7C,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;IAC3D,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 StyleElement extends HTMLStyleElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<StyleElement>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class StyleElement extends HTMLStyleElement {
|
|
3
|
-
static TAG = "tc-style-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(StyleElement.TAG, StyleElement, { extends: "style" });
|
|
10
|
-
//# sourceMappingURL=StyleElement.js.map
|
|
1
|
+
import{Component}from"../../";export class StyleElement extends HTMLStyleElement{static TAG="tc-style-element";constructor(e){super(),Component.initComponent(this,StyleElement,e)}}TypeComposer.defineElement(StyleElement.TAG,StyleElement,{extends:"style"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyleElement.js","sourceRoot":"","sources":["../../../src/core/element/StyleElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"StyleElement.js","sourceRoot":"","sources":["../../../src/core/element/StyleElement.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;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class SummaryElement extends HTMLElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType);
|
|
5
5
|
}
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class SummaryElement extends HTMLElement {
|
|
3
|
-
static TAG = "base-summary-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(SummaryElement.TAG, SummaryElement, {
|
|
10
|
-
extends: "summary",
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=SummaryElement.js.map
|
|
1
|
+
import{Component}from"../../";export class SummaryElement extends HTMLElement{static TAG="base-summary-element";constructor(e){super(),Component.initComponent(this,SummaryElement,e)}}TypeComposer.defineElement(SummaryElement.TAG,SummaryElement,{extends:"summary"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SummaryElement.js","sourceRoot":"","sources":["../../../src/core/element/SummaryElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SummaryElement.js","sourceRoot":"","sources":["../../../src/core/element/SummaryElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC9C,MAAM,CAAU,GAAG,GAAW,sBAAsB,CAAC;IACrD,YAAY,KAAmB;QAC9B,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE;IAC9D,OAAO,EAAE,SAAS;CAClB,CAAC,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
interface SvgBaseElement extends IComponent {
|
|
3
3
|
src?: string;
|
|
4
4
|
readonly complete: boolean;
|
|
5
5
|
}
|
|
6
6
|
interface SvgConstructor {
|
|
7
|
-
new (props?:
|
|
7
|
+
new (props?: ElementType & {
|
|
8
8
|
src?: string;
|
|
9
9
|
}): SvgBaseElement;
|
|
10
10
|
}
|
|
11
11
|
declare const SvgBaseElement: SvgConstructor;
|
|
12
12
|
export declare class SvgElement extends SvgBaseElement {
|
|
13
13
|
static readonly TAG: string;
|
|
14
|
-
constructor(props?:
|
|
14
|
+
constructor(props?: ElementType & {
|
|
15
15
|
src?: string;
|
|
16
16
|
});
|
|
17
17
|
}
|
|
@@ -1,151 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const svgAssets = new Map();
|
|
3
|
-
function svgCopy(src, dst) {
|
|
4
|
-
if (!src || !dst)
|
|
5
|
-
return;
|
|
6
|
-
for (let i = 0; i < src.attributes.length; i++) {
|
|
7
|
-
const attr = src.attributes[i];
|
|
8
|
-
dst.setAttribute(attr.name, attr.value);
|
|
9
|
-
}
|
|
10
|
-
while (dst.firstChild) {
|
|
11
|
-
dst.removeChild(dst.firstChild);
|
|
12
|
-
}
|
|
13
|
-
for (let i = 0; i < src.childNodes.length; i++) {
|
|
14
|
-
const clonedNode = src.childNodes[i].cloneNode(true);
|
|
15
|
-
dst.appendChild(clonedNode);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
const applySvg = (svg, src, svgText) => {
|
|
19
|
-
if (svgText && svgText.length > 0 && (svgText.startsWith("<?xml") || svgText.includes("<svg"))) {
|
|
20
|
-
const parser = new DOMParser();
|
|
21
|
-
const doc = parser.parseFromString(svgText, "image/svg+xml");
|
|
22
|
-
const parserErrors = doc.getElementsByTagName("parsererror");
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
const newSvg = doc.querySelector("svg");
|
|
25
|
-
if (parserErrors.length == 0 && newSvg && newSvg?.tagName == "svg") {
|
|
26
|
-
svgCopy(newSvg, svg);
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
svg.complete = true;
|
|
29
|
-
svg.dispatchEvent(new CustomEvent("load"));
|
|
30
|
-
if (src)
|
|
31
|
-
svgAssets.set(src, svgText);
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
if (svg.onLoad)
|
|
34
|
-
svg.onLoad();
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
svg.dispatchEvent(new CustomEvent("error"));
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
if (svg.onError)
|
|
42
|
-
svg.onError();
|
|
43
|
-
}
|
|
44
|
-
return false;
|
|
45
|
-
};
|
|
46
|
-
const SvgBaseElement = function (props) {
|
|
47
|
-
if (props?.src && props.src.includes("<svg") && props.src.includes("</svg>")) {
|
|
48
|
-
const div = new DivElement();
|
|
49
|
-
div.innerHTML = props.src;
|
|
50
|
-
const svg = div.firstElementChild;
|
|
51
|
-
if (svg)
|
|
52
|
-
Component.applyProps(svg, props);
|
|
53
|
-
Object.defineProperty(svg, "src", {
|
|
54
|
-
get: () => "",
|
|
55
|
-
set: () => {
|
|
56
|
-
console.warn("svg static: src is readonly");
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
return svg;
|
|
60
|
-
}
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
63
|
-
const callback = (mutationsList) => {
|
|
64
|
-
for (const mutation of mutationsList) {
|
|
65
|
-
if (mutation.type === "attributes" && mutation.attributeName == "src") {
|
|
66
|
-
// @ts-ignore
|
|
67
|
-
svg.complete = false;
|
|
68
|
-
const src = mutation.target?.getAttribute(mutation.attributeName) || "";
|
|
69
|
-
if (src.endsWith(".svg")) {
|
|
70
|
-
const svgText = svgAssets.get(src);
|
|
71
|
-
if (svgText) {
|
|
72
|
-
applySvg(svg, undefined, svgText);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
const currentDomain = window.location.origin;
|
|
76
|
-
const urlObject = new URL(src, currentDomain);
|
|
77
|
-
if (urlObject.origin === currentDomain) {
|
|
78
|
-
fetch(src, {
|
|
79
|
-
method: "GET",
|
|
80
|
-
headers: {
|
|
81
|
-
"Content-Type": "image/svg+xml",
|
|
82
|
-
Accept: "image/svg+xml",
|
|
83
|
-
},
|
|
84
|
-
credentials: "same-origin",
|
|
85
|
-
})
|
|
86
|
-
.then(async (response) => {
|
|
87
|
-
if (response.ok) {
|
|
88
|
-
const svgText = await response.text();
|
|
89
|
-
applySvg(svg, src, svgText);
|
|
90
|
-
}
|
|
91
|
-
})
|
|
92
|
-
.catch(() => {
|
|
93
|
-
// @ts-ignore
|
|
94
|
-
svg.complete = true;
|
|
95
|
-
applySvg(svg, undefined, document.createElementNS("http://www.w3.org/2000/svg", "svg").outerHTML);
|
|
96
|
-
svg.dispatchEvent(new CustomEvent("error"));
|
|
97
|
-
// @ts-ignore
|
|
98
|
-
if (svg.onError)
|
|
99
|
-
svg.onError();
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
applySvg(svg, undefined, document.createElementNS("http://www.w3.org/2000/svg", "svg").outerHTML);
|
|
104
|
-
// @ts-ignore
|
|
105
|
-
svg.complete = true;
|
|
106
|
-
svg.dispatchEvent(new CustomEvent("error"));
|
|
107
|
-
// @ts-ignore
|
|
108
|
-
if (svg.onError)
|
|
109
|
-
svg.onError();
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
applySvg(svg, undefined, document.createElementNS("http://www.w3.org/2000/svg", "svg").outerHTML);
|
|
115
|
-
// @ts-ignore
|
|
116
|
-
svg.complete = true;
|
|
117
|
-
svg.dispatchEvent(new CustomEvent("error"));
|
|
118
|
-
// @ts-ignore
|
|
119
|
-
if (svg.onError)
|
|
120
|
-
svg.onError();
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
const observer = new MutationObserver(callback);
|
|
126
|
-
observer.observe(svg, {
|
|
127
|
-
attributes: true,
|
|
128
|
-
childList: false,
|
|
129
|
-
subtree: false,
|
|
130
|
-
attributeOldValue: true,
|
|
131
|
-
attributeFilter: ["src"],
|
|
132
|
-
});
|
|
133
|
-
// @ts-ignore
|
|
134
|
-
Component.applyProps(svg, props);
|
|
135
|
-
svg.src = props.src;
|
|
136
|
-
Object.defineProperty(svg, "__observer__", {
|
|
137
|
-
value: observer,
|
|
138
|
-
writable: false,
|
|
139
|
-
enumerable: false,
|
|
140
|
-
configurable: false,
|
|
141
|
-
});
|
|
142
|
-
// @ts-ignore
|
|
143
|
-
return svg;
|
|
144
|
-
};
|
|
145
|
-
export class SvgElement extends SvgBaseElement {
|
|
146
|
-
static TAG = "svg";
|
|
147
|
-
constructor(props) {
|
|
148
|
-
super(props);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
//# sourceMappingURL=SvgElement.js.map
|
|
1
|
+
import{Component,DivElement}from"../../";const svgAssets=new Map;function svgCopy(e,t){if(e&&t){for(let r=0;r<e.attributes.length;r++){const o=e.attributes[r];t.setAttribute(o.name,o.value)}for(;t.firstChild;)t.removeChild(t.firstChild);for(let r=0;r<e.childNodes.length;r++){const o=e.childNodes[r].cloneNode(!0);t.appendChild(o)}}}const applySvg=(e,t,r)=>{if(r&&r.length>0&&(r.startsWith("<?xml")||r.includes("<svg"))){const o=(new DOMParser).parseFromString(r,"image/svg+xml"),s=o.getElementsByTagName("parsererror"),n=o.querySelector("svg");if(0==s.length&&n&&"svg"==n?.tagName)return svgCopy(n,e),e.complete=!0,e.dispatchEvent(new CustomEvent("load")),t&&svgAssets.set(t,r),e.onLoad&&e.onLoad(),!0}else e.dispatchEvent(new CustomEvent("error")),e.onError&&e.onError();return!1},SvgBaseElement=function(e){if(e?.src&&e.src.includes("<svg")&&e.src.includes("</svg>")){const t=new DivElement;t.innerHTML=e.src;const r=t.firstElementChild;return r&&Component.applyProps(r,e),Object.defineProperty(r,"src",{get:()=>"",set:()=>{}}),r}const t=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=new MutationObserver(e=>{for(const r of e)if("attributes"===r.type&&"src"==r.attributeName){t.complete=!1;const e=r.target?.getAttribute(r.attributeName)||"";if(e.endsWith(".svg")){const r=svgAssets.get(e);if(r)applySvg(t,void 0,r);else{const r=window.location.origin;new URL(e,r).origin===r?fetch(e,{method:"GET",headers:{"Content-Type":"image/svg+xml",Accept:"image/svg+xml"},credentials:"same-origin"}).then(async r=>{if(r.ok){const o=await r.text();applySvg(t,e,o)}}).catch(()=>{t.complete=!0,applySvg(t,void 0,document.createElementNS("http://www.w3.org/2000/svg","svg").outerHTML),t.dispatchEvent(new CustomEvent("error")),t.onError&&t.onError()}):(applySvg(t,void 0,document.createElementNS("http://www.w3.org/2000/svg","svg").outerHTML),t.complete=!0,t.dispatchEvent(new CustomEvent("error")),t.onError&&t.onError())}}else applySvg(t,void 0,document.createElementNS("http://www.w3.org/2000/svg","svg").outerHTML),t.complete=!0,t.dispatchEvent(new CustomEvent("error")),t.onError&&t.onError()}});return r.observe(t,{attributes:!0,childList:!1,subtree:!1,attributeOldValue:!0,attributeFilter:["src"]}),Component.applyProps(t,e),t.src=e.src,Object.defineProperty(t,"__observer__",{value:r,writable:!1,enumerable:!1,configurable:!1}),t};export class SvgElement extends SvgBaseElement{static TAG="svg";constructor(e){super(e)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SvgElement.js","sourceRoot":"","sources":["../../../src/core/element/SvgElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SvgElement.js","sourceRoot":"","sources":["../../../src/core/element/SvgElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAW5D,MAAM,SAAS,GAAG,IAAI,GAAG,EAAkB,CAAC;AAE5C,SAAS,OAAO,CAAC,GAAe,EAAE,GAAe;IAChD,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG;QAAE,OAAO;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChD,MAAM,IAAI,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC/B,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,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IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,KAAK;QACd,iBAAiB,EAAE,IAAI;QACvB,eAAe,EAAE,CAAC,KAAK,CAAC;KACxB,CAAC,CAAC;IACH,aAAa;IACb,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACjC,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;IACpB,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE;QAC1C,KAAK,EAAE,QAAQ;QACf,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,KAAK;QACjB,YAAY,EAAE,KAAK;KACnB,CAAC,CAAC;IACH,aAAa;IACb,OAAO,GAAG,CAAC;AACZ,CAAmB,CAAC;AAEpB,MAAM,OAAO,UAAW,SAAQ,cAAc;IAC7C,MAAM,CAAU,GAAG,GAAW,KAAK,CAAC;IACpC,YAAY,KAAsC;QACjD,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class TableBodyElement extends HTMLTableSectionElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<TableBodyElement>);
|
|
5
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class TableBodyElement extends HTMLTableSectionElement {
|
|
3
|
-
static TAG = "tc-tbody-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(TableBodyElement.TAG, TableBodyElement, { extends: "tbody" });
|
|
10
|
-
//# sourceMappingURL=TableBodyElement.js.map
|
|
1
|
+
import{Component}from"../../";export class TableBodyElement extends HTMLTableSectionElement{static TAG="tc-tbody-element";constructor(e){super(),Component.initComponent(this,TableBodyElement,e)}}TypeComposer.defineElement(TableBodyElement.TAG,TableBodyElement,{extends:"tbody"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBodyElement.js","sourceRoot":"","sources":["../../../src/core/element/TableBodyElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"TableBodyElement.js","sourceRoot":"","sources":["../../../src/core/element/TableBodyElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,gBAAiB,SAAQ,uBAAuB;IAC5D,MAAM,CAAU,GAAG,GAAW,kBAAkB,CAAC;IACjD,YAAY,KAAqC;QAChD,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class TableCellElement extends HTMLTableCellElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
|
|
6
|
-
rowspan?: number;
|
|
7
|
-
child?: HTMLElement;
|
|
8
|
-
value?: string | number | HTMLElement;
|
|
4
|
+
constructor(props?: ElementType<TableCellElement> & {
|
|
5
|
+
value?: any;
|
|
9
6
|
});
|
|
10
7
|
}
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class TableCellElement extends HTMLTableCellElement {
|
|
3
|
-
static TAG = "tc-td-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
if (props?.colspan)
|
|
7
|
-
this.colSpan = props.colspan;
|
|
8
|
-
if (props?.rowspan)
|
|
9
|
-
this.rowSpan = props.rowspan;
|
|
10
|
-
if (props?.value) {
|
|
11
|
-
if (props.value instanceof HTMLElement)
|
|
12
|
-
this.appendChild(props.value);
|
|
13
|
-
else
|
|
14
|
-
this.innerHTML = props.value.toString();
|
|
15
|
-
}
|
|
16
|
-
//this.#value = props?.value;
|
|
17
|
-
if (props?.child)
|
|
18
|
-
this.appendChild(props.child);
|
|
19
|
-
delete props?.child;
|
|
20
|
-
delete props?.value;
|
|
21
|
-
Component.applyProps(this, props);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
TypeComposer.defineElement(TableCellElement.TAG, TableCellElement, { extends: "td" });
|
|
25
|
-
//# sourceMappingURL=TableCellElement.js.map
|
|
1
|
+
import{Component}from"../../";export class TableCellElement extends HTMLTableCellElement{static TAG="tc-td-element";constructor(e){super(),Component.initComponent(this,TableCellElement,e)}}TypeComposer.defineElement(TableCellElement.TAG,TableCellElement,{extends:"td"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellElement.js","sourceRoot":"","sources":["../../../src/core/element/TableCellElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"TableCellElement.js","sourceRoot":"","sources":["../../../src/core/element/TableCellElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,gBAAiB,SAAQ,oBAAoB;IACzD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YACC,KAEC;QACD,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class TableColElement extends HTMLTableColElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
span?: number;
|
|
6
|
-
});
|
|
4
|
+
constructor(props?: ElementType<TableColElement>);
|
|
7
5
|
}
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// <col>
|
|
3
|
-
export class TableColElement extends HTMLTableColElement {
|
|
4
|
-
static TAG = "tc-col-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
if (props?.span)
|
|
8
|
-
this.span = props.span;
|
|
9
|
-
Component.applyProps(this, props);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
TypeComposer.defineElement(TableColElement.TAG, TableColElement, { extends: "col" });
|
|
13
|
-
//# sourceMappingURL=TableColElement.js.map
|
|
1
|
+
import{Component}from"../../";export class TableColElement extends HTMLTableColElement{static TAG="tc-col-element";constructor(e){super(),Component.initComponent(this,TableColElement,e)}}TypeComposer.defineElement(TableColElement.TAG,TableColElement,{extends:"col"});
|