@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
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
+
import initI18n from '../../utils/i18n';
|
|
4
|
+
export class EzImageInput {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.handleFileSelect = (event) => {
|
|
7
|
+
const input = event.target;
|
|
8
|
+
if (input.files && input.files[0]) {
|
|
9
|
+
this.processFile(input.files[0]);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
this.handleDrop = (event) => {
|
|
13
|
+
var _a;
|
|
14
|
+
event.preventDefault();
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
this._isDragging = false;
|
|
17
|
+
if (!this.enabled)
|
|
18
|
+
return;
|
|
19
|
+
const files = (_a = event.dataTransfer) === null || _a === void 0 ? void 0 : _a.files;
|
|
20
|
+
if (files && files[0]) {
|
|
21
|
+
this.processFile(files[0]);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.handleDragOver = (event) => {
|
|
25
|
+
event.preventDefault();
|
|
26
|
+
event.stopPropagation();
|
|
27
|
+
if (this.enabled) {
|
|
28
|
+
this._isDragging = true;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
this.handleDragLeave = (event) => {
|
|
32
|
+
event.preventDefault();
|
|
33
|
+
event.stopPropagation();
|
|
34
|
+
this._isDragging = false;
|
|
35
|
+
};
|
|
36
|
+
this.handleRemoveImage = (event) => {
|
|
37
|
+
event.stopPropagation();
|
|
38
|
+
this.value = undefined;
|
|
39
|
+
this._hasImage = false;
|
|
40
|
+
if (this._inputElem) {
|
|
41
|
+
this._inputElem.value = '';
|
|
42
|
+
}
|
|
43
|
+
this.ezChange.emit('');
|
|
44
|
+
};
|
|
45
|
+
this.handleClickDropZone = () => {
|
|
46
|
+
var _a;
|
|
47
|
+
if (this.enabled && !this._hasImage) {
|
|
48
|
+
(_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.click();
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
this.handleImageClick = (event) => {
|
|
52
|
+
event.stopPropagation();
|
|
53
|
+
if (this._hasImage && this.value) {
|
|
54
|
+
this._showImagePopup = true;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
this.handlePopupAction = (event) => {
|
|
58
|
+
const action = event.detail;
|
|
59
|
+
if (action === 'CANCEL' || action === 'OK') {
|
|
60
|
+
this.handleClosePopup();
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
this.handleClosePopup = () => {
|
|
64
|
+
this._showImagePopup = false;
|
|
65
|
+
};
|
|
66
|
+
this.enabled = true;
|
|
67
|
+
this.label = undefined;
|
|
68
|
+
this.name = undefined;
|
|
69
|
+
this.value = undefined;
|
|
70
|
+
this.maxFileSize = 20 * 1024 * 1024;
|
|
71
|
+
this.accept = 'image/*';
|
|
72
|
+
this.loading = false;
|
|
73
|
+
this._hasImage = false;
|
|
74
|
+
this._isDragging = false;
|
|
75
|
+
this._showImagePopup = false;
|
|
76
|
+
}
|
|
77
|
+
onValueChange(newValue, oldValue) {
|
|
78
|
+
if (newValue !== oldValue) {
|
|
79
|
+
this._hasImage = !!newValue;
|
|
80
|
+
}
|
|
81
|
+
if (!newValue && this._inputElem) {
|
|
82
|
+
this._inputElem.value = '';
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
addInfoId() {
|
|
86
|
+
if (this._element) {
|
|
87
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
88
|
+
}
|
|
89
|
+
if (this._inputElem) {
|
|
90
|
+
const dataInfo = { id: 'embedded' };
|
|
91
|
+
ElementIDUtils.addIDInfo(this._inputElem, 'image-input', dataInfo);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
processFile(file) {
|
|
95
|
+
// Validar tipo de arquivo
|
|
96
|
+
if (!file.type.startsWith('image/')) {
|
|
97
|
+
const errorMsg = this.i18n('ez-image-input.invalidFileType');
|
|
98
|
+
this.ezError.emit(errorMsg);
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
// Validar tamanho do arquivo
|
|
102
|
+
if (this.maxFileSize && file.size > this.maxFileSize) {
|
|
103
|
+
const maxSizeMB = (this.maxFileSize / (1024 * 1024)).toFixed(2);
|
|
104
|
+
const errorMsg = this.i18n('ez-image-input.fileTooLarge', { maxSize: `${maxSizeMB}MB` });
|
|
105
|
+
this.ezError.emit(errorMsg);
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
// Converter para base64
|
|
109
|
+
const reader = new FileReader();
|
|
110
|
+
reader.onload = (e) => {
|
|
111
|
+
var _a;
|
|
112
|
+
const base64 = (_a = e.target) === null || _a === void 0 ? void 0 : _a.result;
|
|
113
|
+
this.value = base64;
|
|
114
|
+
this._hasImage = true;
|
|
115
|
+
this.ezChange.emit(base64);
|
|
116
|
+
};
|
|
117
|
+
reader.readAsDataURL(file);
|
|
118
|
+
}
|
|
119
|
+
async componentWillLoad() {
|
|
120
|
+
this.i18n = await initI18n();
|
|
121
|
+
this._hasImage = !!this.value;
|
|
122
|
+
}
|
|
123
|
+
componentDidLoad() {
|
|
124
|
+
this.addInfoId();
|
|
125
|
+
}
|
|
126
|
+
render() {
|
|
127
|
+
if (this.loading) {
|
|
128
|
+
return (h(Host, null, h("ez-skeleton", { width: "280px", height: '200px' })));
|
|
129
|
+
}
|
|
130
|
+
const dropZoneLabel = this.label || this.i18n('ez-image-input.defaultLabel');
|
|
131
|
+
return (h(Host, null, h("div", { class: {
|
|
132
|
+
'image-input__container': true,
|
|
133
|
+
'image-input__container--disabled': !this.enabled,
|
|
134
|
+
'image-input__container--dragging': this._isDragging,
|
|
135
|
+
'image-input__container--has-image': this._hasImage
|
|
136
|
+
}, "data-enabled": this.enabled.toString(), "data-has-image": this._hasImage.toString(), onClick: this.handleClickDropZone, onDrop: this.handleDrop, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, role: "button", "aria-label": dropZoneLabel, tabindex: this.enabled ? 0 : -1 }, h("input", { ref: (el) => (this._inputElem = el), type: "file", accept: this.accept, name: this.name, disabled: !this.enabled, onChange: this.handleFileSelect, class: "image-input__file-input", "aria-hidden": "true" }), this._hasImage && this.value ? (h("div", { class: "image-input__preview" }, h("img", { src: this.value, alt: this.i18n('ez-image-input.imageAlt'), class: "image-input__image", onClick: this.handleImageClick }), this.enabled && (h("ez-button", { class: "image-input__remove-button", variant: "primary", type: "button", mode: "icon", size: "small", iconName: "trash-alt", onClick: this.handleRemoveImage, "aria-label": this.i18n('ez-image-input.removeImage'), title: this.i18n('ez-image-input.removeImage') })))) : (h("div", { class: "image-input__dropzone" }, h("ez-icon", { iconName: "image", size: "x-large" }), h("span", { class: "image-input__label" }, dropZoneLabel)))), h("ez-popup", { opened: this._showImagePopup, ezTitle: this.i18n('ez-image-input.imagePreview'), size: "large", heightMode: "auto", onEzPopupAction: this.handlePopupAction, onEzClosePopup: this.handleClosePopup }, h("div", { class: "image-input__popup-content" }, h("img", { src: this.value, alt: this.i18n('ez-image-input.imageAlt'), class: "image-input__popup-image" })))));
|
|
137
|
+
}
|
|
138
|
+
static get is() { return "ez-image-input"; }
|
|
139
|
+
static get encapsulation() { return "shadow"; }
|
|
140
|
+
static get originalStyleUrls() {
|
|
141
|
+
return {
|
|
142
|
+
"$": ["ez-image-input.css"]
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
static get styleUrls() {
|
|
146
|
+
return {
|
|
147
|
+
"$": ["ez-image-input.css"]
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
static get properties() {
|
|
151
|
+
return {
|
|
152
|
+
"enabled": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"mutable": false,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "boolean",
|
|
157
|
+
"resolved": "boolean",
|
|
158
|
+
"references": {}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": true,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": "Define se o componente est\u00E1 habilitado"
|
|
165
|
+
},
|
|
166
|
+
"attribute": "enabled",
|
|
167
|
+
"reflect": false,
|
|
168
|
+
"defaultValue": "true"
|
|
169
|
+
},
|
|
170
|
+
"label": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "string",
|
|
175
|
+
"resolved": "string",
|
|
176
|
+
"references": {}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": true,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": "Label exibido na \u00E1rea de upload"
|
|
183
|
+
},
|
|
184
|
+
"attribute": "label",
|
|
185
|
+
"reflect": false
|
|
186
|
+
},
|
|
187
|
+
"name": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": true,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "Nome do componente"
|
|
200
|
+
},
|
|
201
|
+
"attribute": "name",
|
|
202
|
+
"reflect": false
|
|
203
|
+
},
|
|
204
|
+
"value": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"mutable": true,
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "string",
|
|
209
|
+
"resolved": "string",
|
|
210
|
+
"references": {}
|
|
211
|
+
},
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": true,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": "Valor da imagem em base64"
|
|
217
|
+
},
|
|
218
|
+
"attribute": "value",
|
|
219
|
+
"reflect": false
|
|
220
|
+
},
|
|
221
|
+
"maxFileSize": {
|
|
222
|
+
"type": "number",
|
|
223
|
+
"mutable": false,
|
|
224
|
+
"complexType": {
|
|
225
|
+
"original": "number",
|
|
226
|
+
"resolved": "number",
|
|
227
|
+
"references": {}
|
|
228
|
+
},
|
|
229
|
+
"required": false,
|
|
230
|
+
"optional": true,
|
|
231
|
+
"docs": {
|
|
232
|
+
"tags": [],
|
|
233
|
+
"text": "Define o tamanho m\u00E1ximo do arquivo em bytes (padr\u00E3o: 20MB)"
|
|
234
|
+
},
|
|
235
|
+
"attribute": "max-file-size",
|
|
236
|
+
"reflect": false,
|
|
237
|
+
"defaultValue": "20 * 1024 * 1024"
|
|
238
|
+
},
|
|
239
|
+
"accept": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"mutable": false,
|
|
242
|
+
"complexType": {
|
|
243
|
+
"original": "string",
|
|
244
|
+
"resolved": "string",
|
|
245
|
+
"references": {}
|
|
246
|
+
},
|
|
247
|
+
"required": false,
|
|
248
|
+
"optional": true,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [],
|
|
251
|
+
"text": "Tipos de arquivo aceitos"
|
|
252
|
+
},
|
|
253
|
+
"attribute": "accept",
|
|
254
|
+
"reflect": false,
|
|
255
|
+
"defaultValue": "'image/*'"
|
|
256
|
+
},
|
|
257
|
+
"loading": {
|
|
258
|
+
"type": "boolean",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "boolean",
|
|
262
|
+
"resolved": "boolean",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": true,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": "Define se o componente est\u00E1 em estado de carregamento"
|
|
270
|
+
},
|
|
271
|
+
"attribute": "loading",
|
|
272
|
+
"reflect": false,
|
|
273
|
+
"defaultValue": "false"
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
static get states() {
|
|
278
|
+
return {
|
|
279
|
+
"_hasImage": {},
|
|
280
|
+
"_isDragging": {},
|
|
281
|
+
"_showImagePopup": {}
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
static get events() {
|
|
285
|
+
return [{
|
|
286
|
+
"method": "ezChange",
|
|
287
|
+
"name": "ezChange",
|
|
288
|
+
"bubbles": true,
|
|
289
|
+
"cancelable": true,
|
|
290
|
+
"composed": true,
|
|
291
|
+
"docs": {
|
|
292
|
+
"tags": [],
|
|
293
|
+
"text": "Evento disparado quando uma imagem \u00E9 selecionada"
|
|
294
|
+
},
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "string",
|
|
297
|
+
"resolved": "string",
|
|
298
|
+
"references": {}
|
|
299
|
+
}
|
|
300
|
+
}, {
|
|
301
|
+
"method": "ezError",
|
|
302
|
+
"name": "ezError",
|
|
303
|
+
"bubbles": true,
|
|
304
|
+
"cancelable": true,
|
|
305
|
+
"composed": true,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [],
|
|
308
|
+
"text": "Evento disparado quando ocorre um erro"
|
|
309
|
+
},
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "string",
|
|
312
|
+
"resolved": "string",
|
|
313
|
+
"references": {}
|
|
314
|
+
}
|
|
315
|
+
}];
|
|
316
|
+
}
|
|
317
|
+
static get elementRef() { return "_element"; }
|
|
318
|
+
static get watchers() {
|
|
319
|
+
return [{
|
|
320
|
+
"propName": "value",
|
|
321
|
+
"methodName": "onValueChange"
|
|
322
|
+
}];
|
|
323
|
+
}
|
|
324
|
+
}
|
|
@@ -9,7 +9,7 @@ export class EzRichText {
|
|
|
9
9
|
this.historyIndex = -1;
|
|
10
10
|
this.previewMode = false;
|
|
11
11
|
this.showPreview = true;
|
|
12
|
-
this.value =
|
|
12
|
+
this.value = undefined;
|
|
13
13
|
this.label = undefined;
|
|
14
14
|
this.mode = "regular";
|
|
15
15
|
this.enabled = true;
|
|
@@ -313,8 +313,7 @@ export class EzRichText {
|
|
|
313
313
|
"text": "Define o valor HTML do campo."
|
|
314
314
|
},
|
|
315
315
|
"attribute": "value",
|
|
316
|
-
"reflect": true
|
|
317
|
-
"defaultValue": "''"
|
|
316
|
+
"reflect": true
|
|
318
317
|
},
|
|
319
318
|
"label": {
|
|
320
319
|
"type": "string",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { ElementIDUtils, MaskFormatter } from
|
|
2
|
+
import { ElementIDUtils, MaskFormatter as CoreMaskFormatter, MaskFormatter } from '@sankhyalabs/core';
|
|
3
3
|
export class EzTextInput {
|
|
4
4
|
constructor() {
|
|
5
5
|
this._isOverflowing = false;
|
|
@@ -113,6 +113,42 @@ export class EzTextInput {
|
|
|
113
113
|
this._inputElem.classList.add("input__slim--noborder");
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
+
buildMaskFormatter() {
|
|
117
|
+
if (this.mask) {
|
|
118
|
+
const maskToBuilder = this.getMaskToBuilder();
|
|
119
|
+
this._maskFormatter = maskToBuilder ? new MaskFormatter(maskToBuilder) : undefined;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
getMaskToBuilder() {
|
|
123
|
+
if (this.mask === 'cgc_cpf') {
|
|
124
|
+
return this.getCGCCpfMask();
|
|
125
|
+
}
|
|
126
|
+
if (this.mask === 'phone') {
|
|
127
|
+
return this.getPhoneMask();
|
|
128
|
+
}
|
|
129
|
+
if (this.mask in CoreMaskFormatter.DEFAULT_MASKS) {
|
|
130
|
+
return CoreMaskFormatter.DEFAULT_MASKS[this.mask];
|
|
131
|
+
}
|
|
132
|
+
return this.mask;
|
|
133
|
+
}
|
|
134
|
+
getPhoneMask() {
|
|
135
|
+
if (this.value && this.value.length === 10) {
|
|
136
|
+
return MaskFormatter.DEFAULT_MASKS ? MaskFormatter.DEFAULT_MASKS.phone : undefined;
|
|
137
|
+
}
|
|
138
|
+
if (this.value && this.value.length === 11) {
|
|
139
|
+
return MaskFormatter.DEFAULT_MASKS ? MaskFormatter.DEFAULT_MASKS.phone_mobile : undefined;
|
|
140
|
+
}
|
|
141
|
+
return undefined;
|
|
142
|
+
}
|
|
143
|
+
getCGCCpfMask() {
|
|
144
|
+
if (this.value && this.value.length === 11) {
|
|
145
|
+
return MaskFormatter.DEFAULT_MASKS ? MaskFormatter.DEFAULT_MASKS.cpf : undefined;
|
|
146
|
+
}
|
|
147
|
+
if (this.value && this.value.length === 14) {
|
|
148
|
+
return MaskFormatter.DEFAULT_MASKS ? MaskFormatter.DEFAULT_MASKS.cnpj : undefined;
|
|
149
|
+
}
|
|
150
|
+
return undefined;
|
|
151
|
+
}
|
|
116
152
|
//---------------------------------------------
|
|
117
153
|
// Public methods
|
|
118
154
|
//---------------------------------------------
|
|
@@ -336,6 +372,7 @@ export class EzTextInput {
|
|
|
336
372
|
}
|
|
337
373
|
componentDidRender() {
|
|
338
374
|
this.adjustFloatingLabel();
|
|
375
|
+
this.buildMaskFormatter();
|
|
339
376
|
}
|
|
340
377
|
render() {
|
|
341
378
|
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
@@ -250,8 +250,8 @@ export default class DataBinder {
|
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
bindSearchOptionsLoader(fieldName, field) {
|
|
253
|
-
if ((field.nodeName === "EZ-SEARCH" || field.nodeName === "EZ-SEARCH-PLUS") && field["optionLoader"] == undefined) {
|
|
254
|
-
const isSearchPlus = field.nodeName === "EZ-SEARCH-PLUS";
|
|
253
|
+
if ((field.nodeName === "EZ-SEARCH" || field.nodeName === "EZ-CLASSIC-SEARCH" || field.nodeName === "EZ-SEARCH-PLUS" || field.nodeName === "EZ-CLASSIC-SEARCH-PLUS") && field["optionLoader"] == undefined) {
|
|
254
|
+
const isSearchPlus = (field.nodeName === "EZ-SEARCH-PLUS" || field.nodeName === "EZ-CLASSIC-SEARCH-PLUS");
|
|
255
255
|
const loader = isSearchPlus ? ApplicationContext.getContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__") : ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
|
|
256
256
|
if (loader) {
|
|
257
257
|
field["optionLoader"] = (arg, ctxOptions) => {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export var FormLayout;
|
|
2
2
|
(function (FormLayout) {
|
|
3
3
|
FormLayout[FormLayout["CASCADE"] = 0] = "CASCADE";
|
|
4
|
-
FormLayout[FormLayout["
|
|
4
|
+
FormLayout[FormLayout["CLASSIC_CASCADE"] = 1] = "CLASSIC_CASCADE";
|
|
5
|
+
FormLayout[FormLayout["SIDE_BY_SIDE"] = 2] = "SIDE_BY_SIDE";
|
|
6
|
+
FormLayout[FormLayout["CLASSIC_SIDE_BY_SIDE"] = 3] = "CLASSIC_SIDE_BY_SIDE";
|
|
5
7
|
})(FormLayout || (FormLayout = {}));
|
|
@@ -30,6 +30,14 @@ export default {
|
|
|
30
30
|
uploadErrorTitle: "Uploading file",
|
|
31
31
|
uploadingMessage: "Files are being uploaded. Please wait for completion or cancel the upload."
|
|
32
32
|
},
|
|
33
|
+
"ez-image-input": {
|
|
34
|
+
defaultLabel: "Upload Image",
|
|
35
|
+
imageAlt: "Uploaded image",
|
|
36
|
+
removeImage: "Remove image",
|
|
37
|
+
invalidFileType: "The selected file is not a valid image.",
|
|
38
|
+
fileTooLarge: "The image must be less than {{maxSize}}.",
|
|
39
|
+
imagePreview: "Image Preview",
|
|
40
|
+
},
|
|
33
41
|
"ez-calendar": {
|
|
34
42
|
month: {
|
|
35
43
|
0: "January",
|
|
@@ -252,6 +260,16 @@ export default {
|
|
|
252
260
|
optionLoaderNotDefined: "optionLoader not defined",
|
|
253
261
|
defaultCodeLabel: "Code",
|
|
254
262
|
},
|
|
263
|
+
"ez-classic-search": {
|
|
264
|
+
emptyList: "No results found",
|
|
265
|
+
emptySearch: "No results for {{field}} found",
|
|
266
|
+
showMore: "Show more"
|
|
267
|
+
},
|
|
268
|
+
"ez-classic-search-plus": {
|
|
269
|
+
emptyList: "No results found",
|
|
270
|
+
optionLoaderNotDefined: "optionLoader not defined",
|
|
271
|
+
defaultCodeLabel: "Code",
|
|
272
|
+
},
|
|
255
273
|
"ez-sortable-list": {
|
|
256
274
|
emptyMessage: "No items in the list",
|
|
257
275
|
entityLabel: "item",
|
|
@@ -30,6 +30,14 @@ export default {
|
|
|
30
30
|
uploadErrorTitle: "Subiendo archivo",
|
|
31
31
|
uploadingMessage: "Se están subiendo archivos. Por favor, espere a que se complete o cancele la subida.",
|
|
32
32
|
},
|
|
33
|
+
"ez-image-input": {
|
|
34
|
+
defaultLabel: "Subir Imagen",
|
|
35
|
+
imageAlt: "Imagen cargada",
|
|
36
|
+
removeImage: "Eliminar imagen",
|
|
37
|
+
invalidFileType: "El archivo seleccionado no es una imagen válida.",
|
|
38
|
+
fileTooLarge: "La imagen debe tener menos de {{maxSize}}.",
|
|
39
|
+
imagePreview: "Vista Previa de Imagen",
|
|
40
|
+
},
|
|
33
41
|
"ez-calendar": {
|
|
34
42
|
month: {
|
|
35
43
|
0: "Enero",
|
|
@@ -252,6 +260,16 @@ export default {
|
|
|
252
260
|
optionLoaderNotDefined: "optionLoader no definido",
|
|
253
261
|
defaultCodeLabel: "Cód.",
|
|
254
262
|
},
|
|
263
|
+
"ez-classic-search": {
|
|
264
|
+
emptyList: "No se encontraron resultados",
|
|
265
|
+
emptySearch: "No se encontraron resultados de {{field}}",
|
|
266
|
+
showMore: "Mostrar más"
|
|
267
|
+
},
|
|
268
|
+
"ez-classic-search-plus": {
|
|
269
|
+
emptyList: "No se encontraron resultados",
|
|
270
|
+
optionLoaderNotDefined: "optionLoader no definido",
|
|
271
|
+
defaultCodeLabel: "Cód.",
|
|
272
|
+
},
|
|
255
273
|
"ez-sortable-list": {
|
|
256
274
|
emptyMessage: "No hay elementos en la lista",
|
|
257
275
|
entityLabel: "elemento",
|
|
@@ -30,6 +30,14 @@ export default {
|
|
|
30
30
|
uploadErrorTitle: "Enviando arquivo",
|
|
31
31
|
uploadingMessage: "Há arquivos sendo enviados. Por favor aguarde a conclusão ou cancele o envio.",
|
|
32
32
|
},
|
|
33
|
+
"ez-image-input": {
|
|
34
|
+
defaultLabel: "Enviar Imagem",
|
|
35
|
+
imageAlt: "Imagem carregada",
|
|
36
|
+
removeImage: "Remover imagem",
|
|
37
|
+
invalidFileType: "O arquivo selecionado não é uma imagem válida.",
|
|
38
|
+
fileTooLarge: "A imagem deve ter menos de {{maxSize}}.",
|
|
39
|
+
imagePreview: "Visualizar Imagem",
|
|
40
|
+
},
|
|
33
41
|
"ez-calendar": {
|
|
34
42
|
month: {
|
|
35
43
|
0: "Janeiro",
|
|
@@ -252,6 +260,16 @@ export default {
|
|
|
252
260
|
optionLoaderNotDefined: "optionLoader não definido",
|
|
253
261
|
defaultCodeLabel: "Cód.",
|
|
254
262
|
},
|
|
263
|
+
"ez-classic-search": {
|
|
264
|
+
emptyList: "Nenhum resultado encontrado",
|
|
265
|
+
emptySearch: "Nenhum resultado de {{field}} encontrado",
|
|
266
|
+
showMore: "Mostrar mais"
|
|
267
|
+
},
|
|
268
|
+
"ez-classic-search-plus": {
|
|
269
|
+
emptyList: "Nenhum resultado encontrado",
|
|
270
|
+
optionLoaderNotDefined: "optionLoader não definido",
|
|
271
|
+
defaultCodeLabel: "Cód.",
|
|
272
|
+
},
|
|
255
273
|
"ez-sortable-list": {
|
|
256
274
|
emptyMessage: "Nenhum item na lista",
|
|
257
275
|
entityLabel: "item",
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import type { Components, JSX } from "../types/components";
|
|
4
4
|
|
|
5
|
+
interface ClassicSearchList extends Components.ClassicSearchList, HTMLElement {}
|
|
6
|
+
export const ClassicSearchList: {
|
|
7
|
+
prototype: ClassicSearchList;
|
|
8
|
+
new (): ClassicSearchList;
|
|
9
|
+
};
|
|
10
|
+
|
|
5
11
|
interface EzActionsButton extends Components.EzActionsButton, HTMLElement {}
|
|
6
12
|
export const EzActionsButton: {
|
|
7
13
|
prototype: EzActionsButton;
|
|
@@ -86,18 +92,60 @@ export const EzClassicComboBox: {
|
|
|
86
92
|
new (): EzClassicComboBox;
|
|
87
93
|
};
|
|
88
94
|
|
|
95
|
+
interface EzClassicDateInput extends Components.EzClassicDateInput, HTMLElement {}
|
|
96
|
+
export const EzClassicDateInput: {
|
|
97
|
+
prototype: EzClassicDateInput;
|
|
98
|
+
new (): EzClassicDateInput;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
interface EzClassicDateTimeInput extends Components.EzClassicDateTimeInput, HTMLElement {}
|
|
102
|
+
export const EzClassicDateTimeInput: {
|
|
103
|
+
prototype: EzClassicDateTimeInput;
|
|
104
|
+
new (): EzClassicDateTimeInput;
|
|
105
|
+
};
|
|
106
|
+
|
|
89
107
|
interface EzClassicInput extends Components.EzClassicInput, HTMLElement {}
|
|
90
108
|
export const EzClassicInput: {
|
|
91
109
|
prototype: EzClassicInput;
|
|
92
110
|
new (): EzClassicInput;
|
|
93
111
|
};
|
|
94
112
|
|
|
113
|
+
interface EzClassicNumberInput extends Components.EzClassicNumberInput, HTMLElement {}
|
|
114
|
+
export const EzClassicNumberInput: {
|
|
115
|
+
prototype: EzClassicNumberInput;
|
|
116
|
+
new (): EzClassicNumberInput;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
interface EzClassicSearch extends Components.EzClassicSearch, HTMLElement {}
|
|
120
|
+
export const EzClassicSearch: {
|
|
121
|
+
prototype: EzClassicSearch;
|
|
122
|
+
new (): EzClassicSearch;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
interface EzClassicSearchPlus extends Components.EzClassicSearchPlus, HTMLElement {}
|
|
126
|
+
export const EzClassicSearchPlus: {
|
|
127
|
+
prototype: EzClassicSearchPlus;
|
|
128
|
+
new (): EzClassicSearchPlus;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
interface EzClassicSearchResultList extends Components.EzClassicSearchResultList, HTMLElement {}
|
|
132
|
+
export const EzClassicSearchResultList: {
|
|
133
|
+
prototype: EzClassicSearchResultList;
|
|
134
|
+
new (): EzClassicSearchResultList;
|
|
135
|
+
};
|
|
136
|
+
|
|
95
137
|
interface EzClassicTextArea extends Components.EzClassicTextArea, HTMLElement {}
|
|
96
138
|
export const EzClassicTextArea: {
|
|
97
139
|
prototype: EzClassicTextArea;
|
|
98
140
|
new (): EzClassicTextArea;
|
|
99
141
|
};
|
|
100
142
|
|
|
143
|
+
interface EzClassicTimeInput extends Components.EzClassicTimeInput, HTMLElement {}
|
|
144
|
+
export const EzClassicTimeInput: {
|
|
145
|
+
prototype: EzClassicTimeInput;
|
|
146
|
+
new (): EzClassicTimeInput;
|
|
147
|
+
};
|
|
148
|
+
|
|
101
149
|
interface EzCollapsibleBox extends Components.EzCollapsibleBox, HTMLElement {}
|
|
102
150
|
export const EzCollapsibleBox: {
|
|
103
151
|
prototype: EzCollapsibleBox;
|
|
@@ -206,6 +254,12 @@ export const EzIcon: {
|
|
|
206
254
|
new (): EzIcon;
|
|
207
255
|
};
|
|
208
256
|
|
|
257
|
+
interface EzImageInput extends Components.EzImageInput, HTMLElement {}
|
|
258
|
+
export const EzImageInput: {
|
|
259
|
+
prototype: EzImageInput;
|
|
260
|
+
new (): EzImageInput;
|
|
261
|
+
};
|
|
262
|
+
|
|
209
263
|
interface EzLinkBuilder extends Components.EzLinkBuilder, HTMLElement {}
|
|
210
264
|
export const EzLinkBuilder: {
|
|
211
265
|
prototype: EzLinkBuilder;
|