@tsed/tailwind-formio 2.3.6 → 3.0.0-alpha.10
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/build/config.1e3fca3e.json +1 -0
- package/build/css/app.a4ea028b.css +3 -0
- package/build/js/app.5db1c92a.js +2 -0
- package/build/js/app.5db1c92a.js.map +1 -0
- package/build/js/chunk-vendors.6cab5322.js +8 -0
- package/build/js/chunk-vendors.6cab5322.js.map +1 -0
- package/build/tailwind.html +3 -0
- package/dist/ejs.d.js +2 -0
- package/dist/ejs.d.js.map +1 -0
- package/dist/index.d.ts +222 -222
- package/dist/index.js +6 -2017
- package/dist/index.js.map +1 -1
- package/dist/tailwind/colors.d.ts +328 -0
- package/dist/tailwind/colors.js +15 -0
- package/dist/tailwind/colors.js.map +1 -0
- package/dist/tailwind/preset.d.ts +158 -0
- package/dist/tailwind/preset.js +173 -0
- package/dist/tailwind/preset.js.map +1 -0
- package/dist/templates/index.d.ts +219 -219
- package/dist/templates/index.js +8 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/templates/tailwind/address/index.d.ts +4 -5
- package/dist/templates/tailwind/address/index.js +55 -0
- package/dist/templates/tailwind/address/index.js.map +1 -0
- package/dist/templates/tailwind/alert/index.d.ts +4 -5
- package/dist/templates/tailwind/alert/index.js +22 -0
- package/dist/templates/tailwind/alert/index.js.map +1 -0
- package/dist/templates/tailwind/builder/index.d.ts +4 -5
- package/dist/templates/tailwind/builder/index.js +17 -0
- package/dist/templates/tailwind/builder/index.js.map +1 -0
- package/dist/templates/tailwind/builderComponent/index.d.ts +4 -5
- package/dist/templates/tailwind/builderComponent/index.js +70 -0
- package/dist/templates/tailwind/builderComponent/index.js.map +1 -0
- package/dist/templates/tailwind/builderComponents/index.d.ts +4 -5
- package/dist/templates/tailwind/builderComponents/index.js +12 -0
- package/dist/templates/tailwind/builderComponents/index.js.map +1 -0
- package/dist/templates/tailwind/builderEditForm/index.d.ts +4 -5
- package/dist/templates/tailwind/builderEditForm/index.js +73 -0
- package/dist/templates/tailwind/builderEditForm/index.js.map +1 -0
- package/dist/templates/tailwind/builderPlaceholder/index.d.ts +4 -5
- package/dist/templates/tailwind/builderPlaceholder/index.js +18 -0
- package/dist/templates/tailwind/builderPlaceholder/index.js.map +1 -0
- package/dist/templates/tailwind/builderSidebar/index.d.ts +4 -5
- package/dist/templates/tailwind/builderSidebar/index.js +19 -0
- package/dist/templates/tailwind/builderSidebar/index.js.map +1 -0
- package/dist/templates/tailwind/builderSidebarGroup/index.d.ts +4 -5
- package/dist/templates/tailwind/builderSidebarGroup/index.js +58 -0
- package/dist/templates/tailwind/builderSidebarGroup/index.js.map +1 -0
- package/dist/templates/tailwind/builderWizard/index.d.ts +4 -5
- package/dist/templates/tailwind/builderWizard/index.js +33 -0
- package/dist/templates/tailwind/builderWizard/index.js.map +1 -0
- package/dist/templates/tailwind/button/index.d.ts +5 -7
- package/dist/templates/tailwind/button/index.js +36 -0
- package/dist/templates/tailwind/button/index.js.map +1 -0
- package/dist/templates/tailwind/checkbox/index.d.ts +5 -7
- package/dist/templates/tailwind/checkbox/index.js +42 -0
- package/dist/templates/tailwind/checkbox/index.js.map +1 -0
- package/dist/templates/tailwind/columns/index.d.ts +4 -5
- package/dist/templates/tailwind/columns/index.js +21 -0
- package/dist/templates/tailwind/columns/index.js.map +1 -0
- package/dist/templates/tailwind/component/index.d.ts +4 -5
- package/dist/templates/tailwind/component/index.js +15 -0
- package/dist/templates/tailwind/component/index.js.map +1 -0
- package/dist/templates/tailwind/componentModal/index.d.ts +4 -5
- package/dist/templates/tailwind/componentModal/index.js +35 -0
- package/dist/templates/tailwind/componentModal/index.js.map +1 -0
- package/dist/templates/tailwind/components/index.d.ts +4 -5
- package/dist/templates/tailwind/components/index.js +10 -0
- package/dist/templates/tailwind/components/index.js.map +1 -0
- package/dist/templates/tailwind/container/index.d.ts +4 -5
- package/dist/templates/tailwind/container/index.js +12 -0
- package/dist/templates/tailwind/container/index.js.map +1 -0
- package/dist/templates/tailwind/cssClasses.d.ts +7 -7
- package/dist/templates/tailwind/cssClasses.js +10 -0
- package/dist/templates/tailwind/cssClasses.js.map +1 -0
- package/dist/templates/tailwind/datagrid/index.d.ts +5 -7
- package/dist/templates/tailwind/datagrid/index.js +132 -0
- package/dist/templates/tailwind/datagrid/index.js.map +1 -0
- package/dist/templates/tailwind/day/index.d.ts +4 -5
- package/dist/templates/tailwind/day/index.js +53 -0
- package/dist/templates/tailwind/day/index.js.map +1 -0
- package/dist/templates/tailwind/dialog/index.d.ts +4 -5
- package/dist/templates/tailwind/dialog/index.js +16 -0
- package/dist/templates/tailwind/dialog/index.js.map +1 -0
- package/dist/templates/tailwind/editgrid/index.d.ts +5 -7
- package/dist/templates/tailwind/editgrid/index.js +92 -0
- package/dist/templates/tailwind/editgrid/index.js.map +1 -0
- package/dist/templates/tailwind/editgridTable/index.d.ts +5 -7
- package/dist/templates/tailwind/editgridTable/index.js +121 -0
- package/dist/templates/tailwind/editgridTable/index.js.map +1 -0
- package/dist/templates/tailwind/errorsList/index.d.ts +4 -5
- package/dist/templates/tailwind/errorsList/index.js +30 -0
- package/dist/templates/tailwind/errorsList/index.js.map +1 -0
- package/dist/templates/tailwind/field/index.d.ts +5 -7
- package/dist/templates/tailwind/field/index.js +55 -0
- package/dist/templates/tailwind/field/index.js.map +1 -0
- package/dist/templates/tailwind/fieldset/index.d.ts +4 -5
- package/dist/templates/tailwind/fieldset/index.js +25 -0
- package/dist/templates/tailwind/fieldset/index.js.map +1 -0
- package/dist/templates/tailwind/file/index.d.ts +4 -5
- package/dist/templates/tailwind/file/index.js +158 -0
- package/dist/templates/tailwind/file/index.js.map +1 -0
- package/dist/templates/tailwind/html/index.d.ts +4 -5
- package/dist/templates/tailwind/html/index.js +16 -0
- package/dist/templates/tailwind/html/index.js.map +1 -0
- package/dist/templates/tailwind/icon/index.d.ts +4 -5
- package/dist/templates/tailwind/icon/index.js +10 -0
- package/dist/templates/tailwind/icon/index.js.map +1 -0
- package/dist/templates/tailwind/iconClass.d.ts +3 -3
- package/dist/templates/tailwind/iconClass.js +57 -0
- package/dist/templates/tailwind/iconClass.js.map +1 -0
- package/dist/templates/tailwind/index.d.ts +217 -217
- package/dist/templates/tailwind/index.js +145 -0
- package/dist/templates/tailwind/index.js.map +1 -0
- package/dist/templates/tailwind/input/index.d.ts +5 -7
- package/dist/templates/tailwind/input/index.js +78 -0
- package/dist/templates/tailwind/input/index.js.map +1 -0
- package/dist/templates/tailwind/label/index.d.ts +4 -5
- package/dist/templates/tailwind/label/index.js +23 -0
- package/dist/templates/tailwind/label/index.js.map +1 -0
- package/dist/templates/tailwind/loader/index.d.ts +4 -5
- package/dist/templates/tailwind/loader/index.js +14 -0
- package/dist/templates/tailwind/loader/index.js.map +1 -0
- package/dist/templates/tailwind/loading/index.d.ts +4 -5
- package/dist/templates/tailwind/loading/index.js +10 -0
- package/dist/templates/tailwind/loading/index.js.map +1 -0
- package/dist/templates/tailwind/map/index.d.ts +4 -5
- package/dist/templates/tailwind/map/index.js +10 -0
- package/dist/templates/tailwind/map/index.js.map +1 -0
- package/dist/templates/tailwind/message/index.d.ts +4 -5
- package/dist/templates/tailwind/message/index.js +10 -0
- package/dist/templates/tailwind/message/index.js.map +1 -0
- package/dist/templates/tailwind/modalPreview/index.d.ts +4 -5
- package/dist/templates/tailwind/modalPreview/index.js +24 -0
- package/dist/templates/tailwind/modalPreview/index.js.map +1 -0
- package/dist/templates/tailwind/modaldialog/index.d.ts +4 -5
- package/dist/templates/tailwind/modaldialog/index.js +22 -0
- package/dist/templates/tailwind/modaldialog/index.js.map +1 -0
- package/dist/templates/tailwind/modaledit/index.d.ts +4 -5
- package/dist/templates/tailwind/modaledit/index.js +19 -0
- package/dist/templates/tailwind/modaledit/index.js.map +1 -0
- package/dist/templates/tailwind/multiValueRow/index.d.ts +4 -5
- package/dist/templates/tailwind/multiValueRow/index.js +21 -0
- package/dist/templates/tailwind/multiValueRow/index.js.map +1 -0
- package/dist/templates/tailwind/multiValueTable/index.d.ts +4 -5
- package/dist/templates/tailwind/multiValueTable/index.js +21 -0
- package/dist/templates/tailwind/multiValueTable/index.js.map +1 -0
- package/dist/templates/tailwind/multipleMasksInput/index.d.ts +4 -5
- package/dist/templates/tailwind/multipleMasksInput/index.js +34 -0
- package/dist/templates/tailwind/multipleMasksInput/index.js.map +1 -0
- package/dist/templates/tailwind/panel/index.d.ts +4 -5
- package/dist/templates/tailwind/panel/index.js +39 -0
- package/dist/templates/tailwind/panel/index.js.map +1 -0
- package/dist/templates/tailwind/pdf/index.d.ts +4 -5
- package/dist/templates/tailwind/pdf/index.js +19 -0
- package/dist/templates/tailwind/pdf/index.js.map +1 -0
- package/dist/templates/tailwind/pdfBuilder/index.d.ts +4 -5
- package/dist/templates/tailwind/pdfBuilder/index.js +18 -0
- package/dist/templates/tailwind/pdfBuilder/index.js.map +1 -0
- package/dist/templates/tailwind/pdfBuilderUpload/index.d.ts +4 -5
- package/dist/templates/tailwind/pdfBuilderUpload/index.js +25 -0
- package/dist/templates/tailwind/pdfBuilderUpload/index.js.map +1 -0
- package/dist/templates/tailwind/radio/index.d.ts +5 -7
- package/dist/templates/tailwind/radio/index.js +66 -0
- package/dist/templates/tailwind/radio/index.js.map +1 -0
- package/dist/templates/tailwind/resourceAdd/index.d.ts +4 -5
- package/dist/templates/tailwind/resourceAdd/index.js +26 -0
- package/dist/templates/tailwind/resourceAdd/index.js.map +1 -0
- package/dist/templates/tailwind/select/index.d.ts +5 -7
- package/dist/templates/tailwind/select/index.js +40 -0
- package/dist/templates/tailwind/select/index.js.map +1 -0
- package/dist/templates/tailwind/selectOption/index.d.ts +5 -7
- package/dist/templates/tailwind/selectOption/index.js +25 -0
- package/dist/templates/tailwind/selectOption/index.js.map +1 -0
- package/dist/templates/tailwind/signature/index.d.ts +5 -7
- package/dist/templates/tailwind/signature/index.js +37 -0
- package/dist/templates/tailwind/signature/index.js.map +1 -0
- package/dist/templates/tailwind/survey/index.d.ts +5 -7
- package/dist/templates/tailwind/survey/index.js +71 -0
- package/dist/templates/tailwind/survey/index.js.map +1 -0
- package/dist/templates/tailwind/tab/index.d.ts +5 -7
- package/dist/templates/tailwind/tab/index.js +60 -0
- package/dist/templates/tailwind/tab/index.js.map +1 -0
- package/dist/templates/tailwind/table/index.d.ts +4 -5
- package/dist/templates/tailwind/table/index.js +41 -0
- package/dist/templates/tailwind/table/index.js.map +1 -0
- package/dist/templates/tailwind/tableComponents/index.d.ts +4 -5
- package/dist/templates/tailwind/tableComponents/index.js +16 -0
- package/dist/templates/tailwind/tableComponents/index.js.map +1 -0
- package/dist/templates/tailwind/tree/index.d.ts +4 -5
- package/dist/templates/tailwind/tree/index.js +29 -0
- package/dist/templates/tailwind/tree/index.js.map +1 -0
- package/dist/templates/tailwind/tree/partials/index.d.ts +9 -11
- package/dist/templates/tailwind/tree/partials/index.js +53 -0
- package/dist/templates/tailwind/tree/partials/index.js.map +1 -0
- package/dist/templates/tailwind/webform/index.d.ts +5 -7
- package/dist/templates/tailwind/webform/index.js +15 -0
- package/dist/templates/tailwind/webform/index.js.map +1 -0
- package/dist/templates/tailwind/well/index.d.ts +4 -5
- package/dist/templates/tailwind/well/index.js +14 -0
- package/dist/templates/tailwind/well/index.js.map +1 -0
- package/dist/templates/tailwind/wizard/index.d.ts +5 -7
- package/dist/templates/tailwind/wizard/index.js +44 -0
- package/dist/templates/tailwind/wizard/index.js.map +1 -0
- package/dist/templates/tailwind/wizardHeader/index.d.ts +4 -5
- package/dist/templates/tailwind/wizardHeader/index.js +25 -0
- package/dist/templates/tailwind/wizardHeader/index.js.map +1 -0
- package/dist/templates/tailwind/wizardHeaderClassic/index.d.ts +4 -5
- package/dist/templates/tailwind/wizardHeaderClassic/index.js +27 -0
- package/dist/templates/tailwind/wizardHeaderClassic/index.js.map +1 -0
- package/dist/templates/tailwind/wizardHeaderVertical/index.d.ts +4 -5
- package/dist/templates/tailwind/wizardHeaderVertical/index.js +25 -0
- package/dist/templates/tailwind/wizardHeaderVertical/index.js.map +1 -0
- package/dist/templates/tailwind/wizardNav/index.d.ts +4 -5
- package/dist/templates/tailwind/wizardNav/index.js +39 -0
- package/dist/templates/tailwind/wizardNav/index.js.map +1 -0
- package/package.json +32 -22
- package/readme.md +13 -129
- package/src/tailwind/colors.ts +20 -0
- package/src/tailwind/preset.ts +163 -0
- package/src/templates/stories/__fixtures__/WrapperForm.jsx +103 -0
- package/src/templates/stories/__fixtures__/form-firstname.fixture.json +256 -0
- package/src/templates/stories/__fixtures__/form.fixtures.js +1840 -0
- package/src/templates/stories/__fixtures__/useEditForm.jsx +82 -0
- package/src/templates/stories/breadcrumbs.stories.jsx +2 -1
- package/src/templates/tailwind/address/index.ts +1 -1
- package/src/templates/tailwind/alert/index.ts +3 -0
- package/src/templates/tailwind/builder/index.ts +1 -1
- package/src/templates/tailwind/builderComponent/index.ts +1 -1
- package/src/templates/tailwind/builderComponents/index.ts +1 -1
- package/src/templates/tailwind/builderEditForm/form.ejs +4 -2
- package/src/templates/tailwind/builderEditForm/index.ts +1 -1
- package/src/templates/tailwind/builderPlaceholder/index.ts +1 -1
- package/src/templates/tailwind/builderSidebar/index.ts +1 -1
- package/src/templates/tailwind/builderSidebarGroup/form.ejs +1 -1
- package/src/templates/tailwind/builderSidebarGroup/index.ts +1 -1
- package/src/templates/tailwind/builderWizard/index.ts +1 -1
- package/src/templates/tailwind/button/index.ts +2 -2
- package/src/templates/tailwind/checkbox/index.ts +2 -2
- package/src/templates/tailwind/columns/index.ts +1 -1
- package/src/templates/tailwind/component/index.ts +1 -1
- package/src/templates/tailwind/componentModal/index.ts +1 -1
- package/src/templates/tailwind/components/index.ts +1 -1
- package/src/templates/tailwind/container/index.ts +1 -1
- package/src/templates/tailwind/datagrid/index.ts +2 -2
- package/src/templates/tailwind/day/index.ts +1 -1
- package/src/templates/tailwind/dialog/index.ts +1 -1
- package/src/templates/tailwind/editgrid/index.ts +2 -2
- package/src/templates/tailwind/editgridTable/index.ts +2 -2
- package/src/templates/tailwind/errorsList/index.ts +1 -1
- package/src/templates/tailwind/field/index.ts +2 -2
- package/src/templates/tailwind/fieldset/index.ts +1 -1
- package/src/templates/tailwind/file/index.ts +1 -1
- package/src/templates/tailwind/html/index.ts +1 -1
- package/src/templates/tailwind/icon/index.ts +1 -1
- package/src/templates/tailwind/input/index.ts +2 -2
- package/src/templates/tailwind/label/index.ts +1 -1
- package/src/templates/tailwind/loader/index.ts +1 -1
- package/src/templates/tailwind/loading/index.ts +1 -1
- package/src/templates/tailwind/map/index.ts +1 -1
- package/src/templates/tailwind/message/index.ts +1 -1
- package/src/templates/tailwind/modalPreview/index.ts +1 -1
- package/src/templates/tailwind/modaldialog/index.ts +1 -1
- package/src/templates/tailwind/modaledit/index.ts +1 -1
- package/src/templates/tailwind/multiValueRow/index.ts +1 -1
- package/src/templates/tailwind/multiValueTable/index.ts +1 -1
- package/src/templates/tailwind/multipleMasksInput/index.ts +1 -1
- package/src/templates/tailwind/panel/index.ts +1 -1
- package/src/templates/tailwind/pdf/index.ts +1 -1
- package/src/templates/tailwind/pdfBuilder/index.ts +1 -1
- package/src/templates/tailwind/pdfBuilderUpload/index.ts +1 -1
- package/src/templates/tailwind/radio/index.ts +2 -2
- package/src/templates/tailwind/resourceAdd/index.ts +1 -1
- package/src/templates/tailwind/select/index.ts +2 -2
- package/src/templates/tailwind/selectOption/index.ts +2 -2
- package/src/templates/tailwind/signature/index.ts +2 -2
- package/src/templates/tailwind/survey/index.ts +2 -2
- package/src/templates/tailwind/tab/index.ts +2 -2
- package/src/templates/tailwind/table/index.ts +1 -1
- package/src/templates/tailwind/tableComponents/index.ts +1 -1
- package/src/templates/tailwind/tree/index.ts +1 -1
- package/src/templates/tailwind/tree/partials/index.ts +2 -2
- package/src/templates/tailwind/webform/index.ts +2 -2
- package/src/templates/tailwind/well/index.ts +1 -1
- package/src/templates/tailwind/wizard/index.ts +2 -2
- package/src/templates/tailwind/wizardHeader/index.ts +1 -1
- package/src/templates/tailwind/wizardHeaderClassic/index.ts +1 -1
- package/src/templates/tailwind/wizardHeaderVertical/index.ts +1 -1
- package/src/templates/tailwind/wizardNav/index.ts +1 -1
- package/styles/badge.css +4 -4
- package/styles/choices.css +45 -10
- package/styles/form-edit.css +13 -21
- package/styles/form.css +7 -2
- package/styles/index.css +1 -0
- package/styles/modal.css +1 -0
- package/styles/react-select.css +105 -0
- package/styles/tables.css +20 -57
- package/tsconfig.app.json +11 -0
- package/tsconfig.json +7 -5
- package/tsconfig.node.json +9 -4
- package/vite.config.mts +86 -0
- package/.eslintignore +0 -14
- package/.eslintrc.js +0 -7
- package/dist/index.modern.js +0 -2020
- package/dist/index.modern.js.map +0 -1
- package/dist/templates/stories/alert.stories.d.ts +0 -17
- package/dist/templates/stories/badge.stories.d.ts +0 -17
- package/dist/templates/stories/breadcrumbs.stories.d.ts +0 -37
- package/dist/templates/stories/builder.stories.d.ts +0 -3057
- package/dist/templates/stories/pagination.stories.d.ts +0 -17
- package/dist/templates/stories/progress.stories.d.ts +0 -22
- package/dist/templates/stories/wizard.stories.d.ts +0 -3057
- package/dist/templates/tailwind/address/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/address/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/alert/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builder/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderComponent/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderComponents/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderEditForm/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderPlaceholder/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderSidebar/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderSidebarGroup/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderWizard/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/button/button.stories.d.ts +0 -22
- package/dist/templates/tailwind/button/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/button/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/checkbox/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/checkbox/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/columns/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/component/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/componentModal/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/components/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/container/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/datagrid/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/datagrid/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/day/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/dialog/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/editgrid/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/editgrid/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/editgridTable/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/editgridTable/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/errorsList/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/field/align.ejs.d.ts +0 -1
- package/dist/templates/tailwind/field/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/fieldset/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/file/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/html/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/icon/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/input/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/input/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/label/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/loader/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/loading/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/map/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/message/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/modalPreview/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/modaldialog/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/modaledit/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/multiValueRow/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/multiValueTable/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/multipleMasksInput/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/panel/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/pdf/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/pdfBuilder/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/pdfBuilderUpload/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/radio/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/radio/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/resourceAdd/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/select/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/select/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/selectOption/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/selectOption/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/signature/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/signature/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/survey/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/survey/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tab/flat.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tab/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/table/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tableComponents/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tree/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tree/partials/edit.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tree/partials/view.ejs.d.ts +0 -1
- package/dist/templates/tailwind/webform/builder.ejs.d.ts +0 -1
- package/dist/templates/tailwind/webform/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/well/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizard/builder.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizard/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizardHeader/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizardHeaderClassic/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizardHeaderVertical/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizardNav/form.ejs.d.ts +0 -1
- package/gulpfile.js +0 -25
- package/src/templates/stories/builder.stories.jsx +0 -1917
- package/src/templates/stories/wizard.stories.jsx +0 -1917
- package/src/templates/tailwind/address/form.ejs.js +0 -58
- package/src/templates/tailwind/address/html.ejs.js +0 -13
- package/src/templates/tailwind/alert/form.ejs.js +0 -24
- package/src/templates/tailwind/alert/index.js +0 -3
- package/src/templates/tailwind/builder/form.ejs.js +0 -9
- package/src/templates/tailwind/builderComponent/form.ejs.js +0 -24
- package/src/templates/tailwind/builderComponents/form.ejs.js +0 -11
- package/src/templates/tailwind/builderEditForm/form.ejs.js +0 -50
- package/src/templates/tailwind/builderPlaceholder/form.ejs.js +0 -9
- package/src/templates/tailwind/builderSidebar/form.ejs.js +0 -16
- package/src/templates/tailwind/builderSidebarGroup/form.ejs.js +0 -60
- package/src/templates/tailwind/builderWizard/form.ejs.js +0 -30
- package/src/templates/tailwind/button/form.ejs.js +0 -52
- package/src/templates/tailwind/button/html.ejs.js +0 -5
- package/src/templates/tailwind/checkbox/form.ejs.js +0 -50
- package/src/templates/tailwind/checkbox/html.ejs.js +0 -22
- package/src/templates/tailwind/columns/form.ejs.js +0 -30
- package/src/templates/tailwind/component/form.ejs.js +0 -22
- package/src/templates/tailwind/componentModal/form.ejs.js +0 -44
- package/src/templates/tailwind/components/form.ejs.js +0 -7
- package/src/templates/tailwind/container/form.ejs.js +0 -9
- package/src/templates/tailwind/datagrid/form.ejs.js +0 -144
- package/src/templates/tailwind/datagrid/html.ejs.js +0 -46
- package/src/templates/tailwind/day/form.ejs.js +0 -98
- package/src/templates/tailwind/dialog/form.ejs.js +0 -5
- package/src/templates/tailwind/editgrid/form.ejs.js +0 -62
- package/src/templates/tailwind/editgrid/html.ejs.js +0 -52
- package/src/templates/tailwind/editgridTable/form.ejs.js +0 -66
- package/src/templates/tailwind/editgridTable/html.ejs.js +0 -56
- package/src/templates/tailwind/errorsList/form.ejs.js +0 -22
- package/src/templates/tailwind/field/align.ejs.js +0 -38
- package/src/templates/tailwind/field/form.ejs.js +0 -36
- package/src/templates/tailwind/fieldset/form.ejs.js +0 -30
- package/src/templates/tailwind/file/form.ejs.js +0 -224
- package/src/templates/tailwind/html/form.ejs.js +0 -25
- package/src/templates/tailwind/icon/form.ejs.js +0 -13
- package/src/templates/tailwind/input/form.ejs.js +0 -108
- package/src/templates/tailwind/input/html.ejs.js +0 -13
- package/src/templates/tailwind/label/form.ejs.js +0 -32
- package/src/templates/tailwind/loader/form.ejs.js +0 -5
- package/src/templates/tailwind/loading/form.ejs.js +0 -7
- package/src/templates/tailwind/map/form.ejs.js +0 -7
- package/src/templates/tailwind/message/form.ejs.js +0 -13
- package/src/templates/tailwind/modalPreview/form.ejs.js +0 -21
- package/src/templates/tailwind/modaldialog/form.ejs.js +0 -7
- package/src/templates/tailwind/modaledit/form.ejs.js +0 -9
- package/src/templates/tailwind/multiValueRow/form.ejs.js +0 -14
- package/src/templates/tailwind/multiValueTable/form.ejs.js +0 -16
- package/src/templates/tailwind/multipleMasksInput/form.ejs.js +0 -30
- package/src/templates/tailwind/panel/form.ejs.js +0 -58
- package/src/templates/tailwind/pdf/form.ejs.js +0 -13
- package/src/templates/tailwind/pdfBuilder/form.ejs.js +0 -9
- package/src/templates/tailwind/pdfBuilderUpload/form.ejs.js +0 -13
- package/src/templates/tailwind/radio/form.ejs.js +0 -84
- package/src/templates/tailwind/radio/html.ejs.js +0 -10
- package/src/templates/tailwind/resourceAdd/form.ejs.js +0 -11
- package/src/templates/tailwind/select/form.ejs.js +0 -46
- package/src/templates/tailwind/select/html.ejs.js +0 -13
- package/src/templates/tailwind/selectOption/form.ejs.js +0 -20
- package/src/templates/tailwind/selectOption/html.ejs.js +0 -11
- package/src/templates/tailwind/signature/form.ejs.js +0 -30
- package/src/templates/tailwind/signature/html.ejs.js +0 -5
- package/src/templates/tailwind/survey/form.ejs.js +0 -52
- package/src/templates/tailwind/survey/html.ejs.js +0 -22
- package/src/templates/tailwind/tab/flat.ejs.js +0 -16
- package/src/templates/tailwind/tab/form.ejs.js +0 -38
- package/src/templates/tailwind/table/form.ejs.js +0 -48
- package/src/templates/tailwind/tableComponents/form.ejs.js +0 -12
- package/src/templates/tailwind/tree/form.ejs.js +0 -32
- package/src/templates/tailwind/tree/partials/edit.ejs.js +0 -16
- package/src/templates/tailwind/tree/partials/view.ejs.js +0 -34
- package/src/templates/tailwind/webform/builder.ejs.js +0 -7
- package/src/templates/tailwind/webform/form.ejs.js +0 -9
- package/src/templates/tailwind/well/form.ejs.js +0 -9
- package/src/templates/tailwind/wizard/builder.ejs.js +0 -7
- package/src/templates/tailwind/wizard/form.ejs.js +0 -42
- package/src/templates/tailwind/wizardHeader/form.ejs.js +0 -32
- package/src/templates/tailwind/wizardHeaderClassic/form.ejs.js +0 -26
- package/src/templates/tailwind/wizardHeaderVertical/form.ejs.js +0 -28
- package/src/templates/tailwind/wizardNav/form.ejs.js +0 -64
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
function t(e) {
|
|
2
|
+
var n, l = "";
|
|
3
|
+
return l += `<div class="editgrid-table-container">
|
|
4
|
+
<div class="table-responsive">
|
|
5
|
+
<table class="table
|
|
6
|
+
` + ((n = e.component.striped ? "table-striped" : "") == null ? "" : n) + `
|
|
7
|
+
` + ((n = e.component.bordered ? "table-bordered" : "") == null ? "" : n) + `
|
|
8
|
+
` + ((n = e.component.hover ? "table-hover" : "") == null ? "" : n) + `
|
|
9
|
+
` + ((n = e.component.condensed ? "table-sm" : "") == null ? "" : n) + `
|
|
10
|
+
">
|
|
11
|
+
`, e.header && (l += `
|
|
12
|
+
<thead class="editgrid-table-head">
|
|
13
|
+
` + ((n = e.header) == null ? "" : n) + `
|
|
14
|
+
</thead>
|
|
15
|
+
`), l += `
|
|
16
|
+
<tbody class="editgrid-table-body">
|
|
17
|
+
`, e.rows.forEach(function(o, r) {
|
|
18
|
+
l += `
|
|
19
|
+
<tr ref="` + ((n = e.ref.row) == null ? "" : n) + `">
|
|
20
|
+
` + ((n = o) == null ? "" : n) + `
|
|
21
|
+
`, e.openRows[r] && !e.readOnly && (l += `
|
|
22
|
+
<td class="editgrid-table-column">
|
|
23
|
+
<div class="editgrid-actions">
|
|
24
|
+
<button class="btn btn-primary" ref="` + ((n = e.ref.saveRow) == null ? "" : n) + '">' + ((n = e.t(e.component.saveRow || "Save", { _userInput: !0 })) == null ? "" : n) + `</button>
|
|
25
|
+
`, e.component.removeRow && (l += `
|
|
26
|
+
<button class="btn btn-danger" ref="` + ((n = e.ref.cancelRow) == null ? "" : n) + '">' + ((n = e.t(e.component.removeRow || "Cancel", { _userInput: !0 })) == null ? "" : n) + `</button>
|
|
27
|
+
`), l += `
|
|
28
|
+
</div>
|
|
29
|
+
</td>
|
|
30
|
+
`), l += `
|
|
31
|
+
`, e.errors[r] && (l += `
|
|
32
|
+
<td class="editgrid-table-column">
|
|
33
|
+
<div class="has-error">
|
|
34
|
+
<div class="editgrid-row-error help-block">
|
|
35
|
+
` + ((n = e.errors[r]) == null ? "" : n) + `
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</td>
|
|
39
|
+
`), l += `
|
|
40
|
+
</tr>
|
|
41
|
+
`;
|
|
42
|
+
}), l += `
|
|
43
|
+
</tbody>
|
|
44
|
+
`, e.footer && (l += `
|
|
45
|
+
<tfoot>
|
|
46
|
+
<tr>
|
|
47
|
+
` + ((n = e.footer) == null ? "" : n) + `
|
|
48
|
+
</tr>
|
|
49
|
+
<tfoot>
|
|
50
|
+
`), l += `
|
|
51
|
+
</table>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
`, !e.readOnly && e.hasAddButton && (l += `
|
|
55
|
+
<button class="btn btn-primary" ref="` + ((n = e.ref.addRow) == null ? "" : n) + `">
|
|
56
|
+
<i class="` + ((n = e.iconClass("plus")) == null ? "" : n) + `"></i>
|
|
57
|
+
` + ((n = e.t(e.component.addAnother || "Add Another", { _userInput: !0 })) == null ? "" : n) + `
|
|
58
|
+
</button>
|
|
59
|
+
`), l += `
|
|
60
|
+
`, l;
|
|
61
|
+
}
|
|
62
|
+
function d(e) {
|
|
63
|
+
var n, l = "";
|
|
64
|
+
return l += `<div class="editgrid-table-container">
|
|
65
|
+
<div class="table-responsive">
|
|
66
|
+
<table class="table
|
|
67
|
+
` + ((n = e.component.striped ? "table-striped" : "") == null ? "" : n) + `
|
|
68
|
+
` + ((n = e.component.bordered ? "table-bordered" : "") == null ? "" : n) + `
|
|
69
|
+
` + ((n = e.component.hover ? "table-hover" : "") == null ? "" : n) + `
|
|
70
|
+
` + ((n = e.component.condensed ? "table-sm" : "") == null ? "" : n) + `
|
|
71
|
+
">
|
|
72
|
+
`, e.header && (l += `
|
|
73
|
+
<thead class="editgrid-table-head">
|
|
74
|
+
` + ((n = e.header) == null ? "" : n) + `
|
|
75
|
+
</thead>
|
|
76
|
+
`), l += `
|
|
77
|
+
<tbody class="editgrid-table-body">
|
|
78
|
+
`, e.rows.forEach(function(o, r) {
|
|
79
|
+
l += `
|
|
80
|
+
<tr ref="` + ((n = e.ref.row) == null ? "" : n) + `">
|
|
81
|
+
` + ((n = o) == null ? "" : n) + `
|
|
82
|
+
`, e.openRows[r] && !e.readOnly && (l += `
|
|
83
|
+
<td class="editgrid-table-column">
|
|
84
|
+
<div class="editgrid-actions">
|
|
85
|
+
<button class="btn btn-primary" ref="` + ((n = e.ref.saveRow) == null ? "" : n) + '">' + ((n = e.t(e.component.saveRow || "Save", { _userInput: !0 })) == null ? "" : n) + `</button>
|
|
86
|
+
`, e.component.removeRow && (l += `
|
|
87
|
+
<button class="btn btn-danger" ref="` + ((n = e.ref.cancelRow) == null ? "" : n) + '">' + ((n = e.t(e.component.removeRow || "Cancel", { _userInput: !0 })) == null ? "" : n) + `</button>
|
|
88
|
+
`), l += `
|
|
89
|
+
</div>
|
|
90
|
+
</td>
|
|
91
|
+
`), l += `
|
|
92
|
+
`, e.errors[r] && (l += `
|
|
93
|
+
<td class="editgrid-table-column">
|
|
94
|
+
<div class="has-error">
|
|
95
|
+
<div class="editgrid-row-error help-block">
|
|
96
|
+
` + ((n = e.errors[r]) == null ? "" : n) + `
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</td>
|
|
100
|
+
`), l += `
|
|
101
|
+
</tr>
|
|
102
|
+
`;
|
|
103
|
+
}), l += `
|
|
104
|
+
</tbody>
|
|
105
|
+
`, e.footer && (l += `
|
|
106
|
+
<tfoot>
|
|
107
|
+
<tr>
|
|
108
|
+
` + ((n = e.footer) == null ? "" : n) + `
|
|
109
|
+
</tr>
|
|
110
|
+
<tfoot>
|
|
111
|
+
`), l += `
|
|
112
|
+
</table>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
`, l;
|
|
116
|
+
}
|
|
117
|
+
const a = { form: t, html: d };
|
|
118
|
+
export {
|
|
119
|
+
a as default
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/templates/tailwind/editgridTable/form.ejs","../../../../src/templates/tailwind/editgridTable/html.ejs","../../../../src/templates/tailwind/editgridTable/index.ts"],"sourcesContent":["<div class=\"editgrid-table-container\">\n <div class=\"table-responsive\">\n <table class=\"table\n {{ ctx.component.striped ? 'table-striped' : ''}}\n {{ ctx.component.bordered ? 'table-bordered' : ''}}\n {{ ctx.component.hover ? 'table-hover' : ''}}\n {{ ctx.component.condensed ? 'table-sm' : ''}}\n \">\n {% if (ctx.header) { %}\n <thead class=\"editgrid-table-head\">\n {{ctx.header}}\n </thead>\n {% } %}\n <tbody class=\"editgrid-table-body\">\n {% ctx.rows.forEach(function(row, rowIndex) { %}\n <tr ref=\"{{ctx.ref.row}}\">\n {{row}}\n {% if (ctx.openRows[rowIndex] && !ctx.readOnly) { %}\n <td class=\"editgrid-table-column\">\n <div class=\"editgrid-actions\">\n <button class=\"btn btn-primary\" ref=\"{{ctx.ref.saveRow}}\">{{ctx.t(ctx.component.saveRow || 'Save', { _userInput: true })}}</button>\n {% if (ctx.component.removeRow) { %}\n <button class=\"btn btn-danger\" ref=\"{{ctx.ref.cancelRow}}\">{{ctx.t(ctx.component.removeRow || 'Cancel', { _userInput: true })}}</button>\n {% } %}\n </div>\n </td>\n {% } %}\n {% if (ctx.errors[rowIndex]) { %}\n <td class=\"editgrid-table-column\">\n <div class=\"has-error\">\n <div class=\"editgrid-row-error help-block\">\n {{ctx.errors[rowIndex]}}\n </div>\n </div>\n </td>\n {% } %}\n </tr>\n {% }) %}\n </tbody>\n {% if (ctx.footer) { %}\n <tfoot>\n <tr>\n {{ctx.footer}}\n </tr>\n <tfoot>\n {% } %}\n </table>\n </div>\n</div>\n{% if (!ctx.readOnly && ctx.hasAddButton) { %}\n<button class=\"btn btn-primary\" ref=\"{{ctx.ref.addRow}}\">\n <i class=\"{{ctx.iconClass('plus')}}\"></i>\n {{ctx.t(ctx.component.addAnother || 'Add Another', { _userInput: true })}}\n</button>\n{% } %}\n","<div class=\"editgrid-table-container\">\n <div class=\"table-responsive\">\n <table class=\"table\n {{ ctx.component.striped ? 'table-striped' : ''}}\n {{ ctx.component.bordered ? 'table-bordered' : ''}}\n {{ ctx.component.hover ? 'table-hover' : ''}}\n {{ ctx.component.condensed ? 'table-sm' : ''}}\n \">\n {% if (ctx.header) { %}\n <thead class=\"editgrid-table-head\">\n {{ctx.header}}\n </thead>\n {% } %}\n <tbody class=\"editgrid-table-body\">\n {% ctx.rows.forEach(function(row, rowIndex) { %}\n <tr ref=\"{{ctx.ref.row}}\">\n {{row}}\n {% if (ctx.openRows[rowIndex] && !ctx.readOnly) { %}\n <td class=\"editgrid-table-column\">\n <div class=\"editgrid-actions\">\n <button class=\"btn btn-primary\" ref=\"{{ctx.ref.saveRow}}\">{{ctx.t(ctx.component.saveRow || 'Save', { _userInput: true })}}</button>\n {% if (ctx.component.removeRow) { %}\n <button class=\"btn btn-danger\" ref=\"{{ctx.ref.cancelRow}}\">{{ctx.t(ctx.component.removeRow || 'Cancel', { _userInput: true })}}</button>\n {% } %}\n </div>\n </td>\n {% } %}\n {% if (ctx.errors[rowIndex]) { %}\n <td class=\"editgrid-table-column\">\n <div class=\"has-error\">\n <div class=\"editgrid-row-error help-block\">\n {{ctx.errors[rowIndex]}}\n </div>\n </div>\n </td>\n {% } %}\n </tr>\n {% }) %}\n </tbody>\n {% if (ctx.footer) { %}\n <tfoot>\n <tr>\n {{ctx.footer}}\n </tr>\n <tfoot>\n {% } %}\n </table>\n </div>\n</div>\n","import form from \"./form.ejs\";\nimport html from \"./html.ejs\";\n\nexport default { form, html };\n"],"names":["form","ctx","__t","__p","row","rowIndex","html","editgridTable"],"mappings":"AAAe,SAAQA,EAACC,GAAK;AAC1B,MAACC,GAAKC,IAAM;AAEf,SAAAA,KAAO;AAAA;AAAA;AAAA,YACLD,IAAQD,EAAI,UAAU,UAAU,kBAAkB,OAAQ,OAAO,KAAKC,KACxE;AAAA,YACEA,IAAQD,EAAI,UAAU,WAAW,mBAAmB,OAAQ,OAAO,KAAKC,KAC1E;AAAA,YACEA,IAAQD,EAAI,UAAU,QAAQ,gBAAgB,OAAQ,OAAO,KAAKC,KACpE;AAAA,YACEA,IAAQD,EAAI,UAAU,YAAY,aAAa,OAAQ,OAAO,KAAKC,KACrE;AAAA;AAAA,SACKD,EAAI,WACTE,KAAO;AAAA;AAAA,cACLD,IAAOD,EAAI,WAAY,OAAO,KAAKC,KACrC;AAAA;AAAA,UAEAC,KAAO;AAAA;AAAA,WACNF,EAAI,KAAK,QAAQ,SAASG,GAAKC,GAAU;AAC1C,IAAAF,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Q,MACxBF,KAAO;AAAA;AAAA;AAAA;AAAA,sBACLD,IAAOD,EAAI,OAAOI,CAAQ,MAAO,OAAO,KAAKH,KAC/C;AAAA;AAAA;AAAA;AAAA,cAEAC,KAAO;AAAA;AAAA;AAAA,EACP,CAAE,GACFA,KAAO;AAAA;AAAA,SACFF,EAAI,WACTE,KAAO;AAAA;AAAA;AAAA,gBACLD,IAAOD,EAAI,WAAY,OAAO,KAAKC,KACrC;AAAA;AAAA;AAAA,UAEAC,KAAO;AAAA;AAAA;AAAA;AAAA,GACAA;AACP;ACpDA,MAAAI,IAAe,EAAE,MAAAP,GAAM,MAAAM,EAAK;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
form: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function l(o) {
|
|
2
|
+
var n, r = "";
|
|
3
|
+
return r += "<p>" + ((n = o.t("error")) == null ? "" : n) + `
|
|
4
|
+
`, o.options.vpat && (r += `
|
|
5
|
+
<span ref="errorTooltip" class="` + ((n = o.iconClass("question-sign")) == null ? "" : n) + `" tabindex="0"></span>
|
|
6
|
+
`), r += `
|
|
7
|
+
</p>
|
|
8
|
+
<ul>
|
|
9
|
+
`, o.errors.forEach(function(e) {
|
|
10
|
+
r += `
|
|
11
|
+
<li>
|
|
12
|
+
<span
|
|
13
|
+
data-component-key = "` + ((n = e.keyOrPath) == null ? "" : n) + `"
|
|
14
|
+
ref = "errorRef"
|
|
15
|
+
tabIndex = "0"
|
|
16
|
+
role="link"
|
|
17
|
+
>
|
|
18
|
+
` + ((n = e.message) == null ? "" : n) + `
|
|
19
|
+
</span>
|
|
20
|
+
</li>
|
|
21
|
+
`;
|
|
22
|
+
}), r += `
|
|
23
|
+
</ul>
|
|
24
|
+
`, r;
|
|
25
|
+
}
|
|
26
|
+
const s = { form: l };
|
|
27
|
+
export {
|
|
28
|
+
s as default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/templates/tailwind/errorsList/form.ejs","../../../../src/templates/tailwind/errorsList/index.ts"],"sourcesContent":["<p>{{ctx.t('error')}}\n {% if (ctx.options.vpat) { %}\n <span ref=\"errorTooltip\" class=\"{{ctx.iconClass('question-sign')}}\" tabindex=\"0\"></span>\n {% } %}\n</p>\n<ul>\n {% ctx.errors.forEach(function(err) { %}\n <li>\n <span\n data-component-key = \"{{err.keyOrPath}}\"\n ref = \"errorRef\"\n tabIndex = \"0\"\n role=\"link\"\n >\n {{err.message}}\n </span>\n </li>\n {% }) %}\n</ul>\n","import form from \"./form.ejs\";\n\nexport default { form };\n"],"names":["form","ctx","__t","__p","err","errorsList"],"mappings":"AAAe,SAAQA,EAACC,GAAK;AAC1B,MAACC,GAAKC,IAAM;AAEf,SAAAA,KAAO,UACLD,IAAOD,EAAI,EAAE,OAAO,MAAO,OAAO,KAAKC,KACzC;AAAA,KACKD,EAAI,QAAQ,SACjBE,KAAO;AAAA,wCACLD,IAAOD,EAAI,UAAU,eAAe,MAAO,OAAO,KAAKC,KACzD;AAAA,MAEAC,KAAO;AAAA;AAAA;AAAA,KACNF,EAAI,OAAO,QAAQ,SAASG,GAAK;AAClC,IAAAD,KAAO;AAAA;AAAA;AAAA,kCACLD,IAAOE,EAAI,cAAe,OAAO,KAAKF,KACxC;AAAA;AAAA;AAAA;AAAA;AAAA,YACEA,IAAOE,EAAI,YAAa,OAAO,KAAKF,KACtC;AAAA;AAAA;AAAA;AAAA,EACA,CAAE,GACFC,KAAO;AAAA;AAAA,GACAA;AACP;ACnBA,MAAeE,IAAA,EAAE,MAAAL,EAAK;"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
form: string;
|
|
3
|
+
align: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
function i(n) {
|
|
2
|
+
var l, e = "";
|
|
3
|
+
return e += `<div class="field-wrapper
|
|
4
|
+
` + ((l = n.isRightPosition ? "field-wrapper--reverse" : "") == null ? "" : l) + `">
|
|
5
|
+
`, n.label.hidden || (e += `
|
|
6
|
+
<div class="field-label
|
|
7
|
+
` + ((l = n.isRightAlign ? "field-label--right" : "") == null ? "" : l) + `"
|
|
8
|
+
style="` + ((l = n.labelStyles) == null ? "" : l) + `">
|
|
9
|
+
` + ((l = n.labelMarkup) == null ? "" : l) + `
|
|
10
|
+
</div>
|
|
11
|
+
`), e += `
|
|
12
|
+
|
|
13
|
+
`, n.label.hidden && n.label.className && n.component.validate.required && (e += `
|
|
14
|
+
<div class="field-label
|
|
15
|
+
` + ((l = n.isRightAlign ? "field-label--right" : "") == null ? "" : l) + `"
|
|
16
|
+
style="` + ((l = n.labelStyles) == null ? "" : l) + `">
|
|
17
|
+
<label class="` + ((l = n.label.className) == null ? "" : l) + `"></label>
|
|
18
|
+
</div>
|
|
19
|
+
`), e += `
|
|
20
|
+
|
|
21
|
+
<div class="field-content" style="` + ((l = n.contentStyles) == null ? "" : l) + `">
|
|
22
|
+
` + ((l = n.element) == null ? "" : l) + `
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
`, n.component.description && (e += `
|
|
27
|
+
<div class="form-text text-muted">` + ((l = n.t(n.component.description, { _userInput: !0 })) == null ? "" : l) + `</div>
|
|
28
|
+
`), e += `
|
|
29
|
+
`, e;
|
|
30
|
+
}
|
|
31
|
+
function a(n) {
|
|
32
|
+
var l, e = "";
|
|
33
|
+
return !n.label.hidden && n.label.labelPosition !== "bottom" && (e += `
|
|
34
|
+
` + ((l = n.labelMarkup) == null ? "" : l) + `
|
|
35
|
+
`), e += `
|
|
36
|
+
|
|
37
|
+
`, n.label.hidden && n.label.className && n.component.validate.required && (e += `
|
|
38
|
+
<label class="` + ((l = n.label.className) == null ? "" : l) + `"></label>
|
|
39
|
+
`), e += `
|
|
40
|
+
|
|
41
|
+
` + ((l = n.element) == null ? "" : l) + `
|
|
42
|
+
|
|
43
|
+
`, !n.label.hidden && n.label.labelPosition === "bottom" && (e += `
|
|
44
|
+
` + ((l = n.labelMarkup) == null ? "" : l) + `
|
|
45
|
+
`), e += `
|
|
46
|
+
`, n.component.description && (e += `
|
|
47
|
+
<div id="d-` + ((l = n.instance.id) == null ? "" : l) + "-" + ((l = n.component.key) == null ? "" : l) + '" class="form-text text-muted">' + ((l = n.t(n.component.description, { _userInput: !0 })) == null ? "" : l) + `</div>
|
|
48
|
+
`), e += `
|
|
49
|
+
`, e;
|
|
50
|
+
}
|
|
51
|
+
const s = { form: a, align: i };
|
|
52
|
+
export {
|
|
53
|
+
s as default
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/templates/tailwind/field/align.ejs","../../../../src/templates/tailwind/field/form.ejs","../../../../src/templates/tailwind/field/index.ts"],"sourcesContent":["<div class=\"field-wrapper\n {{ctx.isRightPosition ? 'field-wrapper--reverse' : ''}}\">\n {% if (!ctx.label.hidden) { %}\n <div class=\"field-label\n {{ctx.isRightAlign ? 'field-label--right' : ''}}\"\n style=\"{{ctx.labelStyles}}\">\n {{ ctx.labelMarkup }}\n </div>\n {% } %}\n\n {% if (ctx.label.hidden && ctx.label.className && ctx.component.validate.required) { %}\n <div class=\"field-label\n {{ctx.isRightAlign ? 'field-label--right' : ''}}\"\n style=\"{{ctx.labelStyles}}\">\n <label class=\"{{ctx.label.className}}\"></label>\n </div>\n {% } %}\n\n <div class=\"field-content\" style=\"{{ctx.contentStyles}}\">\n {{ctx.element}}\n </div>\n</div>\n\n{% if (ctx.component.description) { %}\n <div class=\"form-text text-muted\">{{ctx.t(ctx.component.description, { _userInput: true })}}</div>\n{% } %}\n","{% if (!ctx.label.hidden && ctx.label.labelPosition !== 'bottom') { %}\n {{ ctx.labelMarkup }}\n{% } %}\n\n{% if (ctx.label.hidden && ctx.label.className && ctx.component.validate.required) { %}\n <label class=\"{{ctx.label.className}}\"></label>\n{% } %}\n\n{{ctx.element}}\n\n{% if (!ctx.label.hidden && ctx.label.labelPosition === 'bottom') { %}\n {{ ctx.labelMarkup }}\n{% } %}\n{% if (ctx.component.description) { %}\n <div id=\"d-{{ctx.instance.id}}-{{ctx.component.key}}\" class=\"form-text text-muted\">{{ctx.t(ctx.component.description, { _userInput: true })}}</div>\n{% } %}\n","import align from \"./align.ejs\";\nimport form from \"./form.ejs\";\n\nexport default { form, align };\n"],"names":["align","ctx","__t","__p","form","field"],"mappings":"AAAe,SAAQA,EAACC,GAAK;AAC1B,MAACC,GAAKC,IAAM;AAEf,SAAAA,KAAO;AAAA,QACLD,IAAOD,EAAI,kBAAkB,2BAA2B,OAAQ,OAAO,KAAKC,KAC9E;AAAA,KACMD,EAAI,MAAM,WAChBE,KAAO;AAAA;AAAA,YACLD,IAAOD,EAAI,eAAe,uBAAuB,OAAQ,OAAO,KAAKC,KACvE;AAAA,mBACEA,IAAOD,EAAI,gBAAiB,OAAO,KAAKC,KAC1C;AAAA,UACEA,IAAQD,EAAI,gBAAkB,OAAO,KAAKC,KAC5C;AAAA;AAAA,MAEAC,KAAO;AAAA;AAAA,KACFF,EAAI,MAAM,UAAUA,EAAI,MAAM,aAAaA,EAAI,UAAU,SAAS,aACvEE,KAAO;AAAA;AAAA,YACLD,IAAOD,EAAI,eAAe,uBAAuB,OAAQ,OAAO,KAAKC,KACvE;AAAA,mBACEA,IAAOD,EAAI,gBAAiB,OAAO,KAAKC,KAC1C;AAAA,0BACEA,IAAOD,EAAI,MAAM,cAAe,OAAO,KAAKC,KAC9C;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M;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
form: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function o(e) {
|
|
2
|
+
var n, l = "";
|
|
3
|
+
return l += `<fieldset>
|
|
4
|
+
`, e.component.legend && (l += `
|
|
5
|
+
<legend ref="header" class="` + ((n = e.component.collapsible ? "formio-clickable" : "") == null ? "" : n) + `">
|
|
6
|
+
` + ((n = e.t(e.component.legend, { _userInput: !0 })) == null ? "" : n) + `
|
|
7
|
+
`, e.component.tooltip && (l += `
|
|
8
|
+
<i ref="tooltip" tabindex="0" class="` + ((n = e.iconClass("question-sign")) == null ? "" : n) + ' text-muted" data-tooltip="' + ((n = e.component.tooltip) == null ? "" : n) + `"></i>
|
|
9
|
+
`), l += `
|
|
10
|
+
</legend>
|
|
11
|
+
`), l += `
|
|
12
|
+
`, e.collapsed || (l += `
|
|
13
|
+
<div class="fieldset-body" ref="` + ((n = e.nestedKey) == null ? "" : n) + `">
|
|
14
|
+
` + ((n = e.children) == null ? "" : n) + `
|
|
15
|
+
</div>
|
|
16
|
+
`), l += `
|
|
17
|
+
</fieldset>
|
|
18
|
+
|
|
19
|
+
`, l;
|
|
20
|
+
}
|
|
21
|
+
const i = { form: o };
|
|
22
|
+
export {
|
|
23
|
+
i as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/templates/tailwind/fieldset/form.ejs","../../../../src/templates/tailwind/fieldset/index.ts"],"sourcesContent":["<fieldset>\n {% if (ctx.component.legend) { %}\n <legend ref=\"header\" class=\"{{ctx.component.collapsible ? 'formio-clickable' : ''}}\">\n {{ctx.t(ctx.component.legend, { _userInput: true })}}\n {% if (ctx.component.tooltip) { %}\n <i ref=\"tooltip\" tabindex=\"0\" class=\"{{ctx.iconClass('question-sign')}} text-muted\" data-tooltip=\"{{ctx.component.tooltip}}\"></i>\n {% } %}\n </legend>\n {% } %}\n {% if (!ctx.collapsed) { %}\n <div class=\"fieldset-body\" ref=\"{{ctx.nestedKey}}\">\n {{ctx.children}}\n </div>\n {% } %}\n</fieldset>\n\n","import form from \"./form.ejs\";\n\nexport default { form };\n"],"names":["form","ctx","__t","__p","fieldset"],"mappings":"AAAe,SAAQA,EAACC,GAAK;AAC1B,MAACC,GAAKC,IAAM;AAEf,SAAAA,KAAO;AAAA,KACFF,EAAI,UAAU,WACnBE,KAAO;AAAA,oCACLD,IAAOD,EAAI,UAAU,cAAc,qBAAqB,OAAQ,OAAO,KAAKC,KAC9E;AAAA,UACEA,IAAOD,EAAI,EAAEA,EAAI,UAAU,QAAQ,EAAE,YAAY,GAAI,CAAE,MAAO,OAAO,KAAKC,KAC5E;AAAA,OACKD,EAAI,UAAU,YACnBE,KAAO;AAAA,iDACLD,IAAOD,EAAI,UAAU,eAAe,MAAO,OAAO,KAAKC,KACzD,kCACEA,IAAOD,EAAI,UAAU,YAAa,OAAO,KAAKC,KAChD;AAAA,QAEAC,KAAO;AAAA;AAAA,MAEPA,KAAO;AAAA,KACDF,EAAI,cACVE,KAAO;AAAA,wCACLD,IAAOD,EAAI,cAAe,OAAO,KAAKC,KACxC;AAAA,UACEA,IAAOD,EAAI,aAAc,OAAO,KAAKC,KACvC;AAAA;AAAA,MAEAC,KAAO;AAAA;AAAA;AAAA,GACAA;AACP;AC3BA,MAAeC,IAAA,EAAE,MAAAJ,EAAK;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
form: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
function a(l) {
|
|
2
|
+
var n, e = "";
|
|
3
|
+
return l.options.vpat && (e += `
|
|
4
|
+
<span tabindex="-1" class="sr-only" id="invisible-` + ((n = l.instance.id) == null ? "" : n) + "-" + ((n = l.component.key) == null ? "" : n) + `"></span>
|
|
5
|
+
`), e += `
|
|
6
|
+
`, l.self.imageUpload ? (e += `
|
|
7
|
+
<div>
|
|
8
|
+
`, l.files.forEach(function(s) {
|
|
9
|
+
e += `
|
|
10
|
+
<div>
|
|
11
|
+
<span>
|
|
12
|
+
<img ref="fileImage" src="" alt="` + ((n = s.originalName || s.name) == null ? "" : n) + '" style="width:' + ((n = l.component.imageSize) == null ? "" : n) + `px">
|
|
13
|
+
`, l.disabled || (e += `
|
|
14
|
+
<i tabindex="0" class="` + ((n = l.iconClass("remove")) == null ? "" : n) + `" ref="removeLink"></i>
|
|
15
|
+
`), e += `
|
|
16
|
+
</span>
|
|
17
|
+
</div>
|
|
18
|
+
`;
|
|
19
|
+
}), e += `
|
|
20
|
+
</div>
|
|
21
|
+
`) : (e += `
|
|
22
|
+
`, l.options.vpat && (e += `
|
|
23
|
+
<div>` + ((n = !l.component.filePattern || l.component.filePattern === "*" ? "Any file types are allowed" : l.t("Allowed file types: ") + l.component.filePattern) == null ? "" : n) + `</div>
|
|
24
|
+
`), e += `
|
|
25
|
+
<ul class="list-group list-group-striped">
|
|
26
|
+
<li class="list-group-item list-group-header hidden-xs hidden-sm">
|
|
27
|
+
<div class="grid grid-cols-12 gap-4">
|
|
28
|
+
`, l.disabled || (e += `
|
|
29
|
+
<div class="md:col-span-1"></div>
|
|
30
|
+
`), e += `
|
|
31
|
+
<div class="md:col-span-`, l.self.hasTypes ? e += "7" : e += "9", e += '"><strong>' + ((n = l.t("File Name")) == null ? "" : n) + `</strong></div>
|
|
32
|
+
<div class="md:col-span-2"><strong>` + ((n = l.t("Size")) == null ? "" : n) + `</strong></div>
|
|
33
|
+
`, l.self.hasTypes && (e += `
|
|
34
|
+
<div class="md:col-span-2"><strong>` + ((n = l.t("Type")) == null ? "" : n) + `</strong></div>
|
|
35
|
+
`), e += `
|
|
36
|
+
</div>
|
|
37
|
+
</li>
|
|
38
|
+
`, l.files.forEach(function(s) {
|
|
39
|
+
e += `
|
|
40
|
+
<li class="list-group-item">
|
|
41
|
+
<div class="grid grid-cols-12 gap-4">
|
|
42
|
+
`, l.disabled || (e += `
|
|
43
|
+
<div class="md:col-span-1"><i tabindex="0" class="` + ((n = l.iconClass("remove")) == null ? "" : n) + `" ref="removeLink"></i></div>
|
|
44
|
+
`), e += `
|
|
45
|
+
<div class="md:col-span-`, l.self.hasTypes ? e += "7" : e += "9", e += `">
|
|
46
|
+
`, l.component.uploadOnly ? e += `
|
|
47
|
+
` + ((n = s.originalName || s.name) == null ? "" : n) + `
|
|
48
|
+
` : e += `
|
|
49
|
+
<a href="` + ((n = s.url || "#") == null ? "" : n) + `" target="_blank" ref="fileLink">
|
|
50
|
+
<span class="sr-only">` + ((n = l.t("Press to open ")) == null ? "" : n) + "</span>" + ((n = s.originalName || s.name) == null ? "" : n) + `
|
|
51
|
+
</a>
|
|
52
|
+
`, e += `
|
|
53
|
+
</div>
|
|
54
|
+
<div class="md:col-span-2">` + ((n = l.fileSize(s.size)) == null ? "" : n) + `</div>
|
|
55
|
+
`, l.self.hasTypes && !l.disabled && (e += `
|
|
56
|
+
<div class="md:col-span-2">
|
|
57
|
+
<select class="file-type" ref="fileType">
|
|
58
|
+
`, l.component.fileTypes.map(function(i) {
|
|
59
|
+
e += `
|
|
60
|
+
<option class="test" value="` + ((n = i.value) == null ? "" : n) + '" ', i.label === s.fileType && (e += 'selected="selected"'), e += ">" + ((n = l.t(i.label)) == null ? "" : n) + `</option>
|
|
61
|
+
`;
|
|
62
|
+
}), e += `
|
|
63
|
+
</select>
|
|
64
|
+
</div>
|
|
65
|
+
`), e += `
|
|
66
|
+
`, l.self.hasTypes && l.disabled && (e += `
|
|
67
|
+
<div class="md:col-span-2">` + ((n = s.fileType) == null ? "" : n) + `</div>
|
|
68
|
+
`), e += `
|
|
69
|
+
</div>
|
|
70
|
+
</li>
|
|
71
|
+
`;
|
|
72
|
+
}), e += `
|
|
73
|
+
</ul>
|
|
74
|
+
`), e += `
|
|
75
|
+
`, !l.disabled && (l.component.multiple || !l.files.length) && (e += `
|
|
76
|
+
`, l.self.useWebViewCamera ? e += `
|
|
77
|
+
<div class="fileSelector">
|
|
78
|
+
<button class="btn btn-primary" ref="galleryButton"><i class="fa fa-book"></i> ` + ((n = l.t("Gallery")) == null ? "" : n) + `</button>
|
|
79
|
+
<button class="btn btn-primary" ref="cameraButton"><i class="fa fa-camera"></i> ` + ((n = l.t("Camera")) == null ? "" : n) + `</button>
|
|
80
|
+
</div>
|
|
81
|
+
` : l.self.cameraMode ? e += `
|
|
82
|
+
<div class="video-container">
|
|
83
|
+
<video class="video" autoplay="true" ref="videoPlayer" tabindex="-1"></video>
|
|
84
|
+
</div>
|
|
85
|
+
<button class="btn btn-primary" ref="takePictureButton"><i class="fa fa-camera"></i> ` + ((n = l.t("Take Picture")) == null ? "" : n) + `</button>
|
|
86
|
+
<button class="btn btn-primary" ref="toggleCameraMode">` + ((n = l.t("Switch to file upload")) == null ? "" : n) + `</button>
|
|
87
|
+
` : (e += `
|
|
88
|
+
<div class="fileSelector" ref="fileDrop" ` + ((n = l.fileDropHidden ? "hidden" : "") == null ? "" : n) + `>
|
|
89
|
+
<i class="` + ((n = l.iconClass("cloud-upload")) == null ? "" : n) + '"></i> ' + ((n = l.t("Drop files to attach,")) == null ? "" : n) + `
|
|
90
|
+
`, l.self.imageUpload && l.component.webcam && (e += `
|
|
91
|
+
<a href="#" ref="toggleCameraMode"><i class="` + ((n = l.iconClass("camera")) == null ? "" : n) + '"></i> ' + ((n = l.t("use camera")) == null ? "" : n) + `</a>
|
|
92
|
+
`), e += `
|
|
93
|
+
` + ((n = l.t("or")) == null ? "" : n) + `
|
|
94
|
+
<a href="#" ref="fileBrowse" class="browse">
|
|
95
|
+
` + ((n = l.t("browse")) == null ? "" : n) + `
|
|
96
|
+
<span class="sr-only">
|
|
97
|
+
` + ((n = l.t("Browse to attach file for " + l.component.label + ". " + (l.component.description ? l.component.description + ". " : "") + (!l.component.filePattern || l.component.filePattern === "*" ? "Any file types are allowed" : l.t("Allowed file types: ") + l.component.filePattern))) == null ? "" : n) + `
|
|
98
|
+
</span>
|
|
99
|
+
</a>
|
|
100
|
+
<div ref="fileProcessingLoader" class="loader-wrapper">
|
|
101
|
+
<div class="loader text-center"></div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
`), e += `
|
|
105
|
+
`), e += `
|
|
106
|
+
`, l.statuses.forEach(function(s) {
|
|
107
|
+
e += `
|
|
108
|
+
<div class="file ` + ((n = l.statuses.status === "error" ? " has-error" : "") == null ? "" : n) + `">
|
|
109
|
+
<div class="grid grid-cols-12 gap-4">
|
|
110
|
+
<div class="fileName col-form-label sm:col-span-10">` + ((n = s.originalName) == null ? "" : n) + `
|
|
111
|
+
<i class="` + ((n = l.iconClass("remove")) == null ? "" : n) + `" ref="fileStatusRemove">
|
|
112
|
+
<span class="sr-only">` + ((n = l.t("Remove button. Press to remove " + s.originalName || s.name + ".")) == null ? "" : n) + `</span>
|
|
113
|
+
<span class="sr-only">` + ((n = s.message ? s.message.replace(";", ".") : "") == null ? "" : n) + `</span>
|
|
114
|
+
</i>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="fileSize col-form-label sm:col-span-2 text-right">` + ((n = l.fileSize(s.size)) == null ? "" : n) + `</div>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="grid grid-cols-12 gap-4">
|
|
119
|
+
<div class="sm:col-span-12">
|
|
120
|
+
`, s.status === "progress" ? e += `
|
|
121
|
+
<div class="progress">
|
|
122
|
+
<div class="progress-bar" role="progressbar" aria-valuenow="` + ((n = s.progress) == null ? "" : n) + '" aria-valuemin="0" aria-valuemax="100" style="width: ' + ((n = s.progress) == null ? "" : n) + `%">
|
|
123
|
+
<span class="sr-only">` + ((n = s.progress) == null ? "" : n) + "% " + ((n = l.t("Complete")) == null ? "" : n) + `</span>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
` : s.status === "error" ? e += `
|
|
127
|
+
<div class="alert alert-danger bg-` + ((n = s.status) == null ? "" : n) + '">' + ((n = l.t(s.message)) == null ? "" : n) + `</div>
|
|
128
|
+
` : e += `
|
|
129
|
+
<div class="bg-` + ((n = s.status) == null ? "" : n) + '">' + ((n = l.t(s.message)) == null ? "" : n) + `</div>
|
|
130
|
+
`, e += `
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
`;
|
|
135
|
+
}), e += `
|
|
136
|
+
`, (!l.component.storage || l.support.hasWarning) && (e += `
|
|
137
|
+
<div class="alert alert-warning">
|
|
138
|
+
`, l.component.storage || (e += `
|
|
139
|
+
<p>` + ((n = l.t("No storage has been set for this field. File uploads are disabled until storage is set up.")) == null ? "" : n) + `</p>
|
|
140
|
+
`), e += `
|
|
141
|
+
`, l.support.filereader || (e += `
|
|
142
|
+
<p>` + ((n = l.t("File API & FileReader API not supported.")) == null ? "" : n) + `</p>
|
|
143
|
+
`), e += `
|
|
144
|
+
`, l.support.formdata || (e += `
|
|
145
|
+
<p>` + ((n = l.t("XHR2's FormData is not supported.")) == null ? "" : n) + `</p>
|
|
146
|
+
`), e += `
|
|
147
|
+
`, l.support.progress || (e += `
|
|
148
|
+
<p>` + ((n = l.t("XHR2's upload progress isn't supported.")) == null ? "" : n) + `</p>
|
|
149
|
+
`), e += `
|
|
150
|
+
</div>
|
|
151
|
+
`), e += `
|
|
152
|
+
`, e;
|
|
153
|
+
}
|
|
154
|
+
const o = { form: a };
|
|
155
|
+
export {
|
|
156
|
+
o as default
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/templates/tailwind/file/form.ejs","../../../../src/templates/tailwind/file/index.ts"],"sourcesContent":["{% if (ctx.options.vpat) { %}\n <span tabindex=\"-1\" class=\"sr-only\" id=\"invisible-{{ctx.instance.id}}-{{ctx.component.key}}\"></span>\n{% } %}\n{% if (!ctx.self.imageUpload) { %}\n {% if (ctx.options.vpat) { %}\n <div>{{(!ctx.component.filePattern || ctx.component.filePattern === '*') ? 'Any file types are allowed' : ctx.t('Allowed file types: ') + ctx.component.filePattern}}</div>\n {% } %}\n <ul class=\"list-group list-group-striped\">\n <li class=\"list-group-item list-group-header hidden-xs hidden-sm\">\n <div class=\"grid grid-cols-12 gap-4\">\n {% if (!ctx.disabled) { %}\n <div class=\"md:col-span-1\"></div>\n {% } %}\n <div class=\"md:col-span-{% if (ctx.self.hasTypes) { %}7{% } else { %}9{% } %}\"><strong>{{ctx.t('File Name')}}</strong></div>\n <div class=\"md:col-span-2\"><strong>{{ctx.t('Size')}}</strong></div>\n {% if (ctx.self.hasTypes) { %}\n <div class=\"md:col-span-2\"><strong>{{ctx.t('Type')}}</strong></div>\n {% } %}\n </div>\n </li>\n {% ctx.files.forEach(function(file) { %}\n <li class=\"list-group-item\">\n <div class=\"grid grid-cols-12 gap-4\">\n {% if (!ctx.disabled) { %}\n <div class=\"md:col-span-1\"><i tabindex=\"0\" class=\"{{ctx.iconClass('remove')}}\" ref=\"removeLink\"></i></div>\n {% } %}\n <div class=\"md:col-span-{% if (ctx.self.hasTypes) { %}7{% } else { %}9{% } %}\">\n {% if (ctx.component.uploadOnly) { %}\n {{file.originalName || file.name}}\n {% } else { %}\n <a href=\"{{file.url || '#'}}\" target=\"_blank\" ref=\"fileLink\">\n <span class=\"sr-only\">{{ctx.t('Press to open ')}}</span>{{file.originalName || file.name}}\n </a>\n {% } %}\n </div>\n <div class=\"md:col-span-2\">{{ctx.fileSize(file.size)}}</div>\n {% if (ctx.self.hasTypes && !ctx.disabled) { %}\n <div class=\"md:col-span-2\">\n <select class=\"file-type\" ref=\"fileType\">\n {% ctx.component.fileTypes.map(function(type) { %}\n <option class=\"test\" value=\"{{ type.value }}\" {% if (type.label === file.fileType) { %}selected=\"selected\"{% } %}>{{ctx.t(type.label)}}</option>\n {% }); %}\n </select>\n </div>\n {% } %}\n {% if (ctx.self.hasTypes && ctx.disabled) { %}\n <div class=\"md:col-span-2\">{{file.fileType}}</div>\n {% } %}\n </div>\n </li>\n {% }) %}\n </ul>\n{% } else { %}\n <div>\n {% ctx.files.forEach(function(file) { %}\n <div>\n <span>\n <img ref=\"fileImage\" src=\"\" alt=\"{{file.originalName || file.name}}\" style=\"width:{{ctx.component.imageSize}}px\">\n {% if (!ctx.disabled) { %}\n <i tabindex=\"0\" class=\"{{ctx.iconClass('remove')}}\" ref=\"removeLink\"></i>\n {% } %}\n </span>\n </div>\n {% }) %}\n </div>\n{% } %}\n{% if (!ctx.disabled && (ctx.component.multiple || !ctx.files.length)) { %}\n {% if (ctx.self.useWebViewCamera) { %}\n <div class=\"fileSelector\">\n <button class=\"btn btn-primary\" ref=\"galleryButton\"><i class=\"fa fa-book\"></i> {{ctx.t('Gallery')}}</button>\n <button class=\"btn btn-primary\" ref=\"cameraButton\"><i class=\"fa fa-camera\"></i> {{ctx.t('Camera')}}</button>\n </div>\n {% } else if (!ctx.self.cameraMode) { %}\n <div class=\"fileSelector\" ref=\"fileDrop\" {{ctx.fileDropHidden ?'hidden' : ''}}>\n <i class=\"{{ctx.iconClass('cloud-upload')}}\"></i> {{ctx.t('Drop files to attach,')}}\n {% if (ctx.self.imageUpload && ctx.component.webcam) { %}\n <a href=\"#\" ref=\"toggleCameraMode\"><i class=\"{{ctx.iconClass('camera')}}\"></i> {{ctx.t('use camera')}}</a>\n {% } %}\n {{ctx.t('or')}}\n <a href=\"#\" ref=\"fileBrowse\" class=\"browse\">\n {{ctx.t('browse')}}\n <span class=\"sr-only\">\n {{ctx.t('Browse to attach file for ' + ctx.component.label + '. ' +\n (ctx.component.description ? ctx.component.description + '. ' : '') +\n ((!ctx.component.filePattern || ctx.component.filePattern === '*') ? 'Any file types are allowed' : ctx.t('Allowed file types: ') + ctx.component.filePattern))}}\n </span>\n </a>\n <div ref=\"fileProcessingLoader\" class=\"loader-wrapper\">\n <div class=\"loader text-center\"></div>\n </div>\n </div>\n {% } else { %}\n <div class=\"video-container\">\n <video class=\"video\" autoplay=\"true\" ref=\"videoPlayer\" tabindex=\"-1\"></video>\n </div>\n <button class=\"btn btn-primary\" ref=\"takePictureButton\"><i class=\"fa fa-camera\"></i> {{ctx.t('Take Picture')}}</button>\n <button class=\"btn btn-primary\" ref=\"toggleCameraMode\">{{ctx.t('Switch to file upload')}}</button>\n {% } %}\n{% } %}\n{% ctx.statuses.forEach(function(status) { %}\n <div class=\"file {{ctx.statuses.status === 'error' ? ' has-error' : ''}}\">\n <div class=\"grid grid-cols-12 gap-4\">\n <div class=\"fileName col-form-label sm:col-span-10\">{{status.originalName}}\n <i class=\"{{ctx.iconClass('remove')}}\" ref=\"fileStatusRemove\">\n <span class=\"sr-only\">{{ctx.t('Remove button. Press to remove ' + status.originalName || status.name + '.')}}</span>\n <span class=\"sr-only\">{{status.message ? status.message.replace(';', '.') : ''}}</span>\n </i>\n </div>\n <div class=\"fileSize col-form-label sm:col-span-2 text-right\">{{ctx.fileSize(status.size)}}</div>\n </div>\n <div class=\"grid grid-cols-12 gap-4\">\n <div class=\"sm:col-span-12\">\n {% if (status.status === 'progress') { %}\n <div class=\"progress\">\n <div class=\"progress-bar\" role=\"progressbar\" aria-valuenow=\"{{status.progress}}\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: {{status.progress}}%\">\n <span class=\"sr-only\">{{status.progress}}% {{ctx.t('Complete')}}</span>\n </div>\n </div>\n {% } else if (status.status === 'error') { %}\n <div class=\"alert alert-danger bg-{{status.status}}\">{{ctx.t(status.message)}}</div>\n {% } else { %}\n <div class=\"bg-{{status.status}}\">{{ctx.t(status.message)}}</div>\n {% } %}\n </div>\n </div>\n </div>\n{% }) %}\n{% if (!ctx.component.storage || ctx.support.hasWarning) { %}\n <div class=\"alert alert-warning\">\n {% if (!ctx.component.storage) { %}\n <p>{{ctx.t('No storage has been set for this field. File uploads are disabled until storage is set up.')}}</p>\n {% } %}\n {% if (!ctx.support.filereader) { %}\n <p>{{ctx.t('File API & FileReader API not supported.')}}</p>\n {% } %}\n {% if (!ctx.support.formdata) { %}\n <p>{{ctx.t(\"XHR2's FormData is not supported.\")}}</p>\n {% } %}\n {% if (!ctx.support.progress) { %}\n <p>{{ctx.t(\"XHR2's upload progress isn't supported.\")}}</p>\n {% } %}\n </div>\n{% } %}\n","import form from \"./form.ejs\";\n\nexport default { form };\n"],"names":["form","ctx","__t","__p","file","type","status"],"mappings":"AAAe,SAAQA,EAACC,GAAK;AAC1B,MAACC,GAAKC,IAAM;AAGd,SAAIF,EAAI,QAAQ,SACjBE,KAAO;AAAA,0DACLD,IAAOD,EAAI,SAAS,OAAQ,OAAO,KAAKC,KAC1C,QACEA,IAAOD,EAAI,UAAU,QAAS,OAAO,KAAKC,KAC5C;AAAA,IAEAC,KAAO;AAAA,GACDF,EAAI,KAAK,eAmFfE,KAAO;AAAA;AAAA,OACNF,EAAI,MAAM,QAAQ,SAASG,GAAM;AAClC,IAAAD,KAAO;AAAA;AAAA;AAAA,iDACLD,IAAOE,EAAK,gBAAgBA,EAAK,SAAU,OAAO,KAAKF,KACzD,sBACEA,IAAOD,EAAI,UAAU,cAAe,OAAO,KAAKC,KAClD;AAAA,aACMD,EAAI,aACVE,KAAO;AAAA,yCACLD,IAAOD,EAAI,UAAU,QAAQ,MAAO,OAAO,KAAKC,KAClD;AAAA,cAEAC,KAAO;AAAA;AAAA;AAAA;AAAA,EACP,CAAE,GACFA,KAAO;AAAA;AAAA,MAhGPA,KAAO;AAAA,KACFF,EAAI,QAAQ,SACjBE,KAAO;AAAA,eACLD,IAAQ,CAACD,EAAI,UAAU,eAAeA,EAAI,UAAU,gBAAgB,MAAO,+BAA+BA,EAAI,EAAE,sBAAsB,IAAIA,EAAI,UAAU,gBAAiB,OAAO,KAAKC,KAC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;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
form: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function s(l) {
|
|
2
|
+
var n, a = "";
|
|
3
|
+
return a += "<" + ((n = l.tag) == null ? "" : n) + ' class="' + ((n = l.component.className) == null ? "" : n) + `" ref="html"
|
|
4
|
+
`, l.attrs.forEach(function(e) {
|
|
5
|
+
a += `
|
|
6
|
+
` + ((n = e.attr) == null ? "" : n) + '="' + ((n = e.value) == null ? "" : n) + `"
|
|
7
|
+
`;
|
|
8
|
+
}), a += `
|
|
9
|
+
>` + ((n = l.t(l.content)) == null ? "" : n), (!l.singleTags || l.singleTags.indexOf(l.tag) === -1) && (a += "</" + ((n = l.tag) == null ? "" : n) + ">"), a += `
|
|
10
|
+
`, a;
|
|
11
|
+
}
|
|
12
|
+
const u = { form: s };
|
|
13
|
+
export {
|
|
14
|
+
u as default
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/templates/tailwind/html/form.ejs","../../../../src/templates/tailwind/html/index.ts"],"sourcesContent":["<{{ctx.tag}} class=\"{{ ctx.component.className }}\" ref=\"html\"\n {% ctx.attrs.forEach(function(attr) { %}\n {{attr.attr}}=\"{{attr.value}}\"\n {% }) %}\n>{{ctx.t(ctx.content)}}{% if (!ctx.singleTags || ctx.singleTags.indexOf(ctx.tag) === -1) { %}</{{ctx.tag}}>{% } %}\n","import form from \"./form.ejs\";\n\nexport default { form };\n"],"names":["form","ctx","__t","__p","attr","html"],"mappings":"AAAe,SAAQA,EAACC,GAAK;AAC1B,MAACC,GAAKC,IAAM;AAEf,SAAAA,KAAO,QACLD,IAAOD,EAAI,QAAS,OAAO,KAAKC,KAClC,eACEA,IAAQD,EAAI,UAAU,cAAgB,OAAO,KAAKC,KACpD;AAAA,KACCD,EAAI,MAAM,QAAQ,SAASG,GAAM;AAClC,IAAAD,KAAO;AAAA,UACLD,IAAOE,EAAK,SAAU,OAAO,KAAKF,KACpC,SACEA,IAAOE,EAAK,UAAW,OAAO,KAAKF,KACrC;AAAA;AAAA,EACA,CAAE,GACFC,KAAO;AAAA,OACLD,IAAOD,EAAI,EAAEA,EAAI,OAAO,MAAO,OAAO,KAAKC,KACxC,CAACD,EAAI,cAAcA,EAAI,WAAW,QAAQA,EAAI,GAAG,MAAM,QAC5DE,KAAO,SACLD,IAAOD,EAAI,QAAS,OAAO,KAAKC,KAClC,MAEAC,KAAO;AAAA,GACAA;AACP;ACtBA,MAAeE,IAAA,EAAE,MAAAL,EAAK;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
form: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
function s(n) {
|
|
2
|
+
var l, e = "";
|
|
3
|
+
return e += '<i ref="' + ((l = n.ref) == null ? "" : l) + '" class="' + ((l = n.className) == null ? "" : l) + '" style="' + ((l = n.styles) == null ? "" : l) + '">' + ((l = n.content) == null ? "" : l) + `</i>
|
|
4
|
+
`, e;
|
|
5
|
+
}
|
|
6
|
+
const r = { form: s };
|
|
7
|
+
export {
|
|
8
|
+
r as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/templates/tailwind/icon/form.ejs","../../../../src/templates/tailwind/icon/index.ts"],"sourcesContent":["<i ref=\"{{ctx.ref}}\" class=\"{{ctx.className}}\" style=\"{{ctx.styles}}\">{{ctx.content}}</i>\n","import form from \"./form.ejs\";\n\nexport default { form };\n"],"names":["form","ctx","__t","__p","icon"],"mappings":"AAAe,SAAQA,EAACC,GAAK;AAC7B,MAAIC,GAAKC,IAAM;AACf,SAAAA,KAAO,eACLD,IAAOD,EAAI,QAAS,OAAO,KAAKC,KAClC,gBACEA,IAAOD,EAAI,cAAe,OAAO,KAAKC,KACxC,gBACEA,IAAOD,EAAI,WAAY,OAAO,KAAKC,KACrC,SACEA,IAAOD,EAAI,YAAa,OAAO,KAAKC,KACtC;AAAA,GACOC;AACP;ACVA,MAAeC,IAAA,EAAE,MAAAJ,EAAK;"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ICONS: Record<string, any>;
|
|
2
|
-
declare const _default: (iconset: string | undefined, name: string, spinning?: boolean) => string;
|
|
3
|
-
export default _default;
|
|
1
|
+
export declare const ICONS: Record<string, any>;
|
|
2
|
+
declare const _default: (iconset: string | undefined, name: string, spinning?: boolean) => string;
|
|
3
|
+
export default _default;
|