@sankhyalabs/ezui 7.1.0-dev.20 → 7.1.0-dev.22
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/{ApplicationUtils-d04f5c94.js → ApplicationUtils-006ca96f.js} +1 -1
- package/dist/cjs/FormLayout-fe8da83c.js +9 -0
- package/dist/cjs/{app-globals-c128c97e.js → app-globals-5cb12916.js} +1 -1
- package/dist/cjs/{ez-combo-box-list_4.cjs.entry.js → classic-search-list_7.cjs.entry.js} +361 -7
- package/dist/cjs/ez-actions-button.cjs.entry.js +5 -4
- package/dist/cjs/ez-alert-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +2 -2
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +2 -2
- package/dist/cjs/ez-card-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-combo-box.cjs.entry.js +37 -16
- package/dist/cjs/ez-classic-date-input.cjs.entry.js +201 -0
- package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +246 -0
- package/dist/cjs/ez-classic-input.cjs.entry.js +100 -19
- package/dist/cjs/ez-classic-number-input.cjs.entry.js +205 -0
- package/dist/cjs/ez-classic-search-plus.cjs.entry.js +407 -0
- package/dist/cjs/ez-classic-search.cjs.entry.js +683 -0
- package/dist/cjs/ez-classic-text-area.cjs.entry.js +2 -2
- package/dist/cjs/ez-classic-time-input.cjs.entry.js +197 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +5 -4
- package/dist/cjs/ez-combo-box.cjs.entry.js +5 -4
- package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ez-double-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +130 -37
- package/dist/cjs/ez-form.cjs.entry.js +13 -8
- package/dist/cjs/ez-grid-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +11 -7
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +2 -2
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +2 -2
- package/dist/cjs/ez-list-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
- package/dist/cjs/ez-modal.cjs.entry.js +2 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-pagination.cjs.entry.js +2 -2
- package/dist/cjs/ez-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +2 -2
- package/dist/cjs/ez-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search-plus.cjs.entry.js +8 -7
- package/dist/cjs/ez-search-result-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-search.cjs.entry.js +11 -10
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
- package/dist/cjs/ez-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +5 -4
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-tag-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-tag.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +38 -1
- package/dist/cjs/ez-tile-medium.cjs.entry.js +1 -1
- package/dist/cjs/ez-tile.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +2 -2
- package/dist/cjs/ez-underface.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +3 -3
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +4 -4
- package/dist/cjs/filter-column.cjs.entry.js +2 -2
- package/dist/cjs/{index-00d0166b.js → index-350d0fa0.js} +54 -0
- package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +45 -18
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{search-column-8bfee733.js → search-column-9654bf26.js} +5 -5
- package/dist/cjs/searchFormatters-051f8677.js +23 -0
- package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
- package/dist/collection/collection-manifest.json +59 -5
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +77 -18
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
- package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
- package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
- package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
- package/dist/collection/components/ez-classic-input/ez-classic-input.js +155 -19
- package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
- package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
- package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
- package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
- package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
- package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
- package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +406 -0
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +988 -0
- package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
- package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
- package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +1 -0
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +511 -0
- package/dist/collection/components/ez-form/ez-form.js +30 -4
- package/dist/collection/components/ez-form-view/ez-form-view.css +8 -3
- package/dist/collection/components/ez-form-view/ez-form-view.js +61 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +9 -4
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.js +4 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -5
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/structure/index.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +3 -0
- package/dist/collection/components/ez-icon/ez-icon.css +1 -0
- package/dist/collection/components/ez-image-input/ez-image-input.css +173 -0
- package/dist/collection/components/ez-image-input/ez-image-input.js +324 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js +2 -3
- package/dist/collection/components/ez-text-input/ez-text-input.js +38 -1
- package/dist/collection/utils/form/DataBinder.js +2 -2
- package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
- package/dist/collection/utils/i18n/locales/en-us.js +18 -0
- package/dist/collection/utils/i18n/locales/es-es.js +18 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +18 -0
- package/dist/custom-elements/index.d.ts +54 -0
- package/dist/custom-elements/index.js +2913 -347
- package/dist/esm/{ApplicationUtils-12768f5a.js → ApplicationUtils-0c5cb207.js} +1 -1
- package/dist/esm/FormLayout-bda67973.js +9 -0
- package/dist/esm/{app-globals-9507c20e.js → app-globals-1db10325.js} +1 -1
- package/dist/esm/{ez-combo-box-list_4.entry.js → classic-search-list_7.entry.js} +359 -8
- package/dist/esm/ez-actions-button.entry.js +5 -4
- package/dist/esm/ez-alert-list.entry.js +2 -2
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-avatar.entry.js +2 -2
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +2 -2
- package/dist/esm/ez-card-item.entry.js +1 -1
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-classic-combo-box.entry.js +37 -16
- package/dist/esm/ez-classic-date-input.entry.js +197 -0
- package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
- package/dist/esm/ez-classic-input.entry.js +101 -20
- package/dist/esm/ez-classic-number-input.entry.js +201 -0
- package/dist/esm/ez-classic-search-plus.entry.js +403 -0
- package/dist/esm/ez-classic-search.entry.js +679 -0
- package/dist/esm/ez-classic-text-area.entry.js +2 -2
- package/dist/esm/ez-classic-time-input.entry.js +193 -0
- package/dist/esm/ez-collapsible-box.entry.js +5 -4
- package/dist/esm/ez-combo-box.entry.js +5 -4
- package/dist/esm/ez-date-input.entry.js +2 -2
- package/dist/esm/ez-date-time-input.entry.js +2 -2
- package/dist/esm/ez-dialog.entry.js +2 -2
- package/dist/esm/ez-double-list.entry.js +2 -2
- package/dist/esm/ez-dropdown.entry.js +1 -1
- package/dist/esm/ez-empty-card.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +2 -2
- package/dist/esm/ez-filter-input.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +130 -37
- package/dist/esm/ez-form.entry.js +13 -8
- package/dist/esm/ez-grid-view.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +9 -5
- package/dist/esm/ez-guide-navigator.entry.js +2 -2
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-link-builder_6.entry.js +2 -2
- package/dist/esm/ez-list-item.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +2 -2
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +2 -2
- package/dist/esm/ez-modal.entry.js +2 -2
- package/dist/esm/ez-multi-selection-list.entry.js +2 -2
- package/dist/esm/ez-number-input.entry.js +2 -2
- package/dist/esm/ez-pagination.entry.js +2 -2
- package/dist/esm/ez-popover-core.entry.js +1 -1
- package/dist/esm/ez-popover-plus_3.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +2 -2
- package/dist/esm/ez-progress-bar.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-rich-toolbar-item.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search-plus.entry.js +5 -4
- package/dist/esm/ez-search-result-list.entry.js +2 -2
- package/dist/esm/ez-search.entry.js +5 -4
- package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
- package/dist/esm/ez-skeleton.entry.js +2 -2
- package/dist/esm/ez-sortable-list.entry.js +2 -2
- package/dist/esm/ez-spinner.entry.js +2 -2
- package/dist/esm/ez-split-button.entry.js +2 -2
- package/dist/esm/ez-split-item.entry.js +5 -4
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-tag-input.entry.js +1 -1
- package/dist/esm/ez-tag.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +38 -1
- package/dist/esm/ez-tile-medium.entry.js +1 -1
- package/dist/esm/ez-tile.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +2 -2
- package/dist/esm/ez-underface.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +3 -3
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +5 -5
- package/dist/esm/filter-column.entry.js +2 -2
- package/dist/esm/{index-62fc771e.js → index-225aa0c3.js} +54 -0
- package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +45 -19
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{search-column-c00119ae.js → search-column-c3df6285.js} +5 -5
- package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
- package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e75c7a23.entry.js → p-000159dc.entry.js} +1 -1
- package/dist/ezui/p-05bcbe61.entry.js +1 -0
- package/dist/ezui/{p-93e1c917.entry.js → p-05e68ab3.entry.js} +1 -1
- package/dist/ezui/{p-288631d1.entry.js → p-06f1b8e4.entry.js} +1 -1
- package/dist/ezui/{p-2854f087.entry.js → p-0820f8c3.entry.js} +1 -1
- package/dist/ezui/{p-6d596a5a.entry.js → p-0b531233.entry.js} +1 -1
- package/dist/ezui/{p-79277e43.entry.js → p-0ba284cd.entry.js} +1 -1
- package/dist/ezui/p-0d393a5d.entry.js +1 -0
- package/dist/ezui/{p-3fe05d6b.entry.js → p-12cc95dc.entry.js} +1 -1
- package/dist/ezui/p-14d6aeb8.entry.js +1 -0
- package/dist/ezui/{p-2528e988.entry.js → p-169d460d.entry.js} +1 -1
- package/dist/ezui/{p-6f77a359.entry.js → p-1723f728.entry.js} +1 -1
- package/dist/ezui/{p-a401041c.entry.js → p-181cb82f.entry.js} +1 -1
- package/dist/ezui/{p-eee3c7ff.entry.js → p-24993171.entry.js} +1 -1
- package/dist/ezui/{p-377768bd.entry.js → p-25748a4e.entry.js} +2 -2
- package/dist/ezui/p-27421015.entry.js +1 -0
- package/dist/ezui/p-27c8a9b7.entry.js +1 -0
- package/dist/ezui/{p-4f0632b4.js → p-29341f74.js} +1 -1
- package/dist/ezui/p-29f0de90.entry.js +1 -0
- package/dist/ezui/{p-44ad16df.entry.js → p-2b51d5a9.entry.js} +1 -1
- package/dist/ezui/p-2c123fdf.entry.js +1 -0
- package/dist/ezui/{p-6a9a20a0.entry.js → p-2fa490f1.entry.js} +1 -1
- package/dist/ezui/{p-da585ff3.entry.js → p-3453dad5.entry.js} +1 -1
- package/dist/ezui/p-34d596a3.entry.js +1 -0
- package/dist/ezui/{p-ef8bd3e8.entry.js → p-35e3715c.entry.js} +1 -1
- package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
- package/dist/ezui/{p-124699e0.entry.js → p-458027b5.entry.js} +1 -1
- package/dist/ezui/p-47e4a8ce.js +1 -0
- package/dist/ezui/{p-4d30b703.entry.js → p-4a876b8b.entry.js} +1 -1
- package/dist/ezui/p-4d909730.entry.js +1 -0
- package/dist/ezui/{p-e27d7dc2.entry.js → p-4df2edb5.entry.js} +1 -1
- package/dist/ezui/{p-6369a0cd.entry.js → p-51e34317.entry.js} +1 -1
- package/dist/ezui/{p-957d08cd.entry.js → p-534209bf.entry.js} +1 -1
- package/dist/ezui/{p-0c0eb410.entry.js → p-55a9e4ba.entry.js} +1 -1
- package/dist/ezui/p-5895e687.js +1 -0
- package/dist/ezui/{p-59a98e31.entry.js → p-636ea910.entry.js} +1 -1
- package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
- package/dist/ezui/p-6ec40dec.entry.js +1 -0
- package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
- package/dist/ezui/p-70f30bfe.entry.js +1 -0
- package/dist/ezui/p-71b341cc.entry.js +1 -0
- package/dist/ezui/{p-cd6f5783.entry.js → p-75443a91.entry.js} +1 -1
- package/dist/ezui/{p-e8c6c973.entry.js → p-75e650ff.entry.js} +1 -1
- package/dist/ezui/p-75e8862c.entry.js +1 -0
- package/dist/ezui/{p-d6f50207.entry.js → p-770cf2b8.entry.js} +1 -1
- package/dist/ezui/{p-91c9d50e.entry.js → p-78e975b4.entry.js} +1 -1
- package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
- package/dist/ezui/p-81a98a7c.entry.js +1 -0
- package/dist/ezui/p-82e1d7fc.entry.js +1 -0
- package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
- package/dist/ezui/p-87739608.entry.js +1 -0
- package/dist/ezui/p-88a115b3.js +1 -0
- package/dist/ezui/p-892e7326.entry.js +1 -0
- package/dist/ezui/p-8f7373ab.entry.js +1 -0
- package/dist/ezui/{p-f34ec732.entry.js → p-980f1f18.entry.js} +1 -1
- package/dist/ezui/{p-5a11cf56.js → p-9825c1d2.js} +1 -1
- package/dist/ezui/{p-a3075f52.entry.js → p-9bcfa689.entry.js} +1 -1
- package/dist/ezui/{p-e882635e.entry.js → p-9d515e5b.entry.js} +1 -1
- package/dist/ezui/{p-1adf7139.entry.js → p-9fb7131e.entry.js} +1 -1
- package/dist/ezui/{p-6f119d5f.entry.js → p-a6ea8da3.entry.js} +1 -1
- package/dist/ezui/{p-d6742c1e.entry.js → p-a9432878.entry.js} +1 -1
- package/dist/ezui/{p-e8c57463.entry.js → p-b21efe83.entry.js} +1 -1
- package/dist/ezui/{p-a0bf1fc7.entry.js → p-bc693db6.entry.js} +1 -1
- package/dist/ezui/{p-1cde96f9.entry.js → p-be2e39c5.entry.js} +1 -1
- package/dist/ezui/{p-641ee538.js → p-c178730b.js} +1 -1
- package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
- package/dist/ezui/{p-6020f3d5.entry.js → p-c754774e.entry.js} +1 -1
- package/dist/ezui/{p-d2645bdf.entry.js → p-c96e536d.entry.js} +1 -1
- package/dist/ezui/{p-cfa26133.entry.js → p-ce2614fc.entry.js} +1 -1
- package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
- package/dist/ezui/p-d3aca6aa.entry.js +1 -0
- package/dist/ezui/p-d57ea090.entry.js +1 -0
- package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
- package/dist/ezui/{p-5ab08b60.entry.js → p-e0380234.entry.js} +1 -1
- package/dist/ezui/{p-e99cbb51.entry.js → p-e039e049.entry.js} +1 -1
- package/dist/ezui/{p-a7eab406.entry.js → p-e0fd2ce5.entry.js} +1 -1
- package/dist/ezui/{p-7f792043.entry.js → p-e195eaad.entry.js} +1 -1
- package/dist/ezui/{p-7b999377.entry.js → p-e275353b.entry.js} +1 -1
- package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
- package/dist/ezui/{p-2a70f094.entry.js → p-e94d3af5.entry.js} +1 -1
- package/dist/ezui/p-e963cb3f.entry.js +1 -0
- package/dist/ezui/{p-e7a7c594.entry.js → p-e9b409c1.entry.js} +1 -1
- package/dist/ezui/p-f0425f87.entry.js +1 -0
- package/dist/ezui/{p-19cf13bc.entry.js → p-f1b54699.entry.js} +1 -1
- package/dist/ezui/{p-a3ada561.entry.js → p-f26b97e9.entry.js} +1 -1
- package/dist/ezui/{p-ff4bde07.entry.js → p-f32d5a82.entry.js} +1 -1
- package/dist/ezui/{p-411c0222.entry.js → p-f7ca8634.entry.js} +1 -1
- package/dist/ezui/{p-294f54fe.entry.js → p-fe0bca65.entry.js} +1 -1
- package/dist/ezui/p-ff4312d5.js +1 -0
- package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +9 -3
- package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
- package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
- package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +18 -1
- package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
- package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
- package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
- package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
- package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +186 -0
- package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
- package/dist/types/components/ez-form/ez-form.d.ts +6 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +11 -0
- package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +8 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
- package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/ImageInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-image-input/ez-image-input.d.ts +42 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
- package/dist/types/components.d.ts +3220 -1969
- package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
- package/dist/types/utils/i18n/locales/en-us.d.ts +18 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +18 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +18 -0
- package/dist/types/utils/i18n/translations.d.ts +54 -0
- package/package.json +1 -1
- package/react/components.d.ts +9 -0
- package/react/components.js +9 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-1266fe78.entry.js +0 -1
- package/dist/ezui/p-14807f4e.js +0 -1
- package/dist/ezui/p-1730ee24.entry.js +0 -1
- package/dist/ezui/p-30ffb9ed.js +0 -1
- package/dist/ezui/p-48effc69.entry.js +0 -1
- package/dist/ezui/p-59092a66.entry.js +0 -1
- package/dist/ezui/p-7fe97ef5.entry.js +0 -1
- package/dist/ezui/p-8d626d2b.entry.js +0 -1
- package/dist/ezui/p-8dc267ff.entry.js +0 -1
- package/dist/ezui/p-96b33264.entry.js +0 -1
- package/dist/ezui/p-9b2e6438.entry.js +0 -1
- package/dist/ezui/p-adaa2a81.entry.js +0 -1
- package/dist/ezui/p-bc2f844e.entry.js +0 -1
- package/dist/ezui/p-c82acfc6.entry.js +0 -1
- package/dist/ezui/p-d8cc640d.entry.js +0 -1
- package/dist/ezui/p-dee18824.entry.js +0 -1
- package/dist/ezui/p-df316d40.entry.js +0 -1
- package/dist/ezui/p-eca050b4.entry.js +0 -1
|
@@ -4,10 +4,13 @@ import { ElementIDUtils, UserInterface } from '@sankhyalabs/core';
|
|
|
4
4
|
import { FormItems } from './structure';
|
|
5
5
|
export class EzFormView {
|
|
6
6
|
constructor() {
|
|
7
|
+
this.MAIN_GROUP_NAME = "__main";
|
|
7
8
|
this._customEditors = new Map();
|
|
8
9
|
this.fields = undefined;
|
|
9
10
|
this.selectedRecord = undefined;
|
|
10
11
|
this.singleColumn = false;
|
|
12
|
+
this.formLayout = undefined;
|
|
13
|
+
this.customUiBuilders = new Map();
|
|
11
14
|
}
|
|
12
15
|
async showUp() {
|
|
13
16
|
if (this.singleColumn)
|
|
@@ -35,10 +38,18 @@ export class EzFormView {
|
|
|
35
38
|
});
|
|
36
39
|
this.fields = [...fields];
|
|
37
40
|
}
|
|
41
|
+
getGroupByField(field) {
|
|
42
|
+
var _a, _b;
|
|
43
|
+
const group = (_a = field.group) !== null && _a !== void 0 ? _a : (_b = field.props) === null || _b === void 0 ? void 0 : _b["UITabName"];
|
|
44
|
+
if (group && group !== this.MAIN_GROUP_NAME) {
|
|
45
|
+
return group;
|
|
46
|
+
}
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
38
49
|
groupFields(fields) {
|
|
39
50
|
const result = new Map();
|
|
40
51
|
fields.forEach(item => {
|
|
41
|
-
const groupLabel = item
|
|
52
|
+
const groupLabel = this.getGroupByField(item);
|
|
42
53
|
if (groupLabel) {
|
|
43
54
|
let groupFields = result.get(groupLabel);
|
|
44
55
|
if (groupFields == undefined) {
|
|
@@ -71,12 +82,16 @@ export class EzFormView {
|
|
|
71
82
|
if (this.isItemFullWidth(item.userInterface)) {
|
|
72
83
|
classItem += " input-full_width";
|
|
73
84
|
}
|
|
85
|
+
const context = {
|
|
86
|
+
formLayout: this.formLayout,
|
|
87
|
+
size: "xsmall",
|
|
88
|
+
};
|
|
74
89
|
if (this._customEditors.has(item.name)) {
|
|
75
90
|
const value = (_a = this._formElements.map(el => ({ name: el.dataset.fieldName, value: el['value'] })).find(field => field.name === item.name)) === null || _a === void 0 ? void 0 : _a.value;
|
|
76
91
|
const customEditor = this._customEditors.get(item.name).customEditor;
|
|
77
|
-
return h("div", { class: classItem }, h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: fieldBuilder, value: value, selectedRecord: this.selectedRecord }));
|
|
92
|
+
return h("div", { class: classItem }, h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: (field) => fieldBuilder(field, this.customUiBuilders, context), value: value, selectedRecord: this.selectedRecord }));
|
|
78
93
|
}
|
|
79
|
-
return h("div", { class: classItem }, fieldBuilder(item));
|
|
94
|
+
return h("div", { class: classItem }, fieldBuilder(item, this.customUiBuilders, context));
|
|
80
95
|
}
|
|
81
96
|
render() {
|
|
82
97
|
ElementIDUtils.addIDInfoIfNotExists(this._element, 'ezFormView');
|
|
@@ -171,6 +186,49 @@ export class EzFormView {
|
|
|
171
186
|
"attribute": "single-column",
|
|
172
187
|
"reflect": false,
|
|
173
188
|
"defaultValue": "false"
|
|
189
|
+
},
|
|
190
|
+
"formLayout": {
|
|
191
|
+
"type": "number",
|
|
192
|
+
"mutable": false,
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "FormLayout",
|
|
195
|
+
"resolved": "FormLayout.CASCADE | FormLayout.CLASSIC_CASCADE | FormLayout.CLASSIC_SIDE_BY_SIDE | FormLayout.SIDE_BY_SIDE",
|
|
196
|
+
"references": {
|
|
197
|
+
"FormLayout": {
|
|
198
|
+
"location": "import",
|
|
199
|
+
"path": "../../utils/form/interfaces/FormLayout"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"required": false,
|
|
204
|
+
"optional": true,
|
|
205
|
+
"docs": {
|
|
206
|
+
"tags": [],
|
|
207
|
+
"text": "Define o layout do formul\u00E1rio."
|
|
208
|
+
},
|
|
209
|
+
"attribute": "form-layout",
|
|
210
|
+
"reflect": false
|
|
211
|
+
},
|
|
212
|
+
"customUiBuilders": {
|
|
213
|
+
"type": "unknown",
|
|
214
|
+
"mutable": false,
|
|
215
|
+
"complexType": {
|
|
216
|
+
"original": "UiFieldBuilders",
|
|
217
|
+
"resolved": "Map<UserInterface, (field: IFormViewField, context?: IFieldBuilderContext) => HTMLElement>",
|
|
218
|
+
"references": {
|
|
219
|
+
"UiFieldBuilders": {
|
|
220
|
+
"location": "import",
|
|
221
|
+
"path": "./fieldbuilder/FieldBuilder"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": false,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": "Define construtores customizados para tipos de campos espec\u00EDficos"
|
|
230
|
+
},
|
|
231
|
+
"defaultValue": "new Map()"
|
|
174
232
|
}
|
|
175
233
|
};
|
|
176
234
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UserInterface } from "@sankhyalabs/core";
|
|
2
|
+
import { FormLayout } from "../../../utils/form/interfaces/FormLayout";
|
|
2
3
|
import { buildCheckBox, buildSwitch } from "./templates/CheckBox.tpl";
|
|
3
4
|
import { buildComboBox } from "./templates/ComboBox.tpl";
|
|
4
5
|
import { buildDate, buildTime, buildDateTime, buildTimeSeconds } from "./templates/DateInput.tpl";
|
|
@@ -10,6 +11,7 @@ import { buildSearchPlus } from "./templates/SearchInputPlus.tpl";
|
|
|
10
11
|
import { buildSearch } from "./templates/SearchInput.tpl";
|
|
11
12
|
import { buildRichText } from "./templates/RichText.tpl";
|
|
12
13
|
import { getI18n } from "../../../utils/i18n";
|
|
14
|
+
import { buildImage } from "./templates/ImageInput.tpl";
|
|
13
15
|
const uiBuilders = new Map();
|
|
14
16
|
uiBuilders.set(UserInterface.CHECKBOX, buildCheckBox);
|
|
15
17
|
uiBuilders.set(UserInterface.SWITCH, buildSwitch);
|
|
@@ -25,11 +27,14 @@ uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
|
25
27
|
uiBuilders.set(UserInterface.SEARCHPLUS, buildSearchPlus);
|
|
26
28
|
uiBuilders.set(UserInterface.LONGTEXT, buildTextArea);
|
|
27
29
|
uiBuilders.set(UserInterface.HTML, buildRichText);
|
|
28
|
-
|
|
30
|
+
uiBuilders.set(UserInterface.IMAGE, buildImage);
|
|
31
|
+
export const fieldBuilder = (field, customUiBuilders = new Map(), context) => {
|
|
29
32
|
const i18n = getI18n();
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
34
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
35
|
+
const builder = (customUiBuilders.get(field.userInterface) || uiBuilders.get(field.userInterface)) || buildTextInput;
|
|
36
|
+
const label = !shouldUseClassic && field.required ? `${field.label}${i18n("app.requiredInfo")}` : field.label;
|
|
37
|
+
const builtElement = builder(Object.assign(Object.assign({}, field), { label }), context);
|
|
33
38
|
//@ts-ignore
|
|
34
39
|
builtElement.$attrs$['data-form-item'] = field.name;
|
|
35
40
|
return builtElement;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { CheckMode } from "../../../ez-check/CheckMode";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { FormLayout } from "../../../../utils/form/interfaces/FormLayout";
|
|
4
|
+
export const buildSwitch = (field, context) => {
|
|
5
|
+
return buildField(field.name, field.label, field.readOnly, field.contextName, true, context);
|
|
5
6
|
};
|
|
6
|
-
export const buildCheckBox = (field) => {
|
|
7
|
-
return buildField(field.name, field.label, field.readOnly, field.contextName, false);
|
|
7
|
+
export const buildCheckBox = (field, context) => {
|
|
8
|
+
return buildField(field.name, field.label, field.readOnly, field.contextName, false, context);
|
|
8
9
|
};
|
|
9
|
-
function buildField(fieldName, fieldLabel, readOnly, contextName, switchMode) {
|
|
10
|
-
|
|
10
|
+
function buildField(fieldName, fieldLabel, readOnly, contextName, switchMode, context) {
|
|
11
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
12
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
13
|
+
return (h("div", { class: `ez-col ez-col--sd-12 ez-align--middle ez-padding-top--medium ez-padding-bottom--medium ez-size-height--full ${shouldUseClassic ? "ez-margin-top--small" : ""}` }, h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.SWITCH : CheckMode.REGULAR, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName })));
|
|
11
14
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
|
|
2
|
+
import { FormLayout } from "../../../../utils/form/interfaces/FormLayout";
|
|
3
|
+
export const buildComboBox = ({ name, label, readOnly, required, props, contextName, canShowError }, context) => {
|
|
4
|
+
var _a;
|
|
5
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
6
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
3
7
|
const prop = props === null || props === void 0 ? void 0 : props.options;
|
|
4
8
|
let options;
|
|
5
9
|
if (typeof prop === "string") {
|
|
@@ -9,5 +13,8 @@ export const buildComboBox = ({ name, label, readOnly, required, props, contextN
|
|
|
9
13
|
else {
|
|
10
14
|
options = prop;
|
|
11
15
|
}
|
|
16
|
+
if (shouldUseClassic) {
|
|
17
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-classic-combo-box", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, options: options, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
|
|
18
|
+
}
|
|
12
19
|
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-combo-box", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, options: options, canShowError: canShowError })));
|
|
13
20
|
};
|
|
@@ -1,14 +1,38 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
|
|
2
|
+
import { FormLayout } from "../../../../utils/form/interfaces/FormLayout";
|
|
3
|
+
export const buildDate = ({ name, label, readOnly, canShowError, props, required }, context) => {
|
|
4
|
+
var _a;
|
|
5
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
6
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
7
|
+
if (shouldUseClassic) {
|
|
8
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-classic-date-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
|
|
9
|
+
}
|
|
3
10
|
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-date-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError })));
|
|
4
11
|
};
|
|
5
|
-
export const buildTime = ({ name, label, readOnly, canShowError, props }) => {
|
|
6
|
-
var _a;
|
|
7
|
-
|
|
12
|
+
export const buildTime = ({ name, label, readOnly, canShowError, props, required }, context) => {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
15
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
16
|
+
if (shouldUseClassic) {
|
|
17
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-classic-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, "show-seconds": (_a = props === null || props === void 0 ? void 0 : props.showSeconds) !== null && _a !== void 0 ? _a : false, size: (_b = context === null || context === void 0 ? void 0 : context.size) !== null && _b !== void 0 ? _b : "small", required: required })));
|
|
18
|
+
}
|
|
19
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, "show-seconds": (_c = props === null || props === void 0 ? void 0 : props.showSeconds) !== null && _c !== void 0 ? _c : false })));
|
|
8
20
|
};
|
|
9
|
-
export const buildTimeSeconds = ({ name, label, readOnly, canShowError }) => {
|
|
21
|
+
export const buildTimeSeconds = ({ name, label, readOnly, canShowError, props, required }, context) => {
|
|
22
|
+
var _a;
|
|
23
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
24
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
25
|
+
if (shouldUseClassic) {
|
|
26
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-classic-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, showSeconds: true, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
|
|
27
|
+
}
|
|
10
28
|
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, showSeconds: true })));
|
|
11
29
|
};
|
|
12
|
-
export const buildDateTime = ({ name, label, readOnly, contextName, canShowError }) => {
|
|
30
|
+
export const buildDateTime = ({ name, label, readOnly, contextName, canShowError, props, required }, context) => {
|
|
31
|
+
var _a;
|
|
32
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
33
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
34
|
+
if (shouldUseClassic) {
|
|
35
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-classic-date-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
|
|
36
|
+
}
|
|
13
37
|
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-date-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError })));
|
|
14
38
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { ObjectUtils } from "@sankhyalabs/core";
|
|
3
|
-
export const buildFile = ({ name, label, readOnly, contextName, props }) => {
|
|
3
|
+
export const buildFile = ({ name, label, readOnly, contextName, props }, context) => {
|
|
4
4
|
const uploadProps = ObjectUtils.removeEmptyValues({
|
|
5
5
|
subTitle: props.subTitle,
|
|
6
6
|
requestHeaders: Object.assign(Object.assign({}, (props.STORAGESTRATEGY && {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const buildImage = ({ name, label, readOnly, contextName, props }) => {
|
|
3
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-image-input", Object.assign({ enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, maxFileSize: Infinity }, props))));
|
|
4
|
+
};
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
|
|
2
|
+
import { FormLayout } from "../../../../utils/form/interfaces/FormLayout";
|
|
3
|
+
export const buildDecimal = ({ name, label, readOnly, props, contextName, canShowError, required }, context) => {
|
|
3
4
|
var _a, _b;
|
|
4
5
|
const precision = Number((_a = props === null || props === void 0 ? void 0 : props.precision) !== null && _a !== void 0 ? _a : 2);
|
|
5
6
|
const prettyPrecision = Number((_b = props === null || props === void 0 ? void 0 : props.prettyPrecision) !== null && _b !== void 0 ? _b : precision);
|
|
6
|
-
return buildNumeric(name, label, readOnly, precision, prettyPrecision, contextName, canShowError);
|
|
7
|
+
return buildNumeric(name, label, readOnly, precision, prettyPrecision, contextName, canShowError, props, required, context);
|
|
7
8
|
};
|
|
8
|
-
export const buildInteger = ({ name, label, readOnly, contextName, canShowError }) => {
|
|
9
|
-
return buildNumeric(name, label, readOnly, 0, 0, contextName, canShowError);
|
|
9
|
+
export const buildInteger = ({ name, label, readOnly, contextName, canShowError, props, required }, context) => {
|
|
10
|
+
return buildNumeric(name, label, readOnly, 0, 0, contextName, canShowError, props, required, context);
|
|
10
11
|
};
|
|
11
|
-
function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision, contextName, canShowError) {
|
|
12
|
+
function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision, contextName, canShowError, props, required, context) {
|
|
13
|
+
var _a;
|
|
14
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
15
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
16
|
+
if (shouldUseClassic) {
|
|
17
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-classic-number-input", { class: "ez-input__no-margin", enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
|
|
18
|
+
}
|
|
12
19
|
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-number-input", { class: "ez-input__no-margin", enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError })));
|
|
13
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
export const buildRichText = ({ name, label, readOnly, contextName, rows, canShowError }) => {
|
|
2
|
+
export const buildRichText = ({ name, label, readOnly, contextName, rows, canShowError }, context) => {
|
|
3
3
|
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-rich-text", { key: name, enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows, canShowError: canShowError })));
|
|
4
4
|
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { FormLayout } from "../../../../utils/form/interfaces/FormLayout";
|
|
2
3
|
import { StringUtils } from "@sankhyalabs/core";
|
|
3
|
-
export const buildSearch = ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }) => {
|
|
4
|
-
var _a;
|
|
4
|
+
export const buildSearch = ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }, context) => {
|
|
5
|
+
var _a, _b, _c;
|
|
5
6
|
const hasDescriptionField = !StringUtils.isEmpty(props === null || props === void 0 ? void 0 : props.DESCRIPTIONFIELD);
|
|
6
|
-
|
|
7
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
8
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
9
|
+
if (shouldUseClassic) {
|
|
10
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-classic-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props === null || props === void 0 ? void 0 : props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false, hideDescriptionInput: !hasDescriptionField, size: (_b = context === null || context === void 0 ? void 0 : context.size) !== null && _b !== void 0 ? _b : "small", required: required })));
|
|
11
|
+
}
|
|
12
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_c = props === null || props === void 0 ? void 0 : props.ignoreLimitCharsToSearch) !== null && _c !== void 0 ? _c : false, hideDescriptionInput: !hasDescriptionField })));
|
|
7
13
|
};
|
package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { StringUtils } from "@sankhyalabs/core";
|
|
3
|
-
|
|
3
|
+
import { FormLayout } from "../../../../utils/form/interfaces/FormLayout";
|
|
4
|
+
export const buildSearchPlus = ({ name, label, readOnly, contextName, canShowError, optionLoader, props, required }, context) => {
|
|
5
|
+
var _a;
|
|
6
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
7
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
4
8
|
const hasDescriptionField = !StringUtils.isEmpty(props === null || props === void 0 ? void 0 : props.DESCRIPTIONFIELD);
|
|
9
|
+
if (shouldUseClassic) {
|
|
10
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-classic-search-plus", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, hideDescriptionInput: !hasDescriptionField, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
|
|
11
|
+
}
|
|
5
12
|
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-search-plus", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, hideDescriptionInput: !hasDescriptionField })));
|
|
6
13
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
|
|
2
|
+
import { FormLayout } from "../../../../utils/form/interfaces/FormLayout";
|
|
3
|
+
export const buildTextArea = ({ name, label, readOnly, rows, contextName, canShowError, props, required }, context) => {
|
|
4
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
5
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
6
|
+
if (shouldUseClassic) {
|
|
7
|
+
return (h("div", { class: "ez-col ez-col--sd-12", key: name }, h("ez-classic-text-area", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows })));
|
|
8
|
+
}
|
|
3
9
|
return (h("div", { class: "ez-col ez-col--sd-12", key: name }, h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows, canShowError: canShowError })));
|
|
4
10
|
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
|
|
2
|
+
import { FormLayout } from "../../../../utils/form/interfaces/FormLayout";
|
|
3
|
+
export const buildTextInput = ({ name, label, readOnly, contextName, canShowError, props, required }, context) => {
|
|
4
|
+
var _a;
|
|
5
|
+
const shouldUseClassic = (context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_CASCADE ||
|
|
6
|
+
(context === null || context === void 0 ? void 0 : context.formLayout) === FormLayout.CLASSIC_SIDE_BY_SIDE;
|
|
7
|
+
if (shouldUseClassic) {
|
|
8
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-classic-input", { class: "ez-input__no-margin", label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask, size: (_a = context === null || context === void 0 ? void 0 : context.size) !== null && _a !== void 0 ? _a : "small", required: required })));
|
|
9
|
+
}
|
|
3
10
|
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-text-input", { class: "ez-input__no-margin", label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask })));
|
|
4
11
|
};
|
|
@@ -4,7 +4,7 @@ class FormItem {
|
|
|
4
4
|
}
|
|
5
5
|
addRightElement(el) {
|
|
6
6
|
this.removeRightElement();
|
|
7
|
-
el.classList.add('ez-padding-left--small');
|
|
7
|
+
el.classList.add('ez-padding-left--small', 'ez-margin-top--auto', 'ez-margin-bottom--extra-small');
|
|
8
8
|
el.setAttribute('data-custom-item', 'true');
|
|
9
9
|
this.elem.classList.add('ez-col--nowrap');
|
|
10
10
|
this.elem.appendChild(el);
|
|
@@ -250,6 +250,9 @@ export default class DataSource {
|
|
|
250
250
|
});
|
|
251
251
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
252
252
|
var _a, _b, _c, _d, _e, _f;
|
|
253
|
+
if (f.userInterface === UserInterface.IMAGE) {
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
253
256
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
254
257
|
const props = new Map();
|
|
255
258
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
|
|
4
|
+
/*@doc Define a altura do container de imagem.*/
|
|
5
|
+
--ez-image-input--container-height: 200px;
|
|
6
|
+
|
|
7
|
+
/*@doc Define a largura do container de imagem.*/
|
|
8
|
+
--ez-image-input--container-width: 280px;
|
|
9
|
+
|
|
10
|
+
/*@doc Define a cor de fundo do container.*/
|
|
11
|
+
--ez-image-input--background-color: var(--color--gray-80);
|
|
12
|
+
|
|
13
|
+
/*@doc Define a cor da borda do container.*/
|
|
14
|
+
--ez-image-input--border-color: var(--color--gray-200);
|
|
15
|
+
|
|
16
|
+
/*@doc Define a cor da borda no estado de hover.*/
|
|
17
|
+
--ez-image-input--border-color-hover: var(--color--ocean-green-600);
|
|
18
|
+
|
|
19
|
+
/*@doc Define a cor da borda quando está sendo arrastado.*/
|
|
20
|
+
--ez-image-input--border-color-dragging: var(--color--ocean-green-500);
|
|
21
|
+
|
|
22
|
+
/*@doc Define a cor da borda quando está desabilitado.*/
|
|
23
|
+
--ez-image-input--border-color-disabled: var(--color--gray-200);
|
|
24
|
+
|
|
25
|
+
/*@doc Define a cor do texto do label.*/
|
|
26
|
+
--ez-image-input--label-color: var(--color--petroleum-900);
|
|
27
|
+
|
|
28
|
+
/*@doc Define a cor do ícone.*/
|
|
29
|
+
--ez-image-input--icon-color: var(--color--gray-400);
|
|
30
|
+
|
|
31
|
+
/*@doc Define o raio da borda do container.*/
|
|
32
|
+
--ez-image-input--border-radius: var(--border--radius-24);
|
|
33
|
+
|
|
34
|
+
/*@doc Define a largura da borda.*/
|
|
35
|
+
--ez-image-input--border-width: 2px;
|
|
36
|
+
|
|
37
|
+
/*@doc Define a cor de fundo do botão de remover.*/
|
|
38
|
+
--ez-image-input--remove-button-bg: var(--color--red-600);
|
|
39
|
+
|
|
40
|
+
/*@doc Define a cor de fundo do botão de remover no hover.*/
|
|
41
|
+
--ez-image-input--remove-button-bg-hover: var(--color--red-700);
|
|
42
|
+
|
|
43
|
+
/*@doc Define a cor do ícone do botão de remover.*/
|
|
44
|
+
--ez-image-input--remove-button-color: var(--color--gray-70);
|
|
45
|
+
|
|
46
|
+
/*@doc Define a borda do botão de remover.*/
|
|
47
|
+
--ez-image-input--remove-button-border: 1px solid var(--color--red-700);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.image-input__container {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
position: relative;
|
|
55
|
+
height: var(--ez-image-input--container-height);
|
|
56
|
+
width: var(--ez-image-input--container-width);
|
|
57
|
+
border: var(--ez-image-input--border-width) dashed var(--ez-image-input--border-color);
|
|
58
|
+
border-radius: var(--ez-image-input--border-radius);
|
|
59
|
+
background-color: var(--ez-image-input--background-color);
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: all 0.3s ease;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.image-input__container:hover:not(.image-input__container--disabled) {
|
|
66
|
+
border-color: var(--ez-image-input--border-color-hover);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.image-input__container--dragging {
|
|
70
|
+
border-color: var(--ez-image-input--border-color-dragging);
|
|
71
|
+
background-color: var(--color--ocean-green-90);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.image-input__container--disabled {
|
|
75
|
+
cursor: not-allowed;
|
|
76
|
+
opacity: 0.6;
|
|
77
|
+
border-color: var(--ez-image-input--border-color-disabled);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.image-input__container--has-image {
|
|
81
|
+
border-style: solid;
|
|
82
|
+
padding: var(--space--0);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.image-input__file-input {
|
|
86
|
+
display: none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.image-input__dropzone {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
gap: var(--space--16);
|
|
95
|
+
padding: var(--space--24);
|
|
96
|
+
text-align: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.image-input__dropzone ez-icon {
|
|
100
|
+
color: var(--ez-image-input--icon-color);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.image-input__label {
|
|
104
|
+
font-family: var(--font--pattern);
|
|
105
|
+
font-size: var(--font-size--default);
|
|
106
|
+
font-weight: var(--font-weight--medium);
|
|
107
|
+
color: var(--ez-image-input--label-color);
|
|
108
|
+
line-height: var(--line-height--20);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.image-input__preview {
|
|
112
|
+
position: relative;
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.image-input__image {
|
|
121
|
+
height: 100%;
|
|
122
|
+
object-fit: cover;
|
|
123
|
+
border-radius: calc(var(--ez-image-input--border-radius) - var(--ez-image-input--border-width));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
ez-button {
|
|
127
|
+
--ez-button--background-color: var(--ez-image-input--remove-button-bg);
|
|
128
|
+
--ez-button--hover--background-color: var(--ez-image-input--remove-button-bg-hover);
|
|
129
|
+
--ez-button--color: var(--ez-image-input--remove-button-color);
|
|
130
|
+
--ez-button--border: var(--ez-image-input--remove-button-border);
|
|
131
|
+
--ez-button--hover--border: var(--ez-image-input--remove-button-border);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.image-input__remove-button {
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: var(--space--8);
|
|
137
|
+
right: var(--space--8);
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.image-input__popup-content {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
padding: var(--space--16);
|
|
148
|
+
height: 100%;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.image-input__popup-image {
|
|
152
|
+
max-width: 100%;
|
|
153
|
+
max-height: 70vh;
|
|
154
|
+
object-fit: contain;
|
|
155
|
+
border-radius: var(--border--radius-8);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.image-input__image {
|
|
159
|
+
height: 100%;
|
|
160
|
+
object-fit: cover;
|
|
161
|
+
border-radius: calc(var(--ez-image-input--border-radius) - var(--ez-image-input--border-width));
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
transition: transform 0.2s ease;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.image-input__image:hover {
|
|
167
|
+
transform: scale(1.02);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
ez-skeleton {
|
|
171
|
+
--skeleton-width: var(--ez-image-input--container-width);
|
|
172
|
+
--skeleton-height: var(--ez-image-input--container-height);
|
|
173
|
+
}
|