@3t-transform/threeteeui 0.1.21 → 0.1.22

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 (120) hide show
  1. package/dist/cjs/{index-b8a62ede.js → index-dc6cc829.js} +2 -88
  2. package/dist/cjs/loader.cjs.js +3 -4
  3. package/dist/cjs/tttx-button.cjs.entry.js +24 -24
  4. package/dist/cjs/tttx-filter.cjs.entry.js +152 -152
  5. package/dist/cjs/tttx-form.cjs.entry.js +363 -363
  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 +112 -0
  11. package/dist/cjs/tttx-standalone-input.cjs.entry.js +60 -60
  12. package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
  13. package/dist/cjs/tttx.cjs.js +3 -7
  14. package/dist/collection/collection-manifest.json +3 -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 +325 -325
  24. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +89 -89
  25. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +35 -35
  26. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +58 -58
  27. package/dist/collection/components/molecules/tttx-form/tttx-form.js +364 -364
  28. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +127 -127
  29. package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
  30. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
  31. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.css +116 -0
  32. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +224 -0
  33. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +47 -0
  34. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +627 -627
  35. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +157 -157
  36. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
  37. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
  38. package/dist/collection/components/palette.stories.js +7 -7
  39. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  40. package/dist/collection/icons.js +2838 -2838
  41. package/dist/collection/index.js +1 -1
  42. package/dist/collection/shared/domsanitiser.options.js +14 -14
  43. package/dist/components/index.d.ts +1 -9
  44. package/dist/components/index.js +2 -1
  45. package/dist/components/tttx-button.js +48 -48
  46. package/dist/components/tttx-filter.js +184 -184
  47. package/dist/components/tttx-form.js +380 -380
  48. package/dist/components/tttx-icon2.js +28 -28
  49. package/dist/components/tttx-keyvalue-block.js +76 -76
  50. package/dist/components/tttx-list.js +65 -65
  51. package/dist/components/tttx-loading-spinner.js +33 -33
  52. package/dist/components/tttx-sorter.d.ts +11 -0
  53. package/dist/components/tttx-sorter.js +141 -0
  54. package/dist/components/tttx-standalone-input.js +107 -107
  55. package/dist/components/tttx-toolbar.js +26 -26
  56. package/dist/esm/{index-e888a5f4.js → index-86faeaab.js} +3 -88
  57. package/dist/esm/loader.js +3 -4
  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 +152 -152
  66. package/dist/esm/tttx-form.entry.js +363 -363
  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 +108 -0
  72. package/dist/esm/tttx-standalone-input.entry.js +60 -60
  73. package/dist/esm/tttx-toolbar.entry.js +10 -10
  74. package/dist/esm/tttx.js +3 -4
  75. package/dist/tttx/p-12fc0b16.entry.js +3 -0
  76. package/dist/tttx/p-52a47b7c.js +2 -0
  77. package/dist/tttx/p-5d9b6bc0.entry.js +1 -0
  78. package/dist/tttx/{p-41f5b296.entry.js → p-603f6ebe.entry.js} +1 -1
  79. package/dist/tttx/{p-e145951b.entry.js → p-72b4c98a.entry.js} +1 -1
  80. package/dist/tttx/{p-043f9b8a.entry.js → p-8f3badad.entry.js} +1 -1
  81. package/dist/tttx/{p-4cf3e1e0.entry.js → p-ae48fe5a.entry.js} +1 -1
  82. package/dist/tttx/{p-01f4628e.entry.js → p-bdb054b2.entry.js} +1 -1
  83. package/dist/tttx/{p-dc5c356b.entry.js → p-c72d1a03.entry.js} +1 -1
  84. package/dist/tttx/{p-96bbf1ed.entry.js → p-e25d5fe2.entry.js} +1 -1
  85. package/dist/tttx/{p-b3a03986.entry.js → p-f1d7eb35.entry.js} +1 -1
  86. package/dist/tttx/tttx.esm.js +1 -1
  87. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
  88. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
  89. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
  90. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
  91. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
  92. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
  93. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  94. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  95. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +37 -37
  96. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +43 -43
  97. package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
  98. package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
  99. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +114 -114
  100. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +13 -13
  101. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
  102. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
  103. package/dist/types/components/molecules/tttx-sorter/interfaces.d.ts +9 -0
  104. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -0
  105. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -0
  106. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +56 -56
  107. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +123 -123
  108. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
  109. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
  110. package/dist/types/components/palette.stories.d.ts +6 -6
  111. package/dist/types/components.d.ts +27 -0
  112. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  113. package/dist/types/icons.d.ts +2 -2
  114. package/dist/types/index.d.ts +1 -1
  115. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  116. package/dist/types/stencil-public-runtime.d.ts +3 -59
  117. package/loader/index.d.ts +0 -9
  118. package/package.json +1 -1
  119. package/dist/tttx/p-6dff6b5a.entry.js +0 -3
  120. package/dist/tttx/p-f764ffc4.js +0 -2
@@ -1,43 +1,43 @@
1
- declare const _default: {
2
- title: string;
3
- component: string;
4
- argTypes: {
5
- filterButtonStyle: {
6
- control: {
7
- type: string;
8
- };
9
- options: string[];
10
- };
11
- showSearchField: {
12
- control: {
13
- type: string;
14
- };
15
- };
16
- showSelectAll: {
17
- control: {
18
- type: string;
19
- };
20
- };
21
- showOptionIcons: {
22
- control: {
23
- type: string;
24
- };
25
- };
26
- filterHeader: {
27
- control: {
28
- type: string;
29
- };
30
- };
31
- };
32
- parameters: {
33
- actions: {
34
- handles: string[];
35
- };
36
- };
37
- decorators: import("@storybook/types").Addon_DecoratorFunction<unknown>[];
38
- };
39
- export default _default;
40
- export declare const ExampleFilter: (args: any) => string;
41
- export declare const ListFilterWithoutSearchField: (args: any) => string;
42
- export declare const TableIconWithoutOptionIconsOrSelectAll: (args: any) => string;
43
- export declare const ListIconWithoutSearchField: (args: any) => string;
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ argTypes: {
5
+ filterButtonStyle: {
6
+ control: {
7
+ type: string;
8
+ };
9
+ options: string[];
10
+ };
11
+ showSearchField: {
12
+ control: {
13
+ type: string;
14
+ };
15
+ };
16
+ showSelectAll: {
17
+ control: {
18
+ type: string;
19
+ };
20
+ };
21
+ showOptionIcons: {
22
+ control: {
23
+ type: string;
24
+ };
25
+ };
26
+ filterHeader: {
27
+ control: {
28
+ type: string;
29
+ };
30
+ };
31
+ };
32
+ parameters: {
33
+ actions: {
34
+ handles: string[];
35
+ };
36
+ };
37
+ decorators: import("@storybook/types").Addon_DecoratorFunction<unknown>[];
38
+ };
39
+ export default _default;
40
+ export declare const ExampleFilter: (args: any) => string;
41
+ export declare const ListFilterWithoutSearchField: (args: any) => string;
42
+ export declare const TableIconWithoutOptionIconsOrSelectAll: (args: any) => string;
43
+ export declare const ListIconWithoutSearchField: (args: any) => string;
@@ -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,114 @@
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 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,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 SingleFormItem: () => 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
+ }
@@ -1,14 +1,14 @@
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 BasicStringList: any;
13
- export declare const BasicObjectList: any;
14
- export declare const BasicClickableList: any;
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 BasicStringList: any;
13
+ export declare const BasicObjectList: any;
14
+ export declare const BasicClickableList: any;
@@ -0,0 +1,9 @@
1
+ export interface SorterData {
2
+ sorterOptions: { optionLabel: string }[];
3
+ }
4
+
5
+ export interface SorterChangeEvent {
6
+ sorterKey: string;
7
+ sorterDirection: 'ascending' | 'descending';
8
+ sortField: string;
9
+ }
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ import { SorterData, SorterChangeEvent } from './interfaces';
3
+ export declare class TttxSorter {
4
+ sorterKey: string;
5
+ defaultSortDirection: 'ascending' | 'descending';
6
+ fieldOptionsData: string | SorterData;
7
+ defaultOption: string;
8
+ selectedField: string;
9
+ sortDirection: 'ascending' | 'descending';
10
+ dropdownExpand: boolean;
11
+ dropdownOptions: HTMLElement[];
12
+ sorterChangeEvent: EventEmitter<SorterChangeEvent>;
13
+ el: any;
14
+ emitSortEvent(): void;
15
+ onSortToggleClick(event: Event): void;
16
+ onDropdownClicked(): void;
17
+ onDropdownSelected(event: Event): void;
18
+ render(): any;
19
+ }
@@ -0,0 +1,30 @@
1
+ declare const _default: {
2
+ title: string;
3
+ component: string;
4
+ argTypes: {
5
+ fieldOptionsData: {
6
+ control: {
7
+ type: string;
8
+ };
9
+ };
10
+ defaultOption: {
11
+ control: {
12
+ type: string;
13
+ };
14
+ };
15
+ sorterKey: {
16
+ control: {
17
+ type: string;
18
+ };
19
+ };
20
+ };
21
+ parameters: {
22
+ actions: {
23
+ handles: string[];
24
+ };
25
+ };
26
+ decorators: import("@storybook/types").Addon_DecoratorFunction<unknown>[];
27
+ };
28
+ export default _default;
29
+ export declare const BasicSorter: any;
30
+ export declare const AnotherSorter: any;
@@ -1,56 +1,56 @@
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
- showerrormsg: boolean;
11
- showerrorbubble: boolean;
12
- errormsg: string;
13
- iconleft: string;
14
- iconright: string;
15
- inputicon: string;
16
- inline: boolean;
17
- inputAutocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
18
- inputAutofocus: boolean;
19
- /**
20
- * Defines what action to present for the enter key on virtual keyboards
21
- */
22
- inputKeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
23
- /**
24
- * tabindex - Allows the HTML elements to be focusable
25
- * @example <caption>In HTML (like `index.html`)</caption>
26
- * <tttx-standalone-input input-index="1" />
27
- * @example <caption>In TSX files</caption>
28
- * <tttx-standalone-input inputIndex={1} />
29
- */
30
- inputIndex: string | number;
31
- inputTitle: string;
32
- autocomplete: 'off' | 'on';
33
- checked: boolean;
34
- disabled: boolean;
35
- max: MinMaxDates | number;
36
- maxlength: string | number;
37
- min: MinMaxDates | number;
38
- minlength: string | number;
39
- name: string;
40
- pattern: string;
41
- placeholder: string;
42
- readonly: string | boolean;
43
- required: boolean;
44
- step: string | number;
45
- type: string;
46
- value: string | number;
47
- valueChanged: EventEmitter<string>;
48
- handleChange(event: Event | InputEvent): void;
49
- focusChanged: EventEmitter<string>;
50
- handleFocus(event: Event | InputEvent): void;
51
- blurChanged: EventEmitter<string>;
52
- handleBlur(event: Event | InputEvent): void;
53
- invalidChanged: EventEmitter<string>;
54
- handleInvalid(event: Event | InputEvent): void;
55
- render(): any;
56
- }
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
+ label: string;
10
+ showerrormsg: boolean;
11
+ showerrorbubble: boolean;
12
+ errormsg: string;
13
+ iconleft: string;
14
+ iconright: string;
15
+ inputicon: string;
16
+ inline: boolean;
17
+ inputAutocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
18
+ inputAutofocus: boolean;
19
+ /**
20
+ * Defines what action to present for the enter key on virtual keyboards
21
+ */
22
+ inputKeyhint: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
23
+ /**
24
+ * tabindex - Allows the HTML elements to be focusable
25
+ * @example <caption>In HTML (like `index.html`)</caption>
26
+ * <tttx-standalone-input input-index="1" />
27
+ * @example <caption>In TSX files</caption>
28
+ * <tttx-standalone-input inputIndex={1} />
29
+ */
30
+ inputIndex: string | number;
31
+ inputTitle: string;
32
+ autocomplete: 'off' | 'on';
33
+ checked: boolean;
34
+ disabled: boolean;
35
+ max: MinMaxDates | number;
36
+ maxlength: string | number;
37
+ min: MinMaxDates | number;
38
+ minlength: string | number;
39
+ name: string;
40
+ pattern: string;
41
+ placeholder: string;
42
+ readonly: string | boolean;
43
+ required: boolean;
44
+ step: string | number;
45
+ type: string;
46
+ value: string | number;
47
+ valueChanged: EventEmitter<string>;
48
+ handleChange(event: Event | InputEvent): void;
49
+ focusChanged: EventEmitter<string>;
50
+ handleFocus(event: Event | InputEvent): void;
51
+ blurChanged: EventEmitter<string>;
52
+ handleBlur(event: Event | InputEvent): void;
53
+ invalidChanged: EventEmitter<string>;
54
+ handleInvalid(event: Event | InputEvent): void;
55
+ render(): any;
56
+ }