typecomposer 0.1.46 → 0.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{core → dist/core}/index.d.ts +0 -3
- package/{core → dist/core}/index.js +0 -3
- package/dist/core/index.js.map +1 -0
- package/{core → dist/core}/styles/index.d.ts +3 -3
- package/{core → dist/core}/styles/index.js +0 -8
- package/{core → dist/core}/styles/index.js.map +1 -1
- package/{global → dist/global}/index.d.ts +10 -4
- package/{global → dist/global}/index.js +387 -322
- package/dist/global/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/{index.d.ts → dist/index.js} +1 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -10
- package/styles/style.scss +2 -23
- package/typings/index.d.ts +58 -66
- package/core/app/Validate.d.ts +0 -61
- package/core/app/Validate.js +0 -2
- package/core/app/Validate.js.map +0 -1
- package/core/app/index.d.ts +0 -40
- package/core/app/index.js +0 -181
- package/core/app/index.js.map +0 -1
- package/core/components/AlertPanel.d.ts +0 -32
- package/core/components/AlertPanel.js +0 -75
- package/core/components/AlertPanel.js.map +0 -1
- package/core/components/AvatarPanel.d.ts +0 -21
- package/core/components/AvatarPanel.js +0 -62
- package/core/components/AvatarPanel.js.map +0 -1
- package/core/components/BorderPanel.d.ts +0 -28
- package/core/components/BorderPanel.js +0 -90
- package/core/components/BorderPanel.js.map +0 -1
- package/core/components/CardPanel.d.ts +0 -5
- package/core/components/CardPanel.js +0 -11
- package/core/components/CardPanel.js.map +0 -1
- package/core/components/CheckBox.d.ts +0 -36
- package/core/components/CheckBox.js +0 -109
- package/core/components/CheckBox.js.map +0 -1
- package/core/components/ColorPicker.d.ts +0 -10
- package/core/components/ColorPicker.js +0 -36
- package/core/components/ColorPicker.js.map +0 -1
- package/core/components/ContextMenu.d.ts +0 -16
- package/core/components/ContextMenu.js +0 -64
- package/core/components/ContextMenu.js.map +0 -1
- package/core/components/DialogPanel.d.ts +0 -15
- package/core/components/DialogPanel.js +0 -62
- package/core/components/DialogPanel.js.map +0 -1
- package/core/components/DropDown.d.ts +0 -54
- package/core/components/DropDown.js +0 -231
- package/core/components/DropDown.js.map +0 -1
- package/core/components/FlowPanel.d.ts +0 -11
- package/core/components/FlowPanel.js +0 -40
- package/core/components/FlowPanel.js.map +0 -1
- package/core/components/ForEach.d.ts +0 -11
- package/core/components/ForEach.js +0 -88
- package/core/components/ForEach.js.map +0 -1
- package/core/components/GridPanel.d.ts +0 -10
- package/core/components/GridPanel.js +0 -30
- package/core/components/GridPanel.js.map +0 -1
- package/core/components/HBox.d.ts +0 -5
- package/core/components/HBox.js +0 -10
- package/core/components/HBox.js.map +0 -1
- package/core/components/LazyLoading.d.ts +0 -19
- package/core/components/LazyLoading.js +0 -36
- package/core/components/LazyLoading.js.map +0 -1
- package/core/components/ListPanel.d.ts +0 -27
- package/core/components/ListPanel.js +0 -153
- package/core/components/ListPanel.js.map +0 -1
- package/core/components/PopUpButton.d.ts +0 -18
- package/core/components/PopUpButton.js +0 -57
- package/core/components/PopUpButton.js.map +0 -1
- package/core/components/ScrollPanel.d.ts +0 -14
- package/core/components/ScrollPanel.js +0 -35
- package/core/components/ScrollPanel.js.map +0 -1
- package/core/components/SliderPanel.d.ts +0 -7
- package/core/components/SliderPanel.js +0 -135
- package/core/components/SliderPanel.js.map +0 -1
- package/core/components/StackPanel.d.ts +0 -5
- package/core/components/StackPanel.js +0 -10
- package/core/components/StackPanel.js.map +0 -1
- package/core/components/TabItem.d.ts +0 -19
- package/core/components/TabItem.js +0 -84
- package/core/components/TabItem.js.map +0 -1
- package/core/components/TabPanel.d.ts +0 -25
- package/core/components/TabPanel.js +0 -96
- package/core/components/TabPanel.js.map +0 -1
- package/core/components/TablePanel.d.ts +0 -34
- package/core/components/TablePanel.js +0 -127
- package/core/components/TablePanel.js.map +0 -1
- package/core/components/TextEdit.d.ts +0 -32
- package/core/components/TextEdit.js +0 -174
- package/core/components/TextEdit.js.map +0 -1
- package/core/components/TextField.d.ts +0 -34
- package/core/components/TextField.js +0 -140
- package/core/components/TextField.js.map +0 -1
- package/core/components/ToggleButton.d.ts +0 -7
- package/core/components/ToggleButton.js +0 -20
- package/core/components/ToggleButton.js.map +0 -1
- package/core/components/Tooltip.d.ts +0 -10
- package/core/components/Tooltip.js +0 -14
- package/core/components/Tooltip.js.map +0 -1
- package/core/components/VBox.d.ts +0 -5
- package/core/components/VBox.js +0 -10
- package/core/components/VBox.js.map +0 -1
- package/core/components/VirtualScroll copy 2.d.ts +0 -24
- package/core/components/VirtualScroll copy 2.js +0 -92
- package/core/components/VirtualScroll copy 2.js.map +0 -1
- package/core/components/VirtualScroll.d.ts +0 -20
- package/core/components/VirtualScroll.js +0 -47
- package/core/components/VirtualScroll.js.map +0 -1
- package/core/components/index.d.ts +0 -28
- package/core/components/index.js +0 -30
- package/core/components/index.js.map +0 -1
- package/core/decorators/RegisterComponent.d.ts +0 -8
- package/core/decorators/RegisterComponent.js +0 -20
- package/core/decorators/RegisterComponent.js.map +0 -1
- package/core/decorators/StyleLink.d.ts +0 -1
- package/core/decorators/StyleLink.js +0 -13
- package/core/decorators/StyleLink.js.map +0 -1
- package/core/decorators/index.d.ts +0 -4
- package/core/decorators/index.js +0 -6
- package/core/decorators/index.js.map +0 -1
- package/core/element/AbbreviationElement.d.ts +0 -7
- package/core/element/AbbreviationElement.js +0 -10
- package/core/element/AbbreviationElement.js.map +0 -1
- package/core/element/AnchorElement.d.ts +0 -24
- package/core/element/AnchorElement.js +0 -31
- package/core/element/AnchorElement.js.map +0 -1
- package/core/element/AreaElement.d.ts +0 -18
- package/core/element/AreaElement.js +0 -11
- package/core/element/AreaElement.js.map +0 -1
- package/core/element/ArticleElement.d.ts +0 -5
- package/core/element/ArticleElement.js +0 -12
- package/core/element/ArticleElement.js.map +0 -1
- package/core/element/AudioElement.d.ts +0 -12
- package/core/element/AudioElement.js +0 -10
- package/core/element/AudioElement.js.map +0 -1
- package/core/element/BaseElement.d.ts +0 -8
- package/core/element/BaseElement.js +0 -11
- package/core/element/BaseElement.js.map +0 -1
- package/core/element/BodyElement.d.ts +0 -5
- package/core/element/BodyElement.js +0 -11
- package/core/element/BodyElement.js.map +0 -1
- package/core/element/BoldElement.d.ts +0 -5
- package/core/element/BoldElement.js +0 -10
- package/core/element/BoldElement.js.map +0 -1
- package/core/element/BreakElement.d.ts +0 -5
- package/core/element/BreakElement.js +0 -10
- package/core/element/BreakElement.js.map +0 -1
- package/core/element/ButtonElement.d.ts +0 -26
- package/core/element/ButtonElement.js +0 -47
- package/core/element/ButtonElement.js.map +0 -1
- package/core/element/CanvasElement.d.ts +0 -5
- package/core/element/CanvasElement.js +0 -14
- package/core/element/CanvasElement.js.map +0 -1
- package/core/element/CaptionElement.d.ts +0 -5
- package/core/element/CaptionElement.js +0 -13
- package/core/element/CaptionElement.js.map +0 -1
- package/core/element/CiteElement.d.ts +0 -5
- package/core/element/CiteElement.js +0 -11
- package/core/element/CiteElement.js.map +0 -1
- package/core/element/CodeElement.d.ts +0 -7
- package/core/element/CodeElement.js +0 -13
- package/core/element/CodeElement.js.map +0 -1
- package/core/element/DataListElement.d.ts +0 -5
- package/core/element/DataListElement.js +0 -13
- package/core/element/DataListElement.js.map +0 -1
- package/core/element/DefinitionDescriptionElement.d.ts +0 -5
- package/core/element/DefinitionDescriptionElement.js +0 -13
- package/core/element/DefinitionDescriptionElement.js.map +0 -1
- package/core/element/DefinitionElement.d.ts +0 -5
- package/core/element/DefinitionElement.js +0 -13
- package/core/element/DefinitionElement.js.map +0 -1
- package/core/element/DeletedTextElement.d.ts +0 -7
- package/core/element/DeletedTextElement.js +0 -15
- package/core/element/DeletedTextElement.js.map +0 -1
- package/core/element/DetailsElement.d.ts +0 -9
- package/core/element/DetailsElement.js +0 -28
- package/core/element/DetailsElement.js.map +0 -1
- package/core/element/DialogElement.d.ts +0 -7
- package/core/element/DialogElement.js +0 -14
- package/core/element/DialogElement.js.map +0 -1
- package/core/element/DivElement.d.ts +0 -5
- package/core/element/DivElement.js +0 -10
- package/core/element/DivElement.js.map +0 -1
- package/core/element/EmElement.d.ts +0 -5
- package/core/element/EmElement.js +0 -10
- package/core/element/EmElement.js.map +0 -1
- package/core/element/EmbedElement.d.ts +0 -10
- package/core/element/EmbedElement.js +0 -19
- package/core/element/EmbedElement.js.map +0 -1
- package/core/element/FieldSetElement.d.ts +0 -9
- package/core/element/FieldSetElement.js +0 -34
- package/core/element/FieldSetElement.js.map +0 -1
- package/core/element/FooterElement.d.ts +0 -5
- package/core/element/FooterElement.js +0 -13
- package/core/element/FooterElement.js.map +0 -1
- package/core/element/FormElement.d.ts +0 -20
- package/core/element/FormElement.js +0 -36
- package/core/element/FormElement.js.map +0 -1
- package/core/element/Fragment.d.ts +0 -32
- package/core/element/Fragment.js +0 -103
- package/core/element/Fragment.js.map +0 -1
- package/core/element/H1Element.d.ts +0 -5
- package/core/element/H1Element.js +0 -10
- package/core/element/H1Element.js.map +0 -1
- package/core/element/H2Element.d.ts +0 -5
- package/core/element/H2Element.js +0 -10
- package/core/element/H2Element.js.map +0 -1
- package/core/element/H3Element.d.ts +0 -5
- package/core/element/H3Element.js +0 -10
- package/core/element/H3Element.js.map +0 -1
- package/core/element/H4Element.d.ts +0 -5
- package/core/element/H4Element.js +0 -10
- package/core/element/H4Element.js.map +0 -1
- package/core/element/H5Element.d.ts +0 -5
- package/core/element/H5Element.js +0 -10
- package/core/element/H5Element.js.map +0 -1
- package/core/element/H6Element.d.ts +0 -5
- package/core/element/H6Element.js +0 -10
- package/core/element/H6Element.js.map +0 -1
- package/core/element/HeadElement.d.ts +0 -5
- package/core/element/HeadElement.js +0 -11
- package/core/element/HeadElement.js.map +0 -1
- package/core/element/HeaderElement.d.ts +0 -5
- package/core/element/HeaderElement.js +0 -13
- package/core/element/HeaderElement.js.map +0 -1
- package/core/element/HorizontalRuleElement.d.ts +0 -5
- package/core/element/HorizontalRuleElement.js +0 -13
- package/core/element/HorizontalRuleElement.js.map +0 -1
- package/core/element/HtmlElement.d.ts +0 -9
- package/core/element/HtmlElement.js +0 -19
- package/core/element/HtmlElement.js.map +0 -1
- package/core/element/IFrameElement.d.ts +0 -28
- package/core/element/IFrameElement.js +0 -67
- package/core/element/IFrameElement.js.map +0 -1
- package/core/element/ILayout.d.ts +0 -5
- package/core/element/ILayout.js +0 -9
- package/core/element/ILayout.js.map +0 -1
- package/core/element/IconElement.d.ts +0 -14
- package/core/element/IconElement.js +0 -32
- package/core/element/IconElement.js.map +0 -1
- package/core/element/IdiomaticElement.d.ts +0 -4
- package/core/element/IdiomaticElement.js +0 -6
- package/core/element/IdiomaticElement.js.map +0 -1
- package/core/element/ImageElement.d.ts +0 -19
- package/core/element/ImageElement.js +0 -17
- package/core/element/ImageElement.js.map +0 -1
- package/core/element/InputElement.d.ts +0 -19
- package/core/element/InputElement.js +0 -81
- package/core/element/InputElement.js.map +0 -1
- package/core/element/LabelElement.d.ts +0 -8
- package/core/element/LabelElement.js +0 -10
- package/core/element/LabelElement.js.map +0 -1
- package/core/element/LegendElement.d.ts +0 -7
- package/core/element/LegendElement.js +0 -15
- package/core/element/LegendElement.js.map +0 -1
- package/core/element/ListItemElement.d.ts +0 -12
- package/core/element/ListItemElement.js +0 -28
- package/core/element/ListItemElement.js.map +0 -1
- package/core/element/MainElement.d.ts +0 -5
- package/core/element/MainElement.js +0 -10
- package/core/element/MainElement.js.map +0 -1
- package/core/element/NavElement.d.ts +0 -5
- package/core/element/NavElement.js +0 -10
- package/core/element/NavElement.js.map +0 -1
- package/core/element/OrderedListElement.d.ts +0 -5
- package/core/element/OrderedListElement.js +0 -10
- package/core/element/OrderedListElement.js.map +0 -1
- package/core/element/ParagraphElement.d.ts +0 -5
- package/core/element/ParagraphElement.js +0 -10
- package/core/element/ParagraphElement.js.map +0 -1
- package/core/element/PreElement.d.ts +0 -5
- package/core/element/PreElement.js +0 -10
- package/core/element/PreElement.js.map +0 -1
- package/core/element/SectionElement.d.ts +0 -5
- package/core/element/SectionElement.js +0 -12
- package/core/element/SectionElement.js.map +0 -1
- package/core/element/SelectElement.d.ts +0 -5
- package/core/element/SelectElement.js +0 -12
- package/core/element/SelectElement.js.map +0 -1
- package/core/element/SourceElement.d.ts +0 -8
- package/core/element/SourceElement.js +0 -14
- package/core/element/SourceElement.js.map +0 -1
- package/core/element/SpanElement.d.ts +0 -5
- package/core/element/SpanElement.js +0 -10
- package/core/element/SpanElement.js.map +0 -1
- package/core/element/StrongElement.d.ts +0 -5
- package/core/element/StrongElement.js +0 -12
- package/core/element/StrongElement.js.map +0 -1
- package/core/element/StyleElement.d.ts +0 -5
- package/core/element/StyleElement.js +0 -10
- package/core/element/StyleElement.js.map +0 -1
- package/core/element/SummaryElement.d.ts +0 -5
- package/core/element/SummaryElement.js +0 -12
- package/core/element/SummaryElement.js.map +0 -1
- package/core/element/SvgElement.d.ts +0 -18
- package/core/element/SvgElement.js +0 -151
- package/core/element/SvgElement.js.map +0 -1
- package/core/element/TableBodyElement.d.ts +0 -5
- package/core/element/TableBodyElement.js +0 -10
- package/core/element/TableBodyElement.js.map +0 -1
- package/core/element/TableCellElement.d.ts +0 -10
- package/core/element/TableCellElement.js +0 -25
- package/core/element/TableCellElement.js.map +0 -1
- package/core/element/TableColElement.d.ts +0 -7
- package/core/element/TableColElement.js +0 -13
- package/core/element/TableColElement.js.map +0 -1
- package/core/element/TableColGroupElement.d.ts +0 -7
- package/core/element/TableColGroupElement.js +0 -15
- package/core/element/TableColGroupElement.js.map +0 -1
- package/core/element/TableElement.d.ts +0 -45
- package/core/element/TableElement.js +0 -228
- package/core/element/TableElement.js.map +0 -1
- package/core/element/TableFootElement.d.ts +0 -5
- package/core/element/TableFootElement.js +0 -10
- package/core/element/TableFootElement.js.map +0 -1
- package/core/element/TableFootRowElement.d.ts +0 -9
- package/core/element/TableFootRowElement.js +0 -23
- package/core/element/TableFootRowElement.js.map +0 -1
- package/core/element/TableHeadCellElement.d.ts +0 -10
- package/core/element/TableHeadCellElement.js +0 -24
- package/core/element/TableHeadCellElement.js.map +0 -1
- package/core/element/TableHeadElement.d.ts +0 -5
- package/core/element/TableHeadElement.js +0 -10
- package/core/element/TableHeadElement.js.map +0 -1
- package/core/element/TableHeadRowElement.d.ts +0 -11
- package/core/element/TableHeadRowElement.js +0 -29
- package/core/element/TableHeadRowElement.js.map +0 -1
- package/core/element/TableRowElement.d.ts +0 -11
- package/core/element/TableRowElement.js +0 -29
- package/core/element/TableRowElement.js.map +0 -1
- package/core/element/TextAreaElement.d.ts +0 -7
- package/core/element/TextAreaElement.js +0 -10
- package/core/element/TextAreaElement.js.map +0 -1
- package/core/element/UListElement.d.ts +0 -5
- package/core/element/UListElement.js +0 -10
- package/core/element/UListElement.js.map +0 -1
- package/core/element/VideoElement.d.ts +0 -13
- package/core/element/VideoElement.js +0 -16
- package/core/element/VideoElement.js.map +0 -1
- package/core/element/index.d.ts +0 -72
- package/core/element/index.js +0 -73
- package/core/element/index.js.map +0 -1
- package/core/event/index.d.ts +0 -16
- package/core/event/index.js +0 -75
- package/core/event/index.js.map +0 -1
- package/core/index.js.map +0 -1
- package/core/ref/Computed.d.ts +0 -3
- package/core/ref/Computed.js +0 -75
- package/core/ref/Computed.js.map +0 -1
- package/core/ref/RefBoolean.d.ts +0 -91
- package/core/ref/RefBoolean.js +0 -119
- package/core/ref/RefBoolean.js.map +0 -1
- package/core/ref/RefContainer.d.ts +0 -28
- package/core/ref/RefContainer.js +0 -114
- package/core/ref/RefContainer.js.map +0 -1
- package/core/ref/RefList.d.ts +0 -120
- package/core/ref/RefList.js +0 -240
- package/core/ref/RefList.js.map +0 -1
- package/core/ref/RefMap.d.ts +0 -100
- package/core/ref/RefMap.js +0 -149
- package/core/ref/RefMap.js.map +0 -1
- package/core/ref/RefNumber.d.ts +0 -118
- package/core/ref/RefNumber.js +0 -157
- package/core/ref/RefNumber.js.map +0 -1
- package/core/ref/RefObject copy.d.ts +0 -124
- package/core/ref/RefObject copy.js +0 -271
- package/core/ref/RefObject copy.js.map +0 -1
- package/core/ref/RefObject.d.ts +0 -120
- package/core/ref/RefObject.js +0 -265
- package/core/ref/RefObject.js.map +0 -1
- package/core/ref/RefProperty.d.ts +0 -3
- package/core/ref/RefProperty.js +0 -46
- package/core/ref/RefProperty.js.map +0 -1
- package/core/ref/RefSet.d.ts +0 -99
- package/core/ref/RefSet.js +0 -148
- package/core/ref/RefSet.js.map +0 -1
- package/core/ref/RefState.d.ts +0 -25
- package/core/ref/RefState.js +0 -89
- package/core/ref/RefState.js.map +0 -1
- package/core/ref/RefString.d.ts +0 -148
- package/core/ref/RefString.js +0 -179
- package/core/ref/RefString.js.map +0 -1
- package/core/ref/index.d.ts +0 -23
- package/core/ref/index.js +0 -71
- package/core/ref/index.js.map +0 -1
- package/core/router/RouteView.d.ts +0 -20
- package/core/router/RouteView.js +0 -84
- package/core/router/RouteView.js.map +0 -1
- package/core/router/Router.d.ts +0 -78
- package/core/router/Router.js +0 -307
- package/core/router/Router.js.map +0 -1
- package/core/router/RouterEvent.d.ts +0 -36
- package/core/router/RouterEvent.js +0 -43
- package/core/router/RouterEvent.js.map +0 -1
- package/core/router/RouterGuard.d.ts +0 -12
- package/core/router/RouterGuard.js +0 -3
- package/core/router/RouterGuard.js.map +0 -1
- package/core/router/index.d.ts +0 -4
- package/core/router/index.js +0 -5
- package/core/router/index.js.map +0 -1
- package/global/index.js.map +0 -1
- package/global/safari-polyfill.d.ts +0 -0
- package/global/safari-polyfill.js +0 -234
- package/global/safari-polyfill.js.map +0 -1
- package/index.js +0 -4
- package/index.js.map +0 -1
- package/translation/index.d.ts +0 -0
- /package/{assets → dist/assets}/index.d.ts +0 -0
- /package/{assets → dist/assets}/index.js +0 -0
- /package/{assets → dist/assets}/index.js.map +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
export class ListItemElement extends HTMLLIElement {
|
|
3
|
-
static TAG = "tc-list-item-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
item = undefined;
|
|
9
|
-
removeItem() {
|
|
10
|
-
this.dispatchEvent(new CustomEvent("removeItem", { detail: { item: this.item, element: this }, bubbles: true, cancelable: true }));
|
|
11
|
-
}
|
|
12
|
-
set draggable(value) {
|
|
13
|
-
if (value) {
|
|
14
|
-
this.addClassName("item-draggable");
|
|
15
|
-
this.setAttribute("draggable", "true");
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
this.classList.remove("item-draggable");
|
|
19
|
-
this.removeAttribute("draggable");
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
get draggable() {
|
|
23
|
-
return this.hasAttribute("draggable");
|
|
24
|
-
}
|
|
25
|
-
onSelect() { }
|
|
26
|
-
}
|
|
27
|
-
TypeComposer.defineElement(ListItemElement.TAG, ListItemElement, { extends: "li" });
|
|
28
|
-
//# sourceMappingURL=ListItemElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemElement.js","sourceRoot":"","sources":["../../../src/core/element/ListItemElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,eAAyB,SAAQ,aAAa;IAC1D,MAAM,CAAU,GAAG,GAAW,sBAAsB,CAAC;IACrD,YAAY,KAA8C;QACzD,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;IACD,IAAI,GAAkB,SAAS,CAAC;IAEhC,UAAU;QACT,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACpI,CAAC;IAED,IAAI,SAAS,CAAC,KAAc;QAC3B,IAAI,KAAK,EAAE,CAAC;YACX,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;YACpC,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACP,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YACxC,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;QACnC,CAAC;IACF,CAAC;IAED,IAAI,SAAS;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAED,QAAQ,KAAW,CAAC;;AAGrB,YAAY,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
export class MainElement extends HTMLElement {
|
|
3
|
-
static TAG = "tc-main-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(MainElement.TAG, MainElement, { extends: "main" });
|
|
10
|
-
//# sourceMappingURL=MainElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MainElement.js","sourceRoot":"","sources":["../../../src/core/element/MainElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC3C,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAChD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
export class NavElement extends HTMLElement {
|
|
3
|
-
static TAG = "tc-nav-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(NavElement.TAG, NavElement, { extends: "nav" });
|
|
10
|
-
//# sourceMappingURL=NavElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NavElement.js","sourceRoot":"","sources":["../../../src/core/element/NavElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,UAAW,SAAQ,WAAW;IAC1C,MAAM,CAAU,GAAG,GAAW,gBAAgB,CAAC;IAC/C,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrderedListElement.js","sourceRoot":"","sources":["../../../src/core/element/OrderedListElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,kBAAmB,SAAQ,gBAAgB;IACvD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,kBAAkB,CAAC,GAAG,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParagraphElement.js","sourceRoot":"","sources":["../../../src/core/element/ParagraphElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,gBAAiB,SAAQ,oBAAoB;IACzD,MAAM,CAAU,GAAG,GAAW,cAAc,CAAC;IAC7C,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PreElement.js","sourceRoot":"","sources":["../../../src/core/element/PreElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,UAAW,SAAQ,cAAc;IAC7C,MAAM,CAAU,GAAG,GAAW,gBAAgB,CAAC;IAC/C,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SectionElement.js","sourceRoot":"","sources":["../../../src/core/element/SectionElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC9C,MAAM,CAAU,GAAG,GAAW,oBAAoB,CAAC;IACnD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE;IAC9D,OAAO,EAAE,SAAS;CAClB,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectElement.js","sourceRoot":"","sources":["../../../src/core/element/SelectElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;IAC5D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SourceElement.js","sourceRoot":"","sources":["../../../src/core/element/SourceElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YACC,KAGC;QAED,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,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpanElement.js","sourceRoot":"","sources":["../../../src/core/element/SpanElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,WAAY,SAAQ,eAAe;IAC/C,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAChD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StrongElement.js","sourceRoot":"","sources":["../../../src/core/element/StrongElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,aAAc,SAAQ,eAAe;IACjD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;IAC5D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyleElement.js","sourceRoot":"","sources":["../../../src/core/element/StyleElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACjD,MAAM,CAAU,GAAG,GAAW,kBAAkB,CAAC;IACjD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SummaryElement.js","sourceRoot":"","sources":["../../../src/core/element/SummaryElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC9C,MAAM,CAAU,GAAG,GAAW,sBAAsB,CAAC;IACrD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE;IAC9D,OAAO,EAAE,SAAS;CAClB,CAAC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ElementProps } from "../../";
|
|
2
|
-
interface SvgBaseElement extends IComponent {
|
|
3
|
-
src?: string;
|
|
4
|
-
readonly complete: boolean;
|
|
5
|
-
}
|
|
6
|
-
interface SvgConstructor {
|
|
7
|
-
new (props?: ElementProps & {
|
|
8
|
-
src?: string;
|
|
9
|
-
}): SvgBaseElement;
|
|
10
|
-
}
|
|
11
|
-
declare const SvgBaseElement: SvgConstructor;
|
|
12
|
-
export declare class SvgElement extends SvgBaseElement {
|
|
13
|
-
static readonly TAG: string;
|
|
14
|
-
constructor(props?: ElementProps & {
|
|
15
|
-
src?: string;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
export {};
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { Component, DivElement } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SvgElement.js","sourceRoot":"","sources":["../../../src/core/element/SvgElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAW7D,MAAM,SAAS,GAAG,IAAI,G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,GAAG,IAAI,CAAC;oBACpB,GAAG,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;oBAC5C,aAAa;oBACb,IAAI,GAAG,CAAC,OAAO;wBAAE,GAAG,CAAC,OAAO,EAAE,CAAC;gBAChC,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC,CAAC;IACF,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAChD,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE;QACrB,UAAU,EAAE,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,KAAuC;QAClD,KAAK,CAAC,KAAK,CAAC,CAAC;IACd,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableBodyElement.js","sourceRoot":"","sources":["../../../src/core/element/TableBodyElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,gBAAiB,SAAQ,uBAAuB;IAC5D,MAAM,CAAU,GAAG,GAAW,kBAAkB,CAAC;IACjD,YAAY,KAAoB;QAC/B,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ElementProps } from "../../";
|
|
2
|
-
export declare class TableCellElement extends HTMLTableCellElement implements IComponent {
|
|
3
|
-
static readonly TAG: string;
|
|
4
|
-
constructor(props?: ElementProps & {
|
|
5
|
-
colspan?: number;
|
|
6
|
-
rowspan?: number;
|
|
7
|
-
child?: HTMLElement;
|
|
8
|
-
value?: string | number | HTMLElement;
|
|
9
|
-
});
|
|
10
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellElement.js","sourceRoot":"","sources":["../../../src/core/element/TableCellElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,gBAAiB,SAAQ,oBAAoB;IACzD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YACC,KAKC;QAED,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,OAAO;YAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QACjD,IAAI,KAAK,EAAE,OAAO;YAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QACjD,IAAI,KAAK,EAAE,KAAK,EAAE,CAAC;YAClB,IAAI,KAAK,CAAC,KAAK,YAAY,WAAW;gBAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;;gBACjE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC9C,CAAC;QACD,6BAA6B;QAC7B,IAAI,KAAK,EAAE,KAAK;YAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAChD,OAAO,KAAK,EAAE,KAAK,CAAC;QACpB,OAAO,KAAK,EAAE,KAAK,CAAC;QACpB,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableColElement.js","sourceRoot":"","sources":["../../../src/core/element/TableColElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AACjD,QAAQ;AACR,MAAM,OAAO,eAAgB,SAAQ,mBAAmB;IACvD,MAAM,CAAU,GAAG,GAAW,gBAAgB,CAAC;IAC/C,YACC,KAEC;QAED,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAW,CAAC;QAC/C,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
// <colgroup>
|
|
3
|
-
export class TableColGroupElement extends HTMLTableColElement {
|
|
4
|
-
static TAG = "tc-colgroup-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(TableColGroupElement.TAG, TableColGroupElement, {
|
|
13
|
-
extends: "colgroup",
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=TableColGroupElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableColGroupElement.js","sourceRoot":"","sources":["../../../src/core/element/TableColGroupElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AACjD,aAAa;AACb,MAAM,OAAO,oBAAqB,SAAQ,mBAAmB;IAC5D,MAAM,CAAU,GAAG,GAAW,qBAAqB,CAAC;IACpD,YACC,KAEC;QAED,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAW,CAAC;QAC/C,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,oBAAoB,CAAC,GAAG,EAAE,oBAAoB,EAAE;IAC1E,OAAO,EAAE,UAAU;CACnB,CAAC,CAAC"}
|