@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
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
|
4
|
-
const ApplicationUtils = require('./ApplicationUtils-
|
|
5
|
-
const index = require('./index-
|
|
4
|
+
const ApplicationUtils = require('./ApplicationUtils-39807831.js');
|
|
5
|
+
const index = require('./index-02854309.js');
|
|
6
|
+
const index$1 = require('./index-a7b0c73d.js');
|
|
6
7
|
|
|
7
8
|
const buildFieldMetadata = (descriptor, config) => {
|
|
8
9
|
let { name, label, group } = Object.assign({}, config);
|
|
@@ -30,6 +31,7 @@ class RecordValidationProcessor {
|
|
|
30
31
|
this._dataUnit = dataUnit;
|
|
31
32
|
this._validationSource = validationSource;
|
|
32
33
|
this._validator = validator;
|
|
34
|
+
this._i18n = index.getI18n();
|
|
33
35
|
}
|
|
34
36
|
validate(isSaving = true) {
|
|
35
37
|
return new Promise((accept, reject) => {
|
|
@@ -72,12 +74,16 @@ class RecordValidationProcessor {
|
|
|
72
74
|
invalidFields.push({ name: field, message: errorMessage });
|
|
73
75
|
}
|
|
74
76
|
else {
|
|
75
|
-
invalidFields.push({ name: field, message:
|
|
77
|
+
invalidFields.push({ name: field, message: this._i18n('utils.requiredField') });
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
});
|
|
79
81
|
if (invalidFields.length > 0) {
|
|
80
|
-
return {
|
|
82
|
+
return {
|
|
83
|
+
isValid: false,
|
|
84
|
+
invalidFields,
|
|
85
|
+
infoMessage: this._i18n('utils.requiredFieldMessage')
|
|
86
|
+
};
|
|
81
87
|
}
|
|
82
88
|
return undefined;
|
|
83
89
|
}
|
|
@@ -477,7 +483,7 @@ const SEARCH_FIELD_FULL_WIDTH = 240;
|
|
|
477
483
|
const SEARCH_FIELD_MARGIN_BOTTOM = "0px";
|
|
478
484
|
const SEARCH_FIELD_WIDTH = String(SEARCH_FIELD_FULL_WIDTH - 30) + "px";
|
|
479
485
|
const buildFieldSearch = (action, optionLoader, onSelectField) => {
|
|
480
|
-
return index.h("ez-search", { class: 'ez-padding--small ez-margin--none', style: {
|
|
486
|
+
return index$1.h("ez-search", { class: 'ez-padding--small ez-margin--none', style: {
|
|
481
487
|
"--ez-text-input__margin-bottom": SEARCH_FIELD_MARGIN_BOTTOM,
|
|
482
488
|
"--ez-search--width": SEARCH_FIELD_WIDTH
|
|
483
489
|
}, canShowError: false, showSelectedValue: false, showOptionValue: false, suppressEmptyOption: true, label: action.label, value: null, optionLoader: optionLoader, onEzChange: (evt) => onSelectField(evt.detail), ignoreLimitCharsToSearch: true });
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"./components/ez-sortable-list/ez-sortable-list.js",
|
|
33
33
|
"./components/ez-double-list/ez-double-list.js",
|
|
34
34
|
"./components/ez-dropdown/ez-dropdown.js",
|
|
35
|
+
"./components/ez-empty-card/ez-empty-card.js",
|
|
35
36
|
"./components/ez-file-item/ez-file-item.js",
|
|
36
37
|
"./components/ez-filter-input/ez-filter-input.js",
|
|
37
38
|
"./components/ez-form/ez-form.js",
|
|
@@ -48,6 +49,14 @@
|
|
|
48
49
|
"./components/ez-popover-plus/ez-popover-plus.js",
|
|
49
50
|
"./components/ez-popover-plus/subcomponent/ez-popover-core.js",
|
|
50
51
|
"./components/ez-popup/ez-popup.js",
|
|
52
|
+
"./components/ez-rich-text/ez-rich-text.js",
|
|
53
|
+
"./components/ez-rich-text/ez-link-builder/ez-link-builder.js",
|
|
54
|
+
"./components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js",
|
|
55
|
+
"./components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js",
|
|
56
|
+
"./components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js",
|
|
57
|
+
"./components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js",
|
|
58
|
+
"./components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js",
|
|
59
|
+
"./components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js",
|
|
51
60
|
"./components/ez-scroller/ez-scroller.js",
|
|
52
61
|
"./components/ez-search/subcomponent/search-list/search-list.js",
|
|
53
62
|
"./components/ez-search-plus/ez-search-plus.js",
|
|
@@ -59,6 +68,7 @@
|
|
|
59
68
|
"./components/ez-split-panel/ez-split-panel.js",
|
|
60
69
|
"./components/ez-split-panel/structure/item/ez-split-item.js",
|
|
61
70
|
"./components/ez-text-area/ez-text-area.js",
|
|
71
|
+
"./components/ez-tile/ez-tile.js",
|
|
62
72
|
"./components/ez-time-input/ez-time-input.js",
|
|
63
73
|
"./components/ez-toast/ez-toast.js",
|
|
64
74
|
"./components/ez-tooltip/ez-tooltip.js",
|
|
@@ -77,6 +87,11 @@
|
|
|
77
87
|
"ez-application"
|
|
78
88
|
]
|
|
79
89
|
},
|
|
90
|
+
{
|
|
91
|
+
"components": [
|
|
92
|
+
"ez-avatar"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
80
95
|
{
|
|
81
96
|
"components": [
|
|
82
97
|
"ez-button"
|
|
@@ -87,6 +102,11 @@
|
|
|
87
102
|
"ez-calendar"
|
|
88
103
|
]
|
|
89
104
|
},
|
|
105
|
+
{
|
|
106
|
+
"components": [
|
|
107
|
+
"ez-empty-card"
|
|
108
|
+
]
|
|
109
|
+
},
|
|
90
110
|
{
|
|
91
111
|
"components": [
|
|
92
112
|
"ez-check"
|
|
@@ -182,6 +202,11 @@
|
|
|
182
202
|
"ez-text-input"
|
|
183
203
|
]
|
|
184
204
|
},
|
|
205
|
+
{
|
|
206
|
+
"components": [
|
|
207
|
+
"ez-tile"
|
|
208
|
+
]
|
|
209
|
+
},
|
|
185
210
|
{
|
|
186
211
|
"components": [
|
|
187
212
|
"ez-time-input"
|
|
@@ -207,5 +232,6 @@
|
|
|
207
232
|
"ez-search-result-list"
|
|
208
233
|
]
|
|
209
234
|
}
|
|
210
|
-
]
|
|
235
|
+
],
|
|
236
|
+
"global": "./global/app-init.js"
|
|
211
237
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ElementIDUtils, FloatingManager } from '@sankhyalabs/core';
|
|
2
2
|
import { Host, h } from '@stencil/core';
|
|
3
|
+
import initI18n from '../../utils/i18n';
|
|
3
4
|
export class EzAlertList {
|
|
4
5
|
constructor() {
|
|
5
6
|
this._container = undefined;
|
|
@@ -122,14 +123,15 @@ export class EzAlertList {
|
|
|
122
123
|
this._container.focus();
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
|
-
componentWillLoad() {
|
|
126
|
+
async componentWillLoad() {
|
|
126
127
|
this.dataElementId = ElementIDUtils.addIDInfo(this._element, 'EzAlertList');
|
|
128
|
+
this.i18n = await initI18n();
|
|
127
129
|
}
|
|
128
130
|
render() {
|
|
129
131
|
return (h(Host, Object.assign({}, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: this.dataElementId }), this.opened ?
|
|
130
|
-
(h("div", { ref: elem => (this._overlayRef = elem) }, h("div", { class: `alert-list__container ${this.expanded ? 'expanded' : ''}`, ref: elem => (this._container = elem) }, h("div", { class: "alert-list__content" }, h("div", { class: "alert-list__header" }, h("div", { class: "alert-list__title" },
|
|
132
|
+
(h("div", { ref: elem => (this._overlayRef = elem) }, h("div", { class: `alert-list__container ${this.expanded ? 'expanded' : ''}`, ref: elem => (this._container = elem) }, h("div", { class: "alert-list__content" }, h("div", { class: "alert-list__header" }, h("div", { class: "alert-list__title" }, `${this.i18n('app.alerts')} (${this.alerts.length})`), h("div", { class: "alert-list__header__buttons" }, this.enableExpand && (h("ez-button", { mode: "icon", size: "small", iconName: "expand", onClick: () => this.toggleExpandContainer(), "data-element-id": ElementIDUtils.getInternalIDInfo('expandButton'), title: this.expanded ? this.i18n('app.collapse') : this.i18n('app.expand') })), h("ez-button", { mode: "icon", size: "small", iconName: "close", "data-element-id": ElementIDUtils.getInternalIDInfo('closeButton'), onClick: () => {
|
|
131
133
|
this.opened = false;
|
|
132
|
-
}, title: '
|
|
134
|
+
}, title: this.i18n('app.close') }))), h("div", { class: "alert-list__expandable-content" }, h("ez-list", { itemSlotBuilder: this.itemRightSlotBuilder, hoverFeedback: true, itemLeftSlotBuilder: item => {
|
|
133
135
|
return (h("a", { onClick: this.getLinkActionClick(item), style: {
|
|
134
136
|
fontFamily: "var(--font-pattern, 'Roboto')",
|
|
135
137
|
fontSize: 'var(--text--medium, 14px)',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
|
+
import initI18n from '../../utils/i18n';
|
|
2
3
|
export class EzAvatar {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.DECIMAL_PARSE_BASE = 10;
|
|
@@ -30,9 +31,12 @@ export class EzAvatar {
|
|
|
30
31
|
}
|
|
31
32
|
return h("ez-icon", { class: "avatar-icon", iconName: "account-outline", fontSize: this.calcFontSize() });
|
|
32
33
|
}
|
|
34
|
+
async componentWillLoad() {
|
|
35
|
+
this.i18n = await initI18n();
|
|
36
|
+
}
|
|
33
37
|
render() {
|
|
34
38
|
if (this.isInteractive) {
|
|
35
|
-
return (h("button", { "aria-label": "
|
|
39
|
+
return (h("button", { "aria-label": this.i18n("app.profile"), class: this.getClass() }, this.renderAvatarContent()));
|
|
36
40
|
}
|
|
37
41
|
return (h("figure", { class: this.getClass() }, this.renderAvatarContent()));
|
|
38
42
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { FloatingManager } from "@sankhyalabs/core";
|
|
2
2
|
import { forceUpdate, h } from "@stencil/core";
|
|
3
|
+
import initI18n from "../../utils/i18n";
|
|
3
4
|
export class EzCalendar {
|
|
4
5
|
constructor() {
|
|
5
6
|
this._firstRender = true;
|
|
6
|
-
this._todayLabel = "Hoje";
|
|
7
|
-
this._weekDayLabels = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
8
|
-
this._monthLabels = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
|
|
9
7
|
this._hoursLabel = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"];
|
|
10
8
|
this._minutosLabel = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59"];
|
|
11
9
|
this.value = new Date();
|
|
@@ -82,7 +80,7 @@ export class EzCalendar {
|
|
|
82
80
|
return this._hostElem.dataset.isFixed === "true";
|
|
83
81
|
}
|
|
84
82
|
getMonthLabel() {
|
|
85
|
-
return this.
|
|
83
|
+
return this.i18n(`ez-calendar.month.${this._currentPosition.getMonth()}`) + " " + this._currentPosition.getFullYear();
|
|
86
84
|
}
|
|
87
85
|
isSelectedDate(d) {
|
|
88
86
|
if (this.value) {
|
|
@@ -142,6 +140,9 @@ export class EzCalendar {
|
|
|
142
140
|
}
|
|
143
141
|
}
|
|
144
142
|
}
|
|
143
|
+
async componentWillLoad() {
|
|
144
|
+
this.i18n = await initI18n();
|
|
145
|
+
}
|
|
145
146
|
componentDidRender() {
|
|
146
147
|
if (this.floating && this._firstRender) {
|
|
147
148
|
this._calendarHeight = this._box.clientHeight;
|
|
@@ -179,7 +180,7 @@ export class EzCalendar {
|
|
|
179
180
|
const firstDate = new Date();
|
|
180
181
|
firstDate.setTime(this._currentPosition.getTime());
|
|
181
182
|
firstDate.setDate(1 - firstDate.getDay());
|
|
182
|
-
return (h("section", { ref: elem => this._container = elem }, h("div", { ref: elem => this._box = elem, class: "calendar__container" }, h("div", { class: "calendar" }, h("div", { class: "calendar__header" }, h("button", { class: "calendar__btn-previous", onClick: () => this.changeMonth(-1) }), h("label", { class: "calendar__lbl-month" }, this.getMonthLabel()), h("button", { class: "calendar__btn-next", onClick: () => this.changeMonth(1) })), h("div", { class: "calendar__body" }, h("div", { class: "calendar__line" },
|
|
183
|
+
return (h("section", { ref: elem => this._container = elem }, h("div", { ref: elem => this._box = elem, class: "calendar__container" }, h("div", { class: "calendar" }, h("div", { class: "calendar__header" }, h("button", { class: "calendar__btn-previous", onClick: () => this.changeMonth(-1) }), h("label", { class: "calendar__lbl-month" }, this.getMonthLabel()), h("button", { class: "calendar__btn-next", onClick: () => this.changeMonth(1) })), h("div", { class: "calendar__body" }, h("div", { class: "calendar__line" }, [...Array(7).keys()].map(day => h("div", { "data-day": this.i18n(`ez-calendar.weekDay.${day}`), class: "calendar__cell calendar__cell--unselectable" }, this.i18n(`ez-calendar.weekDay.${day}`)))), [0, 7, 14, 21, 28, 35].map(offset => h("div", { class: "calendar__line" }, [0, 1, 2, 3, 4, 5, 6].map(index => {
|
|
183
184
|
const date = new Date();
|
|
184
185
|
date.setTime(firstDate.getTime());
|
|
185
186
|
date.setDate(date.getDate() + offset + index);
|
|
@@ -192,7 +193,7 @@ export class EzCalendar {
|
|
|
192
193
|
classNames += " calendar__cell--selected";
|
|
193
194
|
}
|
|
194
195
|
return h("div", { "data-day-month": dataDayMonth, class: classNames, onClick: () => this.selectDate(date) }, date.getDate());
|
|
195
|
-
})))), h("div", { class: "calendar__footer" }, h("button", { class: "calendar__btn-today", onClick: () => this.selectDate(new Date()) }, this.
|
|
196
|
+
})))), h("div", { class: "calendar__footer" }, h("button", { class: "calendar__btn-today", onClick: () => this.selectDate(new Date()) }, this.i18n('ez-calendar.today')))), (this.time || this.showSeconds) &&
|
|
196
197
|
h("div", { class: "calendar-time" }, h("div", { class: "calendar-time__header" }, h("div", null, "H"), h("div", { class: "separatorTime" }, ":"), h("div", null, "M"), this.showSeconds &&
|
|
197
198
|
h("div", { class: "separatorTime" }, ":"), this.showSeconds &&
|
|
198
199
|
h("div", null, "S")), h("div", { class: "calendar__body ", style: { display: 'flex', paddingLeft: '12px', paddingRight: '12px' } }, h("div", { class: "calendar__column", ref: elem => this._hoursScroll = elem, onScroll: () => this.updateScroll(this._hoursScroll) }, this._hoursLabel.map((offset, index) => {
|
|
@@ -8,6 +8,7 @@ export class EzChip {
|
|
|
8
8
|
this.mode = undefined;
|
|
9
9
|
this.value = false;
|
|
10
10
|
this.showNativeTooltip = true;
|
|
11
|
+
this.disableAutoUpdateValue = false;
|
|
11
12
|
}
|
|
12
13
|
//---------------------------------------------
|
|
13
14
|
// Public methods
|
|
@@ -42,7 +43,7 @@ export class EzChip {
|
|
|
42
43
|
return;
|
|
43
44
|
if (this.mode === "action")
|
|
44
45
|
return this.actionClick.emit();
|
|
45
|
-
if (target.tagName.toLowerCase() !== "ez-icon")
|
|
46
|
+
if (target.tagName.toLowerCase() !== "ez-icon" && !this.disableAutoUpdateValue)
|
|
46
47
|
return this.handleValueChange();
|
|
47
48
|
if (target.classList.contains("btn-close"))
|
|
48
49
|
return this.removeChip.emit();
|
|
@@ -208,6 +209,24 @@ export class EzChip {
|
|
|
208
209
|
"attribute": "show-native-tooltip",
|
|
209
210
|
"reflect": false,
|
|
210
211
|
"defaultValue": "true"
|
|
212
|
+
},
|
|
213
|
+
"disableAutoUpdateValue": {
|
|
214
|
+
"type": "boolean",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "boolean",
|
|
218
|
+
"resolved": "boolean",
|
|
219
|
+
"references": {}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": false,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [],
|
|
225
|
+
"text": "Desabilita a altera\u00E7\u00E3o da propriedade value ao clicar."
|
|
226
|
+
},
|
|
227
|
+
"attribute": "disable-auto-update-value",
|
|
228
|
+
"reflect": false,
|
|
229
|
+
"defaultValue": "false"
|
|
211
230
|
}
|
|
212
231
|
};
|
|
213
232
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
3
3
|
import { ApplicationUtils } from "../../utils";
|
|
4
|
+
import initI18n from '../../utils/i18n';
|
|
4
5
|
export class EzCollapsibleBox {
|
|
5
6
|
constructor() {
|
|
6
7
|
this._activeEditText = false;
|
|
@@ -58,14 +59,13 @@ export class EzCollapsibleBox {
|
|
|
58
59
|
this._activeEditText = true;
|
|
59
60
|
this.ezEditLabelMode.emit(this._activeEditText);
|
|
60
61
|
}
|
|
61
|
-
confirmRemove(evt) {
|
|
62
|
+
async confirmRemove(evt) {
|
|
62
63
|
evt.stopPropagation();
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
});
|
|
64
|
+
const confirmMessage = this.i18n("ez-collapsible-box.confirmRemove", { label: this.label });
|
|
65
|
+
const canRemove = await ApplicationUtils.confirm(this.i18n("app.warning"), confirmMessage);
|
|
66
|
+
if (canRemove) {
|
|
67
|
+
this.removeElement();
|
|
68
|
+
}
|
|
69
69
|
}
|
|
70
70
|
saveEditionText(editDetails) {
|
|
71
71
|
const { value, newValue } = editDetails.detail;
|
|
@@ -95,6 +95,9 @@ export class EzCollapsibleBox {
|
|
|
95
95
|
};
|
|
96
96
|
return styledLabel;
|
|
97
97
|
}
|
|
98
|
+
async componentWillLoad() {
|
|
99
|
+
this.i18n = await initI18n();
|
|
100
|
+
}
|
|
98
101
|
componentDidLoad() {
|
|
99
102
|
ElementIDUtils.addIDInfo(this._hostElement);
|
|
100
103
|
}
|
|
@@ -103,8 +106,8 @@ export class EzCollapsibleBox {
|
|
|
103
106
|
(this.iconPlacement === "right" ? " collapsible-box__title--icon-right" : "") +
|
|
104
107
|
(this.value ? " collapsible-box__title--no-margin" : "") }), h("ez-icon", { slot: "icon", "icon-name": "chevron-right", size: this.getHeaderSize(), class: "collapsible-box__icon collapsible-box__icon--" + this.getHeaderSize() + (this.value ? " collapsible-box__icon--collapsed" : ""), id: "toggleCollapsible" }), !this._activeEditText ?
|
|
105
108
|
h("label", { class: "collapsible-box__label font--" + this.getHeaderSize(), title: this.label, ref: elem => this._refLabel = elem }, h("span", null, this.label), this.editable &&
|
|
106
|
-
h("ez-icon", { slot: "icon", "icon-name": "edit", onClick: (evt) => this.editLabel(evt), title: "
|
|
107
|
-
h("ez-icon", { slot: "icon", "icon-name": "delete", onClick: (evt) => this.confirmRemove(evt), title: "
|
|
109
|
+
h("ez-icon", { slot: "icon", "icon-name": "edit", onClick: (evt) => this.editLabel(evt), title: this.i18n("app.edit") }), this.removable &&
|
|
110
|
+
h("ez-icon", { slot: "icon", "icon-name": "delete", onClick: (evt) => this.confirmRemove(evt), title: this.i18n("app.remove") })) :
|
|
108
111
|
h("ez-text-edit", { class: "collapsible-box__text-edit", ref: ref => this._refTextEdit = ref, value: this.label, styled: this.getStyledLabel(), onSaveEdition: (ev) => this.saveEditionText(ev), onCancelEdition: () => this.cancelEdition() })), h("slot", { name: "rightSlot" })), h("div", { class: "collapsible-box__content" + (this.value ? "" : " collapsible-box__content--show") }, this.subtitle &&
|
|
109
112
|
h("div", { class: "subtitle-box__content" }, h("label", { class: "subtitle-box__label", title: this.subtitle }, h("span", null, this.subtitle))), h("slot", null))));
|
|
110
113
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
3
|
+
import initI18n from '../../../utils/i18n';
|
|
3
4
|
export class EzComboBoxList {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.showLoading = undefined;
|
|
6
7
|
this.visibleOptions = undefined;
|
|
7
|
-
this.textEmptyList =
|
|
8
|
+
this.textEmptyList = undefined;
|
|
8
9
|
this.showOptionValue = undefined;
|
|
9
10
|
this.preSelection = undefined;
|
|
10
11
|
this.maxWidth = undefined;
|
|
@@ -126,6 +127,9 @@ export class EzComboBoxList {
|
|
|
126
127
|
});
|
|
127
128
|
}
|
|
128
129
|
}
|
|
130
|
+
async componentWillLoad() {
|
|
131
|
+
this.i18n = await initI18n();
|
|
132
|
+
}
|
|
129
133
|
componentDidLoad() {
|
|
130
134
|
this._listWrapper.style.width = `${this.width}px`;
|
|
131
135
|
this._listWrapper.style.maxWidth = this.maxWidth ? `${this.maxWidth}px` : '';
|
|
@@ -137,7 +141,7 @@ export class EzComboBoxList {
|
|
|
137
141
|
});
|
|
138
142
|
}
|
|
139
143
|
render() {
|
|
140
|
-
return (h("section", { class: "list-container" }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading && this.visibleOptions.length === 0 && (h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList))), this.showLoading && (h("div", { class: "message" }, h("div", { class: "message__loading" }))), this.showOptionValue && (h("span", { class: "item__value item__value--hidden" })), !this.showLoading && this.visibleOptions.length > 0 &&
|
|
144
|
+
return (h("section", { class: "list-container" }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading && this.visibleOptions.length === 0 && (h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList || this.i18n("ez-combo-box.noResults")))), this.showLoading && (h("div", { class: "message" }, h("div", { class: "message__loading" }))), this.showOptionValue && (h("span", { class: "item__value item__value--hidden" })), !this.showLoading && this.visibleOptions.length > 0 &&
|
|
141
145
|
this.visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
|
|
142
146
|
}
|
|
143
147
|
static get is() { return "ez-combo-box-list"; }
|
|
@@ -221,8 +225,7 @@ export class EzComboBoxList {
|
|
|
221
225
|
"text": "Mensagem exibida quando a lista de op\u00E7\u00F5es est\u00E1 vazia."
|
|
222
226
|
},
|
|
223
227
|
"attribute": "text-empty-list",
|
|
224
|
-
"reflect": false
|
|
225
|
-
"defaultValue": "\"Nenhum resultado encontrado\""
|
|
228
|
+
"reflect": false
|
|
226
229
|
},
|
|
227
230
|
"showOptionValue": {
|
|
228
231
|
"type": "boolean",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ElementIDUtils, ObjectUtils } from "@sankhyalabs/core";
|
|
2
2
|
import { h, Host } from "@stencil/core";
|
|
3
3
|
import { CSSVarsUtils } from "../../utils";
|
|
4
|
+
import initI18n from '../../utils/i18n';
|
|
4
5
|
export class EzComboBox {
|
|
5
6
|
constructor() {
|
|
6
7
|
this._changeDeboucingTimeout = null;
|
|
7
8
|
this._deboucingTime = 300;
|
|
8
9
|
this._maxWidthValue = 0;
|
|
9
10
|
this._tabPressed = false;
|
|
10
|
-
this._textEmptyList = "Nenhum resultado encontrado";
|
|
11
11
|
this._lookupMode = false;
|
|
12
12
|
this.isOpen = false;
|
|
13
13
|
this._preSelection = undefined;
|
|
@@ -33,8 +33,9 @@ export class EzComboBox {
|
|
|
33
33
|
this.listOptionsPosition = undefined;
|
|
34
34
|
this.isTextSearch = false;
|
|
35
35
|
this.autoFocus = false;
|
|
36
|
+
this.preventAutoFocus = false;
|
|
36
37
|
this.alternativePlaceholder = undefined;
|
|
37
|
-
this.textEmptyOption =
|
|
38
|
+
this.textEmptyOption = undefined;
|
|
38
39
|
}
|
|
39
40
|
observeErrorMessage() {
|
|
40
41
|
var _a;
|
|
@@ -83,13 +84,13 @@ export class EzComboBox {
|
|
|
83
84
|
*/
|
|
84
85
|
async getValueAsync() {
|
|
85
86
|
if (!this._showLoading) {
|
|
86
|
-
return new Promise(resolve => resolve(this.value));
|
|
87
|
+
return new Promise(resolve => resolve(this.sanitizeValue(this.value)));
|
|
87
88
|
}
|
|
88
89
|
return new Promise(resolve => {
|
|
89
90
|
let id = setInterval(() => {
|
|
90
91
|
if (!this._showLoading) {
|
|
91
92
|
clearInterval(id);
|
|
92
|
-
resolve(this.value);
|
|
93
|
+
resolve(this.sanitizeValue(this.value));
|
|
93
94
|
}
|
|
94
95
|
}, 100);
|
|
95
96
|
});
|
|
@@ -135,7 +136,7 @@ export class EzComboBox {
|
|
|
135
136
|
return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
136
137
|
}
|
|
137
138
|
getText() {
|
|
138
|
-
const currentValue = this.getSelectedOption(this.value);
|
|
139
|
+
const currentValue = this.getSelectedOption(this.sanitizeValue(this.value));
|
|
139
140
|
const text = this.getFormattedText(currentValue);
|
|
140
141
|
if (text == undefined) {
|
|
141
142
|
return;
|
|
@@ -159,7 +160,7 @@ export class EzComboBox {
|
|
|
159
160
|
opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
|
|
160
161
|
}
|
|
161
162
|
if (this.hasToAddEmptyoption(opts)) {
|
|
162
|
-
opts = [{ value: undefined, label: this.textEmptyOption }].concat(opts);
|
|
163
|
+
opts = [{ value: undefined, label: this.textEmptyOption || this.i18n("ez-combo-box.placeholder") }].concat(opts);
|
|
163
164
|
}
|
|
164
165
|
this._visibleOptions = opts;
|
|
165
166
|
this._maxWidthValue = this.getMaxWidthValue();
|
|
@@ -204,7 +205,8 @@ export class EzComboBox {
|
|
|
204
205
|
this._preSelection = indexValue === -1 ? 0 : indexValue;
|
|
205
206
|
if (!!this._resizeObserver)
|
|
206
207
|
this._resizeObserver.observe(this._textInput);
|
|
207
|
-
|
|
208
|
+
if (!this.preventAutoFocus)
|
|
209
|
+
await this.setFocus();
|
|
208
210
|
}
|
|
209
211
|
hideOptions() {
|
|
210
212
|
var _a;
|
|
@@ -266,7 +268,7 @@ export class EzComboBox {
|
|
|
266
268
|
}
|
|
267
269
|
}
|
|
268
270
|
cancelPreselection() {
|
|
269
|
-
if (!this._textInput.value && this.value) {
|
|
271
|
+
if (!this._textInput.value && this.sanitizeValue(this.value)) {
|
|
270
272
|
this.selectOption(undefined);
|
|
271
273
|
}
|
|
272
274
|
else {
|
|
@@ -293,10 +295,17 @@ export class EzComboBox {
|
|
|
293
295
|
this._preSelection = undefined;
|
|
294
296
|
this.updateVisibleOptions();
|
|
295
297
|
}
|
|
298
|
+
sanitizeValue(value) {
|
|
299
|
+
if (value === "undefined" || value === "null") {
|
|
300
|
+
return undefined;
|
|
301
|
+
}
|
|
302
|
+
return value;
|
|
303
|
+
}
|
|
296
304
|
//---------------------------------------------
|
|
297
305
|
// Lifecycle web component
|
|
298
306
|
//---------------------------------------------
|
|
299
|
-
componentWillLoad() {
|
|
307
|
+
async componentWillLoad() {
|
|
308
|
+
this.i18n = await initI18n();
|
|
300
309
|
if (this.options === undefined) {
|
|
301
310
|
this.options = [];
|
|
302
311
|
const optionsTags = this.el.querySelectorAll("option");
|
|
@@ -314,9 +323,7 @@ export class EzComboBox {
|
|
|
314
323
|
}
|
|
315
324
|
this.loadOptions(SearchMode.PRELOAD);
|
|
316
325
|
}
|
|
317
|
-
|
|
318
|
-
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
319
|
-
this.setInputValue(false);
|
|
326
|
+
setResizeObserver() {
|
|
320
327
|
this._resizeObserver = new ResizeObserver((entries) => {
|
|
321
328
|
window.requestAnimationFrame(() => {
|
|
322
329
|
if (!Array.isArray(entries) || !entries.length)
|
|
@@ -329,6 +336,16 @@ export class EzComboBox {
|
|
|
329
336
|
this._comboBoxList.width = textInputWidth;
|
|
330
337
|
});
|
|
331
338
|
});
|
|
339
|
+
}
|
|
340
|
+
connectedCallback() {
|
|
341
|
+
if (!this._resizeObserver) {
|
|
342
|
+
this.setResizeObserver();
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
componentDidLoad() {
|
|
346
|
+
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
347
|
+
this.setInputValue(false);
|
|
348
|
+
this.setResizeObserver();
|
|
332
349
|
if (this.autoFocus) {
|
|
333
350
|
requestAnimationFrame(() => {
|
|
334
351
|
this.setFocus({ selectText: true });
|
|
@@ -340,6 +357,7 @@ export class EzComboBox {
|
|
|
340
357
|
(_a = this._popover) === null || _a === void 0 ? void 0 : _a.remove();
|
|
341
358
|
if (this._resizeObserver) {
|
|
342
359
|
this._resizeObserver.disconnect();
|
|
360
|
+
this._resizeObserver = null;
|
|
343
361
|
}
|
|
344
362
|
}
|
|
345
363
|
//---------------------------------------------
|
|
@@ -439,7 +457,7 @@ export class EzComboBox {
|
|
|
439
457
|
render() {
|
|
440
458
|
var _a;
|
|
441
459
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
442
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, alternativePlaceholder: this.alternativePlaceholder }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', onEzVisibilityChange: event => this.isOpen = event.detail }, h("ez-combo-box-list", { ref: ref => this._comboBoxList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this.
|
|
460
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, alternativePlaceholder: this.alternativePlaceholder || this.i18n("ez-combo-box.placeholder") }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', onEzVisibilityChange: event => this.isOpen = event.detail }, h("ez-combo-box-list", { ref: ref => this._comboBoxList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this.i18n("ez-combo-box.noResults"), showOptionValue: this.showOptionValue, preSelection: this._preSelection, maxWidth: this._maxWidthValue, width: (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.clientWidth, onOptionSelect: (opt) => this.selectOption(opt), onOptionHover: (index) => this._preSelection = index }))));
|
|
443
461
|
}
|
|
444
462
|
static get is() { return "ez-combo-box"; }
|
|
445
463
|
static get encapsulation() { return "shadow"; }
|
|
@@ -795,6 +813,24 @@ export class EzComboBox {
|
|
|
795
813
|
"reflect": false,
|
|
796
814
|
"defaultValue": "false"
|
|
797
815
|
},
|
|
816
|
+
"preventAutoFocus": {
|
|
817
|
+
"type": "boolean",
|
|
818
|
+
"mutable": false,
|
|
819
|
+
"complexType": {
|
|
820
|
+
"original": "boolean",
|
|
821
|
+
"resolved": "boolean",
|
|
822
|
+
"references": {}
|
|
823
|
+
},
|
|
824
|
+
"required": false,
|
|
825
|
+
"optional": false,
|
|
826
|
+
"docs": {
|
|
827
|
+
"tags": [],
|
|
828
|
+
"text": "Se true, impede que o campo de texto receba foco automaticamente ao abrir as op\u00E7\u00F5es."
|
|
829
|
+
},
|
|
830
|
+
"attribute": "prevent-auto-focus",
|
|
831
|
+
"reflect": false,
|
|
832
|
+
"defaultValue": "false"
|
|
833
|
+
},
|
|
798
834
|
"alternativePlaceholder": {
|
|
799
835
|
"type": "string",
|
|
800
836
|
"mutable": false,
|
|
@@ -827,8 +863,7 @@ export class EzComboBox {
|
|
|
827
863
|
"text": "Texto a ser apresentado na op\u00E7\u00E3o de valor nulo."
|
|
828
864
|
},
|
|
829
865
|
"attribute": "text-empty-option",
|
|
830
|
-
"reflect": false
|
|
831
|
-
"defaultValue": "\"Selecione um item\""
|
|
866
|
+
"reflect": false
|
|
832
867
|
}
|
|
833
868
|
};
|
|
834
869
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
import { DateUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import CSSVarsUtils from '../../utils/CSSVarsUtils';
|
|
4
|
+
import initI18n from '../../utils/i18n';
|
|
4
5
|
export class EzDateInput {
|
|
5
6
|
constructor() {
|
|
6
7
|
this._changePending = false;
|
|
@@ -117,7 +118,7 @@ export class EzDateInput {
|
|
|
117
118
|
else {
|
|
118
119
|
this.changeValue(undefined);
|
|
119
120
|
this.ezCancelWaitingChange.emit();
|
|
120
|
-
this.errorMessage = "
|
|
121
|
+
this.errorMessage = this.i18n("ez-date-input.invalidDate");
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
finally {
|
|
@@ -153,6 +154,9 @@ export class EzDateInput {
|
|
|
153
154
|
disconnectedCallback() {
|
|
154
155
|
this._popover.hide();
|
|
155
156
|
}
|
|
157
|
+
async componentWillLoad() {
|
|
158
|
+
this.i18n = await initI18n();
|
|
159
|
+
}
|
|
156
160
|
componentDidLoad() {
|
|
157
161
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
158
162
|
this.setInputValue();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
import { DateUtils, ElementIDUtils, TimeFormatter } from '@sankhyalabs/core';
|
|
3
3
|
import CSSVarsUtils from '../../utils/CSSVarsUtils';
|
|
4
|
+
import initI18n from '../../utils/i18n';
|
|
4
5
|
export class EzDateTimeInput {
|
|
5
6
|
constructor() {
|
|
6
7
|
this._changePending = false;
|
|
@@ -166,7 +167,7 @@ export class EzDateTimeInput {
|
|
|
166
167
|
else {
|
|
167
168
|
this.changeValue(undefined);
|
|
168
169
|
this.ezCancelWaitingChange.emit();
|
|
169
|
-
this.errorMessage = "
|
|
170
|
+
this.errorMessage = this.i18n("ez-date-time-input.invalidDate");
|
|
170
171
|
}
|
|
171
172
|
}
|
|
172
173
|
finally {
|
|
@@ -204,6 +205,9 @@ export class EzDateTimeInput {
|
|
|
204
205
|
disconnectedCallback() {
|
|
205
206
|
this._popover.hide();
|
|
206
207
|
}
|
|
208
|
+
async componentWillLoad() {
|
|
209
|
+
this.i18n = await initI18n();
|
|
210
|
+
}
|
|
207
211
|
componentDidLoad() {
|
|
208
212
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
209
213
|
this.setInputValue();
|