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
package/typings/index.d.ts
CHANGED
|
@@ -51,16 +51,14 @@ interface StylePropertiesMethods {
|
|
|
51
51
|
hasOwnProperty(key: string): boolean;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
55
54
|
declare global {
|
|
56
|
-
|
|
57
55
|
const TypeComposer: {
|
|
58
|
-
createElement: (tag: (props: T) => any, props: { T
|
|
56
|
+
createElement: (tag: (props: T) => any, props: { T; test: string }, ...children: any[]) => any;
|
|
59
57
|
createFragment: (...children: any[]) => DocumentFragment;
|
|
60
58
|
defineElement(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
|
|
59
|
+
deepCopy: <T>(value: T) => T;
|
|
61
60
|
Fragment: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
61
|
+
};
|
|
64
62
|
|
|
65
63
|
type TypeComposer = typeof TypeComposer;
|
|
66
64
|
|
|
@@ -138,8 +136,6 @@ declare global {
|
|
|
138
136
|
onwheel?: (event: WheelEvent) => void;
|
|
139
137
|
}
|
|
140
138
|
|
|
141
|
-
|
|
142
|
-
|
|
143
139
|
function forEach<T = any>(items: refList<T>, callbackfn: (value: T, index: number) => HTMLElement): HTMLFragment;
|
|
144
140
|
|
|
145
141
|
interface Fragment {
|
|
@@ -147,7 +143,6 @@ declare global {
|
|
|
147
143
|
public static condition(condition: () => any, references: any[]): HTMLElement;
|
|
148
144
|
}
|
|
149
145
|
|
|
150
|
-
|
|
151
146
|
//interface Component<P = {}, S = {}, SS = any> { }
|
|
152
147
|
//class Component<P, S> {
|
|
153
148
|
|
|
@@ -155,79 +150,72 @@ declare global {
|
|
|
155
150
|
|
|
156
151
|
type JSXElementConstructor<P> =
|
|
157
152
|
| ((
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
153
|
+
props: P,
|
|
154
|
+
/**
|
|
155
|
+
* @deprecated
|
|
156
|
+
*
|
|
157
|
+
* @see {@link https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-stateless-function-components React Docs}
|
|
158
|
+
*/
|
|
159
|
+
deprecatedLegacyContext?: any
|
|
160
|
+
) => ReactNode)
|
|
166
161
|
| (new (
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
interface TypecomposerElement<
|
|
177
|
-
P = any,
|
|
178
|
-
T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>,
|
|
179
|
-
> {
|
|
162
|
+
props: P,
|
|
163
|
+
/**
|
|
164
|
+
* @deprecated
|
|
165
|
+
*
|
|
166
|
+
* @see {@link https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods React Docs}
|
|
167
|
+
*/
|
|
168
|
+
deprecatedLegacyContext?: any
|
|
169
|
+
) => Component<any, any>);
|
|
170
|
+
|
|
171
|
+
interface TypecomposerElement<P = any, T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>> {
|
|
180
172
|
type: T;
|
|
181
173
|
props: P;
|
|
182
174
|
key: string | null;
|
|
183
175
|
}
|
|
184
176
|
|
|
185
177
|
namespace JSX {
|
|
186
|
-
|
|
187
178
|
type Element = HTMLElement;
|
|
188
179
|
|
|
189
|
-
|
|
190
|
-
interface Component extends TypecomposerElement<any, any> { }
|
|
180
|
+
interface Component extends TypecomposerElement<any, any> {}
|
|
191
181
|
|
|
192
182
|
interface IntrinsicElements {
|
|
193
183
|
[elemName: string]: HTMLComponent;
|
|
194
184
|
fragment: { [elemName: string]: HTMLComponent };
|
|
195
185
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
186
|
}
|
|
199
187
|
|
|
200
|
-
type CSSStyleDeclarationRef = StyleProperties &
|
|
201
|
-
|
|
202
|
-
|
|
188
|
+
type CSSStyleDeclarationRef = StyleProperties &
|
|
189
|
+
StylePropertiesMethods & {
|
|
190
|
+
readonly parentElement: HTMLElement;
|
|
191
|
+
};
|
|
203
192
|
|
|
204
193
|
var CSSStyleDeclarationRef: {
|
|
205
194
|
prototype: CSSStyleDeclarationRef;
|
|
206
|
-
new(): CSSStyleDeclarationRef;
|
|
195
|
+
new (): CSSStyleDeclarationRef;
|
|
207
196
|
};
|
|
208
197
|
|
|
209
198
|
interface CSSStyleDeclaration {
|
|
210
199
|
parentElement: HTMLElement;
|
|
211
200
|
}
|
|
212
201
|
|
|
213
|
-
interface ComponentEvent extends Event {
|
|
214
|
-
|
|
202
|
+
interface ComponentEvent extends Event {}
|
|
215
203
|
|
|
216
204
|
interface RouterEvent extends ComponentEvent {
|
|
217
|
-
payload: Error
|
|
218
|
-
url: string
|
|
205
|
+
payload: Error;
|
|
206
|
+
url: string;
|
|
219
207
|
}
|
|
220
208
|
|
|
221
209
|
interface ComponentEventMap {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
210
|
+
"router:beforeLeave": RouterEvent;
|
|
211
|
+
"router:beforeEnter": RouterEvent;
|
|
212
|
+
"router:beforeUpdate": RouterEvent;
|
|
213
|
+
"router:watch": RouterEvent;
|
|
214
|
+
}
|
|
227
215
|
|
|
228
216
|
interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
|
|
229
|
-
|
|
230
|
-
|
|
217
|
+
onConnected: ComponentEvent;
|
|
218
|
+
onDisconnected: ComponentEvent;
|
|
231
219
|
}
|
|
232
220
|
|
|
233
221
|
interface SVGElement {
|
|
@@ -235,7 +223,6 @@ declare global {
|
|
|
235
223
|
src?: string;
|
|
236
224
|
}
|
|
237
225
|
|
|
238
|
-
|
|
239
226
|
interface Array<T> {
|
|
240
227
|
clear(): void;
|
|
241
228
|
}
|
|
@@ -253,6 +240,15 @@ declare global {
|
|
|
253
240
|
setTheme(theme: string): void;
|
|
254
241
|
}
|
|
255
242
|
|
|
243
|
+
interface ExtendedStyleToken {
|
|
244
|
+
add(tag: string): void;
|
|
245
|
+
remove(tag: string): void;
|
|
246
|
+
has(tag: string): boolean;
|
|
247
|
+
toggle(tag: string): void;
|
|
248
|
+
clear(): void;
|
|
249
|
+
getReferences(): CustomElementConstructor[];
|
|
250
|
+
toString(): string;
|
|
251
|
+
}
|
|
256
252
|
|
|
257
253
|
interface Element {
|
|
258
254
|
innerHTML: refString | refNumber | IComponent;
|
|
@@ -263,6 +259,7 @@ declare global {
|
|
|
263
259
|
className: refString | string;
|
|
264
260
|
hidden: refBoolean | boolean;
|
|
265
261
|
key: string | symbol;
|
|
262
|
+
readonly extendedStyle: ExtendedStyleToken;
|
|
266
263
|
onInit(): void;
|
|
267
264
|
unmount(): void;
|
|
268
265
|
template(): HTMLElement;
|
|
@@ -281,7 +278,6 @@ declare global {
|
|
|
281
278
|
getParent<T extends Element = HTMLElement>(): T | null;
|
|
282
279
|
}
|
|
283
280
|
|
|
284
|
-
|
|
285
281
|
interface HTMLElement extends Element {
|
|
286
282
|
innerHTML: refString | refNumber | IComponent;
|
|
287
283
|
}
|
|
@@ -302,7 +298,7 @@ declare global {
|
|
|
302
298
|
type: "submit" | "reset" | "button" | "file";
|
|
303
299
|
accept: string;
|
|
304
300
|
multiple: refBoolean;
|
|
305
|
-
onfile: (file: FileList) =>
|
|
301
|
+
onfile: ((this: GlobalEventHandlers, file: FileList) => any) | null;
|
|
306
302
|
}
|
|
307
303
|
|
|
308
304
|
interface WeakRef<T> {
|
|
@@ -336,11 +332,11 @@ declare global {
|
|
|
336
332
|
toInt(radix?: number): number;
|
|
337
333
|
toDate(): Date;
|
|
338
334
|
}
|
|
339
|
-
interface Number extends BaseRef<number> {
|
|
340
|
-
interface Boolean extends BaseRef<boolean> {
|
|
341
|
-
interface Array<T> extends BaseRef<T[]> {
|
|
342
|
-
interface Map<K, V> extends BaseRef<Map<K, V>> {
|
|
343
|
-
interface Set<T> extends BaseRef<Set<T>> {
|
|
335
|
+
interface Number extends BaseRef<number> {}
|
|
336
|
+
interface Boolean extends BaseRef<boolean> {}
|
|
337
|
+
interface Array<T> extends BaseRef<T[]> {}
|
|
338
|
+
interface Map<K, V> extends BaseRef<Map<K, V>> {}
|
|
339
|
+
interface Set<T> extends BaseRef<Set<T>> {}
|
|
344
340
|
|
|
345
341
|
interface RequestInit {
|
|
346
342
|
/** A string to set request's priority. */
|
|
@@ -357,24 +353,20 @@ declare global {
|
|
|
357
353
|
const Fetch: {
|
|
358
354
|
defaultHeaders?: HeadersInit | (() => HeadersInit);
|
|
359
355
|
defaultCredentials?: RequestCredentials;
|
|
360
|
-
}
|
|
356
|
+
};
|
|
361
357
|
|
|
362
358
|
type Fetch = typeof Fetch;
|
|
363
|
-
|
|
364
359
|
}
|
|
365
360
|
|
|
366
361
|
// @data-start;
|
|
367
|
-
declare const Translation: {
|
|
368
|
-
|
|
369
|
-
};
|
|
362
|
+
declare const Translation: {};
|
|
370
363
|
|
|
371
364
|
type Translation = typeof Translation;
|
|
372
365
|
// @data-end;
|
|
373
366
|
|
|
374
|
-
declare module
|
|
375
|
-
const createSvgElement: (props:
|
|
367
|
+
declare module "*.svg" {
|
|
368
|
+
const createSvgElement: (props: ElementType) => SVGElement;
|
|
376
369
|
export default createSvgElement;
|
|
377
370
|
}
|
|
378
371
|
|
|
379
|
-
|
|
380
|
-
export { };
|
|
372
|
+
export {};
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Facebook, Inc. and its affiliates.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE
|
package/README.md
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# TypeComposer
|
|
2
|
-
|
|
3
|
-
TypeComposer is a frontend framework that allows you to create user interfaces declaratively using only classes in TypeScript or JavaScript, eliminating the need to write HTML directly.It offers a simplified and efficient approach to web development.
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- Create user interfaces without writing HTML directly.
|
|
8
|
-
|
|
9
|
-
- Uses a class-based syntax to define the structure of the interface.
|
|
10
|
-
- Full TypeScript support and compatibility with JavaScript.
|
|
11
|
-
- Easily integratable with other frontend frameworks and libraries.
|
|
12
|
-
- Style and positioning of elements controlled via CSS.
|
|
13
|
-
|
|
14
|
-
## Installation
|
|
15
|
-
|
|
16
|
-
You can install TypeComposer via npm:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
npm create typecomposer@latest
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Usage
|
|
23
|
-
|
|
24
|
-
To get started with TypeComposer, import the necessary elements from the package and start creating your user interface using classes.Here's a basic example of a login page:
|
|
25
|
-
|
|
26
|
-
```js
|
|
27
|
-
import typescriptLogo from "/typescript.svg";
|
|
28
|
-
import logo from "/typecomposer.svg";
|
|
29
|
-
import { App, BorderPaneElement, ButtonElement, H1Element, HBoxElement, ImageElement, VBoxElement } from "typecomposer";
|
|
30
|
-
import "./style.css";
|
|
31
|
-
|
|
32
|
-
export class AppPage extends BorderPaneElement {
|
|
33
|
-
private count: number = 0;
|
|
34
|
-
|
|
35
|
-
onInit(): void {
|
|
36
|
-
const vbox = new VBoxElement({ justifyContent: "center" });
|
|
37
|
-
const images = new HBoxElement({ width: "100%", alignItems: "center", justifyContent: "center" });
|
|
38
|
-
images.append(new ImageElement({ src: logo, className: "logo" }));
|
|
39
|
-
images.append(new ImageElement({ src: typescriptLogo, className: "logo" }));
|
|
40
|
-
vbox.append(images);
|
|
41
|
-
vbox.append(new H1Element({ text: "TypeComposer", textAlign: "center", color: "#fcfffa" }));
|
|
42
|
-
const counter = new ButtonElement({ text: "0", width: "35%", height: "50px", alignSelf: "center" });
|
|
43
|
-
counter.onclick = () => (counter.innerHTML = (this.count++).toString());
|
|
44
|
-
vbox.append(counter);
|
|
45
|
-
this.center = vbox;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
App.setPage(new AppPage());
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Contributing
|
|
53
|
-
|
|
54
|
-
Contributions are welcome! If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request in this GitHub repository.
|
|
55
|
-
|
|
56
|
-
## License
|
|
57
|
-
|
|
58
|
-
This project is licensed under the[MIT License](LICENSE).
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
```
|
package/core/app/Validate.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export declare const EVENTS: {
|
|
2
|
-
readonly BLUR: "blur";
|
|
3
|
-
readonly FOCUS_OUT: "focusout";
|
|
4
|
-
readonly CHANGE: "change";
|
|
5
|
-
};
|
|
6
|
-
export declare const VALIDATION_MODE: {
|
|
7
|
-
readonly onBlur: "onBlur";
|
|
8
|
-
readonly onChange: "onChange";
|
|
9
|
-
readonly onSubmit: "onSubmit";
|
|
10
|
-
readonly onTouched: "onTouched";
|
|
11
|
-
readonly all: "all";
|
|
12
|
-
};
|
|
13
|
-
export declare const INPUT_VALIDATION_RULES: {
|
|
14
|
-
readonly max: "max";
|
|
15
|
-
readonly min: "min";
|
|
16
|
-
readonly maxLength: "maxLength";
|
|
17
|
-
readonly minLength: "minLength";
|
|
18
|
-
readonly pattern: "pattern";
|
|
19
|
-
readonly required: "required";
|
|
20
|
-
readonly validate: "validate";
|
|
21
|
-
};
|
|
22
|
-
export type Message = string;
|
|
23
|
-
export type FieldValues = Record<string, any>;
|
|
24
|
-
export type NativeFieldValue = string | number | boolean | null | undefined | unknown[];
|
|
25
|
-
export type ValidationValue = boolean | number | string | RegExp;
|
|
26
|
-
export type ValidationRule<TValidationValue extends ValidationValue = ValidationValue> = TValidationValue | ValidationValueMessage<TValidationValue>;
|
|
27
|
-
export type ValidationValueMessage<TValidationValue extends ValidationValue = ValidationValue> = {
|
|
28
|
-
value: TValidationValue;
|
|
29
|
-
message: Message;
|
|
30
|
-
};
|
|
31
|
-
export type ValidateResult = Message | Message[] | boolean | undefined;
|
|
32
|
-
export type Validate<TFieldValue, TFormValues> = (value: TFieldValue, formValues: TFormValues) => ValidateResult | Promise<ValidateResult>;
|
|
33
|
-
export type RegisterOptions = Partial<{
|
|
34
|
-
required: Message | boolean;
|
|
35
|
-
min: number | string;
|
|
36
|
-
max: number | string;
|
|
37
|
-
maxLength: number;
|
|
38
|
-
minLength: number;
|
|
39
|
-
setValueAs: (value: any) => any;
|
|
40
|
-
shouldUnregister?: boolean;
|
|
41
|
-
onChange?: (event: any) => void;
|
|
42
|
-
onBlur?: (event: any) => void;
|
|
43
|
-
disabled: boolean;
|
|
44
|
-
pattern?: RegExp;
|
|
45
|
-
}> & ({
|
|
46
|
-
pattern?: RegExp;
|
|
47
|
-
valueAsNumber?: false;
|
|
48
|
-
valueAsDate?: false;
|
|
49
|
-
} | {
|
|
50
|
-
pattern?: undefined;
|
|
51
|
-
valueAsNumber?: false;
|
|
52
|
-
valueAsDate?: true;
|
|
53
|
-
} | {
|
|
54
|
-
pattern?: undefined;
|
|
55
|
-
valueAsNumber?: true;
|
|
56
|
-
valueAsDate?: false;
|
|
57
|
-
});
|
|
58
|
-
export type InputValidationRules = typeof INPUT_VALIDATION_RULES;
|
|
59
|
-
export type MaxType = InputValidationRules['max'] | InputValidationRules['maxLength'];
|
|
60
|
-
export type MinType = InputValidationRules['min'] | InputValidationRules['minLength'];
|
|
61
|
-
export {};
|
package/core/app/Validate.js
DELETED
package/core/app/Validate.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Validate.js","sourceRoot":"","sources":["../../../src/core/app/Validate.ts"],"names":[],"mappings":""}
|
package/core/app/index.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { Router } from "../..";
|
|
2
|
-
async function detectOS() {
|
|
3
|
-
let platform = "Other";
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
if (navigator?.userAgentData) {
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
const data = await navigator.userAgentData.getHighEntropyValues(["platform"]);
|
|
8
|
-
platform = data.platform;
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
const userAgent = navigator.userAgent.toLowerCase();
|
|
12
|
-
const platform = navigator.platform.toLowerCase();
|
|
13
|
-
if (userAgent.includes("win"))
|
|
14
|
-
return "Windows";
|
|
15
|
-
if (userAgent.includes("mac") || platform.includes("mac"))
|
|
16
|
-
return "macOS";
|
|
17
|
-
if (userAgent.includes("linux"))
|
|
18
|
-
return "Linux";
|
|
19
|
-
if (/android/.test(userAgent))
|
|
20
|
-
return "Android";
|
|
21
|
-
if (/iphone|ipad|ipod/.test(userAgent))
|
|
22
|
-
return "iOS";
|
|
23
|
-
}
|
|
24
|
-
return platform;
|
|
25
|
-
}
|
|
26
|
-
class __App__ {
|
|
27
|
-
translateData;
|
|
28
|
-
component = undefined;
|
|
29
|
-
#platform = undefined;
|
|
30
|
-
data = {
|
|
31
|
-
theme: document.documentElement["data-theme"],
|
|
32
|
-
language: document.documentElement.lang,
|
|
33
|
-
};
|
|
34
|
-
constructor() {
|
|
35
|
-
const store = localStorage.getItem("__app__");
|
|
36
|
-
if (store) {
|
|
37
|
-
this.data = JSON.parse(store);
|
|
38
|
-
this.data.language = this.data.language;
|
|
39
|
-
this.data.theme = this.data.theme || document.documentElement["data-theme"] || "light";
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
get theme() {
|
|
43
|
-
return this.data.theme;
|
|
44
|
-
}
|
|
45
|
-
set theme(value) {
|
|
46
|
-
this.data.theme = value;
|
|
47
|
-
const html = document.querySelector("html");
|
|
48
|
-
html?.setAttribute("data-theme", value);
|
|
49
|
-
localStorage.setItem("__app__", JSON.stringify(this.data));
|
|
50
|
-
}
|
|
51
|
-
set language(value) {
|
|
52
|
-
const isUpdate = this.data.language != value;
|
|
53
|
-
if (isUpdate) {
|
|
54
|
-
this.data.language = value;
|
|
55
|
-
localStorage.setItem("__app__", JSON.stringify(this.data));
|
|
56
|
-
Router.reload();
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
get language() {
|
|
60
|
-
return this.data.language;
|
|
61
|
-
}
|
|
62
|
-
setPage(page) {
|
|
63
|
-
if (this.component)
|
|
64
|
-
this.component.remove();
|
|
65
|
-
Array.from(document.body.querySelectorAll("[main-page]")).map((el) => el.remove());
|
|
66
|
-
document.body.querySelector;
|
|
67
|
-
const fragment = document.createDocumentFragment();
|
|
68
|
-
if (page)
|
|
69
|
-
page.setAttribute("main-page", "");
|
|
70
|
-
fragment.appendChild(page);
|
|
71
|
-
document.body.appendChild(fragment);
|
|
72
|
-
this.component = page;
|
|
73
|
-
return page;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Gets a reference to the root node of the document.
|
|
77
|
-
* @returns {HTMLElement} The root node of the document.
|
|
78
|
-
*/
|
|
79
|
-
get root() {
|
|
80
|
-
return document.documentElement;
|
|
81
|
-
}
|
|
82
|
-
get body() {
|
|
83
|
-
return document.body;
|
|
84
|
-
}
|
|
85
|
-
get head() {
|
|
86
|
-
return document.head;
|
|
87
|
-
}
|
|
88
|
-
get location() {
|
|
89
|
-
return window.location;
|
|
90
|
-
}
|
|
91
|
-
get title() {
|
|
92
|
-
return document.title;
|
|
93
|
-
}
|
|
94
|
-
set title(value) {
|
|
95
|
-
document.title = value;
|
|
96
|
-
}
|
|
97
|
-
setTitle(value) {
|
|
98
|
-
document.title = value;
|
|
99
|
-
}
|
|
100
|
-
get style() {
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
return document.documentElement.style;
|
|
103
|
-
}
|
|
104
|
-
set translate(value) {
|
|
105
|
-
this.translateData = value;
|
|
106
|
-
}
|
|
107
|
-
get translate() {
|
|
108
|
-
return this.translateData;
|
|
109
|
-
}
|
|
110
|
-
get platform() {
|
|
111
|
-
if (this.#platform)
|
|
112
|
-
return Promise.resolve(this.#platform);
|
|
113
|
-
return detectOS().then((platform) => {
|
|
114
|
-
this.#platform = platform;
|
|
115
|
-
return platform;
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
getCookie(nome) {
|
|
119
|
-
const cookies = "; " + document.cookie;
|
|
120
|
-
const partes = cookies.split("; " + nome + "=");
|
|
121
|
-
if (partes.length === 2) {
|
|
122
|
-
const value = partes.pop().split(";").shift();
|
|
123
|
-
try {
|
|
124
|
-
return JSON.parse(value);
|
|
125
|
-
}
|
|
126
|
-
catch (e) {
|
|
127
|
-
return value;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return null;
|
|
131
|
-
}
|
|
132
|
-
setCookie(nome, valor, dias) {
|
|
133
|
-
const data = new Date();
|
|
134
|
-
data.setTime(data.getTime() + dias * 24 * 60 * 60 * 1000);
|
|
135
|
-
if (typeof valor === "object")
|
|
136
|
-
valor = JSON.stringify(valor);
|
|
137
|
-
document.cookie = `${nome}=${valor}; expires=${data.toUTCString()}; path=/`;
|
|
138
|
-
}
|
|
139
|
-
removeCookie(nome) {
|
|
140
|
-
document.cookie = `${nome}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;
|
|
141
|
-
}
|
|
142
|
-
getLocalStorage(nome) {
|
|
143
|
-
return localStorage.getItem(nome);
|
|
144
|
-
}
|
|
145
|
-
setLocalStorage(nome, valor) {
|
|
146
|
-
localStorage.setItem(nome, valor);
|
|
147
|
-
}
|
|
148
|
-
removeLocalStorage(nome) {
|
|
149
|
-
localStorage.removeItem(nome);
|
|
150
|
-
}
|
|
151
|
-
requestFullscreen() {
|
|
152
|
-
if (document.documentElement.requestFullscreen) {
|
|
153
|
-
document.documentElement.requestFullscreen();
|
|
154
|
-
}
|
|
155
|
-
else if (document.documentElement["mozRequestFullScreen"]) {
|
|
156
|
-
document.documentElement["mozRequestFullScreen"]();
|
|
157
|
-
}
|
|
158
|
-
else if (document.documentElement["webkitRequestFullscreen"]) {
|
|
159
|
-
document.documentElement["webkitRequestFullscreen"]();
|
|
160
|
-
}
|
|
161
|
-
else if (document.documentElement["msRequestFullscreen"]) {
|
|
162
|
-
document.documentElement["msRequestFullscreen"]();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
exitFullscreen() {
|
|
166
|
-
if (document.exitFullscreen) {
|
|
167
|
-
document.exitFullscreen();
|
|
168
|
-
}
|
|
169
|
-
else if (document["mozCancelFullScreen"]) {
|
|
170
|
-
document["mozCancelFullScreen"]();
|
|
171
|
-
}
|
|
172
|
-
else if (document["webkitExitFullscreen"]) {
|
|
173
|
-
document["webkitExitFullscreen"]();
|
|
174
|
-
}
|
|
175
|
-
else if (document["msExitFullscreen"]) {
|
|
176
|
-
document["msExitFullscreen"]();
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
export const App = new __App__();
|
|
181
|
-
//# sourceMappingURL=index.js.map
|
package/core/app/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAM/B,KAAK,UAAU,QAAQ;IACrB,IAAI,QAAQ,GAAa,OAAO,CAAC;IACjC,aAAa;IACb,IAAI,SAAS,EAAE,aAAa,EAAE,CAAC;QAC7B,aAAa;QACb,MAAM,IAAI,GAAG,MA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AkB,CAAC,EAAE,CAAC;YACxC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACjC,CAAC;IACH,CAAC;CAEF;AAID,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,OAAO,EAAE,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ElementProps, Component, TableElement, TableElementProps } from "../..";
|
|
2
|
-
export declare class TablePagination extends Component {
|
|
3
|
-
static readonly TAG: string;
|
|
4
|
-
private totalItems;
|
|
5
|
-
private currentPage;
|
|
6
|
-
private rowsPerPage;
|
|
7
|
-
private pageInfoText;
|
|
8
|
-
private prevButton;
|
|
9
|
-
private nextButton;
|
|
10
|
-
private rowsSelect;
|
|
11
|
-
constructor(props?: ElementProps & {
|
|
12
|
-
totalItems?: number;
|
|
13
|
-
currentPage?: number;
|
|
14
|
-
rowsPerPage?: number;
|
|
15
|
-
options?: number[];
|
|
16
|
-
});
|
|
17
|
-
maxItems(value: number): void;
|
|
18
|
-
private onPrevClick;
|
|
19
|
-
private onNextClick;
|
|
20
|
-
private onRowsChange;
|
|
21
|
-
private updatePageInfo;
|
|
22
|
-
}
|
|
23
|
-
export declare class TablePanel<T = any> extends Component {
|
|
24
|
-
#private;
|
|
25
|
-
static readonly TAG: string;
|
|
26
|
-
readonly table: TableElement;
|
|
27
|
-
constructor(props?: ElementProps & {
|
|
28
|
-
tableProps?: TableElementProps;
|
|
29
|
-
stickyHeader?: boolean;
|
|
30
|
-
pagination?: boolean;
|
|
31
|
-
paginationProps?: ElementProps;
|
|
32
|
-
});
|
|
33
|
-
get pagination(): TablePagination | undefined;
|
|
34
|
-
}
|