typecomposer 0.1.47 → 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 +31 -6
- package/styles/style.scss +2 -17
- 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,47 +0,0 @@
|
|
|
1
|
-
import { Component, DivElement } from "../";
|
|
2
|
-
export class VirtualScroll extends Component {
|
|
3
|
-
static TAG = "tc-virtual-scroll";
|
|
4
|
-
items;
|
|
5
|
-
renderItem;
|
|
6
|
-
itemHeight;
|
|
7
|
-
buffer;
|
|
8
|
-
#innerContainer;
|
|
9
|
-
constructor(props) {
|
|
10
|
-
super({ style: { overflowY: "auto", position: "relative" }, ...props });
|
|
11
|
-
this.items = props.items;
|
|
12
|
-
this.renderItem = props.renderItem;
|
|
13
|
-
this.itemHeight = props.itemHeight ?? 50;
|
|
14
|
-
this.buffer = props.buffer ?? 5;
|
|
15
|
-
this.#innerContainer = new DivElement();
|
|
16
|
-
this.#innerContainer.style.position = "relative";
|
|
17
|
-
this.#innerContainer.style.height = `${this.items.length * this.itemHeight}px`;
|
|
18
|
-
this.appendChild(this.#innerContainer);
|
|
19
|
-
this.addEventListener("scroll", this.onScroll.bind(this));
|
|
20
|
-
this.addEventListener("onConnected", this.renderVisibleItems.bind(this));
|
|
21
|
-
}
|
|
22
|
-
get innerContainer() {
|
|
23
|
-
return this.#innerContainer;
|
|
24
|
-
}
|
|
25
|
-
onScroll() {
|
|
26
|
-
this.renderVisibleItems();
|
|
27
|
-
}
|
|
28
|
-
renderVisibleItems() {
|
|
29
|
-
const scrollTop = this.scrollTop;
|
|
30
|
-
const containerHeight = this.clientHeight;
|
|
31
|
-
const startIndex = Math.floor(scrollTop / this.itemHeight) - this.buffer;
|
|
32
|
-
const endIndex = Math.ceil((scrollTop + containerHeight) / this.itemHeight) + this.buffer;
|
|
33
|
-
const clampedStartIndex = Math.max(0, startIndex);
|
|
34
|
-
const clampedEndIndex = Math.min(this.items.length, endIndex);
|
|
35
|
-
this.#innerContainer.innerHTML = "";
|
|
36
|
-
for (let i = clampedStartIndex; i < clampedEndIndex; i++) {
|
|
37
|
-
const item = this.items[i];
|
|
38
|
-
const element = this.renderItem(item, i);
|
|
39
|
-
element.style.position = "absolute";
|
|
40
|
-
element.style.top = `${i * this.itemHeight}px`;
|
|
41
|
-
element.style.width = "100%";
|
|
42
|
-
this.#innerContainer.appendChild(element);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
TypeComposer.defineElement(VirtualScroll.TAG, VirtualScroll);
|
|
47
|
-
//# sourceMappingURL=VirtualScroll.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VirtualScroll.js","sourceRoot":"","sources":["../../../src/core/components/VirtualScroll.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export { AlertPanel } from "./AlertPanel";
|
|
2
|
-
export { AvatarPanel } from "./AvatarPanel";
|
|
3
|
-
export { BorderPanel } from "./BorderPanel";
|
|
4
|
-
export { CardPanel } from "./CardPanel";
|
|
5
|
-
export { CheckBox } from "./CheckBox";
|
|
6
|
-
export { ColorPicker } from "./ColorPicker";
|
|
7
|
-
export { DialogPanel } from "./DialogPanel";
|
|
8
|
-
export { TextField } from "./TextField";
|
|
9
|
-
export { DropDown, DropDownItem } from "./DropDown";
|
|
10
|
-
export { FlowPanel } from "./FlowPanel";
|
|
11
|
-
export { ForEach } from "./ForEach";
|
|
12
|
-
export { GridPanel } from "./GridPanel";
|
|
13
|
-
export { HBox } from "./HBox";
|
|
14
|
-
export { LazyLoading, type LazyLoadingProps } from "./LazyLoading";
|
|
15
|
-
export { ListPanel } from "./ListPanel";
|
|
16
|
-
export { PopUpButton } from "./PopUpButton";
|
|
17
|
-
export { ScrollPanel } from "./ScrollPanel";
|
|
18
|
-
export { StackPanel } from "./StackPanel";
|
|
19
|
-
export { TablePanel } from "./TablePanel";
|
|
20
|
-
export { TabItem } from "./TabItem";
|
|
21
|
-
export { TabPanel } from "./TabPanel";
|
|
22
|
-
export { TextEdit } from "./TextEdit";
|
|
23
|
-
export { ToggleButton } from "./ToggleButton";
|
|
24
|
-
export { VBox } from "./VBox";
|
|
25
|
-
export { VirtualScroll, type VirtualScrollProps } from "./VirtualScroll";
|
|
26
|
-
export { ContextMenu, ContextMenuItem } from "./ContextMenu";
|
|
27
|
-
export { Tooltip, type TooltipProps } from "./Tooltip";
|
|
28
|
-
export { SliderPanel } from "./SliderPanel";
|
package/core/components/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export { AlertPanel } from "./AlertPanel";
|
|
2
|
-
export { AvatarPanel } from "./AvatarPanel";
|
|
3
|
-
export { BorderPanel } from "./BorderPanel";
|
|
4
|
-
export { CardPanel } from "./CardPanel";
|
|
5
|
-
export { CheckBox } from "./CheckBox";
|
|
6
|
-
export { ColorPicker } from "./ColorPicker";
|
|
7
|
-
export { DialogPanel } from "./DialogPanel";
|
|
8
|
-
export { TextField } from "./TextField";
|
|
9
|
-
export { DropDown, DropDownItem } from "./DropDown";
|
|
10
|
-
export { FlowPanel } from "./FlowPanel";
|
|
11
|
-
export { ForEach } from "./ForEach";
|
|
12
|
-
export { GridPanel } from "./GridPanel";
|
|
13
|
-
export { HBox } from "./HBox";
|
|
14
|
-
export { LazyLoading } from "./LazyLoading";
|
|
15
|
-
export { ListPanel } from "./ListPanel";
|
|
16
|
-
export { PopUpButton } from "./PopUpButton";
|
|
17
|
-
export { ScrollPanel } from "./ScrollPanel";
|
|
18
|
-
// Missing
|
|
19
|
-
export { StackPanel } from "./StackPanel";
|
|
20
|
-
export { TablePanel } from "./TablePanel";
|
|
21
|
-
export { TabItem } from "./TabItem";
|
|
22
|
-
export { TabPanel } from "./TabPanel";
|
|
23
|
-
export { TextEdit } from "./TextEdit";
|
|
24
|
-
export { ToggleButton } from "./ToggleButton";
|
|
25
|
-
export { VBox } from "./VBox";
|
|
26
|
-
export { VirtualScroll } from "./VirtualScroll";
|
|
27
|
-
export { ContextMenu, ContextMenuItem } from "./ContextMenu";
|
|
28
|
-
export { Tooltip } from "./Tooltip";
|
|
29
|
-
export { SliderPanel } from "./SliderPanel";
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/components/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,UAAU;AACV,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,aAAa,EAA2B,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAqB,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
let index = 1;
|
|
2
|
-
function converClasNameToTag(className, isExported = true) {
|
|
3
|
-
if (className == undefined)
|
|
4
|
-
return `base-${Math.random().toString(36).substring(7)}-element`;
|
|
5
|
-
let name = className.replace(/([a-z])([A-Z])/g, '$1-$2').replace(/(\d+)([A-Z])/g, '$1-$2').toLowerCase();
|
|
6
|
-
if (isExported == false) {
|
|
7
|
-
name = `${name}-${Math.random().toString(36).substring(7) + index.toString()}`;
|
|
8
|
-
}
|
|
9
|
-
else if (!name.includes("-"))
|
|
10
|
-
name = name + "-element";
|
|
11
|
-
return name;
|
|
12
|
-
}
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
export function Register(options) {
|
|
15
|
-
return function (constructor) {
|
|
16
|
-
const tag = options?.tag || converClasNameToTag(constructor.name, options?.scoped || false);
|
|
17
|
-
TypeComposer.defineElement(tag, constructor, { extends: options?.extends });
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=RegisterComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterComponent.js","sourceRoot":"","sources":["../../../src/core/decorators/RegisterComponent.ts"],"names":[],"mappings":"AAOA,IAAI,KAAK,GAAG,CAAC,CAAC;AACd,SAAS,mBAAmB,CAAC,SAAiB,EAAE,aAAsB,IAAI;IACxE,IAAI,SAAS,IAAI,SAAS;QACxB,OAAO,QAAQ,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;IACnE,IAAI,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;IACxG,IAAI,UAAU,IAAI,KAAK,EAAE,CAAC;QACxB,IAAI,GAAG,GAAG,IAAI,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC;IACjF,CAAC;SAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;QAC5B,IAAI,GAAG,IAAI,GAAG,UAAU,CAAC;IAC3B,OAAO,IAAI,CAAA;AACb,CAAC;AACD,aAAa;AACb,MAAM,UAAU,QAAQ,CAAC,OAAoC;IAC3D,OAAO,UAAU,WAAqC;QACpD,MAAM,GAAG,GAAG,OAAO,EAAE,GAAG,IAAI,mBAAmB,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,CAAC,CAAC;QAC5F,YAAY,CAAC,aAAa,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function StyleLink(url: string): (__: Function) => void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export function StyleLink(url) {
|
|
2
|
-
return (__) => {
|
|
3
|
-
if (url != undefined) {
|
|
4
|
-
if (url.indexOf("src/") == -1)
|
|
5
|
-
url = "src/" + url;
|
|
6
|
-
// if (constructor.prototype._onLoad == undefined)
|
|
7
|
-
// constructor.prototype._onLoad = [function (this: Component) { this.addStyleLink(url) }];
|
|
8
|
-
// else
|
|
9
|
-
// constructor.prototype._onLoad.push(function (this: Component) { this.addStyleLink(url) });
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=StyleLink.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StyleLink.js","sourceRoot":"","sources":["../../../src/core/decorators/StyleLink.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,OAAO,CAAC,EAAY,EAAE,EAAE;QACtB,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC;YACrB,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBAAE,GAAG,GAAG,MAAM,GAAG,GAAG,CAAC;YAClD,kDAAkD;YAClD,+FAA+F;YAC/F,OAAO;YACP,iGAAiG;QACnG,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
package/core/decorators/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/decorators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,UAAU,MAAM,CAAC,MAAW;IACjC,OAAO,UAAU,CAA2B,IAAI,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
export class AbbreviationElement extends HTMLElement {
|
|
3
|
-
static TAG = "tc-abbr-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(AbbreviationElement.TAG, AbbreviationElement, { extends: "abbr" });
|
|
10
|
-
//# sourceMappingURL=AbbreviationElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AbbreviationElement.js","sourceRoot":"","sources":["../../../src/core/element/AbbreviationElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAEnD,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAEhD,YACC,KAEC;QAED,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,mBAAmB,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ElementProps } from "../../";
|
|
2
|
-
export interface DataAnchorElement extends ElementProps {
|
|
3
|
-
href?: string;
|
|
4
|
-
rlink?: string;
|
|
5
|
-
target?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class AnchorElement extends HTMLAnchorElement implements IComponent {
|
|
8
|
-
#private;
|
|
9
|
-
static readonly TAG: string;
|
|
10
|
-
constructor(props?: ElementProps & {
|
|
11
|
-
download?: string;
|
|
12
|
-
href?: string;
|
|
13
|
-
hreflang?: string;
|
|
14
|
-
media?: string;
|
|
15
|
-
ping?: string;
|
|
16
|
-
referrerpolicy?: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
17
|
-
rel?: "alternate" | "author" | "bookmark" | "external" | "help" | "license" | "next" | "nofollow" | "noopener" | "noreferrer" | "opener" | "prev" | "search" | "tag";
|
|
18
|
-
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
19
|
-
type?: string;
|
|
20
|
-
rlink?: string;
|
|
21
|
-
});
|
|
22
|
-
set rlink(link: string);
|
|
23
|
-
get rlink(): string;
|
|
24
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Component, Router } from "../../";
|
|
2
|
-
export class AnchorElement extends HTMLAnchorElement {
|
|
3
|
-
static TAG = "tc-anchor-element";
|
|
4
|
-
#rlinkController = undefined;
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
}
|
|
9
|
-
set rlink(link) {
|
|
10
|
-
if (this.#rlinkController)
|
|
11
|
-
this.removeEventListener("click", this.#rlinkController.action);
|
|
12
|
-
this.href = link;
|
|
13
|
-
if (link) {
|
|
14
|
-
this.#rlinkController = {
|
|
15
|
-
rlink: link,
|
|
16
|
-
action: (e) => {
|
|
17
|
-
e.preventDefault();
|
|
18
|
-
Router.go(link);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
this.addEventListener("click", this.#rlinkController.action);
|
|
22
|
-
}
|
|
23
|
-
else
|
|
24
|
-
this.#rlinkController;
|
|
25
|
-
}
|
|
26
|
-
get rlink() {
|
|
27
|
-
return this.#rlinkController?.rlink || "";
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
TypeComposer.defineElement(AnchorElement.TAG, AnchorElement, { extends: "a" });
|
|
31
|
-
//# sourceMappingURL=AnchorElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnchorElement.js","sourceRoot":"","sources":["../../../src/core/element/AnchorElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQzD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACjD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,gBAAgB,GAGZ,SAAS,CAAC;IAEhB,YACC,KAiCC;QAED,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEnC,CAAC;IAED,IAAI,KAAK,CAAC,IAAY;QACrB,IAAI,IAAI,CAAC,gBAAgB;YACxB,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,IAAI,EAAE,CAAC;YACV,IAAI,CAAC,gBAAgB,GAAG;gBACvB,KAAK,EAAE,IAAI;gBACX,MAAM,EAAE,CAAC,CAAM,EAAE,EAAE;oBAClB,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;gBACjB,CAAC;aACD,CAAC;YACF,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAC9D,CAAC;;YACI,IAAI,CAAC,gBAAgB,CAAA;IAC3B,CAAC;IAED,IAAI,KAAK;QACR,OAAO,IAAI,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC;IAC3C,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ElementProps } from "../../";
|
|
2
|
-
export declare class AreaElement extends HTMLAreaElement implements IComponent {
|
|
3
|
-
static readonly TAG: string;
|
|
4
|
-
constructor(props?: ElementProps & {
|
|
5
|
-
alt?: string;
|
|
6
|
-
coords?: string;
|
|
7
|
-
download?: string;
|
|
8
|
-
href?: string;
|
|
9
|
-
hreflang?: string;
|
|
10
|
-
media?: string;
|
|
11
|
-
ping?: string;
|
|
12
|
-
referrerpolicy?: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
13
|
-
rel?: "alternate" | "author" | "bookmark" | "external" | "help" | "license" | "next" | "nofollow" | "noopener" | "noreferrer" | "opener" | "prev" | "search" | "tag";
|
|
14
|
-
shape?: "circle" | "default" | "poly" | "rect";
|
|
15
|
-
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
16
|
-
type?: string;
|
|
17
|
-
});
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
// area
|
|
3
|
-
export class AreaElement extends HTMLAreaElement {
|
|
4
|
-
static TAG = "tc-area-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
TypeComposer.defineElement(AreaElement.TAG, AreaElement, { extends: "area" });
|
|
11
|
-
//# sourceMappingURL=AreaElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AreaElement.js","sourceRoot":"","sources":["../../../src/core/element/AreaElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,OAAO;AACP,MAAM,OAAO,WAAY,SAAQ,eAAe;IAC/C,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAChD,YACC,KAmCC;QAED,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 ArticleElement extends HTMLElement {
|
|
3
|
-
static TAG = "tc-article-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(ArticleElement.TAG, ArticleElement, {
|
|
10
|
-
extends: "article",
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=ArticleElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleElement.js","sourceRoot":"","sources":["../../../src/core/element/ArticleElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC5C,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;;AAGJ,YAAY,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE;IAC9D,OAAO,EAAE,SAAS;CAClB,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ElementProps } from "../../";
|
|
2
|
-
export declare class AudioElement extends HTMLAudioElement implements IComponent {
|
|
3
|
-
static readonly TAG: string;
|
|
4
|
-
constructor(props?: ElementProps & {
|
|
5
|
-
autoplay?: boolean;
|
|
6
|
-
controls?: boolean;
|
|
7
|
-
loop?: boolean;
|
|
8
|
-
muted?: boolean;
|
|
9
|
-
preload?: "auto" | "metadata" | "none";
|
|
10
|
-
src?: string;
|
|
11
|
-
});
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
export class AudioElement extends HTMLAudioElement {
|
|
3
|
-
static TAG = "tc-audio-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(AudioElement.TAG, AudioElement, { extends: "audio" });
|
|
10
|
-
//# sourceMappingURL=AudioElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AudioElement.js","sourceRoot":"","sources":["../../../src/core/element/AudioElement.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,YACC,KAOC;QAED,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,8 +0,0 @@
|
|
|
1
|
-
import { ElementProps } from "../../";
|
|
2
|
-
export declare class BaseElement extends HTMLElement implements IComponent {
|
|
3
|
-
static readonly TAG: string;
|
|
4
|
-
constructor(props?: ElementProps & {
|
|
5
|
-
href?: string;
|
|
6
|
-
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
7
|
-
});
|
|
8
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
// <base>
|
|
3
|
-
export class BaseElement extends HTMLElement {
|
|
4
|
-
static TAG = "tc-base-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
TypeComposer.defineElement(BaseElement.TAG, BaseElement, { extends: "base" });
|
|
11
|
-
//# sourceMappingURL=BaseElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseElement.js","sourceRoot":"","sources":["../../../src/core/element/BaseElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AACjD,SAAS;AACT,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC3C,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAChD,YACC,KAGC;QAED,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,11 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
// <body>
|
|
3
|
-
export class BodyElement extends HTMLBodyElement {
|
|
4
|
-
static TAG = "tc-body-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
TypeComposer.defineElement(BodyElement.TAG, BodyElement, { extends: "body" });
|
|
11
|
-
//# sourceMappingURL=BodyElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BodyElement.js","sourceRoot":"","sources":["../../../src/core/element/BodyElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AACjD,SAAS;AACT,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,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
export class BoldElement extends HTMLElement {
|
|
3
|
-
static TAG = "tc-bold-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(BoldElement.TAG, BoldElement, { extends: "b" });
|
|
10
|
-
//# sourceMappingURL=BoldElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BoldElement.js","sourceRoot":"","sources":["../../../src/core/element/BoldElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AACjD,MAAM,OAAO,WAAY,SAAQ,WAAW;IACzC,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;;AAGJ,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
export class BreakElement extends HTMLBRElement {
|
|
3
|
-
static TAG = "tc-break-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(BreakElement.TAG, BreakElement, { extends: "br" });
|
|
10
|
-
//# sourceMappingURL=BreakElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BreakElement.js","sourceRoot":"","sources":["../../../src/core/element/BreakElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AACjD,MAAM,OAAO,YAAa,SAAQ,aAAa;IAC5C,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;;AAGJ,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ElementProps } from "../../";
|
|
2
|
-
export declare class ButtonElement extends HTMLButtonElement implements IComponent {
|
|
3
|
-
static readonly TAG: string;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
constructor(props?: ElementProps & {
|
|
6
|
-
autofocus?: boolean;
|
|
7
|
-
form?: string;
|
|
8
|
-
formaction?: string;
|
|
9
|
-
formenctype?: string;
|
|
10
|
-
formmethod?: string;
|
|
11
|
-
formnovalidate?: boolean;
|
|
12
|
-
formtarget?: string;
|
|
13
|
-
popovertarget?: string;
|
|
14
|
-
popovertargetaction?: "hide" | "show" | "toggle";
|
|
15
|
-
name?: string;
|
|
16
|
-
type?: "button" | "reset" | "submit" | "file";
|
|
17
|
-
value?: string;
|
|
18
|
-
accept?: string;
|
|
19
|
-
multiple?: boolean;
|
|
20
|
-
loading?: boolean;
|
|
21
|
-
onclick?: (event: MouseEvent) => void;
|
|
22
|
-
onfile?: (fileList: FileList) => void;
|
|
23
|
-
});
|
|
24
|
-
set type(value: "submit" | "reset" | "button" | "file");
|
|
25
|
-
set onclick(value: (event: MouseEvent) => void);
|
|
26
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
export class ButtonElement extends HTMLButtonElement {
|
|
3
|
-
static TAG = "tc-button-element";
|
|
4
|
-
loading;
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
const type = props?.type;
|
|
8
|
-
delete props?.type;
|
|
9
|
-
this.loading = props?.loading != undefined ? props?.loading : true;
|
|
10
|
-
Component.applyProps(this, props);
|
|
11
|
-
if (type)
|
|
12
|
-
this.type = type;
|
|
13
|
-
if (props?.accept)
|
|
14
|
-
this.accept = props.accept;
|
|
15
|
-
if (props?.multiple)
|
|
16
|
-
this.multiple = props.multiple;
|
|
17
|
-
}
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
set type(value) {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
super.type = value;
|
|
22
|
-
}
|
|
23
|
-
set onclick(value) {
|
|
24
|
-
if (this.loading && value.constructor.name === "AsyncFunction") {
|
|
25
|
-
super.onclick = async (event) => {
|
|
26
|
-
if (this.hasAttribute("loading"))
|
|
27
|
-
return;
|
|
28
|
-
if (this.loading) {
|
|
29
|
-
this.setAttribute("loading", "");
|
|
30
|
-
try {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
await value(event);
|
|
33
|
-
}
|
|
34
|
-
catch (error) {
|
|
35
|
-
}
|
|
36
|
-
this.removeAttribute("loading");
|
|
37
|
-
}
|
|
38
|
-
else
|
|
39
|
-
value(event);
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
else
|
|
43
|
-
super.onclick = value;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
TypeComposer.defineElement(ButtonElement.TAG, ButtonElement, { extends: "button" });
|
|
47
|
-
//# sourceMappingURL=ButtonElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonElement.js","sourceRoot":"","sources":["../../../src/core/element/ButtonElement.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,OAAO,CAAU;IACjB,YACC,KAkBC;QAED,KAAK,EAAE,CAAC;QACR,MAAM,IAAI,GAAG,KAAK,EAAE,IAAI,CAAC;QACzB,OAAO,KAAK,EAAE,IAAI,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,KAAK,EAAE,OAAO,IAAI,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;QACnE,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAClC,IAAI,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAC3B,IAAI,KAAK,EAAE,MAAM;YAAE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC9C,IAAI,KAAK,EAAE,QAAQ;YAAE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IACrD,CAAC;IAED,aAAa;IACb,IAAI,IAAI,CAAC,KAA6C;QACrD,aAAa;QACb,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC;IACpB,CAAC;IAED,IAAI,OAAO,CAAC,KAAkC;QAC7C,IAAI,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC,WAAW,CAAC,IAAI,KAAK,eAAe,EAAE,CAAC;YAChE,KAAK,CAAC,OAAO,GAAG,KAAK,EAAE,KAAiB,EAAE,EAAE;gBAC3C,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC;oBAAE,OAAO;gBACzC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;oBAClB,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;oBACjC,IAAI,CAAC;wBACJ,aAAa;wBACb,MAAM,KAAK,CAAC,KAAK,CAAC,CAAC;oBACpB,CAAC;oBAAC,OAAO,KAAK,EAAE,CAAC;oBACjB,CAAC;oBACD,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;gBACjC,CAAC;;oBACA,KAAK,CAAC,KAAK,CAAC,CAAC;YACf,CAAC,CAAA;QACF,CAAC;;YAEA,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACxB,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
export class CanvasElement extends HTMLCanvasElement {
|
|
3
|
-
static TAG = "tc-canvas-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
if (props?.width)
|
|
7
|
-
this.width = props.width;
|
|
8
|
-
if (props?.height)
|
|
9
|
-
this.height = props.height;
|
|
10
|
-
Component.applyProps(this, props);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
TypeComposer.defineElement(CanvasElement.TAG, CanvasElement, { extends: "canvas" });
|
|
14
|
-
//# sourceMappingURL=CanvasElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasElement.js","sourceRoot":"","sources":["../../../src/core/element/CanvasElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACjD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAuC;QAClD,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,KAAK;YAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAY,CAAC;QAClD,IAAI,KAAK,EAAE,MAAM;YAAE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAa,CAAC;QACrD,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;;AAGJ,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
// <caption>
|
|
3
|
-
export class CaptionElement extends HTMLTableCaptionElement {
|
|
4
|
-
static TAG = "tc-caption-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
TypeComposer.defineElement(CaptionElement.TAG, CaptionElement, {
|
|
11
|
-
extends: "caption",
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=CaptionElement.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CaptionElement.js","sourceRoot":"","sources":["../../../src/core/element/CaptionElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAE,MAAM,QAAQ,CAAC;AACjD,YAAY;AACZ,MAAM,OAAO,cAAe,SAAQ,uBAAuB;IAC1D,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;;AAEF,YAAY,CAAC,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,EAAE;IAC9D,OAAO,EAAE,SAAS;CAClB,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component } from "../../";
|
|
2
|
-
// <cite>
|
|
3
|
-
export class CiteElement extends HTMLElement {
|
|
4
|
-
static TAG = "tc-cite-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
TypeComposer.defineElement(CiteElement.TAG, CiteElement, { extends: "cite" });
|
|
11
|
-
//# sourceMappingURL=CiteElement.js.map
|