@3t-transform/threeteeui 0.1.28 → 0.1.30

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.
Files changed (190) hide show
  1. package/dist/cjs/{index-dc6cc829.js → index-457ca775.js} +104 -2
  2. package/dist/cjs/loader.cjs.js +4 -3
  3. package/dist/cjs/tttx-button.cjs.entry.js +24 -24
  4. package/dist/cjs/tttx-filter.cjs.entry.js +159 -159
  5. package/dist/cjs/tttx-form.cjs.entry.js +376 -364
  6. package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
  7. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +59 -59
  8. package/dist/cjs/tttx-list.cjs.entry.js +43 -43
  9. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  10. package/dist/cjs/tttx-sorter.cjs.entry.js +102 -102
  11. package/dist/cjs/tttx-standalone-input.cjs.entry.js +62 -62
  12. package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
  13. package/dist/cjs/tttx.cjs.js +7 -3
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
  16. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
  17. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
  18. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
  19. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
  20. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
  21. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
  22. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  23. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +334 -334
  24. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +62 -62
  25. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -35
  26. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
  27. package/dist/collection/components/molecules/tttx-form/tttx-form.css +5 -0
  28. package/dist/collection/components/molecules/tttx-form/tttx-form.js +396 -364
  29. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +248 -127
  30. package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
  31. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
  32. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +224 -224
  33. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
  34. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.css +27 -5
  35. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +645 -645
  36. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +163 -163
  37. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
  38. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
  39. package/dist/collection/components/palette.stories.js +7 -7
  40. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  41. package/dist/collection/icons.js +2838 -2838
  42. package/dist/collection/index.js +1 -1
  43. package/dist/collection/shared/domsanitiser.options.js +14 -14
  44. package/dist/components/index.d.ts +9 -0
  45. package/dist/components/index.js +1 -1
  46. package/dist/components/tttx-button.js +48 -48
  47. package/dist/components/tttx-filter.js +191 -191
  48. package/dist/components/tttx-form.js +394 -381
  49. package/dist/components/tttx-icon2.js +28 -28
  50. package/dist/components/tttx-keyvalue-block.js +76 -76
  51. package/dist/components/tttx-list.js +65 -65
  52. package/dist/components/tttx-loading-spinner.js +33 -33
  53. package/dist/components/tttx-sorter.js +130 -130
  54. package/dist/components/tttx-standalone-input.js +110 -110
  55. package/dist/components/tttx-toolbar.js +26 -26
  56. package/dist/esm/{index-86faeaab.js → index-d784fb3e.js} +104 -3
  57. package/dist/esm/loader.js +4 -3
  58. package/dist/esm/polyfills/core-js.js +0 -0
  59. package/dist/esm/polyfills/css-shim.js +1 -1
  60. package/dist/esm/polyfills/dom.js +0 -0
  61. package/dist/esm/polyfills/es5-html-element.js +0 -0
  62. package/dist/esm/polyfills/index.js +0 -0
  63. package/dist/esm/polyfills/system.js +0 -0
  64. package/dist/esm/tttx-button.entry.js +24 -24
  65. package/dist/esm/tttx-filter.entry.js +159 -159
  66. package/dist/esm/tttx-form.entry.js +376 -364
  67. package/dist/esm/tttx-icon.entry.js +11 -11
  68. package/dist/esm/tttx-keyvalue-block.entry.js +59 -59
  69. package/dist/esm/tttx-list.entry.js +43 -43
  70. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  71. package/dist/esm/tttx-sorter.entry.js +102 -102
  72. package/dist/esm/tttx-standalone-input.entry.js +62 -62
  73. package/dist/esm/tttx-toolbar.entry.js +10 -10
  74. package/dist/esm/tttx.js +4 -3
  75. package/dist/tttx/p-0ebffdfc.js +2 -0
  76. package/dist/tttx/p-1112ed2e.entry.js +1 -0
  77. package/dist/tttx/p-13495422.entry.js +1 -0
  78. package/dist/tttx/{p-ae00cae3.entry.js → p-1ed7a43d.entry.js} +1 -1
  79. package/dist/tttx/p-237fe0d5.entry.js +1 -0
  80. package/dist/tttx/p-2731fbc6.entry.js +1 -0
  81. package/dist/tttx/p-280b8e45.entry.js +1 -0
  82. package/dist/tttx/p-3772f4d0.entry.js +1 -0
  83. package/dist/tttx/p-390d97dd.entry.js +1 -0
  84. package/dist/tttx/p-49796abf.entry.js +1 -0
  85. package/dist/tttx/p-4f68f1eb.entry.js +1 -0
  86. package/dist/tttx/p-53793ed2.entry.js +1 -0
  87. package/dist/tttx/p-5f335153.entry.js +1 -0
  88. package/dist/tttx/p-60a0fee2.entry.js +1 -0
  89. package/dist/tttx/p-6ab75c0b.entry.js +1 -0
  90. package/dist/tttx/{p-daa27411.entry.js → p-6b006ccf.entry.js} +1 -1
  91. package/dist/tttx/p-6cbe1824.entry.js +1 -0
  92. package/dist/tttx/p-6cefa1ce.entry.js +1 -0
  93. package/dist/tttx/p-72e7f7dd.entry.js +3 -0
  94. package/dist/tttx/{p-c72d1a03.entry.js → p-798a098a.entry.js} +1 -1
  95. package/dist/tttx/p-824af346.entry.js +1 -0
  96. package/dist/tttx/{p-f1d7eb35.entry.js → p-91e42647.entry.js} +1 -1
  97. package/dist/tttx/{p-8f3badad.entry.js → p-b720c4ad.entry.js} +1 -1
  98. package/dist/tttx/p-c06f1207.entry.js +1 -0
  99. package/dist/tttx/p-c0a15524.entry.js +1 -0
  100. package/dist/tttx/{p-e25d5fe2.entry.js → p-c4162029.entry.js} +1 -1
  101. package/dist/tttx/p-c7c968dd.entry.js +1 -0
  102. package/dist/tttx/{p-c4538d55.entry.js → p-cac26a1b.entry.js} +1 -1
  103. package/dist/tttx/p-ce728715.entry.js +1 -0
  104. package/dist/tttx/p-d3932db5.entry.js +1 -0
  105. package/dist/tttx/p-d575ef2d.entry.js +1 -0
  106. package/dist/tttx/p-d83edcfb.entry.js +1 -0
  107. package/dist/tttx/p-d8e03ed6.entry.js +1 -0
  108. package/dist/tttx/p-ebb496a2.entry.js +1 -0
  109. package/dist/tttx/p-fb5e737b.entry.js +1 -0
  110. package/dist/tttx/p-fce571c2.entry.js +1 -0
  111. package/dist/tttx/tttx.esm.js +1 -1
  112. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
  113. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
  114. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
  115. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
  116. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
  117. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
  118. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  119. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  120. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +39 -39
  121. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +68 -68
  122. package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
  123. package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
  124. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +111 -114
  125. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -13
  126. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
  127. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
  128. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -19
  129. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -30
  130. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +60 -60
  131. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +128 -128
  132. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
  133. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
  134. package/dist/types/components/palette.stories.d.ts +6 -6
  135. package/dist/types/components.d.ts +3 -2
  136. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  137. package/dist/types/icons.d.ts +2 -2
  138. package/dist/types/index.d.ts +1 -1
  139. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  140. package/dist/types/stencil-public-runtime.d.ts +59 -3
  141. package/loader/index.d.ts +9 -0
  142. package/package.json +1 -1
  143. package/dist/cjs/domsanitiser.options-277161b9.js +0 -1667
  144. package/dist/collection/components/atoms/tttx-button/test/tttx-button.e2e.js +0 -9
  145. package/dist/collection/components/atoms/tttx-button/test/tttx-button.spec.js +0 -83
  146. package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.e2e.js +0 -9
  147. package/dist/collection/components/atoms/tttx-icon/test/tttx-icon.spec.js +0 -16
  148. package/dist/collection/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.js +0 -216
  149. package/dist/collection/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.js +0 -64
  150. package/dist/collection/components/molecules/tttx-filter/test/tttx-filter.spec.js +0 -231
  151. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.spec.js +0 -38
  152. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.spec.js +0 -214
  153. package/dist/collection/components/molecules/tttx-form/test/tttx-form.e2e.js +0 -9
  154. package/dist/collection/components/molecules/tttx-form/test/tttx-form.spec.js +0 -232
  155. package/dist/collection/components/molecules/tttx-list/test/ttttx-list.spec.e2e.js +0 -26
  156. package/dist/collection/components/molecules/tttx-list/test/tttx-list.spec.js +0 -183
  157. package/dist/collection/components/molecules/tttx-sorter/test/tttx-sorter.spec.js +0 -87
  158. package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.js +0 -9
  159. package/dist/collection/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.js +0 -215
  160. package/dist/collection/components/molecules/tttx-toolbar/test/tttx-toolbar.spec.js +0 -52
  161. package/dist/collection/shared/test/domsanitiser.options.spec.js +0 -23
  162. package/dist/components/domsanitiser.options.js +0 -1664
  163. package/dist/esm/domsanitiser.options-cc420431.js +0 -1664
  164. package/dist/tttx/p-12fc0b16.entry.js +0 -3
  165. package/dist/tttx/p-2e43a578.entry.js +0 -1
  166. package/dist/tttx/p-33c0cbdc.entry.js +0 -1
  167. package/dist/tttx/p-52a47b7c.js +0 -2
  168. package/dist/tttx/p-72b4c98a.entry.js +0 -1
  169. package/dist/tttx/p-7e6fa227.entry.js +0 -1
  170. package/dist/tttx/p-90b0f72a.entry.js +0 -1
  171. package/dist/tttx/p-b4290a5b.js +0 -3
  172. package/dist/tttx/p-c4f2186e.entry.js +0 -1
  173. package/dist/types/components/atoms/tttx-button/test/tttx-button.e2e.d.ts +0 -1
  174. package/dist/types/components/atoms/tttx-button/test/tttx-button.spec.d.ts +0 -1
  175. package/dist/types/components/atoms/tttx-icon/test/tttx-icon.e2e.d.ts +0 -1
  176. package/dist/types/components/atoms/tttx-icon/test/tttx-icon.spec.d.ts +0 -1
  177. package/dist/types/components/atoms/tttx-keyvalue-block/test/tttx-keyvalue-block.spec.d.ts +0 -1
  178. package/dist/types/components/atoms/tttx-loading-spinner/Test/tttx-loading-spinner.spec.d.ts +0 -1
  179. package/dist/types/components/molecules/tttx-filter/test/tttx-filter.spec.d.ts +0 -1
  180. package/dist/types/components/molecules/tttx-form/lib/setErrorState.spec.d.ts +0 -1
  181. package/dist/types/components/molecules/tttx-form/lib/validityCheck.spec.d.ts +0 -1
  182. package/dist/types/components/molecules/tttx-form/test/tttx-form.e2e.d.ts +0 -1
  183. package/dist/types/components/molecules/tttx-form/test/tttx-form.spec.d.ts +0 -1
  184. package/dist/types/components/molecules/tttx-list/test/ttttx-list.spec.e2e.d.ts +0 -1
  185. package/dist/types/components/molecules/tttx-list/test/tttx-list.spec.d.ts +0 -1
  186. package/dist/types/components/molecules/tttx-sorter/test/tttx-sorter.spec.d.ts +0 -1
  187. package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.e2e.d.ts +0 -1
  188. package/dist/types/components/molecules/tttx-standalone-input/test/tttx-standalone-input.spec.d.ts +0 -1
  189. package/dist/types/components/molecules/tttx-toolbar/test/tttx-toolbar.spec.d.ts +0 -1
  190. package/dist/types/shared/test/domsanitiser.options.spec.d.ts +0 -1
@@ -1,7 +1,7 @@
1
- export declare class TttxKeyvalueBlock {
2
- keyvalues: any | any[] | string;
3
- horizontal: boolean;
4
- private renderSingleElements;
5
- private renderArrayElements;
6
- render(): any;
7
- }
1
+ export declare class TttxKeyvalueBlock {
2
+ keyvalues: any | any[] | string;
3
+ horizontal: boolean;
4
+ private renderSingleElements;
5
+ private renderArrayElements;
6
+ render(): any;
7
+ }
@@ -1,9 +1,9 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- };
5
- export default _default;
6
- export declare const KeyValueBlock: () => string;
7
- export declare const KeyValueSubtitleBlock: () => string;
8
- export declare const HorizontalKeyValueBlock: () => string;
9
- export declare const HorizontalKeyValueSubtitleBlock: () => string;
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ };
5
+ export default _default;
6
+ export declare const KeyValueBlock: () => string;
7
+ export declare const KeyValueSubtitleBlock: () => string;
8
+ export declare const HorizontalKeyValueBlock: () => string;
9
+ export declare const HorizontalKeyValueSubtitleBlock: () => string;
@@ -1,6 +1,6 @@
1
- export declare class TttxLoadingSpinner {
2
- loadingMessage: boolean;
3
- size: 'small' | 'large';
4
- renderLoadingMessage(): any;
5
- render(): any;
6
- }
1
+ export declare class TttxLoadingSpinner {
2
+ loadingMessage: boolean;
3
+ size: 'small' | 'large';
4
+ renderLoadingMessage(): any;
5
+ render(): any;
6
+ }
@@ -1,17 +1,17 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- argTypes: {
5
- loadingMessage: {
6
- control: string;
7
- };
8
- size: {
9
- control: {
10
- type: string;
11
- };
12
- options: string[];
13
- };
14
- };
15
- };
16
- export default _default;
17
- export declare const Example: (args: any) => string;
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ argTypes: {
5
+ loadingMessage: {
6
+ control: string;
7
+ };
8
+ size: {
9
+ control: {
10
+ type: string;
11
+ };
12
+ options: string[];
13
+ };
14
+ };
15
+ };
16
+ export default _default;
17
+ export declare const Example: (args: any) => string;
@@ -1,39 +1,39 @@
1
- import { EventEmitter } from '../../../stencil-public-runtime';
2
- export interface FilterSettings {
3
- optionIcon: string;
4
- optionIconColor: string;
5
- optionText: string;
6
- }
7
- export interface FilterChangeEvent {
8
- selectedFilters: string[];
9
- filterKey: string;
10
- allSelected: boolean;
11
- }
12
- export declare class TttxFilter {
13
- filterKey: string;
14
- filterOptions: string | FilterSettings[];
15
- showSelectAll: boolean;
16
- showSearchField: boolean;
17
- showOptionIcons: boolean;
18
- filterButtonStyle: 'list filter' | 'list icon' | 'table icon';
19
- filterHeader: string;
20
- showPopover: boolean;
21
- displayedFilterSettings: FilterSettings[];
22
- selectedFilters: string[];
23
- filterSearchTerm: string;
24
- allSelected: boolean;
25
- filterChangeEvent: EventEmitter<FilterChangeEvent>;
26
- el: any;
27
- emitFilterEvent(): void;
28
- onFilterButtonClick(): void;
29
- onCloseButtonClick(): void;
30
- onApplyFilterButtonClick(): void;
31
- onFilterOptionSelected(selectedOption: string): void;
32
- componentWillLoad(): void;
33
- togglePopover(): void;
34
- handleFilterChange(event: Event | InputEvent): void;
35
- onSelectAllClick(): void;
36
- getFilterButtonClassName(buttonStyle: string): "" | "--table-icon" | "--list-icon";
37
- parseFilterOptions(): any;
38
- render(): any;
39
- }
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ export interface FilterSettings {
3
+ optionIcon: string;
4
+ optionIconColor: string;
5
+ optionText: string;
6
+ }
7
+ export interface FilterChangeEvent {
8
+ selectedFilters: string[];
9
+ filterKey: string;
10
+ allSelected: boolean;
11
+ }
12
+ export declare class TttxFilter {
13
+ filterKey: string;
14
+ filterOptions: string | FilterSettings[];
15
+ showSelectAll: boolean;
16
+ showSearchField: boolean;
17
+ showOptionIcons: boolean;
18
+ filterButtonStyle: 'list filter' | 'list icon' | 'table icon';
19
+ filterHeader: string;
20
+ showPopover: boolean;
21
+ displayedFilterSettings: FilterSettings[];
22
+ selectedFilters: string[];
23
+ filterSearchTerm: string;
24
+ allSelected: boolean;
25
+ filterChangeEvent: EventEmitter<FilterChangeEvent>;
26
+ el: any;
27
+ emitFilterEvent(): void;
28
+ onFilterButtonClick(): void;
29
+ onCloseButtonClick(): void;
30
+ onApplyFilterButtonClick(): void;
31
+ onFilterOptionSelected(selectedOption: string): void;
32
+ componentWillLoad(): void;
33
+ togglePopover(): void;
34
+ handleFilterChange(event: Event | InputEvent): void;
35
+ onSelectAllClick(): void;
36
+ getFilterButtonClassName(buttonStyle: string): "" | "--table-icon" | "--list-icon";
37
+ parseFilterOptions(): any;
38
+ render(): any;
39
+ }
@@ -1,68 +1,68 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- argTypes: {
5
- filterOptions: {
6
- control: {
7
- type: string;
8
- };
9
- };
10
- filterButtonStyle: {
11
- table: {
12
- defaultValue: {
13
- summary: string;
14
- };
15
- };
16
- control: {
17
- type: string;
18
- };
19
- options: string[];
20
- };
21
- showSearchField: {
22
- table: {
23
- defaultValue: {
24
- summary: boolean;
25
- };
26
- };
27
- control: {
28
- type: string;
29
- };
30
- };
31
- showSelectAll: {
32
- table: {
33
- defaultValue: {
34
- summary: boolean;
35
- };
36
- };
37
- control: {
38
- type: string;
39
- };
40
- };
41
- showOptionIcons: {
42
- table: {
43
- defaultValue: {
44
- summary: boolean;
45
- };
46
- };
47
- control: {
48
- type: string;
49
- };
50
- };
51
- filterHeader: {
52
- control: {
53
- type: string;
54
- };
55
- };
56
- };
57
- parameters: {
58
- actions: {
59
- handles: string[];
60
- };
61
- };
62
- decorators: import("@storybook/types").Addon_DecoratorFunction<unknown>[];
63
- };
64
- export default _default;
65
- export declare const Default: any;
66
- export declare const CustomFilterOptions: any;
67
- export declare const ListFilterWithoutSearchField: any;
68
- export declare const TableIconWithoutOptionIconsOrSelectAll: any;
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ argTypes: {
5
+ filterOptions: {
6
+ control: {
7
+ type: string;
8
+ };
9
+ };
10
+ filterButtonStyle: {
11
+ table: {
12
+ defaultValue: {
13
+ summary: string;
14
+ };
15
+ };
16
+ control: {
17
+ type: string;
18
+ };
19
+ options: string[];
20
+ };
21
+ showSearchField: {
22
+ table: {
23
+ defaultValue: {
24
+ summary: boolean;
25
+ };
26
+ };
27
+ control: {
28
+ type: string;
29
+ };
30
+ };
31
+ showSelectAll: {
32
+ table: {
33
+ defaultValue: {
34
+ summary: boolean;
35
+ };
36
+ };
37
+ control: {
38
+ type: string;
39
+ };
40
+ };
41
+ showOptionIcons: {
42
+ table: {
43
+ defaultValue: {
44
+ summary: boolean;
45
+ };
46
+ };
47
+ control: {
48
+ type: string;
49
+ };
50
+ };
51
+ filterHeader: {
52
+ control: {
53
+ type: string;
54
+ };
55
+ };
56
+ };
57
+ parameters: {
58
+ actions: {
59
+ handles: string[];
60
+ };
61
+ };
62
+ decorators: import("@storybook/types").Addon_DecoratorFunction<unknown>[];
63
+ };
64
+ export default _default;
65
+ export declare const Default: any;
66
+ export declare const CustomFilterOptions: any;
67
+ export declare const ListFilterWithoutSearchField: any;
68
+ export declare const TableIconWithoutOptionIconsOrSelectAll: any;
@@ -1,13 +1,13 @@
1
- /**
2
- * Sets the error state of an input field by updating its class and error message.
3
- * If an error was detected, it sets the input field's class to "invalid" and
4
- * displays the error message in an error bubble. If no error was detected,
5
- * it removes the "invalid" class from the input field and clears the error bubble.
6
- *
7
- * @param {HTMLInputElement} target - The input field to update.
8
- * @param {boolean} hasError - Whether an error was detected in the field.
9
- * @param {string} errorMessage - The error message to display (if any).
10
- * @return {void}
11
- */
12
- declare function setErrorState(target: any, hasError: any, errorMessage: any): void;
13
- export default setErrorState;
1
+ /**
2
+ * Sets the error state of an input field by updating its class and error message.
3
+ * If an error was detected, it sets the input field's class to "invalid" and
4
+ * displays the error message in an error bubble. If no error was detected,
5
+ * it removes the "invalid" class from the input field and clears the error bubble.
6
+ *
7
+ * @param {HTMLInputElement} target - The input field to update.
8
+ * @param {boolean} hasError - Whether an error was detected in the field.
9
+ * @param {string} errorMessage - The error message to display (if any).
10
+ * @return {void}
11
+ */
12
+ declare function setErrorState(target: any, hasError: any, errorMessage: any): void;
13
+ export default setErrorState;
@@ -1,17 +1,17 @@
1
- /**
2
- * Validates the input field on focusout event by checking its validity state,
3
- * sets an error message if there's an issue, and emits a "dataChanged" event to
4
- * the parent component with the field name and its new value.
5
- *
6
- * @param {Event} event - The focusout event triggered by the input field.
7
- * @return {void}
8
- */
9
- declare function validityCheck(event: {
10
- target: any;
11
- preventDefault: Function;
12
- }): {
13
- target: any;
14
- hasError: boolean;
15
- errorMessage: string;
16
- };
17
- export default validityCheck;
1
+ /**
2
+ * Validates the input field on focusout event by checking its validity state,
3
+ * sets an error message if there's an issue, and emits a "dataChanged" event to
4
+ * the parent component with the field name and its new value.
5
+ *
6
+ * @param {Event} event - The focusout event triggered by the input field.
7
+ * @return {void}
8
+ */
9
+ declare function validityCheck(event: {
10
+ target: any;
11
+ preventDefault: Function;
12
+ }): {
13
+ target: any;
14
+ hasError: boolean;
15
+ errorMessage: string;
16
+ };
17
+ export default validityCheck;
@@ -1,114 +1,111 @@
1
- import { EventEmitter } from '../../../stencil-public-runtime';
2
- import { ChangeEvent } from 'react';
3
- export declare class TttxForm {
4
- private fieldset;
5
- private template;
6
- private _formSchema;
7
- formschema: any;
8
- submitValue: any;
9
- dataSubmitted: EventEmitter<FormData>;
10
- dataChanged: EventEmitter<{
11
- name: string;
12
- value: any;
13
- }>;
14
- onFormSchemaChange(newValue: any): void;
15
- /**
16
- * Handles the focus event for a form field and emits a "dataChanged" event
17
- * to the parent component with the field name and its new value.
18
- *
19
- * @param {ChangeEvent} event - The focus event triggered by the field.
20
- * @return {void}
21
- */
22
- fieldChanged(event: ChangeEvent): void;
23
- /**
24
- * Submits the form data to the server.
25
- *
26
- * @param {SubmitEvent} event - The event object for the form submission.
27
- * @returns {void}
28
- *
29
- * @example
30
- * const form = document.getElementById('myForm');
31
- * form.addEventListener('submit', (event) => {
32
- * doSubmit(event);
33
- * });
34
- */
35
- doSubmit(event: SubmitEvent): void;
36
- componentWillLoad(): void;
37
- componentWillRender(): void;
38
- /**
39
- * Creates a new HTMLInputElement with the specified name, type, and placeholder (if any),
40
- * and sets its autocomplete and autocapitalization properties to off.
41
- *
42
- * @param {string} formKey - The name of the input field, as specified in the form schema.
43
- * @param {Object} formProperties - An object containing additional properties for the input field, such as its type and placeholder value.
44
- * @param {string} formProperties.type - The type of the input field (e.g., "text", "email", "number", etc.).
45
- * @param {string} [formProperties.placeholder] - An optional placeholder value to display in the input field.
46
- * @return {HTMLInputElement} - The new input element.
47
- */
48
- createInput(formKey: any, formProperties: any): HTMLInputElement;
49
- /**
50
- * Applies validation attributes to an input element based on the specified validation object.
51
- * If a certain property is present in the object, it will set the corresponding attribute on
52
- * the input element (e.g., "required" will set the "required" and "data-required" attributes,
53
- * "pattern" will set the "pattern" and "data-pattern" attributes, etc.).
54
- *
55
- * @param {HTMLInputElement} input - The input element to apply validation attributes to.
56
- * @param {Object} validation - An object containing the validation rules for the input field.
57
- * @param {Object} [validation.required] - An object containing a "message" property to display if the field is required.
58
- * @param {Object} [validation.pattern] - An object containing a "pattern" property to match against the field value, and a "message" property to display if the pattern doesn't match.
59
- * @param {Object} [validation.badInput] - An object containing a "message" property to display if the field value is invalid.
60
- * @param {Object} [validation.minmax] - An object containing "min" and "max" properties to validate the field value against, and a "message" property to display if the value is out of range.
61
- * @param {string} [validation.maxlength] - The maximum length of the input field.
62
- * @return {void}
63
- */
64
- applyValidation(input: any, validation: any): void;
65
- createErrorBubble(): HTMLDivElement;
66
- /**
67
- * Creates a new <label> element with the "inputBlock" class and the specified label text,
68
- * and appends the input element and error bubble element to it. If the form property has
69
- * no validation object, it adds an "optional" span element to the label.
70
- *
71
- * @param {Object} formProperties - An object containing properties for the form field, including its label text and validation rules.
72
- * @param {HTMLInputElement} input - The input element to associate with the label.
73
- * @param {HTMLDivElement} errorBubble - The error bubble element to display error messages in.
74
- * @return {HTMLLabelElement} - The new label element.
75
- */
76
- createLabel(formProperties: any, input: any, errorBubble: any): HTMLLabelElement;
77
- /**
78
- * Creates a new <input> element with the "submit" type, the "primary-blue" class, and the
79
- * specified label text (i.e., "Save" by default), and returns the new submit button element.
80
- *
81
- * @return {HTMLInputElement} - The new submit button element.
82
- */
83
- createSubmitButton(): HTMLInputElement;
84
- /**
85
- * Populates the form template with input fields and labels based on the properties of the
86
- * current form schema. For each property in the schema, it creates an input element, applies
87
- * any validation rules to it, creates an error bubble and label element, and appends them
88
- * to the form template. Finally, it creates and appends a submit button element to the form.
89
- *
90
- * @return {void}
91
- */
92
- populateFormFromSchema(): void;
93
- /**
94
- * Clones the form template and binds event listeners to its input elements. First, it checks if
95
- * there is a form schema present. If so, it clones the template's content, binds events to form
96
- * input elements, and appends the cloned form elements to the fieldset. The event listeners include
97
- * "oninvalid" (to check input validity on submit), "onblur" (to check input validity on blur),
98
- * "onkeyup" (to handle changes in input fields), and "onchange" (to handle changes in select fields).
99
- *
100
- * @return {void}
101
- */
102
- componentDidRender(): void;
103
- validityCheckWrapper(event: any): void;
104
- /**
105
- * Renders the component's template as a form element with a fieldset container. The form's
106
- * "onSubmit" event is bound to the "doSubmit" function, which handles the form submission
107
- * and emits a "dataSubmitted" event with the form data. The fieldset element is assigned
108
- * to the "fieldset" instance variable using a ref, so it can be populated with form elements
109
- * later on.
110
- *
111
- * @return {JSX.Element} - The rendered form template as a JSX element.
112
- */
113
- render(): any;
114
- }
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ import { ChangeEvent } from 'react';
3
+ export declare class TttxForm {
4
+ private fieldset;
5
+ private submitButton;
6
+ private template;
7
+ private _formSchema;
8
+ private _data;
9
+ formschema: any;
10
+ data: any;
11
+ dataSubmitted: EventEmitter<FormData>;
12
+ dataChanged: EventEmitter<{
13
+ name: string;
14
+ value: any;
15
+ }>;
16
+ onFormSchemaChange(newValue: any): void;
17
+ onDataChange(newValue: any): void;
18
+ /**
19
+ * Handles the focus event for a form field and emits a "dataChanged" event
20
+ * to the parent component with the field name and its new value.
21
+ *
22
+ * @param {ChangeEvent} event - The focus event triggered by the field.
23
+ * @return {void}
24
+ */
25
+ fieldChanged(event: ChangeEvent): void;
26
+ submit(): Promise<void>;
27
+ /**
28
+ * Submits the form data to the server.
29
+ *
30
+ * @param {SubmitEvent} event - The event object for the form submission.
31
+ * @returns {void}
32
+ *
33
+ * @example
34
+ * const form = document.getElementById('myForm');
35
+ * form.addEventListener('submit', (event) => {
36
+ * doSubmit(event);
37
+ * });
38
+ */
39
+ doSubmit(event: SubmitEvent): void;
40
+ componentWillLoad(): void;
41
+ componentWillRender(): void;
42
+ /**
43
+ * Creates a new HTMLInputElement with the specified name, type, and placeholder (if any),
44
+ * and sets its autocomplete and autocapitalization properties to off.
45
+ *
46
+ * @param {string} formKey - The name of the input field, as specified in the form schema.
47
+ * @param {Object} formProperties - An object containing additional properties for the input field, such as its type and placeholder value.
48
+ * @param {string} formProperties.type - The type of the input field (e.g., "text", "email", "number", etc.).
49
+ * @param {string} [formProperties.placeholder] - An optional placeholder value to display in the input field.
50
+ * @return {HTMLInputElement} - The new input element.
51
+ */
52
+ createInput(formKey: any, formProperties: any): HTMLInputElement;
53
+ /**
54
+ * Applies validation attributes to an input element based on the specified validation object.
55
+ * If a certain property is present in the object, it will set the corresponding attribute on
56
+ * the input element (e.g., "required" will set the "required" and "data-required" attributes,
57
+ * "pattern" will set the "pattern" and "data-pattern" attributes, etc.).
58
+ *
59
+ * @param {HTMLInputElement} input - The input element to apply validation attributes to.
60
+ * @param {Object} validation - An object containing the validation rules for the input field.
61
+ * @param {Object} [validation.required] - An object containing a "message" property to display if the field is required.
62
+ * @param {Object} [validation.pattern] - An object containing a "pattern" property to match against the field value, and a "message" property to display if the pattern doesn't match.
63
+ * @param {Object} [validation.badInput] - An object containing a "message" property to display if the field value is invalid.
64
+ * @param {Object} [validation.minmax] - An object containing "min" and "max" properties to validate the field value against, and a "message" property to display if the value is out of range.
65
+ * @param {string} [validation.maxlength] - The maximum length of the input field.
66
+ * @return {void}
67
+ */
68
+ applyValidation(input: any, validation: any): void;
69
+ createErrorBubble(): HTMLDivElement;
70
+ /**
71
+ * Creates a new <label> element with the "inputBlock" class and the specified label text,
72
+ * and appends the input element and error bubble element to it. If the form property has
73
+ * no validation object, it adds an "optional" span element to the label.
74
+ *
75
+ * @param {Object} formProperties - An object containing properties for the form field, including its label text and validation rules.
76
+ * @param {HTMLInputElement} input - The input element to associate with the label.
77
+ * @param {HTMLDivElement} errorBubble - The error bubble element to display error messages in.
78
+ * @return {HTMLLabelElement} - The new label element.
79
+ */
80
+ createLabel(formProperties: any, input: any, errorBubble: any): HTMLLabelElement;
81
+ /**
82
+ * Populates the form template with input fields and labels based on the properties of the
83
+ * current form schema. For each property in the schema, it creates an input element, applies
84
+ * any validation rules to it, creates an error bubble and label element, and appends them
85
+ * to the form template. Finally, it creates and appends a submit button element to the form.
86
+ *
87
+ * @return {void}
88
+ */
89
+ populateFormFromSchema(): void;
90
+ /**
91
+ * Clones the form template and binds event listeners to its input elements. First, it checks if
92
+ * there is a form schema present. If so, it clones the template's content, binds events to form
93
+ * input elements, and appends the cloned form elements to the fieldset. The event listeners include
94
+ * "oninvalid" (to check input validity on submit), "onblur" (to check input validity on blur),
95
+ * "onkeyup" (to handle changes in input fields), and "onchange" (to handle changes in select fields).
96
+ *
97
+ * @return {void}
98
+ */
99
+ componentDidRender(): void;
100
+ validityCheckWrapper(event: any): void;
101
+ /**
102
+ * Renders the component's template as a form element with a fieldset container. The form's
103
+ * "onSubmit" event is bound to the "doSubmit" function, which handles the form submission
104
+ * and emits a "dataSubmitted" event with the form data. The fieldset element is assigned
105
+ * to the "fieldset" instance variable using a ref, so it can be populated with form elements
106
+ * later on.
107
+ *
108
+ * @return {JSX.Element} - The rendered form template as a JSX element.
109
+ */
110
+ render(): any;
111
+ }
@@ -1,13 +1,13 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- parameters: {
5
- actions: {
6
- handles: string[];
7
- };
8
- };
9
- decorators: import("@storybook/types").Addon_DecoratorFunction<unknown>[];
10
- };
11
- export default _default;
12
- export declare const ExampleFormFromJSON: () => string;
13
- export declare const SingleFormItem: () => string;
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ parameters: {
5
+ actions: {
6
+ handles: string[];
7
+ };
8
+ };
9
+ decorators: import("@storybook/types").Addon_DecoratorFunction<unknown>[];
10
+ };
11
+ export default _default;
12
+ export declare const ExampleFormFromJSON: () => string;
13
+ export declare const PrePopulateForm: () => string;
@@ -1,11 +1,11 @@
1
- import { EventEmitter } from '../../../stencil-public-runtime';
2
- import { ListItem } from './interfaces';
3
- export declare class TttxList {
4
- data: string | ListItem[];
5
- name: string;
6
- rowClick: EventEmitter;
7
- private _data;
8
- onRowClickHandler(item: ListItem): void;
9
- renderListItem(item: ListItem): any;
10
- render(): any;
11
- }
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ import { ListItem } from './interfaces';
3
+ export declare class TttxList {
4
+ data: string | ListItem[];
5
+ name: string;
6
+ rowClick: EventEmitter;
7
+ private _data;
8
+ onRowClickHandler(item: ListItem): void;
9
+ renderListItem(item: ListItem): any;
10
+ render(): any;
11
+ }