@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
|
@@ -3,6 +3,7 @@ import { forceUpdate, h, Host } from '@stencil/core';
|
|
|
3
3
|
import { defaultIconResolver, defaultTooltipResolver } from './subcomponents';
|
|
4
4
|
import { TreeItem } from './subcomponents/TreeItem';
|
|
5
5
|
import { Tree } from './types/Tree';
|
|
6
|
+
import initI18n from '../../utils/i18n';
|
|
6
7
|
export class EzTree {
|
|
7
8
|
constructor() {
|
|
8
9
|
this._onItemClick = (item) => {
|
|
@@ -253,6 +254,9 @@ export class EzTree {
|
|
|
253
254
|
this._tree.load(this.items);
|
|
254
255
|
}
|
|
255
256
|
}
|
|
257
|
+
async componentWillLoad() {
|
|
258
|
+
this.i18n = await initI18n();
|
|
259
|
+
}
|
|
256
260
|
componentWillRender() {
|
|
257
261
|
var _a;
|
|
258
262
|
if (!this.selectedId || ((_a = this.value) === null || _a === void 0 ? void 0 : _a.id) === this.selectedId) {
|
|
@@ -270,7 +274,7 @@ export class EzTree {
|
|
|
270
274
|
}
|
|
271
275
|
this._visibleItems = [];
|
|
272
276
|
return (h(Host, { tabindex: "-1" }, this._waintingForLoad ?
|
|
273
|
-
h("label", null, "
|
|
277
|
+
h("label", null, this.i18n("app.loading"), "...")
|
|
274
278
|
:
|
|
275
279
|
this._tree.getChildren().map(node => {
|
|
276
280
|
var _a;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { h, forceUpdate } from "@stencil/core";
|
|
2
|
-
import ApplicationUtils from "../../utils/ApplicationUtils";
|
|
3
1
|
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
2
|
+
import { forceUpdate, h } from "@stencil/core";
|
|
3
|
+
import ApplicationUtils from "../../utils/ApplicationUtils";
|
|
4
|
+
import initI18n from "../../utils/i18n";
|
|
4
5
|
import RemoteFile from "./RemoteFile";
|
|
5
6
|
export class EzUpload {
|
|
6
7
|
constructor() {
|
|
@@ -61,7 +62,7 @@ export class EzUpload {
|
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
64
|
if (countDistinctFiles > this.maxFiles) {
|
|
64
|
-
this.showError(
|
|
65
|
+
this.showError(this.i18n("ez-upload.maxFilesError", { maxFiles: this.maxFiles }));
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
68
|
}
|
|
@@ -82,8 +83,7 @@ export class EzUpload {
|
|
|
82
83
|
async addFile(file) {
|
|
83
84
|
const oldFile = this._filePointers.get(file.name);
|
|
84
85
|
if (oldFile) {
|
|
85
|
-
ApplicationUtils.confirm("
|
|
86
|
-
.then(ok => {
|
|
86
|
+
ApplicationUtils.confirm(this.i18n("ez-upload.replaceFileTitle"), this.i18n("ez-upload.replaceFileMessage", { fileName: file.name })).then(ok => {
|
|
87
87
|
if (ok) {
|
|
88
88
|
if (this.isRemoteFile(oldFile)) {
|
|
89
89
|
oldFile.abortUpload();
|
|
@@ -99,7 +99,10 @@ export class EzUpload {
|
|
|
99
99
|
async doAddFile(file) {
|
|
100
100
|
try {
|
|
101
101
|
if (this.validateFile(file)) {
|
|
102
|
-
this.ezStartChange.emit({
|
|
102
|
+
this.ezStartChange.emit({
|
|
103
|
+
waitmessage: this.i18n("ez-upload.uploadingMessage"),
|
|
104
|
+
blocking: true
|
|
105
|
+
});
|
|
103
106
|
const uploadingFile = new RemoteFile(file);
|
|
104
107
|
const oldPointer = this._filePointers.get(file.name);
|
|
105
108
|
if (oldPointer && this.isRemoteFile(oldPointer)) {
|
|
@@ -152,25 +155,25 @@ export class EzUpload {
|
|
|
152
155
|
}
|
|
153
156
|
validateFile(file) {
|
|
154
157
|
if (!this._filePointers.has(file.name) && this.maxFiles > 0 && this._filePointers.size >= this.maxFiles) {
|
|
155
|
-
this.showError(
|
|
158
|
+
this.showError(this.i18n("ez-upload.maxFilesError", { maxFiles: this.maxFiles }));
|
|
156
159
|
return false;
|
|
157
160
|
}
|
|
158
161
|
if (file.size === 0) {
|
|
159
|
-
this.showError(
|
|
162
|
+
this.showError(this.i18n("ez-upload.emptyFileError", { fileName: file.name }));
|
|
160
163
|
return false;
|
|
161
164
|
}
|
|
162
165
|
if (!this.urlUpload) {
|
|
163
|
-
this.showError("
|
|
166
|
+
this.showError(this.i18n("ez-upload.missingUploadUrlError"));
|
|
164
167
|
return false;
|
|
165
168
|
}
|
|
166
169
|
if (this.maxFileSize >= 0 && file.size > this.maxFileSize) {
|
|
167
|
-
this.showError("
|
|
170
|
+
this.showError(this.i18n("ez-upload.maxFileSizeError", { maxSize: this.formatBytes(this.maxFileSize) }));
|
|
168
171
|
return false;
|
|
169
172
|
}
|
|
170
173
|
return true;
|
|
171
174
|
}
|
|
172
175
|
showError(message) {
|
|
173
|
-
ApplicationUtils.alert("
|
|
176
|
+
ApplicationUtils.alert(this.i18n("ez-upload.uploadErrorTitle"), message);
|
|
174
177
|
}
|
|
175
178
|
formatBytes(bytes, decimals = 1) {
|
|
176
179
|
if (bytes === 0)
|
|
@@ -247,8 +250,11 @@ export class EzUpload {
|
|
|
247
250
|
}
|
|
248
251
|
}
|
|
249
252
|
}
|
|
253
|
+
async componentWillLoad() {
|
|
254
|
+
this.i18n = await initI18n();
|
|
255
|
+
}
|
|
250
256
|
render() {
|
|
251
|
-
return (h("div", { ref: (el) => this._dropZone = el, class: this.evalDisabledClass("iu", "background--disabled") }, h("div", { class: "iu__container", onClick: () => this.openFilesDialog() }, h("div", { class: "iu_header" }, this.label ? h("label", { class: this.evalDisabledClass("iu__label", "text--disabled"), title: this.label }, this.label) : null, h("div", { class: "padding-large" }, h("div", { class: this.evalDisabledClass("iu__icon-label", "mouse-pointer--disabled") }, h("button", { class: "iu__file-icon", disabled: !this.enabled }), h("div", { class: this.evalDisabledClass("text text--center text--medium text--primary", "text--disabled") }, this.enabled ? "
|
|
257
|
+
return (h("div", { ref: (el) => this._dropZone = el, class: this.evalDisabledClass("iu", "background--disabled") }, h("div", { class: "iu__container", onClick: () => this.openFilesDialog() }, h("div", { class: "iu_header" }, this.label ? h("label", { class: this.evalDisabledClass("iu__label", "text--disabled"), title: this.label }, this.label) : null, h("div", { class: "padding-large" }, h("div", { class: this.evalDisabledClass("iu__icon-label", "mouse-pointer--disabled") }, h("button", { class: "iu__file-icon", disabled: !this.enabled }), h("div", { class: this.evalDisabledClass("text text--center text--medium text--primary", "text--disabled") }, this.enabled ? this.i18n("ez-upload.enable") : this.i18n("ez-upload.disable"))), this.subtitle &&
|
|
252
258
|
h("div", { class: this.evalDisabledClass("padding-extra-small text text--center text--small text--secondary", "text--disabled") }, this.subtitle))), this.buildFooter()), h("input", { ref: (el) => this._fileInput = el, onChange: (ev) => this.onFileInputChange(ev), type: "file", multiple: true, class: "appearanceNone" })));
|
|
253
259
|
}
|
|
254
260
|
buildFooter() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
global.ResizeObserver = require('resize-observer-polyfill')
|
|
1
|
+
global.ResizeObserver = require('resize-observer-polyfill');
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { v4 as uuid } from "uuid";
|
|
2
2
|
import { DialogType } from "../components/ez-dialog/DialogType";
|
|
3
|
+
import initI18n from "./i18n";
|
|
3
4
|
export default class ApplicationUtils {
|
|
5
|
+
static async getDefaultMessageOptions() {
|
|
6
|
+
if (!this.i18n) {
|
|
7
|
+
this.i18n = await initI18n();
|
|
8
|
+
}
|
|
9
|
+
return {
|
|
10
|
+
canClose: true,
|
|
11
|
+
labelCancel: this.i18n("app.no"),
|
|
12
|
+
labelConfirm: this.i18n("app.yes"),
|
|
13
|
+
btnConfirmDanger: false
|
|
14
|
+
};
|
|
15
|
+
}
|
|
4
16
|
static async showDialog(title, message, icon = null, confirm, dialogType = DialogType.DEFAULT, options) {
|
|
5
17
|
if (options) {
|
|
6
|
-
|
|
18
|
+
const defaultMessageOptions = await this.getDefaultMessageOptions();
|
|
19
|
+
options = Object.assign(Object.assign({}, defaultMessageOptions), options);
|
|
7
20
|
}
|
|
8
21
|
return new Promise(resolve => {
|
|
9
22
|
let dialog = document.createElement("ez-dialog");
|
|
@@ -15,24 +28,45 @@ export default class ApplicationUtils {
|
|
|
15
28
|
});
|
|
16
29
|
});
|
|
17
30
|
}
|
|
18
|
-
static async alert(title, message, icon = null, options
|
|
31
|
+
static async alert(title, message, icon = null, options) {
|
|
32
|
+
if (!options) {
|
|
33
|
+
const defaultMessageOptions = await this.getDefaultMessageOptions();
|
|
34
|
+
options = defaultMessageOptions;
|
|
35
|
+
}
|
|
19
36
|
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.WARN, options);
|
|
20
37
|
}
|
|
21
|
-
static async error(title, message, icon = null, options
|
|
38
|
+
static async error(title, message, icon = null, options) {
|
|
39
|
+
if (!options) {
|
|
40
|
+
const defaultMessageOptions = await this.getDefaultMessageOptions();
|
|
41
|
+
options = defaultMessageOptions;
|
|
42
|
+
}
|
|
22
43
|
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.CRITICAL, options);
|
|
23
44
|
}
|
|
24
|
-
static async success(title, message, icon = null, options
|
|
45
|
+
static async success(title, message, icon = null, options) {
|
|
46
|
+
if (!options) {
|
|
47
|
+
const defaultMessageOptions = await this.getDefaultMessageOptions();
|
|
48
|
+
options = defaultMessageOptions;
|
|
49
|
+
}
|
|
25
50
|
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.SUCCESS, options);
|
|
26
51
|
}
|
|
27
|
-
static async confirm(title, message, icon = null, dialogType = DialogType.WARN, options
|
|
52
|
+
static async confirm(title, message, icon = null, dialogType = DialogType.WARN, options) {
|
|
53
|
+
if (!options) {
|
|
54
|
+
const defaultMessageOptions = await this.getDefaultMessageOptions();
|
|
55
|
+
options = defaultMessageOptions;
|
|
56
|
+
}
|
|
28
57
|
return ApplicationUtils.showDialog(title, message, icon, true, dialogType, options);
|
|
29
58
|
}
|
|
30
|
-
static async message(title, message, icon = null, options
|
|
59
|
+
static async message(title, message, icon = null, options) {
|
|
60
|
+
if (!options) {
|
|
61
|
+
const defaultMessageOptions = await this.getDefaultMessageOptions();
|
|
62
|
+
options = defaultMessageOptions;
|
|
63
|
+
}
|
|
31
64
|
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.DEFAULT, options);
|
|
32
65
|
}
|
|
33
|
-
static async info(message, options
|
|
34
|
-
|
|
35
|
-
|
|
66
|
+
static async info(message, options) {
|
|
67
|
+
const defaultMessageOptions = await this.getDefaultMessageOptions();
|
|
68
|
+
if (options !== defaultMessageOptions) {
|
|
69
|
+
options = Object.assign(Object.assign({}, defaultMessageOptions), options);
|
|
36
70
|
}
|
|
37
71
|
let useIcon = false;
|
|
38
72
|
let toast = document.querySelector("ez-toast");
|
|
@@ -120,12 +154,6 @@ export default class ApplicationUtils {
|
|
|
120
154
|
alertList.alerts = props.alerts;
|
|
121
155
|
}
|
|
122
156
|
}
|
|
123
|
-
ApplicationUtils.defaultMessageOptions = {
|
|
124
|
-
canClose: true,
|
|
125
|
-
labelCancel: 'Não',
|
|
126
|
-
labelConfirm: 'Sim',
|
|
127
|
-
btnConfirmDanger: false
|
|
128
|
-
};
|
|
129
157
|
ApplicationUtils.defaultModalProps = {
|
|
130
158
|
content: null,
|
|
131
159
|
position: 'right',
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ELanguages } from "./elanguages";
|
|
2
|
+
export function getDocumentLang() {
|
|
3
|
+
if (process.env.NODE_ENV === 'development') {
|
|
4
|
+
return ELanguages.PT_BR;
|
|
5
|
+
}
|
|
6
|
+
const lang = document.documentElement.lang || navigator.language || "pt-BR";
|
|
7
|
+
switch (lang.toLocaleLowerCase()) {
|
|
8
|
+
case "en":
|
|
9
|
+
case "en_us":
|
|
10
|
+
case "en-us":
|
|
11
|
+
return ELanguages.EN_US;
|
|
12
|
+
case "es":
|
|
13
|
+
case "es_es":
|
|
14
|
+
case "es-es":
|
|
15
|
+
return ELanguages.ES_ES;
|
|
16
|
+
default:
|
|
17
|
+
return ELanguages.PT_BR;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as i18nNext } from 'i18next';
|
|
2
|
+
import LanguageDetector from "i18next-browser-languagedetector";
|
|
3
|
+
import translations from "./translations";
|
|
4
|
+
import { ELanguages } from './elanguages';
|
|
5
|
+
import { getDocumentLang } from './i18nUtils';
|
|
6
|
+
import { ApplicationContext } from '@sankhyalabs/core';
|
|
7
|
+
const KEY_I18N = "__EZ_UI_I18N_INSTANCE__";
|
|
8
|
+
export function getI18n() {
|
|
9
|
+
let i18nInstance = ApplicationContext.getContextValue(KEY_I18N);
|
|
10
|
+
return i18nInstance;
|
|
11
|
+
}
|
|
12
|
+
const initI18n = async (forceLang) => {
|
|
13
|
+
let i18nTFunction = getI18n();
|
|
14
|
+
if (!i18nTFunction) {
|
|
15
|
+
const i18nInstance = i18nNext.createInstance();
|
|
16
|
+
const i18nextOptions = {
|
|
17
|
+
resources: translations,
|
|
18
|
+
fallbackLng: ELanguages.PT_BR
|
|
19
|
+
};
|
|
20
|
+
await i18nInstance
|
|
21
|
+
.use(LanguageDetector)
|
|
22
|
+
.init(i18nextOptions);
|
|
23
|
+
const lang = forceLang !== null && forceLang !== void 0 ? forceLang : getDocumentLang();
|
|
24
|
+
await i18nInstance.changeLanguage(lang);
|
|
25
|
+
ApplicationContext.setContextValue(KEY_I18N, i18nInstance.t);
|
|
26
|
+
i18nTFunction = i18nInstance.t;
|
|
27
|
+
}
|
|
28
|
+
return i18nTFunction;
|
|
29
|
+
};
|
|
30
|
+
export default initI18n;
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
translation: {
|
|
3
|
+
app: {
|
|
4
|
+
collapse: "Collapse",
|
|
5
|
+
expand: "Expand",
|
|
6
|
+
close: "Close",
|
|
7
|
+
profile: "Profile",
|
|
8
|
+
warning: "Warning",
|
|
9
|
+
edit: "Edit",
|
|
10
|
+
remove: "Remove",
|
|
11
|
+
yes: "Yes",
|
|
12
|
+
no: "No",
|
|
13
|
+
loading: "Loading",
|
|
14
|
+
apply: "Apply",
|
|
15
|
+
cancel: "Cancel",
|
|
16
|
+
ok: "OK",
|
|
17
|
+
alerts: "Alerts",
|
|
18
|
+
requiredInfo: " (required) *",
|
|
19
|
+
},
|
|
20
|
+
"ez-upload": {
|
|
21
|
+
enable: "Drag and drop or click to add files",
|
|
22
|
+
disable: "Read only",
|
|
23
|
+
replaceFileTitle: "Replace file",
|
|
24
|
+
replaceFileMessage: "A file named \"{{fileName}}\" already exists. Do you want to replace it?",
|
|
25
|
+
maxFilesError: "The maximum number of files is {{maxFiles}}.",
|
|
26
|
+
emptyFileError: "Permission error: The file \"{{fileName}}\" cannot be uploaded.",
|
|
27
|
+
missingUploadUrlError: "Upload URL not provided.",
|
|
28
|
+
maxFileSizeError: "The maximum file size is {{maxSize}}.",
|
|
29
|
+
uploadErrorTitle: "Uploading file",
|
|
30
|
+
uploadingMessage: "Files are being uploaded. Please wait for completion or cancel the upload."
|
|
31
|
+
},
|
|
32
|
+
"ez-calendar": {
|
|
33
|
+
month: {
|
|
34
|
+
0: "January",
|
|
35
|
+
1: "February",
|
|
36
|
+
2: "March",
|
|
37
|
+
3: "April",
|
|
38
|
+
4: "May",
|
|
39
|
+
5: "June",
|
|
40
|
+
6: "July",
|
|
41
|
+
7: "August",
|
|
42
|
+
8: "September",
|
|
43
|
+
9: "October",
|
|
44
|
+
10: "November",
|
|
45
|
+
11: "December"
|
|
46
|
+
},
|
|
47
|
+
weekDay: {
|
|
48
|
+
0: "S",
|
|
49
|
+
1: "M",
|
|
50
|
+
2: "T",
|
|
51
|
+
3: "W",
|
|
52
|
+
4: "T",
|
|
53
|
+
5: "F",
|
|
54
|
+
6: "S"
|
|
55
|
+
},
|
|
56
|
+
today: "Today"
|
|
57
|
+
},
|
|
58
|
+
"ez-collapsible-box": {
|
|
59
|
+
confirmRemove: "Do you really want to remove the group <b>{{label}}</b>?",
|
|
60
|
+
},
|
|
61
|
+
"ez-combo-box": {
|
|
62
|
+
placeholder: "Select an item",
|
|
63
|
+
noResults: "No results found",
|
|
64
|
+
},
|
|
65
|
+
"ez-date-time-input": {
|
|
66
|
+
invalidDate: "The entered value is not a valid date and time"
|
|
67
|
+
},
|
|
68
|
+
"ez-date-input": {
|
|
69
|
+
invalidDate: "The entered value is not a valid date"
|
|
70
|
+
},
|
|
71
|
+
"ez-dialog": {
|
|
72
|
+
confirmButton: "Confirm or OK button",
|
|
73
|
+
closeButton: "Close or X button"
|
|
74
|
+
},
|
|
75
|
+
"ez-double-list": {
|
|
76
|
+
noItemsAvailable: "No {{entity}} available",
|
|
77
|
+
noItemsSelected: "No {{entity}} selected",
|
|
78
|
+
moveAllTo: "Move all to {{list}}",
|
|
79
|
+
moveTo: "Move to {{list}}",
|
|
80
|
+
moveToFirstPosition: "Move to the first position",
|
|
81
|
+
moveUp: "Move up",
|
|
82
|
+
moveDown: "Move down",
|
|
83
|
+
moveToLastPosition: "Move to the last position"
|
|
84
|
+
},
|
|
85
|
+
"ez-file-item": {
|
|
86
|
+
invalidProgress: "The upload progress must be a number between 0 and 100."
|
|
87
|
+
},
|
|
88
|
+
"ez-grid": {
|
|
89
|
+
filterAppliedSuccess: "Column filter applied successfully!",
|
|
90
|
+
cancelPagination: "Cancel pagination",
|
|
91
|
+
pageLabel: "Page {{currentPage}}",
|
|
92
|
+
previousPage: "Previous page",
|
|
93
|
+
nextPage: "Next page",
|
|
94
|
+
returnToPreviousPage: "Return to the previous page.",
|
|
95
|
+
goToNextPage: "Move to the next page.",
|
|
96
|
+
remainingPageLabel: " from {{count}} or more",
|
|
97
|
+
remainingTotalLabel: " from {{total}}",
|
|
98
|
+
nextRecord: "Move to the next record.",
|
|
99
|
+
previousRecord: "Return to the previous record.",
|
|
100
|
+
searchColumn: "Search by column.",
|
|
101
|
+
sortAscending: "Sort Ascending",
|
|
102
|
+
sortDescending: "Sort Descending",
|
|
103
|
+
pinColumn: "Pin column",
|
|
104
|
+
unpinColumn: "Unpin column",
|
|
105
|
+
filter: "Filter",
|
|
106
|
+
columnCantBeOrder: "Column cannot be sorted",
|
|
107
|
+
filterColumnHeader: "Filter for column {{columnLabel}}",
|
|
108
|
+
clearSelection: "Clear Selection",
|
|
109
|
+
page: "Page",
|
|
110
|
+
more: "more",
|
|
111
|
+
to: "to",
|
|
112
|
+
of: "of",
|
|
113
|
+
next: "Next",
|
|
114
|
+
last: "Last",
|
|
115
|
+
first: "First",
|
|
116
|
+
previous: "Previous",
|
|
117
|
+
loadingOoo: "Loading",
|
|
118
|
+
selectAll: "Select all",
|
|
119
|
+
searchOoo: "Search",
|
|
120
|
+
blanks: "Blanks",
|
|
121
|
+
filterOoo: "Filter",
|
|
122
|
+
applyFilter: "Apply filter",
|
|
123
|
+
equals: "Equals",
|
|
124
|
+
lessThan: "Less than",
|
|
125
|
+
greaterThan: "Greater than",
|
|
126
|
+
contains: "Contains",
|
|
127
|
+
startsWith: "Starts with",
|
|
128
|
+
endsWith: "Ends with",
|
|
129
|
+
group: "Group",
|
|
130
|
+
columns: "Columns",
|
|
131
|
+
rowGroupColumns: "Row group columns",
|
|
132
|
+
rowGroupColumnsEmptyMessage: "Row group columns empty",
|
|
133
|
+
valueColumns: "Value columns",
|
|
134
|
+
pivotMode: "Pivot mode",
|
|
135
|
+
groups: "Groups",
|
|
136
|
+
values: "Values",
|
|
137
|
+
pivots: "Pivots",
|
|
138
|
+
valueColumnsEmptyMessage: "Value columns empty",
|
|
139
|
+
pivotColumnsEmptyMessage: "Pivot columns empty",
|
|
140
|
+
toolPanelButton: "Tool panel button",
|
|
141
|
+
noRowsToShow: "No rows to show.",
|
|
142
|
+
valueAggregation: "Aggregate value",
|
|
143
|
+
autosizeThiscolumn: "Autosize this column",
|
|
144
|
+
autosizeAllColumns: "Autosize all columns",
|
|
145
|
+
groupBy: "Group by",
|
|
146
|
+
ungroupBy: "Ungroup by",
|
|
147
|
+
resetColumns: "Reset columns",
|
|
148
|
+
expandAll: "Expand all",
|
|
149
|
+
collapseAll: "Collapse all",
|
|
150
|
+
toolPanel: "Tool panel",
|
|
151
|
+
export: "Export",
|
|
152
|
+
csvExport: "Export to CSV",
|
|
153
|
+
excelExport: "Export to Excel",
|
|
154
|
+
pinLeft: "Pin left",
|
|
155
|
+
pinRight: "Pin right",
|
|
156
|
+
noPin: "Unpin column",
|
|
157
|
+
sum: "Sum",
|
|
158
|
+
min: "Min",
|
|
159
|
+
max: "Max",
|
|
160
|
+
none: "None",
|
|
161
|
+
count: "Count",
|
|
162
|
+
average: "Average",
|
|
163
|
+
copy: "Copy",
|
|
164
|
+
copyWithHeaders: "Copy with headers",
|
|
165
|
+
ctrlC: "Ctrl+C",
|
|
166
|
+
paste: "Paste",
|
|
167
|
+
ctrlV: "Ctrl+V"
|
|
168
|
+
},
|
|
169
|
+
"ez-guide-navigator": {
|
|
170
|
+
searchGuide: "Search guide",
|
|
171
|
+
hideMenu: "Hide menu",
|
|
172
|
+
},
|
|
173
|
+
"ez-list": {
|
|
174
|
+
moveToGroup: "Move to {{groupName}}",
|
|
175
|
+
},
|
|
176
|
+
"ez-modal": {
|
|
177
|
+
close: "Close modal",
|
|
178
|
+
},
|
|
179
|
+
"ez-multi-selection-list": {
|
|
180
|
+
selectAll: "Select all",
|
|
181
|
+
search: "Search...",
|
|
182
|
+
empty: "(Empty)",
|
|
183
|
+
initMessage: "Select the values to be filtered through the search field.",
|
|
184
|
+
emptyResults: "No results found.",
|
|
185
|
+
},
|
|
186
|
+
"ez-number-input": {
|
|
187
|
+
invalidNumber: "The entered value is not a valid number",
|
|
188
|
+
},
|
|
189
|
+
"ez-rich-text": {
|
|
190
|
+
listShortcut: "Applies list style to the selected text.",
|
|
191
|
+
linkShortcut: "Opens link popup.",
|
|
192
|
+
imageShortcut: "Opens image popup.",
|
|
193
|
+
boldShortcut: "Applies bold style to the selected text.",
|
|
194
|
+
italicShortcut: "Applies italic style to the selected text.",
|
|
195
|
+
underlineShortcut: "Applies underline style to the selected text.",
|
|
196
|
+
breakLineShortcut: "Applies line break.",
|
|
197
|
+
undoShortcut: "Undoes the last text change.",
|
|
198
|
+
redoShortcut: "Redoes the last text change.",
|
|
199
|
+
edit: "Edit",
|
|
200
|
+
preview: "Preview",
|
|
201
|
+
title: {
|
|
202
|
+
preview: "Ctrl + P",
|
|
203
|
+
edit: "Switch to edit mode",
|
|
204
|
+
undo: "Undo (Ctrl + Z)",
|
|
205
|
+
redo: "Redo (Ctrl + X)",
|
|
206
|
+
link: "Insert link (Ctrl + K)",
|
|
207
|
+
image: "Insert image (Ctrl + O)",
|
|
208
|
+
list: "List (Ctrl + L)",
|
|
209
|
+
underline: "Underline (Ctrl + U)",
|
|
210
|
+
italic: "Italic (Ctrl + I)",
|
|
211
|
+
bold: "Bold (Ctrl + B)",
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"ez-link-builder": {
|
|
215
|
+
addLinkTitle: "Add link",
|
|
216
|
+
addLinkSubtitle: "Insert a link into the text to open new pages.",
|
|
217
|
+
submit: "Submit",
|
|
218
|
+
urlInputLabel: "Enter the destination URL",
|
|
219
|
+
textInputLabel: "Enter the text to display",
|
|
220
|
+
openInNewPage: "Open in a new page.",
|
|
221
|
+
},
|
|
222
|
+
"ez-simple-image-uploader": {
|
|
223
|
+
uploadTitle: "Image Upload",
|
|
224
|
+
uploadSubtitle: "Upload your files by filling only 1 field at a time.",
|
|
225
|
+
submit: "Submit",
|
|
226
|
+
tooltipMessage: "The selected file below will be prioritized!",
|
|
227
|
+
urlInputLabel: "Enter the image URL",
|
|
228
|
+
orText: "OR",
|
|
229
|
+
removeFile: "Remove file",
|
|
230
|
+
dragDropText: "Drag and drop or click to add files",
|
|
231
|
+
imageAlt: "Image",
|
|
232
|
+
imageTooLarge: "The image must be smaller than {{maxSize}}.",
|
|
233
|
+
},
|
|
234
|
+
"ez-search": {
|
|
235
|
+
emptyList: "No results found",
|
|
236
|
+
emptySearch: "No results for {{field}} found",
|
|
237
|
+
},
|
|
238
|
+
"ez-search-plus": {
|
|
239
|
+
emptyList: "No results found",
|
|
240
|
+
optionLoaderNotDefined: "optionLoader not defined",
|
|
241
|
+
defaultCodeLabel: "Code",
|
|
242
|
+
},
|
|
243
|
+
"ez-sortable-list": {
|
|
244
|
+
emptyMessage: "No items in the list",
|
|
245
|
+
entityLabel: "item",
|
|
246
|
+
entityLabelPlural: "items",
|
|
247
|
+
total: "Total of",
|
|
248
|
+
search: "Search",
|
|
249
|
+
},
|
|
250
|
+
"ez-split-button": {
|
|
251
|
+
moreOptions: "More options",
|
|
252
|
+
},
|
|
253
|
+
"ez-text-edit": {
|
|
254
|
+
emptyFieldWarning: "It is not possible to save an empty field.",
|
|
255
|
+
},
|
|
256
|
+
"ez-time-input": {
|
|
257
|
+
invalidTime: "Please enter a valid time.",
|
|
258
|
+
},
|
|
259
|
+
"ez-sidebar": {
|
|
260
|
+
unPinMenu: "Unpin menu",
|
|
261
|
+
pushPinMenu: "Pin menu",
|
|
262
|
+
hideMenu: "Hide menu",
|
|
263
|
+
},
|
|
264
|
+
"utils": {
|
|
265
|
+
requiredFieldMessage: "There is at least one required field not filled.",
|
|
266
|
+
requiredField: "This information is required.",
|
|
267
|
+
selectAllPage: "Select only the current page",
|
|
268
|
+
loadingAllRecords: "Loading all {{count}} records",
|
|
269
|
+
selectAllRecords: "Select all {{total}} records",
|
|
270
|
+
waitForLoad: "Wait for loading to select records from all pages",
|
|
271
|
+
allRecordsSelected: "All <strong>{{selectionCount}} records</strong> in the grid are selected.",
|
|
272
|
+
selectedRecords: "There <strong>{{selectionCount}} record{{plural}}</strong> selected in the grid.",
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
};
|