@3t-transform/threeteeui 0.1.36 → 0.1.41

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 (125) hide show
  1. package/dist/cjs/domsanitiser.options-277161b9.js +1667 -0
  2. package/dist/cjs/{index-457ca775.js → index-76f14107.js} +2 -88
  3. package/dist/cjs/loader.cjs.js +2 -3
  4. package/dist/cjs/tttx-button.cjs.entry.js +25 -25
  5. package/dist/cjs/tttx-filter.cjs.entry.js +159 -159
  6. package/dist/cjs/tttx-form.cjs.entry.js +457 -373
  7. package/dist/cjs/tttx-icon.cjs.entry.js +11 -11
  8. package/dist/cjs/tttx-keyvalue-block.cjs.entry.js +59 -59
  9. package/dist/cjs/tttx-list.cjs.entry.js +32 -1694
  10. package/dist/cjs/tttx-loading-spinner.cjs.entry.js +16 -16
  11. package/dist/cjs/tttx-sorter.cjs.entry.js +102 -102
  12. package/dist/cjs/tttx-standalone-input.cjs.entry.js +79 -79
  13. package/dist/cjs/tttx-toolbar.cjs.entry.js +10 -10
  14. package/dist/cjs/tttx.cjs.js +2 -6
  15. package/dist/collection/collection-manifest.json +2 -2
  16. package/dist/collection/components/atoms/tttx-button/tttx-button.css +4 -4
  17. package/dist/collection/components/atoms/tttx-button/tttx-button.js +110 -110
  18. package/dist/collection/components/atoms/tttx-button/tttx-button.stories.js +14 -14
  19. package/dist/collection/components/atoms/tttx-icon/tttx-icon.js +62 -62
  20. package/dist/collection/components/atoms/tttx-icon/tttx-icon.stories.js +22 -22
  21. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.js +109 -109
  22. package/dist/collection/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.js +38 -38
  23. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.js +67 -67
  24. package/dist/collection/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.js +17 -17
  25. package/dist/collection/components/molecules/tttx-filter/tttx-filter.js +334 -334
  26. package/dist/collection/components/molecules/tttx-filter/tttx-filter.stories.js +62 -62
  27. package/dist/collection/components/molecules/tttx-form/lib/setErrorState.js +37 -37
  28. package/dist/collection/components/molecules/tttx-form/lib/validityCheck.js +61 -58
  29. package/dist/collection/components/molecules/tttx-form/tttx-form.css +98 -2
  30. package/dist/collection/components/molecules/tttx-form/tttx-form.js +477 -393
  31. package/dist/collection/components/molecules/tttx-form/tttx-form.stories.js +274 -218
  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 +224 -224
  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 +1664 -0
  46. package/dist/components/index.d.ts +0 -9
  47. package/dist/components/index.js +1 -1
  48. package/dist/components/tttx-button.js +49 -49
  49. package/dist/components/tttx-filter.js +191 -191
  50. package/dist/components/tttx-form.js +475 -391
  51. package/dist/components/tttx-icon2.js +28 -28
  52. package/dist/components/tttx-keyvalue-block.js +76 -76
  53. package/dist/components/tttx-list.js +54 -1716
  54. package/dist/components/tttx-loading-spinner.js +33 -33
  55. package/dist/components/tttx-sorter.js +130 -130
  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-cc420431.js +1664 -0
  59. package/dist/esm/{index-d784fb3e.js → index-9cde46a5.js} +3 -88
  60. package/dist/esm/loader.js +2 -3
  61. package/dist/esm/polyfills/core-js.js +0 -0
  62. package/dist/esm/polyfills/css-shim.js +1 -1
  63. package/dist/esm/polyfills/dom.js +0 -0
  64. package/dist/esm/polyfills/es5-html-element.js +0 -0
  65. package/dist/esm/polyfills/index.js +0 -0
  66. package/dist/esm/polyfills/system.js +0 -0
  67. package/dist/esm/tttx-button.entry.js +25 -25
  68. package/dist/esm/tttx-filter.entry.js +159 -159
  69. package/dist/esm/tttx-form.entry.js +457 -373
  70. package/dist/esm/tttx-icon.entry.js +11 -11
  71. package/dist/esm/tttx-keyvalue-block.entry.js +59 -59
  72. package/dist/esm/tttx-list.entry.js +32 -1694
  73. package/dist/esm/tttx-loading-spinner.entry.js +16 -16
  74. package/dist/esm/tttx-sorter.entry.js +102 -102
  75. package/dist/esm/tttx-standalone-input.entry.js +79 -79
  76. package/dist/esm/tttx-toolbar.entry.js +10 -10
  77. package/dist/esm/tttx.js +2 -3
  78. package/dist/tttx/{p-400868f1.entry.js → p-3b1be372.entry.js} +1 -1
  79. package/dist/tttx/{p-563605b2.entry.js → p-561224f5.entry.js} +1 -1
  80. package/dist/tttx/{p-b720c4ad.entry.js → p-9f1e9cc1.entry.js} +1 -1
  81. package/dist/tttx/{p-798a098a.entry.js → p-aef96333.entry.js} +1 -1
  82. package/dist/tttx/p-b4290a5b.js +3 -0
  83. package/dist/tttx/p-bd1edaed.entry.js +1 -0
  84. package/dist/tttx/p-d0ff9ad0.entry.js +1 -0
  85. package/dist/tttx/{p-cac26a1b.entry.js → p-d2f1aa8e.entry.js} +1 -1
  86. package/dist/tttx/p-db059a69.js +2 -0
  87. package/dist/tttx/p-dc2a37b0.entry.js +1 -0
  88. package/dist/tttx/{p-ab6ce9f6.entry.js → p-e53c7f9d.entry.js} +1 -1
  89. package/dist/tttx/{p-92cade7f.entry.js → p-f885f17a.entry.js} +1 -1
  90. package/dist/tttx/tttx.esm.js +1 -1
  91. package/dist/types/components/atoms/tttx-button/tttx-button.d.ts +10 -10
  92. package/dist/types/components/atoms/tttx-button/tttx-button.stories.d.ts +10 -10
  93. package/dist/types/components/atoms/tttx-icon/tttx-icon.d.ts +5 -5
  94. package/dist/types/components/atoms/tttx-icon/tttx-icon.stories.d.ts +20 -20
  95. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.d.ts +7 -7
  96. package/dist/types/components/atoms/tttx-keyvalue-block/tttx-keyvalue-block.stories.d.ts +9 -9
  97. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.d.ts +6 -6
  98. package/dist/types/components/atoms/tttx-loading-spinner/tttx-loading-spinner.stories.d.ts +17 -17
  99. package/dist/types/components/molecules/tttx-filter/tttx-filter.d.ts +39 -39
  100. package/dist/types/components/molecules/tttx-filter/tttx-filter.stories.d.ts +68 -68
  101. package/dist/types/components/molecules/tttx-form/lib/setErrorState.d.ts +13 -13
  102. package/dist/types/components/molecules/tttx-form/lib/validityCheck.d.ts +17 -17
  103. package/dist/types/components/molecules/tttx-form/tttx-form.d.ts +133 -111
  104. package/dist/types/components/molecules/tttx-form/tttx-form.stories.d.ts +278 -13
  105. package/dist/types/components/molecules/tttx-list/tttx-list.d.ts +11 -11
  106. package/dist/types/components/molecules/tttx-list/tttx-list.stories.d.ts +14 -14
  107. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.d.ts +19 -19
  108. package/dist/types/components/molecules/tttx-sorter/tttx-sorter.stories.d.ts +30 -30
  109. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.d.ts +69 -69
  110. package/dist/types/components/molecules/tttx-standalone-input/tttx-standalone-input.stories.d.ts +143 -143
  111. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.d.ts +4 -4
  112. package/dist/types/components/molecules/tttx-toolbar/tttx-toolbar.stories.d.ts +13 -13
  113. package/dist/types/components/palette.stories.d.ts +6 -6
  114. package/dist/types/components.d.ts +1 -1
  115. package/dist/types/docs/gettingstarted-developer.stories.d.ts +5 -5
  116. package/dist/types/icons.d.ts +2 -2
  117. package/dist/types/index.d.ts +1 -1
  118. package/dist/types/shared/domsanitiser.options.d.ts +10 -10
  119. package/dist/types/stencil-public-runtime.d.ts +3 -59
  120. package/loader/index.d.ts +0 -9
  121. package/package.json +1 -1
  122. package/dist/tttx/p-0ebffdfc.js +0 -2
  123. package/dist/tttx/p-72e7f7dd.entry.js +0 -3
  124. package/dist/tttx/p-c4162029.entry.js +0 -1
  125. package/dist/tttx/p-eb126fd0.entry.js +0 -1
@@ -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,111 +1,133 @@
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
+ 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,13 +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 ExampleFormFromJSON: () => string;
13
- export declare const PrePopulateForm: () => 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 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
+ }
@@ -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;