@sankhyalabs/ezui 6.1.0-dev.20 → 6.1.0-dev.21
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-c9d1205c.js → ApplicationUtils-39807831.js} +43 -15
- package/dist/cjs/{RichToolbarHelper-438916fa.js → RichToolbarHelper-ea12328f.js} +0 -13
- package/dist/cjs/app-globals-86776e90.js +12 -0
- package/dist/cjs/{constants-569271bc.js → constants-72b7e05e.js} +0 -2
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +5 -3
- package/dist/cjs/ez-avatar.cjs.entry.js +6 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +7 -6
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +13 -10
- package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +24 -14
- package/dist/cjs/ez-combo-box.cjs.entry.js +7 -6
- package/dist/cjs/ez-date-input.cjs.entry.js +5 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +5 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +8 -6
- package/dist/cjs/ez-double-list.cjs.entry.js +12 -4
- package/dist/cjs/ez-file-item.cjs.entry.js +9 -6
- package/dist/cjs/ez-form-view.cjs.entry.js +3 -2
- package/dist/cjs/ez-form.cjs.entry.js +3 -2
- package/dist/cjs/ez-grid.cjs.entry.js +126 -127
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +5 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +33 -13
- package/dist/cjs/ez-list.cjs.entry.js +4 -2
- package/dist/cjs/ez-modal-container.cjs.entry.js +5 -1
- package/dist/cjs/ez-modal.cjs.entry.js +5 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +9 -5
- package/dist/cjs/ez-number-input.cjs.entry.js +5 -1
- package/dist/cjs/ez-search-plus.cjs.entry.js +8 -6
- package/dist/cjs/ez-search-result-list.cjs.entry.js +5 -2
- package/dist/cjs/ez-search.cjs.entry.js +8 -9
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +5 -7
- package/dist/cjs/ez-skeleton.cjs.entry.js +5 -3
- package/dist/cjs/ez-sortable-list.cjs.entry.js +12 -5
- package/dist/cjs/ez-split-button.cjs.entry.js +5 -4
- package/dist/cjs/ez-split-item.cjs.entry.js +6 -2
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +12 -10
- package/dist/cjs/ez-tree.cjs.entry.js +5 -1
- package/dist/cjs/ez-upload.cjs.entry.js +17 -11
- package/dist/cjs/ezui.cjs.js +4 -0
- package/dist/cjs/filter-column.cjs.entry.js +8 -4
- package/dist/cjs/index-02854309.js +3672 -0
- package/dist/cjs/loader.cjs.js +4 -0
- package/dist/cjs/{search-column-27d1f72f.js → search-column-82c52e20.js} +11 -5
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +5 -3
- package/dist/collection/components/ez-avatar/ez-avatar.js +5 -1
- package/dist/collection/components/ez-calendar/ez-calendar.js +7 -6
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -9
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +7 -4
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +7 -7
- package/dist/collection/components/ez-date-input/ez-date-input.js +5 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +5 -1
- package/dist/collection/components/ez-dialog/ez-dialog.js +8 -6
- package/dist/collection/components/ez-double-list/ez-double-list.js +12 -4
- package/dist/collection/components/ez-file-item/ez-file-item.js +9 -6
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +3 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +10 -9
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +3 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js +67 -0
- package/dist/collection/components/ez-grid/ez-grid.js +15 -13
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -3
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +2 -2
- package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js +11 -7
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +5 -1
- package/dist/collection/components/ez-list/ez-list.js +4 -2
- package/dist/collection/components/ez-modal/ez-modal.js +5 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +5 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +9 -5
- package/dist/collection/components/ez-number-input/ez-number-input.js +5 -1
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +5 -1
- package/dist/collection/components/ez-rich-text/ez-rich-text.js +13 -9
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +0 -12
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +6 -2
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +6 -2
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +6 -2
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +8 -4
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +9 -5
- package/dist/collection/components/ez-search/ez-search.js +7 -8
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +7 -5
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +5 -2
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js +5 -2
- package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +0 -1
- package/dist/collection/components/ez-skeleton/ez-skeleton.js +4 -2
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +15 -11
- package/dist/collection/components/ez-split-button/ez-split-button.js +6 -6
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +5 -1
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +5 -1
- package/dist/collection/components/ez-text-input/ez-text-input.js +1 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js +12 -10
- package/dist/collection/components/ez-tree/ez-tree.js +5 -1
- package/dist/collection/components/ez-upload/ez-upload.js +18 -12
- package/dist/collection/global/app-init.js +6 -0
- package/dist/collection/setupTests.js +1 -1
- package/dist/collection/utils/ApplicationUtils.js +43 -15
- package/dist/collection/utils/constants.js +0 -1
- package/dist/collection/utils/i18n/elanguages.js +6 -0
- package/dist/collection/utils/i18n/i18nUtils.js +20 -0
- package/dist/collection/utils/i18n/index.js +30 -0
- package/dist/collection/utils/i18n/locales/en-us.js +275 -0
- package/dist/collection/utils/i18n/locales/es-es.js +275 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +275 -0
- package/dist/collection/utils/i18n/translations.js +9 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +8 -2
- package/dist/custom-elements/index.js +4056 -278
- package/dist/esm/{ApplicationUtils-eaf91331.js → ApplicationUtils-72f474e8.js} +43 -15
- package/dist/esm/{RichToolbarHelper-fd6427df.js → RichToolbarHelper-f3a149c4.js} +1 -13
- package/dist/esm/app-globals-2ccb253f.js +10 -0
- package/dist/esm/{constants-b036528f.js → constants-3fabe81e.js} +1 -2
- package/dist/esm/ez-actions-button.entry.js +2 -1
- package/dist/esm/ez-alert-list.entry.js +5 -3
- package/dist/esm/ez-avatar.entry.js +6 -1
- package/dist/esm/ez-calendar.entry.js +7 -6
- package/dist/esm/ez-collapsible-box.entry.js +13 -10
- package/dist/esm/ez-combo-box-list_4.entry.js +24 -14
- package/dist/esm/ez-combo-box.entry.js +7 -6
- package/dist/esm/ez-date-input.entry.js +5 -1
- package/dist/esm/ez-date-time-input.entry.js +5 -1
- package/dist/esm/ez-dialog.entry.js +8 -6
- package/dist/esm/ez-double-list.entry.js +12 -4
- package/dist/esm/ez-file-item.entry.js +9 -6
- package/dist/esm/ez-form-view.entry.js +3 -2
- package/dist/esm/ez-form.entry.js +3 -2
- package/dist/esm/ez-grid.entry.js +108 -109
- package/dist/esm/ez-guide-navigator.entry.js +5 -1
- package/dist/esm/ez-link-builder_6.entry.js +33 -13
- package/dist/esm/ez-list.entry.js +4 -2
- package/dist/esm/ez-modal-container.entry.js +5 -1
- package/dist/esm/ez-modal.entry.js +5 -1
- package/dist/esm/ez-multi-selection-list.entry.js +9 -5
- package/dist/esm/ez-number-input.entry.js +5 -1
- package/dist/esm/ez-search-plus.entry.js +8 -6
- package/dist/esm/ez-search-result-list.entry.js +5 -2
- package/dist/esm/ez-search.entry.js +8 -9
- package/dist/esm/ez-sidebar-navigator.entry.js +5 -7
- package/dist/esm/ez-skeleton.entry.js +5 -3
- package/dist/esm/ez-sortable-list.entry.js +12 -5
- package/dist/esm/ez-split-button.entry.js +5 -4
- package/dist/esm/ez-split-item.entry.js +6 -2
- package/dist/esm/ez-text-input.entry.js +1 -0
- package/dist/esm/ez-time-input.entry.js +12 -10
- package/dist/esm/ez-tree.entry.js +5 -1
- package/dist/esm/ez-upload.entry.js +17 -11
- package/dist/esm/ezui.js +4 -0
- package/dist/esm/filter-column.entry.js +8 -4
- package/dist/esm/index-b623906e.js +3669 -0
- package/dist/esm/loader.js +4 -0
- package/dist/esm/{search-column-e609d513.js → search-column-5a55f676.js} +9 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-0603bcc7.entry.js +1 -0
- package/dist/ezui/p-0ec7aa3a.entry.js +1 -0
- package/dist/ezui/p-0f0f3efe.entry.js +1 -0
- package/dist/ezui/p-1c3efd36.entry.js +1 -0
- package/dist/ezui/p-1ffb75d5.js +1 -0
- package/dist/ezui/p-22934e19.entry.js +1 -0
- package/dist/ezui/p-2f471aca.entry.js +1 -0
- package/dist/ezui/p-303b3b8c.entry.js +1 -0
- package/dist/ezui/p-3b89a9a0.entry.js +1 -0
- package/dist/ezui/p-3e71ca08.entry.js +1 -0
- package/dist/ezui/p-3e767a74.js +1 -0
- package/dist/ezui/p-3e88fbb6.entry.js +1 -0
- package/dist/ezui/p-4044a7d7.entry.js +1 -0
- package/dist/ezui/p-45c9b292.entry.js +1 -0
- package/dist/ezui/p-45e64547.entry.js +1 -0
- package/dist/ezui/p-46913da7.js +1 -0
- package/dist/ezui/p-4773ff4c.js +1 -0
- package/dist/ezui/p-4fc5f926.entry.js +1 -0
- package/dist/ezui/p-53bc30a1.entry.js +1 -0
- package/dist/ezui/p-627ff5a2.entry.js +1 -0
- package/dist/ezui/p-629e32e2.entry.js +1 -0
- package/dist/ezui/{p-66354b29.entry.js → p-6562b5c8.entry.js} +46 -46
- package/dist/ezui/p-6e6fccfb.entry.js +1 -0
- package/dist/ezui/{p-ad0deb16.entry.js → p-713dc93e.entry.js} +1 -1
- package/dist/ezui/p-84a136bf.entry.js +1 -0
- package/dist/ezui/p-973e6a40.entry.js +1 -0
- package/dist/ezui/p-a12f6074.entry.js +1 -0
- package/dist/ezui/p-a482aae1.entry.js +1 -0
- package/dist/ezui/p-a687f14c.entry.js +7 -0
- package/dist/ezui/p-adbc3261.entry.js +1 -0
- package/dist/ezui/p-b115058e.entry.js +1 -0
- package/dist/ezui/p-b1e45320.js +1 -0
- package/dist/ezui/p-b4215a04.entry.js +1 -0
- package/dist/ezui/p-b8ed876d.entry.js +1 -0
- package/dist/ezui/p-ba07b3df.js +1 -0
- package/dist/ezui/p-c00ad772.entry.js +1 -0
- package/dist/ezui/p-c2a8139d.entry.js +1 -0
- package/dist/ezui/p-caf2584a.entry.js +1 -0
- package/dist/ezui/p-d1d0868b.entry.js +1 -0
- package/dist/ezui/p-e5260556.entry.js +1 -0
- package/dist/ezui/p-ed3bed1e.entry.js +1 -0
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +2 -1
- package/dist/types/components/ez-avatar/ez-avatar.d.ts +2 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +2 -3
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +2 -0
- package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +2 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +2 -2
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +2 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +2 -0
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -2
- package/dist/types/components/ez-double-list/ez-double-list.d.ts +2 -0
- package/dist/types/components/ez-file-item/ez-file-item.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +5 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/utils/buildLocaleText.d.ts +66 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +2 -2
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +2 -0
- package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +2 -0
- package/dist/types/components/ez-grid/subcomponents/utils/selectionCounterUtils.d.ts +2 -2
- package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +2 -0
- package/dist/types/components/ez-list/ez-list.d.ts +2 -1
- package/dist/types/components/ez-modal/ez-modal.d.ts +2 -0
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +2 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +2 -0
- package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +2 -0
- package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +2 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +0 -12
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +2 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +2 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +2 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +2 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +2 -0
- package/dist/types/components/ez-search/ez-search.d.ts +2 -3
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +2 -1
- package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +2 -1
- package/dist/types/components/ez-sidebar-navigator/ez-sidebar-navigator.d.ts +2 -0
- package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +0 -1
- package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +2 -1
- package/dist/types/components/ez-sortable-list/ez-sortable-list.d.ts +2 -0
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +2 -2
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +2 -0
- package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +2 -0
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +2 -1
- package/dist/types/components/ez-tree/ez-tree.d.ts +2 -0
- package/dist/types/components/ez-upload/ez-upload.d.ts +3 -1
- package/dist/types/global/app-init.d.ts +1 -0
- package/dist/types/utils/ApplicationUtils.d.ts +3 -1
- package/dist/types/utils/constants.d.ts +0 -1
- package/dist/types/utils/i18n/elanguages.d.ts +5 -0
- package/dist/types/utils/i18n/i18nUtils.d.ts +2 -0
- package/dist/types/utils/i18n/index.d.ts +5 -0
- package/dist/types/utils/i18n/locales/en-us.d.ts +276 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +276 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +276 -0
- package/dist/types/utils/i18n/translations.d.ts +828 -0
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -0
- package/package.json +7 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +0 -75
- package/dist/collection/components/ez-sidebar-navigator/messages/constants.js +0 -5
- package/dist/ezui/p-0306dff7.entry.js +0 -1
- package/dist/ezui/p-07894c4a.entry.js +0 -1
- package/dist/ezui/p-09de35a2.entry.js +0 -1
- package/dist/ezui/p-1276ef79.entry.js +0 -1
- package/dist/ezui/p-1cebdc92.js +0 -1
- package/dist/ezui/p-1eb34cad.entry.js +0 -1
- package/dist/ezui/p-2187f86c.js +0 -1
- package/dist/ezui/p-33326ac5.entry.js +0 -1
- package/dist/ezui/p-3ba9565c.entry.js +0 -1
- package/dist/ezui/p-454bba13.entry.js +0 -1
- package/dist/ezui/p-496f7832.entry.js +0 -1
- package/dist/ezui/p-4bb47bbe.entry.js +0 -1
- package/dist/ezui/p-4bd6dd6a.entry.js +0 -1
- package/dist/ezui/p-555c9018.entry.js +0 -1
- package/dist/ezui/p-57363cfd.entry.js +0 -1
- package/dist/ezui/p-58f69d24.entry.js +0 -1
- package/dist/ezui/p-59561756.entry.js +0 -7
- package/dist/ezui/p-5eea9886.js +0 -1
- package/dist/ezui/p-6bcf4ba2.entry.js +0 -1
- package/dist/ezui/p-6e429cff.entry.js +0 -1
- package/dist/ezui/p-7019f782.entry.js +0 -1
- package/dist/ezui/p-77a4bd35.entry.js +0 -1
- package/dist/ezui/p-7eae6986.entry.js +0 -1
- package/dist/ezui/p-9478b13b.entry.js +0 -1
- package/dist/ezui/p-98ee5c31.entry.js +0 -1
- package/dist/ezui/p-998afb6a.entry.js +0 -1
- package/dist/ezui/p-a148e994.entry.js +0 -1
- package/dist/ezui/p-ad79f9d1.entry.js +0 -1
- package/dist/ezui/p-b796e213.entry.js +0 -1
- package/dist/ezui/p-bac0f920.entry.js +0 -1
- package/dist/ezui/p-bff24a7b.js +0 -1
- package/dist/ezui/p-da1b4a38.entry.js +0 -1
- package/dist/ezui/p-dc73e1fe.entry.js +0 -1
- package/dist/ezui/p-ddd1e05f.entry.js +0 -1
- package/dist/ezui/p-e4528470.entry.js +0 -1
- package/dist/ezui/p-e6a9041d.entry.js +0 -1
- package/dist/ezui/p-ec0d8122.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +0 -2
- package/dist/types/components/ez-sidebar-navigator/messages/constants.d.ts +0 -5
|
@@ -2,6 +2,7 @@ import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getE
|
|
|
2
2
|
import { D as DialogType } from './DialogType-54a62731.js';
|
|
3
3
|
import { FloatingManager, ElementIDUtils, KeyboardManager } from '@sankhyalabs/core';
|
|
4
4
|
import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
|
|
5
|
+
import { i as initI18n } from './index-b623906e.js';
|
|
5
6
|
|
|
6
7
|
const ezDialogCss = ":host{--dialog__container-padding:var(--space--md, 20px);--dialog__btn__close--background-color:var(--title--primary, #2b3a54);--dialog__btn__no--padding-right:var(--space--large, 24px);--dialog__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>');--dialog__title--font-pattern:var(--font-pattern, \"Roboto\");--dialog__title--padding-left:var(--space--small, 6px);--dialog__title__container--padding-bottom:var(--space--medium, 12px);--dialog__title--weight--large:var(--text-weight--large, 600);--dialog__body--font-pattern:var(--font-pattern, \"Roboto\");--dialog__body--text-shadow:var(--text-shadow, \"0 0 0 #353535, 0 0 1px transparent\");--dialog__body--text-weight--medium:var(--text-weight--medium, 400);--dialog__body--padding-bottom:var(--space--medium, 12px);--dialog__body--font-size:var(--text--medium, 14px);--dialog__body--color:var(--text--primary, #626e82);--dialog__icon--color:var(--text--inverted, #fff);--dialog__critical--background-color:var(--color--alert-error-800, #BD0025);--dialog__warning--background-color:var(--color--alert-warning-500, #EFB103);--dialog__success--background-color:var(--color--alert-success-500, #00523c);--dialog-z-index:var(--elevation--100, 100);--dialog--warning__image:url('data: image/svg+xml;utf8,<svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.5,0 0,13 h 15 z m 0,2.73684 5.1341,8.89476 H 2.36591 Z M 6.81818,5.47368 V 8.21053 H 8.18182 V 5.47368 Z m 0,4.10527 V 10.9474 H 8.18182 V 9.57895\"/></svg>');--dialog--critical__image:url('data: image/svg+xml;utf8,<svg width=\"13\" height=\"13\" viewBox=\"0 0 13 13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.6534493,6.4948538 12.762051,1.3864299 C 12.914368,1.2341297 13,1.027552 13,0.81215179 13,0.59676225 12.914369,0.39018443 12.762051,0.23787352 12.609733,0.08557341 12.40318,0 12.187747,0 11.972425,0 11.765762,0.08557341 11.613445,0.23787352 L 6.5048431,5.3462975 1.3961977,0.23787352 C 1.2438802,0.08557341 1.0373043,0 0.82189458,0 0.60649572,0 0.39990901,0.08557341 0.24759147,0.23787352 0.09527396,0.39018443 0.00970766,0.59676225 0.00970766,0.81215179 c 0,0.21540021 0.0855663,0.42197791 0.23788381,0.57427811 L 5.3562369,6.4948538 0.24759147,11.604381 c -0.0775121,0.07492 -0.13931586,0.164543 -0.18182835,0.263595 -0.04250169,0.09905 -0.064850182,0.205678 -0.0657357237,0.313391 -8.8554258e-4,0.107813 0.0197049337,0.214771 0.0605827337,0.314472 0.04086693,0.0998 0.10119858,0.190415 0.17746563,0.266625 0.0762779,0.07622 0.16695386,0.136398 0.26675594,0.177208 0.099802,0.04082 0.20672745,0.06127 0.31452961,0.06029 0.1078025,-9.53e-4 0.21433799,-0.0235 0.31337139,-0.06604 0.099045,-0.04265 0.1886052,-0.104571 0.263465,-0.182081 L 6.5048431,7.6434102 11.613445,12.751855 c 0.152317,0.152312 0.35898,0.237831 0.574302,0.237831 0.215433,0 0.421986,-0.08552 0.574304,-0.237831 C 12.914368,12.599545 13,12.393 13,12.177578 13,11.962157 12.91437,11.75561 12.762051,11.603299 Z\"/></svg>')}h2{margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px}.overlay{position:fixed;display:flex;top:0px;z-index:var(--dialog-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.dialog{display:flex;width:80%;position:absolute;top:50%;left:50%;margin-right:-50%;box-sizing:border-box;transform:translate(-50%, -50%);box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122)}@media screen and (min-width: 768px){.dialog{width:50%}}@media screen and (min-width: 992px){.dialog{width:33.33333%}}.dialog__container{width:100%;background:#FFFF;border-radius:0px 6px 6px 0px;box-sizing:border-box;padding:var(--dialog__container-padding)}.dialog__container--default{border-radius:6px 6px 6px 6px}.dialog__critical--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--dialog__critical--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__warning--background-color)}.dialog__success--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__success--background-color)}.message{font-size:var(--dialog__body--font-size);font-weight:var(--dialog__body--text-weight--medium);font-family:var(--dialog__body--font-pattern);text-shadow:var(--dialog__body--text-shadow);padding-bottom:var(--dialog__body--padding-bottom);color:var(--dialog__body--color);max-height:30vh;content-visibility:auto;margin-bottom:var(--space--medium);overflow-y:auto}.changeable__icon__container{background:var(--dialog__warning--background-color);display:flex;justify-content:center;align-items:center;min-width:26px;min-height:26px;border-radius:50%}.changeable__icon{--ez-icon--color:var(--dialog__icon--color)}.changeable__icon__container.title-icon--critical{background-color:var(--dialog__critical--background-color)}.changeable__icon__container.title-icon--success{background-color:var(--dialog__success--background-color)}.changeable__icon__container.title-icon--warn{background-color:var(--dialog__warning--background-color)}.changeable__icon__container.title-icon--warn ez-icon{transform:translateY(-1px)}.title{display:flex;font-family:var(--dialog__title--font-pattern);margin:0;font-weight:var(--dialog__title--weight--large);color:var(--title--primary)}.title__container{display:flex;padding-bottom:var(--dialog__title__container--padding-bottom)}.title__box{display:flex;width:100%;align-items:center;align-self:center}.title__label{padding-left:var(--dialog__title--padding-left)}.title__label--no-icon{padding-left:0}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--dialog__btn__close--background-color);width:12px;height:12px;-webkit-mask-image:var(--dialog__btn__close__image);mask-image:var(--dialog__btn__close__image)}.title-icon::after{content:'';display:flex;background-color:#FFFF;width:15px;height:15px;-webkit-mask-image:var(--dialog--warning__image);mask-image:var(--dialog--warning__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__cancel{padding-right:var(--dialog__btn__no--padding-right)}.button__confirm{--ez-button--background-color:var(--color--primary);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color--primary-600);--ez-button--hover-color:var(--color--inverted)}.button__confirm--danger{--ez-button--background-color:var(--color--alert-error-800, #BD0025);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color-alert--error-900, #a10020);--ez-button--hover-color:var(--color--inverted)}.button__confirm--container{display:flex;justify-content:flex-end}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
7
8
|
|
|
@@ -25,8 +26,6 @@ const EzDialog = class {
|
|
|
25
26
|
this.ezCancel = createEvent(this, "ezCancel", 7);
|
|
26
27
|
this.ezAccept = createEvent(this, "ezAccept", 7);
|
|
27
28
|
this.PRIMARY_BUTTON_ID = "EZ_DIALOG_PRIMARY_BUTTON";
|
|
28
|
-
this.labelConfirm = 'Sim';
|
|
29
|
-
this.labelCancel = 'Não';
|
|
30
29
|
this.btnConfirmDanger = false;
|
|
31
30
|
this._messageQueue = [];
|
|
32
31
|
this._canFocusOnPrimaryBtn = false;
|
|
@@ -143,6 +142,9 @@ const EzDialog = class {
|
|
|
143
142
|
getClassTitleLabel(message) {
|
|
144
143
|
return this.getIconElement(message) == undefined ? "title title__label title__label--no-icon" : "title title__label";
|
|
145
144
|
}
|
|
145
|
+
async componentWillLoad() {
|
|
146
|
+
this.i18n = await initI18n();
|
|
147
|
+
}
|
|
146
148
|
componentWillRender() {
|
|
147
149
|
if (!this._currentMessage) {
|
|
148
150
|
if (this._messageQueue.length > 0) {
|
|
@@ -150,7 +152,7 @@ const EzDialog = class {
|
|
|
150
152
|
}
|
|
151
153
|
else {
|
|
152
154
|
if (this.opened) {
|
|
153
|
-
this._currentMessage = new Message(this.ezTitle, this.message, this.dialogType, this.confirm, this.personalizedIconPath, this.
|
|
155
|
+
this._currentMessage = new Message(this.ezTitle, this.message, this.dialogType, this.confirm, this.personalizedIconPath, this.i18n("app.no"), this.i18n("app.yes"), this.btnConfirmDanger, null, this.beforeClose);
|
|
154
156
|
}
|
|
155
157
|
}
|
|
156
158
|
}
|
|
@@ -158,9 +160,9 @@ const EzDialog = class {
|
|
|
158
160
|
componentDidLoad() {
|
|
159
161
|
ElementIDUtils.addIDInfo(this._element);
|
|
160
162
|
this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element })
|
|
161
|
-
.bind("Enter", () => this.handleButtonClick(true), { description: "
|
|
162
|
-
.bind("Escape", () => this.handleButtonClick(false), { description: "
|
|
163
|
-
.bind("Esc", () => this.handleButtonClick(false), { description: "
|
|
163
|
+
.bind("Enter", () => this.handleButtonClick(true), { description: this.i18n("ez-dialog.confirmButton"), element: this._element })
|
|
164
|
+
.bind("Escape", () => this.handleButtonClick(false), { description: this.i18n("ez-dialog.closeButton"), element: this._element })
|
|
165
|
+
.bind("Esc", () => this.handleButtonClick(false), { description: this.i18n("ez-dialog.closeButton"), element: this._element });
|
|
164
166
|
}
|
|
165
167
|
componentDidRender() {
|
|
166
168
|
this.manageOverlay();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-baa5e267.js';
|
|
2
2
|
import { ObjectUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { i as isContinuousSequence } from './ezListHelper-00fb9b8d.js';
|
|
4
|
+
import { i as initI18n } from './index-b623906e.js';
|
|
4
5
|
|
|
5
6
|
function moveItems(selectedItemsList, itemsList, foward) {
|
|
6
7
|
if (!selectedItemsList.length)
|
|
@@ -125,6 +126,9 @@ const EzDoubleList = class {
|
|
|
125
126
|
return;
|
|
126
127
|
this.ezRightListChanged.emit(newValue);
|
|
127
128
|
}
|
|
129
|
+
async componentWillLoad() {
|
|
130
|
+
this.i18n = await initI18n();
|
|
131
|
+
}
|
|
128
132
|
async handleChangeLeft({ detail }) {
|
|
129
133
|
if (!detail.to.getAttribute('id') || detail.to.getAttribute('id') !== this.RIGHT_LIST_ID) {
|
|
130
134
|
this.leftList = [...this.reorderArray(detail.dataSource, detail.selectItens, detail.newIndex)];
|
|
@@ -301,7 +305,9 @@ const EzDoubleList = class {
|
|
|
301
305
|
title: this.leftTitle,
|
|
302
306
|
isFiltering: this.isFilteringLeft,
|
|
303
307
|
filteredList: this.leftFilteredList,
|
|
304
|
-
emptyMessage: !!((_a = this.emptyMessage) === null || _a === void 0 ? void 0 : _a.LEFT_LIST)
|
|
308
|
+
emptyMessage: !!((_a = this.emptyMessage) === null || _a === void 0 ? void 0 : _a.LEFT_LIST)
|
|
309
|
+
? this.emptyMessage.LEFT_LIST
|
|
310
|
+
: this.i18n("ez-double-list.noItemsAvailable", { entity: this.entityLabel }),
|
|
305
311
|
slotConfig: {
|
|
306
312
|
itemRightSlotBuilder: (_c = (_b = this.slotsListBuilder) === null || _b === void 0 ? void 0 : _b.LEFT_LIST) === null || _c === void 0 ? void 0 : _c.itemRightSlotBuilder,
|
|
307
313
|
itemLeftSlotBuilder: (_e = (_d = this.slotsListBuilder) === null || _d === void 0 ? void 0 : _d.LEFT_LIST) === null || _e === void 0 ? void 0 : _e.itemLeftSlotBuilder,
|
|
@@ -314,13 +320,15 @@ const EzDoubleList = class {
|
|
|
314
320
|
onChoose: this.handleChooseLeft.bind(this),
|
|
315
321
|
},
|
|
316
322
|
})), !this.useOnlyRightList &&
|
|
317
|
-
h("div", { class: 'actions__column' }, h("ez-button", { mode: "icon", iconName: "dual-chevron-right", enabled: this.enableTransferAllToRight(), title:
|
|
323
|
+
h("div", { class: 'actions__column' }, h("ez-button", { mode: "icon", iconName: "dual-chevron-right", enabled: this.enableTransferAllToRight(), title: this.i18n("ez-double-list.moveAllTo", { list: this.rightListLabel }), size: "small", onClick: this.handleTransferAllToRight.bind(this) }), h("ez-button", { mode: "icon", iconName: "chevron-right", enabled: this.enableTransferToRight(), title: this.i18n("ez-double-list.moveTo", { list: this.rightListLabel }), size: "small", onClick: this.handleTransferToRight.bind(this) }), h("ez-button", { mode: "icon", iconName: "chevron-left", enabled: this.enableTransferToLeft(), title: this.i18n("ez-double-list.moveTo", { list: this.leftListLabel }), size: "small", onClick: this.handleTransferToLeft.bind(this) }), h("ez-button", { mode: "icon", iconName: "dual-chevron-left", enabled: this.enableTransferAllToLeft(), title: this.i18n("ez-double-list.moveAllTo", { list: this.leftListLabel }), size: "small", onClick: this.handleTransferAllToLeft.bind(this) })), h("div", { class: "list__container" }, this.rightList && this.renderList({
|
|
318
324
|
idSortableList: this.RIGHT_LIST_ID,
|
|
319
325
|
list: this.rightList,
|
|
320
326
|
title: this.rightTitle,
|
|
321
327
|
isFiltering: this.isFilteringRight,
|
|
322
328
|
filteredList: this.rightFilteredList,
|
|
323
|
-
emptyMessage: !!((_f = this.emptyMessage) === null || _f === void 0 ? void 0 : _f.RIGHT_LIST)
|
|
329
|
+
emptyMessage: !!((_f = this.emptyMessage) === null || _f === void 0 ? void 0 : _f.RIGHT_LIST)
|
|
330
|
+
? this.emptyMessage.RIGHT_LIST
|
|
331
|
+
: this.i18n("ez-double-list.noItemsSelected", { entity: this.entityLabel }),
|
|
324
332
|
slotConfig: {
|
|
325
333
|
itemRightSlotBuilder: (_h = (_g = this.slotsListBuilder) === null || _g === void 0 ? void 0 : _g.RIGHT_LIST) === null || _h === void 0 ? void 0 : _h.itemRightSlotBuilder,
|
|
326
334
|
itemLeftSlotBuilder: (_k = (_j = this.slotsListBuilder) === null || _j === void 0 ? void 0 : _j.RIGHT_LIST) === null || _k === void 0 ? void 0 : _k.itemLeftSlotBuilder,
|
|
@@ -332,7 +340,7 @@ const EzDoubleList = class {
|
|
|
332
340
|
onDoubleClick: this.handleTransferToLeft.bind(this),
|
|
333
341
|
onChoose: this.handleChooseRight.bind(this),
|
|
334
342
|
},
|
|
335
|
-
})), h("div", { class: 'actions__column' }, h("ez-button", { mode: "icon", iconName: "dual-chevron-up", enabled: this.enableMoveUp(true), title: "
|
|
343
|
+
})), h("div", { class: 'actions__column' }, h("ez-button", { mode: "icon", iconName: "dual-chevron-up", enabled: this.enableMoveUp(true), title: this.i18n("ez-double-list.moveToFirstPosition"), size: "small", onClick: this.handleMoveToTop.bind(this) }), h("ez-button", { mode: "icon", iconName: "chevron-up", enabled: this.enableMoveUp(), title: this.i18n("ez-double-list.moveUp"), size: "small", onClick: this.handleMoveUp.bind(this) }), h("ez-button", { mode: "icon", iconName: "chevron-down", enabled: this.enableMoveDown(), title: this.i18n("ez-double-list.moveDown"), size: "small", onClick: this.handleMoveDown.bind(this) }), h("ez-button", { mode: "icon", iconName: "dual-chevron-down", enabled: this.enableMoveDown(true), title: this.i18n("ez-double-list.moveToLastPosition"), size: "small", onClick: this.handleMoveToBottom.bind(this) }))));
|
|
336
344
|
}
|
|
337
345
|
static get watchers() { return {
|
|
338
346
|
"leftList": ["observeLeftList"],
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
+
import { i as initI18n } from './index-b623906e.js';
|
|
3
4
|
|
|
4
5
|
const ezFileItemCss = ":host{display:flex;width:100%;--ez-file-item--height:42px;--ez-file-item--padding:9px;--ez-file-item--border-radius:var(--border--radius-medium, 12px);--ez-file-item--border-color:var(--color--strokes, #DCE0E8);--ez-file-item--border-style:var(--border--small, 1px solid);--ez-file-item--font-family:var(--font-pattern, Arial);--ez-file-item--font-size:var(--text--medium, 14px);--ez-file-item--font-weight:var(--text-weight--medium, 400);--ez-file-item--color:var(--title--primary, #2B3A54);--ez-file-item__file-size--font-weight:var(--text-weight--large, 600);--ez-file-item__file-size--color:var(--color--primary, #008561);--ez-file-item__background-progress--color:var(--color--primary-300, E2F4EF);--ez-file-item--icon-color:var(--title--primary, #2B3A54)}.box{display:flex;box-sizing:border-box;position:relative;align-items:center;justify-content:space-between;width:100%;padding:var(--ez-file-item--padding);border:var(--ez-file-item--border-color) var(--ez-file-item--border-style);border-radius:var(--ez-file-item--border-radius);height:var(--ez-file-item--height)}.box::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;clip-path:inset(2px calc(var(--ez-file-item--upload-progress, 0%) + 2px) 2px 2px round calc(var(--ez-file-item--border-radius) - 4px));background-color:var(--ez-file-item__background-progress--color)}.content{display:flex;align-items:center;z-index:0;overflow:hidden}.file-name{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item--font-weight);color:var(--ez-file-item--color)}.file-type-icon{flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color);padding-right:var(--ez-file-item--padding)}.file-size{padding-left:2px;overflow:hidden;flex-shrink:0;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item__file-size--font-weight);color:var(--ez-file-item__file-size--color)}.btn-remove{cursor:pointer;flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color)}";
|
|
5
6
|
|
|
@@ -16,7 +17,7 @@ const EzFileItem = class {
|
|
|
16
17
|
}
|
|
17
18
|
observeProgress(newProgress) {
|
|
18
19
|
if (newProgress < 0 || newProgress > 100) {
|
|
19
|
-
throw new Error("
|
|
20
|
+
throw new Error(this.i18n("ez-file-item.invalidProgress"));
|
|
20
21
|
}
|
|
21
22
|
this._element.style.setProperty("--ez-file-item--upload-progress", `${100 - newProgress}%`);
|
|
22
23
|
}
|
|
@@ -37,14 +38,16 @@ const EzFileItem = class {
|
|
|
37
38
|
}
|
|
38
39
|
return FILE_TYPE_ICONS[extension] || DEFAULT_FILE_TYPE_ICON;
|
|
39
40
|
}
|
|
41
|
+
async componentWillLoad() {
|
|
42
|
+
this.i18n = await initI18n();
|
|
43
|
+
}
|
|
40
44
|
render() {
|
|
41
45
|
this._element.title = `${this.fileName} ${this.getFileSize()}`;
|
|
42
46
|
ElementIDUtils.addIDInfoIfNotExists(this._element, 'ezFileIcon');
|
|
43
|
-
return (h("div", { class: "box", onClick: () => this.ezClick.emit(this.fileName) }, h("div", { class: "content" }, h("ez-icon", { "data-element-id": ElementIDUtils.getInternalIDInfo("fileIcon"), class: "file-type-icon", size: "medium", "icon-name": this.getIconName() }), h("label", { class: "file-name" }, this.fileName), h("label", { class: "file-size" }, this.getFileSize())), this.canRemove ?
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} }) : undefined));
|
|
47
|
+
return (h("div", { class: "box", onClick: () => this.ezClick.emit(this.fileName) }, h("div", { class: "content" }, h("ez-icon", { "data-element-id": ElementIDUtils.getInternalIDInfo("fileIcon"), class: "file-type-icon", size: "medium", "icon-name": this.getIconName() }), h("label", { class: "file-name" }, this.fileName), h("label", { class: "file-size" }, this.getFileSize())), this.canRemove ? (h("ez-icon", { "data-element-id": ElementIDUtils.getInternalIDInfo("remove"), class: "btn-remove", size: "medium", "icon-name": "close", title: this.i18n("app.remove"), onClick: evt => {
|
|
48
|
+
this.ezRemove.emit(this.fileName);
|
|
49
|
+
evt.stopPropagation();
|
|
50
|
+
} })) : undefined));
|
|
48
51
|
}
|
|
49
52
|
get _element() { return getElement(this); }
|
|
50
53
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, g as getElement, H as Host } from './index-baa5e267.js';
|
|
2
2
|
import { ObjectUtils, StringUtils, UserInterface, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { R as REQUIRED_INFO } from './constants-b036528f.js';
|
|
4
3
|
import { C as CheckMode } from './CheckMode-bdb2ec19.js';
|
|
4
|
+
import { g as getI18n } from './index-b623906e.js';
|
|
5
5
|
|
|
6
6
|
const buildSwitch = (field) => {
|
|
7
7
|
return buildField(field.name, field.label, field.readOnly, field.contextName, true);
|
|
@@ -116,8 +116,9 @@ uiBuilders.set(UserInterface.SEARCHPLUS, buildSearchPlus);
|
|
|
116
116
|
uiBuilders.set(UserInterface.LONGTEXT, buildTextArea);
|
|
117
117
|
uiBuilders.set(UserInterface.HTML, buildRichText);
|
|
118
118
|
const fieldBuilder = (field) => {
|
|
119
|
+
const i18n = getI18n();
|
|
119
120
|
const builder = uiBuilders.get(field.userInterface) || buildTextInput;
|
|
120
|
-
const label = field.required ? `${field.label}${
|
|
121
|
+
const label = field.required ? `${field.label}${i18n("app.requiredInfo")}` : field.label;
|
|
121
122
|
const builtElement = builder(Object.assign(Object.assign({}, field), { label }));
|
|
122
123
|
//@ts-ignore
|
|
123
124
|
builtElement.$attrs$['data-form-item'] = field.name;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, f as forceUpdate, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { DateUtils, ApplicationContext, Action, StringUtils, KeyboardManager, DataUnit, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { b as buildFieldMetadata, a as buildFieldSearch, L as LABEL_SEARCH_FIELD, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH, D as DataBinder } from './search-column-
|
|
3
|
+
import { b as buildFieldMetadata, a as buildFieldSearch, L as LABEL_SEARCH_FIELD, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH, D as DataBinder } from './search-column-5a55f676.js';
|
|
4
4
|
import { F as FormLayout } from './FormLayout-071d324c.js';
|
|
5
|
-
import './ApplicationUtils-
|
|
5
|
+
import './ApplicationUtils-72f474e8.js';
|
|
6
6
|
import './DialogType-54a62731.js';
|
|
7
7
|
import './CheckMode-bdb2ec19.js';
|
|
8
|
+
import './index-b623906e.js';
|
|
8
9
|
|
|
9
10
|
const DETAIL_PATTERN = /child\[([^\]]+)\]/;
|
|
10
11
|
const REGEX_DEFAULT_VAR_KEY = /\$\{.+\}/;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { Action, DataUnit, ObjectUtils as ObjectUtils$1, UserInterface, HTMLBuilder, ApplicationContext, StringUtils as StringUtils$1, LockManager, LockManagerOperation, DataType, NumberUtils as NumberUtils$1, MaskFormatter, SortMode, ElementIDUtils, ColumnFilterManager as ColumnFilterManager$1, DateUtils as DateUtils$1, ArrayUtils as ArrayUtils$1, FieldComparator, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, KeyboardManager } from '@sankhyalabs/core';
|
|
3
3
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
4
|
-
import { A as ApplicationUtils } from './ApplicationUtils-
|
|
4
|
+
import { A as ApplicationUtils } from './ApplicationUtils-72f474e8.js';
|
|
5
5
|
import './DialogType-54a62731.js';
|
|
6
6
|
import './CheckMode-bdb2ec19.js';
|
|
7
|
+
import { g as getI18n, i as initI18n } from './index-b623906e.js';
|
|
7
8
|
import { C as CustomEditorSource, a as CustomRenderSource } from './FormLayout-071d324c.js';
|
|
8
|
-
import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH,
|
|
9
|
-
import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE, P as PRESENTATION_COL_ID_PROP_NAME, a as PRESENTATION_FROM_COL_PROP_NAME } from './constants-
|
|
9
|
+
import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH, a as buildFieldSearch, d as LABEL_SEARCH_COLUMN } from './search-column-5a55f676.js';
|
|
10
|
+
import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE, P as PRESENTATION_COL_ID_PROP_NAME, a as PRESENTATION_FROM_COL_PROP_NAME } from './constants-3fabe81e.js';
|
|
10
11
|
import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
|
|
11
12
|
import { p as purify } from './purify-da6317bb.js';
|
|
12
13
|
import './_commonjsHelpers-9943807e.js';
|
|
@@ -50468,81 +50469,6 @@ class SelectionHeader {
|
|
|
50468
50469
|
}
|
|
50469
50470
|
}
|
|
50470
50471
|
|
|
50471
|
-
const gridTerms = {
|
|
50472
|
-
// for filter panel
|
|
50473
|
-
page: "Página",
|
|
50474
|
-
more: "mais",
|
|
50475
|
-
to: "para",
|
|
50476
|
-
of: "de",
|
|
50477
|
-
next: "Próximo",
|
|
50478
|
-
last: "Último",
|
|
50479
|
-
first: "Primeiro",
|
|
50480
|
-
previous: "Anterior",
|
|
50481
|
-
loadingOoo: "Carregar",
|
|
50482
|
-
// for set filter
|
|
50483
|
-
selectAll: "Selecionar tudo",
|
|
50484
|
-
searchOoo: "Procurar",
|
|
50485
|
-
blanks: "Vazio",
|
|
50486
|
-
// for number filter and text filter
|
|
50487
|
-
filterOoo: "Filtrar",
|
|
50488
|
-
applyFilter: "Aplicar filtro",
|
|
50489
|
-
// for number filter
|
|
50490
|
-
equals: "Igual",
|
|
50491
|
-
lessThan: "Menor que",
|
|
50492
|
-
greaterThan: "Maior que",
|
|
50493
|
-
// for text filter
|
|
50494
|
-
contains: "Contém",
|
|
50495
|
-
startsWith: "Começa com",
|
|
50496
|
-
endsWith: "Termina com",
|
|
50497
|
-
// the header of the default group column
|
|
50498
|
-
group: "Grupo",
|
|
50499
|
-
// tool panel
|
|
50500
|
-
columns: "Colunas",
|
|
50501
|
-
rowGroupColumns: "Colunas do grupo de linhas",
|
|
50502
|
-
rowGroupColumnsEmptyMessage: "Colunas do grupo de linhas vazias",
|
|
50503
|
-
valueColumns: "Valores das colunas",
|
|
50504
|
-
pivotMode: "Modo pivô",
|
|
50505
|
-
groups: "Grupos",
|
|
50506
|
-
values: "Valores",
|
|
50507
|
-
pivots: "Pivôs",
|
|
50508
|
-
valueColumnsEmptyMessage: "Valores de colunas vazias",
|
|
50509
|
-
pivotColumnsEmptyMessage: "Pivôs de colunas vazias",
|
|
50510
|
-
toolPanelButton: "Botão de painel de ferramentas",
|
|
50511
|
-
// other
|
|
50512
|
-
noRowsToShow: "Não há registros para mostrar.",
|
|
50513
|
-
// enterprise menu
|
|
50514
|
-
pinColumn: "Fixar coluna",
|
|
50515
|
-
valueAggregation: "Agregar valor",
|
|
50516
|
-
autosizeThiscolumn: "Redimensionar esta coluna",
|
|
50517
|
-
autosizeAllColumns: "Redimensionar todas colunas",
|
|
50518
|
-
groupBy: "Agrupar por",
|
|
50519
|
-
ungroupBy: "Desagrupar por",
|
|
50520
|
-
resetColumns: "Resetar colunas",
|
|
50521
|
-
expandAll: "Expandir tudo",
|
|
50522
|
-
collapseAll: "Contrair tudo",
|
|
50523
|
-
toolPanel: "Painel de ferramentas",
|
|
50524
|
-
export: "Exportar",
|
|
50525
|
-
csvExport: "Exportar para CSV",
|
|
50526
|
-
excelExport: "Exportar para Excel",
|
|
50527
|
-
// enterprise menu pinning
|
|
50528
|
-
pinLeft: "Fixar coluna",
|
|
50529
|
-
pinRight: "Fixar a direita",
|
|
50530
|
-
noPin: "Desfixar coluna",
|
|
50531
|
-
// enterprise menu aggregation and status panel
|
|
50532
|
-
sum: "Soma",
|
|
50533
|
-
min: "Mínimo",
|
|
50534
|
-
max: "Máximo",
|
|
50535
|
-
none: "Nenhum",
|
|
50536
|
-
count: "Contagem",
|
|
50537
|
-
average: "Média",
|
|
50538
|
-
// standard menu
|
|
50539
|
-
copy: "Copiar",
|
|
50540
|
-
copyWithHeaders: "Copiar com cabeçalho",
|
|
50541
|
-
ctrlC: "Ctrl+C",
|
|
50542
|
-
paste: "Colar",
|
|
50543
|
-
ctrlV: "Ctrl+V"
|
|
50544
|
-
};
|
|
50545
|
-
|
|
50546
50472
|
const buildEditorMetadata = (descriptor, eGridCell, dataUnit, editionManager) => {
|
|
50547
50473
|
return Object.assign(Object.assign({}, buildFieldMetadata(descriptor)), { eGridCell, dataUnit, editionManager });
|
|
50548
50474
|
};
|
|
@@ -64814,6 +64740,74 @@ var MenuModule = {
|
|
|
64814
64740
|
]
|
|
64815
64741
|
};
|
|
64816
64742
|
|
|
64743
|
+
function buildLocaleText(i18n) {
|
|
64744
|
+
return ({
|
|
64745
|
+
page: i18n("ez-grid.pageLabel"),
|
|
64746
|
+
more: i18n("ez-grid.remainingPageLabel"),
|
|
64747
|
+
to: i18n("ez-grid.remainingTotalLabel"),
|
|
64748
|
+
of: i18n("ez-grid.remainingTotalLabel"),
|
|
64749
|
+
next: i18n("ez-grid.nextPage"),
|
|
64750
|
+
previous: i18n("ez-grid.previousPage"),
|
|
64751
|
+
loadingOoo: i18n("app.loading"),
|
|
64752
|
+
noRowsToShow: i18n("ez-grid.noRowsToShow"),
|
|
64753
|
+
pinColumn: i18n("ez-grid.pinColumn"),
|
|
64754
|
+
unpinColumn: i18n("ez-grid.unpinColumn"),
|
|
64755
|
+
filterOoo: i18n("ez-grid.filter"),
|
|
64756
|
+
sortAscending: i18n("ez-grid.sortAscending"),
|
|
64757
|
+
sortDescending: i18n("ez-grid.sortDescending"),
|
|
64758
|
+
last: i18n("ez-grid.last"),
|
|
64759
|
+
first: i18n("ez-grid.first"),
|
|
64760
|
+
selectAll: i18n("ez-grid.selectAll"),
|
|
64761
|
+
searchOoo: i18n("ez-grid.searchOoo"),
|
|
64762
|
+
blanks: i18n("ez-grid.blanks"),
|
|
64763
|
+
applyFilter: i18n("ez-grid.applyFilter"),
|
|
64764
|
+
equals: i18n("ez-grid.equals"),
|
|
64765
|
+
lessThan: i18n("ez-grid.lessThan"),
|
|
64766
|
+
greaterThan: i18n("ez-grid.greaterThan"),
|
|
64767
|
+
contains: i18n("ez-grid.contains"),
|
|
64768
|
+
startsWith: i18n("ez-grid.startsWith"),
|
|
64769
|
+
endsWith: i18n("ez-grid.endsWith"),
|
|
64770
|
+
group: i18n("ez-grid.group"),
|
|
64771
|
+
columns: i18n("ez-grid.columns"),
|
|
64772
|
+
rowGroupColumns: i18n("ez-grid.rowGroupColumns"),
|
|
64773
|
+
rowGroupColumnsEmptyMessage: i18n("ez-grid.rowGroupColumnsEmptyMessage"),
|
|
64774
|
+
valueColumns: i18n("ez-grid.valueColumns"),
|
|
64775
|
+
pivotMode: i18n("ez-grid.pivotMode"),
|
|
64776
|
+
groups: i18n("ez-grid.groups"),
|
|
64777
|
+
values: i18n("ez-grid.values"),
|
|
64778
|
+
pivots: i18n("ez-grid.pivots"),
|
|
64779
|
+
valueColumnsEmptyMessage: i18n("ez-grid.valueColumnsEmptyMessage"),
|
|
64780
|
+
pivotColumnsEmptyMessage: i18n("ez-grid.pivotColumnsEmptyMessage"),
|
|
64781
|
+
toolPanelButton: i18n("ez-grid.toolPanelButton"),
|
|
64782
|
+
valueAggregation: i18n("ez-grid.valueAggregation"),
|
|
64783
|
+
autosizeThiscolumn: i18n("ez-grid.autosizeThiscolumn"),
|
|
64784
|
+
autosizeAllColumns: i18n("ez-grid.autosizeAllColumns"),
|
|
64785
|
+
groupBy: i18n("ez-grid.groupBy"),
|
|
64786
|
+
ungroupBy: i18n("ez-grid.ungroupBy"),
|
|
64787
|
+
resetColumns: i18n("ez-grid.resetColumns"),
|
|
64788
|
+
expandAll: i18n("ez-grid.expandAll"),
|
|
64789
|
+
collapseAll: i18n("ez-grid.collapseAll"),
|
|
64790
|
+
toolPanel: i18n("ez-grid.toolPanel"),
|
|
64791
|
+
export: i18n("ez-grid.export"),
|
|
64792
|
+
csvExport: i18n("ez-grid.csvExport"),
|
|
64793
|
+
excelExport: i18n("ez-grid.excelExport"),
|
|
64794
|
+
pinLeft: i18n("ez-grid.pinLeft"),
|
|
64795
|
+
pinRight: i18n("ez-grid.pinRight"),
|
|
64796
|
+
noPin: i18n("ez-grid.noPin"),
|
|
64797
|
+
sum: i18n("ez-grid.sum"),
|
|
64798
|
+
min: i18n("ez-grid.min"),
|
|
64799
|
+
max: i18n("ez-grid.max"),
|
|
64800
|
+
none: i18n("ez-grid.none"),
|
|
64801
|
+
count: i18n("ez-grid.count"),
|
|
64802
|
+
average: i18n("ez-grid.average"),
|
|
64803
|
+
copy: i18n("ez-grid.copy"),
|
|
64804
|
+
copyWithHeaders: i18n("ez-grid.copyWithHeaders"),
|
|
64805
|
+
ctrlC: i18n("ez-grid.ctrlC"),
|
|
64806
|
+
paste: i18n("ez-grid.paste"),
|
|
64807
|
+
ctrlV: i18n("ez-grid.ctrlV"),
|
|
64808
|
+
});
|
|
64809
|
+
}
|
|
64810
|
+
|
|
64817
64811
|
class AgGridController {
|
|
64818
64812
|
configFilterColumn(filterColumn) {
|
|
64819
64813
|
this._filterColumn = filterColumn;
|
|
@@ -64968,6 +64962,7 @@ class AgGridController {
|
|
|
64968
64962
|
}
|
|
64969
64963
|
if (this._grid === undefined) {
|
|
64970
64964
|
LicenseManager.setLicenseKey(ApplicationContext.getContextValue('__EZUI__GRID_LICENSE__'));
|
|
64965
|
+
this._i18n = options.i18n;
|
|
64971
64966
|
this._columnStateChangeCallback = options.onColumnStateChange;
|
|
64972
64967
|
this._selectionChangeCallback = options.onSelectionChange;
|
|
64973
64968
|
this._doubleClickCallBack = options.onDoubleClick;
|
|
@@ -64981,7 +64976,7 @@ class AgGridController {
|
|
|
64981
64976
|
}
|
|
64982
64977
|
this._gridOptions = {
|
|
64983
64978
|
suppressHorizontalScroll: options.suppressHorizontalScroll,
|
|
64984
|
-
localeText:
|
|
64979
|
+
localeText: buildLocaleText(this._options.i18n),
|
|
64985
64980
|
enableRangeSelection: this._multipleSelection,
|
|
64986
64981
|
rowSelection: this._multipleSelection ? 'multiple' : 'single',
|
|
64987
64982
|
sortingOrder: ['desc', 'asc', null],
|
|
@@ -65095,7 +65090,7 @@ class AgGridController {
|
|
|
65095
65090
|
buildMenuItemOptionSort(params, sortOrder) {
|
|
65096
65091
|
return {
|
|
65097
65092
|
icon: sortOrder === 'asc' ? `<i class='ez-icon-ordem-ascendente'></i>` : `<i class='ez-icon-ordem-descendente'></i>`,
|
|
65098
|
-
name: sortOrder === 'asc' ?
|
|
65093
|
+
name: sortOrder === 'asc' ? this._i18n("ez-grid.sortAscending") : this._i18n("ez-grid.sortDescending"),
|
|
65099
65094
|
action: () => this.sortDataByColumn(params, sortOrder),
|
|
65100
65095
|
};
|
|
65101
65096
|
}
|
|
@@ -65104,7 +65099,7 @@ class AgGridController {
|
|
|
65104
65099
|
const columnLabel = params.column.getColDef().headerName;
|
|
65105
65100
|
return {
|
|
65106
65101
|
icon: `<i class='ez-icon-filter'></i>`,
|
|
65107
|
-
name:
|
|
65102
|
+
name: this._i18n("ez-grid.filter"),
|
|
65108
65103
|
action: () => this.showFilterColumn({ columnName, columnLabel, leftPosition: this._filterColumnleftPosition, filteredOptions: this._filteredColumns.get(columnName) }),
|
|
65109
65104
|
};
|
|
65110
65105
|
}
|
|
@@ -65130,7 +65125,7 @@ class AgGridController {
|
|
|
65130
65125
|
const isPinned = params.column.isPinned();
|
|
65131
65126
|
return {
|
|
65132
65127
|
icon: `<i class='ez-icon-${isPinned ? 'un-pin' : 'push-pin'}'></i>`,
|
|
65133
|
-
name: isPinned ?
|
|
65128
|
+
name: isPinned ? this._i18n("ez-grid.unpinColumn") : this._i18n("ez-grid.pinColumn"),
|
|
65134
65129
|
action: () => {
|
|
65135
65130
|
columnApi.applyColumnState({
|
|
65136
65131
|
state: [{ colId: column.getColId(), pinned: column.isPinned() ? null : 'left' }],
|
|
@@ -65735,7 +65730,7 @@ class AgGridController {
|
|
|
65735
65730
|
tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get('gridHeaderTooltip');
|
|
65736
65731
|
}
|
|
65737
65732
|
else if (propSortable === false) {
|
|
65738
|
-
tooltip = '
|
|
65733
|
+
tooltip = this._i18n('ez-grid.columnCantBeOrder');
|
|
65739
65734
|
}
|
|
65740
65735
|
const presentationFrom = (_d = source === null || source === void 0 ? void 0 : source.props) === null || _d === void 0 ? void 0 : _d.get(PRESENTATION_FROM_COL_PROP_NAME);
|
|
65741
65736
|
return this._editionManager.configureColumn({
|
|
@@ -65760,7 +65755,7 @@ class AgGridController {
|
|
|
65760
65755
|
return "";
|
|
65761
65756
|
}
|
|
65762
65757
|
if (params.value instanceof Promise) {
|
|
65763
|
-
return "
|
|
65758
|
+
return `${this._i18n("app.loading")}...`;
|
|
65764
65759
|
}
|
|
65765
65760
|
if (source.userInterface === UserInterface.HTML) {
|
|
65766
65761
|
this.setHTMLRender(params, source);
|
|
@@ -65856,10 +65851,10 @@ class AgGridController {
|
|
|
65856
65851
|
}
|
|
65857
65852
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SWITCH) {
|
|
65858
65853
|
if ((params === null || params === void 0 ? void 0 : params.value) === 'S' || (params === null || params === void 0 ? void 0 : params.value) === true || (params === null || params === void 0 ? void 0 : params.value) === 'true') {
|
|
65859
|
-
return
|
|
65854
|
+
return this._i18n("app.yes");
|
|
65860
65855
|
}
|
|
65861
65856
|
else if ((params === null || params === void 0 ? void 0 : params.value) === 'N' || (params === null || params === void 0 ? void 0 : params.value) === false || (params === null || params === void 0 ? void 0 : params.value) === 'false') {
|
|
65862
|
-
return
|
|
65857
|
+
return this._i18n("app.no");
|
|
65863
65858
|
}
|
|
65864
65859
|
}
|
|
65865
65860
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SEARCH) {
|
|
@@ -66082,27 +66077,30 @@ function enableSelectAll(total) {
|
|
|
66082
66077
|
return total !== undefined;
|
|
66083
66078
|
}
|
|
66084
66079
|
function buildSelectAllLabel(allRecordSelected, count, total) {
|
|
66080
|
+
const i18n = getI18n();
|
|
66085
66081
|
if (allRecordSelected)
|
|
66086
|
-
return '
|
|
66082
|
+
return i18n('utils.selectAllPage');
|
|
66087
66083
|
if (total === undefined)
|
|
66088
|
-
return
|
|
66089
|
-
return
|
|
66084
|
+
return i18n('utils.loadingAllRecords', { count });
|
|
66085
|
+
return i18n('utils.selectAllRecords', { total });
|
|
66090
66086
|
}
|
|
66091
66087
|
function buildSelectAllTitle(total) {
|
|
66092
66088
|
if (enableSelectAll(total))
|
|
66093
66089
|
return '';
|
|
66094
|
-
|
|
66090
|
+
const i18n = getI18n();
|
|
66091
|
+
return i18n('utils.waitForLoad');
|
|
66095
66092
|
}
|
|
66096
66093
|
function getText(selectionCount, allSelectedRecords) {
|
|
66094
|
+
const i18n = getI18n();
|
|
66097
66095
|
if (allSelectedRecords) {
|
|
66098
|
-
return
|
|
66096
|
+
return i18n('utils.allRecordsSelected', { selectionCount });
|
|
66099
66097
|
}
|
|
66100
|
-
const
|
|
66101
|
-
return
|
|
66098
|
+
const plural = selectionCount > 1 ? "s" : "";
|
|
66099
|
+
return i18n('utils.selectedRecords', { selectionCount, plural });
|
|
66102
66100
|
}
|
|
66103
66101
|
|
|
66104
66102
|
const SelectionCounter = (props) => {
|
|
66105
|
-
const { selectionCount, currentPageSelected, allRecordSelected, paginationInfo, canSelectAll, onSelectAll, onSelectPage, onClearAll, onClose } = props;
|
|
66103
|
+
const { selectionCount, currentPageSelected, allRecordSelected, paginationInfo, canSelectAll, onSelectAll, onSelectPage, onClearAll, onClose, i18n } = props;
|
|
66106
66104
|
const { total, hasMore, count } = paginationInfo || {};
|
|
66107
66105
|
const shouldRenderSelectionButton = () => {
|
|
66108
66106
|
if ((!allRecordSelected && selectionCount === total) || (allRecordSelected && !hasMore))
|
|
@@ -66118,8 +66116,8 @@ const SelectionCounter = (props) => {
|
|
|
66118
66116
|
h("div", { class: "ez-flex ez-margin-right--medium" },
|
|
66119
66117
|
shouldRenderSelectionButton() &&
|
|
66120
66118
|
h("ez-button", Object.assign({ key: "selectAllRecordsEzButton", title: buildSelectAllTitle(total), enabled: enableSelectAll(total), class: "ez-margin-right--medium", label: buildSelectAllLabel(allRecordSelected, count, total), mode: "link", onClick: allRecordSelected ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allRecordSelected ? "Page" : "All"}`))),
|
|
66121
|
-
h("ez-button", Object.assign({ key: "clearAllSelectionEzButton", class: "grid__btn-clear", label: "
|
|
66122
|
-
h("button", Object.assign({ class: "grid__btn-close", title: "
|
|
66119
|
+
h("ez-button", Object.assign({ key: "clearAllSelectionEzButton", class: "grid__btn-clear", label: i18n("ez-grid.clearSelection"), mode: "link", onClick: onClearAll }, getElementID("ezGridSelectionCounter_clearAll"))))),
|
|
66120
|
+
h("button", Object.assign({ class: "grid__btn-close", title: i18n("app.close"), onClick: onClose }, getElementID("ezGridSelectionCounter_close")),
|
|
66123
66121
|
h("ez-icon", { iconName: "close" })))));
|
|
66124
66122
|
};
|
|
66125
66123
|
function getElementID(sufix) {
|
|
@@ -66269,7 +66267,6 @@ const EzGrid = class {
|
|
|
66269
66267
|
this.configChange = createEvent(this, "configChange", 7);
|
|
66270
66268
|
this.componentReady = createEvent(this, "componentReady", 7);
|
|
66271
66269
|
this._gridController = new AgGridController(false);
|
|
66272
|
-
this._messageFilterAppliedSuccess = 'Filtro de coluna aplicado com sucesso!';
|
|
66273
66270
|
this._customEditor = new Map();
|
|
66274
66271
|
this._customRenders = new Map();
|
|
66275
66272
|
this._paginationInfo = undefined;
|
|
@@ -66663,7 +66660,7 @@ const EzGrid = class {
|
|
|
66663
66660
|
await ((_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide());
|
|
66664
66661
|
}
|
|
66665
66662
|
renderCancelPagination() {
|
|
66666
|
-
return (h("ez-popover", { ref: (element) => (this._cancelPaginationPopoverElement = element), "overlay-type": 'none', autoClose: false }, h("div", { class: 'cancel-pagination' }, h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), h("span", { onClick: () => this.handleCancelPagination(), class: 'cancel-pagination-btn' }, "
|
|
66663
|
+
return (h("ez-popover", { ref: (element) => (this._cancelPaginationPopoverElement = element), "overlay-type": 'none', autoClose: false }, h("div", { class: 'cancel-pagination' }, h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), h("span", { onClick: () => this.handleCancelPagination(), class: 'cancel-pagination-btn' }, this.i18n("ez-grid.cancelPagination")))));
|
|
66667
66664
|
}
|
|
66668
66665
|
handleShowCancelPagination() {
|
|
66669
66666
|
var _a, _b, _c;
|
|
@@ -66679,7 +66676,7 @@ const EzGrid = class {
|
|
|
66679
66676
|
if (!this._paginationInfo)
|
|
66680
66677
|
return null;
|
|
66681
66678
|
const { currentPage, hasMore } = this._paginationInfo;
|
|
66682
|
-
return (h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, this.renderCancelPagination(), h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, this.shouldPresentPaginationLabel() && h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.shouldPresentPaginationLabel() && this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "
|
|
66679
|
+
return (h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, this.renderCancelPagination(), h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, this.shouldPresentPaginationLabel() && h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.shouldPresentPaginationLabel() && this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: this.i18n("ez-grid.previousPage") }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: this.i18n("ez-grid.nextPage") }))));
|
|
66683
66680
|
}
|
|
66684
66681
|
shouldPresentPaginationLabel() {
|
|
66685
66682
|
return this.paginationCounterMode === 'show' || this.paginationCounterMode === 'auto';
|
|
@@ -66719,7 +66716,8 @@ const EzGrid = class {
|
|
|
66719
66716
|
enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
|
|
66720
66717
|
enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
|
|
66721
66718
|
enableRowTableStriped: this.enableRowTableStriped,
|
|
66722
|
-
suppressHorizontalScroll: this.suppressHorizontalScroll
|
|
66719
|
+
suppressHorizontalScroll: this.suppressHorizontalScroll,
|
|
66720
|
+
i18n: this.i18n
|
|
66723
66721
|
});
|
|
66724
66722
|
if (this.config) {
|
|
66725
66723
|
this.observeConfig(this.config);
|
|
@@ -66752,7 +66750,7 @@ const EzGrid = class {
|
|
|
66752
66750
|
}
|
|
66753
66751
|
_getRemainingPageLabel() {
|
|
66754
66752
|
const { total, count } = this._paginationInfo;
|
|
66755
|
-
return `${total == undefined ?
|
|
66753
|
+
return `${total == undefined ? this.i18n("ez-grid.remainingPageLabel", { count: count + 1 }) : this.i18n("ez-grid.remainingTotalLabel", { total })}`;
|
|
66756
66754
|
}
|
|
66757
66755
|
_hasToShowCancelPagination() {
|
|
66758
66756
|
var _a;
|
|
@@ -66828,10 +66826,11 @@ const EzGrid = class {
|
|
|
66828
66826
|
}
|
|
66829
66827
|
componentDidRender() {
|
|
66830
66828
|
windowInstace.addEventListener('onSubmitFilter', () => {
|
|
66831
|
-
ApplicationUtils.info(this.
|
|
66829
|
+
ApplicationUtils.info(this.i18n("ez-grid.filterAppliedSuccess"));
|
|
66832
66830
|
});
|
|
66833
66831
|
}
|
|
66834
|
-
componentWillLoad() {
|
|
66832
|
+
async componentWillLoad() {
|
|
66833
|
+
this.i18n = await initI18n();
|
|
66835
66834
|
this._hasLeftButtons = !!this._element.querySelector('[slot="leftButtons"]');
|
|
66836
66835
|
if (!this.dataUnit.name.includes("InMemoryDataUnit"))
|
|
66837
66836
|
return;
|
|
@@ -66870,12 +66869,12 @@ const EzGrid = class {
|
|
|
66870
66869
|
if (!this._paginationInfo)
|
|
66871
66870
|
return;
|
|
66872
66871
|
this.nextRecord();
|
|
66873
|
-
}, { description: "
|
|
66872
|
+
}, { description: this.i18n("ez-grid.nextRecord"), element: this._element })
|
|
66874
66873
|
.bind("ctrl + ,", () => {
|
|
66875
66874
|
if (!this._paginationInfo)
|
|
66876
66875
|
return;
|
|
66877
66876
|
this.previousRecord();
|
|
66878
|
-
}, { description: "
|
|
66877
|
+
}, { description: this.i18n("ez-grid.previousRecord"), element: this._element })
|
|
66879
66878
|
.bind("ctrl + alt + ArrowLeft", () => {
|
|
66880
66879
|
if (!this._paginationInfo)
|
|
66881
66880
|
return;
|
|
@@ -66883,7 +66882,7 @@ const EzGrid = class {
|
|
|
66883
66882
|
if (currentPage > 0) {
|
|
66884
66883
|
this.previousPage();
|
|
66885
66884
|
}
|
|
66886
|
-
}, { description: "
|
|
66885
|
+
}, { description: this.i18n("ez-grid.previousPage"), element: this._element })
|
|
66887
66886
|
.bind("ctrl + alt + ArrowRight", () => {
|
|
66888
66887
|
if (!this._paginationInfo)
|
|
66889
66888
|
return;
|
|
@@ -66891,7 +66890,7 @@ const EzGrid = class {
|
|
|
66891
66890
|
if (hasMore) {
|
|
66892
66891
|
this.nextPage();
|
|
66893
66892
|
}
|
|
66894
|
-
}, { description: "
|
|
66893
|
+
}, { description: this.i18n("ez-grid.nextPage"), element: this._element });
|
|
66895
66894
|
if (this.useSearchColumn) {
|
|
66896
66895
|
this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
|
|
66897
66896
|
if (!this._container || !this._ezPopoverSearchColumn)
|
|
@@ -66899,7 +66898,7 @@ const EzGrid = class {
|
|
|
66899
66898
|
const container = this._container.getBoundingClientRect();
|
|
66900
66899
|
await focusOnFieldSerch(this._columnSearch);
|
|
66901
66900
|
this._ezPopoverSearchColumn.showUnder(this._container, { horizontalGap: container.width - (SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
|
|
66902
|
-
}, { description:
|
|
66901
|
+
}, { description: this.i18n("ez-grid.searchColumn"), element: this._element });
|
|
66903
66902
|
}
|
|
66904
66903
|
}
|
|
66905
66904
|
async removeShortcuts() {
|
|
@@ -66944,7 +66943,7 @@ const EzGrid = class {
|
|
|
66944
66943
|
'shadow-mode': !this.outlineMode && !this.hideHeader(),
|
|
66945
66944
|
}, tabindex: "0" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("ez-popover", { ref: elem => (this._ezPopoverSearchColumn = elem), overlayType: "none" }, this.renderFieldSearchColumn()), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
66946
66945
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
66947
|
-
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
66946
|
+
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, i18n: this.i18n, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
66948
66947
|
}
|
|
66949
66948
|
static get assetsDirs() { return ["../assets"]; }
|
|
66950
66949
|
get _element() { return getElement(this); }
|