@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-132151.1 → 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} +202 -4
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-combo-box.cjs.entry.js +4 -2
- package/dist/cjs/ez-classic-date-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-input.cjs.entry.js +49 -3
- package/dist/cjs/ez-classic-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-search-plus.cjs.entry.js +26 -13
- package/dist/cjs/ez-classic-search.cjs.entry.js +2 -2
- package/dist/cjs/ez-classic-text-area.cjs.entry.js +12 -1
- package/dist/cjs/ez-classic-time-input.cjs.entry.js +4 -3
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box.cjs.entry.js +7 -2
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +20 -1
- package/dist/cjs/ez-form.cjs.entry.js +65 -43
- package/dist/cjs/ez-grid-pagination.cjs.entry.js +227 -0
- package/dist/cjs/ez-grid.cjs.entry.js +235 -172
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list_5.cjs.entry.js +675 -0
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +4 -5
- package/dist/cjs/ez-record-navigation.cjs.entry.js +121 -0
- package/dist/cjs/ez-scroller_2.cjs.entry.js +81 -14
- package/dist/cjs/ez-search-plus.cjs.entry.js +25 -11
- package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +11 -4
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-sortable-list.cjs.entry.js +99 -114
- package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +16 -17
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-tabselector.cjs.entry.js +209 -61
- package/dist/cjs/ez-text-input.cjs.entry.js +21 -15
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +46 -8
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/filter-column.cjs.entry.js +9 -3
- 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-a7b0c73d.js +16 -16
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{search-column-4bb1cdb7.js → search-column-6e90fb19.js} +24 -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/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 +20 -15
- 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 +8 -6
- package/dist/custom-elements/index.d.ts +18 -0
- package/dist/custom-elements/index.js +1889 -647
- 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} +202 -5
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-avatar.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-classic-combo-box.entry.js +4 -2
- package/dist/esm/ez-classic-date-input.entry.js +2 -2
- package/dist/esm/ez-classic-date-time-input.entry.js +1 -1
- package/dist/esm/ez-classic-input.entry.js +49 -3
- package/dist/esm/ez-classic-number-input.entry.js +1 -1
- package/dist/esm/ez-classic-search-plus.entry.js +26 -13
- package/dist/esm/ez-classic-search.entry.js +2 -2
- package/dist/esm/ez-classic-text-area.entry.js +12 -1
- package/dist/esm/ez-classic-time-input.entry.js +4 -3
- package/dist/esm/ez-collapsible-box.entry.js +2 -2
- package/dist/esm/ez-combo-box.entry.js +7 -2
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-double-list.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/ez-form-view.entry.js +20 -1
- package/dist/esm/ez-form.entry.js +65 -43
- package/dist/esm/ez-grid-pagination.entry.js +223 -0
- package/dist/esm/ez-grid.entry.js +236 -173
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list_5.entry.js +667 -0
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-pagination.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +4 -5
- package/dist/esm/ez-record-navigation.entry.js +117 -0
- package/dist/esm/ez-scroller_2.entry.js +81 -14
- package/dist/esm/ez-search-plus.entry.js +25 -11
- package/dist/esm/ez-search-result-list.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +11 -4
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-sortable-list.entry.js +99 -114
- package/dist/esm/ez-spinner.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +16 -17
- package/dist/esm/ez-split-item.entry.js +2 -2
- package/dist/esm/ez-tabselector.entry.js +209 -61
- package/dist/esm/ez-text-input.entry.js +21 -15
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +46 -8
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +2 -2
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +9 -3
- 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-baa5e267.js +16 -16
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{search-column-e145f048.js → search-column-7d7f0331.js} +24 -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-544605c4.entry.js → p-063bb342.entry.js} +1 -1
- package/dist/ezui/{p-c56ee8c0.entry.js → p-0ac8bd66.entry.js} +1 -1
- package/dist/ezui/p-0d80e3ec.entry.js +1 -0
- package/dist/ezui/{p-729bd1be.entry.js → p-108503ed.entry.js} +1 -1
- package/dist/ezui/{p-e3cd5080.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-2856c545.entry.js +1 -0
- package/dist/ezui/{p-df802548.entry.js → p-2ae127bc.entry.js} +1 -1
- package/dist/ezui/{p-556bf329.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-42e1e733.js +1 -0
- package/dist/ezui/{p-4e869617.entry.js → p-45245c32.entry.js} +1 -1
- package/dist/ezui/{p-a872c642.entry.js → p-46b1b2ac.entry.js} +1 -1
- package/dist/ezui/{p-5abb220b.entry.js → p-54af1af0.entry.js} +1 -1
- package/dist/ezui/p-55434123.entry.js +1 -0
- package/dist/ezui/p-6791d05f.entry.js +1 -0
- package/dist/ezui/{p-b83b9d14.entry.js → p-6d46f862.entry.js} +46 -46
- package/dist/ezui/p-6da0dc70.entry.js +1 -0
- package/dist/ezui/p-72e77b45.entry.js +1 -0
- package/dist/ezui/{p-7edc3ef7.entry.js → p-73461028.entry.js} +1 -1
- package/dist/ezui/{p-f5552540.entry.js → p-7424d520.entry.js} +1 -1
- package/dist/ezui/{p-b705b342.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-b0a716ef.entry.js → p-881abc22.entry.js} +1 -1
- package/dist/ezui/{p-7134726a.entry.js → p-99556756.entry.js} +1 -1
- package/dist/ezui/{p-97312709.entry.js → p-9bd78d39.entry.js} +1 -1
- package/dist/ezui/p-a11e4e8e.entry.js +1 -0
- package/dist/ezui/p-a9ab6cb9.entry.js +1 -0
- package/dist/ezui/{p-9825c1d2.js → p-ad5e263d.js} +1 -1
- package/dist/ezui/{p-26cd4c2e.entry.js → p-b06294c9.entry.js} +1 -1
- package/dist/ezui/{p-4d30b703.entry.js → p-b50289bb.entry.js} +1 -1
- package/dist/ezui/p-b66ae5c5.entry.js +1 -0
- package/dist/ezui/{p-2da9faf1.entry.js → p-b8cd501a.entry.js} +1 -1
- package/dist/ezui/p-b986da95.entry.js +7 -0
- package/dist/ezui/{p-4c2a4435.entry.js → p-c25a4d30.entry.js} +1 -1
- package/dist/ezui/{p-4f7ad3ee.entry.js → p-c37fb359.entry.js} +1 -1
- package/dist/ezui/{p-e2972977.entry.js → p-cb00863d.entry.js} +1 -1
- package/dist/ezui/{p-e3a42f47.entry.js → p-d5684cdc.entry.js} +1 -1
- package/dist/ezui/{p-6ac056d7.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-de14fe07.js +1 -0
- package/dist/ezui/p-df6173c8.entry.js +1 -0
- package/dist/ezui/{p-56565777.entry.js → p-dfced8c7.entry.js} +1 -1
- package/dist/ezui/{p-0248846f.entry.js → p-e3d6b544.entry.js} +1 -1
- package/dist/ezui/p-e63a0479.js +1 -0
- package/dist/ezui/{p-4c76b365.entry.js → p-e692c2a7.entry.js} +1 -1
- package/dist/ezui/{p-8e5f1c74.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-34d459e4.entry.js → p-f498f6b5.entry.js} +1 -1
- package/dist/ezui/{p-4af745e1.entry.js → p-fb27b98d.entry.js} +1 -1
- package/dist/ezui/{p-987185c4.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-split-button/ez-split-button.d.ts +1 -2
- 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-0625743b.entry.js +0 -1
- package/dist/ezui/p-2528e988.entry.js +0 -1
- package/dist/ezui/p-288631d1.entry.js +0 -1
- package/dist/ezui/p-2a806303.js +0 -1
- package/dist/ezui/p-44183c39.entry.js +0 -1
- package/dist/ezui/p-4e576bb9.entry.js +0 -1
- package/dist/ezui/p-6020f3d5.entry.js +0 -1
- package/dist/ezui/p-619225ce.entry.js +0 -1
- package/dist/ezui/p-679a2942.entry.js +0 -1
- package/dist/ezui/p-951b32a1.entry.js +0 -1
- package/dist/ezui/p-a0f51b99.entry.js +0 -1
- package/dist/ezui/p-a3bad8f8.entry.js +0 -1
- package/dist/ezui/p-a4351519.entry.js +0 -1
- package/dist/ezui/p-b36475f9.entry.js +0 -1
- package/dist/ezui/p-b8078832.entry.js +0 -1
- package/dist/ezui/p-c0ae79fa.entry.js +0 -1
- package/dist/ezui/p-c178730b.js +0 -1
- package/dist/ezui/p-c2b2172b.entry.js +0 -1
- package/dist/ezui/p-c3c6274e.js +0 -1
- package/dist/ezui/p-cabc119e.entry.js +0 -1
- package/dist/ezui/p-ce0a0036.entry.js +0 -7
- package/dist/ezui/p-cfa26133.entry.js +0 -1
- package/dist/ezui/p-d2645bdf.entry.js +0 -1
- package/dist/ezui/p-d5dc6b01.entry.js +0 -1
- package/dist/ezui/p-e2689b33.entry.js +0 -1
- package/dist/ezui/p-e493ad57.entry.js +0 -1
- package/dist/ezui/p-ef8bd3e8.entry.js +0 -1
- package/dist/ezui/p-ff4312d5.js +0 -1
|
@@ -5,15 +5,23 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
|
-
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
|
|
8
|
+
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)}";
|
|
9
9
|
|
|
10
10
|
const EzTabselector = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.ezChange = index.createEvent(this, "ezChange", 7);
|
|
14
|
+
this.ezReorder = index.createEvent(this, "ezReorder", 7);
|
|
14
15
|
this.setFocusedParam = (ev) => {
|
|
15
16
|
if (ev.key === "Enter") {
|
|
17
|
+
if (!this._processedTabs || this._focusedIndex === undefined) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
16
20
|
const selectedTab = this._processedTabs[this._focusedIndex];
|
|
21
|
+
if (selectedTab.disabled) {
|
|
22
|
+
ev.preventDefault();
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
17
25
|
this.handleTabClick(selectedTab);
|
|
18
26
|
ev.preventDefault();
|
|
19
27
|
this.setFocusedTab(selectedTab.index);
|
|
@@ -29,32 +37,19 @@ const EzTabselector = class {
|
|
|
29
37
|
else {
|
|
30
38
|
return;
|
|
31
39
|
}
|
|
40
|
+
const step = operator ? 1 : -1;
|
|
41
|
+
const baseIndex = this._focusedIndex !== undefined ? this._focusedIndex : this.selectedIndex;
|
|
42
|
+
this._focusedIndex = this.findNextEnabledIndex(baseIndex, step);
|
|
32
43
|
if (this._focusedIndex === undefined) {
|
|
33
|
-
|
|
34
|
-
this._focusedIndex = this.selectedIndex !== undefined ? this.selectedIndex - 1 : undefined;
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
this._focusedIndex = this.selectedIndex !== undefined ? this.selectedIndex + 1 : undefined;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
if (operator === false) {
|
|
42
|
-
this._focusedIndex = this._focusedIndex - 1;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
this._focusedIndex = this._focusedIndex + 1;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if (this._focusedIndex < 0) {
|
|
49
|
-
this._focusedIndex = 0;
|
|
50
|
-
}
|
|
51
|
-
else if (this._focusedIndex > this._processedTabs.length - 1) {
|
|
52
|
-
this._focusedIndex = this._processedTabs.length - 1;
|
|
44
|
+
return;
|
|
53
45
|
}
|
|
54
46
|
this.setFocusedBtn(true, this._focusedIndex);
|
|
55
47
|
this.setFocusedTab(this._focusedIndex);
|
|
56
48
|
}
|
|
57
49
|
else if (ev.key === "Tab" || ev.key === "Escape") {
|
|
50
|
+
if (!this._processedTabs || this.selectedIndex === undefined) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
58
53
|
const currentTab = this._processedTabs[this.selectedIndex];
|
|
59
54
|
this._focusedIndex = undefined;
|
|
60
55
|
this.handleTabClick(currentTab);
|
|
@@ -62,10 +57,12 @@ const EzTabselector = class {
|
|
|
62
57
|
this.setFocusedTab(this.selectedIndex);
|
|
63
58
|
}
|
|
64
59
|
};
|
|
60
|
+
this._dragOverIndex = undefined;
|
|
65
61
|
this._processedTabs = undefined;
|
|
66
62
|
this.selectedIndex = undefined;
|
|
67
63
|
this.selectedTab = undefined;
|
|
68
64
|
this.tabs = undefined;
|
|
65
|
+
this.reorderable = false;
|
|
69
66
|
}
|
|
70
67
|
observeTabs(newValue, oldValue) {
|
|
71
68
|
if (newValue && typeof newValue !== "string") {
|
|
@@ -76,23 +73,72 @@ const EzTabselector = class {
|
|
|
76
73
|
this.processesTabs();
|
|
77
74
|
}
|
|
78
75
|
}
|
|
76
|
+
observeSelectedIndex(newValue, oldValue) {
|
|
77
|
+
if (newValue !== oldValue && newValue !== undefined) {
|
|
78
|
+
this.scrollActiveTabIntoView(newValue);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
observeSelectedTab(newValue, oldValue) {
|
|
82
|
+
if (newValue !== oldValue && newValue !== undefined && this._processedTabs) {
|
|
83
|
+
const idx = this._processedTabs.findIndex(t => t.tabKey === newValue);
|
|
84
|
+
if (idx >= 0) {
|
|
85
|
+
this.scrollActiveTabIntoView(idx);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
79
89
|
async goToTab(tabIndex, silent = false) {
|
|
80
|
-
|
|
81
|
-
this.
|
|
90
|
+
var _a;
|
|
91
|
+
const tab = (_a = this._processedTabs) === null || _a === void 0 ? void 0 : _a.find(tab => tab.index === tabIndex);
|
|
92
|
+
if (tab) {
|
|
93
|
+
this.handleTabClick(tab, !silent);
|
|
94
|
+
}
|
|
82
95
|
}
|
|
83
96
|
handleTabClick(tab, emitChange = true) {
|
|
97
|
+
var _a;
|
|
98
|
+
if (tab.disabled) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
84
101
|
this.selectedIndex = tab.index;
|
|
85
102
|
this._focusedIndex = undefined;
|
|
86
103
|
this.selectedTab = tab.tabKey;
|
|
87
104
|
if (emitChange) {
|
|
88
|
-
this.ezChange.emit(tab);
|
|
105
|
+
(_a = this.ezChange) === null || _a === void 0 ? void 0 : _a.emit(tab);
|
|
89
106
|
}
|
|
90
107
|
this.setFocusedBtn(false, tab.index);
|
|
108
|
+
this.scrollActiveTabIntoView(tab.index);
|
|
91
109
|
}
|
|
92
|
-
|
|
93
|
-
|
|
110
|
+
scrollActiveTabIntoView(index) {
|
|
111
|
+
if (index === undefined) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
requestAnimationFrame(() => {
|
|
115
|
+
const container = this._scrollContainer;
|
|
116
|
+
if (!container) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const tabEl = container.querySelector(`#tab${index}`);
|
|
120
|
+
if (!tabEl) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const containerRect = container.getBoundingClientRect();
|
|
124
|
+
const tabRect = tabEl.getBoundingClientRect();
|
|
125
|
+
const buttonOffset = 48;
|
|
126
|
+
const visibleLeft = containerRect.left + (this._startHidden ? buttonOffset : 0);
|
|
127
|
+
const visibleRight = containerRect.right - (this._endHidden ? buttonOffset : 0);
|
|
128
|
+
let delta = 0;
|
|
129
|
+
if (tabRect.left < visibleLeft) {
|
|
130
|
+
delta = tabRect.left - visibleLeft;
|
|
131
|
+
}
|
|
132
|
+
else if (tabRect.right > visibleRight) {
|
|
133
|
+
delta = tabRect.right - visibleRight;
|
|
134
|
+
}
|
|
135
|
+
if (delta !== 0) {
|
|
136
|
+
container.scrollBy({ left: delta, behavior: "smooth" });
|
|
137
|
+
}
|
|
138
|
+
});
|
|
94
139
|
}
|
|
95
140
|
processesTabs() {
|
|
141
|
+
var _a;
|
|
96
142
|
if (this.tabs) {
|
|
97
143
|
if (Array.isArray(this.tabs)) {
|
|
98
144
|
this._processedTabs = [...this.tabs];
|
|
@@ -100,39 +146,30 @@ const EzTabselector = class {
|
|
|
100
146
|
else {
|
|
101
147
|
this._processedTabs = [];
|
|
102
148
|
this.tabs.split(",").forEach((label) => {
|
|
149
|
+
var _a;
|
|
103
150
|
label = label.trim();
|
|
104
|
-
this._processedTabs.push({ label, tabKey: label, index: this._processedTabs.length });
|
|
151
|
+
(_a = this._processedTabs) === null || _a === void 0 ? void 0 : _a.push({ label, tabKey: label, index: this._processedTabs.length });
|
|
105
152
|
this.buildElementIdTab(this._processedTabs);
|
|
106
153
|
});
|
|
107
154
|
}
|
|
108
155
|
}
|
|
109
|
-
this._hostElem.querySelectorAll("ez-tab").forEach((elem) => {
|
|
110
|
-
|
|
111
|
-
const
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
const
|
|
156
|
+
(_a = this._hostElem) === null || _a === void 0 ? void 0 : _a.querySelectorAll("ez-tab").forEach((elem) => {
|
|
157
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
158
|
+
const tabKey = (_a = elem.getAttribute("tabKey")) !== null && _a !== void 0 ? _a : 'tab';
|
|
159
|
+
const label = (_b = elem.getAttribute("label")) !== null && _b !== void 0 ? _b : 'tab';
|
|
160
|
+
const leftIcon = (_c = elem.getAttribute("leftIcon")) !== null && _c !== void 0 ? _c : undefined;
|
|
161
|
+
const rightIcon = (_d = elem.getAttribute("rightIcon")) !== null && _d !== void 0 ? _d : undefined;
|
|
162
|
+
const disabled = elem.hasAttribute("disabled");
|
|
163
|
+
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 };
|
|
115
164
|
const content = elem.firstChild;
|
|
116
165
|
if (content) {
|
|
117
166
|
content.setAttribute("slot", "tab" + tab.index);
|
|
118
|
-
this._hostElem.appendChild(content);
|
|
167
|
+
(_g = this._hostElem) === null || _g === void 0 ? void 0 : _g.appendChild(content);
|
|
119
168
|
}
|
|
120
|
-
this._processedTabs.push(tab);
|
|
169
|
+
(_h = this._processedTabs) === null || _h === void 0 ? void 0 : _h.push(tab);
|
|
121
170
|
this.buildElementIdTab(this._processedTabs);
|
|
122
171
|
});
|
|
123
172
|
}
|
|
124
|
-
componentDidRender() {
|
|
125
|
-
this.updateScroll();
|
|
126
|
-
}
|
|
127
|
-
componentDidLoad() {
|
|
128
|
-
core.ElementIDUtils.addIDInfo(this._hostElem, "itemsSelector");
|
|
129
|
-
this._hostElem.shadowRoot.querySelectorAll('button[name="tab-button"]').forEach((elem) => {
|
|
130
|
-
var _a;
|
|
131
|
-
const label = (_a = elem.querySelector('span.tab-label')) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
132
|
-
const dataInfo = { id: `${core.StringUtils.toCamelCase(label)}` };
|
|
133
|
-
core.ElementIDUtils.addIDInfo(elem, "itemSelector", dataInfo);
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
173
|
handleSlotChange(ev) {
|
|
137
174
|
const slot = ev.target;
|
|
138
175
|
const content = slot.assignedElements()[0];
|
|
@@ -155,10 +192,13 @@ const EzTabselector = class {
|
|
|
155
192
|
lastTab = tab;
|
|
156
193
|
}
|
|
157
194
|
});
|
|
158
|
-
|
|
195
|
+
if (lastTab) {
|
|
196
|
+
container.scrollLeft = lastTab.offsetLeft + lastTab.offsetWidth;
|
|
197
|
+
}
|
|
159
198
|
}
|
|
160
199
|
}
|
|
161
200
|
updateScroll() {
|
|
201
|
+
var _a, _b, _c, _d;
|
|
162
202
|
const container = this._scrollContainer;
|
|
163
203
|
if (container) {
|
|
164
204
|
const { scrollWidth, clientWidth, scrollLeft } = container;
|
|
@@ -166,16 +206,16 @@ const EzTabselector = class {
|
|
|
166
206
|
this._startHidden = container.scrollLeft > 0;
|
|
167
207
|
this._endHidden = remainingScroll > 0;
|
|
168
208
|
if (this._startHidden) {
|
|
169
|
-
this._backwardButton.classList.remove("hidden");
|
|
209
|
+
(_a = this._backwardButton) === null || _a === void 0 ? void 0 : _a.classList.remove("hidden");
|
|
170
210
|
}
|
|
171
211
|
else {
|
|
172
|
-
this._backwardButton.classList.add("hidden");
|
|
212
|
+
(_b = this._backwardButton) === null || _b === void 0 ? void 0 : _b.classList.add("hidden");
|
|
173
213
|
}
|
|
174
214
|
if (this._endHidden) {
|
|
175
|
-
this._forwardButton.classList.remove("hidden");
|
|
215
|
+
(_c = this._forwardButton) === null || _c === void 0 ? void 0 : _c.classList.remove("hidden");
|
|
176
216
|
}
|
|
177
217
|
else {
|
|
178
|
-
this._forwardButton.classList.add("hidden");
|
|
218
|
+
(_d = this._forwardButton) === null || _d === void 0 ? void 0 : _d.classList.add("hidden");
|
|
179
219
|
}
|
|
180
220
|
const classNames = ["", "startHidden", "endHidden", "middle"];
|
|
181
221
|
const currentClass = classNames[Number(this._startHidden) | Number(this._endHidden) << 1];
|
|
@@ -194,44 +234,152 @@ const EzTabselector = class {
|
|
|
194
234
|
this._scrollCallBack = window.setTimeout(() => { this.updateScroll(); }, 200);
|
|
195
235
|
}
|
|
196
236
|
setFocusedTab(index) {
|
|
237
|
+
if (index === undefined) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
197
240
|
window.clearTimeout(this._scrollCallBackTest);
|
|
198
241
|
this._scrollCallBackTest = window.setTimeout(() => {
|
|
199
|
-
|
|
200
|
-
tabtoscroll.
|
|
242
|
+
var _a;
|
|
243
|
+
const tabtoscroll = (_a = this._scrollContainer) === null || _a === void 0 ? void 0 : _a.querySelector(`#tab${index}`);
|
|
244
|
+
tabtoscroll === null || tabtoscroll === void 0 ? void 0 : tabtoscroll.scrollIntoView();
|
|
201
245
|
}, 200);
|
|
202
246
|
}
|
|
247
|
+
handleDragStart(ev, index) {
|
|
248
|
+
if (!this.reorderable) {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
this._dragSourceIndex = index;
|
|
252
|
+
if (ev.dataTransfer) {
|
|
253
|
+
ev.dataTransfer.effectAllowed = "move";
|
|
254
|
+
ev.dataTransfer.setData("text/plain", String(index));
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
handleDragOver(ev, index) {
|
|
258
|
+
if (!this.reorderable || this._dragSourceIndex === undefined) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
ev.preventDefault();
|
|
262
|
+
if (ev.dataTransfer) {
|
|
263
|
+
ev.dataTransfer.dropEffect = "move";
|
|
264
|
+
}
|
|
265
|
+
if (this._dragOverIndex !== index) {
|
|
266
|
+
this._dragOverIndex = index;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
handleDragLeave(index) {
|
|
270
|
+
if (this._dragOverIndex === index) {
|
|
271
|
+
this._dragOverIndex = undefined;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
handleDrop(ev, targetIndex) {
|
|
275
|
+
var _a;
|
|
276
|
+
if (!this.reorderable || this._dragSourceIndex === undefined || !this._processedTabs) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
ev.preventDefault();
|
|
280
|
+
const sourceIndex = this._dragSourceIndex;
|
|
281
|
+
this._dragSourceIndex = undefined;
|
|
282
|
+
this._dragOverIndex = undefined;
|
|
283
|
+
if (sourceIndex === targetIndex) {
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
const previouslySelectedKey = this.selectedTab;
|
|
287
|
+
const reordered = [...this._processedTabs];
|
|
288
|
+
const [moved] = reordered.splice(sourceIndex, 1);
|
|
289
|
+
reordered.splice(targetIndex, 0, moved);
|
|
290
|
+
reordered.forEach((tab, idx) => { tab.index = idx; });
|
|
291
|
+
this._processedTabs = reordered;
|
|
292
|
+
if (previouslySelectedKey !== undefined) {
|
|
293
|
+
const newSelected = reordered.findIndex(t => t.tabKey === previouslySelectedKey);
|
|
294
|
+
if (newSelected >= 0) {
|
|
295
|
+
this.selectedIndex = newSelected;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
(_a = this.ezReorder) === null || _a === void 0 ? void 0 : _a.emit(reordered);
|
|
299
|
+
}
|
|
300
|
+
handleDragEnd() {
|
|
301
|
+
this._dragSourceIndex = undefined;
|
|
302
|
+
this._dragOverIndex = undefined;
|
|
303
|
+
}
|
|
304
|
+
findNextEnabledIndex(from, step) {
|
|
305
|
+
if (!this._processedTabs || this._processedTabs.length === 0) {
|
|
306
|
+
return undefined;
|
|
307
|
+
}
|
|
308
|
+
const total = this._processedTabs.length;
|
|
309
|
+
let index = from === undefined ? (step > 0 ? -1 : total) : from;
|
|
310
|
+
for (let i = 0; i < total; i++) {
|
|
311
|
+
index += step;
|
|
312
|
+
if (index < 0 || index > total - 1) {
|
|
313
|
+
return from;
|
|
314
|
+
}
|
|
315
|
+
if (!this._processedTabs[index].disabled) {
|
|
316
|
+
return index;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
return from;
|
|
320
|
+
}
|
|
203
321
|
setFocusedBtn(visible, parameter) {
|
|
204
|
-
|
|
205
|
-
|
|
322
|
+
var _a;
|
|
323
|
+
if (parameter === undefined) {
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
const tabsButtons = (_a = this._scrollContainer) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".tab");
|
|
327
|
+
tabsButtons === null || tabsButtons === void 0 ? void 0 : tabsButtons.forEach((el) => {
|
|
206
328
|
el.classList.remove("is-focused");
|
|
207
329
|
if (el.id === "tab" + parameter && visible) {
|
|
208
330
|
el.classList.add("is-focused");
|
|
209
331
|
}
|
|
210
332
|
});
|
|
211
333
|
}
|
|
212
|
-
buildElementIdTab(tabs) {
|
|
334
|
+
buildElementIdTab(tabs = []) {
|
|
213
335
|
tabs.forEach(tab => {
|
|
336
|
+
var _a;
|
|
214
337
|
if (!tab.hasOwnProperty(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME)) {
|
|
215
|
-
const elemIdTabSelector = this._hostElem.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME);
|
|
338
|
+
const elemIdTabSelector = (_a = this._hostElem) === null || _a === void 0 ? void 0 : _a.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME);
|
|
216
339
|
const dataElementID = `${elemIdTabSelector}_${core.StringUtils.toCamelCase(tab.tabKey)}`;
|
|
217
340
|
tab[core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = dataElementID;
|
|
218
341
|
}
|
|
219
342
|
});
|
|
220
343
|
}
|
|
344
|
+
componentWillLoad() {
|
|
345
|
+
this.processesTabs();
|
|
346
|
+
}
|
|
347
|
+
componentDidRender() {
|
|
348
|
+
this.updateScroll();
|
|
349
|
+
}
|
|
350
|
+
componentDidLoad() {
|
|
351
|
+
var _a;
|
|
352
|
+
if (this._hostElem) {
|
|
353
|
+
core.ElementIDUtils.addIDInfo(this._hostElem, "itemsSelector");
|
|
354
|
+
(_a = this._hostElem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button[name="tab-button"]').forEach((elem) => {
|
|
355
|
+
var _a;
|
|
356
|
+
const label = (_a = elem.querySelector('span.tab-label')) === null || _a === void 0 ? void 0 : _a.innerText;
|
|
357
|
+
const dataInfo = { id: `${core.StringUtils.toCamelCase(label)}` };
|
|
358
|
+
core.ElementIDUtils.addIDInfo(elem, "itemSelector", dataInfo);
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
this.scrollActiveTabIntoView(this.selectedIndex);
|
|
362
|
+
}
|
|
221
363
|
render() {
|
|
222
|
-
|
|
364
|
+
var _a;
|
|
365
|
+
return (index.h(index.Host, null, index.h("button", { class: "backward-button", ref: (el) => this._backwardButton = el, onClick: () => this.scrollBackward() }), index.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$1) => {
|
|
223
366
|
const tabId = "tab" + index$1;
|
|
224
367
|
const isSelected = index$1 === this.selectedIndex || (this.selectedTab && tab.tabKey === this.selectedTab);
|
|
225
368
|
if (isSelected) {
|
|
226
369
|
this.selectedTab = tab.tabKey;
|
|
227
370
|
this.selectedIndex = index$1;
|
|
228
371
|
}
|
|
229
|
-
|
|
372
|
+
const isDraggable = this.reorderable && !tab.disabled;
|
|
373
|
+
const isDragOver = this.reorderable && this._dragOverIndex === index$1 && this._dragSourceIndex !== index$1;
|
|
374
|
+
const isDragging = this._dragSourceIndex === index$1;
|
|
375
|
+
return index.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$1), onDragOver: (ev) => this.handleDragOver(ev, index$1), onDragLeave: () => this.handleDragLeave(index$1), onDrop: (ev) => this.handleDrop(ev, index$1), onDragEnd: () => this.handleDragEnd() }, tab.leftIcon && index.h("ez-icon", { iconName: tab.leftIcon, class: "left-icon" }), index.h("span", { class: "tab-label", title: tab.label }, tab.label), tab.rightIcon && index.h("ez-icon", { iconName: tab.rightIcon, class: "right-icon" }), index.h("slot", { name: tabId, onSlotchange: (ev) => { this.handleSlotChange(ev); } }));
|
|
230
376
|
})), index.h("button", { class: "forward-button", ref: (el) => this._forwardButton = el, onClick: () => this.scrollFoward() })));
|
|
231
377
|
}
|
|
232
378
|
get _hostElem() { return index.getElement(this); }
|
|
233
379
|
static get watchers() { return {
|
|
234
|
-
"tabs": ["observeTabs"]
|
|
380
|
+
"tabs": ["observeTabs"],
|
|
381
|
+
"selectedIndex": ["observeSelectedIndex"],
|
|
382
|
+
"selectedTab": ["observeSelectedTab"]
|
|
235
383
|
}; }
|
|
236
384
|
};
|
|
237
385
|
EzTabselector.style = ezTabselectorCss;
|
|
@@ -50,6 +50,7 @@ const EzTextInput = class {
|
|
|
50
50
|
if (newValue != oldValue) {
|
|
51
51
|
this._inputElem.value = this.value || "";
|
|
52
52
|
this.handleChange();
|
|
53
|
+
this.applyMask(newValue);
|
|
53
54
|
this.adjustFloatingLabel();
|
|
54
55
|
this.checkIsOverflowing();
|
|
55
56
|
if (!this.isSlaveMode()) {
|
|
@@ -194,12 +195,9 @@ const EzTextInput = class {
|
|
|
194
195
|
const value = this._inputElem.value;
|
|
195
196
|
if (value && this._maskFormatter) {
|
|
196
197
|
try {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
else {
|
|
201
|
-
this._inputElem.value = this._maskFormatter.format(value);
|
|
202
|
-
}
|
|
198
|
+
const newMask = this.handleDefaultMask(value);
|
|
199
|
+
this._maskFormatter.mask = newMask;
|
|
200
|
+
this._inputElem.value = this._maskFormatter.format(this._maskFormatter.removeMask(value));
|
|
203
201
|
}
|
|
204
202
|
catch (e) {
|
|
205
203
|
this.errorMessage = e.message;
|
|
@@ -225,20 +223,33 @@ const EzTextInput = class {
|
|
|
225
223
|
}
|
|
226
224
|
}
|
|
227
225
|
}
|
|
226
|
+
handleDefaultMask(value = this.value) {
|
|
227
|
+
if (this.mask === "cgc_cpf") {
|
|
228
|
+
if (value && value.length <= 11) {
|
|
229
|
+
this.mask = core.MaskFormatter.DEFAULT_MASKS["cpf"];
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
this.mask = core.MaskFormatter.DEFAULT_MASKS["cnpj"];
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return this.mask;
|
|
236
|
+
}
|
|
228
237
|
applyMask(value) {
|
|
229
238
|
if (!value || value === "")
|
|
230
239
|
return value;
|
|
231
240
|
if (this._maskFormatter) {
|
|
232
241
|
try {
|
|
242
|
+
const newMask = this.handleDefaultMask(value);
|
|
243
|
+
this._maskFormatter.mask = newMask;
|
|
233
244
|
const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
|
|
234
245
|
if (this._inputElem) {
|
|
235
246
|
this._inputElem.value = formattedValue;
|
|
236
247
|
return this._inputElem.value;
|
|
237
248
|
}
|
|
238
|
-
|
|
249
|
+
if (!this.cleanValueMask) {
|
|
239
250
|
this.value = formattedValue;
|
|
240
|
-
return this.value;
|
|
241
251
|
}
|
|
252
|
+
return this.value;
|
|
242
253
|
}
|
|
243
254
|
catch (e) {
|
|
244
255
|
this.errorMessage = e.message;
|
|
@@ -305,7 +316,7 @@ const EzTextInput = class {
|
|
|
305
316
|
this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
|
|
306
317
|
}
|
|
307
318
|
getValue() {
|
|
308
|
-
return this.mask
|
|
319
|
+
return this.mask ? this.applyMask(this.value) : this.value;
|
|
309
320
|
}
|
|
310
321
|
buildLabelClass() {
|
|
311
322
|
let classList = this.enabled ? 'input__label' : 'input__label input__label--disabled';
|
|
@@ -336,12 +347,7 @@ const EzTextInput = class {
|
|
|
336
347
|
if (this.value) {
|
|
337
348
|
if (this._maskFormatter) {
|
|
338
349
|
try {
|
|
339
|
-
|
|
340
|
-
this.applyMask(this.value);
|
|
341
|
-
}
|
|
342
|
-
else {
|
|
343
|
-
this.value = this._maskFormatter.format(this.value);
|
|
344
|
-
}
|
|
350
|
+
this.applyMask(this.value);
|
|
345
351
|
}
|
|
346
352
|
catch (e) {
|
|
347
353
|
this.errorMessage = e.message;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
|
|
8
|
-
const index$1 = require('./index-
|
|
8
|
+
const index$1 = require('./index-9739c242.js');
|
|
9
9
|
|
|
10
10
|
const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}.time__input{height:100%}";
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
|
-
const floatingUi_dom_esm = require('./floating-ui.dom.esm-
|
|
6
|
+
const floatingUi_dom_esm = require('./floating-ui.dom.esm-9c8bfebb.js');
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
|
|
9
9
|
const ezTooltipCss = ":host{--ez-tooltip--triangle-size:var(--space--8);--ez-tooltip--z-index:var(--elevation--24);--ez-tooltip--padding:var(--space--4) var(--space--8);--ez-tooltip--border-radius:var(--border--radius-8);--ez-tooltip--font-family:var(--font--pattern);--ez-tooltip--font-size:var(--font-size--small);--ez-tooltip--font-weight:var(--font-weight--regular);width:100%}.tooltip{position:absolute;z-index:var(--ez-tooltip--z-index);padding:var(--ez-tooltip--padding);border-radius:var(--ez-tooltip--border-radius);box-sizing:border-box;font-family:var(--ez-tooltip--font-family);font-size:var(--ez-tooltip--font-size);font-weight:var(--ez-tooltip--font-weight);text-align:center;width:max-content;display:none}.tooltip[data-strategy=\"fixed\"]{position:fixed}.arrow{position:absolute;width:var(--ez-tooltip--triangle-size);height:var(--ez-tooltip--triangle-size);transform:rotate(45deg)}.tooltip[data-type=\"default\"]{background:var(--color--petroleum-600);color:var(--color--gray-70)}.tooltip[data-type=\"default\"] .arrow{background:var(--color--petroleum-600)}.tooltip[data-type=\"error\"]{background:var(--color--red-600);color:var(--color--red-100)}.tooltip[data-type=\"error\"] .arrow{background:var(--color--red-600)}.tooltip[data-type=\"success\"]{background:var(--color--green-600);color:var(--color--green-100)}.tooltip[data-type=\"success\"] .arrow{background:var(--color--green-600)}.tooltip[data-type=\"warning\"]{background:var(--color--yellow-600);color:var(--color--yellow-100)}.tooltip[data-type=\"warning\"] .arrow{background:var(--color--yellow-600)}.tooltip[data-active=\"false\"]{display:none !important}";
|
|
@@ -54,6 +54,39 @@ const EzTooltip = class {
|
|
|
54
54
|
this._tooltipElement.style.display = 'none';
|
|
55
55
|
this._opened = false;
|
|
56
56
|
}
|
|
57
|
+
updatePositionArrow(middlewareData, placement) {
|
|
58
|
+
const { x, y } = middlewareData.arrow;
|
|
59
|
+
Object.assign(this._arrowElement.style, {
|
|
60
|
+
left: '',
|
|
61
|
+
right: '',
|
|
62
|
+
top: '',
|
|
63
|
+
bottom: '',
|
|
64
|
+
});
|
|
65
|
+
if (placement.startsWith('bottom')) {
|
|
66
|
+
Object.assign(this._arrowElement.style, {
|
|
67
|
+
left: x != null ? `${x}px` : '',
|
|
68
|
+
top: `${-this._arrowElement.offsetHeight / 2}px`,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
else if (placement.startsWith('top')) {
|
|
72
|
+
Object.assign(this._arrowElement.style, {
|
|
73
|
+
left: x != null ? `${x}px` : '',
|
|
74
|
+
bottom: `${-this._arrowElement.offsetHeight / 2}px`,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
else if (placement.startsWith('left')) {
|
|
78
|
+
Object.assign(this._arrowElement.style, {
|
|
79
|
+
right: `${-this._arrowElement.offsetWidth / 2}px`,
|
|
80
|
+
top: y != null ? `${y}px` : '',
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
else if (placement.startsWith('right')) {
|
|
84
|
+
Object.assign(this._arrowElement.style, {
|
|
85
|
+
left: `${-this._arrowElement.offsetWidth / 2}px`,
|
|
86
|
+
top: y != null ? `${y}px` : '',
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
57
90
|
async updatePosition(element = this.anchoringElement) {
|
|
58
91
|
if (!element || !this._opened) {
|
|
59
92
|
return;
|
|
@@ -83,13 +116,7 @@ const EzTooltip = class {
|
|
|
83
116
|
left: `${newLeft}px`,
|
|
84
117
|
});
|
|
85
118
|
if (middlewareData.arrow) {
|
|
86
|
-
|
|
87
|
-
const onBottom = placement.includes("bottom");
|
|
88
|
-
Object.assign(this._arrowElement.style, {
|
|
89
|
-
left: `${x}px`,
|
|
90
|
-
top: onBottom ? `${-this._arrowElement.offsetHeight / 2}px` : '',
|
|
91
|
-
bottom: !onBottom ? `${-this._arrowElement.offsetHeight / 2}px` : '',
|
|
92
|
-
});
|
|
119
|
+
this.updatePositionArrow(middlewareData, placement);
|
|
93
120
|
}
|
|
94
121
|
});
|
|
95
122
|
});
|
|
@@ -99,6 +126,16 @@ const EzTooltip = class {
|
|
|
99
126
|
const content = slot.assignedElements()[0];
|
|
100
127
|
this.anchoringElement = content;
|
|
101
128
|
}
|
|
129
|
+
anchoringOnSlotElement() {
|
|
130
|
+
var _a;
|
|
131
|
+
const slotElement = (_a = this._element.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot');
|
|
132
|
+
if (slotElement && typeof slotElement.assignedElements === 'function') {
|
|
133
|
+
const assignedElements = slotElement.assignedElements();
|
|
134
|
+
if (assignedElements && assignedElements.length > 0) {
|
|
135
|
+
this.anchoringElement = assignedElements[0];
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
102
139
|
setEvents(element = this.anchoringElement) {
|
|
103
140
|
if (!element) {
|
|
104
141
|
return;
|
|
@@ -132,6 +169,7 @@ const EzTooltip = class {
|
|
|
132
169
|
this.initializeTooltip();
|
|
133
170
|
}
|
|
134
171
|
componentDidLoad() {
|
|
172
|
+
this.anchoringOnSlotElement();
|
|
135
173
|
this.initializeTooltip();
|
|
136
174
|
}
|
|
137
175
|
addInfoId() {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const index$1 = require('./index-
|
|
7
|
+
const index$1 = require('./index-9739c242.js');
|
|
8
8
|
|
|
9
9
|
const ICON_EXPANDED = "chevron-down";
|
|
10
10
|
const ICON_COLAPSED = "chevron-right";
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const ApplicationUtils = require('./ApplicationUtils-
|
|
8
|
-
const index$1 = require('./index-
|
|
7
|
+
const ApplicationUtils = require('./ApplicationUtils-88dfe345.js');
|
|
8
|
+
const index$1 = require('./index-9739c242.js');
|
|
9
9
|
require('./DialogType-2114c337.js');
|
|
10
10
|
|
|
11
11
|
class RemoteFile {
|