typecomposer 0.1.47 → 0.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/index.js +1 -2
- package/core/components/AlertPanel.d.ts +6 -6
- package/core/components/AlertPanel.js +1 -75
- package/core/components/AlertPanel.js.map +1 -1
- package/core/components/AvatarPanel.d.ts +2 -2
- package/core/components/AvatarPanel.js +1 -62
- package/core/components/AvatarPanel.js.map +1 -1
- package/core/components/BorderPanel.d.ts +2 -2
- package/core/components/BorderPanel.js +1 -90
- package/core/components/BorderPanel.js.map +1 -1
- package/core/components/CardPanel.d.ts +2 -2
- package/core/components/CardPanel.js +1 -11
- package/core/components/CardPanel.js.map +1 -1
- package/core/components/CheckBox.d.ts +2 -2
- package/core/components/CheckBox.js +1 -109
- package/core/components/CheckBox.js.map +1 -1
- package/core/components/ColorPicker.d.ts +2 -2
- package/core/components/ColorPicker.js +1 -36
- package/core/components/ColorPicker.js.map +1 -1
- package/core/components/ContextMenu.d.ts +3 -3
- package/core/components/ContextMenu.js +1 -64
- package/core/components/ContextMenu.js.map +1 -1
- package/core/components/DialogPanel.d.ts +2 -2
- package/core/components/DialogPanel.js +1 -62
- package/core/components/DialogPanel.js.map +1 -1
- package/core/components/DropDown.d.ts +3 -3
- package/core/components/DropDown.js +1 -231
- package/core/components/DropDown.js.map +1 -1
- package/core/components/FlowPanel.d.ts +2 -2
- package/core/components/FlowPanel.js +1 -40
- package/core/components/FlowPanel.js.map +1 -1
- package/core/components/ForEach.d.ts +2 -2
- package/core/components/ForEach.js +1 -88
- package/core/components/ForEach.js.map +1 -1
- package/core/components/GridPanel.d.ts +4 -7
- package/core/components/GridPanel.js +1 -30
- package/core/components/GridPanel.js.map +1 -1
- package/core/components/HBox.d.ts +2 -2
- package/core/components/HBox.js +1 -10
- package/core/components/HBox.js.map +1 -1
- package/core/components/LazyLoading.d.ts +2 -2
- package/core/components/LazyLoading.js +1 -36
- package/core/components/LazyLoading.js.map +1 -1
- package/core/components/ListPanel.d.ts +2 -2
- package/core/components/ListPanel.js +1 -153
- package/core/components/ListPanel.js.map +1 -1
- package/core/components/PopUpButton.d.ts +2 -2
- package/core/components/PopUpButton.js +1 -57
- package/core/components/PopUpButton.js.map +1 -1
- package/core/components/ScrollPanel.d.ts +2 -2
- package/core/components/ScrollPanel.js +1 -35
- package/core/components/ScrollPanel.js.map +1 -1
- package/core/components/SliderPanel.d.ts +2 -2
- package/core/components/SliderPanel.js +1 -135
- package/core/components/SliderPanel.js.map +1 -1
- package/core/components/StackPanel.d.ts +2 -2
- package/core/components/StackPanel.js +1 -10
- package/core/components/StackPanel.js.map +1 -1
- package/core/components/TabItem.js +1 -84
- package/core/components/TabPanel.d.ts +2 -2
- package/core/components/TabPanel.js +1 -96
- package/core/components/TabPanel.js.map +1 -1
- package/core/components/TextEdit.js +1 -174
- package/core/components/TextField.d.ts +2 -2
- package/core/components/TextField.js +1 -140
- package/core/components/TextField.js.map +1 -1
- package/core/components/ToggleButton.d.ts +2 -2
- package/core/components/ToggleButton.js +1 -20
- package/core/components/ToggleButton.js.map +1 -1
- package/core/components/Tooltip.d.ts +4 -6
- package/core/components/Tooltip.js +1 -14
- package/core/components/Tooltip.js.map +1 -1
- package/core/components/VBox.d.ts +2 -2
- package/core/components/VBox.js +1 -10
- package/core/components/VBox.js.map +1 -1
- package/core/components/VirtualScroll.d.ts +2 -2
- package/core/components/VirtualScroll.js +1 -47
- package/core/components/index.d.ts +1 -2
- package/core/components/index.js +1 -30
- package/core/components/index.js.map +1 -1
- package/core/decorators/RegisterComponent.js +1 -20
- package/core/decorators/StyleLink.js +1 -13
- package/core/decorators/index.js +1 -6
- package/core/element/AbbreviationElement.d.ts +2 -4
- package/core/element/AbbreviationElement.js +1 -10
- package/core/element/AbbreviationElement.js.map +1 -1
- package/core/element/AnchorElement.d.ts +2 -18
- package/core/element/AnchorElement.js +1 -31
- package/core/element/AnchorElement.js.map +1 -1
- package/core/element/AreaElement.d.ts +2 -15
- package/core/element/AreaElement.js +1 -11
- package/core/element/AreaElement.js.map +1 -1
- package/core/element/ArticleElement.d.ts +2 -2
- package/core/element/ArticleElement.js +1 -12
- package/core/element/ArticleElement.js.map +1 -1
- package/core/element/AudioElement.d.ts +2 -9
- package/core/element/AudioElement.js +1 -10
- package/core/element/AudioElement.js.map +1 -1
- package/core/element/BaseElement.d.ts +2 -5
- package/core/element/BaseElement.js +1 -11
- package/core/element/BaseElement.js.map +1 -1
- package/core/element/BodyElement.d.ts +2 -2
- package/core/element/BodyElement.js +1 -11
- package/core/element/BodyElement.js.map +1 -1
- package/core/element/BoldElement.d.ts +2 -2
- package/core/element/BoldElement.js +1 -10
- package/core/element/BoldElement.js.map +1 -1
- package/core/element/BreakElement.d.ts +2 -2
- package/core/element/BreakElement.js +1 -10
- package/core/element/BreakElement.js.map +1 -1
- package/core/element/ButtonElement.d.ts +4 -21
- package/core/element/ButtonElement.js +1 -47
- package/core/element/ButtonElement.js.map +1 -1
- package/core/element/CanvasElement.d.ts +2 -2
- package/core/element/CanvasElement.js +1 -14
- package/core/element/CanvasElement.js.map +1 -1
- package/core/element/CaptionElement.d.ts +2 -2
- package/core/element/CaptionElement.js +1 -13
- package/core/element/CaptionElement.js.map +1 -1
- package/core/element/CiteElement.d.ts +2 -2
- package/core/element/CiteElement.js +1 -11
- package/core/element/CiteElement.js.map +1 -1
- package/core/element/CodeElement.d.ts +2 -2
- package/core/element/CodeElement.js +1 -13
- package/core/element/CodeElement.js.map +1 -1
- package/core/element/DataListElement.d.ts +2 -2
- package/core/element/DataListElement.js +1 -13
- package/core/element/DataListElement.js.map +1 -1
- package/core/element/DefinitionDescriptionElement.d.ts +2 -2
- package/core/element/DefinitionDescriptionElement.js +1 -13
- package/core/element/DefinitionDescriptionElement.js.map +1 -1
- package/core/element/DefinitionElement.d.ts +2 -2
- package/core/element/DefinitionElement.js +1 -13
- package/core/element/DefinitionElement.js.map +1 -1
- package/core/element/DeletedTextElement.d.ts +2 -4
- package/core/element/DeletedTextElement.js +1 -15
- package/core/element/DeletedTextElement.js.map +1 -1
- package/core/element/DetailsElement.d.ts +3 -6
- package/core/element/DetailsElement.js +1 -28
- package/core/element/DetailsElement.js.map +1 -1
- package/core/element/DialogElement.d.ts +2 -4
- package/core/element/DialogElement.js +1 -14
- package/core/element/DialogElement.js.map +1 -1
- package/core/element/DivElement.d.ts +2 -2
- package/core/element/DivElement.js +1 -10
- package/core/element/DivElement.js.map +1 -1
- package/core/element/EmElement.d.ts +2 -2
- package/core/element/EmElement.js +1 -10
- package/core/element/EmElement.js.map +1 -1
- package/core/element/EmbedElement.d.ts +2 -7
- package/core/element/EmbedElement.js +1 -19
- package/core/element/EmbedElement.js.map +1 -1
- package/core/element/FieldSetElement.d.ts +3 -6
- package/core/element/FieldSetElement.js +1 -34
- package/core/element/FieldSetElement.js.map +1 -1
- package/core/element/FooterElement.d.ts +2 -2
- package/core/element/FooterElement.js +1 -13
- package/core/element/FooterElement.js.map +1 -1
- package/core/element/FormElement.d.ts +2 -17
- package/core/element/FormElement.js +1 -36
- package/core/element/FormElement.js.map +1 -1
- package/core/element/Fragment.js +1 -103
- package/core/element/H1Element.d.ts +2 -2
- package/core/element/H1Element.js +1 -10
- package/core/element/H1Element.js.map +1 -1
- package/core/element/H2Element.d.ts +2 -2
- package/core/element/H2Element.js +1 -10
- package/core/element/H2Element.js.map +1 -1
- package/core/element/H3Element.d.ts +2 -2
- package/core/element/H3Element.js +1 -10
- package/core/element/H3Element.js.map +1 -1
- package/core/element/H4Element.d.ts +2 -2
- package/core/element/H4Element.js +1 -10
- package/core/element/H4Element.js.map +1 -1
- package/core/element/H5Element.d.ts +2 -2
- package/core/element/H5Element.js +1 -10
- package/core/element/H5Element.js.map +1 -1
- package/core/element/H6Element.d.ts +2 -2
- package/core/element/H6Element.js +1 -10
- package/core/element/H6Element.js.map +1 -1
- package/core/element/HeadElement.d.ts +2 -2
- package/core/element/HeadElement.js +1 -11
- package/core/element/HeadElement.js.map +1 -1
- package/core/element/HeaderElement.d.ts +2 -2
- package/core/element/HeaderElement.js +1 -13
- package/core/element/HeaderElement.js.map +1 -1
- package/core/element/HorizontalRuleElement.d.ts +2 -2
- package/core/element/HorizontalRuleElement.js +1 -13
- package/core/element/HorizontalRuleElement.js.map +1 -1
- package/core/element/HtmlElement.d.ts +2 -4
- package/core/element/HtmlElement.js +1 -19
- package/core/element/HtmlElement.js.map +1 -1
- package/core/element/IFrameElement.d.ts +2 -15
- package/core/element/IFrameElement.js +1 -67
- package/core/element/IFrameElement.js.map +1 -1
- package/core/element/ILayout.d.ts +2 -2
- package/core/element/ILayout.js +1 -9
- package/core/element/ILayout.js.map +1 -1
- package/core/element/IconElement.d.ts +2 -2
- package/core/element/IconElement.js +1 -32
- package/core/element/IconElement.js.map +1 -1
- package/core/element/IdiomaticElement.d.ts +2 -1
- package/core/element/IdiomaticElement.js +1 -6
- package/core/element/IdiomaticElement.js.map +1 -1
- package/core/element/ImageElement.d.ts +2 -2
- package/core/element/ImageElement.js +1 -17
- package/core/element/ImageElement.js.map +1 -1
- package/core/element/InputElement.d.ts +2 -16
- package/core/element/InputElement.js +1 -81
- package/core/element/InputElement.js.map +1 -1
- package/core/element/LabelElement.d.ts +2 -5
- package/core/element/LabelElement.js +1 -10
- package/core/element/LabelElement.js.map +1 -1
- package/core/element/LegendElement.d.ts +2 -4
- package/core/element/LegendElement.js +1 -15
- package/core/element/LegendElement.js.map +1 -1
- package/core/element/ListItemElement.d.ts +2 -4
- package/core/element/ListItemElement.js +1 -28
- package/core/element/ListItemElement.js.map +1 -1
- package/core/element/MainElement.d.ts +2 -2
- package/core/element/MainElement.js +1 -10
- package/core/element/MainElement.js.map +1 -1
- package/core/element/NavElement.d.ts +2 -2
- package/core/element/NavElement.js +1 -10
- package/core/element/NavElement.js.map +1 -1
- package/core/element/OrderedListElement.d.ts +2 -2
- package/core/element/OrderedListElement.js +1 -10
- package/core/element/OrderedListElement.js.map +1 -1
- package/core/element/ParagraphElement.d.ts +2 -2
- package/core/element/ParagraphElement.js +1 -10
- package/core/element/ParagraphElement.js.map +1 -1
- package/core/element/PreElement.d.ts +2 -2
- package/core/element/PreElement.js +1 -10
- package/core/element/PreElement.js.map +1 -1
- package/core/element/SectionElement.d.ts +2 -2
- package/core/element/SectionElement.js +1 -12
- package/core/element/SectionElement.js.map +1 -1
- package/core/element/SelectElement.d.ts +2 -2
- package/core/element/SelectElement.js +1 -12
- package/core/element/SelectElement.js.map +1 -1
- package/core/element/SourceElement.d.ts +2 -5
- package/core/element/SourceElement.js +1 -14
- package/core/element/SourceElement.js.map +1 -1
- package/core/element/SpanElement.d.ts +2 -2
- package/core/element/SpanElement.js +1 -10
- package/core/element/SpanElement.js.map +1 -1
- package/core/element/StrongElement.d.ts +2 -2
- package/core/element/StrongElement.js +1 -12
- package/core/element/StrongElement.js.map +1 -1
- package/core/element/StyleElement.d.ts +2 -2
- package/core/element/StyleElement.js +1 -10
- package/core/element/StyleElement.js.map +1 -1
- package/core/element/SummaryElement.d.ts +2 -2
- package/core/element/SummaryElement.js +1 -12
- package/core/element/SummaryElement.js.map +1 -1
- package/core/element/SvgElement.d.ts +3 -3
- package/core/element/SvgElement.js +1 -151
- package/core/element/SvgElement.js.map +1 -1
- package/core/element/TableBodyElement.d.ts +2 -2
- package/core/element/TableBodyElement.js +1 -10
- package/core/element/TableBodyElement.js.map +1 -1
- package/core/element/TableCellElement.d.ts +3 -6
- package/core/element/TableCellElement.js +1 -25
- package/core/element/TableCellElement.js.map +1 -1
- package/core/element/TableColElement.d.ts +2 -4
- package/core/element/TableColElement.js +1 -13
- package/core/element/TableColElement.js.map +1 -1
- package/core/element/TableColGroupElement.d.ts +2 -4
- package/core/element/TableColGroupElement.js +1 -15
- package/core/element/TableColGroupElement.js.map +1 -1
- package/core/element/TableElement.d.ts +2 -42
- package/core/element/TableElement.js +1 -228
- package/core/element/TableElement.js.map +1 -1
- package/core/element/TableFootElement.d.ts +2 -2
- package/core/element/TableFootElement.js +1 -10
- package/core/element/TableFootElement.js.map +1 -1
- package/core/element/TableFootRowElement.d.ts +2 -2
- package/core/element/TableFootRowElement.js +1 -23
- package/core/element/TableFootRowElement.js.map +1 -1
- package/core/element/TableHeadCellElement.d.ts +2 -2
- package/core/element/TableHeadCellElement.js +1 -24
- package/core/element/TableHeadCellElement.js.map +1 -1
- package/core/element/TableHeadElement.d.ts +2 -2
- package/core/element/TableHeadElement.js +1 -10
- package/core/element/TableHeadElement.js.map +1 -1
- package/core/element/TableHeadRowElement.d.ts +2 -2
- package/core/element/TableHeadRowElement.js +1 -29
- package/core/element/TableHeadRowElement.js.map +1 -1
- package/core/element/TableRowElement.d.ts +2 -2
- package/core/element/TableRowElement.js +1 -29
- package/core/element/TableRowElement.js.map +1 -1
- package/core/element/TextAreaElement.d.ts +2 -4
- package/core/element/TextAreaElement.js +1 -10
- package/core/element/TextAreaElement.js.map +1 -1
- package/core/element/UListElement.d.ts +2 -2
- package/core/element/UListElement.js +1 -10
- package/core/element/UListElement.js.map +1 -1
- package/core/element/VideoElement.d.ts +2 -10
- package/core/element/VideoElement.js +1 -16
- package/core/element/VideoElement.js.map +1 -1
- package/core/element/index.d.ts +3 -3
- package/core/element/index.js +1 -73
- package/core/element/index.js.map +1 -1
- package/core/event/index.js +1 -75
- package/core/index.d.ts +0 -3
- package/core/index.js +1 -10
- package/core/index.js.map +1 -1
- package/core/ref/Computed.js +1 -75
- package/core/ref/Computed.js.map +1 -1
- package/core/ref/RefBoolean.js +1 -119
- package/core/ref/RefContainer.js +1 -114
- package/core/ref/RefContainer.js.map +1 -1
- package/core/ref/RefList.js +1 -240
- package/core/ref/RefMap.js +1 -149
- package/core/ref/RefNumber.js +1 -157
- package/core/ref/RefObject.js +1 -265
- package/core/ref/RefObject.js.map +1 -1
- package/core/ref/RefProperty.js +1 -46
- package/core/ref/RefSet.js +1 -148
- package/core/ref/RefState.js +1 -89
- package/core/ref/RefString.js +1 -179
- package/core/ref/RefString.js.map +1 -1
- package/core/ref/index.js +1 -71
- package/core/router/RouteView.d.ts +2 -2
- package/core/router/RouteView.js +1 -84
- package/core/router/RouteView.js.map +1 -1
- package/core/router/Router.d.ts +8 -9
- package/core/router/Router.js +1 -307
- package/core/router/Router.js.map +1 -1
- package/core/router/RouterEvent.js +1 -43
- package/core/router/RouterGuard.js +1 -3
- package/core/router/index.js +1 -5
- package/core/styles/index.d.ts +3 -3
- package/core/styles/index.js +1 -36
- package/core/styles/index.js.map +1 -1
- package/{core/app/index.d.ts → global/app.d.ts} +5 -7
- package/global/app.js +1 -0
- package/global/app.js.map +1 -0
- package/global/index.d.ts +10 -4
- package/global/index.js +1 -1286
- package/global/index.js.map +1 -1
- package/global/safari-polyfill.js +1 -234
- package/index.d.ts +1 -0
- package/index.js +1 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/style.scss +2 -17
- package/typings/index.d.ts +58 -66
- package/LICENSE +0 -21
- package/README.md +0 -62
- package/core/app/Validate.d.ts +0 -61
- package/core/app/Validate.js +0 -2
- package/core/app/Validate.js.map +0 -1
- package/core/app/index.js +0 -181
- package/core/app/index.js.map +0 -1
- package/core/components/TablePanel.d.ts +0 -34
- package/core/components/TablePanel.js +0 -127
- package/core/components/TablePanel.js.map +0 -1
- package/core/components/VirtualScroll copy 2.d.ts +0 -24
- package/core/components/VirtualScroll copy 2.js +0 -92
- package/core/components/VirtualScroll copy 2.js.map +0 -1
- package/core/ref/RefObject copy.d.ts +0 -124
- package/core/ref/RefObject copy.js +0 -271
- package/core/ref/RefObject copy.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class HorizontalRuleElement extends HTMLHRElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<HorizontalRuleElement>);
|
|
5
5
|
}
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// <hr>
|
|
3
|
-
export class HorizontalRuleElement extends HTMLHRElement {
|
|
4
|
-
static TAG = "tc-hr-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
TypeComposer.defineElement(HorizontalRuleElement.TAG, HorizontalRuleElement, {
|
|
11
|
-
extends: "hr",
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=HorizontalRuleElement.js.map
|
|
1
|
+
import{Component}from"../../";export class HorizontalRuleElement extends HTMLHRElement{static TAG="tc-hr-element";constructor(e){super(),Component.initComponent(this,HorizontalRuleElement,e)}}TypeComposer.defineElement(HorizontalRuleElement.TAG,HorizontalRuleElement,{extends:"hr"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalRuleElement.js","sourceRoot":"","sources":["../../../src/core/element/HorizontalRuleElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HorizontalRuleElement.js","sourceRoot":"","sources":["../../../src/core/element/HorizontalRuleElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,qBAAsB,SAAQ,aAAa;IACvD,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAA0C;QACrD,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC7D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,qBAAqB,CAAC,GAAG,EAAE,qBAAqB,EAAE;IAC5E,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class HtmlElement extends HTMLHtmlElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
manifest?: string;
|
|
6
|
-
});
|
|
4
|
+
constructor(props?: ElementType<HtmlElement>);
|
|
7
5
|
set manifest(value: string);
|
|
8
6
|
get manifest(): string;
|
|
9
7
|
}
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
import { Component }
|
|
2
|
-
// <html>
|
|
3
|
-
export class HtmlElement extends HTMLHtmlElement {
|
|
4
|
-
static TAG = "tc-html-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
if (props?.manifest)
|
|
8
|
-
this.manifest = props.manifest;
|
|
9
|
-
Component.applyProps(this, props);
|
|
10
|
-
}
|
|
11
|
-
set manifest(value) {
|
|
12
|
-
this.setAttribute("manifest", value);
|
|
13
|
-
}
|
|
14
|
-
get manifest() {
|
|
15
|
-
return this.getAttribute("manifest");
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
TypeComposer.defineElement(HtmlElement.TAG, HtmlElement, { extends: "html" });
|
|
19
|
-
//# sourceMappingURL=HtmlElement.js.map
|
|
1
|
+
import{Component}from"../../";export class HtmlElement extends HTMLHtmlElement{static TAG="tc-html-element";constructor(t){super(),Component.initComponent(this,HtmlElement,t)}set manifest(t){this.setAttribute("manifest",t)}get manifest(){return this.getAttribute("manifest")}}TypeComposer.defineElement(HtmlElement.TAG,HtmlElement,{extends:"html"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HtmlElement.js","sourceRoot":"","sources":["../../../src/core/element/HtmlElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HtmlElement.js","sourceRoot":"","sources":["../../../src/core/element/HtmlElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAChD,MAAM,OAAO,WAAY,SAAQ,eAAe;IAC/C,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAChD,YAAY,KAAgC;QAC3C,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IACnD,CAAC;IACD,IAAI,QAAQ,CAAC,KAAa;QACzB,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IACtC,CAAC;IAED,IAAI,QAAQ;QACX,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;;AAEF,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class IFrameElement extends HTMLIFrameElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
allow?: string;
|
|
6
|
-
allowfullscreen?: boolean;
|
|
7
|
-
allowpaymentrequest?: boolean;
|
|
8
|
-
csp?: string;
|
|
9
|
-
height?: number;
|
|
10
|
-
importance?: "auto" | "high" | "low";
|
|
11
|
-
loading?: "eager" | "lazy";
|
|
12
|
-
name?: string;
|
|
13
|
-
referrerpolicy?: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
14
|
-
src?: string;
|
|
15
|
-
srcdoc?: string;
|
|
16
|
-
width?: number;
|
|
17
|
-
});
|
|
4
|
+
constructor(props?: ElementType<IFrameElement>);
|
|
18
5
|
set allowfullscreen(value: boolean);
|
|
19
6
|
get allowfullscreen(): boolean;
|
|
20
7
|
set allowpaymentrequest(value: boolean);
|
|
@@ -1,67 +1 @@
|
|
|
1
|
-
import { Component }
|
|
2
|
-
// <iframe>
|
|
3
|
-
export class IFrameElement extends HTMLIFrameElement {
|
|
4
|
-
static TAG = "tc-iframe-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
if (props?.allow)
|
|
8
|
-
this.allow = props.allow;
|
|
9
|
-
if (props?.allowfullscreen)
|
|
10
|
-
this.allowfullscreen = props.allowfullscreen;
|
|
11
|
-
if (props?.allowpaymentrequest)
|
|
12
|
-
this.allowpaymentrequest = props.allowpaymentrequest;
|
|
13
|
-
if (props?.csp)
|
|
14
|
-
this.csp = props.csp;
|
|
15
|
-
if (props?.height)
|
|
16
|
-
this.height = props.height;
|
|
17
|
-
if (props?.importance)
|
|
18
|
-
this.importance = props.importance;
|
|
19
|
-
if (props?.loading)
|
|
20
|
-
this.loading = props.loading;
|
|
21
|
-
if (props?.name)
|
|
22
|
-
this.name = props.name;
|
|
23
|
-
if (props?.referrerpolicy)
|
|
24
|
-
this.referrerpolicy = props.referrerpolicy;
|
|
25
|
-
if (props?.src)
|
|
26
|
-
this.src = props.src;
|
|
27
|
-
if (props?.srcdoc)
|
|
28
|
-
this.srcdoc = props.srcdoc;
|
|
29
|
-
if (props?.width)
|
|
30
|
-
this.width = props.width;
|
|
31
|
-
Component.applyProps(this, props);
|
|
32
|
-
}
|
|
33
|
-
set allowfullscreen(value) {
|
|
34
|
-
this.setAttribute("allowfullscreen", value.toString());
|
|
35
|
-
}
|
|
36
|
-
get allowfullscreen() {
|
|
37
|
-
return this.getAttribute("allowfullscreen") == "true";
|
|
38
|
-
}
|
|
39
|
-
set allowpaymentrequest(value) {
|
|
40
|
-
this.setAttribute("allowpaymentrequest", value.toString());
|
|
41
|
-
}
|
|
42
|
-
get allowpaymentrequest() {
|
|
43
|
-
return this.getAttribute("allowpaymentrequest") == "true";
|
|
44
|
-
}
|
|
45
|
-
set csp(value) {
|
|
46
|
-
this.setAttribute("csp", value);
|
|
47
|
-
}
|
|
48
|
-
get csp() {
|
|
49
|
-
return this.getAttribute("csp");
|
|
50
|
-
}
|
|
51
|
-
set importance(value) {
|
|
52
|
-
this.setAttribute("importance", value);
|
|
53
|
-
}
|
|
54
|
-
get importance() {
|
|
55
|
-
return this.getAttribute("importance");
|
|
56
|
-
}
|
|
57
|
-
set referrerpolicy(value) {
|
|
58
|
-
this.setAttribute("referrerpolicy", value);
|
|
59
|
-
}
|
|
60
|
-
get referrerpolicy() {
|
|
61
|
-
return this.getAttribute("referrerpolicy");
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
TypeComposer.defineElement(IFrameElement.TAG, IFrameElement, {
|
|
65
|
-
extends: "iframe",
|
|
66
|
-
});
|
|
67
|
-
//# sourceMappingURL=IFrameElement.js.map
|
|
1
|
+
import{Component}from"../../";export class IFrameElement extends HTMLIFrameElement{static TAG="tc-iframe-element";constructor(e){super(),Component.initComponent(this,IFrameElement,e)}set allowfullscreen(e){this.setAttribute("allowfullscreen",e.toString())}get allowfullscreen(){return"true"==this.getAttribute("allowfullscreen")}set allowpaymentrequest(e){this.setAttribute("allowpaymentrequest",e.toString())}get allowpaymentrequest(){return"true"==this.getAttribute("allowpaymentrequest")}set csp(e){this.setAttribute("csp",e)}get csp(){return this.getAttribute("csp")}set importance(e){this.setAttribute("importance",e)}get importance(){return this.getAttribute("importance")}set referrerpolicy(e){this.setAttribute("referrerpolicy",e)}get referrerpolicy(){return this.getAttribute("referrerpolicy")}}TypeComposer.defineElement(IFrameElement.TAG,IFrameElement,{extends:"iframe"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFrameElement.js","sourceRoot":"","sources":["../../../src/core/element/IFrameElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IFrameElement.js","sourceRoot":"","sources":["../../../src/core/element/IFrameElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAkC;QAC7C,KAAK,EAAE,CAAC;QACP,aAAa;QACR,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;IAED,IAAW,eAAe,CAAC,KAAc;QACxC,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IACxD,CAAC;IAED,IAAW,eAAe;QACzB,OAAO,IAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,IAAI,MAAM,CAAC;IACvD,CAAC;IAED,IAAW,mBAAmB,CAAC,KAAc;QAC5C,IAAI,CAAC,YAAY,CAAC,qBAAqB,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,IAAW,mBAAmB;QAC7B,OAAO,IAAI,CAAC,YAAY,CAAC,qBAAqB,CAAC,IAAI,MAAM,CAAC;IAC3D,CAAC;IAED,IAAW,GAAG,CAAC,KAAa;QAC3B,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,IAAW,GAAG;QACb,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,IAAW,UAAU,CAAC,KAA8B;QACnD,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED,IAAW,UAAU;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY,CAAQ,CAAC;IAC/C,CAAC;IAED,IAAW,cAAc,CACxB,KAQe;QAEf,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED,IAAW,cAAc;QACxB,OAAO,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;IAC5D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|
package/core/element/ILayout.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class ILayout extends Component {
|
|
3
|
-
static TAG = "tc-layout-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super(props);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
TypeComposer.defineElement(ILayout.TAG, ILayout);
|
|
9
|
-
//# sourceMappingURL=ILayout.js.map
|
|
1
|
+
import{Component}from"../../";export class ILayout extends Component{static TAG="tc-layout-element";constructor(t){super(t),Component.initComponent(this,ILayout,t)}}TypeComposer.defineElement(ILayout.TAG,ILayout);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILayout.js","sourceRoot":"","sources":["../../../src/core/element/ILayout.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ILayout.js","sourceRoot":"","sources":["../../../src/core/element/ILayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACrC,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAmB;QAC9B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IACrD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, ElementType, refString } from "../..";
|
|
2
2
|
export declare class IconElement extends Component {
|
|
3
3
|
static readonly TAG: string;
|
|
4
4
|
private _icon;
|
|
5
|
-
constructor(props?:
|
|
5
|
+
constructor(props?: ElementType & {
|
|
6
6
|
icon?: refString;
|
|
7
7
|
src?: string;
|
|
8
8
|
alt?: string;
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
import { Component,
|
|
2
|
-
export class IconElement extends Component {
|
|
3
|
-
static TAG = "tc-icon-element";
|
|
4
|
-
_icon = ref("");
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super(props);
|
|
7
|
-
if (props != undefined && props.icon != undefined)
|
|
8
|
-
this.icon = props.icon;
|
|
9
|
-
}
|
|
10
|
-
get icon() {
|
|
11
|
-
return this._icon.value;
|
|
12
|
-
}
|
|
13
|
-
set icon(value) {
|
|
14
|
-
if (typeof value !== "string")
|
|
15
|
-
this["_styleref"].appendStyleref("icon", this, value);
|
|
16
|
-
else {
|
|
17
|
-
const splice = value.split(" ");
|
|
18
|
-
splice.forEach((v) => {
|
|
19
|
-
this.addClassName(v);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
get color() {
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
return this.style.color;
|
|
26
|
-
}
|
|
27
|
-
set color(value) {
|
|
28
|
-
this.style.color = value;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
TypeComposer.defineElement(IconElement.TAG, IconElement);
|
|
32
|
-
//# sourceMappingURL=IconElement.js.map
|
|
1
|
+
import{Component,ref}from"../..";export class IconElement extends Component{static TAG="tc-icon-element";_icon=ref("");constructor(e){super(),Component.initComponent(this,IconElement,e)}get icon(){return this._icon.value}set icon(e){if("string"!=typeof e)this._styleref.appendStyleref("icon",this,e);else{e.split(" ").forEach(e=>{this.addClassName(e)})}}get color(){return this.style.color}set color(e){this.style.color=e}}TypeComposer.defineElement(IconElement.TAG,IconElement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconElement.js","sourceRoot":"","sources":["../../../src/core/element/IconElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"IconElement.js","sourceRoot":"","sources":["../../../src/core/element/IconElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,GAAG,EAAa,MAAM,OAAO,CAAC;AAE/D,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IACxC,KAAK,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;IAExB,YACE,KAIC;QAED,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IACpD,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC1B,CAAC;IAED,IAAI,IAAI,CAAC,KAAgB;QACvB,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,IAAI,CAAC,WAAW,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;aAChF,CAAC;YACJ,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAChC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBACnB,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YACvB,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,IAAI,KAAK;QACP,aAAa;QACb,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IAC1B,CAAC;IAED,IAAI,KAAK,CAAC,KAAgB;QACxB,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;IAC3B,CAAC;;AAEH,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class IdiomaticElement extends Component {
|
|
3
|
-
static TAG = "tc-i-element";
|
|
4
|
-
}
|
|
5
|
-
TypeComposer.defineElement(IdiomaticElement.TAG, IdiomaticElement, { extends: "i" });
|
|
6
|
-
//# sourceMappingURL=IdiomaticElement.js.map
|
|
1
|
+
import{Component}from"../..";export class IdiomaticElement extends Component{static TAG="tc-i-element";constructor(e){super(),Component.initComponent(this,IdiomaticElement,e)}}TypeComposer.defineElement(IdiomaticElement.TAG,IdiomaticElement,{extends:"i"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdiomaticElement.js","sourceRoot":"","sources":["../../../src/core/element/IdiomaticElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"IdiomaticElement.js","sourceRoot":"","sources":["../../../src/core/element/IdiomaticElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;AAE/C,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAC3C,MAAM,CAAU,GAAG,GAAW,cAAc,CAAC;IAE7C,YAAY,KAAmB;QAC3B,KAAK,EAAE,CAAC;QACR,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;;AAEL,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType, refString, refNumber } from "../../";
|
|
2
2
|
export declare class ImageElement extends HTMLImageElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
4
|
+
constructor(props?: ElementType<ImageElement> & {
|
|
5
5
|
src?: string | refString;
|
|
6
6
|
alt?: string | refString;
|
|
7
7
|
lazy?: boolean;
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class ImageElement extends HTMLImageElement {
|
|
3
|
-
static TAG = "tc-img-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
this.className = "image-element";
|
|
7
|
-
const src = props?.src;
|
|
8
|
-
delete props?.src;
|
|
9
|
-
Component.applyProps(this, props);
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
if (src)
|
|
12
|
-
this.src = src;
|
|
13
|
-
this.onload;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
TypeComposer.defineElement(ImageElement.TAG, ImageElement, { extends: "img" });
|
|
17
|
-
//# sourceMappingURL=ImageElement.js.map
|
|
1
|
+
import{Component}from"../../";export class ImageElement extends HTMLImageElement{static TAG="tc-img-element";constructor(e){super(),this.className="image-element",Component.initComponent(this,ImageElement,e)}}TypeComposer.defineElement(ImageElement.TAG,ImageElement,{extends:"img"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageElement.js","sourceRoot":"","sources":["../../../src/core/element/ImageElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ImageElement.js","sourceRoot":"","sources":["../../../src/core/element/ImageElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAwB,MAAM,QAAQ,CAAC;AAEtE,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACjD,MAAM,CAAU,GAAG,GAAW,gBAAgB,CAAC;IAC/C,YAAY,KAYX;QACA,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC;QACjC,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RegisterOptions } from "../app/Validate";
|
|
3
|
-
export type InputType = "text" | "password" | "checkbox" | "radio" | "submit" | "reset" | "file" | "hidden" | "image" | "button" | "color" | "date" | "datetime-local" | "email" | "month" | "number" | "range" | "search" | "tel" | "time" | "url" | "week";
|
|
4
|
-
export interface InputElementProps extends ElementProps<HTMLInputElement, "checked" | "value"> {
|
|
5
|
-
type?: InputType;
|
|
6
|
-
checked?: boolean | ref<boolean>;
|
|
7
|
-
value?: string | number | refString | refNumber;
|
|
8
|
-
delay?: number;
|
|
9
|
-
validation?: RegisterOptions;
|
|
10
|
-
oninputDelay?: (value: string) => void;
|
|
11
|
-
}
|
|
1
|
+
import { ElementType } from "../../";
|
|
12
2
|
export declare class InputElement extends HTMLInputElement implements IComponent {
|
|
13
|
-
#private;
|
|
14
3
|
static readonly TAG: string;
|
|
15
|
-
constructor(props?:
|
|
16
|
-
get validation(): RegisterOptions | undefined;
|
|
17
|
-
set validation(value: RegisterOptions | undefined);
|
|
18
|
-
private __checkValidity;
|
|
4
|
+
constructor(props?: ElementType<InputElement, "checked" | "value">);
|
|
19
5
|
}
|
|
@@ -1,81 +1 @@
|
|
|
1
|
-
import { Component
|
|
2
|
-
export class InputElement extends HTMLInputElement {
|
|
3
|
-
static TAG = "tc-input-element";
|
|
4
|
-
#validation;
|
|
5
|
-
#checkValidity;
|
|
6
|
-
constructor(props) {
|
|
7
|
-
super();
|
|
8
|
-
if (props?.accept)
|
|
9
|
-
this.accept = props.accept;
|
|
10
|
-
this.multiple = props?.multiple || false;
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
this.readOnly = props?.readOnly || false;
|
|
13
|
-
Component.applyProps(this, props);
|
|
14
|
-
if (props?.oninputDelay) {
|
|
15
|
-
const delay = props.delay ?? 250;
|
|
16
|
-
let timeoutId;
|
|
17
|
-
this.addEventListener("input", () => {
|
|
18
|
-
clearTimeout(timeoutId);
|
|
19
|
-
timeoutId = window.setTimeout(() => {
|
|
20
|
-
props.oninputDelay?.(this.value);
|
|
21
|
-
}, delay);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
if (props?.maxLength !== undefined)
|
|
25
|
-
this.maxLength = props?.maxLength.valueOf();
|
|
26
|
-
if (props?.minLength !== undefined)
|
|
27
|
-
this.minLength = props?.minLength;
|
|
28
|
-
if (props?.min !== undefined)
|
|
29
|
-
this.min = props?.min;
|
|
30
|
-
if (props?.max !== undefined)
|
|
31
|
-
this.max = props?.max;
|
|
32
|
-
if (props?.pattern)
|
|
33
|
-
this.pattern = props?.pattern;
|
|
34
|
-
if (props?.required)
|
|
35
|
-
this.required = props?.required || false;
|
|
36
|
-
}
|
|
37
|
-
get validation() {
|
|
38
|
-
return this.#validation;
|
|
39
|
-
}
|
|
40
|
-
set validation(value) {
|
|
41
|
-
this.#validation = value;
|
|
42
|
-
if (this.#checkValidity)
|
|
43
|
-
this.removeEventListener("input", this.#checkValidity);
|
|
44
|
-
this.#checkValidity = undefined;
|
|
45
|
-
if (value) {
|
|
46
|
-
this.#checkValidity = this.__checkValidity.bind(this);
|
|
47
|
-
this.addEventListener("input", this.#checkValidity);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
__checkValidity() {
|
|
51
|
-
if (!this.validation)
|
|
52
|
-
return;
|
|
53
|
-
let validationMessage = this.validationMessage;
|
|
54
|
-
if (this.validation.required && !this.value) {
|
|
55
|
-
validationMessage = "Required field";
|
|
56
|
-
}
|
|
57
|
-
else if (this.validation.minLength !== undefined && this.value.length < this.validation.minLength) {
|
|
58
|
-
validationMessage = `Minimum length is ${this.validation.minLength}`;
|
|
59
|
-
}
|
|
60
|
-
else if (this.validation.maxLength !== undefined && this.value.length > this.validation.maxLength) {
|
|
61
|
-
validationMessage = `Maximum length is ${this.validation.maxLength}`;
|
|
62
|
-
}
|
|
63
|
-
else if (this.validation.min !== undefined && Number(this.value.toString()) < Number(this.validation.min)) {
|
|
64
|
-
validationMessage = `Minimum value is ${this.validation.min}`;
|
|
65
|
-
}
|
|
66
|
-
else if (this.validation.max !== undefined && Number(this.value) > Number(this.validation.max)) {
|
|
67
|
-
validationMessage = `Maximum value is ${this.validation.max}`;
|
|
68
|
-
}
|
|
69
|
-
else if (this.validation.pattern && !this.validation.pattern.test(this.value)) {
|
|
70
|
-
validationMessage = "Invalid value";
|
|
71
|
-
}
|
|
72
|
-
else
|
|
73
|
-
validationMessage = "";
|
|
74
|
-
if (validationMessage !== this.validationMessage) {
|
|
75
|
-
this.setCustomValidity(validationMessage);
|
|
76
|
-
this.reportValidity();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
TypeComposer.defineElement(InputElement.TAG, InputElement, { extends: "input" });
|
|
81
|
-
//# sourceMappingURL=InputElement.js.map
|
|
1
|
+
import{Component}from"../../";export class InputElement extends HTMLInputElement{static TAG="tc-input-element";constructor(t){super(),t?.accept&&(this.accept=t.accept),this.multiple=t?.multiple||!1,this.readOnly=t?.readOnly||!1,Component.initComponent(this,InputElement,t),void 0!==t?.maxLength&&(this.maxLength=t?.maxLength.valueOf()),void 0!==t?.minLength&&(this.minLength=t?.minLength),void 0!==t?.min&&(this.min=t?.min),void 0!==t?.max&&(this.max=t?.max),t?.pattern&&(this.pattern=t?.pattern),t?.required&&(this.required=t?.required||!1)}}TypeComposer.defineElement(InputElement.TAG,InputElement,{extends:"input"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputElement.js","sourceRoot":"","sources":["../../../src/core/element/InputElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"InputElement.js","sourceRoot":"","sources":["../../../src/core/element/InputElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAA6B,MAAM,QAAQ,CAAC;AAC3E,qDAAqD;AAErD,0BAA0B;AAC1B,YAAY;AACZ,gBAAgB;AAChB,gBAAgB;AAChB,aAAa;AACb,cAAc;AACd,aAAa;AACb,YAAY;AACZ,cAAc;AACd,aAAa;AACb,cAAc;AACd,aAAa;AACb,YAAY;AACZ,sBAAsB;AACtB,aAAa;AACb,aAAa;AACb,cAAc;AACd,aAAa;AACb,cAAc;AACd,WAAW;AACX,YAAY;AACZ,WAAW;AACX,aAAa;AAEb,iGAAiG;AACjG,qBAAqB;AACrB,qCAAqC;AACrC,oDAAoD;AACpD,SAAS;AACT,iFAAiF;AACjF,SAAS;AACT,mBAAmB;AACnB,gCAAgC;AAChC,SAAS;AACT,gGAAgG;AAChG,SAAS;AACT,2CAA2C;AAC3C,IAAI;AAEJ,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IAChD,MAAM,CAAU,GAAG,GAAW,kBAAkB,CAAC;IACjD,mCAAmC;IACnC,oBAAoB;IACpB,YAAY,KAAsD;QAChE,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,MAAM;YAAE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC9C,IAAI,CAAC,QAAQ,GAAG,KAAK,EAAE,QAAQ,IAAI,KAAK,CAAC;QACzC,aAAa;QACb,IAAI,CAAC,QAAQ,GAAG,KAAK,EAAE,QAAQ,IAAI,KAAK,CAAC;QACzC,aAAa;QACb,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;QACnD,6BAA6B;QAC7B,qCAAqC;QACrC,0BAA0B;QAC1B,0CAA0C;QAC1C,6BAA6B;QAC7B,0CAA0C;QAC1C,uCAAuC;QACvC,eAAe;QACf,OAAO;QACP,IAAI;QACJ,IAAI,KAAK,EAAE,SAAS,KAAK,SAAS;YAAE,IAAI,CAAC,SAAS,GAAG,KAAK,EAAE,SAAS,CAAC,OAAO,EAAE,CAAC;QAChF,IAAI,KAAK,EAAE,SAAS,KAAK,SAAS;YAAE,IAAI,CAAC,SAAS,GAAG,KAAK,EAAE,SAAS,CAAC;QACtE,IAAI,KAAK,EAAE,GAAG,KAAK,SAAS;YAAE,IAAI,CAAC,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC;QACpD,IAAI,KAAK,EAAE,GAAG,KAAK,SAAS;YAAE,IAAI,CAAC,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC;QACpD,IAAI,KAAK,EAAE,OAAO;YAAE,IAAI,CAAC,OAAO,GAAG,KAAK,EAAE,OAAO,CAAC;QAClD,IAAI,KAAK,EAAE,QAAQ;YAAE,IAAI,CAAC,QAAQ,GAAG,KAAK,EAAE,QAAQ,IAAI,KAAK,CAAC;IAChE,CAAC;;AAwCH,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class LabelElement extends HTMLLabelElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
for?: string;
|
|
6
|
-
text?: string;
|
|
7
|
-
});
|
|
4
|
+
constructor(props?: ElementType<LabelElement>);
|
|
8
5
|
}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class LabelElement extends HTMLLabelElement {
|
|
3
|
-
static TAG = "tc-label-element";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super();
|
|
6
|
-
Component.applyProps(this, props);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(LabelElement.TAG, LabelElement, { extends: "label" });
|
|
10
|
-
//# sourceMappingURL=LabelElement.js.map
|
|
1
|
+
import{Component}from"../../";export class LabelElement extends HTMLLabelElement{static TAG="tc-label-element";constructor(e){super(),Component.initComponent(this,LabelElement,e)}}TypeComposer.defineElement(LabelElement.TAG,LabelElement,{extends:"label"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabelElement.js","sourceRoot":"","sources":["../../../src/core/element/LabelElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"LabelElement.js","sourceRoot":"","sources":["../../../src/core/element/LabelElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACjD,MAAM,CAAU,GAAG,GAAW,kBAAkB,CAAC;IACjD,YAAY,KAAiC;QAC5C,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class LegendElement extends HTMLLegendElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
value?: number;
|
|
6
|
-
});
|
|
4
|
+
constructor(props?: ElementType<LegendElement>);
|
|
7
5
|
}
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
// <legend>
|
|
3
|
-
export class LegendElement extends HTMLLegendElement {
|
|
4
|
-
static TAG = "tc-legend-element";
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super();
|
|
7
|
-
Component.applyProps(this, props);
|
|
8
|
-
if (props?.value)
|
|
9
|
-
this.innerHTML = props.value;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
TypeComposer.defineElement(LegendElement.TAG, LegendElement, {
|
|
13
|
-
extends: "legend",
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=LegendElement.js.map
|
|
1
|
+
import{Component}from"../../";export class LegendElement extends HTMLLegendElement{static TAG="tc-legend-element";constructor(e){super(),Component.initComponent(this,LegendElement,e)}}TypeComposer.defineElement(LegendElement.TAG,LegendElement,{extends:"legend"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendElement.js","sourceRoot":"","sources":["../../../src/core/element/LegendElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"LegendElement.js","sourceRoot":"","sources":["../../../src/core/element/LegendElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAChD,WAAW;AACX,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,MAAM,CAAU,GAAG,GAAW,mBAAmB,CAAC;IAClD,YAAY,KAAkC;QAC7C,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;IAE3D,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,EAAE;IAC5D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementType } from "../../";
|
|
2
2
|
export declare class ListItemElement<T = any> extends HTMLLIElement implements IComponent {
|
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
draggable?: boolean;
|
|
6
|
-
});
|
|
4
|
+
constructor(props?: ElementType<ListItemElement>);
|
|
7
5
|
item: T | undefined;
|
|
8
6
|
removeItem(): void;
|
|
9
7
|
set draggable(value: boolean);
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
import { Component }
|
|
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
|
+
import{Component}from"../../";export class ListItemElement extends HTMLLIElement{static TAG="tc-list-item-element";constructor(e){super(),Component.initComponent(this,ListItemElement,e)}item=void 0;removeItem(){this.dispatchEvent(new CustomEvent("removeItem",{detail:{item:this.item,element:this},bubbles:!0,cancelable:!0}))}set draggable(e){e?(this.addClassName("item-draggable"),this.setAttribute("draggable","true")):(this.classList.remove("item-draggable"),this.removeAttribute("draggable"))}get draggable(){return this.hasAttribute("draggable")}onSelect(){}}TypeComposer.defineElement(ListItemElement.TAG,ListItemElement,{extends:"li"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemElement.js","sourceRoot":"","sources":["../../../src/core/element/ListItemElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ListItemElement.js","sourceRoot":"","sources":["../../../src/core/element/ListItemElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,eAAyB,SAAQ,aAAa;IAC1D,MAAM,CAAU,GAAG,GAAW,sBAAsB,CAAC;IACrD,YAAY,KAAoC;QAC/C,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,CAAC,CAAC;IAC7D,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 +1 @@
|
|
|
1
|
-
import
|
|
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
|
+
import{Component}from"../../";export class MainElement extends HTMLElement{static TAG="tc-main-element";constructor(e){super(),Component.initComponent(this,MainElement,e)}}TypeComposer.defineElement(MainElement.TAG,MainElement,{extends:"main"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainElement.js","sourceRoot":"","sources":["../../../src/core/element/MainElement.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MainElement.js","sourceRoot":"","sources":["../../../src/core/element/MainElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEhD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC3C,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IAChD,YAAY,KAAmB;QAC9B,KAAK,EAAE,CAAC;QACR,aAAa;QACP,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IACzD,CAAC;;AAGF,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
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
|
+
import{Component}from"../../";export class NavElement extends HTMLElement{static TAG="tc-nav-element";constructor(e){super(),Component.initComponent(this,NavElement,e)}}TypeComposer.defineElement(NavElement.TAG,NavElement,{extends:"nav"});
|