typecomposer 0.1.26 → 0.1.28
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.d.ts +12 -0
- package/assets/index.js +13 -0
- package/assets/index.js.map +1 -0
- package/core/app/Validate.d.ts +61 -0
- package/core/app/Validate.js +2 -0
- package/core/app/Validate.js.map +1 -0
- package/core/app/index.d.ts +39 -0
- package/core/app/index.js +174 -0
- package/core/app/index.js.map +1 -0
- package/core/components/AlertPanel.d.ts +31 -0
- package/core/components/AlertPanel.js +74 -0
- package/core/components/AlertPanel.js.map +1 -0
- package/core/components/AvatarPanel.d.ts +20 -0
- package/core/components/AvatarPanel.js +62 -0
- package/core/components/AvatarPanel.js.map +1 -0
- package/core/components/BorderPanel.d.ts +27 -0
- package/core/components/BorderPanel.js +89 -0
- package/core/components/BorderPanel.js.map +1 -0
- package/core/components/CardPanel.d.ts +4 -0
- package/core/components/CardPanel.js +10 -0
- package/core/components/CardPanel.js.map +1 -0
- package/core/components/CheckBox.d.ts +34 -0
- package/core/components/CheckBox.js +107 -0
- package/core/components/CheckBox.js.map +1 -0
- package/core/components/ColorPicker.d.ts +9 -0
- package/core/components/ColorPicker.js +32 -0
- package/core/components/ColorPicker.js.map +1 -0
- package/core/components/ContextMenu.d.ts +14 -0
- package/core/components/ContextMenu.js +62 -0
- package/core/components/ContextMenu.js.map +1 -0
- package/core/components/DialogPanel.d.ts +14 -0
- package/core/components/DialogPanel.js +62 -0
- package/core/components/DialogPanel.js.map +1 -0
- package/core/components/DropDown.d.ts +51 -0
- package/core/components/DropDown.js +213 -0
- package/core/components/DropDown.js.map +1 -0
- package/core/components/FlowPanel.d.ts +10 -0
- package/core/components/FlowPanel.js +39 -0
- package/core/components/FlowPanel.js.map +1 -0
- package/core/components/ForEach.d.ts +10 -0
- package/core/components/ForEach.js +86 -0
- package/core/components/ForEach.js.map +1 -0
- package/core/components/GridPanel.d.ts +9 -0
- package/core/components/GridPanel.js +29 -0
- package/core/components/GridPanel.js.map +1 -0
- package/core/components/HBox.d.ts +4 -0
- package/core/components/HBox.js +9 -0
- package/core/components/HBox.js.map +1 -0
- package/core/components/LazyLoading.d.ts +18 -0
- package/core/components/LazyLoading.js +35 -0
- package/core/components/LazyLoading.js.map +1 -0
- package/core/components/ListPanel.d.ts +26 -0
- package/core/components/ListPanel.js +152 -0
- package/core/components/ListPanel.js.map +1 -0
- package/core/components/PopUpButton.d.ts +17 -0
- package/core/components/PopUpButton.js +54 -0
- package/core/components/PopUpButton.js.map +1 -0
- package/core/components/ScrollPanel.d.ts +13 -0
- package/core/components/ScrollPanel.js +34 -0
- package/core/components/ScrollPanel.js.map +1 -0
- package/core/components/StackPanel.d.ts +4 -0
- package/core/components/StackPanel.js +9 -0
- package/core/components/StackPanel.js.map +1 -0
- package/core/components/TabItem.d.ts +18 -0
- package/core/components/TabItem.js +81 -0
- package/core/components/TabItem.js.map +1 -0
- package/core/components/TabPanel.d.ts +24 -0
- package/core/components/TabPanel.js +95 -0
- package/core/components/TabPanel.js.map +1 -0
- package/core/components/TablePanel.d.ts +32 -0
- package/core/components/TablePanel.js +125 -0
- package/core/components/TablePanel.js.map +1 -0
- package/core/components/TextEdit.d.ts +31 -0
- package/core/components/TextEdit.js +172 -0
- package/core/components/TextEdit.js.map +1 -0
- package/core/components/TextField.d.ts +34 -0
- package/core/components/TextField.js +148 -0
- package/core/components/TextField.js.map +1 -0
- package/core/components/ToggleButton.d.ts +6 -0
- package/core/components/ToggleButton.js +19 -0
- package/core/components/ToggleButton.js.map +1 -0
- package/core/components/VBox.d.ts +4 -0
- package/core/components/VBox.js +9 -0
- package/core/components/VBox.js.map +1 -0
- package/core/components/VirtualScroll copy 2.d.ts +24 -0
- package/core/components/VirtualScroll copy 2.js +98 -0
- package/core/components/VirtualScroll copy 2.js.map +1 -0
- package/core/components/VirtualScroll.d.ts +19 -0
- package/core/components/VirtualScroll.js +46 -0
- package/core/components/VirtualScroll.js.map +1 -0
- package/core/components/index.d.ts +26 -0
- package/core/components/index.js +28 -0
- package/core/components/index.js.map +1 -0
- package/core/decorators/RegisterComponent.d.ts +8 -0
- package/core/decorators/RegisterComponent.js +5 -0
- package/core/decorators/RegisterComponent.js.map +1 -0
- package/core/decorators/StyleLink.d.ts +1 -0
- package/core/decorators/StyleLink.js +13 -0
- package/core/decorators/StyleLink.js.map +1 -0
- package/core/decorators/index.d.ts +4 -0
- package/core/decorators/index.js +6 -0
- package/core/decorators/index.js.map +1 -0
- package/core/element/AbbreviationElement.d.ts +6 -0
- package/core/element/AbbreviationElement.js +11 -0
- package/core/element/AbbreviationElement.js.map +1 -0
- package/core/element/AnchorElement.d.ts +23 -0
- package/core/element/AnchorElement.js +29 -0
- package/core/element/AnchorElement.js.map +1 -0
- package/core/element/AreaElement.d.ts +17 -0
- package/core/element/AreaElement.js +10 -0
- package/core/element/AreaElement.js.map +1 -0
- package/core/element/ArticleElement.d.ts +4 -0
- package/core/element/ArticleElement.js +11 -0
- package/core/element/ArticleElement.js.map +1 -0
- package/core/element/AudioElement.d.ts +11 -0
- package/core/element/AudioElement.js +9 -0
- package/core/element/AudioElement.js.map +1 -0
- package/core/element/BaseElement.d.ts +7 -0
- package/core/element/BaseElement.js +10 -0
- package/core/element/BaseElement.js.map +1 -0
- package/core/element/BodyElement.d.ts +4 -0
- package/core/element/BodyElement.js +10 -0
- package/core/element/BodyElement.js.map +1 -0
- package/core/element/BoldElement.d.ts +4 -0
- package/core/element/BoldElement.js +9 -0
- package/core/element/BoldElement.js.map +1 -0
- package/core/element/BreakElement.d.ts +4 -0
- package/core/element/BreakElement.js +9 -0
- package/core/element/BreakElement.js.map +1 -0
- package/core/element/ButtonElement.d.ts +25 -0
- package/core/element/ButtonElement.js +46 -0
- package/core/element/ButtonElement.js.map +1 -0
- package/core/element/CanvasElement.d.ts +4 -0
- package/core/element/CanvasElement.js +13 -0
- package/core/element/CanvasElement.js.map +1 -0
- package/core/element/CaptionElement.d.ts +4 -0
- package/core/element/CaptionElement.js +12 -0
- package/core/element/CaptionElement.js.map +1 -0
- package/core/element/CiteElement.d.ts +4 -0
- package/core/element/CiteElement.js +10 -0
- package/core/element/CiteElement.js.map +1 -0
- package/core/element/CodeElement.d.ts +6 -0
- package/core/element/CodeElement.js +12 -0
- package/core/element/CodeElement.js.map +1 -0
- package/core/element/DataListElement.d.ts +4 -0
- package/core/element/DataListElement.js +12 -0
- package/core/element/DataListElement.js.map +1 -0
- package/core/element/DefinitionDescriptionElement.d.ts +4 -0
- package/core/element/DefinitionDescriptionElement.js +12 -0
- package/core/element/DefinitionDescriptionElement.js.map +1 -0
- package/core/element/DefinitionElement.d.ts +4 -0
- package/core/element/DefinitionElement.js +12 -0
- package/core/element/DefinitionElement.js.map +1 -0
- package/core/element/DeletedTextElement.d.ts +6 -0
- package/core/element/DeletedTextElement.js +14 -0
- package/core/element/DeletedTextElement.js.map +1 -0
- package/core/element/DetailsElement.d.ts +8 -0
- package/core/element/DetailsElement.js +27 -0
- package/core/element/DetailsElement.js.map +1 -0
- package/core/element/DialogElement.d.ts +6 -0
- package/core/element/DialogElement.js +13 -0
- package/core/element/DialogElement.js.map +1 -0
- package/core/element/DivElement.d.ts +4 -0
- package/core/element/DivElement.js +9 -0
- package/core/element/DivElement.js.map +1 -0
- package/core/element/EmElement.d.ts +4 -0
- package/core/element/EmElement.js +9 -0
- package/core/element/EmElement.js.map +1 -0
- package/core/element/EmbedElement.d.ts +9 -0
- package/core/element/EmbedElement.js +18 -0
- package/core/element/EmbedElement.js.map +1 -0
- package/core/element/FieldSetElement.d.ts +8 -0
- package/core/element/FieldSetElement.js +33 -0
- package/core/element/FieldSetElement.js.map +1 -0
- package/core/element/FooterElement.d.ts +4 -0
- package/core/element/FooterElement.js +12 -0
- package/core/element/FooterElement.js.map +1 -0
- package/core/element/FormElement.d.ts +13 -0
- package/core/element/FormElement.js +9 -0
- package/core/element/FormElement.js.map +1 -0
- package/core/element/Fragment.d.ts +33 -0
- package/core/element/Fragment.js +146 -0
- package/core/element/Fragment.js.map +1 -0
- package/core/element/H1Element.d.ts +4 -0
- package/core/element/H1Element.js +9 -0
- package/core/element/H1Element.js.map +1 -0
- package/core/element/H2Element.d.ts +4 -0
- package/core/element/H2Element.js +9 -0
- package/core/element/H2Element.js.map +1 -0
- package/core/element/H3Element.d.ts +4 -0
- package/core/element/H3Element.js +9 -0
- package/core/element/H3Element.js.map +1 -0
- package/core/element/H4Element.d.ts +4 -0
- package/core/element/H4Element.js +9 -0
- package/core/element/H4Element.js.map +1 -0
- package/core/element/H5Element.d.ts +4 -0
- package/core/element/H5Element.js +9 -0
- package/core/element/H5Element.js.map +1 -0
- package/core/element/H6Element.d.ts +4 -0
- package/core/element/H6Element.js +9 -0
- package/core/element/H6Element.js.map +1 -0
- package/core/element/HeadElement.d.ts +4 -0
- package/core/element/HeadElement.js +10 -0
- package/core/element/HeadElement.js.map +1 -0
- package/core/element/HeaderElement.d.ts +4 -0
- package/core/element/HeaderElement.js +12 -0
- package/core/element/HeaderElement.js.map +1 -0
- package/core/element/HorizontalRuleElement.d.ts +4 -0
- package/core/element/HorizontalRuleElement.js +12 -0
- package/core/element/HorizontalRuleElement.js.map +1 -0
- package/core/element/HtmlElement.d.ts +8 -0
- package/core/element/HtmlElement.js +18 -0
- package/core/element/HtmlElement.js.map +1 -0
- package/core/element/IFrameElement.d.ts +27 -0
- package/core/element/IFrameElement.js +66 -0
- package/core/element/IFrameElement.js.map +1 -0
- package/core/element/ILayout.d.ts +4 -0
- package/core/element/ILayout.js +8 -0
- package/core/element/ILayout.js.map +1 -0
- package/core/element/IconElement.d.ts +13 -0
- package/core/element/IconElement.js +31 -0
- package/core/element/IconElement.js.map +1 -0
- package/core/element/ImageElement.d.ts +18 -0
- package/core/element/ImageElement.js +16 -0
- package/core/element/ImageElement.js.map +1 -0
- package/core/element/InputElement.d.ts +37 -0
- package/core/element/InputElement.js +81 -0
- package/core/element/InputElement.js.map +1 -0
- package/core/element/LabelElement.d.ts +7 -0
- package/core/element/LabelElement.js +9 -0
- package/core/element/LabelElement.js.map +1 -0
- package/core/element/LegendElement.d.ts +6 -0
- package/core/element/LegendElement.js +14 -0
- package/core/element/LegendElement.js.map +1 -0
- package/core/element/ListItemElement.d.ts +11 -0
- package/core/element/ListItemElement.js +27 -0
- package/core/element/ListItemElement.js.map +1 -0
- package/core/element/MainElement.d.ts +4 -0
- package/core/element/MainElement.js +9 -0
- package/core/element/MainElement.js.map +1 -0
- package/core/element/NavElement.d.ts +4 -0
- package/core/element/NavElement.js +9 -0
- package/core/element/NavElement.js.map +1 -0
- package/core/element/OrderedListElement.d.ts +4 -0
- package/core/element/OrderedListElement.js +9 -0
- package/core/element/OrderedListElement.js.map +1 -0
- package/core/element/ParagraphElement.d.ts +4 -0
- package/core/element/ParagraphElement.js +9 -0
- package/core/element/ParagraphElement.js.map +1 -0
- package/core/element/PreElement.d.ts +4 -0
- package/core/element/PreElement.js +9 -0
- package/core/element/PreElement.js.map +1 -0
- package/core/element/SectionElement.d.ts +4 -0
- package/core/element/SectionElement.js +11 -0
- package/core/element/SectionElement.js.map +1 -0
- package/core/element/SelectElement.d.ts +4 -0
- package/core/element/SelectElement.js +11 -0
- package/core/element/SelectElement.js.map +1 -0
- package/core/element/SourceElement.d.ts +7 -0
- package/core/element/SourceElement.js +13 -0
- package/core/element/SourceElement.js.map +1 -0
- package/core/element/SpanElement.d.ts +4 -0
- package/core/element/SpanElement.js +9 -0
- package/core/element/SpanElement.js.map +1 -0
- package/core/element/StrongElement.d.ts +4 -0
- package/core/element/StrongElement.js +11 -0
- package/core/element/StrongElement.js.map +1 -0
- package/core/element/StyleElement.d.ts +4 -0
- package/core/element/StyleElement.js +9 -0
- package/core/element/StyleElement.js.map +1 -0
- package/core/element/SummaryElement.d.ts +4 -0
- package/core/element/SummaryElement.js +11 -0
- package/core/element/SummaryElement.js.map +1 -0
- package/core/element/SvgElement.d.ts +17 -0
- package/core/element/SvgElement.js +149 -0
- package/core/element/SvgElement.js.map +1 -0
- package/core/element/TableBodyElement.d.ts +4 -0
- package/core/element/TableBodyElement.js +9 -0
- package/core/element/TableBodyElement.js.map +1 -0
- package/core/element/TableCellElement.d.ts +9 -0
- package/core/element/TableCellElement.js +24 -0
- package/core/element/TableCellElement.js.map +1 -0
- package/core/element/TableColElement.d.ts +6 -0
- package/core/element/TableColElement.js +12 -0
- package/core/element/TableColElement.js.map +1 -0
- package/core/element/TableColGroupElement.d.ts +6 -0
- package/core/element/TableColGroupElement.js +14 -0
- package/core/element/TableColGroupElement.js.map +1 -0
- package/core/element/TableElement.d.ts +44 -0
- package/core/element/TableElement.js +227 -0
- package/core/element/TableElement.js.map +1 -0
- package/core/element/TableFootElement.d.ts +4 -0
- package/core/element/TableFootElement.js +9 -0
- package/core/element/TableFootElement.js.map +1 -0
- package/core/element/TableFootRowElement.d.ts +8 -0
- package/core/element/TableFootRowElement.js +22 -0
- package/core/element/TableFootRowElement.js.map +1 -0
- package/core/element/TableHeadCellElement.d.ts +9 -0
- package/core/element/TableHeadCellElement.js +23 -0
- package/core/element/TableHeadCellElement.js.map +1 -0
- package/core/element/TableHeadElement.d.ts +4 -0
- package/core/element/TableHeadElement.js +9 -0
- package/core/element/TableHeadElement.js.map +1 -0
- package/core/element/TableHeadRowElement.d.ts +10 -0
- package/core/element/TableHeadRowElement.js +28 -0
- package/core/element/TableHeadRowElement.js.map +1 -0
- package/core/element/TableRowElement.d.ts +10 -0
- package/core/element/TableRowElement.js +28 -0
- package/core/element/TableRowElement.js.map +1 -0
- package/core/element/TextAreaElement.d.ts +6 -0
- package/core/element/TextAreaElement.js +9 -0
- package/core/element/TextAreaElement.js.map +1 -0
- package/core/element/UListElement.d.ts +4 -0
- package/core/element/UListElement.js +9 -0
- package/core/element/UListElement.js.map +1 -0
- package/core/element/VideoElement.d.ts +12 -0
- package/core/element/VideoElement.js +15 -0
- package/core/element/VideoElement.js.map +1 -0
- package/core/element/index.d.ts +71 -0
- package/core/element/index.js +72 -0
- package/core/element/index.js.map +1 -0
- package/core/event/index.d.ts +16 -0
- package/core/event/index.js +75 -0
- package/core/event/index.js.map +1 -0
- package/core/index.d.ts +9 -0
- package/core/index.js +10 -0
- package/core/index.js.map +1 -0
- package/core/ref/RefBoolean.d.ts +26 -0
- package/core/ref/RefBoolean.js +58 -0
- package/core/ref/RefBoolean.js.map +1 -0
- package/core/ref/RefContainer.d.ts +25 -0
- package/core/ref/RefContainer.js +105 -0
- package/core/ref/RefContainer.js.map +1 -0
- package/core/ref/RefList.d.ts +51 -0
- package/core/ref/RefList.js +155 -0
- package/core/ref/RefList.js.map +1 -0
- package/core/ref/RefMap.d.ts +25 -0
- package/core/ref/RefMap.js +71 -0
- package/core/ref/RefMap.js.map +1 -0
- package/core/ref/RefNumber.d.ts +30 -0
- package/core/ref/RefNumber.js +69 -0
- package/core/ref/RefNumber.js.map +1 -0
- package/core/ref/RefObject.d.ts +30 -0
- package/core/ref/RefObject.js +211 -0
- package/core/ref/RefObject.js.map +1 -0
- package/core/ref/RefProperty.d.ts +3 -0
- package/core/ref/RefProperty.js +46 -0
- package/core/ref/RefProperty.js.map +1 -0
- package/core/ref/RefSet.d.ts +25 -0
- package/core/ref/RefSet.js +72 -0
- package/core/ref/RefSet.js.map +1 -0
- package/core/ref/RefState.d.ts +23 -0
- package/core/ref/RefState.js +79 -0
- package/core/ref/RefState.js.map +1 -0
- package/core/ref/RefString.d.ts +75 -0
- package/core/ref/RefString.js +202 -0
- package/core/ref/RefString.js.map +1 -0
- package/core/ref/index.d.ts +21 -0
- package/core/ref/index.js +64 -0
- package/core/ref/index.js.map +1 -0
- package/core/router/RouteView.d.ts +19 -0
- package/core/router/RouteView.js +75 -0
- package/core/router/RouteView.js.map +1 -0
- package/core/router/Router.d.ts +70 -0
- package/core/router/Router.js +287 -0
- package/core/router/Router.js.map +1 -0
- package/core/router/RouterEvent.d.ts +36 -0
- package/core/router/RouterEvent.js +43 -0
- package/core/router/RouterEvent.js.map +1 -0
- package/core/router/RouterGuard.d.ts +12 -0
- package/core/router/RouterGuard.js +3 -0
- package/core/router/RouterGuard.js.map +1 -0
- package/core/router/index.d.ts +4 -0
- package/core/router/index.js +5 -0
- package/core/router/index.js.map +1 -0
- package/core/styles/index.d.ts +97 -0
- package/core/styles/index.js +36 -0
- package/core/styles/index.js.map +1 -0
- package/global/index.d.ts +79 -0
- package/global/index.js +923 -0
- package/global/index.js.map +1 -0
- package/global/safari-polyfill.d.ts +0 -0
- package/global/safari-polyfill.js +234 -0
- package/global/safari-polyfill.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js.map +1 -0
- package/package.json +2 -18
- package/typings/index.d.ts +4 -3
- package/README.md +0 -62
- package/public/Ic_my_location_48px.svg.png +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component, ComponentProps, refString } from "../..";
|
|
2
|
+
export declare class IconElement extends Component {
|
|
3
|
+
private _icon;
|
|
4
|
+
constructor(props?: ComponentProps & {
|
|
5
|
+
icon?: refString;
|
|
6
|
+
src?: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
});
|
|
9
|
+
get icon(): string;
|
|
10
|
+
set icon(value: refString);
|
|
11
|
+
get color(): string;
|
|
12
|
+
set color(value: refString);
|
|
13
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component, ref } from "../..";
|
|
2
|
+
export class IconElement extends Component {
|
|
3
|
+
_icon = ref("");
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super(props);
|
|
6
|
+
if (props != undefined && props.icon != undefined)
|
|
7
|
+
this.icon = props.icon;
|
|
8
|
+
}
|
|
9
|
+
get icon() {
|
|
10
|
+
return this._icon.value;
|
|
11
|
+
}
|
|
12
|
+
set icon(value) {
|
|
13
|
+
if (typeof value !== "string")
|
|
14
|
+
this["_styleref"].appendStyleref("icon", this, value);
|
|
15
|
+
else {
|
|
16
|
+
const splice = value.split(" ");
|
|
17
|
+
splice.forEach((v) => {
|
|
18
|
+
this.addClassName(v);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
get color() {
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
return this.style.color;
|
|
25
|
+
}
|
|
26
|
+
set color(value) {
|
|
27
|
+
this.style.color = value;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
customElements.define("icon-element", IconElement);
|
|
31
|
+
//# sourceMappingURL=IconElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconElement.js","sourceRoot":"","sources":["../../../src/core/element/IconElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAkB,GAAG,EAAa,MAAM,OAAO,CAAC;AAElE,MAAM,OAAO,WAAY,SAAQ,SAAS;IAChC,KAAK,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;IAExB,YACE,KAIC;QAED,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,KAAK,IAAI,SAAS,IAAI,KAAK,CAAC,IAAI,IAAI,SAAS;YAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAC5E,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;CACF;AACD,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentProps, refString, refNumber } from "../../";
|
|
2
|
+
export declare class ImageElement extends HTMLImageElement implements IComponent {
|
|
3
|
+
constructor(props?: ComponentProps & {
|
|
4
|
+
src?: string | refString;
|
|
5
|
+
alt?: string | refString;
|
|
6
|
+
lazy?: boolean;
|
|
7
|
+
loading?: "eager" | "lazy" | "auto";
|
|
8
|
+
decoding?: "sync" | "async" | "auto";
|
|
9
|
+
sizes?: string;
|
|
10
|
+
srcset?: string;
|
|
11
|
+
crossOrigin?: "anonymous" | "use-credentials";
|
|
12
|
+
width?: number | refNumber | string | refString;
|
|
13
|
+
height?: number | refNumber | string | refString;
|
|
14
|
+
referrerPolicy?: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
15
|
+
importance?: "auto" | "high" | "low" | "none";
|
|
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
|
+
});
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class ImageElement extends HTMLImageElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
this.className = "image-element";
|
|
6
|
+
const src = props?.src;
|
|
7
|
+
delete props?.src;
|
|
8
|
+
Component.applyProps(this, props);
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
if (src)
|
|
11
|
+
this.src = src;
|
|
12
|
+
this.onload;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
customElements.define("base-img-element", ImageElement, { extends: "img" });
|
|
16
|
+
//# sourceMappingURL=ImageElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageElement.js","sourceRoot":"","sources":["../../../src/core/element/ImageElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAwB,MAAM,QAAQ,CAAC;AAEzE,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACjD,YAAY,KAYX;QACA,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC;QACjC,MAAM,GAAG,GAAG,KAAK,EAAE,GAAG,CAAC;QACvB,OAAO,KAAK,EAAE,GAAG,CAAC;QAClB,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAClC,aAAa;QACb,IAAI,GAAG;YAAE,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC;IACb,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentProps, refString, refNumber, ref } from "../../";
|
|
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 InputProps extends ComponentProps {
|
|
5
|
+
id?: string;
|
|
6
|
+
type?: InputType;
|
|
7
|
+
name?: string;
|
|
8
|
+
value?: refString | refNumber;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
hidden?: boolean;
|
|
11
|
+
accept?: string;
|
|
12
|
+
multiple?: boolean;
|
|
13
|
+
checked?: boolean | ref<boolean>;
|
|
14
|
+
/**
|
|
15
|
+
* Delay in milliseconds to trigger the oninputDelay event default is 200ms
|
|
16
|
+
*/
|
|
17
|
+
delay?: number;
|
|
18
|
+
readonly?: boolean;
|
|
19
|
+
minlength?: number;
|
|
20
|
+
maxlength?: number;
|
|
21
|
+
min?: string;
|
|
22
|
+
max?: string;
|
|
23
|
+
pattern?: RegExp;
|
|
24
|
+
required?: boolean;
|
|
25
|
+
validation?: RegisterOptions;
|
|
26
|
+
/**
|
|
27
|
+
* Event triggered when the input value changes with a delay defined by the delay property
|
|
28
|
+
*/
|
|
29
|
+
oninputDelay?: (value: string) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare class InputElement extends HTMLInputElement implements IComponent {
|
|
32
|
+
#private;
|
|
33
|
+
constructor(props?: InputProps);
|
|
34
|
+
get validation(): RegisterOptions | undefined;
|
|
35
|
+
set validation(value: RegisterOptions | undefined);
|
|
36
|
+
private __checkValidity;
|
|
37
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class InputElement extends HTMLInputElement {
|
|
3
|
+
#validation;
|
|
4
|
+
#checkValidity;
|
|
5
|
+
constructor(props) {
|
|
6
|
+
super();
|
|
7
|
+
if (props?.accept)
|
|
8
|
+
this.accept = props.accept;
|
|
9
|
+
this.multiple = props?.multiple || false;
|
|
10
|
+
this.readOnly = props?.readonly || false;
|
|
11
|
+
Component.applyProps(this, props);
|
|
12
|
+
if (props?.oninputDelay) {
|
|
13
|
+
const delay = props.delay ?? 250;
|
|
14
|
+
let timeoutId;
|
|
15
|
+
this.addEventListener("input", () => {
|
|
16
|
+
clearTimeout(timeoutId);
|
|
17
|
+
timeoutId = window.setTimeout(() => {
|
|
18
|
+
props.oninputDelay?.(this.value);
|
|
19
|
+
}, delay);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
if (props?.maxlength !== undefined)
|
|
23
|
+
this.maxLength = props?.maxlength;
|
|
24
|
+
if (props?.minlength !== undefined)
|
|
25
|
+
this.minLength = props?.minlength;
|
|
26
|
+
if (props?.min !== undefined)
|
|
27
|
+
this.min = props?.min;
|
|
28
|
+
if (props?.max !== undefined)
|
|
29
|
+
this.max = props?.max;
|
|
30
|
+
if (props?.pattern !== undefined)
|
|
31
|
+
this.pattern = props?.pattern?.source;
|
|
32
|
+
if (props?.required !== undefined)
|
|
33
|
+
this.required = props?.required || false;
|
|
34
|
+
}
|
|
35
|
+
get validation() {
|
|
36
|
+
return this.#validation;
|
|
37
|
+
}
|
|
38
|
+
set validation(value) {
|
|
39
|
+
this.#validation = value;
|
|
40
|
+
if (this.#checkValidity)
|
|
41
|
+
this.removeEventListener("input", this.#checkValidity);
|
|
42
|
+
this.#checkValidity = undefined;
|
|
43
|
+
if (value) {
|
|
44
|
+
this.#checkValidity = this.__checkValidity.bind(this);
|
|
45
|
+
this.addEventListener("input", this.#checkValidity);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
__checkValidity() {
|
|
49
|
+
if (!this.validation)
|
|
50
|
+
return;
|
|
51
|
+
let validationMessage = this.validationMessage;
|
|
52
|
+
console.log("🔹 Validation:", this.validation, " Input:", this.value);
|
|
53
|
+
if (this.validation.required && !this.value) {
|
|
54
|
+
validationMessage = "Required field";
|
|
55
|
+
}
|
|
56
|
+
else if (this.validation.minLength !== undefined && this.value.length < this.validation.minLength) {
|
|
57
|
+
validationMessage = `Minimum length is ${this.validation.minLength}`;
|
|
58
|
+
}
|
|
59
|
+
else if (this.validation.maxLength !== undefined && this.value.length > this.validation.maxLength) {
|
|
60
|
+
validationMessage = `Maximum length is ${this.validation.maxLength}`;
|
|
61
|
+
}
|
|
62
|
+
else if (this.validation.min !== undefined && Number(this.value.toString()) < Number(this.validation.min)) {
|
|
63
|
+
validationMessage = `Minimum value is ${this.validation.min}`;
|
|
64
|
+
}
|
|
65
|
+
else if (this.validation.max !== undefined && Number(this.value) > Number(this.validation.max)) {
|
|
66
|
+
validationMessage = `Maximum value is ${this.validation.max}`;
|
|
67
|
+
}
|
|
68
|
+
else if (this.validation.pattern && !this.validation.pattern.test(this.value)) {
|
|
69
|
+
validationMessage = "Invalid value";
|
|
70
|
+
}
|
|
71
|
+
else
|
|
72
|
+
validationMessage = "";
|
|
73
|
+
console.log("🔹 Validation:", this.validation, " Input:", this.value, " validationMessage: ", validationMessage);
|
|
74
|
+
if (validationMessage !== this.validationMessage) {
|
|
75
|
+
this.setCustomValidity(validationMessage);
|
|
76
|
+
this.reportValidity();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
customElements.define("base-input-element", InputElement, { extends: "input" });
|
|
81
|
+
//# sourceMappingURL=InputElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputElement.js","sourceRoot":"","sources":["../../../src/core/element/InputElement.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class LabelElement extends HTMLLabelElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-label-element", LabelElement, { extends: "label" });
|
|
9
|
+
//# sourceMappingURL=LabelElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabelElement.js","sourceRoot":"","sources":["../../../src/core/element/LabelElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACjD,YAAY,KAAwD;QACnE,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
// <legend>
|
|
3
|
+
export class LegendElement extends HTMLLegendElement {
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super();
|
|
6
|
+
Component.applyProps(this, props);
|
|
7
|
+
if (props?.value)
|
|
8
|
+
this.innerHTML = props.value;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
customElements.define("base-legend-element", LegendElement, {
|
|
12
|
+
extends: "legend",
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=LegendElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendElement.js","sourceRoot":"","sources":["../../../src/core/element/LegendElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnD,WAAW;AACX,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,YACC,KAEC;QAED,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAClC,IAAI,KAAK,EAAE,KAAK;YAAE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,KAAY,CAAC;IACvD,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,aAAa,EAAE;IAC3D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentProps } from "../../";
|
|
2
|
+
export declare class ListItemElement<T = any> extends HTMLLIElement implements IComponent {
|
|
3
|
+
constructor(props?: ComponentProps & {
|
|
4
|
+
draggable?: boolean;
|
|
5
|
+
});
|
|
6
|
+
item: T | undefined;
|
|
7
|
+
removeItem(): void;
|
|
8
|
+
set draggable(value: boolean);
|
|
9
|
+
get draggable(): boolean;
|
|
10
|
+
onSelect(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class ListItemElement extends HTMLLIElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
item = undefined;
|
|
8
|
+
removeItem() {
|
|
9
|
+
this.dispatchEvent(new CustomEvent("removeItem", { detail: { item: this.item, element: this }, bubbles: true, cancelable: true }));
|
|
10
|
+
}
|
|
11
|
+
set draggable(value) {
|
|
12
|
+
if (value) {
|
|
13
|
+
this.addClassName("item-draggable");
|
|
14
|
+
this.setAttribute("draggable", "true");
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.classList.remove("item-draggable");
|
|
18
|
+
this.removeAttribute("draggable");
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
get draggable() {
|
|
22
|
+
return this.hasAttribute("draggable");
|
|
23
|
+
}
|
|
24
|
+
onSelect() { }
|
|
25
|
+
}
|
|
26
|
+
customElements.define("base-li-element", ListItemElement, { extends: "li" });
|
|
27
|
+
//# sourceMappingURL=ListItemElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemElement.js","sourceRoot":"","sources":["../../../src/core/element/ListItemElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,eAAyB,SAAQ,aAAa;IAC1D,YAAY,KAAgD;QAC3D,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;IACD,IAAI,GAAkB,SAAS,CAAC;IAEhC,UAAU;QACT,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACpI,CAAC;IAED,IAAI,SAAS,CAAC,KAAc;QAC3B,IAAI,KAAK,EAAE,CAAC;YACX,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;YACpC,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACP,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;YACxC,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;QACnC,CAAC;IACF,CAAC;IAED,IAAI,SAAS;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IAED,QAAQ,KAAW,CAAC;CACpB;AAED,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class MainElement extends HTMLElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-main-element", MainElement, { extends: "main" });
|
|
9
|
+
//# sourceMappingURL=MainElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MainElement.js","sourceRoot":"","sources":["../../../src/core/element/MainElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC3C,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class NavElement extends HTMLElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-nav-element", NavElement, { extends: "nav" });
|
|
9
|
+
//# sourceMappingURL=NavElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavElement.js","sourceRoot":"","sources":["../../../src/core/element/NavElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,UAAW,SAAQ,WAAW;IAC1C,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class OrderedListElement extends HTMLOListElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-ol-element", OrderedListElement, { extends: "ol" });
|
|
9
|
+
//# sourceMappingURL=OrderedListElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderedListElement.js","sourceRoot":"","sources":["../../../src/core/element/OrderedListElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,kBAAmB,SAAQ,gBAAgB;IACvD,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class ParagraphElement extends HTMLParagraphElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-p-element", ParagraphElement, { extends: "p" });
|
|
9
|
+
//# sourceMappingURL=ParagraphElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParagraphElement.js","sourceRoot":"","sources":["../../../src/core/element/ParagraphElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,gBAAiB,SAAQ,oBAAoB;IACzD,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class PreElement extends HTMLPreElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-pre-element", PreElement, { extends: "pre" });
|
|
9
|
+
//# sourceMappingURL=PreElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreElement.js","sourceRoot":"","sources":["../../../src/core/element/PreElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,UAAW,SAAQ,cAAc;IAC7C,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class SectionElement extends HTMLElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-section-element", SectionElement, {
|
|
9
|
+
extends: "section",
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=SectionElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionElement.js","sourceRoot":"","sources":["../../../src/core/element/SectionElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC9C,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,cAAc,EAAE;IAC7D,OAAO,EAAE,SAAS;CAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class SelectElement extends HTMLSelectElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-select-element", SelectElement, {
|
|
9
|
+
extends: "select",
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=SelectElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectElement.js","sourceRoot":"","sources":["../../../src/core/element/SelectElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,aAAa,EAAE;IAC3D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class SourceElement extends HTMLSourceElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
if (props?.src)
|
|
6
|
+
this.src = props.src;
|
|
7
|
+
if (props?.type)
|
|
8
|
+
this.type = props.type;
|
|
9
|
+
Component.applyProps(this, props);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
customElements.define("base-source-element", SourceElement, { extends: "source" });
|
|
13
|
+
//# sourceMappingURL=SourceElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SourceElement.js","sourceRoot":"","sources":["../../../src/core/element/SourceElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,aAAc,SAAQ,iBAAiB;IACnD,YACC,KAGC;QAED,KAAK,EAAE,CAAC;QACR,IAAI,KAAK,EAAE,GAAG;YAAE,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAU,CAAC;QAC5C,IAAI,KAAK,EAAE,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAW,CAAC;QAC/C,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class SpanElement extends HTMLSpanElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-span-element", SpanElement, { extends: "span" });
|
|
9
|
+
//# sourceMappingURL=SpanElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpanElement.js","sourceRoot":"","sources":["../../../src/core/element/SpanElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,WAAY,SAAQ,eAAe;IAC/C,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,mBAAmB,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class StrongElement extends HTMLSpanElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-strong-element", StrongElement, {
|
|
9
|
+
extends: "strong",
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=StrongElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StrongElement.js","sourceRoot":"","sources":["../../../src/core/element/StrongElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,aAAc,SAAQ,eAAe;IACjD,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,qBAAqB,EAAE,aAAa,EAAE;IAC3D,OAAO,EAAE,QAAQ;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class StyleElement extends HTMLStyleElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-style-element", StyleElement, { extends: "style" });
|
|
9
|
+
//# sourceMappingURL=StyleElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StyleElement.js","sourceRoot":"","sources":["../../../src/core/element/StyleElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACjD,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from "../../";
|
|
2
|
+
export class SummaryElement extends HTMLElement {
|
|
3
|
+
constructor(props) {
|
|
4
|
+
super();
|
|
5
|
+
Component.applyProps(this, props);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
customElements.define("base-summary-element", SummaryElement, {
|
|
9
|
+
extends: "summary",
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=SummaryElement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SummaryElement.js","sourceRoot":"","sources":["../../../src/core/element/SummaryElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC9C,YAAY,KAAsB;QACjC,KAAK,EAAE,CAAC;QACR,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC;CACD;AAED,cAAc,CAAC,MAAM,CAAC,sBAAsB,EAAE,cAAc,EAAE;IAC7D,OAAO,EAAE,SAAS;CAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentProps } from "../../";
|
|
2
|
+
interface SvgBaseElement extends IComponent {
|
|
3
|
+
src?: string;
|
|
4
|
+
readonly complete: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface SvgConstructor {
|
|
7
|
+
new (props?: ComponentProps & {
|
|
8
|
+
src?: string;
|
|
9
|
+
}): SvgBaseElement;
|
|
10
|
+
}
|
|
11
|
+
declare const SvgBaseElement: SvgConstructor;
|
|
12
|
+
export declare class SvgElement extends SvgBaseElement {
|
|
13
|
+
constructor(props?: ComponentProps & {
|
|
14
|
+
src?: string;
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export {};
|