@3t-transform/threeteeui 0.1.52 → 0.1.57
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/{domsanitiser.options-b2d88e35.js → domsanitiser.options-cd2932a9.js} +17 -17
- package/dist/cjs/tttx-button.cjs.entry.js +23 -23
- package/dist/cjs/tttx-dialog-box.cjs.entry.js +69 -69
- package/dist/cjs/tttx-filter.cjs.entry.js +182 -180
- package/dist/cjs/tttx-form.cjs.entry.js +457 -457
- package/dist/cjs/tttx-icon.cjs.entry.js +10 -10
- package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +58 -58
- package/dist/cjs/tttx-list.cjs.entry.js +31 -31
- package/dist/cjs/tttx-loading-spinner.cjs.entry.js +15 -15
- package/dist/cjs/tttx-qrcode.cjs.entry.js +27 -27
- package/dist/cjs/tttx-sorter.cjs.entry.js +107 -104
- package/dist/cjs/tttx-standalone-input.cjs.entry.js +78 -78
- package/dist/cjs/tttx-toolbar.cjs.entry.js +9 -9
- package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
- package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
- package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
- package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
- package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +81 -81
- package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +22 -22
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +172 -172
- package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +289 -289
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +416 -400
- package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +80 -80
- package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
- package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -61
- package/dist/collection/components/molecules/tttx-form/tttx-form.js +479 -479
- package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +272 -272
- package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
- package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +253 -236
- package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +759 -759
- package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +172 -172
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
- package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
- package/dist/collection/components/palette.stories.js +7 -7
- package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
- package/dist/collection/icons.js +2838 -2838
- package/dist/collection/index.js +1 -1
- package/dist/collection/shared/domsanitiser.options.js +14 -14
- package/dist/components/domsanitiser.options.js +17 -17
- package/dist/components/tttx-button2.js +48 -48
- package/dist/components/tttx-dialog-box.js +97 -97
- package/dist/components/tttx-filter.js +217 -215
- package/dist/components/tttx-form.js +475 -475
- package/dist/components/tttx-icon2.js +28 -28
- package/dist/components/tttx-keyvalue-block.js +76 -76
- package/dist/components/tttx-list.js +53 -53
- package/dist/components/tttx-loading-spinner.js +33 -33
- package/dist/components/tttx-qrcode.js +45 -45
- package/dist/components/tttx-sorter.js +136 -133
- package/dist/components/tttx-standalone-input.js +130 -130
- package/dist/components/tttx-toolbar.js +26 -26
- package/dist/esm/{domsanitiser.options-81611f82.js → domsanitiser.options-563c1cf3.js} +17 -17
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/tttx-button.entry.js +23 -23
- package/dist/esm/tttx-dialog-box.entry.js +69 -69
- package/dist/esm/tttx-filter.entry.js +182 -180
- package/dist/esm/tttx-form.entry.js +457 -457
- package/dist/esm/tttx-icon.entry.js +10 -10
- package/dist/esm/tttx-keyvalue-block.entry.js +58 -58
- package/dist/esm/tttx-list.entry.js +31 -31
- package/dist/esm/tttx-loading-spinner.entry.js +15 -15
- package/dist/esm/tttx-qrcode.entry.js +27 -27
- package/dist/esm/tttx-sorter.entry.js +107 -104
- package/dist/esm/tttx-standalone-input.entry.js +78 -78
- package/dist/esm/tttx-toolbar.entry.js +9 -9
- package/dist/tttx/p-225e6fa6.entry.js +1 -0
- package/dist/tttx/{p-bc3b9283.entry.js → p-58d7c978.entry.js} +1 -1
- package/dist/tttx/{p-c751ebc2.entry.js → p-8b511fff.entry.js} +1 -1
- package/dist/tttx/{p-6a6ff7b7.entry.js → p-909c090d.entry.js} +1 -1
- package/dist/tttx/p-a658e1ac.entry.js +1 -0
- package/dist/tttx/{p-0b25ac9c.js → p-d3835fde.js} +2 -2
- package/dist/tttx/tttx.esm.js +1 -1
- package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
- package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
- package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
- package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
- package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
- package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
- package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.d.ts +8 -8
- package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.stories.d.ts +23 -23
- package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.d.ts +18 -18
- package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.d.ts +24 -24
- package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +44 -43
- package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +76 -0
- package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
- package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
- package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +133 -133
- package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +278 -0
- package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
- package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -0
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +21 -20
- package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -0
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
- package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +143 -143
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
- package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
- package/dist/types/components/palette.stories.d.ts +6 -6
- package/dist/types/components.d.ts +2 -0
- package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
- package/dist/types/icons.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/shared/domsanitiser.options.d.ts +10 -10
- package/package.json +1 -1
- package/dist/tttx/p-3b29e8af.entry.js +0 -1
- package/dist/tttx/p-637e7e88.entry.js +0 -1
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
export type DateSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
|
|
3
|
-
export type MonthSyntax = `${number}${number}${number}${number}-${number}${number}`;
|
|
4
|
-
export type WeekSyntax = `${number}${number}${number}${number}-W${number}${number}`;
|
|
5
|
-
export type TimeSyntax = `${number}${number}:${number}${number}`;
|
|
6
|
-
export type DateTimeLocalSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}T${number}${number}:${number}${number}`;
|
|
7
|
-
export type MinMaxDates = DateSyntax | MonthSyntax | WeekSyntax | TimeSyntax | DateTimeLocalSyntax;
|
|
8
|
-
export declare class TttxInput {
|
|
9
|
-
label: string;
|
|
10
|
-
/**
|
|
11
|
-
* Footnote under the input field
|
|
12
|
-
*/
|
|
13
|
-
secondarylabel: string;
|
|
14
|
-
showerrormsg: boolean;
|
|
15
|
-
showerrorbubble: boolean;
|
|
16
|
-
errormsg: string;
|
|
17
|
-
iconleft: string;
|
|
18
|
-
iconleftcolor: string;
|
|
19
|
-
iconright: string;
|
|
20
|
-
iconrightcolor: string;
|
|
21
|
-
inputicon: string;
|
|
22
|
-
inputiconcolor: string;
|
|
23
|
-
inline: boolean;
|
|
24
|
-
inputautocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
25
|
-
inputautofocus: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Defines what action to present for the enter key on virtual keyboards
|
|
28
|
-
*/
|
|
29
|
-
inputkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
30
|
-
/**
|
|
31
|
-
* tabindex - Allows the HTML elements to be focusable
|
|
32
|
-
* @example <caption>In HTML (like `index.html`)</caption>
|
|
33
|
-
* <tttx-standalone-input input-index="1" />
|
|
34
|
-
* @example <caption>In TSX files</caption>
|
|
35
|
-
* <tttx-standalone-input inputindex={1} />
|
|
36
|
-
*/
|
|
37
|
-
inputindex: string | number;
|
|
38
|
-
inputtitle: string;
|
|
39
|
-
autocomplete: 'off' | 'on';
|
|
40
|
-
checked: boolean;
|
|
41
|
-
disabled: boolean;
|
|
42
|
-
max: MinMaxDates | number;
|
|
43
|
-
maxlength: string | number;
|
|
44
|
-
min: MinMaxDates | number;
|
|
45
|
-
minlength: string | number;
|
|
46
|
-
name: string;
|
|
47
|
-
pattern: string;
|
|
48
|
-
placeholder: string;
|
|
49
|
-
readonly: string | boolean;
|
|
50
|
-
required: boolean;
|
|
51
|
-
step: string | number;
|
|
52
|
-
type: string;
|
|
53
|
-
value: string | number;
|
|
54
|
-
valueChanged: EventEmitter<string>;
|
|
55
|
-
handleChange(event: Event | InputEvent): void;
|
|
56
|
-
focusChanged: EventEmitter<string>;
|
|
57
|
-
handleFocus(event: Event | InputEvent): void;
|
|
58
|
-
blurChanged: EventEmitter<string>;
|
|
59
|
-
handleBlur(event: Event | InputEvent): void;
|
|
60
|
-
invalidChanged: EventEmitter<string>;
|
|
61
|
-
handleInvalid(event: Event | InputEvent): void;
|
|
62
|
-
inputIconClick: EventEmitter<void>;
|
|
63
|
-
handleInputIconClick(event: PointerEvent): void;
|
|
64
|
-
leftIconClick: EventEmitter<void>;
|
|
65
|
-
handleLeftIconClick(event: PointerEvent): void;
|
|
66
|
-
rightIconClick: EventEmitter<void>;
|
|
67
|
-
handleRightIconClick(event: PointerEvent): void;
|
|
68
|
-
render(): any;
|
|
69
|
-
}
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
export type DateSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
|
|
3
|
+
export type MonthSyntax = `${number}${number}${number}${number}-${number}${number}`;
|
|
4
|
+
export type WeekSyntax = `${number}${number}${number}${number}-W${number}${number}`;
|
|
5
|
+
export type TimeSyntax = `${number}${number}:${number}${number}`;
|
|
6
|
+
export type DateTimeLocalSyntax = `${number}${number}${number}${number}-${number}${number}-${number}${number}T${number}${number}:${number}${number}`;
|
|
7
|
+
export type MinMaxDates = DateSyntax | MonthSyntax | WeekSyntax | TimeSyntax | DateTimeLocalSyntax;
|
|
8
|
+
export declare class TttxInput {
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Footnote under the input field
|
|
12
|
+
*/
|
|
13
|
+
secondarylabel: string;
|
|
14
|
+
showerrormsg: boolean;
|
|
15
|
+
showerrorbubble: boolean;
|
|
16
|
+
errormsg: string;
|
|
17
|
+
iconleft: string;
|
|
18
|
+
iconleftcolor: string;
|
|
19
|
+
iconright: string;
|
|
20
|
+
iconrightcolor: string;
|
|
21
|
+
inputicon: string;
|
|
22
|
+
inputiconcolor: string;
|
|
23
|
+
inline: boolean;
|
|
24
|
+
inputautocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
25
|
+
inputautofocus: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Defines what action to present for the enter key on virtual keyboards
|
|
28
|
+
*/
|
|
29
|
+
inputkeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
30
|
+
/**
|
|
31
|
+
* tabindex - Allows the HTML elements to be focusable
|
|
32
|
+
* @example <caption>In HTML (like `index.html`)</caption>
|
|
33
|
+
* <tttx-standalone-input input-index="1" />
|
|
34
|
+
* @example <caption>In TSX files</caption>
|
|
35
|
+
* <tttx-standalone-input inputindex={1} />
|
|
36
|
+
*/
|
|
37
|
+
inputindex: string | number;
|
|
38
|
+
inputtitle: string;
|
|
39
|
+
autocomplete: 'off' | 'on';
|
|
40
|
+
checked: boolean;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
max: MinMaxDates | number;
|
|
43
|
+
maxlength: string | number;
|
|
44
|
+
min: MinMaxDates | number;
|
|
45
|
+
minlength: string | number;
|
|
46
|
+
name: string;
|
|
47
|
+
pattern: string;
|
|
48
|
+
placeholder: string;
|
|
49
|
+
readonly: string | boolean;
|
|
50
|
+
required: boolean;
|
|
51
|
+
step: string | number;
|
|
52
|
+
type: string;
|
|
53
|
+
value: string | number;
|
|
54
|
+
valueChanged: EventEmitter<string>;
|
|
55
|
+
handleChange(event: Event | InputEvent): void;
|
|
56
|
+
focusChanged: EventEmitter<string>;
|
|
57
|
+
handleFocus(event: Event | InputEvent): void;
|
|
58
|
+
blurChanged: EventEmitter<string>;
|
|
59
|
+
handleBlur(event: Event | InputEvent): void;
|
|
60
|
+
invalidChanged: EventEmitter<string>;
|
|
61
|
+
handleInvalid(event: Event | InputEvent): void;
|
|
62
|
+
inputIconClick: EventEmitter<void>;
|
|
63
|
+
handleInputIconClick(event: PointerEvent): void;
|
|
64
|
+
leftIconClick: EventEmitter<void>;
|
|
65
|
+
handleLeftIconClick(event: PointerEvent): void;
|
|
66
|
+
rightIconClick: EventEmitter<void>;
|
|
67
|
+
handleRightIconClick(event: PointerEvent): void;
|
|
68
|
+
render(): any;
|
|
69
|
+
}
|
package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts
CHANGED
|
@@ -1,143 +1,143 @@
|
|
|
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
|
-
iconleftcolor: {
|
|
12
|
-
control: {
|
|
13
|
-
type: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
iconright: {
|
|
17
|
-
options: string[];
|
|
18
|
-
control: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
iconrightcolor: {
|
|
23
|
-
control: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
inputicon: {
|
|
28
|
-
options: string[];
|
|
29
|
-
control: {
|
|
30
|
-
type: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
inputiconcolor: {
|
|
34
|
-
control: {
|
|
35
|
-
type: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
label: {
|
|
39
|
-
control: {
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
secondarylabel: {
|
|
44
|
-
control: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
errormsg: {
|
|
49
|
-
control: {
|
|
50
|
-
type: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
showerrorbubble: {
|
|
54
|
-
control: {
|
|
55
|
-
type: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
showerrormsg: {
|
|
59
|
-
control: {
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
inline: {
|
|
64
|
-
control: {
|
|
65
|
-
type: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
checked: {
|
|
69
|
-
control: {
|
|
70
|
-
type: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
disabled: {
|
|
74
|
-
control: {
|
|
75
|
-
type: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
max: {
|
|
79
|
-
control: {
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
maxlength: {
|
|
84
|
-
control: {
|
|
85
|
-
type: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
min: {
|
|
89
|
-
control: {
|
|
90
|
-
type: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
minlength: {
|
|
94
|
-
control: {
|
|
95
|
-
type: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
name: {
|
|
99
|
-
control: {
|
|
100
|
-
type: string;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
pattern: {
|
|
104
|
-
control: {
|
|
105
|
-
type: string;
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
placeholder: {
|
|
109
|
-
control: {
|
|
110
|
-
type: string;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
readonly: {
|
|
114
|
-
control: {
|
|
115
|
-
type: string;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
required: {
|
|
119
|
-
control: {
|
|
120
|
-
type: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
step: {
|
|
124
|
-
control: {
|
|
125
|
-
type: string;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
type: {
|
|
129
|
-
options: string[];
|
|
130
|
-
control: {
|
|
131
|
-
type: string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
value: {
|
|
135
|
-
control: {
|
|
136
|
-
type: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
export default _default;
|
|
142
|
-
export declare const InputField: any;
|
|
143
|
-
export declare const searchField: any;
|
|
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
|
+
iconleftcolor: {
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
iconright: {
|
|
17
|
+
options: string[];
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
iconrightcolor: {
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
inputicon: {
|
|
28
|
+
options: string[];
|
|
29
|
+
control: {
|
|
30
|
+
type: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
inputiconcolor: {
|
|
34
|
+
control: {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
label: {
|
|
39
|
+
control: {
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
secondarylabel: {
|
|
44
|
+
control: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
errormsg: {
|
|
49
|
+
control: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
showerrorbubble: {
|
|
54
|
+
control: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
showerrormsg: {
|
|
59
|
+
control: {
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
inline: {
|
|
64
|
+
control: {
|
|
65
|
+
type: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
checked: {
|
|
69
|
+
control: {
|
|
70
|
+
type: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
disabled: {
|
|
74
|
+
control: {
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
max: {
|
|
79
|
+
control: {
|
|
80
|
+
type: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
maxlength: {
|
|
84
|
+
control: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
min: {
|
|
89
|
+
control: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
minlength: {
|
|
94
|
+
control: {
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
name: {
|
|
99
|
+
control: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
pattern: {
|
|
104
|
+
control: {
|
|
105
|
+
type: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
placeholder: {
|
|
109
|
+
control: {
|
|
110
|
+
type: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly: {
|
|
114
|
+
control: {
|
|
115
|
+
type: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
required: {
|
|
119
|
+
control: {
|
|
120
|
+
type: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
step: {
|
|
124
|
+
control: {
|
|
125
|
+
type: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
type: {
|
|
129
|
+
options: string[];
|
|
130
|
+
control: {
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
value: {
|
|
135
|
+
control: {
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
export default _default;
|
|
142
|
+
export declare const InputField: any;
|
|
143
|
+
export declare const searchField: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class TttxToolbar {
|
|
2
|
-
border: boolean;
|
|
3
|
-
render(): any;
|
|
4
|
-
}
|
|
1
|
+
export declare class TttxToolbar {
|
|
2
|
+
border: boolean;
|
|
3
|
+
render(): any;
|
|
4
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
argTypes: {
|
|
5
|
-
border: {
|
|
6
|
-
control: {
|
|
7
|
-
type: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
13
|
-
export declare const BasicStringList: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
argTypes: {
|
|
5
|
+
border: {
|
|
6
|
+
control: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
export declare const BasicStringList: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Default: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Default: any;
|
|
@@ -244,6 +244,7 @@ declare namespace LocalJSX {
|
|
|
244
244
|
"filterKey"?: string;
|
|
245
245
|
"filterOptions"?: string | FilterSettings[];
|
|
246
246
|
"onFilterChangeEvent"?: (event: TttxFilterCustomEvent<FilterChangeEvent>) => void;
|
|
247
|
+
"onToggleFilter"?: (event: TttxFilterCustomEvent<boolean>) => void;
|
|
247
248
|
"popoverWidth"?: string;
|
|
248
249
|
"showOptionIcons"?: boolean;
|
|
249
250
|
"showSearchField"?: boolean;
|
|
@@ -281,6 +282,7 @@ declare namespace LocalJSX {
|
|
|
281
282
|
"defaultSortDirection"?: 'ascending' | 'descending';
|
|
282
283
|
"fieldOptionsData"?: string | SorterData;
|
|
283
284
|
"onSorterChangeEvent"?: (event: TttxSorterCustomEvent<SorterChangeEvent>) => void;
|
|
285
|
+
"onToggleSorter"?: (event: TttxSorterCustomEvent<boolean>) => void;
|
|
284
286
|
"sorterKey"?: string;
|
|
285
287
|
}
|
|
286
288
|
interface TttxStandaloneInput {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Default: any;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: any;
|
package/dist/types/icons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const icons: string[];
|
|
2
|
-
export default icons;
|
|
1
|
+
declare const icons: string[];
|
|
2
|
+
export default icons;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Components, JSX } from './components';
|
|
1
|
+
export { Components, JSX } from './components';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare function tagRegXp(tagName: string): RegExpExecArray;
|
|
2
|
-
declare function attributeNameCheck(): boolean;
|
|
3
|
-
declare const domSanitiserOptions: {
|
|
4
|
-
CUSTOM_ELEMENT_HANDLING: {
|
|
5
|
-
tagNameCheck: typeof tagRegXp;
|
|
6
|
-
attributeNameCheck: typeof attributeNameCheck;
|
|
7
|
-
allowCustomizedBuiltInElements: boolean;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default domSanitiserOptions;
|
|
1
|
+
declare function tagRegXp(tagName: string): RegExpExecArray;
|
|
2
|
+
declare function attributeNameCheck(): boolean;
|
|
3
|
+
declare const domSanitiserOptions: {
|
|
4
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
5
|
+
tagNameCheck: typeof tagRegXp;
|
|
6
|
+
attributeNameCheck: typeof attributeNameCheck;
|
|
7
|
+
allowCustomizedBuiltInElements: boolean;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default domSanitiserOptions;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as t,h as r,H as e,g as i}from"./p-c544551b.js";const n=class{constructor(r){o(this,r),this.sorterChangeEvent=t(this,"sorterChangeEvent",7),this.sorterKey=void 0,this.defaultSortDirection="descending",this.fieldOptionsData=null,this.defaultOption="",this.selectedField=this.defaultOption,this.sortDirection=this.defaultSortDirection,this.dropdownExpand=!1,this.dropdownOptions=void 0}handleCloseSorter(){this.dropdownExpand=!1}emitSortEvent(){this.sorterChangeEvent.emit({sorterDirection:this.sortDirection,sorterKey:this.sorterKey,sortField:this.selectedField})}onSortToggleClick(o){o.preventDefault(),this.sortDirection="ascending"==this.sortDirection?"descending":"ascending",this.emitSortEvent()}onDropdownClicked(){this.dropdownExpand=!this.dropdownExpand}onDropdownSelected(o){this.dropdownExpand=!1,this.selectedField=o.target.innerHTML,this.emitSortEvent()}render(){const o="string"==typeof this.fieldOptionsData?JSON.parse(this.fieldOptionsData):this.fieldOptionsData;if(!this.fieldOptionsData)return;const t="ascending"==this.sortDirection?"arrow_upward":"arrow_downward",i=this.dropdownExpand?"expand_less":"expand_more",n=this.selectedField;return r(e,{id:`sorter__${this.sorterKey}`},r("div",{tabindex:0,class:"sorter-container "+(this.dropdownExpand?"--expanded":"")},r("button",{class:"arrow-toggle-button",type:"button",onClick:this.onSortToggleClick.bind(this)},r("tttx-icon",{icon:t,color:"black"})),r("div",{class:"dropdown-selector",onClick:this.onDropdownClicked.bind(this)},r("div",{class:"dropdown-selector-button"},r("div",{class:"dropdown-selector-text"},n),r("div",{class:"dropdown-selector-chevron"},r("tttx-icon",{icon:i,color:"black"})))),this.dropdownExpand&&r("div",{class:"dropdown-options-list"},o.sorterOptions.map((o=>r("div",{class:"dropdown-option",tabIndex:-1,onClick:this.onDropdownSelected.bind(this),key:o.optionLabel},o.optionLabel))))))}get el(){return i(this)}};n.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.sorter-container{display:flex;flex-direction:row;position:relative;border:1px solid #d5d5d5;border-radius:4px;font-weight:400;box-sizing:border-box;height:36px;cursor:pointer;width:220px}@media (max-width: 475px){.sorter-container{width:68px}}.sorter-container .arrow-toggle-button{display:inline-flex;justify-content:center;align-items:center;flex-direction:column;background-color:white;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px}@media (max-width: 475px){.sorter-container .arrow-toggle-button{padding-right:0px;padding-left:8px}}.sorter-container .arrow-toggle-button .hydrated{display:flex;justify-content:center;align-items:center;cursor:pointer}.sorter-container .arrow-toggle-button span{display:block;margin:auto;line-height:16px}.sorter-container .arrow-toggle-button .material-symbols-rounded{color:#212121}.sorter-container .dropdown-selector{display:inline-flex;position:relative;flex-grow:1}.sorter-container .dropdown-selector .dropdown-selector-button{display:inline-flex;flex-direction:row;gap:4px;padding-right:4px;align-items:center;color:#212121;width:100%}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-button .dropdown-selector-text{display:none}}.sorter-container .dropdown-selector .dropdown-selector-chevron{display:inline-flex;margin-left:auto;right:0;top:0;flex-direction:row;align-items:center;height:36px}.sorter-container .dropdown-selector .dropdown-selector-chevron .hydrated{height:24px;cursor:pointer}@media (max-width: 475px){.sorter-container .dropdown-selector .dropdown-selector-chevron{padding-right:2px}}.sorter-container .dropdown-options-list{position:absolute;top:36px;left:0;z-index:1;width:220px;line-height:21px;font-size:16px;border-radius:4px;padding-top:8px;padding-bottom:7px;box-shadow:0px 1px 5px #1111114D;box-sizing:border-box;background-color:white}@media (max-width: 475px){.sorter-container .dropdown-options-list{width:220px;padding-top:8px}}.sorter-container .dropdown-options-list .dropdown-option{padding:8px 16px;font-size:16px;line-height:21px}.sorter-container .dropdown-options-list .dropdown-option:hover,.sorter-container .dropdown-options-list .dropdown-option:focus{background-color:#ebfbfc}.sorter-container.--expanded{border-color:#1579c6}@media (max-width: 475px){.sorter-container.--expanded{border:none}}';export{n as tttx_sorter}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as e,H as o,g as n}from"./p-c544551b.js";const r=class{constructor(e){t(this,e),this.filterChangeEvent=i(this,"filterChangeEvent",7),this.filterKey=void 0,this.filterOptions=[{optionIcon:"cancel",optionIconColor:"darkred",optionText:"Expired"},{optionIcon:"warning",optionIconColor:"orange",optionText:"Expiring soon"},{optionIcon:"check_circle",optionIconColor:"green",optionText:"Active"}],this.showSelectAll=!0,this.showSearchField=!1,this.showOptionIcons=!0,this.filterButtonStyle="list filter",this.filterHeader="Qualification status",this.defaultFilterOptions=void 0,this.popoverWidth="193px",this.showPopover=!1,this.displayedFilterSettings=void 0,this.selectedFilters=void 0,this.filterSearchTerm="",this.allSelected=void 0}handleCloseFilter(){this.showPopover=!1}emitFilterEvent(){this.filterChangeEvent.emit({selectedFilters:this.selectedFilters,filterKey:this.filterKey,allSelected:this.allSelected})}onFilterButtonClick(){this.togglePopover()}onCloseButtonClick(){this.togglePopover()}onApplyFilterButtonClick(){this.emitFilterEvent(),this.togglePopover()}onFilterOptionSelected(t){this.allSelected=!1,this.selectedFilters=this.selectedFilters.includes(t)?this.selectedFilters.filter((i=>i!=t)):[...this.selectedFilters,t]}componentWillLoad(){if(this.displayedFilterSettings=this.parseFilterOptions(),void 0!==this.defaultFilterOptions){const t=this.parseDefaultFilterOptions();this.selectedFilters=t;let i=!0;this.parseFilterOptions().map((t=>{this.selectedFilters.includes(t.optionText)||(i=!1)})),this.allSelected=i}else this.allSelected=!0,this.selectedFilters=this.displayedFilterSettings.map((t=>t.optionText))}togglePopover(){this.showPopover=!this.showPopover}handleFilterChange(t){this.filterSearchTerm=t.target.value;const i=this.parseFilterOptions().filter((t=>{const i=t.optionText.toLowerCase(),e=this.filterSearchTerm.toLowerCase();return i.includes(e)}));this.displayedFilterSettings=i}onSelectAllClick(){this.allSelected=!this.allSelected,this.allSelected?this.displayedFilterSettings.forEach((t=>{this.selectedFilters=[...this.selectedFilters,t.optionText]})):this.selectedFilters=[]}getFilterButtonClassName(t){switch(t){case"table icon":return"--table-icon";case"list icon":return"--list-icon";default:return""}}parseFilterOptions(){return"string"==typeof this.filterOptions?JSON.parse(this.filterOptions):this.filterOptions}parseDefaultFilterOptions(){return"string"==typeof this.defaultFilterOptions?JSON.parse(this.defaultFilterOptions):this.defaultFilterOptions}render(){const t=this.showSearchField?"--with-search-field":"",i=this.allSelected?"check_box":"check_box_outline_blank",n=this.allSelected?"blue":"grey",r=this.getFilterButtonClassName(this.filterButtonStyle);return e(o,{id:`filter__${this.filterKey}`},e("div",{class:"filter-container"},e("button",{class:`filter-button ${r}`,type:"button",onClick:this.onFilterButtonClick.bind(this)},e("tttx-icon",{icon:"filter_list",class:"filter-icon",color:"black"}),"Filter"),this.showPopover&&e("div",{class:`filter-popover-container ${t}`,style:{width:this.popoverWidth}},e("div",{class:"filter-header"},this.filterHeader),this.showSearchField?e("div",{class:"search-field-container"},e("tttx-icon",{icon:"search",class:"search-icon"}),e("input",{type:"text",class:"search-input",placeholder:"Search",value:this.filterSearchTerm,onInput:this.handleFilterChange.bind(this)})):"",e("div",{class:"filter-options-container"},this.showSelectAll?e("div",{class:"filter-option",tabIndex:-1,onClick:this.onSelectAllClick.bind(this)},e("tttx-icon",{icon:i,color:n,class:"select-all-icon"}),e("label",{class:"filter-label"},"Select all")):"",this.displayedFilterSettings.map((t=>{const i=this.selectedFilters.includes(t.optionText)?"check_box":"check_box_outline_blank",o=this.selectedFilters.includes(t.optionText)?"blue":"grey";return e("div",{class:"filter-option",tabIndex:-1,onClick:()=>this.onFilterOptionSelected(t.optionText),key:t.optionText},e("tttx-icon",{icon:i,color:o,class:"checkbox-icon"}),this.showOptionIcons&&e("tttx-icon",{icon:t.optionIcon,color:t.optionIconColor}),e("label",{class:"filter-label"},t.optionText))}))),e("div",{class:"filter-popover-button-container"},e("button",{type:"button",class:"close-button",onClick:this.onCloseButtonClick.bind(this)},"Close"),e("button",{type:"button",class:"apply-button",onClick:this.onApplyFilterButtonClick.bind(this)},"Apply")))))}get el(){return n(this)}};r.style='.material-symbols-rounded{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.material-symbols-rounded{font-family:"Material Symbols Rounded", sans-serif;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color:#9e9e9e}.filter-container{background-color:white;position:relative}.filter-container .filter-button{display:inline-flex;justify-content:center;align-items:center;font-size:14px;font-weight:400;font-family:"Roboto", serif;text-transform:uppercase;color:#212121;border:1px solid #d5d5d5;border-radius:4px;background:transparent;height:36px;width:95px;margin:0;padding-right:16px;cursor:pointer}@media (max-width: 475px){.filter-container .filter-button{padding-left:4px}}.filter-container .filter-button .filter-icon{padding-left:8px;padding-right:4px}.filter-container .filter-button.--list-icon{font-size:0;width:36px;height:36px;padding:0}.filter-container .filter-button.--list-icon .filter-icon{padding:0}.filter-container .filter-button.--list-icon:hover{background:#e3e3e3}.filter-container .filter-button.--table-icon{font-size:0;width:36px;height:36px;padding:0;border:none}.filter-container .filter-button.--table-icon .filter-icon{padding:0;width:24px;height:24px}.filter-container .filter-button.--table-icon:hover{background:#e3e3e3;border-radius:50%;width:36px;height:36px}.filter-container .filter-button:hover{background:#e3e3e3}.filter-container .filter-popover-container{display:flex;flex-direction:column;gap:8px;border-radius:4px;box-shadow:0px 1px 5px #1111114D;position:absolute;top:36px;left:0px;background-color:white;padding:8px 16px}.filter-container .filter-popover-container .filter-header{color:#757575;text-transform:uppercase;font-size:14px;font-weight:500;font-family:"Roboto", serif;padding-top:4px;padding-bottom:5px}.filter-container .filter-popover-container .filter-options-container{display:flex;flex-direction:column;gap:4px;border-top:1px solid #d5d5d5;border-bottom:1px solid #d5d5d5;padding-bottom:8px}.filter-container .filter-popover-container .filter-option{display:flex;flex-direction:row;align-items:center;min-height:36px;padding-left:8px}.filter-container .filter-popover-container .filter-option .select-all-icon{padding-right:6px}.filter-container .filter-popover-container .filter-option .checkbox-icon{padding-right:8px}.filter-container .filter-popover-container .filter-option .filter-label{padding-left:8px;padding-bottom:3px;font-size:16px;font-weight:500;font-family:"Roboto", serif}.filter-container .filter-popover-container .filter-option:first-child{padding-top:8px}.filter-container .filter-popover-container .filter-popover-button-container{display:flex;justify-content:flex-end;align-items:center}.filter-container .filter-popover-container .filter-popover-button-container .close-button{height:36px;width:74px;background-color:white;border:1px solid #d5d5d5;border-radius:4px;text-transform:uppercase;margin-right:8px;font-size:14px;font-weight:400;font-family:"Roboto", serif;color:#212121}.filter-container .filter-popover-container .filter-popover-button-container .apply-button{height:36px;width:73px;background-color:#1479c6;color:white;border-radius:4px;border:none;text-transform:uppercase;font-size:14px;font-weight:400;font-family:"Roboto", serif}.filter-container .filter-popover-container.--with-search-field .filter-header{border-bottom:1px solid #d5d5d5}.filter-container .filter-popover-container.--with-search-field .search-field-container{position:relative;color:#d5d5d5;height:36px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-icon{position:absolute;top:6px;left:8px}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input{padding-left:36px;border:1px solid #d5d5d5;border-radius:4px;height:36px;width:100%;font-size:16px;font-family:"Roboto", serif;font-weight:500;box-sizing:border-box}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus-visible,.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input:focus{outline:none;border:1px solid #1479c6}.filter-container .filter-popover-container.--with-search-field .search-field-container .search-input::placeholder{color:#9e9e9e;font-size:16px;font-family:"Roboto", serif;font-weight:500}';export{r as tttx_filter}
|