adp-web-components 0.0.95 → 0.0.97
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/add-icon-BpfeU8T4.js +13 -0
- package/dist/cjs/app-globals-D2j2HjfX.js +11 -0
- package/dist/cjs/arrow-up-icon-B_nvUxUm.js +12 -0
- package/dist/cjs/check-icon-gbrTPAKV.js +12 -0
- package/dist/cjs/dead-stock-lookup_3.cjs.entry.js +15 -17
- package/dist/cjs/demo-form.cjs.entry.js +214 -0
- package/dist/cjs/{empty-table-icon-PdTX6gpI.js → empty-table-icon-BKTk1lZZ.js} +1 -1
- package/dist/cjs/flexible-container.cjs.entry.js +2 -2
- package/dist/cjs/form-checkbox_3.cjs.entry.js +109 -0
- package/dist/cjs/form-dialog_8.cjs.entry.js +230 -287
- package/dist/cjs/form-input-label-B4EsaC9R.js +30 -0
- package/dist/cjs/{get-local-language-CCn1p4nM.js → get-local-language-C_B5UpUK.js} +233 -15
- package/dist/cjs/{index-BjyafrBw.js → index-CW-dkZVH.js} +185 -115
- package/dist/cjs/information-table.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/loading-spinner.cjs.entry.js +2 -2
- package/dist/cjs/{material-card-Cd0L1Get.js → material-card-DFd5SQVC.js} +1 -1
- package/dist/cjs/part-lookup.cjs.entry.js +5 -5
- package/dist/cjs/{type-ZkbQVCRR.js → phone-validator-DI1aq9s6.js} +1637 -1837
- package/dist/cjs/{print-icon-C4ASnhAO.js → print-icon-CeXvXhF8.js} +1 -1
- package/dist/cjs/shift-accordion.cjs.entry.js +2 -2
- package/dist/cjs/shift-checkbox.cjs.entry.js +33 -0
- package/dist/cjs/shift-components.cjs.js +5 -4
- package/dist/cjs/shift-slider.cjs.entry.js +3 -3
- package/dist/cjs/shift-switch.cjs.entry.js +32 -0
- package/dist/cjs/shift-tab-content.cjs.entry.js +3 -3
- package/dist/cjs/shift-tabs_2.cjs.entry.js +19 -24
- package/dist/cjs/{type-D8rizwvZ.js → type-Bv0xlV1X.js} +1 -1
- package/dist/cjs/{type-CWFawTeP.js → type-ovX9euBp.js} +1 -1
- package/dist/cjs/vehicle-accessories_6.cjs.entry.js +30 -33
- package/dist/cjs/{vehicle-info-layout-Dp2Po_uc.js → vehicle-info-layout-CvgBHkXb.js} +1 -1
- package/dist/cjs/vehicle-lookup.cjs.entry.js +5 -5
- package/dist/cjs/vehicle-quotation-form.cjs.entry.js +444 -0
- package/dist/cjs/vin-extractor.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +9 -4
- package/dist/collection/components/components/empty.css +1 -0
- package/dist/collection/components/components/flexible-container.css +1 -1
- 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-checkbox.js +216 -0
- package/dist/collection/components/components/shift-slider.css +1 -1
- package/dist/collection/components/components/shift-slider.js +1 -1
- package/dist/collection/components/components/shift-switch.js +215 -0
- package/dist/collection/components/components/shift-tab-content.css +1 -1
- package/dist/collection/components/components/shift-tab-content.js +1 -1
- package/dist/collection/components/components/shift-tabs.css +1 -1
- package/dist/collection/components/components/shift-tabs.js +2 -2
- package/dist/collection/components/form-elements/components/form-error-message.js +9 -0
- package/dist/collection/components/form-elements/components/form-input-label.js +10 -0
- package/dist/collection/components/form-elements/components/form-input-prefix.js +10 -0
- package/dist/collection/components/form-elements/form-checkbox.js +188 -0
- package/dist/collection/components/form-elements/form-dialog.js +75 -51
- package/dist/collection/components/form-elements/form-input.js +43 -172
- package/dist/collection/components/form-elements/form-inputs.css +1 -0
- package/dist/collection/components/form-elements/form-phone-number.js +251 -0
- package/dist/collection/components/form-elements/form-select.js +152 -117
- package/dist/collection/components/form-elements/form-shadow-input.js +7 -5
- package/dist/collection/components/form-elements/form-structure-error.js +3 -3
- package/dist/collection/components/form-elements/form-structure.js +63 -110
- package/dist/collection/components/form-elements/form-submit.js +74 -63
- package/dist/collection/components/form-elements/form-switch.js +188 -0
- package/dist/collection/components/form-elements/form-text-area.js +27 -160
- package/dist/collection/components/forms/demo/element-mapper.js +41 -0
- package/dist/collection/components/forms/demo/structure.js +15 -0
- package/dist/collection/components/forms/demo/themes.css +1 -0
- package/dist/collection/components/forms/demo/validations.js +34 -0
- package/dist/collection/components/forms/{service-booking-form.js → demo-form.js} +164 -101
- package/dist/collection/components/forms/vehicle-quotation/VehicleImageViewer.js +50 -0
- package/dist/collection/components/forms/vehicle-quotation/element-mapper.js +139 -0
- package/dist/collection/components/forms/vehicle-quotation/structure.js +34 -0
- package/dist/collection/components/forms/{service-booking/form.css → vehicle-quotation/themes.css} +1 -1
- package/dist/collection/components/forms/vehicle-quotation/validations.js +42 -0
- package/dist/collection/components/forms/vehicle-quotation.js +327 -0
- package/dist/collection/components/part-lookup/dead-stock-lookup.css +1 -1
- package/dist/collection/components/part-lookup/dead-stock-lookup.js +2 -2
- package/dist/collection/components/part-lookup/distributor-lookup.css +1 -1
- package/dist/collection/components/part-lookup/distributor-lookup.js +2 -2
- package/dist/collection/components/part-lookup/manufacturer-lookup.css +1 -1
- package/dist/collection/components/part-lookup/part-lookup.css +1 -1
- 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 -11
- 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-lookup.js +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.css +1 -1
- package/dist/collection/components/vehicle-lookup/vehicle-paint-thickness.js +5 -3
- 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.css +1 -1
- package/dist/collection/components/vin-extractor/vin-extractor.js +1 -1
- package/dist/collection/{global/lib → features/form-hook}/form-hook.js +72 -11
- package/dist/collection/features/form-hook/gist-loader.js +25 -0
- package/dist/collection/features/form-hook/index.js +11 -0
- package/dist/collection/features/form-hook/interface.js +1 -0
- package/dist/collection/features/form-hook/phone-validator.js +11 -0
- package/dist/collection/features/form-hook/render-structure.js +36 -0
- package/dist/collection/features/multi-lingual/get-local-language.js +5 -0
- package/dist/collection/features/multi-lingual/types.js +2 -0
- package/dist/collection/global/assets/add-icon.js +1 -1
- package/dist/collection/global/assets/loader-icon.js +6 -0
- package/dist/collection/global/assets/tick-icon.js +6 -0
- package/dist/collection/global/lib/fetch-json.js +12 -0
- package/dist/collection/global/lib/get-language-from-url.js +17 -0
- package/dist/collection/global/lib/get-nested-value.js +9 -0
- package/dist/collection/global/lib/parse-loose-json.js +23 -0
- package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-inspection-dto.js +1 -0
- package/dist/collection/global/types/generated/vehicle-lookup/paint-thickness-inspection-panel-dto.js +1 -0
- package/dist/collection/locale-mapper.js +10 -2
- package/dist/collection/locales/forms/contactUs/type.js +6 -2
- package/dist/collection/locales/forms/demo/type.js +30 -0
- package/dist/collection/locales/forms/type.js +3 -1
- package/dist/collection/locales/forms/vehicleQuotation/type.js +40 -0
- package/dist/collection/locales/general/type.js +1 -1
- package/dist/collection/locales/generalTicketTypes/type.js +1 -10
- package/dist/components/dead-stock-lookup.js +1 -1
- package/dist/components/{service-booking-form.d.ts → demo-form.d.ts} +4 -4
- package/dist/components/demo-form.js +5 -0
- package/dist/components/distributor-lookup.js +1 -1
- package/dist/components/flexible-container.js +1 -1
- package/dist/components/form-checkbox.d.ts +11 -0
- package/dist/components/form-checkbox.js +5 -0
- package/dist/components/form-dialog.js +1 -1
- package/dist/components/form-input.js +1 -1
- package/dist/components/form-phone-number.d.ts +11 -0
- package/dist/components/form-phone-number.js +5 -0
- 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.d.ts +11 -0
- package/dist/components/form-switch.js +5 -0
- package/dist/components/form-text-area.js +1 -1
- package/dist/components/index.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-B68G_Ld3.js → p-1_IG0jXf.js} +1 -1
- package/dist/components/p-B2MwZoPq.js +5 -0
- package/dist/components/p-B2beUAyz.js +5 -0
- package/dist/components/p-B3Uao1Ha.js +5 -0
- package/dist/components/p-BC0ykyCl.js +5 -0
- package/dist/components/p-BGTo_J4_.js +5 -0
- package/dist/components/{p-DOmV6aKY.js → p-BJ7Y_0HH.js} +1 -1
- package/dist/components/p-BXBJhfKx.js +5 -0
- package/dist/components/p-BXfdBBWy.js +5 -0
- package/dist/components/p-B_Awuajg.js +5 -0
- package/dist/components/p-BziBwpva.js +5 -0
- package/dist/components/p-C-I1G2GL.js +5 -0
- package/dist/components/p-CGKHe5aV.js +5 -0
- package/dist/components/p-CQnGszy6.js +5 -0
- package/dist/components/p-C_jDd3e_.js +5 -0
- package/dist/components/p-C_ozk0lR.js +5 -0
- package/dist/components/p-Cgt5s_xn.js +5 -0
- package/dist/components/p-Chfe8TId.js +5 -0
- package/dist/components/p-CnHfmo0x.js +5 -0
- package/dist/components/p-Cs2-cikp.js +5 -0
- package/dist/components/p-CtOrqs6B.js +5 -0
- package/dist/components/p-D0IHkGuC.js +5 -0
- package/dist/components/p-D3BMiplT.js +5 -0
- package/dist/components/p-D9VJI-bd.js +5 -0
- package/dist/components/p-DB29Litl.js +5 -0
- package/dist/components/p-DC7E4vgR.js +5 -0
- package/dist/components/p-DLNC6ubn.js +5 -0
- package/dist/components/p-DRK0oYuz.js +5 -0
- package/dist/components/p-DRnxC_Dv.js +5 -0
- package/dist/components/p-DW3sRsIe.js +5 -0
- package/dist/components/p-DijSwhFz.js +5 -0
- package/dist/components/p-DkCCdt6S.js +5 -0
- package/dist/components/p-Dn3zEIrl.js +5 -0
- package/dist/components/p-DvwR_CeT.js +5 -0
- package/dist/components/p-M7q3SKiP.js +5 -0
- package/dist/components/p-Xrfzb9z7.js +5 -0
- package/dist/components/p-nDe1Tx7N.js +5 -0
- package/dist/components/part-lookup.js +1 -1
- package/dist/components/shift-accordion.js +1 -1
- package/dist/components/{contact-us-form.d.ts → shift-checkbox.d.ts} +4 -4
- package/dist/components/shift-checkbox.js +5 -0
- package/dist/components/shift-slider.js +1 -1
- package/dist/components/shift-switch.d.ts +11 -0
- package/dist/components/shift-switch.js +5 -0
- package/dist/components/shift-tab-content.js +1 -1
- package/dist/components/shift-tabs.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.d.ts +11 -0
- package/dist/components/vehicle-quotation-form.js +5 -0
- 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/add-icon-BYuh_IBk.js +11 -0
- package/dist/esm/app-globals-FlE3HjBb.js +9 -0
- package/dist/esm/arrow-up-icon-DxOdc6k0.js +10 -0
- package/dist/esm/check-icon-DVWsrBK6.js +10 -0
- package/dist/esm/dead-stock-lookup_3.entry.js +14 -16
- package/dist/esm/demo-form.entry.js +212 -0
- package/dist/esm/{empty-table-icon-DvQk12N9.js → empty-table-icon-CBc6OV9P.js} +1 -1
- package/dist/esm/flexible-container.entry.js +2 -2
- package/dist/esm/form-checkbox_3.entry.js +105 -0
- package/dist/esm/form-dialog_8.entry.js +230 -287
- package/dist/esm/form-input-label-D5w5EH3F.js +26 -0
- package/dist/esm/{get-local-language-BOB5F5ZP.js → get-local-language-uS6vNigf.js} +231 -16
- package/dist/esm/{index-CikEOqe0.js → index-BnEa9hGL.js} +184 -114
- package/dist/esm/information-table.entry.js +2 -2
- package/dist/esm/loader.js +4 -3
- package/dist/esm/loading-spinner.entry.js +2 -2
- package/dist/esm/{material-card-DiAl-884.js → material-card-KRdYdM6Z.js} +1 -1
- package/dist/esm/part-lookup.entry.js +5 -5
- package/dist/esm/{type-DQUNYPN-.js → phone-validator-CDkKaNS8.js} +1635 -1834
- package/dist/esm/{print-icon-Dn5kQmLo.js → print-icon-FGeHkj8F.js} +1 -1
- package/dist/esm/shift-accordion.entry.js +2 -2
- package/dist/esm/shift-checkbox.entry.js +31 -0
- package/dist/esm/shift-components.js +5 -4
- package/dist/esm/shift-slider.entry.js +3 -3
- package/dist/esm/shift-switch.entry.js +30 -0
- package/dist/esm/shift-tab-content.entry.js +3 -3
- package/dist/esm/shift-tabs_2.entry.js +17 -22
- package/dist/esm/{type-CUrex2XJ.js → type-Ct-uDjGf.js} +1 -1
- package/dist/esm/{type-BfKkCp-Z.js → type-DmjYUDuJ.js} +1 -1
- package/dist/esm/vehicle-accessories_6.entry.js +30 -33
- package/dist/esm/{vehicle-info-layout-CNGGKAia.js → vehicle-info-layout-gB294hFH.js} +1 -1
- package/dist/esm/vehicle-lookup.entry.js +5 -5
- package/dist/esm/vehicle-quotation-form.entry.js +442 -0
- package/dist/esm/vin-extractor.entry.js +3 -3
- package/dist/locales/forms/ar.json +8 -1
- package/dist/locales/forms/contactUs/ar.json +5 -1
- package/dist/locales/forms/contactUs/en.json +5 -1
- package/dist/locales/forms/contactUs/ku.json +5 -1
- package/dist/locales/forms/contactUs/ru.json +5 -1
- package/dist/locales/forms/contactUs/type.ts +26 -19
- package/dist/locales/forms/demo/ar.json +24 -0
- package/dist/locales/forms/demo/en.json +24 -0
- package/dist/locales/forms/demo/ku.json +24 -0
- package/dist/locales/forms/demo/ru.json +24 -0
- package/dist/locales/forms/demo/type.ts +31 -0
- package/dist/locales/forms/en.json +8 -1
- package/dist/locales/forms/ku.json +8 -1
- package/dist/locales/forms/ru.json +5 -1
- package/dist/locales/forms/type.ts +4 -1
- package/dist/locales/forms/vehicleQuotation/ar.json +34 -0
- package/dist/locales/forms/vehicleQuotation/en.json +34 -0
- package/dist/locales/forms/vehicleQuotation/ku.json +34 -0
- package/dist/locales/forms/vehicleQuotation/ru.json +34 -0
- package/dist/locales/forms/vehicleQuotation/type.ts +38 -0
- package/dist/locales/general/ar.json +0 -1
- package/dist/locales/general/en.json +0 -1
- package/dist/locales/general/ku.json +0 -1
- package/dist/locales/general/ru.json +0 -1
- package/dist/locales/general/type.ts +1 -1
- package/dist/locales/generalTicketTypes/ar.json +0 -2
- package/dist/locales/generalTicketTypes/en.json +0 -2
- package/dist/locales/generalTicketTypes/ku.json +0 -2
- package/dist/locales/generalTicketTypes/ru.json +0 -2
- package/dist/locales/generalTicketTypes/type.ts +1 -10
- package/dist/shift-components/p-0788630d.entry.js +5 -0
- package/dist/shift-components/{p-0c8bbdd0.entry.js → p-087fef54.entry.js} +1 -1
- package/dist/shift-components/p-203a857e.entry.js +5 -0
- package/dist/shift-components/p-3901EPA-.js +5 -0
- package/dist/shift-components/p-540f78fd.entry.js +5 -0
- package/dist/shift-components/p-54d04a69.entry.js +5 -0
- package/dist/shift-components/p-5595a43e.entry.js +5 -0
- package/dist/shift-components/p-6153b149.entry.js +5 -0
- package/dist/shift-components/{p-277c8a5b.entry.js → p-82cd67f3.entry.js} +1 -1
- package/dist/shift-components/p-8d9be2dc.entry.js +5 -0
- package/dist/shift-components/p-9464bc69.entry.js +5 -0
- package/dist/shift-components/{p-B8ZR3r4y.js → p-B-n4m635.js} +1 -1
- package/dist/shift-components/{p-DzSZ47FV.js → p-BK6OxaNt.js} +1 -1
- package/dist/shift-components/{p-Wtw8qj6x.js → p-BWuXL_w2.js} +1 -1
- package/dist/shift-components/p-Beoi5LCx.js +5 -0
- package/dist/shift-components/p-BgARsXBh.js +5 -0
- package/dist/shift-components/p-BnEa9hGL.js +6 -0
- package/dist/shift-components/p-BuKksSjk.js +5 -0
- package/dist/shift-components/p-Bzq1Jrq5.js +5 -0
- package/dist/shift-components/p-DB9dXavJ.js +5 -0
- package/dist/shift-components/p-DL_G203I.js +5 -0
- package/dist/shift-components/{p-Bx6q5cq-.js → p-DpQp5gau.js} +1 -1
- package/dist/shift-components/p-acd07f69.entry.js +5 -0
- package/dist/shift-components/p-b0ebebd3.entry.js +5 -0
- package/dist/shift-components/p-b8ae2d0d.entry.js +5 -0
- package/dist/shift-components/p-bc10e8d1.entry.js +5 -0
- package/dist/shift-components/p-c46ecd64.entry.js +5 -0
- package/dist/shift-components/p-dec7a90a.entry.js +5 -0
- package/dist/shift-components/p-e298ef79.entry.js +5 -0
- package/dist/shift-components/{p-238f5df0.entry.js → p-e67ec123.entry.js} +1 -1
- package/dist/shift-components/p-eL99WkVm.js +5 -0
- package/dist/shift-components/p-jtkSIgt7.js +5 -0
- package/dist/shift-components/shift-components.esm.js +1 -1
- package/dist/types/components/components/shift-checkbox.d.ts +15 -0
- package/dist/types/components/components/shift-switch.d.ts +15 -0
- package/dist/types/components/form-elements/components/form-error-message.d.ts +7 -0
- package/dist/types/components/form-elements/components/form-input-label.d.ts +7 -0
- package/dist/types/components/form-elements/components/form-input-prefix.d.ts +7 -0
- package/dist/types/components/form-elements/form-checkbox.d.ts +17 -0
- package/dist/types/components/form-elements/form-dialog.d.ts +7 -9
- package/dist/types/components/form-elements/form-input.d.ts +8 -19
- package/dist/types/components/form-elements/form-phone-number.d.ts +23 -0
- package/dist/types/components/form-elements/form-select.d.ts +19 -19
- package/dist/types/components/form-elements/form-shadow-input.d.ts +1 -1
- package/dist/types/components/form-elements/form-structure.d.ts +11 -19
- package/dist/types/components/form-elements/form-submit.d.ts +9 -10
- package/dist/types/components/form-elements/form-switch.d.ts +17 -0
- package/dist/types/components/form-elements/form-text-area.d.ts +5 -15
- package/dist/types/components/forms/demo/element-mapper.d.ts +6 -0
- package/dist/types/components/forms/demo/structure.d.ts +12 -0
- package/dist/types/components/forms/demo/validations.d.ts +32 -0
- package/dist/types/components/forms/demo-form.d.ts +41 -0
- package/dist/types/components/forms/vehicle-quotation/VehicleImageViewer.d.ts +8 -0
- package/dist/types/components/forms/vehicle-quotation/element-mapper.d.ts +6 -0
- package/dist/types/components/forms/vehicle-quotation/structure.d.ts +0 -0
- package/dist/types/components/forms/vehicle-quotation/validations.d.ts +34 -0
- package/dist/types/components/forms/vehicle-quotation.d.ts +38 -0
- package/dist/types/components.d.ts +321 -234
- package/dist/types/features/form-hook/form-hook.d.ts +57 -0
- package/dist/types/features/form-hook/gist-loader.d.ts +2 -0
- package/dist/types/features/form-hook/index.d.ts +7 -0
- package/dist/types/features/form-hook/inputs/form-input.d.ts +4 -0
- package/dist/types/features/form-hook/inputs/form-select.d.ts +12 -0
- package/dist/types/features/form-hook/interface.d.ts +79 -0
- package/dist/types/features/form-hook/phone-validator.d.ts +9 -0
- package/dist/types/features/form-hook/render-structure.d.ts +3 -0
- package/dist/types/features/multi-lingual/get-local-language.d.ts +2 -1
- package/dist/types/features/multi-lingual/types.d.ts +33 -0
- package/dist/types/global/assets/add-icon.d.ts +1 -0
- package/dist/types/global/assets/loader-icon.d.ts +6 -0
- package/dist/types/global/assets/tick-icon.d.ts +6 -0
- package/dist/types/global/lib/fetch-json.d.ts +1 -0
- package/dist/types/global/lib/get-language-from-url.d.ts +2 -0
- package/dist/types/global/lib/get-nested-value.d.ts +1 -0
- package/dist/types/global/lib/parse-loose-json.d.ts +1 -0
- package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-inspection-dto.d.ts +6 -0
- package/dist/types/global/types/generated/vehicle-lookup/paint-thickness-inspection-panel-dto.d.ts +7 -0
- package/dist/types/global/types/generated/vehicle-lookup/vehicle-lookup-dto.d.ts +2 -2
- package/dist/types/locale-mapper.d.ts +3 -1
- package/dist/types/locales/forms/contactUs/type.d.ts +9 -0
- package/dist/types/locales/forms/demo/type.d.ts +49 -0
- package/dist/types/locales/forms/type.d.ts +13 -0
- package/dist/types/locales/forms/vehicleQuotation/type.d.ts +68 -0
- package/dist/types/locales/forms/wrapper-type.d.ts +21 -0
- package/dist/types/locales/general/type.d.ts +0 -2
- package/dist/types/locales/generalTicketTypes/type.d.ts +0 -4
- package/dist/types/locales/vehicleLookup/serviceHistory/type.d.ts +2 -2
- package/dist/types/locales/vehicleLookup/wrapper-type.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +12 -5
- package/package.json +5 -3
- package/dist/cjs/contact-us-form.cjs.entry.js +0 -198
- package/dist/cjs/service-booking-form.cjs.entry.js +0 -198
- package/dist/collection/components/form-elements/form-dialog.css +0 -1
- package/dist/collection/components/form-elements/form-input.css +0 -1
- package/dist/collection/components/form-elements/form-select.css +0 -1
- package/dist/collection/components/form-elements/form-shadow-input.css +0 -1
- package/dist/collection/components/form-elements/form-structure-error.css +0 -1
- package/dist/collection/components/form-elements/form-structure.css +0 -1
- package/dist/collection/components/form-elements/form-submit.css +0 -1
- package/dist/collection/components/form-elements/form-text-area.css +0 -1
- package/dist/collection/components/forms/contact-us/element-mapper.js +0 -88
- package/dist/collection/components/forms/contact-us/form.css +0 -1
- package/dist/collection/components/forms/contact-us/validations.js +0 -19
- package/dist/collection/components/forms/contact-us-form.js +0 -295
- package/dist/collection/components/forms/service-booking/element-mapper.js +0 -88
- package/dist/collection/components/forms/service-booking/validations.js +0 -19
- package/dist/collection/global/lib/validate-form-structure.js +0 -47
- package/dist/components/contact-us-form.js +0 -5
- package/dist/components/p-0PjZRWut.js +0 -5
- package/dist/components/p-11ylorNL.js +0 -5
- package/dist/components/p-B2qqkU3A.js +0 -5
- package/dist/components/p-B6j7vssc.js +0 -5
- package/dist/components/p-BF4ShuLZ.js +0 -5
- package/dist/components/p-BGe0MyLF.js +0 -5
- package/dist/components/p-BKq17ywX.js +0 -5
- package/dist/components/p-BSP1ayje.js +0 -5
- package/dist/components/p-BVPVJguA.js +0 -5
- package/dist/components/p-BhjL0HMA.js +0 -5
- package/dist/components/p-BjSLaXGX.js +0 -5
- package/dist/components/p-Bm8G-DAp.js +0 -5
- package/dist/components/p-CIaM3UPL.js +0 -5
- package/dist/components/p-CcP_EtCu.js +0 -5
- package/dist/components/p-CtpTKsfq.js +0 -5
- package/dist/components/p-D8xszt8E.js +0 -5
- package/dist/components/p-DXGHyX7G.js +0 -5
- package/dist/components/p-Di5SfFwc.js +0 -5
- package/dist/components/p-DyaIfEgq.js +0 -5
- package/dist/components/p-P3fAKtye.js +0 -5
- package/dist/components/p-QMinV6Ic.js +0 -5
- package/dist/components/p-TyreGxpg.js +0 -5
- package/dist/components/p-alw0x13e.js +0 -5
- package/dist/components/p-eQuyMB7o.js +0 -5
- package/dist/components/p-x0cm6Jgv.js +0 -5
- package/dist/components/service-booking-form.js +0 -5
- package/dist/esm/contact-us-form.entry.js +0 -196
- package/dist/esm/service-booking-form.entry.js +0 -196
- package/dist/shift-components/p-03f093e0.entry.js +0 -5
- package/dist/shift-components/p-077e4c82.entry.js +0 -5
- package/dist/shift-components/p-42218765.entry.js +0 -5
- package/dist/shift-components/p-43a8b998.entry.js +0 -5
- package/dist/shift-components/p-55558c0f.entry.js +0 -5
- package/dist/shift-components/p-55c5a5ea.entry.js +0 -5
- package/dist/shift-components/p-701e3fb0.entry.js +0 -5
- package/dist/shift-components/p-8d7b1edb.entry.js +0 -5
- package/dist/shift-components/p-BSpTbUWi.js +0 -5
- package/dist/shift-components/p-CTkDt6jM.js +0 -5
- package/dist/shift-components/p-CikEOqe0.js +0 -6
- package/dist/shift-components/p-DPgWys0Y.js +0 -5
- package/dist/shift-components/p-bc419485.entry.js +0 -5
- package/dist/shift-components/p-e8e37708.entry.js +0 -5
- package/dist/shift-components/p-f1181125.entry.js +0 -5
- package/dist/shift-components/p-f760aaa3.entry.js +0 -5
- package/dist/shift-components/p-fyqwD4fB.js +0 -5
- package/dist/types/components/forms/contact-us/element-mapper.d.ts +0 -3
- package/dist/types/components/forms/contact-us/validations.d.ts +0 -26
- package/dist/types/components/forms/contact-us-form.d.ts +0 -32
- package/dist/types/components/forms/service-booking/element-mapper.d.ts +0 -3
- package/dist/types/components/forms/service-booking/validations.d.ts +0 -26
- package/dist/types/components/forms/service-booking-form.d.ts +0 -32
- package/dist/types/global/lib/form-hook.d.ts +0 -47
- package/dist/types/global/lib/validate-form-structure.d.ts +0 -3
- package/dist/types/global/types/forms.d.ts +0 -64
- package/dist/types/global/types/general.d.ts +0 -23
- /package/dist/collection/{global/types/forms.js → features/form-hook/inputs/form-input.js} +0 -0
- /package/dist/collection/{global/types/general.js → features/form-hook/inputs/form-select.js} +0 -0
|
@@ -2,101 +2,55 @@
|
|
|
2
2
|
* Built by ShiftSoftware
|
|
3
3
|
* Copyright (c)
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import cn from "../../global/lib/cn";
|
|
7
|
-
import { isValidStructure } from "../../global/lib/validate-form-structure";
|
|
5
|
+
import { Host, h } from "@stencil/core";
|
|
8
6
|
import generalSchema from "../../locales/general/type";
|
|
9
7
|
import { getLocaleLanguage, getSharedLocal, sharedLocalesSchema } from "../../features/multi-lingual/index";
|
|
8
|
+
import { renderStructure } from "../../features/form-hook/index";
|
|
10
9
|
export class FormStructure {
|
|
11
10
|
constructor() {
|
|
12
|
-
|
|
13
|
-
this.
|
|
11
|
+
// ====== Start Localization
|
|
12
|
+
this.formLocale = {};
|
|
14
13
|
this.language = 'en';
|
|
15
|
-
this.
|
|
16
|
-
this.showSuccess = false;
|
|
17
|
-
this.structureObject = null;
|
|
18
|
-
this.sharedLocales = sharedLocalesSchema.getDefault();
|
|
19
|
-
this.generalLocale = generalSchema.getDefault();
|
|
14
|
+
this.locale = Object.assign({ sharedLocales: sharedLocalesSchema.getDefault() }, generalSchema.getDefault());
|
|
20
15
|
}
|
|
21
16
|
async componentWillLoad() {
|
|
22
|
-
this.form.
|
|
23
|
-
|
|
24
|
-
setTimeout(() => {
|
|
25
|
-
this.showSuccess = false;
|
|
26
|
-
}, 4000);
|
|
27
|
-
});
|
|
28
|
-
let structure;
|
|
29
|
-
if (this.theme && this.themes[this.theme])
|
|
30
|
-
structure = this.themes[this.theme];
|
|
31
|
-
else
|
|
32
|
-
structure = this.structure;
|
|
33
|
-
await Promise.all([this.structureValidation(structure), this.changeLanguage(this.language)]);
|
|
34
|
-
}
|
|
35
|
-
async onStructureChange(newStructure) {
|
|
36
|
-
await this.structureValidation(newStructure);
|
|
37
|
-
}
|
|
38
|
-
async structureValidation(structureString) {
|
|
39
|
-
this.structureObject = isValidStructure(structureString);
|
|
17
|
+
this.form.formStructure = this;
|
|
18
|
+
await this.changeLanguage(this.language);
|
|
40
19
|
}
|
|
41
20
|
async changeLanguage(newLanguage) {
|
|
42
|
-
const
|
|
43
|
-
this.
|
|
44
|
-
this.sharedLocales = localeResponses[1];
|
|
45
|
-
}
|
|
46
|
-
renderLoop(structureElement) {
|
|
47
|
-
if (structureElement.element === '')
|
|
48
|
-
return h(Fragment, null, structureElement.children.map(child => this.renderLoop(child)));
|
|
49
|
-
if (structureElement.element === 'div')
|
|
50
|
-
return (h("div", { class: structureElement.class, id: structureElement.id }, structureElement.children.map(child => this.renderLoop(child))));
|
|
51
|
-
if (structureElement.element === 'slot')
|
|
52
|
-
return h("slot", null);
|
|
53
|
-
if (this.formElementMapper[structureElement.element])
|
|
54
|
-
return this.formElementMapper[structureElement.element]({ form: this.form, isLoading: this.isLoading, structureElement, language: this.language });
|
|
55
|
-
return false;
|
|
21
|
+
const [sharedLocales, locale] = await Promise.all([getSharedLocal(newLanguage), getLocaleLanguage(newLanguage, 'general', generalSchema)]);
|
|
22
|
+
this.locale = Object.assign({ sharedLocales }, locale);
|
|
56
23
|
}
|
|
57
24
|
render() {
|
|
58
|
-
|
|
25
|
+
const [locale] = this.form.getFormLocale();
|
|
26
|
+
const generalProps = {
|
|
27
|
+
form: this.form,
|
|
28
|
+
isLoading: this.isLoading,
|
|
29
|
+
language: this.language,
|
|
30
|
+
locale: this.formLocale,
|
|
31
|
+
props: { isLoading: this.isLoading, form: this.form },
|
|
32
|
+
};
|
|
33
|
+
if (!this.structure)
|
|
59
34
|
return h("form-structure-error", { language: this.language });
|
|
60
35
|
const { formController, resetFormErrorMessage } = this.form;
|
|
61
|
-
return (h(Host, null, h("form", Object.assign({ class: "relative
|
|
62
|
-
'opacity-100 translate-x-0': this.showSuccess,
|
|
63
|
-
}) }, h("div", { class: "flex flex-col gap-[16px] items-center" }, h("svg", { fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: "size-[70px] stroke-green-700" }, h("path", { d: "M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z" }), h("path", { d: "m9 12 2 2 4-4" })), h("div", { class: "text-[20px]" }, this.generalLocale.formSubmittedSuccessfully))), h("form-dialog", { dialogClosed: resetFormErrorMessage, language: this.language, errorMessage: this.errorMessage }), h("div", { class: cn('transition duration-1000', { 'translate-x-full opacity-0': this.showSuccess }) }, this.renderLoop(this.structureObject)))));
|
|
36
|
+
return (h(Host, null, h("form", Object.assign({ class: "relative", dir: this.locale.sharedLocales.direction }, formController), h("form-dialog", { dialogClosed: resetFormErrorMessage, isError: !!this.errorMessage, closeText: locale.close, form: this.form, message: this.errorMessage }, h("div", { class: "form-success-container" }, h("svg", { fill: "none", "stroke-width": "2", viewBox: "0 0 24 24", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", xmlns: "http://www.w3.org/2000/svg", class: "size-[70px] stroke-green-700" }, h("path", { d: "M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z" }), h("path", { d: "m9 12 2 2 4-4" })), this.successMessage)), h("div", null, renderStructure(this.structure, this.formElementMapper, generalProps)))));
|
|
64
37
|
}
|
|
65
38
|
static get is() { return "form-structure"; }
|
|
66
39
|
static get originalStyleUrls() {
|
|
67
40
|
return {
|
|
68
|
-
"$": ["form-
|
|
41
|
+
"$": ["form-inputs.css"]
|
|
69
42
|
};
|
|
70
43
|
}
|
|
71
44
|
static get styleUrls() {
|
|
72
45
|
return {
|
|
73
|
-
"$": ["form-
|
|
46
|
+
"$": ["form-inputs.css"]
|
|
74
47
|
};
|
|
75
48
|
}
|
|
76
49
|
static get properties() {
|
|
77
50
|
return {
|
|
78
|
-
"
|
|
79
|
-
"type": "string",
|
|
80
|
-
"attribute": "theme",
|
|
81
|
-
"mutable": false,
|
|
82
|
-
"complexType": {
|
|
83
|
-
"original": "string",
|
|
84
|
-
"resolved": "string",
|
|
85
|
-
"references": {}
|
|
86
|
-
},
|
|
87
|
-
"required": false,
|
|
88
|
-
"optional": false,
|
|
89
|
-
"docs": {
|
|
90
|
-
"tags": [],
|
|
91
|
-
"text": ""
|
|
92
|
-
},
|
|
93
|
-
"getter": false,
|
|
94
|
-
"setter": false,
|
|
95
|
-
"reflect": false
|
|
96
|
-
},
|
|
97
|
-
"themes": {
|
|
51
|
+
"formLocale": {
|
|
98
52
|
"type": "any",
|
|
99
|
-
"attribute": "
|
|
53
|
+
"attribute": "form-locale",
|
|
100
54
|
"mutable": false,
|
|
101
55
|
"complexType": {
|
|
102
56
|
"original": "any",
|
|
@@ -111,17 +65,23 @@ export class FormStructure {
|
|
|
111
65
|
},
|
|
112
66
|
"getter": false,
|
|
113
67
|
"setter": false,
|
|
114
|
-
"reflect":
|
|
68
|
+
"reflect": true,
|
|
115
69
|
"defaultValue": "{}"
|
|
116
70
|
},
|
|
117
|
-
"
|
|
118
|
-
"type": "
|
|
119
|
-
"attribute": "
|
|
71
|
+
"language": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"attribute": "language",
|
|
120
74
|
"mutable": false,
|
|
121
75
|
"complexType": {
|
|
122
|
-
"original": "
|
|
123
|
-
"resolved": "
|
|
124
|
-
"references": {
|
|
76
|
+
"original": "LanguageKeys",
|
|
77
|
+
"resolved": "\"ar\" | \"en\" | \"ku\" | \"ru\"",
|
|
78
|
+
"references": {
|
|
79
|
+
"LanguageKeys": {
|
|
80
|
+
"location": "import",
|
|
81
|
+
"path": "~features/multi-lingual",
|
|
82
|
+
"id": "src/features/multi-lingual/index.ts::LanguageKeys"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
125
85
|
},
|
|
126
86
|
"required": false,
|
|
127
87
|
"optional": false,
|
|
@@ -131,7 +91,8 @@ export class FormStructure {
|
|
|
131
91
|
},
|
|
132
92
|
"getter": false,
|
|
133
93
|
"setter": false,
|
|
134
|
-
"
|
|
94
|
+
"reflect": true,
|
|
95
|
+
"defaultValue": "'en'"
|
|
135
96
|
},
|
|
136
97
|
"isLoading": {
|
|
137
98
|
"type": "boolean",
|
|
@@ -162,8 +123,8 @@ export class FormStructure {
|
|
|
162
123
|
"references": {
|
|
163
124
|
"FormHook": {
|
|
164
125
|
"location": "import",
|
|
165
|
-
"path": "~
|
|
166
|
-
"id": "src/
|
|
126
|
+
"path": "~features/form-hook",
|
|
127
|
+
"id": "src/features/form-hook/index.ts::FormHook"
|
|
167
128
|
}
|
|
168
129
|
}
|
|
169
130
|
},
|
|
@@ -195,20 +156,14 @@ export class FormStructure {
|
|
|
195
156
|
"setter": false,
|
|
196
157
|
"reflect": false
|
|
197
158
|
},
|
|
198
|
-
"
|
|
159
|
+
"successMessage": {
|
|
199
160
|
"type": "string",
|
|
200
|
-
"attribute": "
|
|
161
|
+
"attribute": "success-message",
|
|
201
162
|
"mutable": false,
|
|
202
163
|
"complexType": {
|
|
203
|
-
"original": "
|
|
204
|
-
"resolved": "
|
|
205
|
-
"references": {
|
|
206
|
-
"LanguageKeys": {
|
|
207
|
-
"location": "import",
|
|
208
|
-
"path": "~features/multi-lingual",
|
|
209
|
-
"id": "src/features/multi-lingual/index.ts::LanguageKeys"
|
|
210
|
-
}
|
|
211
|
-
}
|
|
164
|
+
"original": "string",
|
|
165
|
+
"resolved": "string",
|
|
166
|
+
"references": {}
|
|
212
167
|
},
|
|
213
168
|
"required": false,
|
|
214
169
|
"optional": false,
|
|
@@ -218,17 +173,22 @@ export class FormStructure {
|
|
|
218
173
|
},
|
|
219
174
|
"getter": false,
|
|
220
175
|
"setter": false,
|
|
221
|
-
"reflect": false
|
|
222
|
-
"defaultValue": "'en'"
|
|
176
|
+
"reflect": false
|
|
223
177
|
},
|
|
224
178
|
"structure": {
|
|
225
|
-
"type": "
|
|
179
|
+
"type": "unknown",
|
|
226
180
|
"attribute": "structure",
|
|
227
181
|
"mutable": false,
|
|
228
182
|
"complexType": {
|
|
229
|
-
"original": "
|
|
230
|
-
"resolved": "string",
|
|
231
|
-
"references": {
|
|
183
|
+
"original": "FormElementStructure<any>",
|
|
184
|
+
"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; }",
|
|
185
|
+
"references": {
|
|
186
|
+
"FormElementStructure": {
|
|
187
|
+
"location": "import",
|
|
188
|
+
"path": "~features/form-hook",
|
|
189
|
+
"id": "src/features/form-hook/index.ts::FormElementStructure"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
232
192
|
},
|
|
233
193
|
"required": false,
|
|
234
194
|
"optional": false,
|
|
@@ -237,22 +197,20 @@ export class FormStructure {
|
|
|
237
197
|
"text": ""
|
|
238
198
|
},
|
|
239
199
|
"getter": false,
|
|
240
|
-
"setter": false
|
|
241
|
-
"reflect": false,
|
|
242
|
-
"defaultValue": "'[\"submit.Submit\"]'"
|
|
200
|
+
"setter": false
|
|
243
201
|
},
|
|
244
202
|
"formElementMapper": {
|
|
245
203
|
"type": "unknown",
|
|
246
204
|
"attribute": "form-element-mapper",
|
|
247
205
|
"mutable": false,
|
|
248
206
|
"complexType": {
|
|
249
|
-
"original": "FormElementMapper<any>",
|
|
250
|
-
"resolved": "{ [x: string]: FormElementMapperFunction
|
|
207
|
+
"original": "FormElementMapper<any, any>",
|
|
208
|
+
"resolved": "{ [x: string]: FormElementMapperFunction<any>; } & {}",
|
|
251
209
|
"references": {
|
|
252
210
|
"FormElementMapper": {
|
|
253
211
|
"location": "import",
|
|
254
|
-
"path": "~
|
|
255
|
-
"id": "src/
|
|
212
|
+
"path": "~features/form-hook",
|
|
213
|
+
"id": "src/features/form-hook/index.ts::FormElementMapper"
|
|
256
214
|
}
|
|
257
215
|
}
|
|
258
216
|
},
|
|
@@ -269,17 +227,12 @@ export class FormStructure {
|
|
|
269
227
|
}
|
|
270
228
|
static get states() {
|
|
271
229
|
return {
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
"sharedLocales": {},
|
|
275
|
-
"generalLocale": {}
|
|
230
|
+
"locale": {},
|
|
231
|
+
"formContent": {}
|
|
276
232
|
};
|
|
277
233
|
}
|
|
278
234
|
static get watchers() {
|
|
279
235
|
return [{
|
|
280
|
-
"propName": "structure",
|
|
281
|
-
"methodName": "onStructureChange"
|
|
282
|
-
}, {
|
|
283
236
|
"propName": "language",
|
|
284
237
|
"methodName": "changeLanguage"
|
|
285
238
|
}];
|
|
@@ -4,40 +4,75 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { h } from "@stencil/core";
|
|
6
6
|
import cn from "../../global/lib/cn";
|
|
7
|
-
import {
|
|
7
|
+
import { getNestedValue } from "../../global/lib/get-nested-value";
|
|
8
8
|
import Loader from "~assets/white-loader.svg";
|
|
9
|
-
|
|
9
|
+
const buttonSubscriberKey = 'submit-button';
|
|
10
10
|
export class FormSubmit {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.params = {};
|
|
13
|
-
this.language = 'en';
|
|
14
|
-
this.generalLocale = generalSchema.getDefault();
|
|
15
|
-
}
|
|
16
11
|
async componentWillLoad() {
|
|
17
|
-
|
|
12
|
+
this.form.subscribe(buttonSubscriberKey, this);
|
|
18
13
|
}
|
|
19
|
-
async
|
|
20
|
-
this.
|
|
14
|
+
async disconnectedCallback() {
|
|
15
|
+
this.form.unsubscribe(buttonSubscriberKey);
|
|
21
16
|
}
|
|
17
|
+
reset() { }
|
|
22
18
|
render() {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
const [locale] = this.form.getFormLocale();
|
|
20
|
+
const submitText = getNestedValue(locale, this.submitTextKey) || getNestedValue(locale, 'submit') || 'Submit';
|
|
21
|
+
return (h("button", { key: 'd4cd46824e056ee273e2603d2e7aca07395bcfeb', type: "submit", part: buttonSubscriberKey, disabled: this.isLoading, class: cn('form-submit', {
|
|
22
|
+
loading: this.isLoading,
|
|
23
|
+
}) }, h("div", { key: '4f800ac8a2c46ef15032c4e5606ed09b4e5a1d78', class: "opacity-0 form-submit-text-style" }, submitText), h("div", { key: '7d28df2771a318b10227fb8a56e6efa6ccac2782', class: "form-submit-text-style form-submit-text-position" }, submitText), h("div", { key: 'a5d191c5014dee9d8817e323c1f3592ff8fa7abe', part: "form-submit-loading-container", class: "form-submit-loading-container" }, h("img", { key: 'dd4db8c23423704e5a7b8c422955a695362838bf', part: "form-submit-loading-icon", class: "form-submit-loading-icon", src: Loader }))));
|
|
27
24
|
}
|
|
28
25
|
static get is() { return "form-submit"; }
|
|
29
26
|
static get originalStyleUrls() {
|
|
30
27
|
return {
|
|
31
|
-
"$": ["form-
|
|
28
|
+
"$": ["form-inputs.css"]
|
|
32
29
|
};
|
|
33
30
|
}
|
|
34
31
|
static get styleUrls() {
|
|
35
32
|
return {
|
|
36
|
-
"$": ["form-
|
|
33
|
+
"$": ["form-inputs.css"]
|
|
37
34
|
};
|
|
38
35
|
}
|
|
39
36
|
static get properties() {
|
|
40
37
|
return {
|
|
38
|
+
"language": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"attribute": "language",
|
|
41
|
+
"mutable": false,
|
|
42
|
+
"complexType": {
|
|
43
|
+
"original": "string",
|
|
44
|
+
"resolved": "string",
|
|
45
|
+
"references": {}
|
|
46
|
+
},
|
|
47
|
+
"required": false,
|
|
48
|
+
"optional": true,
|
|
49
|
+
"docs": {
|
|
50
|
+
"tags": [],
|
|
51
|
+
"text": ""
|
|
52
|
+
},
|
|
53
|
+
"getter": false,
|
|
54
|
+
"setter": false,
|
|
55
|
+
"reflect": false
|
|
56
|
+
},
|
|
57
|
+
"wrapperId": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"attribute": "wrapper-id",
|
|
60
|
+
"mutable": false,
|
|
61
|
+
"complexType": {
|
|
62
|
+
"original": "string",
|
|
63
|
+
"resolved": "string",
|
|
64
|
+
"references": {}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": ""
|
|
71
|
+
},
|
|
72
|
+
"getter": false,
|
|
73
|
+
"setter": false,
|
|
74
|
+
"reflect": false
|
|
75
|
+
},
|
|
41
76
|
"isLoading": {
|
|
42
77
|
"type": "boolean",
|
|
43
78
|
"attribute": "is-loading",
|
|
@@ -57,18 +92,18 @@ export class FormSubmit {
|
|
|
57
92
|
"setter": false,
|
|
58
93
|
"reflect": false
|
|
59
94
|
},
|
|
60
|
-
"
|
|
95
|
+
"form": {
|
|
61
96
|
"type": "unknown",
|
|
62
|
-
"attribute": "
|
|
97
|
+
"attribute": "form",
|
|
63
98
|
"mutable": false,
|
|
64
99
|
"complexType": {
|
|
65
|
-
"original": "
|
|
66
|
-
"resolved": "
|
|
100
|
+
"original": "FormHook<any>",
|
|
101
|
+
"resolved": "FormHook<any>",
|
|
67
102
|
"references": {
|
|
68
|
-
"
|
|
103
|
+
"FormHook": {
|
|
69
104
|
"location": "import",
|
|
70
|
-
"path": "~
|
|
71
|
-
"id": "src/
|
|
105
|
+
"path": "~features/form-hook",
|
|
106
|
+
"id": "src/features/form-hook/index.ts::FormHook"
|
|
72
107
|
}
|
|
73
108
|
}
|
|
74
109
|
},
|
|
@@ -79,23 +114,16 @@ export class FormSubmit {
|
|
|
79
114
|
"text": ""
|
|
80
115
|
},
|
|
81
116
|
"getter": false,
|
|
82
|
-
"setter": false
|
|
83
|
-
"defaultValue": "{}"
|
|
117
|
+
"setter": false
|
|
84
118
|
},
|
|
85
|
-
"
|
|
119
|
+
"wrapperClass": {
|
|
86
120
|
"type": "string",
|
|
87
|
-
"attribute": "
|
|
121
|
+
"attribute": "wrapper-class",
|
|
88
122
|
"mutable": false,
|
|
89
123
|
"complexType": {
|
|
90
|
-
"original": "
|
|
91
|
-
"resolved": "
|
|
92
|
-
"references": {
|
|
93
|
-
"LanguageKeys": {
|
|
94
|
-
"location": "import",
|
|
95
|
-
"path": "~features/multi-lingual/types",
|
|
96
|
-
"id": "src/features/multi-lingual/types.ts::LanguageKeys"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
124
|
+
"original": "string",
|
|
125
|
+
"resolved": "string",
|
|
126
|
+
"references": {}
|
|
99
127
|
},
|
|
100
128
|
"required": false,
|
|
101
129
|
"optional": false,
|
|
@@ -105,44 +133,27 @@ export class FormSubmit {
|
|
|
105
133
|
},
|
|
106
134
|
"getter": false,
|
|
107
135
|
"setter": false,
|
|
108
|
-
"reflect": false
|
|
109
|
-
"defaultValue": "'en'"
|
|
136
|
+
"reflect": false
|
|
110
137
|
},
|
|
111
|
-
"
|
|
112
|
-
"type": "
|
|
113
|
-
"attribute": "
|
|
138
|
+
"submitTextKey": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"attribute": "submit-text-key",
|
|
114
141
|
"mutable": false,
|
|
115
142
|
"complexType": {
|
|
116
|
-
"original": "
|
|
117
|
-
"resolved": "
|
|
118
|
-
"references": {
|
|
119
|
-
"StructureObject": {
|
|
120
|
-
"location": "import",
|
|
121
|
-
"path": "~types/forms",
|
|
122
|
-
"id": "src/global/types/forms.ts::StructureObject"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
143
|
+
"original": "string",
|
|
144
|
+
"resolved": "string",
|
|
145
|
+
"references": {}
|
|
125
146
|
},
|
|
126
147
|
"required": false,
|
|
127
|
-
"optional":
|
|
148
|
+
"optional": true,
|
|
128
149
|
"docs": {
|
|
129
150
|
"tags": [],
|
|
130
151
|
"text": ""
|
|
131
152
|
},
|
|
132
153
|
"getter": false,
|
|
133
|
-
"setter": false
|
|
154
|
+
"setter": false,
|
|
155
|
+
"reflect": false
|
|
134
156
|
}
|
|
135
157
|
};
|
|
136
158
|
}
|
|
137
|
-
static get states() {
|
|
138
|
-
return {
|
|
139
|
-
"generalLocale": {}
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
static get watchers() {
|
|
143
|
-
return [{
|
|
144
|
-
"propName": "language",
|
|
145
|
-
"methodName": "changeLanguage"
|
|
146
|
-
}];
|
|
147
|
-
}
|
|
148
159
|
}
|