@sankhyalabs/ezui 6.1.0-dev.2 → 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-ea12328f.js +33 -0
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- 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 +3 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +6 -4
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +7 -2
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +8 -7
- package/dist/cjs/ez-card-item_2.cjs.entry.js +2 -2
- package/dist/cjs/ez-chart.cjs.entry.js +4 -19
- package/dist/cjs/ez-check.cjs.entry.js +2 -2
- package/dist/cjs/ez-chip.cjs.entry.js +3 -2
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +15 -12
- package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +292 -6
- package/dist/cjs/ez-combo-box.cjs.entry.js +33 -15
- package/dist/cjs/ez-date-input.cjs.entry.js +6 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +6 -2
- package/dist/cjs/ez-dialog.cjs.entry.js +9 -7
- package/dist/cjs/ez-double-list.cjs.entry.js +13 -5
- package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ez-empty-card.cjs.entry.js +34 -0
- package/dist/cjs/ez-file-item.cjs.entry.js +10 -7
- package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +13 -5
- package/dist/cjs/ez-form.cjs.entry.js +5 -4
- package/dist/cjs/ez-grid.cjs.entry.js +172 -133
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +6 -2
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +315 -0
- package/dist/cjs/ez-list.cjs.entry.js +5 -3
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +7 -3
- package/dist/cjs/ez-modal.cjs.entry.js +6 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +10 -6
- package/dist/cjs/ez-number-input.cjs.entry.js +6 -2
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search-plus.cjs.entry.js +19 -10
- package/dist/cjs/ez-search-result-list.cjs.entry.js +25 -8
- package/dist/cjs/ez-search.cjs.entry.js +9 -10
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +6 -8
- package/dist/cjs/ez-skeleton.cjs.entry.js +6 -4
- package/dist/cjs/ez-sortable-list.cjs.entry.js +13 -6
- package/dist/cjs/ez-split-button.cjs.entry.js +6 -5
- package/dist/cjs/ez-split-item.cjs.entry.js +7 -3
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +35 -28
- package/dist/cjs/ez-text-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-tile.cjs.entry.js +62 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +13 -11
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/{ez-filter-input_2.cjs.entry.js → ez-tooltip.cjs.entry.js} +2 -124
- package/dist/cjs/ez-tree.cjs.entry.js +6 -2
- package/dist/cjs/ez-upload.cjs.entry.js +18 -12
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +6 -2
- package/dist/cjs/filter-column.cjs.entry.js +9 -5
- package/dist/cjs/index-02854309.js +3672 -0
- package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +32 -15
- package/dist/cjs/loader.cjs.js +6 -2
- package/dist/cjs/purify-a7dc3a08.js +1354 -0
- package/dist/cjs/{search-column-1d3c9fa5.js → search-column-82c52e20.js} +11 -5
- package/dist/collection/collection-manifest.json +27 -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-check/ez-check.css +1 -1
- package/dist/collection/components/ez-chip/ez-chip.js +20 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
- 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 +50 -15
- 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-empty-card/ez-empty-card.css +55 -0
- package/dist/collection/components/ez-empty-card/ez-empty-card.js +91 -0
- package/dist/collection/components/ez-file-item/ez-file-item.js +9 -6
- package/dist/collection/components/ez-form/ez-form.js +1 -1
- package/dist/collection/components/ez-form-view/ez-form-view.js +4 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +38 -11
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +14 -4
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +4 -1
- 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-icon/ez-icon.css +147 -140
- 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.css +2 -0
- 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-popover-plus/subcomponent/ez-popover-core.css +3 -2
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css +22 -0
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +135 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.css +30 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js +575 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +27 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +23 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +23 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css +20 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js +122 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +23 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css +42 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +187 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css +70 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +220 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js +1 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js +14 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js +10 -0
- package/dist/collection/components/ez-search/ez-search.js +7 -8
- package/dist/collection/components/ez-search-plus/ez-search-plus.css +2 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +16 -7
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +27 -7
- 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-area/ez-text-area.css +244 -212
- package/dist/collection/components/ez-text-area/ez-text-area.js +35 -28
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +5 -1
- package/dist/collection/components/ez-text-input/ez-text-input.js +2 -1
- package/dist/collection/components/ez-tile/ez-tile.css +151 -0
- package/dist/collection/components/ez-tile/ez-tile.js +269 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js +12 -10
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +1 -1
- 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.d.ts +60 -0
- package/dist/custom-elements/index.js +6252 -308
- package/dist/esm/{ApplicationUtils-eaf91331.js → ApplicationUtils-72f474e8.js} +43 -15
- package/dist/esm/RichToolbarHelper-f3a149c4.js +29 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- 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 +3 -2
- package/dist/esm/ez-alert-list.entry.js +6 -4
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-avatar.entry.js +7 -2
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +8 -7
- package/dist/esm/ez-card-item_2.entry.js +2 -2
- package/dist/esm/ez-chart.entry.js +2 -17
- package/dist/esm/ez-check.entry.js +2 -2
- package/dist/esm/ez-chip.entry.js +3 -2
- package/dist/esm/ez-collapsible-box.entry.js +15 -12
- package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +293 -8
- package/dist/esm/ez-combo-box.entry.js +33 -15
- package/dist/esm/ez-date-input.entry.js +6 -2
- package/dist/esm/ez-date-time-input.entry.js +6 -2
- package/dist/esm/ez-dialog.entry.js +9 -7
- package/dist/esm/ez-double-list.entry.js +13 -5
- package/dist/esm/ez-dropdown.entry.js +1 -1
- package/dist/esm/ez-empty-card.entry.js +30 -0
- package/dist/esm/ez-file-item.entry.js +10 -7
- package/dist/esm/ez-filter-input.entry.js +125 -0
- package/dist/esm/ez-form-view.entry.js +13 -5
- package/dist/esm/ez-form.entry.js +5 -4
- package/dist/esm/ez-grid.entry.js +155 -116
- package/dist/esm/ez-guide-navigator.entry.js +6 -2
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-link-builder_6.entry.js +306 -0
- package/dist/esm/ez-list.entry.js +5 -3
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +7 -3
- package/dist/esm/ez-modal.entry.js +6 -2
- package/dist/esm/ez-multi-selection-list.entry.js +10 -6
- package/dist/esm/ez-number-input.entry.js +6 -2
- package/dist/esm/ez-popover-plus_3.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search-plus.entry.js +19 -10
- package/dist/esm/ez-search-result-list.entry.js +25 -8
- package/dist/esm/ez-search.entry.js +9 -10
- package/dist/esm/ez-sidebar-navigator.entry.js +6 -8
- package/dist/esm/ez-skeleton.entry.js +6 -4
- package/dist/esm/ez-sortable-list.entry.js +13 -6
- package/dist/esm/ez-split-button.entry.js +6 -5
- package/dist/esm/ez-split-item.entry.js +7 -3
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +35 -28
- package/dist/esm/ez-text-input.entry.js +3 -2
- package/dist/esm/ez-tile.entry.js +58 -0
- package/dist/esm/ez-time-input.entry.js +13 -11
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/{ez-filter-input_2.entry.js → ez-tooltip.entry.js} +3 -124
- package/dist/esm/ez-tree.entry.js +6 -2
- package/dist/esm/ez-upload.entry.js +18 -12
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +7 -3
- package/dist/esm/filter-column.entry.js +9 -5
- package/dist/esm/index-b623906e.js +3669 -0
- package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +33 -15
- package/dist/esm/loader.js +7 -3
- package/dist/esm/purify-da6317bb.js +1352 -0
- package/dist/esm/{search-column-35f4ad93.js → search-column-5a55f676.js} +10 -4
- 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-112455b1.js +1 -0
- package/dist/ezui/{p-87f5a060.entry.js → p-1bcfd88c.entry.js} +1 -1
- package/dist/ezui/p-1c3efd36.entry.js +1 -0
- package/dist/ezui/p-1c55dda0.js +3 -0
- package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/p-1ffb75d5.js +1 -0
- package/dist/ezui/p-20c024f7.entry.js +1 -0
- package/dist/ezui/p-22934e19.entry.js +1 -0
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
- 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-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- 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-769632d5.entry.js → p-4b67138e.entry.js} +1 -1
- package/dist/ezui/{p-4a876b8b.entry.js → p-4d30b703.entry.js} +1 -1
- package/dist/ezui/p-4fc5f926.entry.js +1 -0
- package/dist/ezui/p-53bc30a1.entry.js +1 -0
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/p-627ff5a2.entry.js +1 -0
- package/dist/ezui/p-629e32e2.entry.js +1 -0
- package/dist/ezui/p-6369a0cd.entry.js +1 -0
- package/dist/ezui/{p-80764ff6.entry.js → p-6562b5c8.entry.js} +46 -46
- package/dist/ezui/p-6d596a5a.entry.js +1 -0
- package/dist/ezui/p-6e6fccfb.entry.js +1 -0
- package/dist/ezui/p-713dc93e.entry.js +1 -0
- package/dist/ezui/p-79044c3e.entry.js +1 -0
- package/dist/ezui/{p-5b85d3de.entry.js → p-7f792043.entry.js} +1 -1
- package/dist/ezui/p-80461324.entry.js +1 -0
- package/dist/ezui/p-84a136bf.entry.js +1 -0
- package/dist/ezui/{p-b3b3c99a.entry.js → p-8afb6e8a.entry.js} +1 -1
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/p-91c9d50e.entry.js +1 -0
- package/dist/ezui/p-973e6a40.entry.js +1 -0
- package/dist/ezui/{p-18e71523.entry.js → p-9c5cd3b2.entry.js} +1 -1
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- 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-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- 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-bc2f844e.entry.js +1 -0
- package/dist/ezui/p-beb42de1.entry.js +1 -0
- package/dist/ezui/p-c00ad772.entry.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- 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-d2645bdf.entry.js +1 -0
- package/dist/ezui/p-e5260556.entry.js +1 -0
- package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
- package/dist/ezui/p-e7a7c594.entry.js +1 -0
- package/dist/ezui/p-ed3bed1e.entry.js +1 -0
- package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
- 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-chip/ez-chip.d.ts +4 -0
- 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 +9 -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-empty-card/ez-empty-card.d.ts +18 -0
- package/dist/types/components/ez-file-item/ez-file-item.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.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 +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.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 +19 -0
- package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +105 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +31 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +5 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +5 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.d.ts +11 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +5 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +35 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +39 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.d.ts +1 -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 +4 -1
- package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +4 -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-area/ez-text-area.d.ts +6 -3
- package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +2 -0
- package/dist/types/components/ez-tile/ez-tile.d.ts +58 -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/components.d.ts +447 -2
- 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 +8 -1
- package/react/components.d.ts +10 -0
- package/react/components.js +10 -0
- package/react/components.js.map +1 -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-01b72d7e.entry.js +0 -1
- package/dist/ezui/p-07594da0.entry.js +0 -1
- package/dist/ezui/p-11bfeca3.entry.js +0 -1
- package/dist/ezui/p-175154a0.js +0 -1
- package/dist/ezui/p-1fefb37a.entry.js +0 -1
- package/dist/ezui/p-2187f86c.js +0 -1
- package/dist/ezui/p-220b9944.entry.js +0 -1
- package/dist/ezui/p-28987410.entry.js +0 -1
- package/dist/ezui/p-2d10bb18.entry.js +0 -1
- package/dist/ezui/p-2f351332.entry.js +0 -1
- package/dist/ezui/p-4e66eaeb.entry.js +0 -1
- package/dist/ezui/p-545bd5d5.entry.js +0 -7
- package/dist/ezui/p-5eea9886.js +0 -1
- package/dist/ezui/p-61f5c258.entry.js +0 -1
- package/dist/ezui/p-6b2cc9b8.entry.js +0 -1
- package/dist/ezui/p-6b3fddee.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-700c1320.entry.js +0 -1
- package/dist/ezui/p-708b196e.entry.js +0 -1
- package/dist/ezui/p-7567ccdd.entry.js +0 -1
- package/dist/ezui/p-791f4e43.entry.js +0 -1
- package/dist/ezui/p-7db20f8e.entry.js +0 -1
- package/dist/ezui/p-7ec3f335.entry.js +0 -1
- package/dist/ezui/p-85d7b78a.entry.js +0 -1
- package/dist/ezui/p-90c90351.entry.js +0 -1
- package/dist/ezui/p-90e91173.entry.js +0 -1
- package/dist/ezui/p-91ccae0c.entry.js +0 -1
- package/dist/ezui/p-926a0bde.entry.js +0 -1
- package/dist/ezui/p-97d94ef3.entry.js +0 -1
- package/dist/ezui/p-9e95bfeb.entry.js +0 -1
- package/dist/ezui/p-a11827ca.entry.js +0 -1
- package/dist/ezui/p-c7035d65.entry.js +0 -1
- package/dist/ezui/p-c8e6204f.entry.js +0 -1
- package/dist/ezui/p-d2290004.entry.js +0 -1
- package/dist/ezui/p-d4d6d5fe.entry.js +0 -1
- package/dist/ezui/p-ddb22a70.entry.js +0 -1
- package/dist/ezui/p-ddd0bd61.entry.js +0 -1
- package/dist/ezui/p-e4ae4ddb.entry.js +0 -1
- package/dist/ezui/p-e4ead194.entry.js +0 -1
- package/dist/ezui/p-e6b38ade.entry.js +0 -1
- package/dist/ezui/p-ed48a632.entry.js +0 -1
- package/dist/ezui/p-fc194825.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 { h, forceUpdate, } from '@stencil/core';
|
|
|
2
2
|
import { DialogType } from "./DialogType";
|
|
3
3
|
import { ElementIDUtils, FloatingManager, KeyboardManager } from "@sankhyalabs/core";
|
|
4
4
|
import FocusResolver from '../../utils/FocusResolver';
|
|
5
|
+
import initI18n from '../../utils/i18n';
|
|
5
6
|
class Message {
|
|
6
7
|
constructor(title, message, dialogType, confirm, icon, labelCancel, labelConfirm, btnConfirmDanger, callBack, beforeClose) {
|
|
7
8
|
this.title = title;
|
|
@@ -19,8 +20,6 @@ class Message {
|
|
|
19
20
|
export class EzDialog {
|
|
20
21
|
constructor() {
|
|
21
22
|
this.PRIMARY_BUTTON_ID = "EZ_DIALOG_PRIMARY_BUTTON";
|
|
22
|
-
this.labelConfirm = 'Sim';
|
|
23
|
-
this.labelCancel = 'Não';
|
|
24
23
|
this.btnConfirmDanger = false;
|
|
25
24
|
this._messageQueue = [];
|
|
26
25
|
this._canFocusOnPrimaryBtn = false;
|
|
@@ -137,6 +136,9 @@ export class EzDialog {
|
|
|
137
136
|
getClassTitleLabel(message) {
|
|
138
137
|
return this.getIconElement(message) == undefined ? "title title__label title__label--no-icon" : "title title__label";
|
|
139
138
|
}
|
|
139
|
+
async componentWillLoad() {
|
|
140
|
+
this.i18n = await initI18n();
|
|
141
|
+
}
|
|
140
142
|
componentWillRender() {
|
|
141
143
|
if (!this._currentMessage) {
|
|
142
144
|
if (this._messageQueue.length > 0) {
|
|
@@ -144,7 +146,7 @@ export class EzDialog {
|
|
|
144
146
|
}
|
|
145
147
|
else {
|
|
146
148
|
if (this.opened) {
|
|
147
|
-
this._currentMessage = new Message(this.ezTitle, this.message, this.dialogType, this.confirm, this.personalizedIconPath, this.
|
|
149
|
+
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);
|
|
148
150
|
}
|
|
149
151
|
}
|
|
150
152
|
}
|
|
@@ -152,9 +154,9 @@ export class EzDialog {
|
|
|
152
154
|
componentDidLoad() {
|
|
153
155
|
ElementIDUtils.addIDInfo(this._element);
|
|
154
156
|
this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element })
|
|
155
|
-
.bind("Enter", () => this.handleButtonClick(true), { description: "
|
|
156
|
-
.bind("Escape", () => this.handleButtonClick(false), { description: "
|
|
157
|
-
.bind("Esc", () => this.handleButtonClick(false), { description: "
|
|
157
|
+
.bind("Enter", () => this.handleButtonClick(true), { description: this.i18n("ez-dialog.confirmButton"), element: this._element })
|
|
158
|
+
.bind("Escape", () => this.handleButtonClick(false), { description: this.i18n("ez-dialog.closeButton"), element: this._element })
|
|
159
|
+
.bind("Esc", () => this.handleButtonClick(false), { description: this.i18n("ez-dialog.closeButton"), element: this._element });
|
|
158
160
|
}
|
|
159
161
|
componentDidRender() {
|
|
160
162
|
this.manageOverlay();
|
|
@@ -2,6 +2,7 @@ import { h, Host } from '@stencil/core';
|
|
|
2
2
|
import { moveItems, transferAll, transferItems } from './doubleListHelper';
|
|
3
3
|
import { ObjectUtils } from '@sankhyalabs/core';
|
|
4
4
|
import { isContinuousSequence } from '../ez-list/ezListHelper';
|
|
5
|
+
import initI18n from '../../utils/i18n';
|
|
5
6
|
export class EzDoubleList {
|
|
6
7
|
constructor() {
|
|
7
8
|
this.LEFT_LIST_ID = 'LEFT-LIST-ID';
|
|
@@ -38,6 +39,9 @@ export class EzDoubleList {
|
|
|
38
39
|
return;
|
|
39
40
|
this.ezRightListChanged.emit(newValue);
|
|
40
41
|
}
|
|
42
|
+
async componentWillLoad() {
|
|
43
|
+
this.i18n = await initI18n();
|
|
44
|
+
}
|
|
41
45
|
async handleChangeLeft({ detail }) {
|
|
42
46
|
if (!detail.to.getAttribute('id') || detail.to.getAttribute('id') !== this.RIGHT_LIST_ID) {
|
|
43
47
|
this.leftList = [...this.reorderArray(detail.dataSource, detail.selectItens, detail.newIndex)];
|
|
@@ -214,7 +218,9 @@ export class EzDoubleList {
|
|
|
214
218
|
title: this.leftTitle,
|
|
215
219
|
isFiltering: this.isFilteringLeft,
|
|
216
220
|
filteredList: this.leftFilteredList,
|
|
217
|
-
emptyMessage: !!((_a = this.emptyMessage) === null || _a === void 0 ? void 0 : _a.LEFT_LIST)
|
|
221
|
+
emptyMessage: !!((_a = this.emptyMessage) === null || _a === void 0 ? void 0 : _a.LEFT_LIST)
|
|
222
|
+
? this.emptyMessage.LEFT_LIST
|
|
223
|
+
: this.i18n("ez-double-list.noItemsAvailable", { entity: this.entityLabel }),
|
|
218
224
|
slotConfig: {
|
|
219
225
|
itemRightSlotBuilder: (_c = (_b = this.slotsListBuilder) === null || _b === void 0 ? void 0 : _b.LEFT_LIST) === null || _c === void 0 ? void 0 : _c.itemRightSlotBuilder,
|
|
220
226
|
itemLeftSlotBuilder: (_e = (_d = this.slotsListBuilder) === null || _d === void 0 ? void 0 : _d.LEFT_LIST) === null || _e === void 0 ? void 0 : _e.itemLeftSlotBuilder,
|
|
@@ -227,13 +233,15 @@ export class EzDoubleList {
|
|
|
227
233
|
onChoose: this.handleChooseLeft.bind(this),
|
|
228
234
|
},
|
|
229
235
|
})), !this.useOnlyRightList &&
|
|
230
|
-
h("div", { class: 'actions__column' }, h("ez-button", { mode: "icon", iconName: "dual-chevron-right", enabled: this.enableTransferAllToRight(), title:
|
|
236
|
+
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({
|
|
231
237
|
idSortableList: this.RIGHT_LIST_ID,
|
|
232
238
|
list: this.rightList,
|
|
233
239
|
title: this.rightTitle,
|
|
234
240
|
isFiltering: this.isFilteringRight,
|
|
235
241
|
filteredList: this.rightFilteredList,
|
|
236
|
-
emptyMessage: !!((_f = this.emptyMessage) === null || _f === void 0 ? void 0 : _f.RIGHT_LIST)
|
|
242
|
+
emptyMessage: !!((_f = this.emptyMessage) === null || _f === void 0 ? void 0 : _f.RIGHT_LIST)
|
|
243
|
+
? this.emptyMessage.RIGHT_LIST
|
|
244
|
+
: this.i18n("ez-double-list.noItemsSelected", { entity: this.entityLabel }),
|
|
237
245
|
slotConfig: {
|
|
238
246
|
itemRightSlotBuilder: (_h = (_g = this.slotsListBuilder) === null || _g === void 0 ? void 0 : _g.RIGHT_LIST) === null || _h === void 0 ? void 0 : _h.itemRightSlotBuilder,
|
|
239
247
|
itemLeftSlotBuilder: (_k = (_j = this.slotsListBuilder) === null || _j === void 0 ? void 0 : _j.RIGHT_LIST) === null || _k === void 0 ? void 0 : _k.itemLeftSlotBuilder,
|
|
@@ -245,7 +253,7 @@ export class EzDoubleList {
|
|
|
245
253
|
onDoubleClick: this.handleTransferToLeft.bind(this),
|
|
246
254
|
onChoose: this.handleChooseRight.bind(this),
|
|
247
255
|
},
|
|
248
|
-
})), h("div", { class: 'actions__column' }, h("ez-button", { mode: "icon", iconName: "dual-chevron-up", enabled: this.enableMoveUp(true), title: "
|
|
256
|
+
})), 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) }))));
|
|
249
257
|
}
|
|
250
258
|
static get is() { return "ez-double-list"; }
|
|
251
259
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
|
|
3
|
+
/* dimensions */
|
|
4
|
+
/*@doc Define a largura do componente.*/
|
|
5
|
+
--ez-empty-card--width: 335px;
|
|
6
|
+
/*@doc Define a altura do componente.*/
|
|
7
|
+
--ez-empty-card--height: 155px;
|
|
8
|
+
/*@doc Define a margem do componente.*/
|
|
9
|
+
--ez-empty-card--padding: var(--space--24, 24px);
|
|
10
|
+
/*@doc Define o raio da borda do componente.*/
|
|
11
|
+
--ez-empty-card--border-radius: var(--border--radius-24, 24px);
|
|
12
|
+
|
|
13
|
+
/*general colors*/
|
|
14
|
+
/*@doc Define a cor de fundo do componente.*/
|
|
15
|
+
--ez-empty-card--background-color: var(--color--gray-70, #ffffff);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
div {
|
|
21
|
+
/*public*/
|
|
22
|
+
width: var(--ez-empty-card--custom-width, var(--ez-empty-card--width));
|
|
23
|
+
height: var(--ez-empty-card--custom-height, var(--ez-empty-card--height));
|
|
24
|
+
border-radius: var(--ez-empty-card--border-radius);
|
|
25
|
+
background-color: var(--ez-empty-card--background-color);
|
|
26
|
+
padding: var(--ez-empty-card--padding);
|
|
27
|
+
|
|
28
|
+
/*private*/
|
|
29
|
+
display: block;
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
outline: none;
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
border: none;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.gray{
|
|
38
|
+
--ez-empty-card--background-color: var(--color--gray-80);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.green{
|
|
42
|
+
--ez-empty-card--background-color: var(--color--ocean-green-90);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.yellow{
|
|
46
|
+
--ez-empty-card--background-color: var(--color--yellow-100);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.red{
|
|
50
|
+
--ez-empty-card--background-color: var(--color--red-100);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.petroleum{
|
|
54
|
+
--ez-empty-card--background-color: var(--color--petroleum-90);
|
|
55
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
2
|
+
import { h, Host } from "@stencil/core";
|
|
3
|
+
export class EzEmptyCard {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.color = "default";
|
|
6
|
+
this.height = undefined;
|
|
7
|
+
this.width = undefined;
|
|
8
|
+
}
|
|
9
|
+
componentDidRender() {
|
|
10
|
+
if (this._element) {
|
|
11
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
12
|
+
}
|
|
13
|
+
if (this._container) {
|
|
14
|
+
const dataInfo = { id: 'container' };
|
|
15
|
+
ElementIDUtils.addIDInfo(this._container, 'empty-card', dataInfo);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
const customStyleVars = Object.assign(Object.assign({}, (this.height ? { '--ez-empty-card--custom-height': `${this.height}px` } : {})), (this.width ? { '--ez-empty-card--custom-width': `${this.width}px` } : {}));
|
|
20
|
+
return (h(Host, { style: customStyleVars }, h("div", { ref: element => this._container = element, class: `card_container ${this.color}` }, h("slot", null))));
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "ez-empty-card"; }
|
|
23
|
+
static get encapsulation() { return "shadow"; }
|
|
24
|
+
static get originalStyleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["ez-empty-card.css"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get styleUrls() {
|
|
30
|
+
return {
|
|
31
|
+
"$": ["ez-empty-card.css"]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
static get properties() {
|
|
35
|
+
return {
|
|
36
|
+
"color": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"mutable": false,
|
|
39
|
+
"complexType": {
|
|
40
|
+
"original": "\"default\" | \"green\" | \"gray\" | \"yellow\" | \"red\" | \"petroleum\"",
|
|
41
|
+
"resolved": "\"default\" | \"gray\" | \"green\" | \"petroleum\" | \"red\" | \"yellow\"",
|
|
42
|
+
"references": {}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": "Define a cor tema do componente."
|
|
49
|
+
},
|
|
50
|
+
"attribute": "color",
|
|
51
|
+
"reflect": true,
|
|
52
|
+
"defaultValue": "\"default\""
|
|
53
|
+
},
|
|
54
|
+
"height": {
|
|
55
|
+
"type": "number",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "number",
|
|
59
|
+
"resolved": "number",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": true,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": "Define o tamanho do componente, sobrescrevendo o padr\u00E3o da propriedade size."
|
|
67
|
+
},
|
|
68
|
+
"attribute": "height",
|
|
69
|
+
"reflect": true
|
|
70
|
+
},
|
|
71
|
+
"width": {
|
|
72
|
+
"type": "number",
|
|
73
|
+
"mutable": false,
|
|
74
|
+
"complexType": {
|
|
75
|
+
"original": "number",
|
|
76
|
+
"resolved": "number",
|
|
77
|
+
"references": {}
|
|
78
|
+
},
|
|
79
|
+
"required": false,
|
|
80
|
+
"optional": true,
|
|
81
|
+
"docs": {
|
|
82
|
+
"tags": [],
|
|
83
|
+
"text": "Define a largura do componente, sobrescrevendo o padr\u00E3o da propriedade size."
|
|
84
|
+
},
|
|
85
|
+
"attribute": "width",
|
|
86
|
+
"reflect": true
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
static get elementRef() { return "_element"; }
|
|
91
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementIDUtils, StringUtils } from "@sankhyalabs/core";
|
|
2
2
|
import { h } from "@stencil/core";
|
|
3
|
+
import initI18n from '../../utils/i18n';
|
|
3
4
|
export class EzFileItem {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.canRemove = true;
|
|
@@ -10,7 +11,7 @@ export class EzFileItem {
|
|
|
10
11
|
}
|
|
11
12
|
observeProgress(newProgress) {
|
|
12
13
|
if (newProgress < 0 || newProgress > 100) {
|
|
13
|
-
throw new Error("
|
|
14
|
+
throw new Error(this.i18n("ez-file-item.invalidProgress"));
|
|
14
15
|
}
|
|
15
16
|
this._element.style.setProperty("--ez-file-item--upload-progress", `${100 - newProgress}%`);
|
|
16
17
|
}
|
|
@@ -31,14 +32,16 @@ export class EzFileItem {
|
|
|
31
32
|
}
|
|
32
33
|
return FILE_TYPE_ICONS[extension] || DEFAULT_FILE_TYPE_ICON;
|
|
33
34
|
}
|
|
35
|
+
async componentWillLoad() {
|
|
36
|
+
this.i18n = await initI18n();
|
|
37
|
+
}
|
|
34
38
|
render() {
|
|
35
39
|
this._element.title = `${this.fileName} ${this.getFileSize()}`;
|
|
36
40
|
ElementIDUtils.addIDInfoIfNotExists(this._element, 'ezFileIcon');
|
|
37
|
-
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 ?
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
} }) : undefined));
|
|
41
|
+
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 => {
|
|
42
|
+
this.ezRemove.emit(this.fileName);
|
|
43
|
+
evt.stopPropagation();
|
|
44
|
+
} })) : undefined));
|
|
42
45
|
}
|
|
43
46
|
static get is() { return "ez-file-item"; }
|
|
44
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ export class EzFormView {
|
|
|
7
7
|
this._customEditors = new Map();
|
|
8
8
|
this.fields = undefined;
|
|
9
9
|
this.selectedRecord = undefined;
|
|
10
|
-
this.singleColumn =
|
|
10
|
+
this.singleColumn = false;
|
|
11
11
|
}
|
|
12
12
|
async showUp() {
|
|
13
13
|
this._element.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
@@ -60,7 +60,8 @@ export class EzFormView {
|
|
|
60
60
|
isItemFullWidth(userInterface) {
|
|
61
61
|
return [
|
|
62
62
|
UserInterface.FILE,
|
|
63
|
-
UserInterface.LONGTEXT
|
|
63
|
+
UserInterface.LONGTEXT,
|
|
64
|
+
UserInterface.HTML,
|
|
64
65
|
].includes(userInterface);
|
|
65
66
|
}
|
|
66
67
|
buildFormItemElement(item, classItem = "") {
|
|
@@ -167,7 +168,7 @@ export class EzFormView {
|
|
|
167
168
|
},
|
|
168
169
|
"attribute": "single-column",
|
|
169
170
|
"reflect": false,
|
|
170
|
-
"defaultValue": "
|
|
171
|
+
"defaultValue": "false"
|
|
171
172
|
}
|
|
172
173
|
};
|
|
173
174
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UserInterface } from "@sankhyalabs/core";
|
|
2
|
-
import { REQUIRED_INFO } from "../../../utils/constants";
|
|
3
2
|
import { buildCheckBox, buildSwitch } from "./templates/CheckBox.tpl";
|
|
4
3
|
import { buildComboBox } from "./templates/ComboBox.tpl";
|
|
5
4
|
import { buildDate, buildTime, buildDateTime, buildTimeSeconds } from "./templates/DateInput.tpl";
|
|
@@ -9,6 +8,8 @@ import { buildTextArea } from "./templates/TextArea.tpl";
|
|
|
9
8
|
import { buildTextInput } from "./templates/TextInput.tpl";
|
|
10
9
|
import { buildSearchPlus } from "./templates/SearchInputPlus.tpl";
|
|
11
10
|
import { buildSearch } from "./templates/SearchInput.tpl";
|
|
11
|
+
import { buildRichText } from "./templates/RichText.tpl";
|
|
12
|
+
import { getI18n } from "../../../utils/i18n";
|
|
12
13
|
const uiBuilders = new Map();
|
|
13
14
|
uiBuilders.set(UserInterface.CHECKBOX, buildCheckBox);
|
|
14
15
|
uiBuilders.set(UserInterface.SWITCH, buildSwitch);
|
|
@@ -23,9 +24,11 @@ uiBuilders.set(UserInterface.INTEGERNUMBER, buildInteger);
|
|
|
23
24
|
uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
24
25
|
uiBuilders.set(UserInterface.SEARCHPLUS, buildSearchPlus);
|
|
25
26
|
uiBuilders.set(UserInterface.LONGTEXT, buildTextArea);
|
|
27
|
+
uiBuilders.set(UserInterface.HTML, buildRichText);
|
|
26
28
|
export const fieldBuilder = (field) => {
|
|
29
|
+
const i18n = getI18n();
|
|
27
30
|
const builder = uiBuilders.get(field.userInterface) || buildTextInput;
|
|
28
|
-
const label = field.required ? `${field.label}${
|
|
31
|
+
const label = field.required ? `${field.label}${i18n("app.requiredInfo")}` : field.label;
|
|
29
32
|
const builtElement = builder(Object.assign(Object.assign({}, field), { label }));
|
|
30
33
|
//@ts-ignore
|
|
31
34
|
builtElement.$attrs$['data-form-item'] = field.name;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const buildRichText = ({ name, label, readOnly, contextName, rows, canShowError }) => {
|
|
3
|
+
return (h("div", { class: "ez-col ez-col--sd-12" }, h("ez-rich-text", { key: name, enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows, canShowError: canShowError })));
|
|
4
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ApplicationContext, DataType, LockManager, LockManagerOperation, MaskFormatter, NumberUtils, SortMode, StringUtils, UserInterface, } from '@sankhyalabs/core';
|
|
2
|
-
import { Grid } from "@ag-grid-community/core";
|
|
2
|
+
import { Grid, } from "@ag-grid-community/core";
|
|
3
3
|
import { LicenseManager } from '@ag-grid-enterprise/core';
|
|
4
4
|
import DataSource from './DataSource';
|
|
5
5
|
import { EzGridCustomHeader } from './components/EzGridCustomHeader';
|
|
6
6
|
import { CellRendererStatus } from './components/cellRendererStatus';
|
|
7
7
|
import SelectionHeader from './components/selectionHeader';
|
|
8
|
-
import gridTerms from './i18n/pt-BR';
|
|
9
8
|
import { DISTINCT_FILTER_NAME_PREFIX, EZ_GRID_LOADING_SOURCE, PRESENTATION_COL_ID_PROP_NAME, PRESENTATION_FROM_COL_PROP_NAME } from '../../../../utils/constants';
|
|
10
9
|
import GridEditionManager from './GridEditionManager';
|
|
11
10
|
import { ModuleRegistry } from '@ag-grid-community/core';
|
|
@@ -14,6 +13,8 @@ import { RangeSelectionModule } from '@ag-grid-enterprise/range-selection';
|
|
|
14
13
|
import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';
|
|
15
14
|
import { ClipboardModule } from '@ag-grid-enterprise/clipboard';
|
|
16
15
|
import { MenuModule } from '@ag-grid-enterprise/menu';
|
|
16
|
+
import DOMPurify from 'dompurify';
|
|
17
|
+
import { buildLocaleText } from './utils/buildLocaleText';
|
|
17
18
|
export default class AgGridController {
|
|
18
19
|
configFilterColumn(filterColumn) {
|
|
19
20
|
this._filterColumn = filterColumn;
|
|
@@ -168,6 +169,7 @@ export default class AgGridController {
|
|
|
168
169
|
}
|
|
169
170
|
if (this._grid === undefined) {
|
|
170
171
|
LicenseManager.setLicenseKey(ApplicationContext.getContextValue('__EZUI__GRID_LICENSE__'));
|
|
172
|
+
this._i18n = options.i18n;
|
|
171
173
|
this._columnStateChangeCallback = options.onColumnStateChange;
|
|
172
174
|
this._selectionChangeCallback = options.onSelectionChange;
|
|
173
175
|
this._doubleClickCallBack = options.onDoubleClick;
|
|
@@ -181,7 +183,7 @@ export default class AgGridController {
|
|
|
181
183
|
}
|
|
182
184
|
this._gridOptions = {
|
|
183
185
|
suppressHorizontalScroll: options.suppressHorizontalScroll,
|
|
184
|
-
localeText:
|
|
186
|
+
localeText: buildLocaleText(this._options.i18n),
|
|
185
187
|
enableRangeSelection: this._multipleSelection,
|
|
186
188
|
rowSelection: this._multipleSelection ? 'multiple' : 'single',
|
|
187
189
|
sortingOrder: ['desc', 'asc', null],
|
|
@@ -295,7 +297,7 @@ export default class AgGridController {
|
|
|
295
297
|
buildMenuItemOptionSort(params, sortOrder) {
|
|
296
298
|
return {
|
|
297
299
|
icon: sortOrder === 'asc' ? `<i class='ez-icon-ordem-ascendente'></i>` : `<i class='ez-icon-ordem-descendente'></i>`,
|
|
298
|
-
name: sortOrder === 'asc' ?
|
|
300
|
+
name: sortOrder === 'asc' ? this._i18n("ez-grid.sortAscending") : this._i18n("ez-grid.sortDescending"),
|
|
299
301
|
action: () => this.sortDataByColumn(params, sortOrder),
|
|
300
302
|
};
|
|
301
303
|
}
|
|
@@ -304,7 +306,7 @@ export default class AgGridController {
|
|
|
304
306
|
const columnLabel = params.column.getColDef().headerName;
|
|
305
307
|
return {
|
|
306
308
|
icon: `<i class='ez-icon-filter'></i>`,
|
|
307
|
-
name:
|
|
309
|
+
name: this._i18n("ez-grid.filter"),
|
|
308
310
|
action: () => this.showFilterColumn({ columnName, columnLabel, leftPosition: this._filterColumnleftPosition, filteredOptions: this._filteredColumns.get(columnName) }),
|
|
309
311
|
};
|
|
310
312
|
}
|
|
@@ -330,7 +332,7 @@ export default class AgGridController {
|
|
|
330
332
|
const isPinned = params.column.isPinned();
|
|
331
333
|
return {
|
|
332
334
|
icon: `<i class='ez-icon-${isPinned ? 'un-pin' : 'push-pin'}'></i>`,
|
|
333
|
-
name: isPinned ?
|
|
335
|
+
name: isPinned ? this._i18n("ez-grid.unpinColumn") : this._i18n("ez-grid.pinColumn"),
|
|
334
336
|
action: () => {
|
|
335
337
|
columnApi.applyColumnState({
|
|
336
338
|
state: [{ colId: column.getColId(), pinned: column.isPinned() ? null : 'left' }],
|
|
@@ -708,7 +710,9 @@ export default class AgGridController {
|
|
|
708
710
|
this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
|
|
709
711
|
}
|
|
710
712
|
setColumnsDef(cols) {
|
|
711
|
-
const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: this.CHECK_BOX_COL_ID, checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection
|
|
713
|
+
const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: this.CHECK_BOX_COL_ID, checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection ?
|
|
714
|
+
{ headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' }
|
|
715
|
+
: { headerComponentParams: { displayName: '' } }));
|
|
712
716
|
const newColDefs = this._options.suppressCheckBoxCol ? [] : [checkBoxColumn];
|
|
713
717
|
if (this._statusResolver != undefined) {
|
|
714
718
|
newColDefs.push({
|
|
@@ -729,6 +733,7 @@ export default class AgGridController {
|
|
|
729
733
|
cellStyle: {
|
|
730
734
|
'text-align': 'center',
|
|
731
735
|
},
|
|
736
|
+
suppressNavigable: true,
|
|
732
737
|
});
|
|
733
738
|
}
|
|
734
739
|
cols.forEach(c => {
|
|
@@ -932,7 +937,7 @@ export default class AgGridController {
|
|
|
932
937
|
tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get('gridHeaderTooltip');
|
|
933
938
|
}
|
|
934
939
|
else if (propSortable === false) {
|
|
935
|
-
tooltip = '
|
|
940
|
+
tooltip = this._i18n('ez-grid.columnCantBeOrder');
|
|
936
941
|
}
|
|
937
942
|
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);
|
|
938
943
|
return this._editionManager.configureColumn({
|
|
@@ -957,7 +962,11 @@ export default class AgGridController {
|
|
|
957
962
|
return "";
|
|
958
963
|
}
|
|
959
964
|
if (params.value instanceof Promise) {
|
|
960
|
-
return "
|
|
965
|
+
return `${this._i18n("app.loading")}...`;
|
|
966
|
+
}
|
|
967
|
+
if (source.userInterface === UserInterface.HTML) {
|
|
968
|
+
this.setHTMLRender(params, source);
|
|
969
|
+
return "";
|
|
961
970
|
}
|
|
962
971
|
const customFormatter = this._customFormatters.get(source.name);
|
|
963
972
|
if (customFormatter) {
|
|
@@ -975,6 +984,24 @@ export default class AgGridController {
|
|
|
975
984
|
editable: !((_e = source.props) === null || _e === void 0 ? void 0 : _e.has(PRESENTATION_FROM_COL_PROP_NAME))
|
|
976
985
|
});
|
|
977
986
|
}
|
|
987
|
+
setHTMLRender(params, source) {
|
|
988
|
+
const htmlSanitized = DOMPurify.sanitize(params.value);
|
|
989
|
+
params.colDef.cellRenderer = (cellParams) => {
|
|
990
|
+
if (cellParams.node.rowIndex === params.node.rowIndex) {
|
|
991
|
+
const element = document.createElement('span');
|
|
992
|
+
element.innerHTML = htmlSanitized;
|
|
993
|
+
return element;
|
|
994
|
+
}
|
|
995
|
+
return cellParams.value;
|
|
996
|
+
};
|
|
997
|
+
params.colDef.cellStyle = (cellParams) => {
|
|
998
|
+
const defaultStyle = this.getStyleByColumn(source);
|
|
999
|
+
if (cellParams.node.rowIndex === params.node.rowIndex) {
|
|
1000
|
+
return Object.assign(defaultStyle, { padding: 0 });
|
|
1001
|
+
}
|
|
1002
|
+
return defaultStyle;
|
|
1003
|
+
};
|
|
1004
|
+
}
|
|
978
1005
|
setCustomFormatters(customFormatters) {
|
|
979
1006
|
this._customFormatters = customFormatters;
|
|
980
1007
|
}
|
|
@@ -1031,10 +1058,10 @@ export default class AgGridController {
|
|
|
1031
1058
|
}
|
|
1032
1059
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SWITCH) {
|
|
1033
1060
|
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') {
|
|
1034
|
-
return
|
|
1061
|
+
return this._i18n("app.yes");
|
|
1035
1062
|
}
|
|
1036
1063
|
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') {
|
|
1037
|
-
return
|
|
1064
|
+
return this._i18n("app.no");
|
|
1038
1065
|
}
|
|
1039
1066
|
}
|
|
1040
1067
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SEARCH) {
|
|
@@ -234,6 +234,10 @@ export default class DataSource {
|
|
|
234
234
|
(_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.unsubscribe(this.duObserver);
|
|
235
235
|
(_b = this._dataUnit) === null || _b === void 0 ? void 0 : _b.subscribe(this.duObserver);
|
|
236
236
|
}
|
|
237
|
+
getDescriptionField(descriptionName, entityName) {
|
|
238
|
+
const descriptionFieldName = `${entityName}.${descriptionName}`;
|
|
239
|
+
return this._dataUnit.metadata.fields.find((field) => field.name === descriptionFieldName);
|
|
240
|
+
}
|
|
237
241
|
buildColumnDefs() {
|
|
238
242
|
try {
|
|
239
243
|
const gridConfig = this._controller.getGridConfig() || [];
|
|
@@ -245,7 +249,7 @@ export default class DataSource {
|
|
|
245
249
|
return indexA - indexB;
|
|
246
250
|
});
|
|
247
251
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
248
|
-
var _a, _b;
|
|
252
|
+
var _a, _b, _c, _d, _e, _f;
|
|
249
253
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
250
254
|
const props = new Map();
|
|
251
255
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
@@ -255,9 +259,15 @@ export default class DataSource {
|
|
|
255
259
|
const col = { label: f.label, name: f.name, userInterface: f.userInterface, options: (_a = this._dataUnit.getField(f.name).properties) === null || _a === void 0 ? void 0 : _a.options, props };
|
|
256
260
|
columnDefs.push(col);
|
|
257
261
|
if (f.userInterface === UserInterface.SEARCHPLUS && ((_b = f.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD)) {
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
262
|
+
const descriptionField = this.getDescriptionField((_c = f.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONFIELD, (_d = f.properties) === null || _d === void 0 ? void 0 : _d.ENTITYNAME);
|
|
263
|
+
if (descriptionField) {
|
|
264
|
+
descriptionField.label = `${(_e = f.properties) === null || _e === void 0 ? void 0 : _e.DESCRIPTIONFIELDLABEL} (${(_f = f.properties) === null || _f === void 0 ? void 0 : _f.DESCRIPTIONENTITY})`;
|
|
265
|
+
}
|
|
266
|
+
else {
|
|
267
|
+
const descriptionCol = this.buildDescriptionColumn(f);
|
|
268
|
+
columnDefs.push(descriptionCol);
|
|
269
|
+
f.properties[PRESENTATION_COL_ID_PROP_NAME] = descriptionCol.name;
|
|
270
|
+
}
|
|
261
271
|
}
|
|
262
272
|
}
|
|
263
273
|
});
|
|
@@ -345,11 +345,14 @@ export default class GridEditionManager {
|
|
|
345
345
|
}
|
|
346
346
|
isColEditable(fieldName) {
|
|
347
347
|
const fieldDefinition = this._dataUnit.getField(fieldName);
|
|
348
|
-
if (fieldDefinition) {
|
|
348
|
+
if (fieldDefinition && !this.isTypeFile(fieldDefinition)) {
|
|
349
349
|
return !fieldDefinition.readOnly;
|
|
350
350
|
}
|
|
351
351
|
return false;
|
|
352
352
|
}
|
|
353
|
+
isTypeFile(file) {
|
|
354
|
+
return file.userInterface === UserInterface.FILE;
|
|
355
|
+
}
|
|
353
356
|
isSecondClick(cellClicked) {
|
|
354
357
|
if (!this._lastCellClicked) {
|
|
355
358
|
return false;
|
package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StringUtils } from "@sankhyalabs/core";
|
|
2
|
+
import initI18n from "../../../../../../utils/i18n";
|
|
2
3
|
const columnsState = [{
|
|
3
4
|
colId: StringUtils.generateUUID(),
|
|
4
5
|
}];
|
|
@@ -24,7 +25,7 @@ export const gridEditionImplementation = {
|
|
|
24
25
|
getColumnState: () => columnsState,
|
|
25
26
|
} }))
|
|
26
27
|
};
|
|
27
|
-
export function buildOptions(dataUnit) {
|
|
28
|
+
export async function buildOptions(dataUnit) {
|
|
28
29
|
return ({
|
|
29
30
|
allowMultipleSelection: true,
|
|
30
31
|
dataUnit,
|
|
@@ -38,5 +39,6 @@ export function buildOptions(dataUnit) {
|
|
|
38
39
|
useEnterLikeTab: true,
|
|
39
40
|
enableContinuousInsert: false,
|
|
40
41
|
enableGridInsert: false,
|
|
42
|
+
i18n: await initI18n(),
|
|
41
43
|
});
|
|
42
44
|
}
|