@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-132280.3 → 0.0.0-bugfix-dev-KB-157120.0
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-006ca96f.js → ApplicationUtils-88dfe345.js} +1 -1
- package/dist/cjs/{app-globals-5cb12916.js → app-globals-c1d07d68.js} +1 -1
- package/dist/cjs/{classic-search-list_7.cjs.entry.js → classic-search-list_8.cjs.entry.js} +204 -6
- package/dist/cjs/ez-actions-button.cjs.entry.js +3 -3
- 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 +5 -3
- package/dist/cjs/ez-classic-date-input.cjs.entry.js +3 -3
- package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-classic-input.cjs.entry.js +50 -4
- package/dist/cjs/ez-classic-number-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-classic-search-plus.cjs.entry.js +27 -14
- package/dist/cjs/ez-classic-search.cjs.entry.js +3 -3
- package/dist/cjs/ez-classic-text-area.cjs.entry.js +13 -2
- package/dist/cjs/ez-classic-time-input.cjs.entry.js +5 -4
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -3
- package/dist/cjs/ez-combo-box.cjs.entry.js +8 -3
- 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 +2 -2
- package/dist/cjs/ez-empty-card.cjs.entry.js +2 -2
- 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 +23 -4
- package/dist/cjs/ez-form.cjs.entry.js +66 -44
- package/dist/cjs/ez-grid-pagination.cjs.entry.js +227 -0
- package/dist/cjs/ez-grid-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +236 -173
- 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_5.cjs.entry.js +675 -0
- 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.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +5 -6
- 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-record-navigation.cjs.entry.js +121 -0
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +82 -15
- package/dist/cjs/ez-search-plus.cjs.entry.js +26 -12
- package/dist/cjs/ez-search-result-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-search.cjs.entry.js +12 -5
- 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 +100 -115
- package/dist/cjs/ez-spinner.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-button.cjs.entry.js +5 -5
- package/dist/cjs/ez-split-item.cjs.entry.js +3 -3
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +210 -62
- 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 +22 -16
- 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 +47 -9
- 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 +10 -4
- package/dist/cjs/{floating-ui.dom.esm-f4d87617.js → floating-ui.dom.esm-9c8bfebb.js} +258 -119
- package/dist/cjs/{index-350d0fa0.js → index-9739c242.js} +91 -30
- package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +16 -19
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{search-column-46d02656.js → search-column-6e90fb19.js} +19 -10
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +21 -2
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +1 -1
- package/dist/collection/components/ez-classic-input/ez-classic-input.js +47 -2
- package/dist/collection/components/ez-classic-input/utils/maskFormatter.js +2 -1
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +22 -0
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +26 -11
- package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.js +32 -1
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +3 -2
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
- package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
- package/dist/collection/components/ez-form-view/ez-form-view.css +19 -5
- package/dist/collection/components/ez-form-view/ez-form-view.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js +17 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +163 -27
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +8 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +24 -0
- package/dist/collection/components/ez-grid/ez-grid.css +5 -60
- package/dist/collection/components/ez-grid/ez-grid.js +52 -150
- package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +1 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css +10 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -1
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +1 -1
- package/dist/collection/components/ez-grid/utils/index.js +1 -0
- package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +111 -0
- package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +410 -0
- package/dist/collection/components/ez-icon/ez-icon.css +1153 -1146
- package/dist/collection/components/ez-image-input/ez-image-input.css +24 -8
- package/dist/collection/components/ez-image-input/ez-image-input.js +6 -1
- package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.css +221 -0
- package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js +555 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +27 -6
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +66 -10
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +20 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +36 -2
- package/dist/collection/components/ez-popup/ez-popup.js +3 -4
- package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
- package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
- package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
- package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
- package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
- package/dist/collection/components/ez-search/ez-search.css +4 -0
- package/dist/collection/components/ez-search/ez-search.js +22 -1
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +38 -10
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
- package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
- package/dist/collection/components/ez-split-button/ez-split-button.js +2 -2
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +29 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +254 -62
- package/dist/collection/components/ez-text-input/ez-text-input.js +21 -15
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +45 -7
- package/dist/collection/utils/form/FormMetadata.js +62 -40
- package/dist/collection/utils/i18n/locales/en-us.js +27 -4
- package/dist/collection/utils/i18n/locales/es-es.js +27 -4
- package/dist/collection/utils/i18n/locales/pt-br.js +27 -4
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +14 -2
- package/dist/collection/utils/searchColumn/search-column.js +2 -5
- package/dist/custom-elements/index.d.ts +18 -0
- package/dist/custom-elements/index.js +1872 -634
- package/dist/esm/{ApplicationUtils-0c5cb207.js → ApplicationUtils-f7721533.js} +1 -1
- package/dist/esm/{app-globals-1db10325.js → app-globals-6e258867.js} +1 -1
- package/dist/esm/{classic-search-list_7.entry.js → classic-search-list_8.entry.js} +204 -7
- package/dist/esm/ez-actions-button.entry.js +3 -3
- 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 +5 -3
- package/dist/esm/ez-classic-date-input.entry.js +3 -3
- package/dist/esm/ez-classic-date-time-input.entry.js +2 -2
- package/dist/esm/ez-classic-input.entry.js +50 -4
- package/dist/esm/ez-classic-number-input.entry.js +2 -2
- package/dist/esm/ez-classic-search-plus.entry.js +27 -14
- package/dist/esm/ez-classic-search.entry.js +3 -3
- package/dist/esm/ez-classic-text-area.entry.js +13 -2
- package/dist/esm/ez-classic-time-input.entry.js +5 -4
- package/dist/esm/ez-collapsible-box.entry.js +3 -3
- package/dist/esm/ez-combo-box.entry.js +8 -3
- 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 +2 -2
- package/dist/esm/ez-empty-card.entry.js +2 -2
- 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 +23 -4
- package/dist/esm/ez-form.entry.js +66 -44
- package/dist/esm/ez-grid-pagination.entry.js +223 -0
- package/dist/esm/ez-grid-view.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +237 -174
- 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_5.entry.js +667 -0
- package/dist/esm/ez-number-input.entry.js +2 -2
- package/dist/esm/ez-pagination.entry.js +2 -2
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +5 -6
- package/dist/esm/ez-progress-bar.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-record-navigation.entry.js +117 -0
- package/dist/esm/ez-rich-toolbar-item.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +82 -15
- package/dist/esm/ez-search-plus.entry.js +26 -12
- package/dist/esm/ez-search-result-list.entry.js +2 -2
- package/dist/esm/ez-search.entry.js +12 -5
- 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 +100 -115
- package/dist/esm/ez-spinner.entry.js +2 -2
- package/dist/esm/ez-split-button.entry.js +5 -5
- package/dist/esm/ez-split-item.entry.js +3 -3
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +210 -62
- 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 +22 -16
- 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 +47 -9
- 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 +10 -4
- package/dist/esm/{floating-ui.dom.esm-ad30f2f0.js → floating-ui.dom.esm-0c464cef.js} +258 -120
- package/dist/esm/{index-225aa0c3.js → index-9e6dab5b.js} +91 -30
- package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +17 -19
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{search-column-2da15ef5.js → search-column-7d7f0331.js} +19 -10
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-01e652c6.entry.js +1 -0
- package/dist/ezui/p-0592535f.entry.js +1 -0
- package/dist/ezui/{p-3453dad5.entry.js → p-063bb342.entry.js} +1 -1
- package/dist/ezui/{p-75e650ff.entry.js → p-0ac8bd66.entry.js} +1 -1
- package/dist/ezui/p-0d80e3ec.entry.js +1 -0
- package/dist/ezui/{p-e039e049.entry.js → p-108503ed.entry.js} +1 -1
- package/dist/ezui/{p-29f0de90.entry.js → p-1166b2d5.entry.js} +1 -1
- package/dist/ezui/p-1222e1b6.entry.js +1 -0
- package/dist/ezui/p-15873627.js +1 -0
- package/dist/ezui/p-178cb9df.entry.js +1 -0
- package/dist/ezui/p-1b1b0af3.entry.js +1 -0
- package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-cf33bc48.entry.js → p-20c024f7.entry.js} +1 -1
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/p-2856c545.entry.js +1 -0
- package/dist/ezui/{p-9d515e5b.entry.js → p-2ae127bc.entry.js} +1 -1
- package/dist/ezui/{p-05bcbe61.entry.js → p-2ebd7383.entry.js} +1 -1
- package/dist/ezui/p-3e84df1c.entry.js +1 -0
- package/dist/ezui/p-3fae7072.entry.js +1 -0
- package/dist/ezui/{p-f7ca8634.entry.js → p-411c0222.entry.js} +1 -1
- package/dist/ezui/p-42e1e733.js +1 -0
- package/dist/ezui/{p-2fa490f1.entry.js → p-45245c32.entry.js} +1 -1
- package/dist/ezui/{p-534209bf.entry.js → p-46b1b2ac.entry.js} +1 -1
- package/dist/ezui/{p-12cc95dc.entry.js → p-54af1af0.entry.js} +1 -1
- package/dist/ezui/p-55434123.entry.js +1 -0
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/{p-51e34317.entry.js → p-6369a0cd.entry.js} +1 -1
- package/dist/ezui/p-6791d05f.entry.js +1 -0
- package/dist/ezui/{p-7fe5a9eb.entry.js → p-6d46f862.entry.js} +46 -46
- package/dist/ezui/{p-0b531233.entry.js → p-6d596a5a.entry.js} +1 -1
- package/dist/ezui/p-6da0dc70.entry.js +1 -0
- package/dist/ezui/{p-1723f728.entry.js → p-6f77a359.entry.js} +1 -1
- package/dist/ezui/p-72e77b45.entry.js +1 -0
- package/dist/ezui/{p-636ea910.entry.js → p-73461028.entry.js} +1 -1
- package/dist/ezui/{p-a6ea8da3.entry.js → p-7424d520.entry.js} +1 -1
- package/dist/ezui/{p-9fb7131e.entry.js → p-7a07c50f.entry.js} +1 -1
- package/dist/ezui/p-7b078125.entry.js +1 -0
- package/dist/ezui/p-7df45688.entry.js +1 -0
- package/dist/ezui/{p-e195eaad.entry.js → p-7f792043.entry.js} +1 -1
- package/dist/ezui/{p-e963cb3f.entry.js → p-881abc22.entry.js} +1 -1
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/{p-78e975b4.entry.js → p-91c9d50e.entry.js} +1 -1
- package/dist/ezui/{p-05e68ab3.entry.js → p-93e1c917.entry.js} +1 -1
- package/dist/ezui/{p-82e1d7fc.entry.js → p-99556756.entry.js} +1 -1
- package/dist/ezui/{p-0ba284cd.entry.js → p-9bd78d39.entry.js} +1 -1
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/{p-bc693db6.entry.js → p-a0bf1fc7.entry.js} +1 -1
- package/dist/ezui/p-a11e4e8e.entry.js +1 -0
- package/dist/ezui/{p-9bcfa689.entry.js → p-a3075f52.entry.js} +1 -1
- package/dist/ezui/{p-f26b97e9.entry.js → p-a3ada561.entry.js} +1 -1
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/p-a9ab6cb9.entry.js +1 -0
- package/dist/ezui/{p-9825c1d2.js → p-ad5e263d.js} +1 -1
- package/dist/ezui/{p-d57ea090.entry.js → p-b06294c9.entry.js} +1 -1
- package/dist/ezui/{p-4a876b8b.entry.js → p-b50289bb.entry.js} +1 -1
- package/dist/ezui/p-b66ae5c5.entry.js +1 -0
- package/dist/ezui/{p-e0380234.entry.js → p-b8cd501a.entry.js} +1 -1
- package/dist/ezui/p-b986da95.entry.js +7 -0
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/{p-0820f8c3.entry.js → p-c25a4d30.entry.js} +1 -1
- package/dist/ezui/{p-55a9e4ba.entry.js → p-c37fb359.entry.js} +1 -1
- package/dist/ezui/{p-e0fd2ce5.entry.js → p-cb00863d.entry.js} +1 -1
- package/dist/ezui/{p-181cb82f.entry.js → p-d5684cdc.entry.js} +1 -1
- package/dist/ezui/{p-a9432878.entry.js → p-d6742c1e.entry.js} +1 -1
- package/dist/ezui/{p-770cf2b8.entry.js → p-d6f50207.entry.js} +1 -1
- package/dist/ezui/{p-458027b5.entry.js → p-d70805e4.entry.js} +1 -1
- package/dist/ezui/p-d81a15fc.entry.js +1 -0
- package/dist/ezui/p-d8b69419.entry.js +1 -0
- package/dist/ezui/p-d8cc640d.entry.js +1 -0
- package/dist/ezui/p-de14fe07.js +1 -0
- package/dist/ezui/p-df6173c8.entry.js +1 -0
- package/dist/ezui/{p-be2e39c5.entry.js → p-dfced8c7.entry.js} +1 -1
- package/dist/ezui/{p-e275353b.entry.js → p-e3d6b544.entry.js} +1 -1
- package/dist/ezui/p-e63a0479.js +1 -0
- package/dist/ezui/{p-fe0bca65.entry.js → p-e692c2a7.entry.js} +1 -1
- package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
- package/dist/ezui/{p-e9b409c1.entry.js → p-e7a7c594.entry.js} +1 -1
- package/dist/ezui/{p-b21efe83.entry.js → p-e8c57463.entry.js} +1 -1
- package/dist/ezui/{p-75443a91.entry.js → p-e8cd003b.entry.js} +1 -1
- package/dist/ezui/p-ed790867.entry.js +1 -0
- package/dist/ezui/p-f2e0acf5.entry.js +1 -0
- package/dist/ezui/{p-980f1f18.entry.js → p-f34ec732.entry.js} +1 -1
- package/dist/ezui/{p-f32d5a82.entry.js → p-f498f6b5.entry.js} +1 -1
- package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
- package/dist/ezui/{p-2c123fdf.entry.js → p-fb27b98d.entry.js} +1 -1
- package/dist/ezui/{p-d3aca6aa.entry.js → p-fc11f5b9.entry.js} +1 -1
- package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +2 -0
- package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +6 -0
- package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +3 -0
- package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +3 -0
- package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +16 -0
- package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +2 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
- package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +3 -0
- package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
- package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +75 -0
- package/dist/types/components/ez-image-input/ez-image-input.d.ts +1 -0
- package/dist/types/components/ez-multi-select-input/ez-multi-select-input.d.ts +119 -0
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +8 -0
- package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +7 -0
- package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +9 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +1 -0
- package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +43 -0
- package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +4 -0
- package/dist/types/components/ez-scroller/ez-scroller.d.ts +16 -2
- package/dist/types/components/ez-search/ez-search.d.ts +4 -0
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +6 -1
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +41 -20
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -0
- package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +2 -0
- package/dist/types/components.d.ts +407 -9
- package/dist/types/utils/i18n/locales/en-us.d.ts +26 -3
- package/dist/types/utils/i18n/locales/es-es.d.ts +26 -3
- package/dist/types/utils/i18n/locales/pt-br.d.ts +26 -3
- package/dist/types/utils/i18n/translations.d.ts +78 -9
- package/package.json +5 -6
- package/react/components.d.ts +3 -0
- package/react/components.js +3 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -194
- package/dist/cjs/ez-popover-core.cjs.entry.js +0 -211
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +0 -243
- package/dist/esm/ez-multi-selection-list.entry.js +0 -190
- package/dist/esm/ez-popover-core.entry.js +0 -207
- package/dist/esm/ez-popover-plus_3.entry.js +0 -237
- package/dist/ezui/p-06f1b8e4.entry.js +0 -1
- package/dist/ezui/p-0d393a5d.entry.js +0 -1
- package/dist/ezui/p-14d6aeb8.entry.js +0 -1
- package/dist/ezui/p-169d460d.entry.js +0 -1
- package/dist/ezui/p-24993171.entry.js +0 -7
- package/dist/ezui/p-27421015.entry.js +0 -1
- package/dist/ezui/p-27c8a9b7.entry.js +0 -1
- package/dist/ezui/p-2a806303.js +0 -1
- package/dist/ezui/p-34d596a3.entry.js +0 -1
- package/dist/ezui/p-35e3715c.entry.js +0 -1
- package/dist/ezui/p-4d909730.entry.js +0 -1
- package/dist/ezui/p-4df2edb5.entry.js +0 -1
- package/dist/ezui/p-61c10e02.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-71b341cc.entry.js +0 -1
- package/dist/ezui/p-75e8862c.entry.js +0 -1
- package/dist/ezui/p-81a98a7c.entry.js +0 -1
- package/dist/ezui/p-87739608.entry.js +0 -1
- package/dist/ezui/p-892e7326.entry.js +0 -1
- package/dist/ezui/p-8f7373ab.entry.js +0 -1
- package/dist/ezui/p-986044d1.entry.js +0 -1
- package/dist/ezui/p-c178730b.js +0 -1
- package/dist/ezui/p-c754774e.entry.js +0 -1
- package/dist/ezui/p-c96e536d.entry.js +0 -1
- package/dist/ezui/p-ce2614fc.entry.js +0 -1
- package/dist/ezui/p-dc9781b3.entry.js +0 -1
- package/dist/ezui/p-e94d3af5.entry.js +0 -1
- package/dist/ezui/p-f0425f87.entry.js +0 -1
- package/dist/ezui/p-f1b54699.entry.js +0 -1
- package/dist/ezui/p-ff4312d5.js +0 -1
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils, StringUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
|
-
const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;background-color:unset;min-width:100px;max-width:260px;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Roboto\");font-size:var(--title--small, 14px);flex-shrink:0;margin-bottom:var(--space--extra-small, 3px)}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active ez-icon{--ez-icon--color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top
|
|
4
|
+
const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;background-color:unset;min-width:100px;max-width:260px;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Roboto\");font-size:var(--title--small, 14px);flex-shrink:0;margin-bottom:var(--space--extra-small, 3px)}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active ez-icon{--ez-icon--color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.is-disabled,.tab:disabled{cursor:not-allowed;opacity:0.5;color:var(--text--disabled, #a0a7b4);pointer-events:none}.is-disabled ez-icon{--ez-icon--color:var(--text--disabled, #a0a7b4)}.is-reorderable:not(.is-disabled){cursor:grab}.is-reorderable:not(.is-disabled):active{cursor:grabbing}.is-dragging{opacity:0.4}.is-drag-over{box-shadow:inset 2px 0 0 0 var(--color--primary, #008561)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:-2px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}.left-icon{padding-right:var(--space--small)}.right-icon{padding-left:var(--space--small)}";
|
|
5
5
|
|
|
6
6
|
const EzTabselector = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
9
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
10
|
+
this.ezReorder = createEvent(this, "ezReorder", 7);
|
|
10
11
|
this.setFocusedParam = (ev) => {
|
|
11
12
|
if (ev.key === "Enter") {
|
|
13
|
+
if (!this._processedTabs || this._focusedIndex === undefined) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
12
16
|
const selectedTab = this._processedTabs[this._focusedIndex];
|
|
17
|
+
if (selectedTab.disabled) {
|
|
18
|
+
ev.preventDefault();
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
13
21
|
this.handleTabClick(selectedTab);
|
|
14
22
|
ev.preventDefault();
|
|
15
23
|
this.setFocusedTab(selectedTab.index);
|
|
@@ -25,32 +33,19 @@ const EzTabselector = class {
|
|
|
25
33
|
else {
|
|
26
34
|
return;
|
|
27
35
|
}
|
|
36
|
+
const step = operator ? 1 : -1;
|
|
37
|
+
const baseIndex = this._focusedIndex !== undefined ? this._focusedIndex : this.selectedIndex;
|
|
38
|
+
this._focusedIndex = this.findNextEnabledIndex(baseIndex, step);
|
|
28
39
|
if (this._focusedIndex === undefined) {
|
|
29
|
-
|
|
30
|
-
this._focusedIndex = this.selectedIndex !== undefined ? this.selectedIndex - 1 : undefined;
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
this._focusedIndex = this.selectedIndex !== undefined ? this.selectedIndex + 1 : undefined;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
if (operator === false) {
|
|
38
|
-
this._focusedIndex = this._focusedIndex - 1;
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this._focusedIndex = this._focusedIndex + 1;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
if (this._focusedIndex < 0) {
|
|
45
|
-
this._focusedIndex = 0;
|
|
46
|
-
}
|
|
47
|
-
else if (this._focusedIndex > this._processedTabs.length - 1) {
|
|
48
|
-
this._focusedIndex = this._processedTabs.length - 1;
|
|
40
|
+
return;
|
|
49
41
|
}
|
|
50
42
|
this.setFocusedBtn(true, this._focusedIndex);
|
|
51
43
|
this.setFocusedTab(this._focusedIndex);
|
|
52
44
|
}
|
|
53
45
|
else if (ev.key === "Tab" || ev.key === "Escape") {
|
|
46
|
+
if (!this._processedTabs || this.selectedIndex === undefined) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
54
49
|
const currentTab = this._processedTabs[this.selectedIndex];
|
|
55
50
|
this._focusedIndex = undefined;
|
|
56
51
|
this.handleTabClick(currentTab);
|
|
@@ -58,10 +53,12 @@ const EzTabselector = class {
|
|
|
58
53
|
this.setFocusedTab(this.selectedIndex);
|
|
59
54
|
}
|
|
60
55
|
};
|
|
56
|
+
this._dragOverIndex = undefined;
|
|
61
57
|
this._processedTabs = undefined;
|
|
62
58
|
this.selectedIndex = undefined;
|
|
63
59
|
this.selectedTab = undefined;
|
|
64
60
|
this.tabs = undefined;
|
|
61
|
+
this.reorderable = false;
|
|
65
62
|
}
|
|
66
63
|
observeTabs(newValue, oldValue) {
|
|
67
64
|
if (newValue && typeof newValue !== "string") {
|
|
@@ -72,23 +69,72 @@ const EzTabselector = class {
|
|
|
72
69
|
this.processesTabs();
|
|
73
70
|
}
|
|
74
71
|
}
|
|
72
|
+
observeSelectedIndex(newValue, oldValue) {
|
|
73
|
+
if (newValue !== oldValue && newValue !== undefined) {
|
|
74
|
+
this.scrollActiveTabIntoView(newValue);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
observeSelectedTab(newValue, oldValue) {
|
|
78
|
+
if (newValue !== oldValue && newValue !== undefined && this._processedTabs) {
|
|
79
|
+
const idx = this._processedTabs.findIndex(t => t.tabKey === newValue);
|
|
80
|
+
if (idx >= 0) {
|
|
81
|
+
this.scrollActiveTabIntoView(idx);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
75
85
|
async goToTab(tabIndex, silent = false) {
|
|
76
|
-
|
|
77
|
-
this.
|
|
86
|
+
var _a;
|
|
87
|
+
const tab = (_a = this._processedTabs) === null || _a === void 0 ? void 0 : _a.find(tab => tab.index === tabIndex);
|
|
88
|
+
if (tab) {
|
|
89
|
+
this.handleTabClick(tab, !silent);
|
|
90
|
+
}
|
|
78
91
|
}
|
|
79
92
|
handleTabClick(tab, emitChange = true) {
|
|
93
|
+
var _a;
|
|
94
|
+
if (tab.disabled) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
80
97
|
this.selectedIndex = tab.index;
|
|
81
98
|
this._focusedIndex = undefined;
|
|
82
99
|
this.selectedTab = tab.tabKey;
|
|
83
100
|
if (emitChange) {
|
|
84
|
-
this.ezChange.emit(tab);
|
|
101
|
+
(_a = this.ezChange) === null || _a === void 0 ? void 0 : _a.emit(tab);
|
|
85
102
|
}
|
|
86
103
|
this.setFocusedBtn(false, tab.index);
|
|
104
|
+
this.scrollActiveTabIntoView(tab.index);
|
|
87
105
|
}
|
|
88
|
-
|
|
89
|
-
|
|
106
|
+
scrollActiveTabIntoView(index) {
|
|
107
|
+
if (index === undefined) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
requestAnimationFrame(() => {
|
|
111
|
+
const container = this._scrollContainer;
|
|
112
|
+
if (!container) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const tabEl = container.querySelector(`#tab${index}`);
|
|
116
|
+
if (!tabEl) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const containerRect = container.getBoundingClientRect();
|
|
120
|
+
const tabRect = tabEl.getBoundingClientRect();
|
|
121
|
+
const buttonOffset = 48;
|
|
122
|
+
const visibleLeft = containerRect.left + (this._startHidden ? buttonOffset : 0);
|
|
123
|
+
const visibleRight = containerRect.right - (this._endHidden ? buttonOffset : 0);
|
|
124
|
+
let delta = 0;
|
|
125
|
+
if (tabRect.left < visibleLeft) {
|
|
126
|
+
delta = tabRect.left - visibleLeft;
|
|
127
|
+
}
|
|
128
|
+
else if (tabRect.right > visibleRight) {
|
|
129
|
+
delta = tabRect.right - visibleRight;
|
|
130
|
+
}
|
|
131
|
+
if (delta !== 0) {
|
|
132
|
+
container.scrollBy({ left: delta, behavior: "smooth" });
|
|
133
|
+
}
|
|
134
|
+
});
|
|
90
135
|
}
|
|
91
136
|
processesTabs() {
|
|
137
|
+
var _a;
|
|
92
138
|
if (this.tabs) {
|
|
93
139
|
if (Array.isArray(this.tabs)) {
|
|
94
140
|
this._processedTabs = [...this.tabs];
|
|
@@ -96,39 +142,30 @@ const EzTabselector = class {
|
|
|
96
142
|
else {
|
|
97
143
|
this._processedTabs = [];
|
|
98
144
|
this.tabs.split(",").forEach((label) => {
|
|
145
|
+
var _a;
|
|
99
146
|
label = label.trim();
|
|
100
|
-
this._processedTabs.push({ label, tabKey: label, index: this._processedTabs.length });
|
|
147
|
+
(_a = this._processedTabs) === null || _a === void 0 ? void 0 : _a.push({ label, tabKey: label, index: this._processedTabs.length });
|
|
101
148
|
this.buildElementIdTab(this._processedTabs);
|
|
102
149
|
});
|
|
103
150
|
}
|
|
104
151
|
}
|
|
105
|
-
this._hostElem.querySelectorAll("ez-tab").forEach((elem) => {
|
|
106
|
-
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
const
|
|
152
|
+
(_a = this._hostElem) === null || _a === void 0 ? void 0 : _a.querySelectorAll("ez-tab").forEach((elem) => {
|
|
153
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
154
|
+
const tabKey = (_a = elem.getAttribute("tabKey")) !== null && _a !== void 0 ? _a : 'tab';
|
|
155
|
+
const label = (_b = elem.getAttribute("label")) !== null && _b !== void 0 ? _b : 'tab';
|
|
156
|
+
const leftIcon = (_c = elem.getAttribute("leftIcon")) !== null && _c !== void 0 ? _c : undefined;
|
|
157
|
+
const rightIcon = (_d = elem.getAttribute("rightIcon")) !== null && _d !== void 0 ? _d : undefined;
|
|
158
|
+
const disabled = elem.hasAttribute("disabled");
|
|
159
|
+
const tab = { label, tabKey, leftIcon, rightIcon, disabled, index: (_f = (_e = this._processedTabs) === null || _e === void 0 ? void 0 : _e.length) !== null && _f !== void 0 ? _f : 0 };
|
|
111
160
|
const content = elem.firstChild;
|
|
112
161
|
if (content) {
|
|
113
162
|
content.setAttribute("slot", "tab" + tab.index);
|
|
114
|
-
this._hostElem.appendChild(content);
|
|
163
|
+
(_g = this._hostElem) === null || _g === void 0 ? void 0 : _g.appendChild(content);
|
|
115
164
|
}
|
|
116
|
-
this._processedTabs.push(tab);
|
|
165
|
+
(_h = this._processedTabs) === null || _h === void 0 ? void 0 : _h.push(tab);
|
|
117
166
|
this.buildElementIdTab(this._processedTabs);
|
|
118
167
|
});
|
|
119
168
|
}
|
|
120
|
-
componentDidRender() {
|
|
121
|
-
this.updateScroll();
|
|
122
|
-
}
|
|
123
|
-
componentDidLoad() {
|
|
124
|
-
ElementIDUtils.addIDInfo(this._hostElem, "itemsSelector");
|
|
125
|
-
this._hostElem.shadowRoot.querySelectorAll('button[name="tab-button"]').forEach((elem) => {
|
|
126
|
-
var _a;
|
|
127
|
-
const label = (_a = elem.querySelector('span.tab-label')) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
128
|
-
const dataInfo = { id: `${StringUtils.toCamelCase(label)}` };
|
|
129
|
-
ElementIDUtils.addIDInfo(elem, "itemSelector", dataInfo);
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
169
|
handleSlotChange(ev) {
|
|
133
170
|
const slot = ev.target;
|
|
134
171
|
const content = slot.assignedElements()[0];
|
|
@@ -151,10 +188,13 @@ const EzTabselector = class {
|
|
|
151
188
|
lastTab = tab;
|
|
152
189
|
}
|
|
153
190
|
});
|
|
154
|
-
|
|
191
|
+
if (lastTab) {
|
|
192
|
+
container.scrollLeft = lastTab.offsetLeft + lastTab.offsetWidth;
|
|
193
|
+
}
|
|
155
194
|
}
|
|
156
195
|
}
|
|
157
196
|
updateScroll() {
|
|
197
|
+
var _a, _b, _c, _d;
|
|
158
198
|
const container = this._scrollContainer;
|
|
159
199
|
if (container) {
|
|
160
200
|
const { scrollWidth, clientWidth, scrollLeft } = container;
|
|
@@ -162,16 +202,16 @@ const EzTabselector = class {
|
|
|
162
202
|
this._startHidden = container.scrollLeft > 0;
|
|
163
203
|
this._endHidden = remainingScroll > 0;
|
|
164
204
|
if (this._startHidden) {
|
|
165
|
-
this._backwardButton.classList.remove("hidden");
|
|
205
|
+
(_a = this._backwardButton) === null || _a === void 0 ? void 0 : _a.classList.remove("hidden");
|
|
166
206
|
}
|
|
167
207
|
else {
|
|
168
|
-
this._backwardButton.classList.add("hidden");
|
|
208
|
+
(_b = this._backwardButton) === null || _b === void 0 ? void 0 : _b.classList.add("hidden");
|
|
169
209
|
}
|
|
170
210
|
if (this._endHidden) {
|
|
171
|
-
this._forwardButton.classList.remove("hidden");
|
|
211
|
+
(_c = this._forwardButton) === null || _c === void 0 ? void 0 : _c.classList.remove("hidden");
|
|
172
212
|
}
|
|
173
213
|
else {
|
|
174
|
-
this._forwardButton.classList.add("hidden");
|
|
214
|
+
(_d = this._forwardButton) === null || _d === void 0 ? void 0 : _d.classList.add("hidden");
|
|
175
215
|
}
|
|
176
216
|
const classNames = ["", "startHidden", "endHidden", "middle"];
|
|
177
217
|
const currentClass = classNames[Number(this._startHidden) | Number(this._endHidden) << 1];
|
|
@@ -190,44 +230,152 @@ const EzTabselector = class {
|
|
|
190
230
|
this._scrollCallBack = window.setTimeout(() => { this.updateScroll(); }, 200);
|
|
191
231
|
}
|
|
192
232
|
setFocusedTab(index) {
|
|
233
|
+
if (index === undefined) {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
193
236
|
window.clearTimeout(this._scrollCallBackTest);
|
|
194
237
|
this._scrollCallBackTest = window.setTimeout(() => {
|
|
195
|
-
|
|
196
|
-
tabtoscroll.
|
|
238
|
+
var _a;
|
|
239
|
+
const tabtoscroll = (_a = this._scrollContainer) === null || _a === void 0 ? void 0 : _a.querySelector(`#tab${index}`);
|
|
240
|
+
tabtoscroll === null || tabtoscroll === void 0 ? void 0 : tabtoscroll.scrollIntoView();
|
|
197
241
|
}, 200);
|
|
198
242
|
}
|
|
243
|
+
handleDragStart(ev, index) {
|
|
244
|
+
if (!this.reorderable) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
this._dragSourceIndex = index;
|
|
248
|
+
if (ev.dataTransfer) {
|
|
249
|
+
ev.dataTransfer.effectAllowed = "move";
|
|
250
|
+
ev.dataTransfer.setData("text/plain", String(index));
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
handleDragOver(ev, index) {
|
|
254
|
+
if (!this.reorderable || this._dragSourceIndex === undefined) {
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
ev.preventDefault();
|
|
258
|
+
if (ev.dataTransfer) {
|
|
259
|
+
ev.dataTransfer.dropEffect = "move";
|
|
260
|
+
}
|
|
261
|
+
if (this._dragOverIndex !== index) {
|
|
262
|
+
this._dragOverIndex = index;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
handleDragLeave(index) {
|
|
266
|
+
if (this._dragOverIndex === index) {
|
|
267
|
+
this._dragOverIndex = undefined;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
handleDrop(ev, targetIndex) {
|
|
271
|
+
var _a;
|
|
272
|
+
if (!this.reorderable || this._dragSourceIndex === undefined || !this._processedTabs) {
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
ev.preventDefault();
|
|
276
|
+
const sourceIndex = this._dragSourceIndex;
|
|
277
|
+
this._dragSourceIndex = undefined;
|
|
278
|
+
this._dragOverIndex = undefined;
|
|
279
|
+
if (sourceIndex === targetIndex) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
const previouslySelectedKey = this.selectedTab;
|
|
283
|
+
const reordered = [...this._processedTabs];
|
|
284
|
+
const [moved] = reordered.splice(sourceIndex, 1);
|
|
285
|
+
reordered.splice(targetIndex, 0, moved);
|
|
286
|
+
reordered.forEach((tab, idx) => { tab.index = idx; });
|
|
287
|
+
this._processedTabs = reordered;
|
|
288
|
+
if (previouslySelectedKey !== undefined) {
|
|
289
|
+
const newSelected = reordered.findIndex(t => t.tabKey === previouslySelectedKey);
|
|
290
|
+
if (newSelected >= 0) {
|
|
291
|
+
this.selectedIndex = newSelected;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
(_a = this.ezReorder) === null || _a === void 0 ? void 0 : _a.emit(reordered);
|
|
295
|
+
}
|
|
296
|
+
handleDragEnd() {
|
|
297
|
+
this._dragSourceIndex = undefined;
|
|
298
|
+
this._dragOverIndex = undefined;
|
|
299
|
+
}
|
|
300
|
+
findNextEnabledIndex(from, step) {
|
|
301
|
+
if (!this._processedTabs || this._processedTabs.length === 0) {
|
|
302
|
+
return undefined;
|
|
303
|
+
}
|
|
304
|
+
const total = this._processedTabs.length;
|
|
305
|
+
let index = from === undefined ? (step > 0 ? -1 : total) : from;
|
|
306
|
+
for (let i = 0; i < total; i++) {
|
|
307
|
+
index += step;
|
|
308
|
+
if (index < 0 || index > total - 1) {
|
|
309
|
+
return from;
|
|
310
|
+
}
|
|
311
|
+
if (!this._processedTabs[index].disabled) {
|
|
312
|
+
return index;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return from;
|
|
316
|
+
}
|
|
199
317
|
setFocusedBtn(visible, parameter) {
|
|
200
|
-
|
|
201
|
-
|
|
318
|
+
var _a;
|
|
319
|
+
if (parameter === undefined) {
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
const tabsButtons = (_a = this._scrollContainer) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".tab");
|
|
323
|
+
tabsButtons === null || tabsButtons === void 0 ? void 0 : tabsButtons.forEach((el) => {
|
|
202
324
|
el.classList.remove("is-focused");
|
|
203
325
|
if (el.id === "tab" + parameter && visible) {
|
|
204
326
|
el.classList.add("is-focused");
|
|
205
327
|
}
|
|
206
328
|
});
|
|
207
329
|
}
|
|
208
|
-
buildElementIdTab(tabs) {
|
|
330
|
+
buildElementIdTab(tabs = []) {
|
|
209
331
|
tabs.forEach(tab => {
|
|
332
|
+
var _a;
|
|
210
333
|
if (!tab.hasOwnProperty(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME)) {
|
|
211
|
-
const elemIdTabSelector = this._hostElem.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME);
|
|
334
|
+
const elemIdTabSelector = (_a = this._hostElem) === null || _a === void 0 ? void 0 : _a.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME);
|
|
212
335
|
const dataElementID = `${elemIdTabSelector}_${StringUtils.toCamelCase(tab.tabKey)}`;
|
|
213
336
|
tab[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = dataElementID;
|
|
214
337
|
}
|
|
215
338
|
});
|
|
216
339
|
}
|
|
340
|
+
componentWillLoad() {
|
|
341
|
+
this.processesTabs();
|
|
342
|
+
}
|
|
343
|
+
componentDidRender() {
|
|
344
|
+
this.updateScroll();
|
|
345
|
+
}
|
|
346
|
+
componentDidLoad() {
|
|
347
|
+
var _a;
|
|
348
|
+
if (this._hostElem) {
|
|
349
|
+
ElementIDUtils.addIDInfo(this._hostElem, "itemsSelector");
|
|
350
|
+
(_a = this._hostElem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button[name="tab-button"]').forEach((elem) => {
|
|
351
|
+
var _a;
|
|
352
|
+
const label = (_a = elem.querySelector('span.tab-label')) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
353
|
+
const dataInfo = { id: `${StringUtils.toCamelCase(label)}` };
|
|
354
|
+
ElementIDUtils.addIDInfo(elem, "itemSelector", dataInfo);
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
this.scrollActiveTabIntoView(this.selectedIndex);
|
|
358
|
+
}
|
|
217
359
|
render() {
|
|
218
|
-
|
|
360
|
+
var _a;
|
|
361
|
+
return (h(Host, null, h("button", { class: "backward-button", ref: (el) => this._backwardButton = el, onClick: () => this.scrollBackward() }), h("div", { class: "scroll", ref: (el) => this._scrollContainer = el, onScroll: () => this.domScrollHandler(), onKeyDown: (ev) => this.setFocusedParam(ev) }, (_a = this._processedTabs) === null || _a === void 0 ? void 0 : _a.map((tab, index) => {
|
|
219
362
|
const tabId = "tab" + index;
|
|
220
363
|
const isSelected = index === this.selectedIndex || (this.selectedTab && tab.tabKey === this.selectedTab);
|
|
221
364
|
if (isSelected) {
|
|
222
365
|
this.selectedTab = tab.tabKey;
|
|
223
366
|
this.selectedIndex = index;
|
|
224
367
|
}
|
|
225
|
-
|
|
368
|
+
const isDraggable = this.reorderable && !tab.disabled;
|
|
369
|
+
const isDragOver = this.reorderable && this._dragOverIndex === index && this._dragSourceIndex !== index;
|
|
370
|
+
const isDragging = this._dragSourceIndex === index;
|
|
371
|
+
return h("button", { id: tabId, name: "tab-button", class: `tab${isSelected ? " is-active" : ""}${tab.disabled ? " is-disabled" : ""}${this.reorderable ? " is-reorderable" : ""}${isDragOver ? " is-drag-over" : ""}${isDragging ? " is-dragging" : ""}`, disabled: tab.disabled, "aria-disabled": tab.disabled ? "true" : "false", draggable: isDraggable, onClick: () => this.handleTabClick(tab), onDragStart: (ev) => this.handleDragStart(ev, index), onDragOver: (ev) => this.handleDragOver(ev, index), onDragLeave: () => this.handleDragLeave(index), onDrop: (ev) => this.handleDrop(ev, index), onDragEnd: () => this.handleDragEnd() }, tab.leftIcon && h("ez-icon", { iconName: tab.leftIcon, class: "left-icon" }), h("span", { class: "tab-label", title: tab.label }, tab.label), tab.rightIcon && h("ez-icon", { iconName: tab.rightIcon, class: "right-icon" }), h("slot", { name: tabId, onSlotchange: (ev) => { this.handleSlotChange(ev); } }));
|
|
226
372
|
})), h("button", { class: "forward-button", ref: (el) => this._forwardButton = el, onClick: () => this.scrollFoward() })));
|
|
227
373
|
}
|
|
228
374
|
get _hostElem() { return getElement(this); }
|
|
229
375
|
static get watchers() { return {
|
|
230
|
-
"tabs": ["observeTabs"]
|
|
376
|
+
"tabs": ["observeTabs"],
|
|
377
|
+
"selectedIndex": ["observeSelectedIndex"],
|
|
378
|
+
"selectedTab": ["observeSelectedTab"]
|
|
231
379
|
}; }
|
|
232
380
|
};
|
|
233
381
|
EzTabselector.style = ezTabselectorCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils, KeyboardManager } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezTagInputCss = ":host{--ez-tag-input--background-color:var(--color--gray-70, #FFFFFF);--ez-tag-input--border-color-default:var(--color--gray-200, #D2D2D3);--ez-tag-input--border-color-focused:var(--color--gray-300, #A4A5A7);--ez-tag-input--border-color-error:var(--color--red-600, #BD0025);--ez-tag-input--border-color-success:var(--color--green-600, #157A00);--ez-tag-input--border-color-warning:var(--color--yellow-600, #EFB103);--ez-tag-input--border-radius:var(--border--radius-8, 8px);--ez-tag-input--padding:var(--space--12, 12px);--ez-tag-input--gap:var(--space--8, 8px);--ez-tag-input--label-color:var(--color--petroleum-900, #141B27);--ez-tag-input--label-font-weight:var(--font-weight--regular, 400);--ez-tag-input--input-color:var(--color--petroleum-900, #141B27);--ez-tag-input--input-font-size:var(--font-size--default, 14px);--ez-tag-input--placeholder-color:var(--color--gray-400, #77777A);--ez-tag-input--background-color-disabled:var(--color--gray-90, #EAEAEA);--ez-tag-input--helptext-color:var(--color--ocean-green-1000, #00281D);display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;font-family:var(--font--pattern, 'Roboto', Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);width:100%;border:none;padding:0}label{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:var(--line-height--20, 20px);color:var(--ez-tag-input--label-color);font-weight:var(--ez-tag-input--label-font-weight)}.tag-input__container{display:flex;flex-wrap:wrap;align-items:center;width:100%;box-sizing:border-box;gap:var(--ez-tag-input--gap);padding:var(--ez-tag-input--padding);margin:var(--space--4, 4px) 0;background-color:var(--ez-tag-input--background-color);border-radius:var(--ez-tag-input--border-radius);transition:box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1)}.tag-input__container,.tag-input__container[data-state=\"default\"]{box-shadow:0 0 0 1px var(--ez-tag-input--border-color-default)}.tag-input__container[data-state=\"error\"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-tag-input--border-color-error)}.tag-input__container[data-state=\"success\"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-tag-input--border-color-success)}.tag-input__container[data-state=\"warning\"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-tag-input--border-color-warning)}.tag-input__container:focus-within{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-tag-input--border-color-focused)}input{flex:1;height:var(--space--24, 24px);background:transparent;border:none;outline:none;color:var(--ez-tag-input--input-color);font-family:var(--font--pattern, 'Roboto');font-size:var(--ez-tag-input--input-font-size);font-weight:var(--font-weight--regular, 400);line-height:var(--line-height--20, 20px)}input::placeholder{color:var(--ez-tag-input--placeholder-color)}.tag-input__container[data-disabled=\"true\"]{cursor:not-allowed;background:var(--ez-tag-input--background-color-disabled);box-shadow:0 0 0 1px var(--ez-tag-input--border-color-default)}.tag-input__container[data-disabled=\"true\"]>*{cursor:not-allowed}input:read-only .tag-input__container>*{cursor:default}@keyframes ez-helptext-fadein{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}span{font-size:var(--font-size--xsmall, 10px);line-height:var(--line-height--16, 16px);overflow:hidden;text-overflow:ellipsis;animation:ez-helptext-fadein 0.3s ease;color:var(--ez-tag-input--helptext-color)}";
|
package/dist/esm/ez-tag.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezTagCss = ":host{--ez-tag--padding-x:var(--space--8, 8px);--ez-tag--padding-y:var(--space--4, 4px);--ez-tag--min-width:var(--space--6, 6px);--ez-tag--min-height:var(--space--14, 14px);--ez-tag--border-radius:var(--border--radius-24, 24px);--ez-tag--background-color:var(--color--ocean-green-600, #008561);--ez-tag_label--font-weight:var(--font-weight--regular, 400);--ez-tag_label--font-size:var(--font-size--default, 14px);--ez-tag_label--color:var(--color--gray-70, #FFFFFF)}.tag{background-color:var(--ez-tag--custom-background-color, var(--ez-tag--background-color));padding:var(--ez-tag--padding-y) var(--ez-tag--padding-x);border-radius:var(--ez-tag--border-radius);min-width:var(--ez-tag--min-width);min-height:var(--ez-tag--min-height);display:inline-flex;justify-content:center;align-items:center}label{font-weight:var(--ez-tag_label--font-weight);font-size:var(--ez-tag_label--font-size);color:var(--ez-tag_label--custom-color, var(--ez-tag_label--color));font-family:var(--font--pattern, Arial);line-height:var(--ez-tag_label--font-size);text-align:center;line-height:normal}.light-ocean-green{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--ocean-green-100));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--ocean-green-600))}.green{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--green-600));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--gray-70))}.light-green{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--green-200));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--green-600))}.yellow{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--yellow-600));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--yellow-900))}.light-yellow{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--yellow-200));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--yellow-800))}.red{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--red-600));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--gray-70))}.light-red{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--red-200));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--red-600))}.gray{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--gray-500));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--gray-100))}.light-gray{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--gray-100));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--gray-400))}.petroleum{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--petroleum-600));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--petroleum-200))}.light-petroleum{--ez-tag--background-color:var(--ez-tag--custom-background-color, var(--color--petroleum-100));--ez-tag_label--color:var(--ez-tag_label--custom-color, var(--color--petroleum-400))}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #2B3A54);--text-area__input--background-color:var(--background--light, #FFFFFF);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--color--strokes, #DCE0E8);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--background--medium, #F0F3F7);--text-area__input--disabled--color:var(--text--primary, #626E82);--text-area__input--disabled--border--color:var(--color--strokes, #DCE0E8);--text-area__input--error--border-color:var(--color-alert--error-800, #BD0025);--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color-alert--error-800, #BD0025);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;--text-area__scrollbar--color-default:var(--scrollbar--default, #626e82);--text-area__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--text-area__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--text-area__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--text-area__scrollbar--border-radius:var(--border--radius-small, 6px);--text-area__scrollbar--width:var(--space--small, 6px);--ez-text-area__tooltip-icon--spacing:var(--space--large);--ez-text-area__tooltip-icon---width:var(--space--large);--ez-text-area__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-area__tooltip-icon---vertical-margin:10px;--ez-text-area__tooltip_icon--error--color:var(--color-alert--error-800, #BD0025);display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{display:flex;flex-direction:column;height:calc(100% - 16px);box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;min-height:42px;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px);scrollbar-width:thin;scrollbar-color:var(--text-area__scrollbar--color-clicked) var(--text-area__scrollbar--color-background)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color);border:var(--text-area__input--disabled--border);cursor:not-allowed}textarea::-webkit-scrollbar{background-color:var(--text-area__scrollbar--color-background);width:var(--text-area__scrollbar--width);max-width:var(--text-area__scrollbar--width);min-width:var(--text-area__scrollbar--width)}textarea::-webkit-scrollbar-thumb{background-color:var(--text-area__scrollbar--color-default);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-track{background-color:var(--text-area__scrollbar--color-background);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-thumb:vertical:hover,textarea::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--text-area__scrollbar--color-hover)}textarea::-webkit-scrollbar-thumb:vertical:active,textarea::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--text-area__scrollbar--color-clicked)}.textarea{width:100%;min-height:42px;max-width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--disabled{border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--disabled--border--color);background-color:var(--text-area__input--disabled--background-color);cursor:not-allowed}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color);cursor:not-allowed}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder,.textarea--slim:disabled:-moz-placeholder,.textarea--slim:disabled::-moz-placeholder,.textarea--slim:disabled:-ms-input-placeholder,.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color);cursor:not-allowed}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-area__tooltip_icon--error--color)}.input-container{display:flex;align-items:center}.textarea--resizable{resize:vertical;overflow:auto;min-height:42px}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { MaskFormatter, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:30px;--ez-text-input--height--slim:32px;--ez-text-input__min-width:0px;--ez-text-input__max-width:100%;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--border-top-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-left-radius:var(--ez-text-input--border-radius);--ez-text-input--border-top-right-radius:var(--ez-text-input--border-radius);--ez-text-input--border-bottom-right-radius:var(--ez-text-input--border-radius);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #2B3A54);--ez-text-input__margin-bottom:var(--space--small);--ez-text-input__input--background-color:var(--background--light, #ffffff);--ez-text-input__input--border:var(--border--small, 1px solid);--ez-text-input__input--border-color:var(--color--strokes,#DCE0E8);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--background--medium, #F0F3F7);--ez-text-input__input--disabled--color:var(--text--primary, #626E82);--ez-text-input__input--error--border-color:var(--color-alert--error-800,#BD0025);--ez-text-input__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--ez-text-input__placeholder--color:var(--text--secondary, #a2abb9);--ez-text-input__tooltip_icon--error--color:var(--color-alert--error-800,#BD0025);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;--ez-text-input__input--focus--icon-color:var(--title--primary, #2B3A54);--ez-text-input__input--disabled--focus--icon-color:var(--text--primary, #626E82);--ez-text-input__tooltip-icon--spacing:var(--space--large);--ez-text-input__tooltip-icon---width:var(--space--large);--ez-text-input__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-input__tooltip-icon---vertical-margin:10px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width);min-width:var(--ez-text-input__min-width);max-width:var(--ez-text-input__max-width)}:host(.grid_editor){--ez-text-input--height--slim:25px}input{width:100%;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:var(--ez-text-input--height);border-top-left-radius:var(--ez-text-input--border-top-left-radius);border-bottom-left-radius:var(--ez-text-input--border-bottom-left-radius);border-top-right-radius:var(--ez-text-input--border-top-right-radius);border-bottom-right-radius:var(--ez-text-input--border-bottom-right-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding);margin-bottom:var(--ez-text-input__margin-bottom)}input.no--margin{--ez-text-input__margin-bottom:0}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}input:focus{outline:none;border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.focused{border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--left.hasError{padding-right:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.icon--right.hasError{padding-right:calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing))}input.hasError{color:var(--ez-text-input--color);border:var(--border--medium, 2px solid);border-color:var(--ez-text-input__input--error--border-color);padding-right:calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)))}input:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:disabled,input:read-only{cursor:not-allowed}.hasError{color:var(--ez-text-input__tooltip_icon--error--color)}.input__label{box-sizing:border-box;position:absolute;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - (var(--ez-text-input__label--padding-right) + var(--ez-text-input__label--padding-left)));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label.hasError{width:calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)))}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color);cursor:not-allowed}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - (var(--ez-text-input__icon--width) + var(--ez-text-input__label--padding-right)))}.input__label--left.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - (var(--ez-text-input__icon--width) + var(--ez-text-input__label--padding-left)))}.input__label--right.hasError{width:calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder,.input--slim:-moz-placeholder,.input--slim::-moz-placeholder,.input--slim:-ms-input-placeholder,.input--slim::placeholder{font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input__placeholder--color)}.input--slim:disabled::-webkit-input-placeholder,.input--slim:disabled:-moz-placeholder,.input--slim:disabled::-moz-placeholder,.input--slim:disabled:-ms-input-placeholder,.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}ez-icon.tooltip-icon{position:absolute;display:flex;align-items:center;justify-content:center;overflow:hidden;width:var(--ez-text-input__tooltip-icon---width);height:22px;margin:var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);top:0;right:0;border-radius:var(--ez-text-input--border-radius)}ez-icon.tooltip-icon.rightIconSlot{right:var(--ez-text-input__tooltip-icon--spacing)}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-input__tooltip_icon--error--color)}";
|
|
@@ -46,6 +46,7 @@ const EzTextInput = class {
|
|
|
46
46
|
if (newValue != oldValue) {
|
|
47
47
|
this._inputElem.value = this.value || "";
|
|
48
48
|
this.handleChange();
|
|
49
|
+
this.applyMask(newValue);
|
|
49
50
|
this.adjustFloatingLabel();
|
|
50
51
|
this.checkIsOverflowing();
|
|
51
52
|
if (!this.isSlaveMode()) {
|
|
@@ -190,12 +191,9 @@ const EzTextInput = class {
|
|
|
190
191
|
const value = this._inputElem.value;
|
|
191
192
|
if (value && this._maskFormatter) {
|
|
192
193
|
try {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
else {
|
|
197
|
-
this._inputElem.value = this._maskFormatter.format(value);
|
|
198
|
-
}
|
|
194
|
+
const newMask = this.handleDefaultMask(value);
|
|
195
|
+
this._maskFormatter.mask = newMask;
|
|
196
|
+
this._inputElem.value = this._maskFormatter.format(this._maskFormatter.removeMask(value));
|
|
199
197
|
}
|
|
200
198
|
catch (e) {
|
|
201
199
|
this.errorMessage = e.message;
|
|
@@ -221,20 +219,33 @@ const EzTextInput = class {
|
|
|
221
219
|
}
|
|
222
220
|
}
|
|
223
221
|
}
|
|
222
|
+
handleDefaultMask(value = this.value) {
|
|
223
|
+
if (this.mask === "cgc_cpf") {
|
|
224
|
+
if (value && value.length <= 11) {
|
|
225
|
+
this.mask = MaskFormatter.DEFAULT_MASKS["cpf"];
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
this.mask = MaskFormatter.DEFAULT_MASKS["cnpj"];
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
return this.mask;
|
|
232
|
+
}
|
|
224
233
|
applyMask(value) {
|
|
225
234
|
if (!value || value === "")
|
|
226
235
|
return value;
|
|
227
236
|
if (this._maskFormatter) {
|
|
228
237
|
try {
|
|
238
|
+
const newMask = this.handleDefaultMask(value);
|
|
239
|
+
this._maskFormatter.mask = newMask;
|
|
229
240
|
const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
|
|
230
241
|
if (this._inputElem) {
|
|
231
242
|
this._inputElem.value = formattedValue;
|
|
232
243
|
return this._inputElem.value;
|
|
233
244
|
}
|
|
234
|
-
|
|
245
|
+
if (!this.cleanValueMask) {
|
|
235
246
|
this.value = formattedValue;
|
|
236
|
-
return this.value;
|
|
237
247
|
}
|
|
248
|
+
return this.value;
|
|
238
249
|
}
|
|
239
250
|
catch (e) {
|
|
240
251
|
this.errorMessage = e.message;
|
|
@@ -301,7 +312,7 @@ const EzTextInput = class {
|
|
|
301
312
|
this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
|
|
302
313
|
}
|
|
303
314
|
getValue() {
|
|
304
|
-
return this.mask
|
|
315
|
+
return this.mask ? this.applyMask(this.value) : this.value;
|
|
305
316
|
}
|
|
306
317
|
buildLabelClass() {
|
|
307
318
|
let classList = this.enabled ? 'input__label' : 'input__label input__label--disabled';
|
|
@@ -332,12 +343,7 @@ const EzTextInput = class {
|
|
|
332
343
|
if (this.value) {
|
|
333
344
|
if (this._maskFormatter) {
|
|
334
345
|
try {
|
|
335
|
-
|
|
336
|
-
this.applyMask(this.value);
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
this.value = this._maskFormatter.format(this.value);
|
|
340
|
-
}
|
|
346
|
+
this.applyMask(this.value);
|
|
341
347
|
}
|
|
342
348
|
catch (e) {
|
|
343
349
|
this.errorMessage = e.message;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezTileMediumCss = ":host{--ez-tile-medium--width:446px;--ez-tile-medium--height:257px;--ez-tile-medium--padding:var(--space--24, 24px);--ez-tile-medium--border-radius:var(--border--radius-16, 16px);--ez-tile-medium--background-color:var(--color--ocean-gray-70, #ffffff);--ez-tile-medium--color:var(--color--ocean-green-900, #003D2D);--ez-tile-medium--icon-color:var(--color--ocean-green-400, #42A58A);--ez-tile-medium--font-family:var(--font-pattern, Arial);--ez-tile-medium--header-gap:var(--space--16, 16px);--ez-tile-medium--icon-line-height:var(--line-height--30, 30px);--ez-tile-medium--tag-group-gap:var(--space--4, 4px);--ez-tile-medium_button--background-color:var(--color--ocean-green-600, #1A9171);--ez-tile-medium_button--color:var(--color--gray-70, #ffffff);--ez-tile-medium_button--hover--background-color:var(--color--ocean-green-700, #00684C);--ez-tile-medium_button--hover-color:var(--color--gray-70, #ffffff);--ez-tile-medium_button--active--background-color:var(--color--ocean-green-500, #1A9171);--ez-tile-medium_button--active-color:var(--color--gray-70, #ffffff)}.tile-medium_container{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;overflow:hidden;outline:none;box-shadow:none;width:var(--ez-tile-medium--custom-width, var(--ez-tile-medium--width));height:var(--ez-tile-medium--custom-height, var(--ez-tile-medium--height));border-radius:var(--ez-tile-medium--border-radius);background-color:var(--ez-tile-medium--background-color);color:var(--ez-tile-medium--color);box-sizing:border-box;padding:var(--ez-tile-medium--padding)}.tile-medium_header{display:flex;flex-direction:row;align-items:flex-start;align-self:stretch;width:100%;gap:var(--ez-tile-medium--header-gap)}.tile-medium_header-image{display:flex;align-items:flex-start;gap:var(--space--10, 10px);flex:1 0 0}.tag_group{display:flex;flex-direction:row;gap:var(--ez-tile-medium--tag-group-gap);flex-wrap:wrap;justify-content:flex-end}.tile-medium_content{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:var(--space--14, 14px);align-self:stretch}span{font-family:var(--ez-tile-medium--font-family);display:-webkit-box;-webkit-box-orient:vertical;width:100%;overflow:hidden;text-overflow:ellipsis;text-align:left;white-space:pre-wrap;align-self:stretch;font-style:normal}.small_title{color:var(--color--gray-400, #77777A);font-size:var(--font-size--default, 14px);font-weight:var(--font-weight--regular);line-height:var(--line-height--20, 20px);-webkit-line-clamp:var(--ez-tile-medium--small-title--maximum-lines, 1);line-clamp:var(--ez-tile-medium--small-title--maximum-lines,1)}.main_title{color:var(--color--ocean-green-900, #003D2D);font-size:var(--font-size--xxlarge, 22px);font-weight:var(--font-weight--bold);line-height:var(--line-height--32, 32px);-webkit-line-clamp:var(--ez-tile-medium--title--maximum-lines, 1);line-clamp:var(--ez-tile-medium--title--maximum-lines,1)}.description{color:var(--color--ocean-green-900, #003D2D);font-size:var(--font-size--default, 14px);font-weight:var(--font-weight--regular);line-height:var(--line-height--24, 24px);-webkit-line-clamp:var(--ez-tile-medium--description--maximum-lines, 3);line-clamp:var(--ez-tile-medium--description--maximum-lines, 3)}.tile-medium_button{--ez-button--background-color:var(--ez-tile-medium_button--background-color);--ez-button--color:var(--ez-tile-medium_button--color);--ez-button--hover--background-color:var(--ez-tile-medium_button--hover--background-color);--ez-button--hover-color:var(--ez-tile-medium_button--hover-color);--ez-button--active--background-color:var(--ez-tile-medium_button--active--background-color);--ez-button--active-color:var(--ez-tile-medium_button--active-color)}ez-icon{--ez-icon--color:var(--ez-tile-medium--custom-icon-color, var(--ez-tile-medium--icon-color));line-height:var(--ez-tile-medium--icon-line-height)}.green{--ez-tile-medium--background-color:var(--color--ocean-green-90);--ez-tile-medium--icon-color:var(--ez-tile-medium--custom-icon-color, var(--color--ocean-green-500))}.gray{--ez-tile-medium--background-color:var(--color--gray-80);--ez-tile-medium--icon-color:var(--ez-tile-medium--custom-icon-color, var(--color--ocean-green-400))}.red{--ez-tile-medium--background-color:var(--color--red-100);--ez-tile-medium--icon-color:var(--ez-tile-medium--custom-icon-color, var(--color--red-300))}.yellow{--ez-tile-medium--background-color:var(--color--yellow-100);--ez-tile-medium--icon-color:var(--ez-tile-medium--custom-icon-color, var(--color--yellow-400))}";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezTileCss = ":host{--ez-tile--width:120px;--ez-tile--height:80px;--ez-tile--padding:var(--space--12, 12px);--ez-tile--icon--margin-bottom:var(--space--8);--ez-tile--border-radius:var(--border--radius-16, 16px);--ez-tile--background-color:var(--color--gray-70, #ffffff);--ez-tile--color:var(--color--ocean-green-900, #003D2D);--ez-tile--icon-color:var(--color--ocean-green-400, #42A58A);--ez-tile--hover-background-color:var(--color--gray-80, #F9F9F9);--ez-tile--hover-color:var(--color--ocean-green-900, #003D2D);--ez-tile--hover-icon-color:var(--color--ocean-green-400, #42A58A);--ez-tile--focus-visible-border:2px solid var(--color--petroleum-400, #626D80);--ez-tile--font-family:var(--font-pattern, Arial);--ez-tile--font-weight:var(--font-weight--regular, 400);--ez-tile--font-size:var(--font-size--default, 14px);--ez-tile--title-line-height:var(--line-height--20, 20px);--ez-tile--icon-line-height:var(--line-height--24, 24px)}button{display:flex;flex-wrap:wrap;align-content:space-between;overflow:hidden;outline:none;box-shadow:none;width:var(--ez-tile--custom-width, var(--ez-tile--width));height:var(--ez-tile--custom-height, var(--ez-tile--height));border-radius:var(--ez-tile--border-radius);background-color:var(--ez-tile--background-color);color:var(--ez-tile--color);box-sizing:border-box;padding:var(--ez-tile--padding);border:2px solid var(--ez-tile--background-color)}button:focus-visible{border:var(--ez-tile--focus-visible-border)}.medium{--ez-tile--width:var(--ez-tile--custom-width, 120px);--ez-tile--height:var(--ez-tile--custom-height, 170px)}.isInteractive:hover,.isInteractive:focus{--ez-icon--color:var(--ez-tile--hover-icon-color);--ez-tile--background-color:var(--ez-tile--hover-background-color);--ez-tile--color:var(--ez-tile--hover-color);cursor:pointer}span{-webkit-line-clamp:var(--ez-tile--custom-maximum-lines, 1);line-clamp:var(--ez-tile--custom-maximum-lines,1);font-family:var(--ez-tile--font-family);font-weight:var(--ez-tile--font-weight);font-size:var(--ez-tile--font-size);line-height:var(--ez-tile--title-line-height);display:-webkit-box;-webkit-box-orient:vertical;width:100%;overflow:hidden;text-overflow:ellipsis;text-align:left;white-space:pre-wrap}ez-icon{--ez-icon--color:var(--ez-tile--icon-color);margin-bottom:var(--ez-tile--icon--margin-bottom);line-height:var(--ez-tile--icon-line-height)}.isInteractive:hover,.isInteractive:focus{outline:none}.green{--ez-tile--background-color:var(--color--ocean-green-90);--ez-tile--icon-color:var(--color--ocean-green-500)}.isInteractive.green:hover,.isInteractive.green:focus{--ez-tile--hover-background-color:var(--color--ocean-green-100);--ez-tile--icon-color:var(--color--ocean-green-500);outline:none}.gray{--ez-tile--background-color:var(--color--gray-80);--ez-tile--icon-color:var(--color--ocean-green-400)}.isInteractive.gray:hover,.isInteractive.gray:focus{--ez-tile--hover-background-color:var(--color--gray-90);--ez-tile--hover-icon-color:var(--color--ocean-green-400)}.red{--ez-tile--background-color:var(--color--red-100);--ez-tile--icon-color:var(--color--red-300)}.isInteractive.red:hover,.isInteractive.red:focus{--ez-tile--hover-background-color:var(--color--red-200);--ez-tile--hover-icon-color:var(--color--red-300)}.yellow{--ez-tile--background-color:var(--color--yellow-100);--ez-tile--icon-color:var(--color--yellow-400)}.isInteractive.yellow:hover,.isInteractive.yellow:focus{--ez-tile--hover-background-color:var(--color--yellow-200);--ez-tile--hover-icon-color:var(--color--yellow-400)}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { TimeFormatter, MaskFormatter, NumberUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
|
|
4
|
-
import { i as initI18n } from './index-
|
|
4
|
+
import { i as initI18n } from './index-9e6dab5b.js';
|
|
5
5
|
|
|
6
6
|
const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}.time__input{height:100%}";
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, f as forceUpdate, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
const ezToastCss = ":host{--ez-toast__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--ez-toast__container--z-index:var(--elevation--100, 100);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__container--left:var(--space--large, 24px);--ez-toast__container--bottom:var(--space--large, 24px);--ez-toast__container--width:400px;--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;box-sizing:border-box;border-radius:6px;align-items:center;padding:12px;visibility:hidden;width:var(--ez-toast__container--width);left:var(--ez-toast__container--left);bottom:var(--ez-toast__container--bottom);z-index:var(--ez-toast__container--z-index);background-color:var(--ez-toast__container--background-color)}.message__container{text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;hyphens:auto;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box;text-overflow:ellipsis;font-family:var(--font-pattern, \"Roboto\")}.message__container--icon{width:80%;padding-left:var(--ez-toast__icon--padding-left)}.btn-close{margin-top:3px;display:flex;justify-content:flex-end;align-self:flex-start;padding:0;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:#FFFFFF;width:12px;height:12px;-webkit-mask-image:var(--ez-toast__btn__close__image);mask-image:var(--ez-toast__btn__close__image)}.toast__container--opened{animation:fadein 0.5s, fadeout 0.5s 3s;visibility:visible}@-webkit-keyframes fadein{from{opacity:0;left:calc(var(--ez-toast__container--left) * -1)}to{opacity:1;left:var(--ez-toast__container--left)}}@keyframes fadein{from{opacity:0;left:calc(var(--ez-toast__container--left) * -1)}to{opacity:1;left:var(--ez-toast__container--left)}}@-webkit-keyframes fadeout{from{opacity:1;left:var(--ez-toast__container--left)}to{bottom:0;opacity:0}}@keyframes fadeout{from{opacity:1;left:var(--ez-toast__container--left)}to{bottom:0;opacity:0}}";
|