@3t-transform/threeteeui 0.0.10 → 0.0.12
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/dist/cjs/{index-8a4cb9bc.js → index-61cd741f.js} +43 -88
- package/dist/cjs/loader.cjs.js +3 -4
- package/dist/cjs/tttx-button.cjs.entry.js +2 -2
- package/dist/cjs/tttx-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/tttx-form.cjs.entry.js +169 -41
- package/dist/cjs/tttx-icon.cjs.entry.js +2 -2
- package/dist/cjs/tttx-list.cjs.entry.js +198 -0
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +4 -4
- package/dist/cjs/tttx-popover-content.cjs.entry.js +2 -2
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +134 -0
- package/dist/cjs/tttx.cjs.js +3 -7
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/atoms/tttx-button/tttx-button.css +1 -0
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +3 -3
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.css +3 -3
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +15 -15
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.css +1 -1
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +2 -2
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +1 -1
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.js +1 -1
- package/dist/collection/components/atoms/tttx-popover-content/tttx-popover-content.stories.js +3 -3
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.css +85 -39
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.js +1 -1
- package/dist/collection/components/atoms/ttx-checkbox/tttx-checkbox.stories.js +5 -5
- package/dist/collection/components/molecules/tttx-form/tttx-form.css +230 -0
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +195 -55
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +97 -28
- package/dist/collection/components/molecules/tttx-list/tttx-list.css +56 -0
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +311 -0
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +37 -0
- package/dist/collection/components/molecules/{tttx-input/tttx-input.css → tttx-standalone-input/tttx-standalone-input.css} +77 -49
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +561 -0
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +156 -0
- package/dist/collection/components/palette.stories.js +81 -81
- package/dist/collection/docs/gettingstarted-developer.stories.js +4 -4
- package/dist/components/index.d.ts +2 -10
- package/dist/components/index.js +3 -2
- package/dist/components/tttx-button.js +1 -1
- package/dist/components/tttx-checkbox.js +2 -2
- package/dist/components/tttx-form.js +167 -39
- package/dist/components/tttx-icon2.js +1 -1
- package/dist/components/{tttx-input.d.ts → tttx-list.d.ts} +4 -4
- package/dist/components/tttx-list.js +225 -0
- package/dist/components/tttx-loading-spinner.js +1 -38
- package/dist/components/tttx-loading-spinner2.js +40 -0
- package/dist/components/tttx-popover-content.js +1 -1
- package/dist/components/tttx-standalone-input.d.ts +11 -0
- package/dist/components/tttx-standalone-input.js +178 -0
- package/dist/esm/{index-9654537d.js → index-d8718abe.js} +44 -88
- package/dist/esm/loader.js +3 -4
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/tttx-button.entry.js +2 -2
- package/dist/esm/tttx-checkbox.entry.js +3 -3
- package/dist/esm/tttx-form.entry.js +169 -41
- package/dist/esm/tttx-icon.entry.js +2 -2
- package/dist/esm/tttx-list.entry.js +194 -0
- package/dist/esm/tttx-loading-spinner.entry.js +4 -4
- package/dist/esm/tttx-popover-content.entry.js +2 -2
- package/dist/esm/tttx-standalone-input.entry.js +130 -0
- package/dist/esm/tttx.js +3 -4
- package/dist/tttx/p-1b6b4223.entry.js +1 -0
- package/dist/tttx/p-1ea7e424.entry.js +1 -0
- package/dist/tttx/{p-3cb692d6.entry.js → p-629411bc.entry.js} +1 -1
- package/dist/tttx/p-7d84c410.entry.js +1 -0
- package/dist/tttx/p-80bbe164.js +2 -0
- package/dist/tttx/{p-1884203f.entry.js → p-daa82b1b.entry.js} +1 -1
- package/dist/tttx/p-db1f56ba.entry.js +1 -0
- package/dist/tttx/p-dee50f14.entry.js +1 -0
- package/dist/tttx/{p-674e2f18.entry.js → p-e5c02c27.entry.js} +1 -1
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +14 -7
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +1 -8
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +51 -0
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +13 -0
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +38 -0
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +106 -0
- package/dist/types/components.d.ts +88 -39
- package/dist/types/stencil-public-runtime.d.ts +3 -59
- package/loader/index.d.ts +0 -9
- package/package.json +67 -65
- package/readme.md +89 -86
- package/dist/cjs/tttx-input.cjs.entry.js +0 -44
- package/dist/collection/components/molecules/tttx-input/tttx-input.js +0 -259
- package/dist/collection/components/molecules/tttx-input/tttx-input.stories.js +0 -106
- package/dist/components/tttx-input.js +0 -77
- package/dist/esm/tttx-input.entry.js +0 -40
- package/dist/tttx/p-317b13d3.entry.js +0 -1
- package/dist/tttx/p-3cd7ad04.entry.js +0 -1
- package/dist/tttx/p-b6cc2780.js +0 -2
- package/dist/tttx/p-f30a0e84.entry.js +0 -1
- package/dist/tttx/p-f4855113.entry.js +0 -1
- package/dist/types/components/molecules/tttx-input/tttx-input.d.ts +0 -20
- package/dist/types/components/molecules/tttx-input/tttx-input.stories.d.ts +0 -60
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
interface LoadEventOptions {
|
|
3
|
+
name: string;
|
|
4
|
+
items: object[];
|
|
5
|
+
lastPage: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface ActionSelectedEventOptions {
|
|
8
|
+
name: string;
|
|
9
|
+
eventName: string;
|
|
10
|
+
removeRows: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface GenericTemplateData {
|
|
13
|
+
text: string;
|
|
14
|
+
icon?: string;
|
|
15
|
+
iconColor?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class TttxList {
|
|
18
|
+
host: HTMLElement;
|
|
19
|
+
name: string;
|
|
20
|
+
selectable: boolean;
|
|
21
|
+
items: object[];
|
|
22
|
+
selectedIds: number[];
|
|
23
|
+
loading: boolean;
|
|
24
|
+
lastPage: boolean;
|
|
25
|
+
private template;
|
|
26
|
+
private scrollableParent;
|
|
27
|
+
private rowCount;
|
|
28
|
+
listLoadHandler(event: CustomEvent<LoadEventOptions>): void;
|
|
29
|
+
listPaginate: EventEmitter;
|
|
30
|
+
listPaginateHandler(): void;
|
|
31
|
+
listClearDataCacheHandler(event: CustomEvent): void;
|
|
32
|
+
listActionSelectedEventHandler(event: CustomEvent<ActionSelectedEventOptions>): void;
|
|
33
|
+
listSelectedEvent: EventEmitter;
|
|
34
|
+
removeSelectedRows(): void;
|
|
35
|
+
listItemClick: EventEmitter;
|
|
36
|
+
listItemClickHandler(itemData: object): void;
|
|
37
|
+
componentWillLoad(): void;
|
|
38
|
+
componentDidLoad(): void;
|
|
39
|
+
listItemContainer(): Element;
|
|
40
|
+
scrollHandler(): Promise<void>;
|
|
41
|
+
isScrollable(node: HTMLElement): boolean;
|
|
42
|
+
getScrollableParent(node: HTMLElement): any;
|
|
43
|
+
appendRowCheckbox(rowContainer: HTMLElement): void;
|
|
44
|
+
appendSeededTemplate(rowData: object, rowContainer: HTMLElement): void;
|
|
45
|
+
appendGenericTemplate(rowData: GenericTemplateData, rowContainer: HTMLElement): void;
|
|
46
|
+
row(rowData: object): HTMLDivElement;
|
|
47
|
+
renderRows(batchData: object[]): void;
|
|
48
|
+
loadIndicator(): any;
|
|
49
|
+
render(): any;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
export declare type DateSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
|
|
3
|
+
export declare type MonthSyntax = `${number}${number}${number}${number}-${number}${number}`;
|
|
4
|
+
export declare type WeekSyntax = `${number}${number}${number}${number}-W${number}${number}`;
|
|
5
|
+
export declare type TimeSyntax = `${number}${number}:${number}${number}`;
|
|
6
|
+
export declare type DateTimeLocalSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}T${number}${number}:${number}${number}`;
|
|
7
|
+
export declare type MinMaxDates = DateSyntax | MonthSyntax | WeekSyntax | TimeSyntax | DateTimeLocalSyntax;
|
|
8
|
+
export declare class TttxInput {
|
|
9
|
+
isfocused: boolean;
|
|
10
|
+
label: string;
|
|
11
|
+
valid: boolean;
|
|
12
|
+
showerrormsg: boolean;
|
|
13
|
+
errormsg: string;
|
|
14
|
+
iconleft: string;
|
|
15
|
+
iconright: string;
|
|
16
|
+
autocapitalize: string;
|
|
17
|
+
autocomplete: 'off' | 'on';
|
|
18
|
+
autofocus: boolean;
|
|
19
|
+
checked: boolean;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
max: MinMaxDates | number;
|
|
22
|
+
maxlength: string | number;
|
|
23
|
+
min: MinMaxDates | number;
|
|
24
|
+
minlength: string | number;
|
|
25
|
+
name: string;
|
|
26
|
+
pattern: string;
|
|
27
|
+
placeholder: string;
|
|
28
|
+
readonly: string | boolean;
|
|
29
|
+
required: boolean;
|
|
30
|
+
step: string | number;
|
|
31
|
+
type: string;
|
|
32
|
+
value: string | number;
|
|
33
|
+
valueChanged: EventEmitter<string>;
|
|
34
|
+
handleChange(event: Event | InputEvent): void;
|
|
35
|
+
handleFocus(): void;
|
|
36
|
+
handleBlur(): void;
|
|
37
|
+
render(): any;
|
|
38
|
+
}
|
package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
iconleft: {
|
|
6
|
+
options: string[];
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
iconright: {
|
|
12
|
+
options: string[];
|
|
13
|
+
control: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
label: {
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
errormsg: {
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
showerrormsg: {
|
|
28
|
+
control: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
checked: {
|
|
33
|
+
control: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
disabled: {
|
|
38
|
+
control: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
max: {
|
|
43
|
+
control: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
maxlength: {
|
|
48
|
+
control: {
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
min: {
|
|
53
|
+
control: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
minlength: {
|
|
58
|
+
control: {
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
name: {
|
|
63
|
+
control: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
pattern: {
|
|
68
|
+
control: {
|
|
69
|
+
type: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
placeholder: {
|
|
73
|
+
control: {
|
|
74
|
+
type: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
readonly: {
|
|
78
|
+
control: {
|
|
79
|
+
type: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
required: {
|
|
83
|
+
control: {
|
|
84
|
+
type: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
step: {
|
|
88
|
+
control: {
|
|
89
|
+
type: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
type: {
|
|
93
|
+
options: string[];
|
|
94
|
+
control: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
value: {
|
|
99
|
+
control: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export default _default;
|
|
106
|
+
export declare const InputField: any;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { MinMaxDates } from "./components/molecules/tttx-standalone-input/tttx-standalone-input";
|
|
8
9
|
export namespace Components {
|
|
9
10
|
interface TttxButton {
|
|
10
11
|
"buttonStyle": string;
|
|
@@ -16,25 +17,16 @@ export namespace Components {
|
|
|
16
17
|
"value": boolean;
|
|
17
18
|
}
|
|
18
19
|
interface TttxForm {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
20
|
+
"formschema": any;
|
|
21
|
+
"submitValue": any;
|
|
21
22
|
}
|
|
22
23
|
interface TttxIcon {
|
|
23
24
|
"colour": string;
|
|
24
25
|
"icon": string;
|
|
25
26
|
}
|
|
26
|
-
interface
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"iconright": string;
|
|
30
|
-
"label": string;
|
|
31
|
-
"pattern": string;
|
|
32
|
-
"placeholder": string;
|
|
33
|
-
"required": boolean;
|
|
34
|
-
"showerrormsg": boolean;
|
|
35
|
-
"type": string;
|
|
36
|
-
"valid": boolean;
|
|
37
|
-
"value": string;
|
|
27
|
+
interface TttxList {
|
|
28
|
+
"name": string;
|
|
29
|
+
"selectable": boolean;
|
|
38
30
|
}
|
|
39
31
|
interface TttxLoadingSpinner {
|
|
40
32
|
"loadingMessage": boolean;
|
|
@@ -46,6 +38,31 @@ export namespace Components {
|
|
|
46
38
|
"linkcontext": string;
|
|
47
39
|
"linktext": string;
|
|
48
40
|
}
|
|
41
|
+
interface TttxStandaloneInput {
|
|
42
|
+
"autocapitalize": string;
|
|
43
|
+
"autocomplete": 'off' | 'on';
|
|
44
|
+
"autofocus": boolean;
|
|
45
|
+
"checked": boolean;
|
|
46
|
+
"disabled": boolean;
|
|
47
|
+
"errormsg": string;
|
|
48
|
+
"iconleft": string;
|
|
49
|
+
"iconright": string;
|
|
50
|
+
"label": string;
|
|
51
|
+
"max": MinMaxDates | number;
|
|
52
|
+
"maxlength": string | number;
|
|
53
|
+
"min": MinMaxDates | number;
|
|
54
|
+
"minlength": string | number;
|
|
55
|
+
"name": string;
|
|
56
|
+
"pattern": string;
|
|
57
|
+
"placeholder": string;
|
|
58
|
+
"readonly": string | boolean;
|
|
59
|
+
"required": boolean;
|
|
60
|
+
"showerrormsg": boolean;
|
|
61
|
+
"step": string | number;
|
|
62
|
+
"type": string;
|
|
63
|
+
"valid": boolean;
|
|
64
|
+
"value": string | number;
|
|
65
|
+
}
|
|
49
66
|
}
|
|
50
67
|
export interface TttxButtonCustomEvent<T> extends CustomEvent<T> {
|
|
51
68
|
detail: T;
|
|
@@ -59,9 +76,13 @@ export interface TttxFormCustomEvent<T> extends CustomEvent<T> {
|
|
|
59
76
|
detail: T;
|
|
60
77
|
target: HTMLTttxFormElement;
|
|
61
78
|
}
|
|
62
|
-
export interface
|
|
79
|
+
export interface TttxListCustomEvent<T> extends CustomEvent<T> {
|
|
80
|
+
detail: T;
|
|
81
|
+
target: HTMLTttxListElement;
|
|
82
|
+
}
|
|
83
|
+
export interface TttxStandaloneInputCustomEvent<T> extends CustomEvent<T> {
|
|
63
84
|
detail: T;
|
|
64
|
-
target:
|
|
85
|
+
target: HTMLTttxStandaloneInputElement;
|
|
65
86
|
}
|
|
66
87
|
declare global {
|
|
67
88
|
interface HTMLTttxButtonElement extends Components.TttxButton, HTMLStencilElement {
|
|
@@ -88,11 +109,11 @@ declare global {
|
|
|
88
109
|
prototype: HTMLTttxIconElement;
|
|
89
110
|
new (): HTMLTttxIconElement;
|
|
90
111
|
};
|
|
91
|
-
interface
|
|
112
|
+
interface HTMLTttxListElement extends Components.TttxList, HTMLStencilElement {
|
|
92
113
|
}
|
|
93
|
-
var
|
|
94
|
-
prototype:
|
|
95
|
-
new ():
|
|
114
|
+
var HTMLTttxListElement: {
|
|
115
|
+
prototype: HTMLTttxListElement;
|
|
116
|
+
new (): HTMLTttxListElement;
|
|
96
117
|
};
|
|
97
118
|
interface HTMLTttxLoadingSpinnerElement extends Components.TttxLoadingSpinner, HTMLStencilElement {
|
|
98
119
|
}
|
|
@@ -106,14 +127,21 @@ declare global {
|
|
|
106
127
|
prototype: HTMLTttxPopoverContentElement;
|
|
107
128
|
new (): HTMLTttxPopoverContentElement;
|
|
108
129
|
};
|
|
130
|
+
interface HTMLTttxStandaloneInputElement extends Components.TttxStandaloneInput, HTMLStencilElement {
|
|
131
|
+
}
|
|
132
|
+
var HTMLTttxStandaloneInputElement: {
|
|
133
|
+
prototype: HTMLTttxStandaloneInputElement;
|
|
134
|
+
new (): HTMLTttxStandaloneInputElement;
|
|
135
|
+
};
|
|
109
136
|
interface HTMLElementTagNameMap {
|
|
110
137
|
"tttx-button": HTMLTttxButtonElement;
|
|
111
138
|
"tttx-checkbox": HTMLTttxCheckboxElement;
|
|
112
139
|
"tttx-form": HTMLTttxFormElement;
|
|
113
140
|
"tttx-icon": HTMLTttxIconElement;
|
|
114
|
-
"tttx-
|
|
141
|
+
"tttx-list": HTMLTttxListElement;
|
|
115
142
|
"tttx-loading-spinner": HTMLTttxLoadingSpinnerElement;
|
|
116
143
|
"tttx-popover-content": HTMLTttxPopoverContentElement;
|
|
144
|
+
"tttx-standalone-input": HTMLTttxStandaloneInputElement;
|
|
117
145
|
}
|
|
118
146
|
}
|
|
119
147
|
declare namespace LocalJSX {
|
|
@@ -129,27 +157,20 @@ declare namespace LocalJSX {
|
|
|
129
157
|
"value"?: boolean;
|
|
130
158
|
}
|
|
131
159
|
interface TttxForm {
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
160
|
+
"formschema"?: any;
|
|
161
|
+
"onSubmitEvent"?: (event: TttxFormCustomEvent<FormData>) => void;
|
|
162
|
+
"submitValue"?: any;
|
|
135
163
|
}
|
|
136
164
|
interface TttxIcon {
|
|
137
165
|
"colour"?: string;
|
|
138
166
|
"icon"?: string;
|
|
139
167
|
}
|
|
140
|
-
interface
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"pattern"?: string;
|
|
147
|
-
"placeholder"?: string;
|
|
148
|
-
"required"?: boolean;
|
|
149
|
-
"showerrormsg"?: boolean;
|
|
150
|
-
"type"?: string;
|
|
151
|
-
"valid"?: boolean;
|
|
152
|
-
"value"?: string;
|
|
168
|
+
interface TttxList {
|
|
169
|
+
"name"?: string;
|
|
170
|
+
"onListItemClick"?: (event: TttxListCustomEvent<any>) => void;
|
|
171
|
+
"onListPaginate"?: (event: TttxListCustomEvent<any>) => void;
|
|
172
|
+
"onListSelectedEvent"?: (event: TttxListCustomEvent<any>) => void;
|
|
173
|
+
"selectable"?: boolean;
|
|
153
174
|
}
|
|
154
175
|
interface TttxLoadingSpinner {
|
|
155
176
|
"loadingMessage"?: boolean;
|
|
@@ -161,14 +182,41 @@ declare namespace LocalJSX {
|
|
|
161
182
|
"linkcontext"?: string;
|
|
162
183
|
"linktext"?: string;
|
|
163
184
|
}
|
|
185
|
+
interface TttxStandaloneInput {
|
|
186
|
+
"autocapitalize"?: string;
|
|
187
|
+
"autocomplete"?: 'off' | 'on';
|
|
188
|
+
"autofocus"?: boolean;
|
|
189
|
+
"checked"?: boolean;
|
|
190
|
+
"disabled"?: boolean;
|
|
191
|
+
"errormsg"?: string;
|
|
192
|
+
"iconleft"?: string;
|
|
193
|
+
"iconright"?: string;
|
|
194
|
+
"label"?: string;
|
|
195
|
+
"max"?: MinMaxDates | number;
|
|
196
|
+
"maxlength"?: string | number;
|
|
197
|
+
"min"?: MinMaxDates | number;
|
|
198
|
+
"minlength"?: string | number;
|
|
199
|
+
"name"?: string;
|
|
200
|
+
"onValueChanged"?: (event: TttxStandaloneInputCustomEvent<string>) => void;
|
|
201
|
+
"pattern"?: string;
|
|
202
|
+
"placeholder"?: string;
|
|
203
|
+
"readonly"?: string | boolean;
|
|
204
|
+
"required"?: boolean;
|
|
205
|
+
"showerrormsg"?: boolean;
|
|
206
|
+
"step"?: string | number;
|
|
207
|
+
"type"?: string;
|
|
208
|
+
"valid"?: boolean;
|
|
209
|
+
"value"?: string | number;
|
|
210
|
+
}
|
|
164
211
|
interface IntrinsicElements {
|
|
165
212
|
"tttx-button": TttxButton;
|
|
166
213
|
"tttx-checkbox": TttxCheckbox;
|
|
167
214
|
"tttx-form": TttxForm;
|
|
168
215
|
"tttx-icon": TttxIcon;
|
|
169
|
-
"tttx-
|
|
216
|
+
"tttx-list": TttxList;
|
|
170
217
|
"tttx-loading-spinner": TttxLoadingSpinner;
|
|
171
218
|
"tttx-popover-content": TttxPopoverContent;
|
|
219
|
+
"tttx-standalone-input": TttxStandaloneInput;
|
|
172
220
|
}
|
|
173
221
|
}
|
|
174
222
|
export { LocalJSX as JSX };
|
|
@@ -179,9 +227,10 @@ declare module "@stencil/core" {
|
|
|
179
227
|
"tttx-checkbox": LocalJSX.TttxCheckbox & JSXBase.HTMLAttributes<HTMLTttxCheckboxElement>;
|
|
180
228
|
"tttx-form": LocalJSX.TttxForm & JSXBase.HTMLAttributes<HTMLTttxFormElement>;
|
|
181
229
|
"tttx-icon": LocalJSX.TttxIcon & JSXBase.HTMLAttributes<HTMLTttxIconElement>;
|
|
182
|
-
"tttx-
|
|
230
|
+
"tttx-list": LocalJSX.TttxList & JSXBase.HTMLAttributes<HTMLTttxListElement>;
|
|
183
231
|
"tttx-loading-spinner": LocalJSX.TttxLoadingSpinner & JSXBase.HTMLAttributes<HTMLTttxLoadingSpinnerElement>;
|
|
184
232
|
"tttx-popover-content": LocalJSX.TttxPopoverContent & JSXBase.HTMLAttributes<HTMLTttxPopoverContentElement>;
|
|
233
|
+
"tttx-standalone-input": LocalJSX.TttxStandaloneInput & JSXBase.HTMLAttributes<HTMLTttxStandaloneInputElement>;
|
|
185
234
|
}
|
|
186
235
|
}
|
|
187
236
|
}
|
|
@@ -133,7 +133,7 @@ export interface ListenOptions {
|
|
|
133
133
|
*/
|
|
134
134
|
passive?: boolean;
|
|
135
135
|
}
|
|
136
|
-
export type ListenTargetOptions = 'body' | 'document' | 'window';
|
|
136
|
+
export declare type ListenTargetOptions = 'body' | 'document' | 'window';
|
|
137
137
|
export interface StateDecorator {
|
|
138
138
|
(): PropertyDecorator;
|
|
139
139
|
}
|
|
@@ -214,8 +214,8 @@ export declare const State: StateDecorator;
|
|
|
214
214
|
* https://stenciljs.com/docs/reactive-data#watch-decorator
|
|
215
215
|
*/
|
|
216
216
|
export declare const Watch: WatchDecorator;
|
|
217
|
-
export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
|
|
218
|
-
export type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
217
|
+
export declare type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
|
|
218
|
+
export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
219
219
|
/**
|
|
220
220
|
* `setMode()` is used for libraries which provide multiple "modes" for styles.
|
|
221
221
|
*/
|
|
@@ -257,15 +257,6 @@ export declare function getAssetPath(path: string): string;
|
|
|
257
257
|
* @returns the set path
|
|
258
258
|
*/
|
|
259
259
|
export declare function setAssetPath(path: string): string;
|
|
260
|
-
/**
|
|
261
|
-
* Used to specify a nonce value that corresponds with an application's
|
|
262
|
-
* [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
|
|
263
|
-
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
264
|
-
* Alternatively, the nonce value can be set on a `meta` tag in the DOM head
|
|
265
|
-
* (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
|
|
266
|
-
* @param nonce The value to be used for the nonce attribute.
|
|
267
|
-
*/
|
|
268
|
-
export declare function setNonce(nonce: string): void;
|
|
269
260
|
/**
|
|
270
261
|
* Retrieve a Stencil element for a given reference
|
|
271
262
|
* @param ref the ref to get the Stencil element for
|
|
@@ -442,57 +433,13 @@ interface HostAttributes {
|
|
|
442
433
|
ref?: (el: HTMLElement | null) => void;
|
|
443
434
|
[prop: string]: any;
|
|
444
435
|
}
|
|
445
|
-
/**
|
|
446
|
-
* Utilities for working with functional Stencil components. An object
|
|
447
|
-
* conforming to this interface is passed by the Stencil runtime as the third
|
|
448
|
-
* argument to a functional component, allowing component authors to work with
|
|
449
|
-
* features like children.
|
|
450
|
-
*
|
|
451
|
-
* The children of a functional component will be passed as the second
|
|
452
|
-
* argument, so a functional component which uses these utils to transform its
|
|
453
|
-
* children might look like the following:
|
|
454
|
-
*
|
|
455
|
-
* ```ts
|
|
456
|
-
* export const AddClass: FunctionalComponent = (_, children, utils) => (
|
|
457
|
-
* utils.map(children, child => ({
|
|
458
|
-
* ...child,
|
|
459
|
-
* vattrs: {
|
|
460
|
-
* ...child.vattrs,
|
|
461
|
-
* class: `${child.vattrs.class} add-class`
|
|
462
|
-
* }
|
|
463
|
-
* }))
|
|
464
|
-
* );
|
|
465
|
-
* ```
|
|
466
|
-
*
|
|
467
|
-
* For more see the Stencil documentation, here:
|
|
468
|
-
* https://stenciljs.com/docs/functional-components
|
|
469
|
-
*/
|
|
470
436
|
export interface FunctionalUtilities {
|
|
471
|
-
/**
|
|
472
|
-
* Utility for reading the children of a functional component at runtime.
|
|
473
|
-
* Since the Stencil runtime uses a different interface for children it is
|
|
474
|
-
* not recommendeded to read the children directly, and is preferable to use
|
|
475
|
-
* this utility to, for instance, perform a side effect for each child.
|
|
476
|
-
*/
|
|
477
437
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
478
|
-
/**
|
|
479
|
-
* Utility for transforming the children of a functional component. Given an
|
|
480
|
-
* array of children and a callback this will return a list of the results of
|
|
481
|
-
* passing each child to the supplied callback.
|
|
482
|
-
*/
|
|
483
438
|
map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
|
|
484
439
|
}
|
|
485
440
|
export interface FunctionalComponent<T = {}> {
|
|
486
441
|
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
|
|
487
442
|
}
|
|
488
|
-
/**
|
|
489
|
-
* A Child VDOM node
|
|
490
|
-
*
|
|
491
|
-
* This has most of the same properties as {@link VNode} but friendlier names
|
|
492
|
-
* (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
|
|
493
|
-
* order to provide a friendlier public interface for users of the
|
|
494
|
-
* {@link FunctionalUtilities}).
|
|
495
|
-
*/
|
|
496
443
|
export interface ChildNode {
|
|
497
444
|
vtag?: string | number | Function;
|
|
498
445
|
vkey?: string | number;
|
|
@@ -539,9 +486,6 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
|
|
|
539
486
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
540
487
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
541
488
|
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
542
|
-
/**
|
|
543
|
-
* A virtual DOM node
|
|
544
|
-
*/
|
|
545
489
|
export interface VNode {
|
|
546
490
|
$flags$: number;
|
|
547
491
|
$tag$: string | number | Function;
|
package/loader/index.d.ts
CHANGED
|
@@ -10,12 +10,3 @@ export interface CustomElementsDefineOptions {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
12
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
16
|
-
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
17
|
-
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
18
|
-
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
19
|
-
* will result in the same behavior.
|
|
20
|
-
*/
|
|
21
|
-
export declare function setNonce(nonce: string): void;
|
package/package.json
CHANGED
|
@@ -1,67 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
2
|
+
"name": "@3t-transform/threeteeui",
|
|
3
|
+
"version": "0.0.12",
|
|
4
|
+
"description": "3t Design System",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"es2015": "dist/esm/index.mjs",
|
|
8
|
+
"es2017": "dist/esm/index.mjs",
|
|
9
|
+
"types": "dist/types/index.d.ts",
|
|
10
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
11
|
+
"collection:main": "dist/collection/index.js",
|
|
12
|
+
"unpkg": "dist/3tui/3tui.esm.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/",
|
|
15
|
+
"loader/"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "stencil build --docs",
|
|
19
|
+
"start": "stencil build --watch --serve",
|
|
20
|
+
"test": "stencil test --spec --e2e",
|
|
21
|
+
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
22
|
+
"generate": "stencil generate",
|
|
23
|
+
"storybook": "storybook dev -p 6006",
|
|
24
|
+
"build-storybook": "storybook build",
|
|
25
|
+
"chromatic": "npx chromatic --project-token=531b962b0be5 --exit-zero-on-changes --exit-once-uploaded",
|
|
26
|
+
"lint:generate": "eslint --ext .tsx -o output.eslint.json -f json"
|
|
27
|
+
},
|
|
28
|
+
"resolutions": {
|
|
29
|
+
"@types/babel__traverse": "7.0.6"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@babel/core": "^7.18.10",
|
|
33
|
+
"@babel/preset-env": "^7.21.4",
|
|
34
|
+
"@mdx-js/react": "^2.1.5",
|
|
35
|
+
"@rollup/plugin-commonjs": "^23.0.3",
|
|
36
|
+
"@stencil/core": "^2.20.0",
|
|
37
|
+
"@stencil/sass": "^1.5.2",
|
|
38
|
+
"@storybook/addon-actions": "^7.0.6",
|
|
39
|
+
"@storybook/addon-essentials": "^7.0.6",
|
|
40
|
+
"@storybook/addon-interactions": "^7.0.6",
|
|
41
|
+
"@storybook/addon-links": "^7.0.6",
|
|
42
|
+
"@storybook/addon-mdx-gfm": "^7.0.6",
|
|
43
|
+
"@storybook/html": "^7.0.6",
|
|
44
|
+
"@storybook/html-webpack5": "^7.0.6",
|
|
45
|
+
"@storybook/testing-library": "^0.1.0",
|
|
46
|
+
"@storybook/web-components": "^7.0.6",
|
|
47
|
+
"@types/jest": "^27.0.3",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
49
|
+
"@typescript-eslint/parser": "^5.59.0",
|
|
50
|
+
"chromatic": "^6.7.4",
|
|
51
|
+
"eslint": "^8.38.0",
|
|
52
|
+
"jest": "^27.4.5",
|
|
53
|
+
"jest-cli": "^27.4.5",
|
|
54
|
+
"less": "^4.1.3",
|
|
55
|
+
"lit": "^2.7.3",
|
|
56
|
+
"lit-html": "^2.7.0",
|
|
57
|
+
"puppeteer": "^10.0.0",
|
|
58
|
+
"react": "^18.2.0",
|
|
59
|
+
"react-dom": "^18.2.0",
|
|
60
|
+
"sass": "^1.56.1",
|
|
61
|
+
"typescript": "^5.0.4"
|
|
62
|
+
},
|
|
63
|
+
"license": "UNLICENSED",
|
|
64
|
+
"readme": "ERROR: No README data found!",
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"@popperjs/core": "^2.11.7",
|
|
67
|
+
"storybook": "^7.0.6"
|
|
68
|
+
}
|
|
67
69
|
}
|