typecomposer 0.1.47 → 0.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/index.js +1 -2
- package/core/components/AlertPanel.d.ts +6 -6
- package/core/components/AlertPanel.js +1 -75
- package/core/components/AlertPanel.js.map +1 -1
- package/core/components/AvatarPanel.d.ts +2 -2
- package/core/components/AvatarPanel.js +1 -62
- package/core/components/AvatarPanel.js.map +1 -1
- package/core/components/BorderPanel.d.ts +2 -2
- package/core/components/BorderPanel.js +1 -90
- package/core/components/BorderPanel.js.map +1 -1
- package/core/components/CardPanel.d.ts +2 -2
- package/core/components/CardPanel.js +1 -11
- package/core/components/CardPanel.js.map +1 -1
- package/core/components/CheckBox.d.ts +2 -2
- package/core/components/CheckBox.js +1 -109
- package/core/components/CheckBox.js.map +1 -1
- package/core/components/ColorPicker.d.ts +2 -2
- package/core/components/ColorPicker.js +1 -36
- package/core/components/ColorPicker.js.map +1 -1
- package/core/components/ContextMenu.d.ts +3 -3
- package/core/components/ContextMenu.js +1 -64
- package/core/components/ContextMenu.js.map +1 -1
- package/core/components/DialogPanel.d.ts +2 -2
- package/core/components/DialogPanel.js +1 -62
- package/core/components/DialogPanel.js.map +1 -1
- package/core/components/DropDown.d.ts +3 -3
- package/core/components/DropDown.js +1 -231
- package/core/components/DropDown.js.map +1 -1
- package/core/components/FlowPanel.d.ts +2 -2
- package/core/components/FlowPanel.js +1 -40
- package/core/components/FlowPanel.js.map +1 -1
- package/core/components/ForEach.d.ts +2 -2
- package/core/components/ForEach.js +1 -88
- package/core/components/ForEach.js.map +1 -1
- package/core/components/GridPanel.d.ts +4 -7
- package/core/components/GridPanel.js +1 -30
- package/core/components/GridPanel.js.map +1 -1
- package/core/components/HBox.d.ts +2 -2
- package/core/components/HBox.js +1 -10
- package/core/components/HBox.js.map +1 -1
- package/core/components/LazyLoading.d.ts +2 -2
- package/core/components/LazyLoading.js +1 -36
- package/core/components/LazyLoading.js.map +1 -1
- package/core/components/ListPanel.d.ts +2 -2
- package/core/components/ListPanel.js +1 -153
- package/core/components/ListPanel.js.map +1 -1
- package/core/components/PopUpButton.d.ts +2 -2
- package/core/components/PopUpButton.js +1 -57
- package/core/components/PopUpButton.js.map +1 -1
- package/core/components/ScrollPanel.d.ts +2 -2
- package/core/components/ScrollPanel.js +1 -35
- package/core/components/ScrollPanel.js.map +1 -1
- package/core/components/SliderPanel.d.ts +2 -2
- package/core/components/SliderPanel.js +1 -135
- package/core/components/SliderPanel.js.map +1 -1
- package/core/components/StackPanel.d.ts +2 -2
- package/core/components/StackPanel.js +1 -10
- package/core/components/StackPanel.js.map +1 -1
- package/core/components/TabItem.js +1 -84
- package/core/components/TabPanel.d.ts +2 -2
- package/core/components/TabPanel.js +1 -96
- package/core/components/TabPanel.js.map +1 -1
- package/core/components/TextEdit.js +1 -174
- package/core/components/TextField.d.ts +2 -2
- package/core/components/TextField.js +1 -140
- package/core/components/TextField.js.map +1 -1
- package/core/components/ToggleButton.d.ts +2 -2
- package/core/components/ToggleButton.js +1 -20
- package/core/components/ToggleButton.js.map +1 -1
- package/core/components/Tooltip.d.ts +4 -6
- package/core/components/Tooltip.js +1 -14
- package/core/components/Tooltip.js.map +1 -1
- package/core/components/VBox.d.ts +2 -2
- package/core/components/VBox.js +1 -10
- package/core/components/VBox.js.map +1 -1
- package/core/components/VirtualScroll.d.ts +2 -2
- package/core/components/VirtualScroll.js +1 -47
- package/core/components/index.d.ts +1 -2
- package/core/components/index.js +1 -30
- package/core/components/index.js.map +1 -1
- package/core/decorators/RegisterComponent.js +1 -20
- package/core/decorators/StyleLink.js +1 -13
- package/core/decorators/index.js +1 -6
- package/core/element/AbbreviationElement.d.ts +2 -4
- package/core/element/AbbreviationElement.js +1 -10
- package/core/element/AbbreviationElement.js.map +1 -1
- package/core/element/AnchorElement.d.ts +2 -18
- package/core/element/AnchorElement.js +1 -31
- package/core/element/AnchorElement.js.map +1 -1
- package/core/element/AreaElement.d.ts +2 -15
- package/core/element/AreaElement.js +1 -11
- package/core/element/AreaElement.js.map +1 -1
- package/core/element/ArticleElement.d.ts +2 -2
- package/core/element/ArticleElement.js +1 -12
- package/core/element/ArticleElement.js.map +1 -1
- package/core/element/AudioElement.d.ts +2 -9
- package/core/element/AudioElement.js +1 -10
- package/core/element/AudioElement.js.map +1 -1
- package/core/element/BaseElement.d.ts +2 -5
- package/core/element/BaseElement.js +1 -11
- package/core/element/BaseElement.js.map +1 -1
- package/core/element/BodyElement.d.ts +2 -2
- package/core/element/BodyElement.js +1 -11
- package/core/element/BodyElement.js.map +1 -1
- package/core/element/BoldElement.d.ts +2 -2
- package/core/element/BoldElement.js +1 -10
- package/core/element/BoldElement.js.map +1 -1
- package/core/element/BreakElement.d.ts +2 -2
- package/core/element/BreakElement.js +1 -10
- package/core/element/BreakElement.js.map +1 -1
- package/core/element/ButtonElement.d.ts +4 -21
- package/core/element/ButtonElement.js +1 -47
- package/core/element/ButtonElement.js.map +1 -1
- package/core/element/CanvasElement.d.ts +2 -2
- package/core/element/CanvasElement.js +1 -14
- package/core/element/CanvasElement.js.map +1 -1
- package/core/element/CaptionElement.d.ts +2 -2
- package/core/element/CaptionElement.js +1 -13
- package/core/element/CaptionElement.js.map +1 -1
- package/core/element/CiteElement.d.ts +2 -2
- package/core/element/CiteElement.js +1 -11
- package/core/element/CiteElement.js.map +1 -1
- package/core/element/CodeElement.d.ts +2 -2
- package/core/element/CodeElement.js +1 -13
- package/core/element/CodeElement.js.map +1 -1
- package/core/element/DataListElement.d.ts +2 -2
- package/core/element/DataListElement.js +1 -13
- package/core/element/DataListElement.js.map +1 -1
- package/core/element/DefinitionDescriptionElement.d.ts +2 -2
- package/core/element/DefinitionDescriptionElement.js +1 -13
- package/core/element/DefinitionDescriptionElement.js.map +1 -1
- package/core/element/DefinitionElement.d.ts +2 -2
- package/core/element/DefinitionElement.js +1 -13
- package/core/element/DefinitionElement.js.map +1 -1
- package/core/element/DeletedTextElement.d.ts +2 -4
- package/core/element/DeletedTextElement.js +1 -15
- package/core/element/DeletedTextElement.js.map +1 -1
- package/core/element/DetailsElement.d.ts +3 -6
- package/core/element/DetailsElement.js +1 -28
- package/core/element/DetailsElement.js.map +1 -1
- package/core/element/DialogElement.d.ts +2 -4
- package/core/element/DialogElement.js +1 -14
- package/core/element/DialogElement.js.map +1 -1
- package/core/element/DivElement.d.ts +2 -2
- package/core/element/DivElement.js +1 -10
- package/core/element/DivElement.js.map +1 -1
- package/core/element/EmElement.d.ts +2 -2
- package/core/element/EmElement.js +1 -10
- package/core/element/EmElement.js.map +1 -1
- package/core/element/EmbedElement.d.ts +2 -7
- package/core/element/EmbedElement.js +1 -19
- package/core/element/EmbedElement.js.map +1 -1
- package/core/element/FieldSetElement.d.ts +3 -6
- package/core/element/FieldSetElement.js +1 -34
- package/core/element/FieldSetElement.js.map +1 -1
- package/core/element/FooterElement.d.ts +2 -2
- package/core/element/FooterElement.js +1 -13
- package/core/element/FooterElement.js.map +1 -1
- package/core/element/FormElement.d.ts +2 -17
- package/core/element/FormElement.js +1 -36
- package/core/element/FormElement.js.map +1 -1
- package/core/element/Fragment.js +1 -103
- package/core/element/H1Element.d.ts +2 -2
- package/core/element/H1Element.js +1 -10
- package/core/element/H1Element.js.map +1 -1
- package/core/element/H2Element.d.ts +2 -2
- package/core/element/H2Element.js +1 -10
- package/core/element/H2Element.js.map +1 -1
- package/core/element/H3Element.d.ts +2 -2
- package/core/element/H3Element.js +1 -10
- package/core/element/H3Element.js.map +1 -1
- package/core/element/H4Element.d.ts +2 -2
- package/core/element/H4Element.js +1 -10
- package/core/element/H4Element.js.map +1 -1
- package/core/element/H5Element.d.ts +2 -2
- package/core/element/H5Element.js +1 -10
- package/core/element/H5Element.js.map +1 -1
- package/core/element/H6Element.d.ts +2 -2
- package/core/element/H6Element.js +1 -10
- package/core/element/H6Element.js.map +1 -1
- package/core/element/HeadElement.d.ts +2 -2
- package/core/element/HeadElement.js +1 -11
- package/core/element/HeadElement.js.map +1 -1
- package/core/element/HeaderElement.d.ts +2 -2
- package/core/element/HeaderElement.js +1 -13
- package/core/element/HeaderElement.js.map +1 -1
- package/core/element/HorizontalRuleElement.d.ts +2 -2
- package/core/element/HorizontalRuleElement.js +1 -13
- package/core/element/HorizontalRuleElement.js.map +1 -1
- package/core/element/HtmlElement.d.ts +2 -4
- package/core/element/HtmlElement.js +1 -19
- package/core/element/HtmlElement.js.map +1 -1
- package/core/element/IFrameElement.d.ts +2 -15
- package/core/element/IFrameElement.js +1 -67
- package/core/element/IFrameElement.js.map +1 -1
- package/core/element/ILayout.d.ts +2 -2
- package/core/element/ILayout.js +1 -9
- package/core/element/ILayout.js.map +1 -1
- package/core/element/IconElement.d.ts +2 -2
- package/core/element/IconElement.js +1 -32
- package/core/element/IconElement.js.map +1 -1
- package/core/element/IdiomaticElement.d.ts +2 -1
- package/core/element/IdiomaticElement.js +1 -6
- package/core/element/IdiomaticElement.js.map +1 -1
- package/core/element/ImageElement.d.ts +2 -2
- package/core/element/ImageElement.js +1 -17
- package/core/element/ImageElement.js.map +1 -1
- package/core/element/InputElement.d.ts +2 -16
- package/core/element/InputElement.js +1 -81
- package/core/element/InputElement.js.map +1 -1
- package/core/element/LabelElement.d.ts +2 -5
- package/core/element/LabelElement.js +1 -10
- package/core/element/LabelElement.js.map +1 -1
- package/core/element/LegendElement.d.ts +2 -4
- package/core/element/LegendElement.js +1 -15
- package/core/element/LegendElement.js.map +1 -1
- package/core/element/ListItemElement.d.ts +2 -4
- package/core/element/ListItemElement.js +1 -28
- package/core/element/ListItemElement.js.map +1 -1
- package/core/element/MainElement.d.ts +2 -2
- package/core/element/MainElement.js +1 -10
- package/core/element/MainElement.js.map +1 -1
- package/core/element/NavElement.d.ts +2 -2
- package/core/element/NavElement.js +1 -10
- package/core/element/NavElement.js.map +1 -1
- package/core/element/OrderedListElement.d.ts +2 -2
- package/core/element/OrderedListElement.js +1 -10
- package/core/element/OrderedListElement.js.map +1 -1
- package/core/element/ParagraphElement.d.ts +2 -2
- package/core/element/ParagraphElement.js +1 -10
- package/core/element/ParagraphElement.js.map +1 -1
- package/core/element/PreElement.d.ts +2 -2
- package/core/element/PreElement.js +1 -10
- package/core/element/PreElement.js.map +1 -1
- package/core/element/SectionElement.d.ts +2 -2
- package/core/element/SectionElement.js +1 -12
- package/core/element/SectionElement.js.map +1 -1
- package/core/element/SelectElement.d.ts +2 -2
- package/core/element/SelectElement.js +1 -12
- package/core/element/SelectElement.js.map +1 -1
- package/core/element/SourceElement.d.ts +2 -5
- package/core/element/SourceElement.js +1 -14
- package/core/element/SourceElement.js.map +1 -1
- package/core/element/SpanElement.d.ts +2 -2
- package/core/element/SpanElement.js +1 -10
- package/core/element/SpanElement.js.map +1 -1
- package/core/element/StrongElement.d.ts +2 -2
- package/core/element/StrongElement.js +1 -12
- package/core/element/StrongElement.js.map +1 -1
- package/core/element/StyleElement.d.ts +2 -2
- package/core/element/StyleElement.js +1 -10
- package/core/element/StyleElement.js.map +1 -1
- package/core/element/SummaryElement.d.ts +2 -2
- package/core/element/SummaryElement.js +1 -12
- package/core/element/SummaryElement.js.map +1 -1
- package/core/element/SvgElement.d.ts +3 -3
- package/core/element/SvgElement.js +1 -151
- package/core/element/SvgElement.js.map +1 -1
- package/core/element/TableBodyElement.d.ts +2 -2
- package/core/element/TableBodyElement.js +1 -10
- package/core/element/TableBodyElement.js.map +1 -1
- package/core/element/TableCellElement.d.ts +3 -6
- package/core/element/TableCellElement.js +1 -25
- package/core/element/TableCellElement.js.map +1 -1
- package/core/element/TableColElement.d.ts +2 -4
- package/core/element/TableColElement.js +1 -13
- package/core/element/TableColElement.js.map +1 -1
- package/core/element/TableColGroupElement.d.ts +2 -4
- package/core/element/TableColGroupElement.js +1 -15
- package/core/element/TableColGroupElement.js.map +1 -1
- package/core/element/TableElement.d.ts +2 -42
- package/core/element/TableElement.js +1 -228
- package/core/element/TableElement.js.map +1 -1
- package/core/element/TableFootElement.d.ts +2 -2
- package/core/element/TableFootElement.js +1 -10
- package/core/element/TableFootElement.js.map +1 -1
- package/core/element/TableFootRowElement.d.ts +2 -2
- package/core/element/TableFootRowElement.js +1 -23
- package/core/element/TableFootRowElement.js.map +1 -1
- package/core/element/TableHeadCellElement.d.ts +2 -2
- package/core/element/TableHeadCellElement.js +1 -24
- package/core/element/TableHeadCellElement.js.map +1 -1
- package/core/element/TableHeadElement.d.ts +2 -2
- package/core/element/TableHeadElement.js +1 -10
- package/core/element/TableHeadElement.js.map +1 -1
- package/core/element/TableHeadRowElement.d.ts +2 -2
- package/core/element/TableHeadRowElement.js +1 -29
- package/core/element/TableHeadRowElement.js.map +1 -1
- package/core/element/TableRowElement.d.ts +2 -2
- package/core/element/TableRowElement.js +1 -29
- package/core/element/TableRowElement.js.map +1 -1
- package/core/element/TextAreaElement.d.ts +2 -4
- package/core/element/TextAreaElement.js +1 -10
- package/core/element/TextAreaElement.js.map +1 -1
- package/core/element/UListElement.d.ts +2 -2
- package/core/element/UListElement.js +1 -10
- package/core/element/UListElement.js.map +1 -1
- package/core/element/VideoElement.d.ts +2 -10
- package/core/element/VideoElement.js +1 -16
- package/core/element/VideoElement.js.map +1 -1
- package/core/element/index.d.ts +3 -3
- package/core/element/index.js +1 -73
- package/core/element/index.js.map +1 -1
- package/core/event/index.js +1 -75
- package/core/index.d.ts +0 -3
- package/core/index.js +1 -10
- package/core/index.js.map +1 -1
- package/core/ref/Computed.js +1 -75
- package/core/ref/Computed.js.map +1 -1
- package/core/ref/RefBoolean.js +1 -119
- package/core/ref/RefContainer.js +1 -114
- package/core/ref/RefContainer.js.map +1 -1
- package/core/ref/RefList.js +1 -240
- package/core/ref/RefMap.js +1 -149
- package/core/ref/RefNumber.js +1 -157
- package/core/ref/RefObject.js +1 -265
- package/core/ref/RefObject.js.map +1 -1
- package/core/ref/RefProperty.js +1 -46
- package/core/ref/RefSet.js +1 -148
- package/core/ref/RefState.js +1 -89
- package/core/ref/RefString.js +1 -179
- package/core/ref/RefString.js.map +1 -1
- package/core/ref/index.js +1 -71
- package/core/router/RouteView.d.ts +2 -2
- package/core/router/RouteView.js +1 -84
- package/core/router/RouteView.js.map +1 -1
- package/core/router/Router.d.ts +8 -9
- package/core/router/Router.js +1 -307
- package/core/router/Router.js.map +1 -1
- package/core/router/RouterEvent.js +1 -43
- package/core/router/RouterGuard.js +1 -3
- package/core/router/index.js +1 -5
- package/core/styles/index.d.ts +3 -3
- package/core/styles/index.js +1 -36
- package/core/styles/index.js.map +1 -1
- package/{core/app/index.d.ts → global/app.d.ts} +5 -7
- package/global/app.js +1 -0
- package/global/app.js.map +1 -0
- package/global/index.d.ts +10 -4
- package/global/index.js +1 -1286
- package/global/index.js.map +1 -1
- package/global/safari-polyfill.js +1 -234
- package/index.d.ts +1 -0
- package/index.js +1 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/style.scss +2 -17
- package/typings/index.d.ts +58 -66
- package/LICENSE +0 -21
- package/README.md +0 -62
- package/core/app/Validate.d.ts +0 -61
- package/core/app/Validate.js +0 -2
- package/core/app/Validate.js.map +0 -1
- package/core/app/index.js +0 -181
- package/core/app/index.js.map +0 -1
- package/core/components/TablePanel.d.ts +0 -34
- package/core/components/TablePanel.js +0 -127
- package/core/components/TablePanel.js.map +0 -1
- package/core/components/VirtualScroll copy 2.d.ts +0 -24
- package/core/components/VirtualScroll copy 2.js +0 -92
- package/core/components/VirtualScroll copy 2.js.map +0 -1
- package/core/ref/RefObject copy.d.ts +0 -124
- package/core/ref/RefObject copy.js +0 -271
- package/core/ref/RefObject copy.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForEach.js","sourceRoot":"","sources":["../../../src/core/components/ForEach.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"ForEach.js","sourceRoot":"","sources":["../../../src/core/components/ForEach.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,OAAO,CAAC;AAEpD,MAAM,OAAO,OAAQ,SAA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
|
3
3
|
static readonly TAG: string;
|
|
4
|
-
constructor(props?:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
set columns(value: refString);
|
|
9
|
-
set rows(value: refString);
|
|
4
|
+
constructor(props?: ElementType<GridPanel>);
|
|
5
|
+
set columns(value: string | number);
|
|
6
|
+
set rows(value: string | number);
|
|
10
7
|
}
|
|
@@ -1,30 +1 @@
|
|
|
1
|
-
import { Component }
|
|
2
|
-
export class GridPanel extends Component {
|
|
3
|
-
static TAG = "tc-grid-panel";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super(props);
|
|
6
|
-
this.addClassName("grid-element");
|
|
7
|
-
if (props?.columns)
|
|
8
|
-
this.columns = props.columns;
|
|
9
|
-
if (props?.rows)
|
|
10
|
-
this.rows = props.rows;
|
|
11
|
-
this.columns = "1";
|
|
12
|
-
}
|
|
13
|
-
//grid-template-columns: auto auto auto auto;
|
|
14
|
-
set columns(value) {
|
|
15
|
-
if (typeof value == "string")
|
|
16
|
-
this.style.gridTemplateColumns = value;
|
|
17
|
-
else
|
|
18
|
-
this.style.gridTemplateColumns = `repeat(${value}, auto)`;
|
|
19
|
-
}
|
|
20
|
-
//grid-template-rows: auto auto auto auto;
|
|
21
|
-
set rows(value) {
|
|
22
|
-
if (typeof value == "string")
|
|
23
|
-
this.style.gridTemplateRows = value;
|
|
24
|
-
else
|
|
25
|
-
this.style.gridTemplateRows = `repeat(${value}, auto)`;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
TypeComposer.defineElement(GridPanel.TAG, GridPanel);
|
|
30
|
-
//# sourceMappingURL=GridPanel.js.map
|
|
1
|
+
import{Component}from"../..";export class GridPanel extends Component{static TAG="tc-grid-panel";constructor(e){super(e),this.addClassName("grid-element"),Component.initComponent(this,GridPanel,e)}set columns(e){this.style.gridTemplateColumns="string"==typeof e?e:`repeat(${e}, auto)`}set rows(e){this.style.gridTemplateRows="string"==typeof e?e:`repeat(${e}, auto)`}}TypeComposer.defineElement(GridPanel.TAG,GridPanel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridPanel.js","sourceRoot":"","sources":["../../../src/core/components/GridPanel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"GridPanel.js","sourceRoot":"","sources":["../../../src/core/components/GridPanel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAC;AAE/C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAC9C,YAAY,KAA8B;QACxC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;QAClC,aAAa;QACf,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,OAAO,CAAC,KAAsB;QAChC,IAAI,OAAO,KAAK,IAAI,QAAQ;YAAE,IAAI,CAAC,KAAK,CAAC,mBAAmB,GAAG,KAAK,CAAC;;YAChE,IAAI,CAAC,KAAK,CAAC,mBAAmB,GAAG,UAAU,KAAK,SAAS,CAAC;IACjE,CAAC;IAED,IAAI,IAAI,CAAC,KAAsB;QAC7B,IAAI,OAAO,KAAK,IAAI,QAAQ;YAAE,IAAI,CAAC,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC;;YAC7D,IAAI,CAAC,KAAK,CAAC,gBAAgB,GAAG,UAAU,KAAK,SAAS,CAAC;IAC9D,CAAC;;AAEH,aAAa;AACb,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC"}
|
package/core/components/HBox.js
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class HBox extends Component {
|
|
3
|
-
static TAG = "tc-hbox";
|
|
4
|
-
constructor(props) {
|
|
5
|
-
super(props);
|
|
6
|
-
this.addClassName("hbox");
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
TypeComposer.defineElement(HBox.TAG, HBox);
|
|
10
|
-
//# sourceMappingURL=HBox.js.map
|
|
1
|
+
import{Component}from"../..";export class HBox extends Component{static TAG="tc-hbox";constructor(o){super(o),this.addClassName("hbox")}}TypeComposer.defineElement(HBox.TAG,HBox);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HBox.js","sourceRoot":"","sources":["../../../src/core/components/HBox.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HBox.js","sourceRoot":"","sources":["../../../src/core/components/HBox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpD,MAAM,OAAO,IAAK,SAAQ,SAAS;IACjC,MAAM,CAAU,GAAG,GAAW,SAAS,CAAC;IACxC,YAAY,KAAmB;QAC7B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;;AAEH,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component,
|
|
2
|
-
export interface LazyLoadingProps extends
|
|
1
|
+
import { Component, ElementType } from "../..";
|
|
2
|
+
export interface LazyLoadingProps extends ElementType {
|
|
3
3
|
onintersect: ((isIntersecting?: boolean) => Promise<HTMLElement>) | ((isIntersecting?: boolean) => void);
|
|
4
4
|
threshold?: number;
|
|
5
5
|
rootMargin?: string;
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class LazyLoading extends Component {
|
|
3
|
-
static TAG = "tc-lazy-loading";
|
|
4
|
-
observer;
|
|
5
|
-
value;
|
|
6
|
-
#load;
|
|
7
|
-
constructor(props) {
|
|
8
|
-
super({ ...props, style: { display: "flex", minHeight: "50px", ...props?.style } });
|
|
9
|
-
this.#load = props.onintersect;
|
|
10
|
-
this.observer = new IntersectionObserver(entries => {
|
|
11
|
-
entries.forEach(async (entry) => {
|
|
12
|
-
if (entry.isIntersecting) {
|
|
13
|
-
if (props.autoRemove == false)
|
|
14
|
-
this.#load(true);
|
|
15
|
-
else {
|
|
16
|
-
this.observer?.disconnect();
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
this.loadContent(await this.#load());
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
else if (props.autoRemove === false)
|
|
22
|
-
this.#load(false);
|
|
23
|
-
});
|
|
24
|
-
}, { threshold: props.threshold, rootMargin: props.rootMargin, root: props.root });
|
|
25
|
-
this.observer.observe(this);
|
|
26
|
-
}
|
|
27
|
-
async loadContent(content) {
|
|
28
|
-
if (content && content instanceof HTMLElement) {
|
|
29
|
-
this.parentElement?.replaceChild(content, this);
|
|
30
|
-
}
|
|
31
|
-
else
|
|
32
|
-
this.remove();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
TypeComposer.defineElement(LazyLoading.TAG, LazyLoading);
|
|
36
|
-
//# sourceMappingURL=LazyLoading.js.map
|
|
1
|
+
import{Component}from"../..";export class LazyLoading extends Component{static TAG="tc-lazy-loading";observer;value;#e;constructor(e){super({...e,style:{display:"flex",minHeight:"50px",...e?.style}}),this.#e=e.onintersect,this.observer=new IntersectionObserver(t=>{t.forEach(async t=>{t.isIntersecting?0==e.autoRemove?this.#e(!0):(this.observer?.disconnect(),this.loadContent(await this.#e())):!1===e.autoRemove&&this.#e(!1)})},{threshold:e.threshold,rootMargin:e.rootMargin,root:e.root}),this.observer.observe(this)}async loadContent(e){e&&e instanceof HTMLElement?this.parentElement?.replaceChild(e,this):this.remove()}}TypeComposer.defineElement(LazyLoading.TAG,LazyLoading);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LazyLoading.js","sourceRoot":"","sources":["../../../src/core/components/LazyLo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IAAI,EAAE,CAAC,CAAC;QACnF,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,OAAqB;QACrC,IAAI,OAAO,IAAI,OAAO,YAAY,WAAW,EAAE,CAAC;YAC9C,IAAI,CAAC,aAAa,EAAE,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAClD,CAAC;;YACC,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;;AAGH,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ElementType, Component, UListElement, ListItemElement, refList } from "../..";
|
|
2
2
|
export declare class ListPanel<T = any> extends Component {
|
|
3
3
|
#private;
|
|
4
4
|
static readonly TAG: string;
|
|
5
5
|
private itemSelected;
|
|
6
|
-
constructor(props?:
|
|
6
|
+
constructor(props?: ElementType & {
|
|
7
7
|
variant?: "primary" | "secondary" | string;
|
|
8
8
|
items?: T[] | refList<HTMLElement>;
|
|
9
9
|
insert?(item: T): any;
|
|
@@ -1,153 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class ListPanel extends Component {
|
|
3
|
-
static TAG = "tc-list-panel";
|
|
4
|
-
itemSelected = null;
|
|
5
|
-
#container = new UListElement();
|
|
6
|
-
#items = [];
|
|
7
|
-
#refbase;
|
|
8
|
-
#insert = undefined;
|
|
9
|
-
constructor(props) {
|
|
10
|
-
super(props);
|
|
11
|
-
super.append(this.container);
|
|
12
|
-
this.#insert = props?.insert;
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
//this.#refbase = refType<T[]>(props?.items);
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
this.#items = this.#refbase ? [] : props?.items || [];
|
|
17
|
-
for (const item of this.#items)
|
|
18
|
-
this.addItem(item);
|
|
19
|
-
this.addEventListener("onConnected", () => {
|
|
20
|
-
//if (this.#refbase) this.#refbase.onChange(this.#updateRefItems.bind(this), this);
|
|
21
|
-
});
|
|
22
|
-
this.addEventListener("onDisconnected", () => {
|
|
23
|
-
//if (this.#refbase) this.#refbase.unsubscribe(this);
|
|
24
|
-
});
|
|
25
|
-
this.addEventListener("removeItem", (e) => {
|
|
26
|
-
const { item, element } = e.detail;
|
|
27
|
-
this.#onChildRemoved(item, element);
|
|
28
|
-
e.stopPropagation();
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
set variant(value) {
|
|
32
|
-
super.variant = value == "primary" ? "default" : value;
|
|
33
|
-
}
|
|
34
|
-
get container() {
|
|
35
|
-
return this.#container;
|
|
36
|
-
}
|
|
37
|
-
appendChild(node) {
|
|
38
|
-
if (node instanceof HTMLCollection) {
|
|
39
|
-
for (let i = 0; i < node.length; i++) {
|
|
40
|
-
const item = node.item(i);
|
|
41
|
-
if (item != undefined && item instanceof HTMLElement)
|
|
42
|
-
this.addItem(item);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else if (node instanceof HTMLElement && node && !node.classList.contains("flow-pane-item"))
|
|
46
|
-
this.addItem(node);
|
|
47
|
-
return node;
|
|
48
|
-
}
|
|
49
|
-
removeChild(child) {
|
|
50
|
-
if (child instanceof HTMLElement)
|
|
51
|
-
this.removeItem(child);
|
|
52
|
-
return child;
|
|
53
|
-
}
|
|
54
|
-
addItem(value) {
|
|
55
|
-
return this.insertItem(value, -1);
|
|
56
|
-
}
|
|
57
|
-
#createItem(value) {
|
|
58
|
-
const element = this.#insert ? this.#insert(value) : value;
|
|
59
|
-
const item = element instanceof ListItemElement ? element : new ListItemElement();
|
|
60
|
-
item.classList.add("list-element-item");
|
|
61
|
-
if (!(element instanceof ListItemElement)) {
|
|
62
|
-
if (element instanceof HTMLElement)
|
|
63
|
-
item.appendChild(element);
|
|
64
|
-
else
|
|
65
|
-
item.innerHTML = element?.toString() || "";
|
|
66
|
-
}
|
|
67
|
-
this.addItemEventListener(item, element);
|
|
68
|
-
item.item = value;
|
|
69
|
-
return item;
|
|
70
|
-
}
|
|
71
|
-
onDragOver = (e) => {
|
|
72
|
-
if (this.#refbase) {
|
|
73
|
-
const items = this.listItems.map((item) => item.item);
|
|
74
|
-
this.#refbase.value = items;
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
insertItem(value, index) {
|
|
78
|
-
if (value == null)
|
|
79
|
-
return null;
|
|
80
|
-
const item = this.#createItem(value);
|
|
81
|
-
if (index < 0 || index >= this.container.children.length)
|
|
82
|
-
this.container.appendChild(item);
|
|
83
|
-
else
|
|
84
|
-
this.container.insertBefore(item, this.container.children.item(index));
|
|
85
|
-
return item;
|
|
86
|
-
}
|
|
87
|
-
#onChildRemoved(item, element) {
|
|
88
|
-
if (item == null)
|
|
89
|
-
return;
|
|
90
|
-
if (this.#refbase) {
|
|
91
|
-
const index = this.#refbase.value.findIndex((refItem) => refItem === item);
|
|
92
|
-
if (index >= 0) {
|
|
93
|
-
this.#refbase.value.splice(index, 1);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
const index = this.#items.indexOf(item);
|
|
98
|
-
if (index >= 0)
|
|
99
|
-
this.#items.splice(index, 1);
|
|
100
|
-
element.remove();
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
addItemEventListener(parent, child) {
|
|
104
|
-
parent.addEventListener("click", () => {
|
|
105
|
-
if (this.itemSelected != null) {
|
|
106
|
-
this.onUnselectItem(this.itemSelected.child);
|
|
107
|
-
this.itemSelected.parent.removeAttribute("selected");
|
|
108
|
-
this.itemSelected.parent.classList.remove("list-element-item-selected");
|
|
109
|
-
}
|
|
110
|
-
if (this.itemSelected?.parent != parent) {
|
|
111
|
-
parent.classList.add("list-element-item-selected");
|
|
112
|
-
parent.setAttribute("selected", "");
|
|
113
|
-
this.onSelectItem(child);
|
|
114
|
-
if (parent instanceof ListItemElement)
|
|
115
|
-
parent.onSelect();
|
|
116
|
-
this.itemSelected = { parent, child };
|
|
117
|
-
}
|
|
118
|
-
else
|
|
119
|
-
this.itemSelected = null;
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
removeItem(element) {
|
|
123
|
-
for (let i = 0; i < this.children.length; i++) {
|
|
124
|
-
const child = this.children.item(i);
|
|
125
|
-
if (child instanceof HTMLElement) {
|
|
126
|
-
if (typeof element == "string" && child.innerHTML == element)
|
|
127
|
-
this.container.removeChild(child);
|
|
128
|
-
else if (child == element)
|
|
129
|
-
this.container.removeChild(child);
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
get listItems() {
|
|
135
|
-
return Array.from(this.container.children).filter((child) => child instanceof ListItemElement);
|
|
136
|
-
}
|
|
137
|
-
scrollToBottom() {
|
|
138
|
-
this.#container.scrollTop = this.#container.scrollHeight;
|
|
139
|
-
}
|
|
140
|
-
scrollToTop() {
|
|
141
|
-
this.#container.scrollTop = 0;
|
|
142
|
-
}
|
|
143
|
-
removeItems() {
|
|
144
|
-
this.container.innerHTML = "";
|
|
145
|
-
}
|
|
146
|
-
append(...nodes) {
|
|
147
|
-
this.container.append(...nodes);
|
|
148
|
-
}
|
|
149
|
-
onSelectItem = () => { };
|
|
150
|
-
onUnselectItem = () => { };
|
|
151
|
-
}
|
|
152
|
-
TypeComposer.defineElement(ListPanel.TAG, ListPanel);
|
|
153
|
-
//# sourceMappingURL=ListPanel.js.map
|
|
1
|
+
import{Component,UListElement,ListItemElement}from"../..";export class ListPanel extends Component{static TAG="tc-list-panel";itemSelected=null;#e=new UListElement;#t=[];#i;#n=void 0;constructor(e){super(e),super.append(this.container),this.#n=e?.insert,this.#t=this.#i?[]:e?.items||[];for(const e of this.#t)this.addItem(e);this.addEventListener("onConnected",()=>{}),this.addEventListener("onDisconnected",()=>{}),this.addEventListener("removeItem",e=>{const{item:t,element:i}=e.detail;this.#s(t,i),e.stopPropagation()})}set variant(e){super.variant="primary"==e?"default":e}get container(){return this.#e}appendChild(e){if(e instanceof HTMLCollection)for(let t=0;t<e.length;t++){const i=e.item(t);null!=i&&i instanceof HTMLElement&&this.addItem(i)}else e instanceof HTMLElement&&e&&!e.classList.contains("flow-pane-item")&&this.addItem(e);return e}removeChild(e){return e instanceof HTMLElement&&this.removeItem(e),e}addItem(e){return this.insertItem(e,-1)}#r(e){const t=this.#n?this.#n(e):e,i=t instanceof ListItemElement?t:new ListItemElement;return i.classList.add("list-element-item"),t instanceof ListItemElement||(t instanceof HTMLElement?i.appendChild(t):i.innerHTML=t?.toString()||""),this.addItemEventListener(i,t),i.item=e,i}onDragOver=e=>{if(this.#i){const e=this.listItems.map(e=>e.item);this.#i.value=e}};insertItem(e,t){if(null==e)return null;const i=this.#r(e);return t<0||t>=this.container.children.length?this.container.appendChild(i):this.container.insertBefore(i,this.container.children.item(t)),i}#s(e,t){if(null!=e)if(this.#i){const t=this.#i.value.findIndex(t=>t===e);t>=0&&this.#i.value.splice(t,1)}else{const i=this.#t.indexOf(e);i>=0&&this.#t.splice(i,1),t.remove()}}addItemEventListener(e,t){e.addEventListener("click",()=>{null!=this.itemSelected&&(this.onUnselectItem(this.itemSelected.child),this.itemSelected.parent.removeAttribute("selected"),this.itemSelected.parent.classList.remove("list-element-item-selected")),this.itemSelected?.parent!=e?(e.classList.add("list-element-item-selected"),e.setAttribute("selected",""),this.onSelectItem(t),e instanceof ListItemElement&&e.onSelect(),this.itemSelected={parent:e,child:t}):this.itemSelected=null})}removeItem(e){for(let t=0;t<this.children.length;t++){const i=this.children.item(t);if(i instanceof HTMLElement){("string"==typeof e&&i.innerHTML==e||i==e)&&this.container.removeChild(i);break}}}get listItems(){return Array.from(this.container.children).filter(e=>e instanceof ListItemElement)}scrollToBottom(){this.#e.scrollTop=this.#e.scrollHeight}scrollToTop(){this.#e.scrollTop=0}removeItems(){this.container.innerHTML=""}append(...e){this.container.append(...e)}onSelectItem=()=>{};onUnselectItem=()=>{}}TypeComposer.defineElement(ListPanel.TAG,ListPanel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListPanel.js","sourceRoot":"","sources":["../../../src/core/components/ListPanel.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ListPanel.js","sourceRoot":"","sources":["../../../src/core/components/ListPanel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,YAAY,EAAE,eAAe,EAAgB,MAAM,OAAO,CAAC;AAEjG,MAAM,OAAO,SAAmB,SAAQ,SAAS;IAC/C,MAAM,CAAU,GAAG,GAAW,eAAe,CAAC;IAEtC,YAAY,GAGT,IAAI,CAAC;IAEhB,UAAU,GAAiB,IAAI,YAAY,EAAE,CAAC;IAC9C,MAAM,GAAQ,EAAE,CAAC;IACjB,QAAQ,CAAuB;IAC/B,OAAO,GAAiC,SAAS,CAAC;IAElD,YACE,KAIC;QAED,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,KAAK,EAAE,MAAM,CAAC;QAC7B,aAAa;QACb,6CAA6C;QAC7C,aAAa;QACb,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC;QACtD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,MAAM;YAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,GAAG,EAAE;YACxC,mFAAmF;QACrF,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,GAAG,EAAE;YAC3C,qDAAqD;QACvD,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE;YACxC,MAAM,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QACnB,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAEM,WAAW;QAChB,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,CAAC,CAAC;IAChC,CAAC;IAEM,WAAW;QAChB,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,EAAE,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,GAAG,KAAwB;QAChC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC;IAClC,CAAC;IAEM,YAAY,GAAsB,GAAG,EAAE,GAAG,CAAC,CAAC;IAC5C,cAAc,GAAsB,GAAG,EAAE,GAAG,CAAC,CAAC;;AAEvD,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, ElementType } from "../..";
|
|
2
2
|
export declare class PopUpButton extends Component {
|
|
3
3
|
#private;
|
|
4
4
|
static readonly TAG: string;
|
|
5
|
-
constructor(props:
|
|
5
|
+
constructor(props: ElementType & {
|
|
6
6
|
buttonText?: string;
|
|
7
7
|
buttonIcon?: string;
|
|
8
8
|
options: HTMLElement[];
|
|
@@ -1,57 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export class PopUpButton extends Component {
|
|
3
|
-
static TAG = "tc-pop-up-button";
|
|
4
|
-
#options;
|
|
5
|
-
#buttonIcon;
|
|
6
|
-
#buttonDiv;
|
|
7
|
-
constructor(props) {
|
|
8
|
-
super(props);
|
|
9
|
-
this.#buttonIcon = props.buttonIcon;
|
|
10
|
-
this.#options = props.options;
|
|
11
|
-
this.addClassName("pop-up-button");
|
|
12
|
-
this.#buttonDiv = new DivElement({
|
|
13
|
-
text: props.buttonText,
|
|
14
|
-
className: "button",
|
|
15
|
-
style: {
|
|
16
|
-
background: `url("${this.icon}") no-repeat center center / contain`,
|
|
17
|
-
backgroundSize: "contain",
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
this.#buttonDiv.onclick = () => {
|
|
21
|
-
this.#buttonDiv.classList.toggle("pressed");
|
|
22
|
-
this.onChange();
|
|
23
|
-
};
|
|
24
|
-
const optionsContainer = new DivElement({ className: "options-container" });
|
|
25
|
-
for (const option of this.options) {
|
|
26
|
-
optionsContainer.append(option);
|
|
27
|
-
if (props.hover == undefined || props.hover == true)
|
|
28
|
-
option.classList.add("option");
|
|
29
|
-
option.addEventListener("click", () => this.onSelect(option));
|
|
30
|
-
}
|
|
31
|
-
this.append(this.#buttonDiv, optionsContainer);
|
|
32
|
-
document.addEventListener("click", (e) => {
|
|
33
|
-
if (e.target != this.#buttonDiv)
|
|
34
|
-
this.#buttonDiv.classList.remove("pressed");
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
get icon() {
|
|
38
|
-
return this.#buttonIcon;
|
|
39
|
-
}
|
|
40
|
-
set icon(value) {
|
|
41
|
-
this.#buttonIcon = value;
|
|
42
|
-
this.#buttonDiv.style.background = `url("${this.buttonIcon}") no-repeat center center / contain`;
|
|
43
|
-
}
|
|
44
|
-
get buttonIcon() {
|
|
45
|
-
return this.#buttonDiv;
|
|
46
|
-
}
|
|
47
|
-
get options() {
|
|
48
|
-
return this.#options;
|
|
49
|
-
}
|
|
50
|
-
set options(value) {
|
|
51
|
-
this.#options = value;
|
|
52
|
-
}
|
|
53
|
-
onChange = () => { };
|
|
54
|
-
onSelect = () => { };
|
|
55
|
-
}
|
|
56
|
-
TypeComposer.defineElement(PopUpButton.TAG, PopUpButton);
|
|
57
|
-
//# sourceMappingURL=PopUpButton.js.map
|
|
1
|
+
import{Component,DivElement}from"../..";export class PopUpButton extends Component{static TAG="tc-pop-up-button";#t;#n;#o;constructor(t){super(t),this.#n=t.buttonIcon,this.#t=t.options,this.addClassName("pop-up-button"),this.#o=new DivElement({text:t.buttonText,className:"button",style:{background:`url("${this.icon}") no-repeat center center / contain`,backgroundSize:"contain"}}),this.#o.onclick=()=>{this.#o.classList.toggle("pressed"),this.onChange()};const n=new DivElement({className:"options-container"});for(const o of this.options)n.append(o),null!=t.hover&&1!=t.hover||o.classList.add("option"),o.addEventListener("click",()=>this.onSelect(o));this.append(this.#o,n),document.addEventListener("click",t=>{t.target!=this.#o&&this.#o.classList.remove("pressed")})}get icon(){return this.#n}set icon(t){this.#n=t,this.#o.style.background=`url("${this.buttonIcon}") no-repeat center center / contain`}get buttonIcon(){return this.#o}get options(){return this.#t}set options(t){this.#t=t}onChange=()=>{};onSelect=()=>{}}TypeComposer.defineElement(PopUpButton.TAG,PopUpButton);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopUpButton.js","sourceRoot":"","sources":["../../../src/core/components/PopUpButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"PopUpButton.js","sourceRoot":"","sources":["../../../src/core/components/PopUpButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAe,MAAM,OAAO,CAAC;AAE3D,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC,MAAM,CAAU,GAAG,GAAW,kBAAkB,CAAC;IACjD,QAAQ,CAAgB;IACxB,WAAW,CAAS;IACpB,UAAU,CAAa;IAEvB,YAAY,KAA0G;QACpH,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,UAAU,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC;YAC/B,IAAI,EAAE,KAAK,CAAC,UAAU;YACtB,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE;gBACL,UAAU,EAAE,QAAQ,IAAI,CAAC,IAAI,uCA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CAAC;IACpG,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IACD,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,OAAO,CAAC,KAAoB;QAC9B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;IAED,QAAQ,GAAe,GAAG,EAAE,GAAG,CAAC,CAAC;IAEjC,QAAQ,GAAyB,GAAG,EAAE,GAAG,CAAC,CAAC;;AAG7C,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ElementType, Component } from "../..";
|
|
2
2
|
export declare class ScrollPanel extends Component {
|
|
3
3
|
static readonly TAG: string;
|
|
4
4
|
private _container;
|
|
5
|
-
constructor(props?:
|
|
5
|
+
constructor(props?: ElementType & {
|
|
6
6
|
variant?: "default" | string;
|
|
7
7
|
orientation?: "vertical" | "horizontal" | "both";
|
|
8
8
|
});
|
|
@@ -1,35 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export class ScrollPanel extends Component {
|
|
3
|
-
static TAG = "tc-scroll-panel";
|
|
4
|
-
_container = new DivElement();
|
|
5
|
-
constructor(props) {
|
|
6
|
-
super(props);
|
|
7
|
-
if (props?.variant)
|
|
8
|
-
this.variant = props.variant;
|
|
9
|
-
this.addClassName("scroll-panel");
|
|
10
|
-
this._container.addClassName(`container-pane-${props?.orientation || "both"}`);
|
|
11
|
-
this.style.display = "flex";
|
|
12
|
-
this.style.overflow = "hidden";
|
|
13
|
-
this.style.position = "relative";
|
|
14
|
-
this.container.style.overflow = "auto";
|
|
15
|
-
this.container.style.flex = "1";
|
|
16
|
-
super.appendChild(this._container);
|
|
17
|
-
}
|
|
18
|
-
append(...nodes) {
|
|
19
|
-
this._container.append(...nodes);
|
|
20
|
-
}
|
|
21
|
-
appendChild(node) {
|
|
22
|
-
return this._container.appendChild(node);
|
|
23
|
-
}
|
|
24
|
-
remove() {
|
|
25
|
-
this._container.remove();
|
|
26
|
-
}
|
|
27
|
-
removeChild(node) {
|
|
28
|
-
return this._container.removeChild(node);
|
|
29
|
-
}
|
|
30
|
-
get container() {
|
|
31
|
-
return this._container;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
TypeComposer.defineElement(ScrollPanel.TAG, ScrollPanel);
|
|
35
|
-
//# sourceMappingURL=ScrollPanel.js.map
|
|
1
|
+
import{Component,DivElement}from"../..";export class ScrollPanel extends Component{static TAG="tc-scroll-panel";_container=new DivElement;constructor(e){super(e),e?.variant&&(this.variant=e.variant),this.addClassName("scroll-panel"),this._container.addClassName(`container-pane-${e?.orientation||"both"}`),this.style.display="flex",this.style.overflow="hidden",this.style.position="relative",this.container.style.overflow="auto",this.container.style.flex="1",super.appendChild(this._container)}append(...e){this._container.append(...e)}appendChild(e){return this._container.appendChild(e)}remove(){this._container.remove()}removeChild(e){return this._container.removeChild(e)}get container(){return this._container}}TypeComposer.defineElement(ScrollPanel.TAG,ScrollPanel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollPanel.js","sourceRoot":"","sources":["../../../src/core/components/ScrollPanel.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ScrollPanel.js","sourceRoot":"","sources":["../../../src/core/components/ScrollPanel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEhE,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC,MAAM,CAAU,GAAG,GAAW,iBAAiB,CAAC;IACxC,UAAU,GAAgB,IAAI,UAAU,EAAE,CAAC;IAEnD,YACE,KAGC;QAED,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,KAAK,EAAE,OAAO;YAAE,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QACjD,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;QAClC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,kBAAkB,KAAK,EAAE,WAAW,IAAI,MAAM,EAAE,CAAC,CAAC;QAC/E,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;QAC5B,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC/B,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC;QACvC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC;QAChC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,GAAG,KAAwB;QAChC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC;IACnC,CAAC;IAED,WAAW,CAAiB,IAAO;QACjC,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED,MAAM;QACJ,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;IAC3B,CAAC;IAED,WAAW,CAAiB,IAAO;QACjC,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;;AAEH,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, ElementType, UListElement } from "..";
|
|
2
2
|
export declare class SliderPanel extends Component {
|
|
3
3
|
static readonly TAG: string;
|
|
4
4
|
readonly slider: UListElement;
|
|
5
|
-
constructor(props?:
|
|
5
|
+
constructor(props?: ElementType);
|
|
6
6
|
onInit(): void;
|
|
7
7
|
}
|