adp-web-components 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +9 -9
- package/dist/cjs/demo-form.cjs.entry.js +4 -4
- package/dist/cjs/flexible-container.cjs.entry.js +12 -3
- package/dist/cjs/form-checkbox_3.cjs.entry.js +3 -3
- package/dist/cjs/form-dialog_7.cjs.entry.js +40 -15
- package/dist/cjs/{form-hook-CKjoAb35.js → form-hook-nx-e-Fqg.js} +3 -1
- package/dist/cjs/form-shadow-input.cjs.entry.js +1 -1
- package/dist/cjs/{get-local-language-DFb3E4Vq.js → get-local-language-CgR2mRUL.js} +1 -1
- package/dist/cjs/information-table.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/part-lookup.cjs.entry.js +2 -2
- package/dist/cjs/shift-accordion.cjs.entry.js +1 -1
- package/dist/cjs/shift-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/shift-components.cjs.js +1 -1
- package/dist/cjs/shift-switch.cjs.entry.js +1 -1
- package/dist/cjs/shift-tab-content.cjs.entry.js +1 -1
- package/dist/cjs/shift-tabs_2.cjs.entry.js +10 -10
- package/dist/cjs/test-drive-demo-form.cjs.entry.js +4 -4
- package/dist/cjs/{type-Hh_Btbnk.js → type-6pfyviAl.js} +1 -1
- package/dist/cjs/{type-CLJnbejt.js → type-DHqAkkCB.js} +1 -1
- package/dist/cjs/vehicle-accessories_6.cjs.entry.js +21 -21
- package/dist/cjs/vehicle-lookup.cjs.entry.js +3 -3
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +71 -52
- package/dist/cjs/vin-extractor.cjs.entry.js +1 -1
- package/dist/collection/components/components/empty.css +1 -1
- package/dist/collection/components/components/flexible-container.css +1 -1
- package/dist/collection/components/components/flexible-container.js +32 -2
- package/dist/collection/components/components/information-table.css +1 -1
- package/dist/collection/components/components/loading-spinner.css +1 -1
- package/dist/collection/components/components/shift-accordion.css +1 -1
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/form-elements/form-select.js +83 -22
- package/dist/collection/components/form-elements/form-shadow-input.js +1 -1
- package/dist/collection/components/form-elements/form-structure-error.js +1 -1
- package/dist/collection/components/form-elements/form-structure.js +8 -1
- package/dist/collection/components/form-elements/form-submit.js +2 -2
- package/dist/collection/components/form-elements/form-switch.js +1 -1
- package/dist/collection/components/form-elements/form-text-area.js +2 -2
- package/dist/collection/components/forms/demo/themes.css +1 -1
- package/dist/collection/components/forms/demo-form.js +2 -2
- package/dist/collection/components/forms/test-drive-demo/themes.css +1 -1
- package/dist/collection/components/forms/test-drive-demo.js +2 -2
- package/dist/collection/components/forms/vehicle-quotation/VehicleImageViewer.js +5 -5
- package/dist/collection/components/forms/vehicle-quotation/element-mapper.js +27 -15
- package/dist/collection/components/forms/vehicle-quotation/themes.css +1 -1
- package/dist/collection/components/forms/vehicle-quotation.js +43 -32
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
- package/dist/collection/components/part-lookup/distributor-lookup.js +3 -3
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-accessories.js +2 -2
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-claimable-items.js +4 -4
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-item-claim-form.js +8 -8
- package/dist/collection/components/vehicle-lookup/vehicle-lookup.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-service-history.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-specification.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-warranty-details.js +4 -4
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/features/form-hook/form-hook.js +3 -1
- package/dist/collection/features/form-hook/render-structure.js +3 -3
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/demo-form.js +1 -1
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.js +1 -1
- package/dist/components/form-checkbox.js +1 -1
- package/dist/components/form-select.js +1 -1
- package/dist/components/form-shadow-input.js +1 -1
- package/dist/components/form-structure-error.js +1 -1
- package/dist/components/form-structure.js +1 -1
- package/dist/components/form-submit.js +1 -1
- package/dist/components/form-switch.js +1 -1
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/information-table.js +1 -1
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/manufacturer-lookup.js +1 -1
- package/dist/components/{p-Boyb7g8T.js → p-B1wAYX9e.js} +1 -1
- package/dist/components/{p-C9OnqqVd.js → p-B3KVSH-5.js} +1 -1
- package/dist/components/{p-Dyg_-ZRZ.js → p-B4kafcwn.js} +1 -1
- package/dist/components/{p-mQtlkqls.js → p-B5UOIrpx.js} +1 -1
- package/dist/components/p-BF_dFfKZ.js +5 -0
- package/dist/components/p-BHoQLgUh.js +5 -0
- package/dist/components/{p-DvY2L_ue.js → p-BPqft_oA.js} +1 -1
- package/dist/components/p-BZ-6e21S.js +5 -0
- package/dist/components/{p-Cv0CpjO-.js → p-BwUWF7vZ.js} +1 -1
- package/dist/components/{p-SQWhiT4V.js → p-C4EeT3-I.js} +1 -1
- package/dist/components/{p-_lWxVXdb.js → p-CAdn9HGq.js} +1 -1
- package/dist/components/p-CFadOKOF.js +5 -0
- package/dist/components/p-CJbw72Gd.js +5 -0
- package/dist/components/p-CKNoBo4v.js +5 -0
- package/dist/components/{p-l6FwCuo4.js → p-COS-bXsj.js} +1 -1
- package/dist/components/{p-DeJOuCT5.js → p-CSxOUlV8.js} +1 -1
- package/dist/components/{p-DsIfmM5t.js → p-Ckn9COPV.js} +1 -1
- package/dist/components/{p-BOi_TByw.js → p-CvfZ3aMB.js} +1 -1
- package/dist/components/p-D2A0Jqo2.js +5 -0
- package/dist/components/p-DID83Tls.js +5 -0
- package/dist/components/{p-CViFxzYD.js → p-Di96XqGF.js} +1 -1
- package/dist/components/{p-CYUGu4EO.js → p-DlZDc3Iq.js} +1 -1
- package/dist/components/{p-W9sskG70.js → p-Dmzoeby5.js} +1 -1
- package/dist/components/p-Lu-ZF-wi.js +5 -0
- package/dist/components/{p-V4RS2bVl.js → p-MJwr71KB.js} +1 -1
- package/dist/components/p-Whr9cNPf.js +5 -0
- package/dist/components/{p-BY7Zz422.js → p-XdN9X9GR.js} +1 -1
- package/dist/components/{p-Cm_gNhWX.js → p-fwPCsmtA.js} +1 -1
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/shift-accordion.js +1 -1
- package/dist/components/shift-checkbox.js +1 -1
- package/dist/components/shift-slider.js +1 -1
- package/dist/components/shift-switch.js +1 -1
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.js +1 -1
- package/dist/components/test-drive-demo-form.js +1 -1
- package/dist/components/vehicle-accessories.js +1 -1
- package/dist/components/vehicle-claimable-items.js +1 -1
- package/dist/components/vehicle-item-claim-form.js +1 -1
- package/dist/components/vehicle-lookup.js +1 -1
- package/dist/components/vehicle-paint-thickness.js +1 -1
- package/dist/components/vehicle-quotation-form.js +1 -1
- package/dist/components/vehicle-service-history.js +1 -1
- package/dist/components/vehicle-specification.js +1 -1
- package/dist/components/vehicle-warranty-details.js +1 -1
- package/dist/components/vin-extractor.js +1 -1
- package/dist/esm/dead-stock-lookup_3.entry.js +9 -9
- package/dist/esm/demo-form.entry.js +4 -4
- package/dist/esm/flexible-container.entry.js +12 -3
- package/dist/esm/form-checkbox_3.entry.js +3 -3
- package/dist/esm/form-dialog_7.entry.js +41 -16
- package/dist/esm/{form-hook-eGlbPIZn.js → form-hook-DKF4babX.js} +3 -1
- package/dist/esm/form-shadow-input.entry.js +1 -1
- package/dist/esm/{get-local-language-BNXWfHeo.js → get-local-language-DCV5MWlh.js} +1 -1
- package/dist/esm/information-table.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-spinner.entry.js +1 -1
- package/dist/esm/part-lookup.entry.js +2 -2
- package/dist/esm/shift-accordion.entry.js +1 -1
- package/dist/esm/shift-checkbox.entry.js +1 -1
- package/dist/esm/shift-components.js +1 -1
- package/dist/esm/shift-switch.entry.js +1 -1
- package/dist/esm/shift-tab-content.entry.js +1 -1
- package/dist/esm/shift-tabs_2.entry.js +10 -10
- package/dist/esm/test-drive-demo-form.entry.js +4 -4
- package/dist/esm/{type-DXYwpkii.js → type-9VyXNW1L.js} +1 -1
- package/dist/esm/{type-Cqa3JDO4.js → type-UBuggrYn.js} +1 -1
- package/dist/esm/vehicle-accessories_6.entry.js +21 -21
- package/dist/esm/vehicle-lookup.entry.js +3 -3
- package/dist/esm/vehicle-quotation-form.entry.js +72 -53
- package/dist/esm/vin-extractor.entry.js +1 -1
- package/dist/shift-components/{p-19fa779c.entry.js → p-06808378.entry.js} +1 -1
- package/dist/shift-components/{p-8c470901.entry.js → p-184a8654.entry.js} +1 -1
- package/dist/shift-components/p-24b6a365.entry.js +5 -0
- package/dist/shift-components/{p-b8e0fe6e.entry.js → p-2ac3027b.entry.js} +1 -1
- package/dist/shift-components/p-37802fa7.entry.js +5 -0
- package/dist/shift-components/{p-c3d62717.entry.js → p-495b04b5.entry.js} +1 -1
- package/dist/shift-components/{p-7232c8a0.entry.js → p-4eccf4b1.entry.js} +1 -1
- package/dist/shift-components/{p-5e9dcb03.entry.js → p-58397a6a.entry.js} +1 -1
- package/dist/shift-components/p-780eff5e.entry.js +5 -0
- package/dist/shift-components/p-78bd477e.entry.js +5 -0
- package/dist/shift-components/p-7a4cb2c4.entry.js +5 -0
- package/dist/shift-components/{p-4750b9d8.entry.js → p-8db9a604.entry.js} +1 -1
- package/dist/shift-components/{p-CpzmA4tv.js → p-B5l8Mv3B.js} +1 -1
- package/dist/shift-components/{p-BoN446nw.js → p-BoYd9or0.js} +1 -1
- package/dist/shift-components/{p-QlroqJ7r.js → p-CeR8iOeD.js} +1 -1
- package/dist/shift-components/{p-C8vP1mxW.js → p-DJjjVNx2.js} +1 -1
- package/dist/shift-components/p-a3a78c35.entry.js +5 -0
- package/dist/shift-components/{p-a9b5faca.entry.js → p-ad076e11.entry.js} +1 -1
- package/dist/shift-components/p-ddef0f46.entry.js +5 -0
- package/dist/shift-components/p-e5cb6c88.entry.js +5 -0
- package/dist/shift-components/{p-fecd88c9.entry.js → p-e67ec123.entry.js} +1 -1
- package/dist/shift-components/{p-4e292482.entry.js → p-f008498f.entry.js} +1 -1
- package/dist/shift-components/p-fdd3a9f2.entry.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/components/flexible-container.d.ts +2 -0
- package/dist/types/components/form-elements/form-select.d.ts +4 -2
- package/dist/types/components/form-elements/form-structure.d.ts +1 -0
- package/dist/types/components/forms/demo/structure.d.ts +3 -0
- package/dist/types/components/forms/vehicle-quotation.d.ts +2 -11
- package/dist/types/components.d.ts +14 -2
- package/dist/types/features/form-hook/interface.d.ts +4 -0
- package/package.json +1 -1
- package/dist/collection/components/forms/vehicle-quotation/structure.js +0 -34
- package/dist/components/p-BIxhf--d.js +0 -5
- package/dist/components/p-BfMlhWLw.js +0 -5
- package/dist/components/p-CLX4fpUp.js +0 -5
- package/dist/components/p-CjEL6oz6.js +0 -5
- package/dist/components/p-CssQBrly.js +0 -5
- package/dist/components/p-CubLxoQm.js +0 -5
- package/dist/components/p-DALakjjl.js +0 -5
- package/dist/components/p-DKCs0ytv.js +0 -5
- package/dist/components/p-DdSpwY6I.js +0 -5
- package/dist/components/p-Dr0sCska.js +0 -5
- package/dist/shift-components/p-1667d27c.entry.js +0 -5
- package/dist/shift-components/p-3ead0ddc.entry.js +0 -5
- package/dist/shift-components/p-7247b5ca.entry.js +0 -5
- package/dist/shift-components/p-794c63b6.entry.js +0 -5
- package/dist/shift-components/p-9b2fde42.entry.js +0 -5
- package/dist/shift-components/p-a7671cad.entry.js +0 -5
- package/dist/shift-components/p-c06feccf.entry.js +0 -5
- package/dist/shift-components/p-dab95d05.entry.js +0 -5
- package/dist/shift-components/p-e365a08d.entry.js +0 -5
- package/dist/types/components/forms/vehicle-quotation/structure.d.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import { Host, h } from "@stencil/core";
|
|
5
|
+
import { Host, forceUpdate, h } from "@stencil/core";
|
|
6
6
|
import cn from "../../global/lib/cn";
|
|
7
7
|
import { getNestedValue } from "../../global/lib/get-nested-value";
|
|
8
8
|
import Loader from "~assets/loader.svg";
|
|
@@ -13,9 +13,9 @@ import { FormErrorMessage } from "./components/form-error-message";
|
|
|
13
13
|
import { AddIcon } from "../../global/assets/add-icon";
|
|
14
14
|
export class FormSelect {
|
|
15
15
|
constructor() {
|
|
16
|
-
this.clearable = false;
|
|
17
16
|
this.language = 'en';
|
|
18
17
|
this.forceOpenUpwards = false;
|
|
18
|
+
this.clearable = false;
|
|
19
19
|
this.searchValue = '';
|
|
20
20
|
this.isOpen = false;
|
|
21
21
|
this.selectedValue = '';
|
|
@@ -62,6 +62,10 @@ export class FormSelect {
|
|
|
62
62
|
}
|
|
63
63
|
async componentWillLoad() {
|
|
64
64
|
this.form.subscribe(this.name, this);
|
|
65
|
+
if (this.staticValue) {
|
|
66
|
+
this.defaultValue = this.staticValue.value;
|
|
67
|
+
this.clearable = false;
|
|
68
|
+
}
|
|
65
69
|
this.selectedValue = this.defaultValue;
|
|
66
70
|
}
|
|
67
71
|
async disconnectedCallback() {
|
|
@@ -100,8 +104,20 @@ export class FormSelect {
|
|
|
100
104
|
this.isFetching = true;
|
|
101
105
|
if (this.abortController)
|
|
102
106
|
this.abortController.abort();
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
let options;
|
|
108
|
+
if (!!this.staticValue) {
|
|
109
|
+
const localizedStaticValue = this.staticValue[this.language];
|
|
110
|
+
if (localizedStaticValue && (localizedStaticValue === null || localizedStaticValue === void 0 ? void 0 : localizedStaticValue.value) && (localizedStaticValue === null || localizedStaticValue === void 0 ? void 0 : localizedStaticValue.label))
|
|
111
|
+
options = [localizedStaticValue];
|
|
112
|
+
else
|
|
113
|
+
options = [this.staticValue];
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
this.abortController = new AbortController();
|
|
117
|
+
options = await this.fetcher({ language: this.language, signal: this.abortController.signal, locale: this.form.getFormLocale()[0] });
|
|
118
|
+
}
|
|
119
|
+
forceUpdate(this.form.formStructure);
|
|
120
|
+
this.form.context[this.name + 'List'] = options;
|
|
105
121
|
this.fetchingErrorMessage = null;
|
|
106
122
|
this.options = options;
|
|
107
123
|
if (this.defaultValue) {
|
|
@@ -137,17 +153,19 @@ export class FormSelect {
|
|
|
137
153
|
this.selectedValue = '';
|
|
138
154
|
}
|
|
139
155
|
const filteredOptions = selectedItem ? this.options : this.options.filter(option => option.label.toLowerCase().includes(this.searchValue.toLowerCase()));
|
|
140
|
-
const disableInput = disabled || this.isDisabled || this.isLoading;
|
|
141
|
-
|
|
156
|
+
const disableInput = disabled || this.isDisabled || this.isLoading || !!this.staticValue;
|
|
157
|
+
if (this.isHidden)
|
|
158
|
+
return (h(Host, { style: { display: this.isHidden ? 'none' : 'block' } }, h("form-shadow-input", { name: this.name, form: this.form, value: this.selectedValue })));
|
|
159
|
+
return (h(Host, null, h("label", { part: `${this.name}`, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, { disabled: disableInput }) }, h(FormInputLabel, { name: this.name, isRequired: isRequired || this.isRequired, label: label }), h("form-shadow-input", { name: this.name, form: this.form, value: this.selectedValue }), h("div", { part: `${this.name}-container form-input-container`, class: cn('form-input-container', { open: this.isOpen, disableInput }) }, h("input", { type: "text", disabled: disableInput, part: `${this.name}-input-select form-input-select`, value: this.searchable ? this.searchValue : (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.label) || '', readOnly: !this.searchable, onInput: this.onSearchInput, onClick: this.toggleDropdown, placeholder: placeholder || (meta === null || meta === void 0 ? void 0 : meta.placeholder), class: cn('form-input-style form-input-select', {
|
|
142
160
|
'form-input-error-style': isError,
|
|
143
|
-
}) }), h("div", {
|
|
161
|
+
}) }), h("div", { part: `${this.name}-select-icon-container form-input-select-icon-container`, class: "form-input-select-icon-container" }, (selectedItem || this.searchValue) && this.clearable ? (h(AddIcon, { part: `${this.name}-cross-icon`, onClick: this.clearInput, class: "form-input-select-icon cross" })) : (h(ArrowUpIcon, { part: `${this.name}-arrow-icon`, class: "form-input-select-icon arrow" }))), h("div", { part: `${this.name}-select-container form-select-container`, class: cn('form-select-container', {
|
|
144
162
|
upwards: this.openUpwards || this.forceOpenUpwards,
|
|
145
163
|
downwards: !this.openUpwards && !this.forceOpenUpwards,
|
|
146
164
|
}) }, !!filteredOptions.length &&
|
|
147
165
|
filteredOptions.map(option => (h("button", { type: "button", part: `${this.name}-select-option form-select-option`, onClick: () => this.handleSelection(option), class: cn('form-select-option', {
|
|
148
166
|
selected: this.selectedValue === option.value,
|
|
149
|
-
}) }, h("div", { part: `${this.name}-select-option-label form-select-option-label`, class: "form-select-option-label" }, option.label), h(TickIcon, { part: `${this.name}-tick-icon`, class: "form-select-option-tick" })))), !filteredOptions.length && (h("div", {
|
|
150
|
-
(this.isFetching ? (h("img", { part: `${this.name}-select-spinner form-select-spinner`, class: "form-select-spinner", src: Loader })) : ((_c = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _c === void 0 ? void 0 : _c.noSelectOptions)))))), h(FormErrorMessage, {
|
|
167
|
+
}) }, h("div", { part: `${this.name}-select-option-label form-select-option-label`, class: "form-select-option-label" }, option.label), h(TickIcon, { part: `${this.name}-tick-icon`, class: "form-select-option-tick" })))), !filteredOptions.length && (h("div", { part: `${this.name}-select-empty-container form-select-empty-container`, class: cn('form-select-empty-container', { error: this.fetchingErrorMessage }) }, this.fetchingErrorMessage && (getNestedValue(locale, this.fetchingErrorMessage) || this.fetchingErrorMessage || ((_b = (_a = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _a === void 0 ? void 0 : _a.errors) === null || _b === void 0 ? void 0 : _b.wildCard)), !this.fetchingErrorMessage &&
|
|
168
|
+
(this.isFetching ? (h("img", { part: `${this.name}-select-spinner form-select-spinner`, class: "form-select-spinner", src: Loader })) : ((_c = locale === null || locale === void 0 ? void 0 : locale.sharedFormLocales) === null || _c === void 0 ? void 0 : _c.noSelectOptions)))))), h(FormErrorMessage, { name: this.name, isError: isError, errorMessage: locale[errorMessage] || errorMessage }))));
|
|
151
169
|
}
|
|
152
170
|
static get is() { return "form-select"; }
|
|
153
171
|
static get originalStyleUrls() {
|
|
@@ -238,9 +256,9 @@ export class FormSelect {
|
|
|
238
256
|
"setter": false,
|
|
239
257
|
"reflect": false
|
|
240
258
|
},
|
|
241
|
-
"
|
|
259
|
+
"isHidden": {
|
|
242
260
|
"type": "boolean",
|
|
243
|
-
"attribute": "
|
|
261
|
+
"attribute": "is-hidden",
|
|
244
262
|
"mutable": false,
|
|
245
263
|
"complexType": {
|
|
246
264
|
"original": "boolean",
|
|
@@ -255,8 +273,7 @@ export class FormSelect {
|
|
|
255
273
|
},
|
|
256
274
|
"getter": false,
|
|
257
275
|
"setter": false,
|
|
258
|
-
"reflect": false
|
|
259
|
-
"defaultValue": "false"
|
|
276
|
+
"reflect": false
|
|
260
277
|
},
|
|
261
278
|
"isLoading": {
|
|
262
279
|
"type": "boolean",
|
|
@@ -377,24 +394,29 @@ export class FormSelect {
|
|
|
377
394
|
"setter": false,
|
|
378
395
|
"reflect": false
|
|
379
396
|
},
|
|
380
|
-
"
|
|
381
|
-
"type": "
|
|
382
|
-
"attribute": "
|
|
397
|
+
"staticValue": {
|
|
398
|
+
"type": "unknown",
|
|
399
|
+
"attribute": "static-value",
|
|
383
400
|
"mutable": false,
|
|
384
401
|
"complexType": {
|
|
385
|
-
"original": "
|
|
386
|
-
"resolved": "string",
|
|
387
|
-
"references": {
|
|
402
|
+
"original": "FormSelectItem",
|
|
403
|
+
"resolved": "{ value: string; label: string; meta?: Record<string, string>; }",
|
|
404
|
+
"references": {
|
|
405
|
+
"FormSelectItem": {
|
|
406
|
+
"location": "import",
|
|
407
|
+
"path": "~features/form-hook/",
|
|
408
|
+
"id": "src/features/form-hook/index.ts::FormSelectItem"
|
|
409
|
+
}
|
|
410
|
+
}
|
|
388
411
|
},
|
|
389
412
|
"required": false,
|
|
390
|
-
"optional":
|
|
413
|
+
"optional": true,
|
|
391
414
|
"docs": {
|
|
392
415
|
"tags": [],
|
|
393
416
|
"text": ""
|
|
394
417
|
},
|
|
395
418
|
"getter": false,
|
|
396
|
-
"setter": false
|
|
397
|
-
"reflect": false
|
|
419
|
+
"setter": false
|
|
398
420
|
},
|
|
399
421
|
"language": {
|
|
400
422
|
"type": "string",
|
|
@@ -465,6 +487,45 @@ export class FormSelect {
|
|
|
465
487
|
"setter": false,
|
|
466
488
|
"reflect": false,
|
|
467
489
|
"defaultValue": "false"
|
|
490
|
+
},
|
|
491
|
+
"clearable": {
|
|
492
|
+
"type": "boolean",
|
|
493
|
+
"attribute": "clearable",
|
|
494
|
+
"mutable": true,
|
|
495
|
+
"complexType": {
|
|
496
|
+
"original": "boolean",
|
|
497
|
+
"resolved": "boolean",
|
|
498
|
+
"references": {}
|
|
499
|
+
},
|
|
500
|
+
"required": false,
|
|
501
|
+
"optional": false,
|
|
502
|
+
"docs": {
|
|
503
|
+
"tags": [],
|
|
504
|
+
"text": ""
|
|
505
|
+
},
|
|
506
|
+
"getter": false,
|
|
507
|
+
"setter": false,
|
|
508
|
+
"reflect": false,
|
|
509
|
+
"defaultValue": "false"
|
|
510
|
+
},
|
|
511
|
+
"defaultValue": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"attribute": "default-value",
|
|
514
|
+
"mutable": true,
|
|
515
|
+
"complexType": {
|
|
516
|
+
"original": "string",
|
|
517
|
+
"resolved": "string",
|
|
518
|
+
"references": {}
|
|
519
|
+
},
|
|
520
|
+
"required": false,
|
|
521
|
+
"optional": false,
|
|
522
|
+
"docs": {
|
|
523
|
+
"tags": [],
|
|
524
|
+
"text": ""
|
|
525
|
+
},
|
|
526
|
+
"getter": false,
|
|
527
|
+
"setter": false,
|
|
528
|
+
"reflect": false
|
|
468
529
|
}
|
|
469
530
|
};
|
|
470
531
|
}
|
|
@@ -13,7 +13,7 @@ export class FormInput {
|
|
|
13
13
|
this.form.validateForm(this.name, newValue);
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return h("input", { key: '
|
|
16
|
+
return h("input", { key: '7a84f6be06d6eda722d643aa203d09c439bb9cdb', hidden: true, name: this.name, type: "string", value: this.value });
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "form-shadow-input"; }
|
|
19
19
|
static get originalStyleUrls() {
|
|
@@ -16,7 +16,7 @@ export class FormStructureError {
|
|
|
16
16
|
this.sharedLocales = await getSharedLocal(newLanguage);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'ab5042611718fa3e45610722a37c3f900606eff7' }, h("div", { key: 'bd98e0f8e88ee0cb79ffcf53d9ce5c4f62df5dc1', dir: this.sharedLocales.direction, part: "form-structure-error-container", class: "form-structure-error-container" }, h("div", { key: 'fe632575743b19a9846ee8395193336429aab546', part: "form-structure-error-content", class: "form-structure-error-content" }, this.sharedLocales.errors.wrongFormStructure))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "form-structure-error"; }
|
|
22
22
|
static get originalStyleUrls() {
|
|
@@ -21,6 +21,13 @@ export class FormStructure {
|
|
|
21
21
|
const [sharedLocales, locale] = await Promise.all([getSharedLocal(newLanguage), getLocaleLanguage(newLanguage, 'general', generalSchema)]);
|
|
22
22
|
this.locale = Object.assign({ sharedLocales }, locale);
|
|
23
23
|
}
|
|
24
|
+
async componentDidLoad() {
|
|
25
|
+
setTimeout(() => {
|
|
26
|
+
var _a;
|
|
27
|
+
if (typeof ((_a = this.form.context) === null || _a === void 0 ? void 0 : _a.structureRendered) === 'boolean')
|
|
28
|
+
this.form.context.structureRendered = true;
|
|
29
|
+
}, 300);
|
|
30
|
+
}
|
|
24
31
|
render() {
|
|
25
32
|
var _a;
|
|
26
33
|
const [locale] = this.form.getFormLocale();
|
|
@@ -182,7 +189,7 @@ export class FormStructure {
|
|
|
182
189
|
"mutable": false,
|
|
183
190
|
"complexType": {
|
|
184
191
|
"original": "FormElementStructure<any>",
|
|
185
|
-
"resolved": "{ data?: Record<string, any>; } & { id?: string; class?: string; children?: any[]; } & { tag: string; name?: any; } | { data?: Record<string, any>; } & { id?: string; class?: string; children?: any[]; } & { tag?: string; name: any; }",
|
|
192
|
+
"resolved": "{ data?: Record<string, any>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag: string; name?: any; } | { data?: Record<string, any>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: any[]; } & { tag?: string; name: any; }",
|
|
186
193
|
"references": {
|
|
187
194
|
"FormElementStructure": {
|
|
188
195
|
"location": "import",
|
|
@@ -21,9 +21,9 @@ export class FormSubmit {
|
|
|
21
21
|
render() {
|
|
22
22
|
const [locale] = this.form.getFormLocale();
|
|
23
23
|
const submitText = getNestedValue(locale, this.submitTextKey) || getNestedValue(locale, 'sharedFormLocales.submit') || 'Submit';
|
|
24
|
-
return (h("button", { key: '
|
|
24
|
+
return (h("button", { key: '73d566b9c8b84a646004ab0593ddd355f7cfd59d', type: "submit", formnovalidate: true, part: buttonSubscriberKey, disabled: this.isLoading, class: cn('form-submit', {
|
|
25
25
|
loading: this.isLoading,
|
|
26
|
-
}) }, h("div", { key: '
|
|
26
|
+
}) }, h("div", { key: 'd3628bb8d50562e948b55fa4db01b090ba3319ab', part: "form-submit-text", class: "opacity-0 form-submit-text-style" }, submitText), h("div", { key: '4e15ab333183868c572afedfe77e182288a5d3f6', part: "form-submit-text", class: "form-submit-text-style form-submit-text-position" }, submitText), h("div", { key: 'cd6421d2a6f07a11247e9082a75171b5ff35331b', part: "form-submit-loading-container", class: "form-submit-loading-container" }, h("img", { key: 'fc1692f9e4df784db2179788a5537e55f45a37fc', part: "form-submit-loading-icon", class: "form-submit-loading-icon", src: Loader }))));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "form-submit"; }
|
|
29
29
|
static get originalStyleUrls() {
|
|
@@ -28,7 +28,7 @@ export class FormSwitch {
|
|
|
28
28
|
const { disabled, meta, errorMessage, isError } = this.form.getInputState(this.name);
|
|
29
29
|
const [locale] = this.form.getFormLocale();
|
|
30
30
|
const label = getNestedValue(locale, meta === null || meta === void 0 ? void 0 : meta.label) || (meta === null || meta === void 0 ? void 0 : meta.label);
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '875f6f166627794c63b6ef68ae0b05bc5dd3d513' }, h("div", { key: '02129550f8b1d6dda01fb3bc00678ce30b0941a9', part: `${this.name}`, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, disabled) }, h("div", { key: '3ccd1a14b50baf801abd0bbc90970fc56338389e', part: `${this.name}-container form-input-container`, class: "form-input-container" }, h("shift-switch", { key: 'ec664f769a91c594483d7bdfc22529a8693c35ea', name: this.name, label: label, class: "form-switch" })), h(FormErrorMessage, { key: '171e92927c65cb8f0eea0a46a1c4baa9ae7fd185', name: this.name, isError: isError, errorMessage: locale[errorMessage] || errorMessage }))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "form-switch"; }
|
|
34
34
|
static get originalStyleUrls() {
|
|
@@ -27,9 +27,9 @@ export class FormTextArea {
|
|
|
27
27
|
const [locale] = this.form.getFormLocale();
|
|
28
28
|
const label = getNestedValue(locale, meta === null || meta === void 0 ? void 0 : meta.label) || (meta === null || meta === void 0 ? void 0 : meta.label);
|
|
29
29
|
const placeholder = getNestedValue(locale, meta === null || meta === void 0 ? void 0 : meta.placeholder);
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '9febf584455f536e42ef2f6443f4f98165e8cdc8' }, h("label", { key: 'c9d89921481616d8999e040c20a3bdb9c10d7919', part: `${this.name}`, id: this.wrapperId, class: cn('form-input-label-container', this.wrapperClass, disabled) }, h(FormInputLabel, { key: '7ac172239a620c5ffd4f17d868485a8846592e8d', name: this.name, isRequired: isRequired, label: label }), h("div", { key: 'cbd19627a0ae683c87b9ff590d289f64851bffa1', part: `${this.name}-container form-input-container`, class: "form-input-container" }, h("textarea", { key: '5998da1ab13df4c818f3d90ed8bd1aa5a1fe6e4b', name: this.name, placeholder: placeholder, part: `${this.name}-textarea form-input-textarea`, class: cn('form-input-style form-input-textarea-style', {
|
|
31
31
|
'form-input-error-style': isError,
|
|
32
|
-
}) })), h(FormErrorMessage, { key: '
|
|
32
|
+
}) })), h(FormErrorMessage, { key: '86cacfafe3858a467881743ee5b305df0cc38b37', name: this.name, isError: isError, errorMessage: locale[errorMessage] || errorMessage }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "form-text-area"; }
|
|
35
35
|
static get originalStyleUrls() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.mx-auto{margin-left:auto;margin-right:auto}.mb-\[24px\]{margin-bottom:24px}.block{display:block}.flex{display:flex}.max-w-\[700px\]{max-width:700px}.flex-col{flex-direction:column}.gap-\[24px\]{gap:24px}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}:host{all:initial!important;display:block}*{font-family:Arial}.demo-tiq #container{margin-left:auto;margin-right:auto;max-width:700px}.demo-tiq #inputs_wrapper{display:flex;flex-direction:column;gap:24px;margin-bottom:24px}@media (min-width:640px){.demo-tiq #inputs_wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}.demo-tiq #message{margin-bottom:24px}@media (min-width:640px){.sm\:grid{display:grid}}.static{position:static}.
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.mx-auto{margin-left:auto;margin-right:auto}.mb-\[24px\]{margin-bottom:24px}.block{display:block}.flex{display:flex}.max-w-\[700px\]{max-width:700px}.flex-col{flex-direction:column}.gap-\[24px\]{gap:24px}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}:host{all:initial!important;display:block}*{font-family:Arial}.demo-tiq #container{margin-left:auto;margin-right:auto;max-width:700px}.demo-tiq #inputs_wrapper{display:flex;flex-direction:column;gap:24px;margin-bottom:24px}@media (min-width:640px){.demo-tiq #inputs_wrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}.demo-tiq #message{margin-bottom:24px}@media (min-width:640px){.sm\:grid{display:grid}}.static{position:static}.relative{position:relative}.ms-2{margin-inline-start:.5rem}.hidden{display:none}.size-\[22px\]{height:22px;width:22px}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{user-select:none}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-hidden{overflow:hidden}.rounded-\[6px\]{border-radius:6px}.border-2{border-width:2px}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity,1))}.bg-transparent{background-color:transparent}.stroke-\[3px\]{stroke-width:3px}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-transparent{color:transparent}.opacity-75{opacity:.75}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\!duration-300{transition-duration:.3s!important}.peer:checked~.peer-checked\:border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.peer:checked~.peer-checked\:bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}.peer:checked~.peer-checked\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.\[\&_\.check-icon\]\:scale-0 .check-icon{--tw-scale-x:0;--tw-scale-y:0}.\[\&_\.check-icon\]\:scale-0 .check-icon,.peer:checked~.peer-checked\:\[\&_\.check-icon\]\:scale-100 .check-icon{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:\[\&_\.check-icon\]\:scale-100 .check-icon{--tw-scale-x:1;--tw-scale-y:1}.absolute{position:absolute}.left-\[-2px\]{left:-2px}.top-\[-2px\]{top:-2px}.size-\[24px\]{height:24px;width:24px}.h-\[24px\]{height:24px}.w-\[50px\]{width:50px}.rounded-full{border-radius:9999px}.border-blue-300{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity,1))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.peer:checked~.peer-checked\:\[\&_div\]\:translate-x-\[28px\] div{--tw-translate-x:28px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.size-\[70px\]{height:70px;width:70px}.stroke-green-700{stroke:#15803d}.opacity-0{opacity:0}
|
|
@@ -96,7 +96,7 @@ export class DemoForm {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (h(Host, { key: '
|
|
99
|
+
return (h(Host, { key: '8de6b1a2e07269e76d7b3374fa54d14a65b2ccb6', class: `demo-${this.theme}` }, h("form-structure", { key: '7de5d534ec08ab252c355ac6f102fde4abe64c0a', form: this.form, language: this.language, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, errorMessage: this.errorMessage, formElementMapper: demoElements }, h("slot", { key: '5923f69e32dcf39445cb37046346b04261cccbfb' }))));
|
|
100
100
|
}
|
|
101
101
|
static get is() { return "demo-form"; }
|
|
102
102
|
static get originalStyleUrls() {
|
|
@@ -254,7 +254,7 @@ export class DemoForm {
|
|
|
254
254
|
"mutable": false,
|
|
255
255
|
"complexType": {
|
|
256
256
|
"original": "FormElementStructure<demoElementNames> | undefined",
|
|
257
|
-
"resolved": "{ data?: Record<string, any>; } & { id?: string; class?: string; children?: (\"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }> | FormElementStructureComponents<\"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }>>)[]; } & { tag: string; name?: \"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }>; } | { data?: Record<string, any>; } & { id?: string; class?: string; children?: (\"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }> | FormElementStructureComponents<\"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }>>)[]; } & { tag?: string; name: \"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }>; }",
|
|
257
|
+
"resolved": "{ data?: Record<string, any>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: (\"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }> | FormElementStructureComponents<\"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }>>)[]; } & { tag: string; name?: \"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }>; } | { data?: Record<string, any>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: (\"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }> | FormElementStructureComponents<\"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }>>)[]; } & { tag?: string; name: \"submit\" | OptionalKeys<{ confirmPolicy: boolean; ageConfirmation: true; cityId: string; email: string; message: string; generalTicketType: string; name: string; phone: string; }>; }",
|
|
258
258
|
"references": {
|
|
259
259
|
"FormElementStructure": {
|
|
260
260
|
"location": "import",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.relative{position:relative}.size-\[70px\]{height:70px;width:70px}.stroke-green-700{stroke:#15803d}.
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block}*{font-family:Arial}.static{position:static}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.relative{position:relative}.size-\[70px\]{height:70px;width:70px}.stroke-green-700{stroke:#15803d}.opacity-0{opacity:0}.hidden{display:none}
|
|
@@ -109,7 +109,7 @@ export class TestDriveDemoForm {
|
|
|
109
109
|
render() {
|
|
110
110
|
var _a, _b;
|
|
111
111
|
const successMessageKey = 'Form submitted successfully.';
|
|
112
|
-
return (h(Host, { key: '
|
|
112
|
+
return (h(Host, { key: '5885bcf49368e82445b4eb2ac1d8fa079a9739bf' }, h("div", { key: '01a41bd497f6d0cdce496c74518f34be66af701e', part: `test-drive-demo-${(_b = (_a = this.structure) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.theme}` }, h("form-structure", { key: '2444acd5b679db689594464f096b203e54f35c03', form: this.form, formLocale: this.locale, structure: this.structure, isLoading: this.isLoading, language: this.localeLanguage, errorMessage: this.errorMessage, formElementMapper: testDriveDemoElements, successMessage: this.locale[successMessageKey] || successMessageKey }, h("slot", { key: '44aee58bcf9ab6ce93b5ddc5bf3836dbf584d42e' })))));
|
|
113
113
|
}
|
|
114
114
|
static get is() { return "test-drive-demo-form"; }
|
|
115
115
|
static get encapsulation() { return "shadow"; }
|
|
@@ -249,7 +249,7 @@ export class TestDriveDemoForm {
|
|
|
249
249
|
"mutable": true,
|
|
250
250
|
"complexType": {
|
|
251
251
|
"original": "FormElementStructure<testDriveDemoElementNames> | undefined",
|
|
252
|
-
"resolved": "{ data?: Record<string, any>; } & { id?: string; class?: string; children?: (\"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }> | FormElementStructureComponents<\"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }>>)[]; } & { tag: string; name?: \"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }>; } | { data?: Record<string, any>; } & { id?: string; class?: string; children?: (\"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }> | FormElementStructureComponents<\"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }>>)[]; } & { tag?: string; name: \"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }>; }",
|
|
252
|
+
"resolved": "{ data?: Record<string, any>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: (\"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }> | FormElementStructureComponents<\"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }>>)[]; } & { tag: string; name?: \"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }>; } | { data?: Record<string, any>; } & { id?: string; class?: string; staticValue?: any; isHidden?: boolean; isDisabled?: boolean; children?: (\"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }> | FormElementStructureComponents<\"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }>>)[]; } & { tag?: string; name: \"submit\" | OptionalKeys<{ name: string; phone: string; email: string; priority: string; branch: string; }>; }",
|
|
253
253
|
"references": {
|
|
254
254
|
"FormElementStructure": {
|
|
255
255
|
"location": "import",
|
|
@@ -24,18 +24,18 @@ const cacheImage = (form, imSrc, id) => {
|
|
|
24
24
|
};
|
|
25
25
|
let imageSrcBase64 = '';
|
|
26
26
|
export const VehicleImageViewer = ({ form }) => {
|
|
27
|
-
var _a, _b, _c;
|
|
27
|
+
var _a, _b, _c, _d;
|
|
28
28
|
form.addWatcher('vehicle');
|
|
29
29
|
let vehicleId = form.getValue('vehicle');
|
|
30
30
|
let openContainer = !!vehicleId;
|
|
31
|
-
const selectedVehicle = (_a = form.context['vehicleList']) === null || _a === void 0 ? void 0 : _a.find(vehicle =>
|
|
31
|
+
const selectedVehicle = (_a = form.context['vehicleList']) === null || _a === void 0 ? void 0 : _a.find(vehicle => vehicle.value === vehicleId);
|
|
32
32
|
let imSrc;
|
|
33
33
|
if (selectedVehicle) {
|
|
34
|
-
imSrc = selectedVehicle === null || selectedVehicle === void 0 ? void 0 : selectedVehicle.
|
|
35
|
-
vehicleId = selectedVehicle.
|
|
34
|
+
imSrc = (_b = selectedVehicle === null || selectedVehicle === void 0 ? void 0 : selectedVehicle.meta) === null || _b === void 0 ? void 0 : _b.image;
|
|
35
|
+
vehicleId = selectedVehicle.value;
|
|
36
36
|
}
|
|
37
37
|
else if (form.context['vehicleList'] && form.context['vehicleList'][0]) {
|
|
38
|
-
imSrc = (
|
|
38
|
+
imSrc = (_d = (_c = form.context['vehicleList'][0]) === null || _c === void 0 ? void 0 : _c.meta) === null || _d === void 0 ? void 0 : _d.image;
|
|
39
39
|
vehicleId = form.context['vehicleList'][0].value;
|
|
40
40
|
}
|
|
41
41
|
let isLoading = false;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { h } from "@stencil/core";
|
|
6
6
|
import { phoneValidator } from "./validations";
|
|
7
7
|
import { VehicleImageViewer } from "./VehicleImageViewer";
|
|
8
8
|
export const vehicleQuotationElements = {
|
|
@@ -12,16 +12,26 @@ export const vehicleQuotationElements = {
|
|
|
12
12
|
'vehicle': ({ form, language, props }) => {
|
|
13
13
|
var _a;
|
|
14
14
|
const fetcher = async ({ signal }) => {
|
|
15
|
-
var _a;
|
|
15
|
+
var _a, _b, _c;
|
|
16
16
|
const vehicleEndpoint = (_a = form.context.structure) === null || _a === void 0 ? void 0 : _a.data.vehicleApi;
|
|
17
17
|
const response = await fetch(vehicleEndpoint, { signal, headers: { 'Accept-Language': language } });
|
|
18
|
-
form.context
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
if ((_c = (_b = form.context.structure) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.vehiclesApiStrapiFormat) {
|
|
19
|
+
const res = await response.json();
|
|
20
|
+
let options = res.data;
|
|
21
|
+
return options.map(vehicle => ({
|
|
22
|
+
label: vehicle.attributes.GradeName,
|
|
23
|
+
value: `${vehicle.id}`,
|
|
24
|
+
meta: Object.assign(Object.assign({}, vehicle), { image: vehicle.attributes.Cover.data.attributes.url }),
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
const options = await response.json();
|
|
29
|
+
return options.map(vehicle => ({
|
|
30
|
+
label: vehicle.Title,
|
|
31
|
+
value: `${vehicle.ID}`,
|
|
32
|
+
meta: Object.assign(Object.assign({}, vehicle), { image: vehicle.Image }),
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
25
35
|
};
|
|
26
36
|
const params = new URLSearchParams(window.location.search);
|
|
27
37
|
const defaultValue = params.get((_a = form.context.structure.data) === null || _a === void 0 ? void 0 : _a.vehicleIdQueryParam);
|
|
@@ -32,11 +42,12 @@ export const vehicleQuotationElements = {
|
|
|
32
42
|
var _a;
|
|
33
43
|
const dealerEndpoint = (_a = form.context.structure) === null || _a === void 0 ? void 0 : _a.data.dealerApi;
|
|
34
44
|
const response = await fetch(dealerEndpoint, { signal, headers: { 'Accept-Language': language } });
|
|
35
|
-
|
|
45
|
+
const options = (await response.json()).map(dealer => ({
|
|
36
46
|
label: dealer.Name,
|
|
37
47
|
value: `${dealer.ID}`,
|
|
48
|
+
meta: Object.assign({}, dealer),
|
|
38
49
|
}));
|
|
39
|
-
return
|
|
50
|
+
return options;
|
|
40
51
|
};
|
|
41
52
|
return h("form-select", Object.assign({}, props, { clearable: true, searchable: true, fetcher: fetcher, language: language }));
|
|
42
53
|
},
|
|
@@ -100,11 +111,12 @@ export const vehicleQuotationElements = {
|
|
|
100
111
|
var _a;
|
|
101
112
|
const currentVehiclesEndpoint = (_a = form.context.structure) === null || _a === void 0 ? void 0 : _a.data.currentVehiclesApi;
|
|
102
113
|
const response = await fetch(currentVehiclesEndpoint, { signal, headers: { 'Accept-Language': 'en' } });
|
|
103
|
-
|
|
114
|
+
const options = (await response.json()).filter(vehicle => vehicle.name !== 'Other');
|
|
104
115
|
return [
|
|
105
|
-
...
|
|
116
|
+
...options.map(vehicle => ({
|
|
106
117
|
label: vehicle.name,
|
|
107
118
|
value: `${vehicle.id}`,
|
|
119
|
+
meta: Object.assign({}, vehicle),
|
|
108
120
|
})),
|
|
109
121
|
{
|
|
110
122
|
value: 'Other',
|
|
@@ -120,10 +132,10 @@ export const vehicleQuotationElements = {
|
|
|
120
132
|
const ownVehicle = form.getValue('ownVehicle') === 'yes';
|
|
121
133
|
const currentVehicleBrand = form.getValue('currentVehicleBrand');
|
|
122
134
|
const fetcher = async ({}) => {
|
|
123
|
-
var _a;
|
|
135
|
+
var _a, _b;
|
|
124
136
|
if (!currentVehicleBrand)
|
|
125
137
|
return [];
|
|
126
|
-
const selectedBrand = (_a = form.context['
|
|
138
|
+
const selectedBrand = (_b = (_a = form.context['currentVehicleBrandList']) === null || _a === void 0 ? void 0 : _a.find(vehicle => vehicle.value === currentVehicleBrand)) === null || _b === void 0 ? void 0 : _b.meta;
|
|
127
139
|
if (!selectedBrand)
|
|
128
140
|
return [];
|
|
129
141
|
return [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}:host{all:initial!important;display:block;font-family:inherit!important}.static{position:static}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.\!h-auto{height:auto!important}.
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;border:0 solid #e5e7eb;box-sizing:border-box}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.block{display:block}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:host{all:initial!important;display:block;font-family:inherit!important}@keyframes spin{to{transform:rotate(1turn)}}.form-loader-container .img{animation:spin 2s linear infinite;height:32px;width:32px}*{-webkit-user-select:none;-moz-user-select:none;user-select:none}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-0{top:0}.flex{display:flex}.h-\[200px\]{height:200px}.min-h-\[200px\]{min-height:200px}.w-full{width:100%}.items-center{align-items:center}.justify-center{justify-content:center}.opacity-0{opacity:0}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-500{transition-duration:.5s}.\!h-auto{height:auto!important}.min-w-full{min-width:100%}.resize{resize:both}.overflow-hidden{overflow:hidden}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!transition-none{transition-property:none!important}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\!duration-0{transition-duration:0s!important}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.size-\[70px\]{height:70px;width:70px}.stroke-green-700{stroke:#15803d}.hidden{display:none}
|