@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.
Files changed (117) hide show
  1. package/dist/cjs/{domsanitiser.options-b2d88e35.js → domsanitiser.options-cd2932a9.js} +17 -17
  2. package/dist/cjs/tttx-button.cjs.entry.js +23 -23
  3. package/dist/cjs/tttx-dialog-box.cjs.entry.js +69 -69
  4. package/dist/cjs/tttx-filter.cjs.entry.js +182 -180
  5. package/dist/cjs/tttx-form.cjs.entry.js +457 -457
  6. package/dist/cjs/tttx-icon.cjs.entry.js +10 -10
  7. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +58 -58
  8. package/dist/cjs/tttx-list.cjs.entry.js +31 -31
  9. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +15 -15
  10. package/dist/cjs/tttx-qrcode.cjs.entry.js +27 -27
  11. package/dist/cjs/tttx-sorter.cjs.entry.js +107 -104
  12. package/dist/cjs/tttx-standalone-input.cjs.entry.js +78 -78
  13. package/dist/cjs/tttx-toolbar.cjs.entry.js +9 -9
  14. package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
  15. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
  16. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
  17. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
  18. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
  19. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
  20. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
  21. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  22. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.js +81 -81
  23. package/dist/collection/components/atoms/tttx-qrcode/tttx-qrcode.stories.js +22 -22
  24. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.js +172 -172
  25. package/dist/collection/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.js +289 -289
  26. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +416 -400
  27. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +80 -80
  28. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
  29. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -61
  30. package/dist/collection/components/molecules/tttx-form/tttx-form.js +479 -479
  31. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +272 -272
  32. package/dist/collection/components/molecules/tttx-list/tttx-list.js +105 -105
  33. package/dist/collection/components/molecules/tttx-list/tttx-list.stories.js +43 -43
  34. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.js +253 -236
  35. package/dist/collection/components/molecules/tttx-sorter/tttx-sorter.stories.js +42 -42
  36. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.js +759 -759
  37. package/dist/collection/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.js +172 -172
  38. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.js +44 -44
  39. package/dist/collection/components/molecules/tttx-toolbar/tttx-toolbar.stories.js +14 -14
  40. package/dist/collection/components/palette.stories.js +7 -7
  41. package/dist/collection/docs/gettingstarted-developer.stories.js +5 -5
  42. package/dist/collection/icons.js +2838 -2838
  43. package/dist/collection/index.js +1 -1
  44. package/dist/collection/shared/domsanitiser.options.js +14 -14
  45. package/dist/components/domsanitiser.options.js +17 -17
  46. package/dist/components/tttx-button2.js +48 -48
  47. package/dist/components/tttx-dialog-box.js +97 -97
  48. package/dist/components/tttx-filter.js +217 -215
  49. package/dist/components/tttx-form.js +475 -475
  50. package/dist/components/tttx-icon2.js +28 -28
  51. package/dist/components/tttx-keyvalue-block.js +76 -76
  52. package/dist/components/tttx-list.js +53 -53
  53. package/dist/components/tttx-loading-spinner.js +33 -33
  54. package/dist/components/tttx-qrcode.js +45 -45
  55. package/dist/components/tttx-sorter.js +136 -133
  56. package/dist/components/tttx-standalone-input.js +130 -130
  57. package/dist/components/tttx-toolbar.js +26 -26
  58. package/dist/esm/{domsanitiser.options-81611f82.js → domsanitiser.options-563c1cf3.js} +17 -17
  59. package/dist/esm/polyfills/core-js.js +0 -0
  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 +23 -23
  65. package/dist/esm/tttx-dialog-box.entry.js +69 -69
  66. package/dist/esm/tttx-filter.entry.js +182 -180
  67. package/dist/esm/tttx-form.entry.js +457 -457
  68. package/dist/esm/tttx-icon.entry.js +10 -10
  69. package/dist/esm/tttx-keyvalue-block.entry.js +58 -58
  70. package/dist/esm/tttx-list.entry.js +31 -31
  71. package/dist/esm/tttx-loading-spinner.entry.js +15 -15
  72. package/dist/esm/tttx-qrcode.entry.js +27 -27
  73. package/dist/esm/tttx-sorter.entry.js +107 -104
  74. package/dist/esm/tttx-standalone-input.entry.js +78 -78
  75. package/dist/esm/tttx-toolbar.entry.js +9 -9
  76. package/dist/tttx/p-225e6fa6.entry.js +1 -0
  77. package/dist/tttx/{p-bc3b9283.entry.js → p-58d7c978.entry.js} +1 -1
  78. package/dist/tttx/{p-c751ebc2.entry.js → p-8b511fff.entry.js} +1 -1
  79. package/dist/tttx/{p-6a6ff7b7.entry.js → p-909c090d.entry.js} +1 -1
  80. package/dist/tttx/p-a658e1ac.entry.js +1 -0
  81. package/dist/tttx/{p-0b25ac9c.js → p-d3835fde.js} +2 -2
  82. package/dist/tttx/tttx.esm.js +1 -1
  83. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
  84. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
  85. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
  86. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
  87. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
  88. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
  89. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  90. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  91. package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.d.ts +8 -8
  92. package/dist/types/components/atoms/tttx-qrcode/tttx-qrcode.stories.d.ts +23 -23
  93. package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.d.ts +18 -18
  94. package/dist/types/components/molecules/tttx-dialog-box/tttx-dialog-box.stories.d.ts +24 -24
  95. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +44 -43
  96. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +76 -0
  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 +133 -133
  100. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +278 -0
  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 -0
  103. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +21 -20
  104. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -0
  105. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
  106. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +143 -143
  107. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
  108. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
  109. package/dist/types/components/palette.stories.d.ts +6 -6
  110. package/dist/types/components.d.ts +2 -0
  111. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  112. package/dist/types/icons.d.ts +2 -2
  113. package/dist/types/index.d.ts +1 -1
  114. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  115. package/package.json +1 -1
  116. package/dist/tttx/p-3b29e8af.entry.js +0 -1
  117. package/dist/tttx/p-637e7e88.entry.js +0 -1
@@ -1,133 +1,133 @@
1
- import { EventEmitter } from '../../../stencil-public-runtime';
2
- import { ChangeEvent } from 'react';
3
- export declare class TttxForm {
4
- private form;
5
- private fieldset;
6
- private submitButton;
7
- private template;
8
- private _formSchema;
9
- private _data;
10
- formschema: any;
11
- data: any;
12
- dataSubmitted: EventEmitter<FormData>;
13
- dataChanged: EventEmitter<{
14
- name: string;
15
- value: any;
16
- }>;
17
- onFormSchemaChange(newValue: any): void;
18
- onDataChange(newValue: any): void;
19
- /**
20
- * Handles the focus event for a form field and emits a "dataChanged" event
21
- * to the parent component with the field name and its new value.
22
- *
23
- * @param {ChangeEvent} event - The focus event triggered by the field.
24
- * @return {void}
25
- */
26
- fieldChanged(event: ChangeEvent): void;
27
- submit(): Promise<void>;
28
- /**
29
- * Submits the form data to the server.
30
- *
31
- * @param {SubmitEvent} event - The event object for the form submission.
32
- * @returns {void}
33
- *
34
- * @example
35
- * const form = document.getElementById('myForm');
36
- * form.addEventListener('submit', (event) => {
37
- * doSubmit(event);
38
- * });
39
- */
40
- doSubmit(event: SubmitEvent): void;
41
- componentWillLoad(): void;
42
- componentWillRender(): void;
43
- /**
44
- * Creates a new HTMLSelectElement with a set of options.
45
- *
46
- * @param {string} formKey - The name of the dropdown field, as specified in the form schema.
47
- * @param {Object} formProperties - An object containing additional properties, such as the field type and options properties.
48
- * @param {'select'} formProperties.type - The type of form field. In this case, it will always be "select".
49
- * @param {Object} formProperties.validation - A set of validation rules for the field.
50
- * @param {Object[]} formProperties.options - A list of properties to pass to the select options.
51
- * @param {string} formProperties.options.label - The visible value of the option.
52
- * @param {string} formProperties.options.value - The actual value of the option.
53
- */
54
- createSelect(formKey: string, formProperties: any): HTMLSelectElement;
55
- /**
56
- * Appends an option to a select element
57
- *
58
- * @param {HTMLSelectElement} select - The select elements to attach the option to.
59
- * @param {value} value - The value of the option.
60
- * @param {label} label - The label which will be displayed on the form for the option.
61
- */
62
- appendOption(select: any, optionProperties: any): void;
63
- /**
64
- * Creates a new HTMLInputElement with the specified name, type, and placeholder (if any),
65
- * and sets its autocomplete and autocapitalization properties to off.
66
- *
67
- * @param {string} formKey - The name of the input field, as specified in the form schema.
68
- * @param {Object} formProperties - An object containing additional properties for the input field, such as its type and placeholder value.
69
- * @param {string} formProperties.type - The type of the input field (e.g., "text", "email", "number", etc.).
70
- * @param {string} [formProperties.placeholder] - An optional placeholder value to display in the input field.
71
- * @return {HTMLInputElement} - The new input element.
72
- */
73
- createInput(formKey: any, formProperties: any): HTMLInputElement;
74
- /**
75
- * Applies validation attributes to an input element based on the specified validation object.
76
- * If a certain property is present in the object, it will set the corresponding attribute on
77
- * the input element (e.g., "required" will set the "required" and "data-required" attributes,
78
- * "pattern" will set the "pattern" and "data-pattern" attributes, etc.).
79
- *
80
- * @param {HTMLInputElement} input - The input element to apply validation attributes to.
81
- * @param {Object} validation - An object containing the validation rules for the input field.
82
- * @param {Object} [validation.required] - An object containing a "message" property to display if the field is required.
83
- * @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.
84
- * @param {Object} [validation.badInput] - An object containing a "message" property to display if the field value is invalid.
85
- * @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.
86
- * @param {string} [validation.maxlength] - The maximum length of the input field.
87
- * @return {void}
88
- */
89
- applyValidation(input: any, validation: any): void;
90
- createErrorBubble(): HTMLDivElement;
91
- appendCheckboxInput(formProperties: any, input: any, label: any): void;
92
- /**
93
- * Creates a new <label> element with the "inputBlock" class and the specified label text,
94
- * and appends the input element and error bubble element to it. If the form property has
95
- * no validation object, it adds an "optional" span element to the label.
96
- *
97
- * @param {Object} formProperties - An object containing properties for the form field, including its label text and validation rules.
98
- * @param {HTMLInputElement} input - The input element to associate with the label.
99
- * @param {HTMLDivElement} errorBubble - The error bubble element to display error messages in.
100
- * @return {HTMLLabelElement} - The new label element.
101
- */
102
- createLabel(formProperties: any, input: any, errorBubble: any): HTMLLabelElement;
103
- /**
104
- * Populates the form template with input fields and labels based on the properties of the
105
- * current form schema. For each property in the schema, it creates an input element, applies
106
- * any validation rules to it, creates an error bubble and label element, and appends them
107
- * to the form template. Finally, it creates and appends a submit button element to the form.
108
- *
109
- * @return {void}
110
- */
111
- populateFormFromSchema(): void;
112
- /**
113
- * Clones the form template and binds event listeners to its input elements. First, it checks if
114
- * there is a form schema present. If so, it clones the template's content, binds events to form
115
- * input elements, and appends the cloned form elements to the fieldset. The event listeners include
116
- * "oninvalid" (to check input validity on submit), "onblur" (to check input validity on blur),
117
- * "onkeyup" (to handle changes in input fields), and "onchange" (to handle changes in select fields).
118
- *
119
- * @return {void}
120
- */
121
- componentDidRender(): void;
122
- validityCheckWrapper(event: any): void;
123
- /**
124
- * Renders the component's template as a form element with a fieldset container. The form's
125
- * "onSubmit" event is bound to the "doSubmit" function, which handles the form submission
126
- * and emits a "dataSubmitted" event with the form data. The fieldset element is assigned
127
- * to the "fieldset" instance variable using a ref, so it can be populated with form elements
128
- * later on.
129
- *
130
- * @return {JSX.Element} - The rendered form template as a JSX element.
131
- */
132
- render(): any;
133
- }
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ import { ChangeEvent } from 'react';
3
+ export declare class TttxForm {
4
+ private form;
5
+ private fieldset;
6
+ private submitButton;
7
+ private template;
8
+ private _formSchema;
9
+ private _data;
10
+ formschema: any;
11
+ data: any;
12
+ dataSubmitted: EventEmitter<FormData>;
13
+ dataChanged: EventEmitter<{
14
+ name: string;
15
+ value: any;
16
+ }>;
17
+ onFormSchemaChange(newValue: any): void;
18
+ onDataChange(newValue: any): void;
19
+ /**
20
+ * Handles the focus event for a form field and emits a "dataChanged" event
21
+ * to the parent component with the field name and its new value.
22
+ *
23
+ * @param {ChangeEvent} event - The focus event triggered by the field.
24
+ * @return {void}
25
+ */
26
+ fieldChanged(event: ChangeEvent): void;
27
+ submit(): Promise<void>;
28
+ /**
29
+ * Submits the form data to the server.
30
+ *
31
+ * @param {SubmitEvent} event - The event object for the form submission.
32
+ * @returns {void}
33
+ *
34
+ * @example
35
+ * const form = document.getElementById('myForm');
36
+ * form.addEventListener('submit', (event) => {
37
+ * doSubmit(event);
38
+ * });
39
+ */
40
+ doSubmit(event: SubmitEvent): void;
41
+ componentWillLoad(): void;
42
+ componentWillRender(): void;
43
+ /**
44
+ * Creates a new HTMLSelectElement with a set of options.
45
+ *
46
+ * @param {string} formKey - The name of the dropdown field, as specified in the form schema.
47
+ * @param {Object} formProperties - An object containing additional properties, such as the field type and options properties.
48
+ * @param {'select'} formProperties.type - The type of form field. In this case, it will always be "select".
49
+ * @param {Object} formProperties.validation - A set of validation rules for the field.
50
+ * @param {Object[]} formProperties.options - A list of properties to pass to the select options.
51
+ * @param {string} formProperties.options.label - The visible value of the option.
52
+ * @param {string} formProperties.options.value - The actual value of the option.
53
+ */
54
+ createSelect(formKey: string, formProperties: any): HTMLSelectElement;
55
+ /**
56
+ * Appends an option to a select element
57
+ *
58
+ * @param {HTMLSelectElement} select - The select elements to attach the option to.
59
+ * @param {value} value - The value of the option.
60
+ * @param {label} label - The label which will be displayed on the form for the option.
61
+ */
62
+ appendOption(select: any, optionProperties: any): void;
63
+ /**
64
+ * Creates a new HTMLInputElement with the specified name, type, and placeholder (if any),
65
+ * and sets its autocomplete and autocapitalization properties to off.
66
+ *
67
+ * @param {string} formKey - The name of the input field, as specified in the form schema.
68
+ * @param {Object} formProperties - An object containing additional properties for the input field, such as its type and placeholder value.
69
+ * @param {string} formProperties.type - The type of the input field (e.g., "text", "email", "number", etc.).
70
+ * @param {string} [formProperties.placeholder] - An optional placeholder value to display in the input field.
71
+ * @return {HTMLInputElement} - The new input element.
72
+ */
73
+ createInput(formKey: any, formProperties: any): HTMLInputElement;
74
+ /**
75
+ * Applies validation attributes to an input element based on the specified validation object.
76
+ * If a certain property is present in the object, it will set the corresponding attribute on
77
+ * the input element (e.g., "required" will set the "required" and "data-required" attributes,
78
+ * "pattern" will set the "pattern" and "data-pattern" attributes, etc.).
79
+ *
80
+ * @param {HTMLInputElement} input - The input element to apply validation attributes to.
81
+ * @param {Object} validation - An object containing the validation rules for the input field.
82
+ * @param {Object} [validation.required] - An object containing a "message" property to display if the field is required.
83
+ * @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.
84
+ * @param {Object} [validation.badInput] - An object containing a "message" property to display if the field value is invalid.
85
+ * @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.
86
+ * @param {string} [validation.maxlength] - The maximum length of the input field.
87
+ * @return {void}
88
+ */
89
+ applyValidation(input: any, validation: any): void;
90
+ createErrorBubble(): HTMLDivElement;
91
+ appendCheckboxInput(formProperties: any, input: any, label: any): void;
92
+ /**
93
+ * Creates a new <label> element with the "inputBlock" class and the specified label text,
94
+ * and appends the input element and error bubble element to it. If the form property has
95
+ * no validation object, it adds an "optional" span element to the label.
96
+ *
97
+ * @param {Object} formProperties - An object containing properties for the form field, including its label text and validation rules.
98
+ * @param {HTMLInputElement} input - The input element to associate with the label.
99
+ * @param {HTMLDivElement} errorBubble - The error bubble element to display error messages in.
100
+ * @return {HTMLLabelElement} - The new label element.
101
+ */
102
+ createLabel(formProperties: any, input: any, errorBubble: any): HTMLLabelElement;
103
+ /**
104
+ * Populates the form template with input fields and labels based on the properties of the
105
+ * current form schema. For each property in the schema, it creates an input element, applies
106
+ * any validation rules to it, creates an error bubble and label element, and appends them
107
+ * to the form template. Finally, it creates and appends a submit button element to the form.
108
+ *
109
+ * @return {void}
110
+ */
111
+ populateFormFromSchema(): void;
112
+ /**
113
+ * Clones the form template and binds event listeners to its input elements. First, it checks if
114
+ * there is a form schema present. If so, it clones the template's content, binds events to form
115
+ * input elements, and appends the cloned form elements to the fieldset. The event listeners include
116
+ * "oninvalid" (to check input validity on submit), "onblur" (to check input validity on blur),
117
+ * "onkeyup" (to handle changes in input fields), and "onchange" (to handle changes in select fields).
118
+ *
119
+ * @return {void}
120
+ */
121
+ componentDidRender(): void;
122
+ validityCheckWrapper(event: any): void;
123
+ /**
124
+ * Renders the component's template as a form element with a fieldset container. The form's
125
+ * "onSubmit" event is bound to the "doSubmit" function, which handles the form submission
126
+ * and emits a "dataSubmitted" event with the form data. The fieldset element is assigned
127
+ * to the "fieldset" instance variable using a ref, so it can be populated with form elements
128
+ * later on.
129
+ *
130
+ * @return {JSX.Element} - The rendered form template as a JSX element.
131
+ */
132
+ render(): any;
133
+ }
@@ -0,0 +1,278 @@
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 SingleFormItem: {
13
+ (args: any): string;
14
+ args: {
15
+ formSchema: {
16
+ properties: {
17
+ input: {
18
+ type: string;
19
+ format: string;
20
+ form: {
21
+ type: string;
22
+ label: string;
23
+ validation: {
24
+ required: {
25
+ message: string;
26
+ };
27
+ };
28
+ };
29
+ };
30
+ };
31
+ };
32
+ };
33
+ };
34
+ export declare const ExampleFormFromJSON: {
35
+ (args: any): string;
36
+ args: {
37
+ formSchema: {
38
+ properties: {
39
+ title: {
40
+ type: string;
41
+ format: string;
42
+ form: {
43
+ type: string;
44
+ placeholder: string;
45
+ label: string;
46
+ };
47
+ };
48
+ forename: {
49
+ type: string;
50
+ format: string;
51
+ form: {
52
+ type: string;
53
+ placeholder: string;
54
+ label: string;
55
+ validation: {
56
+ required: {
57
+ message: string;
58
+ };
59
+ };
60
+ };
61
+ };
62
+ surname: {
63
+ type: string;
64
+ format: string;
65
+ form: {
66
+ type: string;
67
+ placeholder: string;
68
+ label: string;
69
+ validation: {
70
+ required: {
71
+ message: string;
72
+ };
73
+ };
74
+ };
75
+ };
76
+ postcode: {
77
+ type: string;
78
+ format: string;
79
+ form: {
80
+ type: string;
81
+ placeholder: string;
82
+ label: string;
83
+ validation: {
84
+ required: {
85
+ message: string;
86
+ };
87
+ pattern: {
88
+ pattern: string;
89
+ message: string;
90
+ };
91
+ maxlength: number;
92
+ };
93
+ };
94
+ };
95
+ age: {
96
+ type: string;
97
+ format: string;
98
+ form: {
99
+ type: string;
100
+ placeholder: string;
101
+ label: string;
102
+ validation: {
103
+ required: {
104
+ message: string;
105
+ };
106
+ badInput: {
107
+ message: string;
108
+ };
109
+ };
110
+ };
111
+ };
112
+ dob: {
113
+ type: string;
114
+ format: string;
115
+ form: {
116
+ type: string;
117
+ placeholder: string;
118
+ label: string;
119
+ validation: {
120
+ required: {
121
+ message: string;
122
+ };
123
+ minmax: {
124
+ min: string;
125
+ max: string;
126
+ message: string;
127
+ };
128
+ };
129
+ };
130
+ };
131
+ dropdown: {
132
+ form: {
133
+ type: string;
134
+ blankDefault: boolean;
135
+ label: string;
136
+ options: ({
137
+ label: string;
138
+ value: string;
139
+ placeholder: boolean;
140
+ } | {
141
+ label: string;
142
+ value: string;
143
+ placeholder?: undefined;
144
+ })[];
145
+ validation: {
146
+ required: {
147
+ message: string;
148
+ };
149
+ };
150
+ };
151
+ };
152
+ permissions: {
153
+ form: {
154
+ type: string;
155
+ label: string;
156
+ inlineLabel: string;
157
+ validation: {
158
+ required: {
159
+ message: string;
160
+ };
161
+ };
162
+ };
163
+ };
164
+ };
165
+ };
166
+ };
167
+ };
168
+ export declare const PrePopulateForm: {
169
+ (args: any): string;
170
+ args: {
171
+ data: {
172
+ title: string;
173
+ forename: string;
174
+ surname: string;
175
+ postcode: string;
176
+ age: string;
177
+ dob: string;
178
+ };
179
+ formSchema: {
180
+ properties: {
181
+ title: {
182
+ type: string;
183
+ format: string;
184
+ form: {
185
+ type: string;
186
+ placeholder: string;
187
+ label: string;
188
+ };
189
+ };
190
+ forename: {
191
+ type: string;
192
+ format: string;
193
+ form: {
194
+ type: string;
195
+ placeholder: string;
196
+ label: string;
197
+ validation: {
198
+ required: {
199
+ message: string;
200
+ };
201
+ };
202
+ };
203
+ };
204
+ surname: {
205
+ type: string;
206
+ format: string;
207
+ form: {
208
+ type: string;
209
+ placeholder: string;
210
+ label: string;
211
+ validation: {
212
+ required: {
213
+ message: string;
214
+ };
215
+ };
216
+ };
217
+ };
218
+ postcode: {
219
+ type: string;
220
+ format: string;
221
+ form: {
222
+ type: string;
223
+ placeholder: string;
224
+ label: string;
225
+ validation: {
226
+ required: {
227
+ message: string;
228
+ };
229
+ pattern: {
230
+ pattern: string;
231
+ message: string;
232
+ };
233
+ maxlength: number;
234
+ };
235
+ };
236
+ };
237
+ age: {
238
+ type: string;
239
+ format: string;
240
+ form: {
241
+ type: string;
242
+ placeholder: string;
243
+ label: string;
244
+ readonly: boolean;
245
+ validation: {
246
+ required: {
247
+ message: string;
248
+ };
249
+ badInput: {
250
+ message: string;
251
+ };
252
+ };
253
+ };
254
+ };
255
+ dob: {
256
+ type: string;
257
+ format: string;
258
+ form: {
259
+ type: string;
260
+ placeholder: string;
261
+ label: string;
262
+ readonly: boolean;
263
+ validation: {
264
+ required: {
265
+ message: string;
266
+ };
267
+ minmax: {
268
+ min: string;
269
+ max: string;
270
+ message: string;
271
+ };
272
+ };
273
+ };
274
+ };
275
+ };
276
+ };
277
+ };
278
+ };
@@ -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
+ }
@@ -0,0 +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,20 +1,21 @@
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
- handleCloseSorter(): void;
15
- emitSortEvent(): void;
16
- onSortToggleClick(event: Event): void;
17
- onDropdownClicked(): void;
18
- onDropdownSelected(event: Event): void;
19
- render(): any;
20
- }
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
+ toggleSorter: EventEmitter<boolean>;
14
+ el: any;
15
+ handleCloseSorter(): void;
16
+ emitSortEvent(): void;
17
+ onSortToggleClick(event: Event): void;
18
+ onDropdownClicked(): void;
19
+ onDropdownSelected(event: Event): void;
20
+ render(): any;
21
+ }
@@ -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;