@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
|
@@ -10,7 +10,7 @@ export class EzTextArea {
|
|
|
10
10
|
this.errorMessage = undefined;
|
|
11
11
|
this.rows = 4;
|
|
12
12
|
this.canShowError = true;
|
|
13
|
-
this.mode =
|
|
13
|
+
this.mode = 'regular';
|
|
14
14
|
this.enableResize = true;
|
|
15
15
|
this.autoRows = false;
|
|
16
16
|
this.autoFocus = false;
|
|
@@ -33,10 +33,10 @@ export class EzTextArea {
|
|
|
33
33
|
if (this._inputElem) {
|
|
34
34
|
if (newValue != oldValue) {
|
|
35
35
|
if (this.canChangeValue()) {
|
|
36
|
-
this._inputElem.value = this.value ||
|
|
36
|
+
this._inputElem.value = this.value || '';
|
|
37
37
|
}
|
|
38
38
|
this.adjustFloatingLabel();
|
|
39
|
-
this.errorMessage =
|
|
39
|
+
this.errorMessage = '';
|
|
40
40
|
this.ezChange.emit(this.value);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -45,13 +45,13 @@ export class EzTextArea {
|
|
|
45
45
|
if (this._initialRows == undefined) {
|
|
46
46
|
this._initialRows = this.rows > 0 ? this.rows : undefined;
|
|
47
47
|
}
|
|
48
|
-
const rows = this._initialRows > 0 ? this._initialRows : this.mode !=
|
|
48
|
+
const rows = this._initialRows > 0 ? this._initialRows : this.mode != 'slim' ? 4 : 2;
|
|
49
49
|
if (rows !== this.rows) {
|
|
50
50
|
this.rows = rows;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
observeRows() {
|
|
54
|
-
const rows = this.rows > 0 ? this.rows : this.mode !=
|
|
54
|
+
const rows = this.rows > 0 ? this.rows : this.mode != 'slim' ? 4 : 2;
|
|
55
55
|
if (rows !== this.rows) {
|
|
56
56
|
this.updateRows(rows);
|
|
57
57
|
}
|
|
@@ -84,8 +84,8 @@ export class EzTextArea {
|
|
|
84
84
|
var _a, _b, _c, _d;
|
|
85
85
|
const selectionStart = this._inputElem.selectionStart;
|
|
86
86
|
const selectionEnd = this._inputElem.selectionEnd;
|
|
87
|
-
const textStart = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.substring(0, selectionStart)) !== null && _b !== void 0 ? _b :
|
|
88
|
-
const textEnd = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.substring(selectionEnd)) !== null && _d !== void 0 ? _d :
|
|
87
|
+
const textStart = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.substring(0, selectionStart)) !== null && _b !== void 0 ? _b : '';
|
|
88
|
+
const textEnd = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.substring(selectionEnd)) !== null && _d !== void 0 ? _d : '';
|
|
89
89
|
this.value = `${textStart}${text}${textEnd}`;
|
|
90
90
|
const newSelectionEnd = selectionStart + text.length;
|
|
91
91
|
const start = (selectionStart === selectionEnd) ? newSelectionEnd : selectionStart;
|
|
@@ -108,28 +108,28 @@ export class EzTextArea {
|
|
|
108
108
|
* Retorna se o conteúdo é inválido.
|
|
109
109
|
*/
|
|
110
110
|
async isInvalid() {
|
|
111
|
-
return typeof this.errorMessage ===
|
|
111
|
+
return typeof this.errorMessage === 'string' && this.errorMessage.trim() !== '';
|
|
112
112
|
}
|
|
113
113
|
//---------------------------------------------
|
|
114
114
|
// Private methods
|
|
115
115
|
//---------------------------------------------
|
|
116
116
|
canChangeValue() {
|
|
117
|
-
return this._inputElem && (this.value ||
|
|
117
|
+
return this._inputElem && (this.value || '') !== this._inputElem.value;
|
|
118
118
|
}
|
|
119
119
|
adjustFloatingLabel() {
|
|
120
120
|
if (this.forceLabelFloat)
|
|
121
121
|
return;
|
|
122
122
|
if (this.label && this._labelElem) {
|
|
123
123
|
const hasValue = this.value && this.value.toString().length > 0;
|
|
124
|
-
const containsFloatedClass = this._labelElem.classList.contains(
|
|
124
|
+
const containsFloatedClass = this._labelElem.classList.contains('textarea__label--floated');
|
|
125
125
|
if (hasValue || this.isFocused()) {
|
|
126
126
|
if (!containsFloatedClass) {
|
|
127
|
-
this._labelElem.classList.add(
|
|
127
|
+
this._labelElem.classList.add('textarea__label--floated');
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
else {
|
|
131
131
|
if (containsFloatedClass) {
|
|
132
|
-
this._labelElem.classList.remove(
|
|
132
|
+
this._labelElem.classList.remove('textarea__label--floated');
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -178,8 +178,8 @@ export class EzTextArea {
|
|
|
178
178
|
//---------------------------------------------
|
|
179
179
|
handleFocusout() {
|
|
180
180
|
this.adjustFloatingLabel();
|
|
181
|
-
if (this._container && this._container.classList.contains(
|
|
182
|
-
this._container.classList.remove(
|
|
181
|
+
if (this._container && this._container.classList.contains('textarea--focus')) {
|
|
182
|
+
this._container.classList.remove('textarea--focus');
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
handleChange() {
|
|
@@ -188,11 +188,11 @@ export class EzTextArea {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
handleFocus() {
|
|
191
|
-
if (this.label && this._labelElem && !this._labelElem.classList.contains(
|
|
192
|
-
this._labelElem.classList.add(
|
|
191
|
+
if (this.label && this._labelElem && !this._labelElem.classList.contains('textarea__label--floated')) {
|
|
192
|
+
this._labelElem.classList.add('textarea__label--floated');
|
|
193
193
|
}
|
|
194
|
-
if (this._container && !this._container.classList.contains(
|
|
195
|
-
this._container.classList.add(
|
|
194
|
+
if (this._container && !this._container.classList.contains('textarea--focus')) {
|
|
195
|
+
this._container.classList.add('textarea--focus');
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
connectedCallback() {
|
|
@@ -205,7 +205,7 @@ export class EzTextArea {
|
|
|
205
205
|
buildPlaceholder() {
|
|
206
206
|
if (this.alternativePlaceholder)
|
|
207
207
|
return this.alternativePlaceholder;
|
|
208
|
-
return (this.mode ===
|
|
208
|
+
return (this.mode === 'slim' && this.label) ? this.label : '';
|
|
209
209
|
}
|
|
210
210
|
buildLabelClass() {
|
|
211
211
|
let classList = this.enabled ? 'textarea__label' : 'textarea__label textarea__label--disabled';
|
|
@@ -215,6 +215,19 @@ export class EzTextArea {
|
|
|
215
215
|
classList = classList + ' textarea__label--floated';
|
|
216
216
|
return classList;
|
|
217
217
|
}
|
|
218
|
+
renderErrorTooltip() {
|
|
219
|
+
if (!this.canShowError || this.mode == 'slim' || !this.errorMessage)
|
|
220
|
+
return;
|
|
221
|
+
return (h("div", { class: "tooltip-container" }, h("ez-tooltip", { type: "error", message: this.errorMessage }, h("ez-icon", { class: `tooltip-icon ${this.errorMessage ? 'hasError' : ''}`, "data-element-id": ElementIDUtils.getInternalIDInfo('tooltip-icon'), iconName: "alert-circle" }))));
|
|
222
|
+
}
|
|
223
|
+
renderLabel() {
|
|
224
|
+
if (!this.label || this.mode == 'slim')
|
|
225
|
+
return null;
|
|
226
|
+
return h("label", { ref: (el) => this._labelElem = el, class: this.buildLabelClass(), onClick: () => this._inputElem.focus(), title: this.label }, this.label);
|
|
227
|
+
}
|
|
228
|
+
renderTextArea() {
|
|
229
|
+
return h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": ElementIDUtils.getInternalIDInfo('input'), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: { 'textarea--slim': this.mode === 'slim' }, placeholder: this.buildPlaceholder(), onInput: () => this.handleChange(), onFocusout: () => this.handleFocusout(), rows: this.rows });
|
|
230
|
+
}
|
|
218
231
|
//---------------------------------------------
|
|
219
232
|
// Lifecycle web component
|
|
220
233
|
//---------------------------------------------
|
|
@@ -230,13 +243,7 @@ export class EzTextArea {
|
|
|
230
243
|
}
|
|
231
244
|
render() {
|
|
232
245
|
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
233
|
-
return (h(Host, null, h("div", { class: `textarea ${this.enabled ?
|
|
234
|
-
h("label", { ref: (el) => this._labelElem = el, class: this.buildLabelClass(), onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
235
|
-
: null, h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": ElementIDUtils.getInternalIDInfo("input"), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: {
|
|
236
|
-
"textarea--slim": this.mode === "slim",
|
|
237
|
-
"textarea--resizable": this.enableResize
|
|
238
|
-
}, placeholder: this.buildPlaceholder(), onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, rows: this.rows })), this.canShowError && this.mode != "slim" &&
|
|
239
|
-
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
246
|
+
return (h(Host, null, h("div", { class: `textarea ${this.enabled ? '' : 'textarea--disabled'}`, ref: (el) => this._container = el }, this.renderLabel(), h("div", { class: `input-container ${this.enableResize ? 'textarea--resizable' : ""}` }, this.renderTextArea(), this.renderErrorTooltip()))));
|
|
240
247
|
}
|
|
241
248
|
static get is() { return "ez-text-area"; }
|
|
242
249
|
static get encapsulation() { return "shadow"; }
|
|
@@ -361,7 +368,7 @@ export class EzTextArea {
|
|
|
361
368
|
"type": "string",
|
|
362
369
|
"mutable": false,
|
|
363
370
|
"complexType": {
|
|
364
|
-
"original": "
|
|
371
|
+
"original": "'slim' | 'regular'",
|
|
365
372
|
"resolved": "\"regular\" | \"slim\"",
|
|
366
373
|
"references": {}
|
|
367
374
|
},
|
|
@@ -373,7 +380,7 @@ export class EzTextArea {
|
|
|
373
380
|
},
|
|
374
381
|
"attribute": "mode",
|
|
375
382
|
"reflect": true,
|
|
376
|
-
"defaultValue": "
|
|
383
|
+
"defaultValue": "'regular'"
|
|
377
384
|
},
|
|
378
385
|
"enableResize": {
|
|
379
386
|
"type": "boolean",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Host, 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 EzTextEdit {
|
|
5
6
|
constructor() {
|
|
6
7
|
this._newValue = undefined;
|
|
@@ -63,7 +64,7 @@ export class EzTextEdit {
|
|
|
63
64
|
}
|
|
64
65
|
handleSaveEdition() {
|
|
65
66
|
if (!this._newValue) {
|
|
66
|
-
ApplicationUtils.alert("
|
|
67
|
+
ApplicationUtils.alert(this.i18n("app.warning"), this.i18n("ez-text-edit.emptyFieldWarning")).then(() => {
|
|
67
68
|
this.setNewValue(this.value, true);
|
|
68
69
|
});
|
|
69
70
|
return;
|
|
@@ -77,6 +78,9 @@ export class EzTextEdit {
|
|
|
77
78
|
this._newValue = value;
|
|
78
79
|
this.calcSizeInput(this._newValue, setSelect);
|
|
79
80
|
}
|
|
81
|
+
async componentWillLoad() {
|
|
82
|
+
this.i18n = await initI18n();
|
|
83
|
+
}
|
|
80
84
|
componentDidLoad() {
|
|
81
85
|
this.applyFocusSelect();
|
|
82
86
|
this.setNewValue(this.value);
|
|
@@ -172,7 +172,7 @@ export class EzTextInput {
|
|
|
172
172
|
}
|
|
173
173
|
controlChangeValue() {
|
|
174
174
|
if (this._inputElem && (this.value || '') !== this._inputElem.value) {
|
|
175
|
-
if (this.cleanValueMask) {
|
|
175
|
+
if (this.cleanValueMask && this._maskFormatter) {
|
|
176
176
|
this.value = this._maskFormatter.removeMask(this._inputElem.value);
|
|
177
177
|
}
|
|
178
178
|
else {
|
|
@@ -287,6 +287,7 @@ export class EzTextInput {
|
|
|
287
287
|
//---------------------------------------------
|
|
288
288
|
componentWillLoad() {
|
|
289
289
|
this.observeMask();
|
|
290
|
+
this.forceLabelFloat = !!this.alternativePlaceholder;
|
|
290
291
|
if (this.value) {
|
|
291
292
|
if (this._maskFormatter) {
|
|
292
293
|
try {
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
|
|
3
|
+
/* dimensions */
|
|
4
|
+
/*@doc Define a largura do componente.*/
|
|
5
|
+
--ez-tile--width: 120px;
|
|
6
|
+
/*@doc Define a altura do componente.*/
|
|
7
|
+
--ez-tile--height: 80px;
|
|
8
|
+
/*@doc Define a margem do componente.*/
|
|
9
|
+
--ez-tile--padding: var(--space--12, 12px);
|
|
10
|
+
/*@doc Define o espaçamento entre o ícone e o title.*/
|
|
11
|
+
--ez-tile--icon--margin-bottom: var(--space--8);
|
|
12
|
+
/*@doc Define o raio da borda do componente.*/
|
|
13
|
+
--ez-tile--border-radius: var(--border--radius-16, 16px);
|
|
14
|
+
|
|
15
|
+
/*general colors*/
|
|
16
|
+
/*@doc Define a cor de fundo do componente.*/
|
|
17
|
+
--ez-tile--background-color: var(--color--gray-70, #ffffff);
|
|
18
|
+
/*@doc Define a cor do title.*/
|
|
19
|
+
--ez-tile--color: var(--color--ocean-green-900, #003D2D);
|
|
20
|
+
/*@doc Define a cor do ícone.*/
|
|
21
|
+
--ez-tile--icon-color: var(--color--ocean-green-400, #42A58A);
|
|
22
|
+
|
|
23
|
+
/*action colors*/
|
|
24
|
+
/*@doc Define a cor de fundo do componente no hover.*/
|
|
25
|
+
--ez-tile--hover-background-color: var(--color--gray-80, #F9F9F9);
|
|
26
|
+
/*@doc Define a cor do title no hover.*/
|
|
27
|
+
--ez-tile--hover-color: var(--color--ocean-green-900, #003D2D);
|
|
28
|
+
/*@doc Define a cor do ícone no hover.*/
|
|
29
|
+
--ez-tile--hover-icon-color: var(--color--ocean-green-400, #42A58A);
|
|
30
|
+
/*@doc Define a cor do ícone no hover.*/
|
|
31
|
+
--ez-tile--focus-visible-border: 2px solid var(--color--petroleum-400, #626D80);
|
|
32
|
+
|
|
33
|
+
/*typography*/
|
|
34
|
+
/*@doc Define a família da fonte do title.*/
|
|
35
|
+
--ez-tile--font-family: var(--font-pattern, Arial);
|
|
36
|
+
/*@doc Define o peso da fonte do title.*/
|
|
37
|
+
--ez-tile--font-weight: var(--font-weight--regular, 400);
|
|
38
|
+
/*@doc Define o tamanho do title.*/
|
|
39
|
+
--ez-tile--font-size: var(--font-size--default, 14px);
|
|
40
|
+
/*@doc Define a altura da linha do title.*/
|
|
41
|
+
--ez-tile--title-line-height: var(--line-height--20, 20px);
|
|
42
|
+
/*@doc Define a altura da linha do ícone.*/
|
|
43
|
+
--ez-tile--icon-line-height: var(--line-height--24, 24px);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
button {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
align-content: space-between;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
outline: none;
|
|
54
|
+
box-shadow: none;
|
|
55
|
+
width: var(--ez-tile--custom-width, var(--ez-tile--width));
|
|
56
|
+
height: var(--ez-tile--custom-height, var(--ez-tile--height));
|
|
57
|
+
border-radius: var(--ez-tile--border-radius);
|
|
58
|
+
background-color: var(--ez-tile--background-color);
|
|
59
|
+
color: var(--ez-tile--color);
|
|
60
|
+
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
padding: var(--ez-tile--padding);
|
|
63
|
+
border: 2px solid var(--ez-tile--background-color);
|
|
64
|
+
}
|
|
65
|
+
button:focus-visible {
|
|
66
|
+
border: var(--ez-tile--focus-visible-border);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.medium {
|
|
70
|
+
--ez-tile--width: var(--ez-tile--custom-width, 120px);
|
|
71
|
+
--ez-tile--height: var(--ez-tile--custom-height, 170px);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.isInteractive:hover,
|
|
75
|
+
.isInteractive:focus {
|
|
76
|
+
--ez-icon--color: var(--ez-tile--hover-icon-color);
|
|
77
|
+
--ez-tile--background-color: var(--ez-tile--hover-background-color);
|
|
78
|
+
--ez-tile--color: var(--ez-tile--hover-color);
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
span {
|
|
84
|
+
/*public*/
|
|
85
|
+
-webkit-line-clamp: var(--ez-tile--custom-maximum-lines, 1);
|
|
86
|
+
line-clamp: var(--ez-tile--custom-maximum-lines,1);
|
|
87
|
+
font-family: var(--ez-tile--font-family);
|
|
88
|
+
font-weight: var(--ez-tile--font-weight);
|
|
89
|
+
font-size: var(--ez-tile--font-size);
|
|
90
|
+
line-height: var(--ez-tile--title-line-height);
|
|
91
|
+
|
|
92
|
+
/*private*/
|
|
93
|
+
display: -webkit-box;
|
|
94
|
+
-webkit-box-orient: vertical;
|
|
95
|
+
width: 100%;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
text-overflow: ellipsis;
|
|
98
|
+
text-align: left;
|
|
99
|
+
white-space: pre-wrap;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
ez-icon {
|
|
103
|
+
--ez-icon--color: var(--ez-tile--icon-color);
|
|
104
|
+
margin-bottom: var(--ez-tile--icon--margin-bottom);
|
|
105
|
+
line-height: var(--ez-tile--icon-line-height);
|
|
106
|
+
}
|
|
107
|
+
.isInteractive:hover,
|
|
108
|
+
.isInteractive:focus {
|
|
109
|
+
outline: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.green{
|
|
113
|
+
--ez-tile--background-color: var(--color--ocean-green-90);
|
|
114
|
+
--ez-tile--icon-color: var(--color--ocean-green-500);
|
|
115
|
+
}
|
|
116
|
+
.isInteractive.green:hover,
|
|
117
|
+
.isInteractive.green:focus {
|
|
118
|
+
--ez-tile--hover-background-color: var(--color--ocean-green-100);
|
|
119
|
+
--ez-tile--icon-color: var(--color--ocean-green-500);
|
|
120
|
+
outline: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.gray{
|
|
124
|
+
--ez-tile--background-color: var(--color--gray-80);
|
|
125
|
+
--ez-tile--icon-color: var(--color--ocean-green-400);
|
|
126
|
+
}
|
|
127
|
+
.isInteractive.gray:hover,
|
|
128
|
+
.isInteractive.gray:focus {
|
|
129
|
+
--ez-tile--hover-background-color: var(--color--gray-90);
|
|
130
|
+
--ez-tile--hover-icon-color: var(--color--ocean-green-400);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.red{
|
|
134
|
+
--ez-tile--background-color: var(--color--red-100);
|
|
135
|
+
--ez-tile--icon-color: var(--color--red-300);
|
|
136
|
+
}
|
|
137
|
+
.isInteractive.red:hover,
|
|
138
|
+
.isInteractive.red:focus {
|
|
139
|
+
--ez-tile--hover-background-color: var(--color--red-200);
|
|
140
|
+
--ez-tile--hover-icon-color: var(--color--red-300);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.yellow{
|
|
144
|
+
--ez-tile--background-color: var(--color--yellow-100);
|
|
145
|
+
--ez-tile--icon-color: var(--color--yellow-400);
|
|
146
|
+
}
|
|
147
|
+
.isInteractive.yellow:hover,
|
|
148
|
+
.isInteractive.yellow:focus {
|
|
149
|
+
--ez-tile--hover-background-color: var(--color--yellow-200);
|
|
150
|
+
--ez-tile--hover-icon-color: var(--color--yellow-400);
|
|
151
|
+
}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
2
|
+
import { h, Host } from "@stencil/core";
|
|
3
|
+
export class EzTile {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.text = undefined;
|
|
6
|
+
this.size = "small";
|
|
7
|
+
this.height = undefined;
|
|
8
|
+
this.width = undefined;
|
|
9
|
+
this.color = "default";
|
|
10
|
+
this.iconName = "home";
|
|
11
|
+
this.maximumLines = undefined;
|
|
12
|
+
this.isInteractive = false;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Aplica o foco no componente.
|
|
16
|
+
*/
|
|
17
|
+
async setFocus() {
|
|
18
|
+
this._container.focus();
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Remove o foco do componente.
|
|
22
|
+
*/
|
|
23
|
+
async setBlur() {
|
|
24
|
+
this._container.blur();
|
|
25
|
+
}
|
|
26
|
+
clickListener(evt) {
|
|
27
|
+
if (!this.isInteractive) {
|
|
28
|
+
evt.stopImmediatePropagation();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
handleClick() {
|
|
32
|
+
if (this.isInteractive) {
|
|
33
|
+
this.tileClick.emit();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
componentDidRender() {
|
|
37
|
+
if (this._element) {
|
|
38
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
39
|
+
}
|
|
40
|
+
if (this._container) {
|
|
41
|
+
const dataInfo = { id: 'embedded' };
|
|
42
|
+
ElementIDUtils.addIDInfo(this._container, 'tile-button', dataInfo);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
const customStyleVars = Object.assign(Object.assign(Object.assign({}, (this.height ? { '--ez-tile--custom-height': `${this.height}px` } : {})), (this.width ? { '--ez-tile--custom-width': `${this.width}px` } : {})), (this.maximumLines ? { '--ez-tile--custom-maximum-lines': `${this.maximumLines}` } : {}));
|
|
47
|
+
return (h(Host, { style: customStyleVars }, h("button", { ref: element => this._container = element, class: `${this.color} ${this.size} ${this.isInteractive ? "isInteractive" : ""}`, onClick: () => this.handleClick() }, h("ez-icon", { class: "icon", iconName: this.iconName, size: "large" }), h("span", { title: this.text }, this.text))));
|
|
48
|
+
}
|
|
49
|
+
static get is() { return "ez-tile"; }
|
|
50
|
+
static get encapsulation() { return "shadow"; }
|
|
51
|
+
static get originalStyleUrls() {
|
|
52
|
+
return {
|
|
53
|
+
"$": ["ez-tile.css"]
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
static get styleUrls() {
|
|
57
|
+
return {
|
|
58
|
+
"$": ["ez-tile.css"]
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
static get properties() {
|
|
62
|
+
return {
|
|
63
|
+
"text": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"mutable": false,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "string",
|
|
68
|
+
"resolved": "string",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": false,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": "Texto a ser apresentado como t\u00EDtulo do componente."
|
|
76
|
+
},
|
|
77
|
+
"attribute": "text",
|
|
78
|
+
"reflect": true
|
|
79
|
+
},
|
|
80
|
+
"size": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"mutable": false,
|
|
83
|
+
"complexType": {
|
|
84
|
+
"original": "\"small\" | \"medium\"",
|
|
85
|
+
"resolved": "\"medium\" | \"small\"",
|
|
86
|
+
"references": {}
|
|
87
|
+
},
|
|
88
|
+
"required": false,
|
|
89
|
+
"optional": false,
|
|
90
|
+
"docs": {
|
|
91
|
+
"tags": [],
|
|
92
|
+
"text": "Define qual o tamanho do componente.\n- `\"default\"`: 120x80px\n- `\"medium\"`: 120x170px"
|
|
93
|
+
},
|
|
94
|
+
"attribute": "size",
|
|
95
|
+
"reflect": true,
|
|
96
|
+
"defaultValue": "\"small\""
|
|
97
|
+
},
|
|
98
|
+
"height": {
|
|
99
|
+
"type": "number",
|
|
100
|
+
"mutable": false,
|
|
101
|
+
"complexType": {
|
|
102
|
+
"original": "number",
|
|
103
|
+
"resolved": "number",
|
|
104
|
+
"references": {}
|
|
105
|
+
},
|
|
106
|
+
"required": false,
|
|
107
|
+
"optional": true,
|
|
108
|
+
"docs": {
|
|
109
|
+
"tags": [],
|
|
110
|
+
"text": "Define o tamanho do componente, sobrescrevendo o padr\u00E3o da propriedade size."
|
|
111
|
+
},
|
|
112
|
+
"attribute": "height",
|
|
113
|
+
"reflect": true
|
|
114
|
+
},
|
|
115
|
+
"width": {
|
|
116
|
+
"type": "number",
|
|
117
|
+
"mutable": false,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "number",
|
|
120
|
+
"resolved": "number",
|
|
121
|
+
"references": {}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": true,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": "Define a largura do componente, sobrescrevendo o padr\u00E3o da propriedade size."
|
|
128
|
+
},
|
|
129
|
+
"attribute": "width",
|
|
130
|
+
"reflect": true
|
|
131
|
+
},
|
|
132
|
+
"color": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"mutable": false,
|
|
135
|
+
"complexType": {
|
|
136
|
+
"original": "\"default\" | \"green\" | \"gray\" | \"red\" | \"yellow\"",
|
|
137
|
+
"resolved": "\"default\" | \"gray\" | \"green\" | \"red\" | \"yellow\"",
|
|
138
|
+
"references": {}
|
|
139
|
+
},
|
|
140
|
+
"required": false,
|
|
141
|
+
"optional": false,
|
|
142
|
+
"docs": {
|
|
143
|
+
"tags": [],
|
|
144
|
+
"text": "Define a cor tema do componente."
|
|
145
|
+
},
|
|
146
|
+
"attribute": "color",
|
|
147
|
+
"reflect": true,
|
|
148
|
+
"defaultValue": "\"default\""
|
|
149
|
+
},
|
|
150
|
+
"iconName": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "string",
|
|
155
|
+
"resolved": "string",
|
|
156
|
+
"references": {}
|
|
157
|
+
},
|
|
158
|
+
"required": false,
|
|
159
|
+
"optional": false,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": "Define o \u00EDcone a ser usado da biblioteca de \u00EDcones: [ez-icons](https://gilded-nasturtium-6b64dd.netlify.app/docs/components/layout-doc/icons/)"
|
|
163
|
+
},
|
|
164
|
+
"attribute": "icon-name",
|
|
165
|
+
"reflect": true,
|
|
166
|
+
"defaultValue": "\"home\""
|
|
167
|
+
},
|
|
168
|
+
"maximumLines": {
|
|
169
|
+
"type": "number",
|
|
170
|
+
"mutable": false,
|
|
171
|
+
"complexType": {
|
|
172
|
+
"original": "number",
|
|
173
|
+
"resolved": "number",
|
|
174
|
+
"references": {}
|
|
175
|
+
},
|
|
176
|
+
"required": false,
|
|
177
|
+
"optional": true,
|
|
178
|
+
"docs": {
|
|
179
|
+
"tags": [],
|
|
180
|
+
"text": "Define a quantidade m\u00E1xima de linhas de texto a serem apresentadas.\nQuando a propriedade n\u00E3o \u00E9 passada, limita a 1 linha."
|
|
181
|
+
},
|
|
182
|
+
"attribute": "maximum-lines",
|
|
183
|
+
"reflect": true
|
|
184
|
+
},
|
|
185
|
+
"isInteractive": {
|
|
186
|
+
"type": "boolean",
|
|
187
|
+
"mutable": false,
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "boolean",
|
|
190
|
+
"resolved": "boolean",
|
|
191
|
+
"references": {}
|
|
192
|
+
},
|
|
193
|
+
"required": false,
|
|
194
|
+
"optional": false,
|
|
195
|
+
"docs": {
|
|
196
|
+
"tags": [],
|
|
197
|
+
"text": "Define se o componente ser\u00E1 interativo. Caso contr\u00E1rio, ser\u00E1 est\u00E1tico. \nSe true, permite permite clique.\nSe false, n\u00E3o permite clique"
|
|
198
|
+
},
|
|
199
|
+
"attribute": "is-interactive",
|
|
200
|
+
"reflect": true,
|
|
201
|
+
"defaultValue": "false"
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
static get events() {
|
|
206
|
+
return [{
|
|
207
|
+
"method": "tileClick",
|
|
208
|
+
"name": "tileClick",
|
|
209
|
+
"bubbles": true,
|
|
210
|
+
"cancelable": true,
|
|
211
|
+
"composed": true,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [],
|
|
214
|
+
"text": "Emitido quando o elemento principal \u00E9 clicado"
|
|
215
|
+
},
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "void",
|
|
218
|
+
"resolved": "void",
|
|
219
|
+
"references": {}
|
|
220
|
+
}
|
|
221
|
+
}];
|
|
222
|
+
}
|
|
223
|
+
static get methods() {
|
|
224
|
+
return {
|
|
225
|
+
"setFocus": {
|
|
226
|
+
"complexType": {
|
|
227
|
+
"signature": "() => Promise<void>",
|
|
228
|
+
"parameters": [],
|
|
229
|
+
"references": {
|
|
230
|
+
"Promise": {
|
|
231
|
+
"location": "global"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"return": "Promise<void>"
|
|
235
|
+
},
|
|
236
|
+
"docs": {
|
|
237
|
+
"text": "Aplica o foco no componente.",
|
|
238
|
+
"tags": []
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"setBlur": {
|
|
242
|
+
"complexType": {
|
|
243
|
+
"signature": "() => Promise<void>",
|
|
244
|
+
"parameters": [],
|
|
245
|
+
"references": {
|
|
246
|
+
"Promise": {
|
|
247
|
+
"location": "global"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"return": "Promise<void>"
|
|
251
|
+
},
|
|
252
|
+
"docs": {
|
|
253
|
+
"text": "Remove o foco do componente.",
|
|
254
|
+
"tags": []
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
static get elementRef() { return "_element"; }
|
|
260
|
+
static get listeners() {
|
|
261
|
+
return [{
|
|
262
|
+
"name": "click",
|
|
263
|
+
"method": "clickListener",
|
|
264
|
+
"target": undefined,
|
|
265
|
+
"capture": true,
|
|
266
|
+
"passive": false
|
|
267
|
+
}];
|
|
268
|
+
}
|
|
269
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { TimeFormatter, MaskFormatter, NumberUtils, ElementIDUtils } from "@sankhyalabs/core";
|
|
3
3
|
import CSSVarsUtils from "../../utils/CSSVarsUtils";
|
|
4
|
+
import initI18n from '../../utils/i18n';
|
|
4
5
|
export class EzTimeInput {
|
|
5
6
|
constructor() {
|
|
6
7
|
this.label = undefined;
|
|
@@ -41,7 +42,7 @@ export class EzTimeInput {
|
|
|
41
42
|
this._viewValue = newValueValidated == undefined ? "" : newValueValidated.toString();
|
|
42
43
|
this.prepareValue(this._viewValue);
|
|
43
44
|
if (this._viewValue && !TimeFormatter.validateTime(this._viewValue, this.showSeconds)) {
|
|
44
|
-
this.setError("
|
|
45
|
+
this.setError(this.i18n("ez-time-input.invalidTime"));
|
|
45
46
|
newValueValidated = undefined;
|
|
46
47
|
}
|
|
47
48
|
else {
|
|
@@ -130,15 +131,8 @@ export class EzTimeInput {
|
|
|
130
131
|
//---------------------------------------------
|
|
131
132
|
// Lifecycle web component
|
|
132
133
|
//---------------------------------------------
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
if (this.autoFocus) {
|
|
136
|
-
requestAnimationFrame(() => {
|
|
137
|
-
this.setFocus({ selectText: true });
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
componentWillLoad() {
|
|
134
|
+
async componentWillLoad() {
|
|
135
|
+
this.i18n = await initI18n();
|
|
142
136
|
this.observeShowSeconds();
|
|
143
137
|
if (this.value) {
|
|
144
138
|
this.prepareValue(this.value.toString());
|
|
@@ -147,6 +141,14 @@ export class EzTimeInput {
|
|
|
147
141
|
this.prepareValue(this._viewValue);
|
|
148
142
|
}
|
|
149
143
|
}
|
|
144
|
+
componentDidLoad() {
|
|
145
|
+
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
146
|
+
if (this.autoFocus) {
|
|
147
|
+
requestAnimationFrame(() => {
|
|
148
|
+
this.setFocus({ selectText: true });
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
}
|
|
150
152
|
render() {
|
|
151
153
|
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
152
154
|
return (h(Host, null, h("ez-text-input", { class: "time__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
|