@sankhyalabs/ezui 6.1.0-dev.3 → 6.1.0-dev.30
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-d45368f4.js} +43 -15
- package/dist/cjs/RichToolbarHelper-ea12328f.js +33 -0
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/app-globals-08a85285.js +12 -0
- package/dist/cjs/{constants-569271bc.js → constants-72b7e05e.js} +0 -2
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +5 -3
- package/dist/cjs/ez-avatar.cjs.entry.js +6 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +7 -6
- package/dist/cjs/ez-card-item_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-chart.cjs.entry.js +3 -18
- package/dist/cjs/ez-chip.cjs.entry.js +2 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +13 -10
- package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +290 -4
- package/dist/cjs/ez-combo-box.cjs.entry.js +32 -14
- 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 +8 -6
- package/dist/cjs/ez-double-list.cjs.entry.js +12 -4
- package/dist/cjs/ez-empty-card.cjs.entry.js +34 -0
- package/dist/cjs/ez-file-item.cjs.entry.js +9 -6
- package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +12 -4
- package/dist/cjs/ez-form.cjs.entry.js +7 -5
- package/dist/cjs/ez-grid.cjs.entry.js +169 -133
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +5 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +315 -0
- package/dist/cjs/ez-list.cjs.entry.js +4 -2
- package/dist/cjs/ez-modal-container.cjs.entry.js +6 -2
- package/dist/cjs/ez-modal.cjs.entry.js +5 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +9 -5
- package/dist/cjs/ez-number-input.cjs.entry.js +5 -1
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +5 -0
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
- package/dist/cjs/ez-search-plus.cjs.entry.js +18 -9
- package/dist/cjs/ez-search-result-list.cjs.entry.js +24 -7
- package/dist/cjs/ez-search.cjs.entry.js +8 -9
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +5 -7
- package/dist/cjs/ez-skeleton.cjs.entry.js +5 -3
- package/dist/cjs/ez-sortable-list.cjs.entry.js +12 -5
- package/dist/cjs/ez-split-button.cjs.entry.js +5 -4
- package/dist/cjs/ez-split-item.cjs.entry.js +6 -2
- package/dist/cjs/ez-tag.cjs.entry.js +38 -0
- package/dist/cjs/ez-text-area.cjs.entry.js +34 -27
- package/dist/cjs/ez-text-input.cjs.entry.js +2 -1
- package/dist/cjs/ez-tile-medium.cjs.entry.js +79 -0
- package/dist/cjs/ez-tile.cjs.entry.js +62 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +12 -10
- package/dist/cjs/{ez-filter-input_2.cjs.entry.js → ez-tooltip.cjs.entry.js} +1 -123
- package/dist/cjs/ez-tree.cjs.entry.js +12 -1
- package/dist/cjs/ez-underface.cjs.entry.js +35 -0
- package/dist/cjs/ez-upload.cjs.entry.js +17 -11
- package/dist/cjs/ezui.cjs.js +5 -1
- package/dist/cjs/filter-column.cjs.entry.js +8 -4
- package/dist/cjs/index-040deae3.js +3684 -0
- package/dist/cjs/index-a7b0c73d.js +48 -16
- package/dist/cjs/loader.cjs.js +5 -1
- package/dist/cjs/purify-0bd8a150.js +1359 -0
- package/dist/cjs/{search-column-27d1f72f.js → search-column-de15f22d.js} +11 -9
- package/dist/collection/collection-manifest.json +45 -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-chip/ez-chip.js +20 -1
- 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 +6 -2
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +6 -2
- 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 +6 -4
- 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/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 +17 -15
- 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/ez-popover-plus.js +6 -0
- 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-tag/ez-tag.css +105 -0
- package/dist/collection/components/ez-tag/ez-tag.js +112 -0
- 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-tile-medium/ez-tile-medium.css +183 -0
- package/dist/collection/components/ez-tile-medium/ez-tile-medium.js +353 -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-tree/types/Tree.js +7 -0
- package/dist/collection/components/ez-underface/ez-underface.css +51 -0
- package/dist/collection/components/ez-underface/ez-underface.js +109 -0
- 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 +279 -0
- package/dist/collection/utils/i18n/locales/es-es.js +279 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +279 -0
- package/dist/collection/utils/i18n/translations.js +9 -0
- package/dist/collection/utils/index.js +1 -1
- package/dist/collection/utils/searchColumn/search-column.js +0 -2
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +8 -2
- package/dist/custom-elements/index.d.ts +78 -0
- package/dist/custom-elements/index.js +6639 -530
- package/dist/esm/{ApplicationUtils-eaf91331.js → ApplicationUtils-391ebb4f.js} +43 -15
- package/dist/esm/RichToolbarHelper-f3a149c4.js +29 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/app-globals-2394c55a.js +10 -0
- package/dist/esm/{constants-b036528f.js → constants-3fabe81e.js} +1 -2
- package/dist/esm/ez-actions-button.entry.js +2 -1
- package/dist/esm/ez-alert-list.entry.js +5 -3
- package/dist/esm/ez-avatar.entry.js +6 -1
- package/dist/esm/ez-calendar.entry.js +7 -6
- package/dist/esm/ez-card-item_2.entry.js +1 -1
- package/dist/esm/ez-chart.entry.js +1 -16
- package/dist/esm/ez-chip.entry.js +2 -1
- package/dist/esm/ez-collapsible-box.entry.js +13 -10
- package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +291 -6
- package/dist/esm/ez-combo-box.entry.js +32 -14
- 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 +8 -6
- package/dist/esm/ez-double-list.entry.js +12 -4
- package/dist/esm/ez-empty-card.entry.js +30 -0
- package/dist/esm/ez-file-item.entry.js +9 -6
- package/dist/esm/ez-filter-input.entry.js +125 -0
- package/dist/esm/ez-form-view.entry.js +12 -4
- package/dist/esm/ez-form.entry.js +7 -5
- package/dist/esm/ez-grid.entry.js +151 -115
- package/dist/esm/ez-guide-navigator.entry.js +5 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +306 -0
- package/dist/esm/ez-list.entry.js +4 -2
- package/dist/esm/ez-modal-container.entry.js +6 -2
- package/dist/esm/ez-modal.entry.js +5 -1
- package/dist/esm/ez-multi-selection-list.entry.js +9 -5
- package/dist/esm/ez-number-input.entry.js +5 -1
- package/dist/esm/ez-popover-plus_3.entry.js +6 -1
- package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
- package/dist/esm/ez-search-plus.entry.js +18 -9
- package/dist/esm/ez-search-result-list.entry.js +24 -7
- package/dist/esm/ez-search.entry.js +8 -9
- package/dist/esm/ez-sidebar-navigator.entry.js +5 -7
- package/dist/esm/ez-skeleton.entry.js +5 -3
- package/dist/esm/ez-sortable-list.entry.js +12 -5
- package/dist/esm/ez-split-button.entry.js +5 -4
- package/dist/esm/ez-split-item.entry.js +6 -2
- package/dist/esm/ez-tag.entry.js +34 -0
- package/dist/esm/ez-text-area.entry.js +34 -27
- package/dist/esm/ez-text-input.entry.js +2 -1
- package/dist/esm/ez-tile-medium.entry.js +75 -0
- package/dist/esm/ez-tile.entry.js +58 -0
- package/dist/esm/ez-time-input.entry.js +12 -10
- package/dist/esm/{ez-filter-input_2.entry.js → ez-tooltip.entry.js} +3 -124
- package/dist/esm/ez-tree.entry.js +12 -1
- package/dist/esm/ez-underface.entry.js +31 -0
- package/dist/esm/ez-upload.entry.js +17 -11
- package/dist/esm/ezui.js +5 -1
- package/dist/esm/filter-column.entry.js +8 -4
- package/dist/esm/index-76eedf30.js +3681 -0
- package/dist/esm/index-baa5e267.js +48 -16
- package/dist/esm/loader.js +5 -1
- package/dist/esm/purify-34e6ff6f.js +1357 -0
- package/dist/esm/{search-column-e609d513.js → search-column-661e2324.js} +10 -6
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-0759b307.entry.js +1 -0
- package/dist/ezui/p-085f83e2.entry.js +1 -0
- package/dist/ezui/p-103f5cdd.entry.js +7 -0
- package/dist/ezui/p-112455b1.js +1 -0
- package/dist/ezui/p-125275fa.entry.js +1 -0
- package/dist/ezui/p-18f6793e.entry.js +1 -0
- package/dist/ezui/p-199a1a34.entry.js +1 -0
- package/dist/ezui/p-1acc6061.entry.js +1 -0
- package/dist/ezui/p-20c024f7.entry.js +1 -0
- package/dist/ezui/p-21b252e4.entry.js +1 -0
- package/dist/ezui/p-287329d1.entry.js +1 -0
- package/dist/ezui/p-37076ba1.js +1 -0
- package/dist/ezui/p-3e7351ee.entry.js +1 -0
- package/dist/ezui/p-3e767a74.js +1 -0
- package/dist/ezui/p-4a6f4a80.entry.js +1 -0
- package/dist/ezui/p-53bc30a1.entry.js +1 -0
- package/dist/ezui/{p-4c01e506.entry.js → p-54a346fc.entry.js} +46 -46
- package/dist/ezui/p-603ef267.entry.js +1 -0
- package/dist/ezui/p-6369a0cd.entry.js +1 -0
- package/dist/ezui/p-689a2ab3.entry.js +1 -0
- package/dist/ezui/p-6a5c9445.entry.js +1 -0
- package/dist/ezui/p-6b71a749.entry.js +1 -0
- package/dist/ezui/p-6d596a5a.entry.js +1 -0
- package/dist/ezui/p-6fd4535f.entry.js +1 -0
- package/dist/ezui/p-75bf01eb.entry.js +1 -0
- package/dist/ezui/p-79044c3e.entry.js +1 -0
- package/dist/ezui/p-80461324.entry.js +1 -0
- package/dist/ezui/p-871777a5.entry.js +1 -0
- package/dist/ezui/{p-69937816.entry.js → p-8afb6e8a.entry.js} +1 -1
- package/dist/ezui/p-8ee9f175.entry.js +1 -0
- package/dist/ezui/p-91c9d50e.entry.js +1 -0
- package/dist/ezui/p-93e1c917.entry.js +1 -0
- package/dist/ezui/p-9fedd404.js +1 -0
- package/dist/ezui/p-a3ada561.entry.js +1 -0
- package/dist/ezui/p-a3b18ddc.entry.js +1 -0
- package/dist/ezui/p-b1e45320.js +1 -0
- package/dist/ezui/p-b31dc417.js +1 -0
- package/dist/ezui/p-b9c271a0.entry.js +1 -0
- package/dist/ezui/p-bc8d5a6a.entry.js +1 -0
- package/dist/ezui/p-bdacdc6d.entry.js +1 -0
- package/dist/ezui/p-beb42de1.entry.js +1 -0
- package/dist/ezui/p-c441a6b9.entry.js +1 -0
- package/dist/ezui/p-cbf1a296.entry.js +1 -0
- package/dist/ezui/p-d1efd7b7.entry.js +1 -0
- package/dist/ezui/p-d2364956.js +3 -0
- package/dist/ezui/p-d2645bdf.entry.js +1 -0
- package/dist/ezui/p-d3dc8595.entry.js +1 -0
- package/dist/ezui/p-d5fb569d.entry.js +1 -0
- package/dist/ezui/p-d63703ef.entry.js +1 -0
- package/dist/ezui/p-d8cc640d.entry.js +1 -0
- package/dist/ezui/p-dd5afff2.entry.js +1 -0
- package/dist/ezui/p-e7a7c594.entry.js +1 -0
- package/dist/ezui/p-e7cd9e9b.entry.js +1 -0
- package/dist/ezui/p-ec4c70a6.entry.js +1 -0
- package/dist/ezui/p-f45cda60.entry.js +1 -0
- package/dist/ezui/p-f84b784b.js +1 -0
- package/dist/ezui/p-fcb3e6be.entry.js +1 -0
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +2 -1
- package/dist/types/components/ez-avatar/ez-avatar.d.ts +2 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +2 -3
- package/dist/types/components/ez-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/ez-form.d.ts +1 -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/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-popover-plus/ez-popover-plus.d.ts +1 -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-tag/ez-tag.d.ts +23 -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-tile-medium/ez-tile-medium.d.ts +98 -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-tree/types/Tree.d.ts +1 -0
- package/dist/types/components/ez-underface/ez-underface.d.ts +23 -0
- package/dist/types/components/ez-upload/ez-upload.d.ts +3 -1
- package/dist/types/components.d.ts +714 -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 +280 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +280 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +280 -0
- package/dist/types/utils/i18n/translations.d.ts +840 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/searchColumn/search-column.d.ts +0 -2
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -0
- package/package.json +9 -2
- package/react/components.d.ts +13 -0
- package/react/components.js +13 -0
- package/react/components.js.map +1 -1
- package/dist/assets/actions-sprite.svg +0 -257
- package/dist/collection/components/assets/actions-sprite.svg +0 -257
- package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +0 -75
- package/dist/collection/components/ez-sidebar-navigator/messages/constants.js +0 -5
- package/dist/ezui/p-0306dff7.entry.js +0 -1
- package/dist/ezui/p-07894c4a.entry.js +0 -1
- package/dist/ezui/p-09de35a2.entry.js +0 -1
- package/dist/ezui/p-0d9856a4.entry.js +0 -1
- package/dist/ezui/p-1276ef79.entry.js +0 -1
- package/dist/ezui/p-1eb34cad.entry.js +0 -1
- package/dist/ezui/p-2187f86c.js +0 -1
- package/dist/ezui/p-26685c50.entry.js +0 -1
- package/dist/ezui/p-2b42abbb.entry.js +0 -1
- package/dist/ezui/p-2b4df33d.entry.js +0 -1
- package/dist/ezui/p-33326ac5.entry.js +0 -1
- package/dist/ezui/p-35115d5d.entry.js +0 -1
- package/dist/ezui/p-3ba9565c.entry.js +0 -1
- package/dist/ezui/p-496f7832.entry.js +0 -1
- package/dist/ezui/p-4b67138e.entry.js +0 -1
- package/dist/ezui/p-4bd6dd6a.entry.js +0 -1
- package/dist/ezui/p-555c9018.entry.js +0 -1
- package/dist/ezui/p-57363cfd.entry.js +0 -1
- package/dist/ezui/p-58f69d24.entry.js +0 -1
- package/dist/ezui/p-59561756.entry.js +0 -7
- package/dist/ezui/p-5eea9886.js +0 -1
- package/dist/ezui/p-61d3a77b.entry.js +0 -1
- package/dist/ezui/p-63cb493e.entry.js +0 -1
- package/dist/ezui/p-6e429cff.entry.js +0 -1
- package/dist/ezui/p-7019f782.entry.js +0 -1
- package/dist/ezui/p-77a4bd35.entry.js +0 -1
- package/dist/ezui/p-7ab19270.entry.js +0 -1
- package/dist/ezui/p-7eae6986.entry.js +0 -1
- package/dist/ezui/p-9478b13b.entry.js +0 -1
- package/dist/ezui/p-9567b31a.entry.js +0 -1
- package/dist/ezui/p-998afb6a.entry.js +0 -1
- package/dist/ezui/p-a148e994.entry.js +0 -1
- package/dist/ezui/p-a3bf8cf1.entry.js +0 -1
- package/dist/ezui/p-bac0f920.entry.js +0 -1
- package/dist/ezui/p-bff24a7b.js +0 -1
- package/dist/ezui/p-cb75eb46.entry.js +0 -1
- package/dist/ezui/p-d47dabdf.entry.js +0 -1
- package/dist/ezui/p-da1b4a38.entry.js +0 -1
- package/dist/ezui/p-dc73e1fe.entry.js +0 -1
- package/dist/ezui/p-e06a9886.entry.js +0 -1
- package/dist/ezui/p-e4528470.entry.js +0 -1
- package/dist/ezui/p-e6a9041d.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
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
|
-
const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #2B3A54);--text-area__input--background-color:var(--background--light, #FFFFFF);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--color--strokes
|
|
8
|
+
const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #2B3A54);--text-area__input--background-color:var(--background--light, #FFFFFF);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--color--strokes, #DCE0E8);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--background--medium, #F0F3F7);--text-area__input--disabled--color:var(--text--primary, #626E82);--text-area__input--disabled--border--color:var(--color--strokes, #DCE0E8);--text-area__input--error--border-color:var(--color-alert--error-800, #BD0025);--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color-alert--error-800, #BD0025);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;--text-area__scrollbar--color-default:var(--scrollbar--default, #626e82);--text-area__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--text-area__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--text-area__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--text-area__scrollbar--border-radius:var(--border--radius-small, 6px);--text-area__scrollbar--width:var(--space--small, 6px);--ez-text-area__tooltip-icon--spacing:var(--space--large);--ez-text-area__tooltip-icon---width:var(--space--large);--ez-text-area__tooltip-icon---horizontal-margin:var(--space--medium, 12px);--ez-text-area__tooltip-icon---vertical-margin:10px;--ez-text-area__tooltip_icon--error--color:var(--color-alert--error-800, #BD0025);display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{display:flex;flex-direction:column;height:calc(100% - 16px);box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;min-height:42px;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px);scrollbar-width:thin;scrollbar-color:var(--text-area__scrollbar--color-clicked) var(--text-area__scrollbar--color-background)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color);border:var(--text-area__input--disabled--border);cursor:not-allowed}textarea::-webkit-scrollbar{background-color:var(--text-area__scrollbar--color-background);width:var(--text-area__scrollbar--width);max-width:var(--text-area__scrollbar--width);min-width:var(--text-area__scrollbar--width)}textarea::-webkit-scrollbar-thumb{background-color:var(--text-area__scrollbar--color-default);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-track{background-color:var(--text-area__scrollbar--color-background);border-radius:var(--text-area__scrollbar--border-radius)}textarea::-webkit-scrollbar-thumb:vertical:hover,textarea::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--text-area__scrollbar--color-hover)}textarea::-webkit-scrollbar-thumb:vertical:active,textarea::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--text-area__scrollbar--color-clicked)}.textarea{width:100%;min-height:42px;max-width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--disabled{border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--disabled--border--color);background-color:var(--text-area__input--disabled--background-color);cursor:not-allowed}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color);cursor:not-allowed}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder,.textarea--slim:disabled:-moz-placeholder,.textarea--slim:disabled::-moz-placeholder,.textarea--slim:disabled:-ms-input-placeholder,.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color);cursor:not-allowed}ez-icon.tooltip-icon.hasError{--ez-icon--color:var(--ez-text-area__tooltip_icon--error--color)}.input-container{display:flex;align-items:center}.textarea--resizable{resize:vertical;overflow:auto;min-height:42px}";
|
|
9
9
|
|
|
10
10
|
const EzTextArea = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -19,7 +19,7 @@ const EzTextArea = class {
|
|
|
19
19
|
this.errorMessage = undefined;
|
|
20
20
|
this.rows = 4;
|
|
21
21
|
this.canShowError = true;
|
|
22
|
-
this.mode =
|
|
22
|
+
this.mode = 'regular';
|
|
23
23
|
this.enableResize = true;
|
|
24
24
|
this.autoRows = false;
|
|
25
25
|
this.autoFocus = false;
|
|
@@ -42,10 +42,10 @@ const EzTextArea = class {
|
|
|
42
42
|
if (this._inputElem) {
|
|
43
43
|
if (newValue != oldValue) {
|
|
44
44
|
if (this.canChangeValue()) {
|
|
45
|
-
this._inputElem.value = this.value ||
|
|
45
|
+
this._inputElem.value = this.value || '';
|
|
46
46
|
}
|
|
47
47
|
this.adjustFloatingLabel();
|
|
48
|
-
this.errorMessage =
|
|
48
|
+
this.errorMessage = '';
|
|
49
49
|
this.ezChange.emit(this.value);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -54,13 +54,13 @@ const EzTextArea = class {
|
|
|
54
54
|
if (this._initialRows == undefined) {
|
|
55
55
|
this._initialRows = this.rows > 0 ? this.rows : undefined;
|
|
56
56
|
}
|
|
57
|
-
const rows = this._initialRows > 0 ? this._initialRows : this.mode !=
|
|
57
|
+
const rows = this._initialRows > 0 ? this._initialRows : this.mode != 'slim' ? 4 : 2;
|
|
58
58
|
if (rows !== this.rows) {
|
|
59
59
|
this.rows = rows;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
observeRows() {
|
|
63
|
-
const rows = this.rows > 0 ? this.rows : this.mode !=
|
|
63
|
+
const rows = this.rows > 0 ? this.rows : this.mode != 'slim' ? 4 : 2;
|
|
64
64
|
if (rows !== this.rows) {
|
|
65
65
|
this.updateRows(rows);
|
|
66
66
|
}
|
|
@@ -93,8 +93,8 @@ const EzTextArea = class {
|
|
|
93
93
|
var _a, _b, _c, _d;
|
|
94
94
|
const selectionStart = this._inputElem.selectionStart;
|
|
95
95
|
const selectionEnd = this._inputElem.selectionEnd;
|
|
96
|
-
const textStart = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.substring(0, selectionStart)) !== null && _b !== void 0 ? _b :
|
|
97
|
-
const textEnd = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.substring(selectionEnd)) !== null && _d !== void 0 ? _d :
|
|
96
|
+
const textStart = (_b = (_a = this.value) === null || _a === void 0 ? void 0 : _a.substring(0, selectionStart)) !== null && _b !== void 0 ? _b : '';
|
|
97
|
+
const textEnd = (_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.substring(selectionEnd)) !== null && _d !== void 0 ? _d : '';
|
|
98
98
|
this.value = `${textStart}${text}${textEnd}`;
|
|
99
99
|
const newSelectionEnd = selectionStart + text.length;
|
|
100
100
|
const start = (selectionStart === selectionEnd) ? newSelectionEnd : selectionStart;
|
|
@@ -117,28 +117,28 @@ const EzTextArea = class {
|
|
|
117
117
|
* Retorna se o conteúdo é inválido.
|
|
118
118
|
*/
|
|
119
119
|
async isInvalid() {
|
|
120
|
-
return typeof this.errorMessage ===
|
|
120
|
+
return typeof this.errorMessage === 'string' && this.errorMessage.trim() !== '';
|
|
121
121
|
}
|
|
122
122
|
//---------------------------------------------
|
|
123
123
|
// Private methods
|
|
124
124
|
//---------------------------------------------
|
|
125
125
|
canChangeValue() {
|
|
126
|
-
return this._inputElem && (this.value ||
|
|
126
|
+
return this._inputElem && (this.value || '') !== this._inputElem.value;
|
|
127
127
|
}
|
|
128
128
|
adjustFloatingLabel() {
|
|
129
129
|
if (this.forceLabelFloat)
|
|
130
130
|
return;
|
|
131
131
|
if (this.label && this._labelElem) {
|
|
132
132
|
const hasValue = this.value && this.value.toString().length > 0;
|
|
133
|
-
const containsFloatedClass = this._labelElem.classList.contains(
|
|
133
|
+
const containsFloatedClass = this._labelElem.classList.contains('textarea__label--floated');
|
|
134
134
|
if (hasValue || this.isFocused()) {
|
|
135
135
|
if (!containsFloatedClass) {
|
|
136
|
-
this._labelElem.classList.add(
|
|
136
|
+
this._labelElem.classList.add('textarea__label--floated');
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
else {
|
|
140
140
|
if (containsFloatedClass) {
|
|
141
|
-
this._labelElem.classList.remove(
|
|
141
|
+
this._labelElem.classList.remove('textarea__label--floated');
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -187,8 +187,8 @@ const EzTextArea = class {
|
|
|
187
187
|
//---------------------------------------------
|
|
188
188
|
handleFocusout() {
|
|
189
189
|
this.adjustFloatingLabel();
|
|
190
|
-
if (this._container && this._container.classList.contains(
|
|
191
|
-
this._container.classList.remove(
|
|
190
|
+
if (this._container && this._container.classList.contains('textarea--focus')) {
|
|
191
|
+
this._container.classList.remove('textarea--focus');
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
handleChange() {
|
|
@@ -197,11 +197,11 @@ const EzTextArea = class {
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
handleFocus() {
|
|
200
|
-
if (this.label && this._labelElem && !this._labelElem.classList.contains(
|
|
201
|
-
this._labelElem.classList.add(
|
|
200
|
+
if (this.label && this._labelElem && !this._labelElem.classList.contains('textarea__label--floated')) {
|
|
201
|
+
this._labelElem.classList.add('textarea__label--floated');
|
|
202
202
|
}
|
|
203
|
-
if (this._container && !this._container.classList.contains(
|
|
204
|
-
this._container.classList.add(
|
|
203
|
+
if (this._container && !this._container.classList.contains('textarea--focus')) {
|
|
204
|
+
this._container.classList.add('textarea--focus');
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
connectedCallback() {
|
|
@@ -214,7 +214,7 @@ const EzTextArea = class {
|
|
|
214
214
|
buildPlaceholder() {
|
|
215
215
|
if (this.alternativePlaceholder)
|
|
216
216
|
return this.alternativePlaceholder;
|
|
217
|
-
return (this.mode ===
|
|
217
|
+
return (this.mode === 'slim' && this.label) ? this.label : '';
|
|
218
218
|
}
|
|
219
219
|
buildLabelClass() {
|
|
220
220
|
let classList = this.enabled ? 'textarea__label' : 'textarea__label textarea__label--disabled';
|
|
@@ -224,6 +224,19 @@ const EzTextArea = class {
|
|
|
224
224
|
classList = classList + ' textarea__label--floated';
|
|
225
225
|
return classList;
|
|
226
226
|
}
|
|
227
|
+
renderErrorTooltip() {
|
|
228
|
+
if (!this.canShowError || this.mode == 'slim' || !this.errorMessage)
|
|
229
|
+
return;
|
|
230
|
+
return (index.h("div", { class: "tooltip-container" }, index.h("ez-tooltip", { type: "error", message: this.errorMessage }, index.h("ez-icon", { class: `tooltip-icon ${this.errorMessage ? 'hasError' : ''}`, "data-element-id": core.ElementIDUtils.getInternalIDInfo('tooltip-icon'), iconName: "alert-circle" }))));
|
|
231
|
+
}
|
|
232
|
+
renderLabel() {
|
|
233
|
+
if (!this.label || this.mode == 'slim')
|
|
234
|
+
return null;
|
|
235
|
+
return index.h("label", { ref: (el) => this._labelElem = el, class: this.buildLabelClass(), onClick: () => this._inputElem.focus(), title: this.label }, this.label);
|
|
236
|
+
}
|
|
237
|
+
renderTextArea() {
|
|
238
|
+
return index.h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": core.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 });
|
|
239
|
+
}
|
|
227
240
|
//---------------------------------------------
|
|
228
241
|
// Lifecycle web component
|
|
229
242
|
//---------------------------------------------
|
|
@@ -239,13 +252,7 @@ const EzTextArea = class {
|
|
|
239
252
|
}
|
|
240
253
|
render() {
|
|
241
254
|
core.ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
242
|
-
return (index.h(index.Host, null, index.h("div", { class: `textarea ${this.enabled ?
|
|
243
|
-
index.h("label", { ref: (el) => this._labelElem = el, class: this.buildLabelClass(), onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
244
|
-
: null, index.h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": core.ElementIDUtils.getInternalIDInfo("input"), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: {
|
|
245
|
-
"textarea--slim": this.mode === "slim",
|
|
246
|
-
"textarea--resizable": this.enableResize
|
|
247
|
-
}, placeholder: this.buildPlaceholder(), onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, rows: this.rows })), this.canShowError && this.mode != "slim" &&
|
|
248
|
-
index.h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
255
|
+
return (index.h(index.Host, null, index.h("div", { class: `textarea ${this.enabled ? '' : 'textarea--disabled'}`, ref: (el) => this._container = el }, this.renderLabel(), index.h("div", { class: `input-container ${this.enableResize ? 'textarea--resizable' : ""}` }, this.renderTextArea(), this.renderErrorTooltip()))));
|
|
249
256
|
}
|
|
250
257
|
get _hostElement() { return index.getElement(this); }
|
|
251
258
|
static get watchers() { return {
|
|
@@ -181,7 +181,7 @@ const EzTextInput = class {
|
|
|
181
181
|
}
|
|
182
182
|
controlChangeValue() {
|
|
183
183
|
if (this._inputElem && (this.value || '') !== this._inputElem.value) {
|
|
184
|
-
if (this.cleanValueMask) {
|
|
184
|
+
if (this.cleanValueMask && this._maskFormatter) {
|
|
185
185
|
this.value = this._maskFormatter.removeMask(this._inputElem.value);
|
|
186
186
|
}
|
|
187
187
|
else {
|
|
@@ -296,6 +296,7 @@ const EzTextInput = class {
|
|
|
296
296
|
//---------------------------------------------
|
|
297
297
|
componentWillLoad() {
|
|
298
298
|
this.observeMask();
|
|
299
|
+
this.forceLabelFloat = !!this.alternativePlaceholder;
|
|
299
300
|
if (this.value) {
|
|
300
301
|
if (this._maskFormatter) {
|
|
301
302
|
try {
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
|
+
const core = require('@sankhyalabs/core');
|
|
7
|
+
|
|
8
|
+
const ezTileMediumCss = ":host{--ez-tile-medium--width:446px;--ez-tile-medium--height:257px;--ez-tile-medium--padding:var(--space--24, 24px);--ez-tile-medium--border-radius:var(--border--radius-16, 16px);--ez-tile-medium--background-color:var(--color--ocean-gray-70, #ffffff);--ez-tile-medium--color:var(--color--ocean-green-900, #003D2D);--ez-tile-medium--icon-color:var(--color--ocean-green-400, #42A58A);--ez-tile-medium--font-family:var(--font-pattern, Arial);--ez-tile-medium--header-gap:var(--space--16, 16px);--ez-tile-medium--icon-line-height:var(--line-height--30, 30px);--ez-tile-medium--tag-group-gap:var(--space--4, 4px);--ez-tile-medium_button--background-color:var(--color--ocean-green-600, #1A9171);--ez-tile-medium_button--color:var(--color--gray-70, #ffffff);--ez-tile-medium_button--hover--background-color:var(--color--ocean-green-700, #00684C);--ez-tile-medium_button--hover-color:var(--color--gray-70, #ffffff);--ez-tile-medium_button--active--background-color:var(--color--ocean-green-500, #1A9171);--ez-tile-medium_button--active-color:var(--color--gray-70, #ffffff)}.tile-medium_container{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;overflow:hidden;outline:none;box-shadow:none;width:var(--ez-tile-medium--custom-width, var(--ez-tile-medium--width));height:var(--ez-tile-medium--custom-height, var(--ez-tile-medium--height));border-radius:var(--ez-tile-medium--border-radius);background-color:var(--ez-tile-medium--background-color);color:var(--ez-tile-medium--color);box-sizing:border-box;padding:var(--ez-tile-medium--padding)}.tile-medium_header{display:flex;flex-direction:row;align-items:flex-start;align-self:stretch;width:100%;gap:var(--ez-tile-medium--header-gap)}.tile-medium_header-image{display:flex;align-items:flex-start;gap:var(--space--10, 10px);flex:1 0 0}.tag_group{display:flex;flex-direction:row;gap:var(--ez-tile-medium--tag-group-gap);flex-wrap:wrap;justify-content:flex-end}.tile-medium_content{display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:var(--space--14, 14px);align-self:stretch}span{font-family:var(--ez-tile-medium--font-family);display:-webkit-box;-webkit-box-orient:vertical;width:100%;overflow:hidden;text-overflow:ellipsis;text-align:left;white-space:pre-wrap;align-self:stretch;font-style:normal}.small_title{color:var(--color--gray-400, #77777A);font-size:var(--font-size--default, 14px);font-weight:var(--font-weight--regular);line-height:var(--line-height--20, 20px);-webkit-line-clamp:var(--ez-tile-medium--small-title--maximum-lines, 1);line-clamp:var(--ez-tile-medium--small-title--maximum-lines,1)}.main_title{color:var(--color--ocean-green-900, #003D2D);font-size:var(--font-size--xxlarge, 22px);font-weight:var(--font-weight--bold);line-height:var(--line-height--32, 32px);-webkit-line-clamp:var(--ez-tile-medium--title--maximum-lines, 1);line-clamp:var(--ez-tile-medium--title--maximum-lines,1)}.description{color:var(--color--ocean-green-900, #003D2D);font-size:var(--font-size--default, 14px);font-weight:var(--font-weight--regular);line-height:var(--line-height--24, 24px);-webkit-line-clamp:var(--ez-tile-medium--description--maximum-lines, 3);line-clamp:var(--ez-tile-medium--description--maximum-lines, 3)}.tile-medium_button{--ez-button--background-color:var(--ez-tile-medium_button--background-color);--ez-button--color:var(--ez-tile-medium_button--color);--ez-button--hover--background-color:var(--ez-tile-medium_button--hover--background-color);--ez-button--hover-color:var(--ez-tile-medium_button--hover-color);--ez-button--active--background-color:var(--ez-tile-medium_button--active--background-color);--ez-button--active-color:var(--ez-tile-medium_button--active-color)}ez-icon{--ez-icon--color:var(--ez-tile-medium--custom-icon-color, var(--ez-tile-medium--icon-color));line-height:var(--ez-tile-medium--icon-line-height)}.green{--ez-tile-medium--background-color:var(--color--ocean-green-90);--ez-tile-medium--icon-color:var(--ez-tile-medium--custom-icon-color, var(--color--ocean-green-500))}.gray{--ez-tile-medium--background-color:var(--color--gray-80);--ez-tile-medium--icon-color:var(--ez-tile-medium--custom-icon-color, var(--color--ocean-green-400))}.red{--ez-tile-medium--background-color:var(--color--red-100);--ez-tile-medium--icon-color:var(--ez-tile-medium--custom-icon-color, var(--color--red-300))}.yellow{--ez-tile-medium--background-color:var(--color--yellow-100);--ez-tile-medium--icon-color:var(--ez-tile-medium--custom-icon-color, var(--color--yellow-400))}";
|
|
9
|
+
|
|
10
|
+
const EzTileMedium = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.color = "default";
|
|
14
|
+
this.iconName = undefined;
|
|
15
|
+
this.iconColor = undefined;
|
|
16
|
+
this.smallTitleText = undefined;
|
|
17
|
+
this.smallTitleMaximumLines = undefined;
|
|
18
|
+
this.titleText = undefined;
|
|
19
|
+
this.titleMaximumLines = undefined;
|
|
20
|
+
this.descriptionText = undefined;
|
|
21
|
+
this.descriptionMaximumLines = undefined;
|
|
22
|
+
this.height = undefined;
|
|
23
|
+
this.width = undefined;
|
|
24
|
+
this.avatarProps = undefined;
|
|
25
|
+
this.buttonProps = undefined;
|
|
26
|
+
this.tags = undefined;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Aplica o foco no botão.
|
|
30
|
+
*/
|
|
31
|
+
async setButtonFocus() {
|
|
32
|
+
var _a;
|
|
33
|
+
if (!this._button)
|
|
34
|
+
return;
|
|
35
|
+
(_a = this._button) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Remove o foco do botão.
|
|
39
|
+
*/
|
|
40
|
+
async setButtonBlur() {
|
|
41
|
+
var _a;
|
|
42
|
+
if (!this._button)
|
|
43
|
+
return;
|
|
44
|
+
(_a = this._button) === null || _a === void 0 ? void 0 : _a.setBlur();
|
|
45
|
+
}
|
|
46
|
+
renderBadges() {
|
|
47
|
+
if (!this.tags || this.tags.length === 0)
|
|
48
|
+
return null;
|
|
49
|
+
return this.tags.slice(0, 3).map((tag, index$1) => (index.h("ez-badge", { id: `tag-${tag.label}`, key: `tag-${index$1}`, label: tag.label, size: 'medium', style: { "--ez-badge--background-color": `var(${tag.color}, #008561)` } })));
|
|
50
|
+
}
|
|
51
|
+
setCustomCSSProperties() {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
const colors = (_b = (_a = this.buttonProps) === null || _a === void 0 ? void 0 : _a.colors) !== null && _b !== void 0 ? _b : {};
|
|
54
|
+
const { background, backgroundHover, backgroundActive, text, textHover, textActive } = colors;
|
|
55
|
+
const customCSSVars = Object.assign({}, this.height && { '--ez-tile-medium--custom-height': `${this.height}` }, this.width && { '--ez-tile-medium--custom-width': `${this.width}` }, this.smallTitleMaximumLines && { '--ez-tile-medium--small-title--maximum-lines': `${this.smallTitleMaximumLines}` }, this.titleMaximumLines && { '--ez-tile-medium--title--maximum-lines': `${this.titleMaximumLines}` }, this.descriptionMaximumLines && { '--ez-tile-medium--description--maximum-lines': `${this.descriptionMaximumLines}` }, this.iconColor && { '--ez-tile-medium--custom-icon-color': `var(${this.iconColor})` }, (background && { "--ez-tile-medium_button--background-color": `var(${background}, #008561)` }), (backgroundHover && { "--ez-tile-medium_button--hover--background-color": `var(${backgroundHover}, #00684C)` }), (backgroundActive && { "--ez-tile-medium_button--active--background-color": `var(${backgroundActive}, #1A9171)` }), (text && { "--ez-tile-medium_button--color": `var(${text}, #ffffff)` }), (textHover && { "--ez-tile-medium_button--hover-color": `var(${textHover}, #ffffff)` }), (textActive && { "--ez-tile-medium_button--active-color": `var(${textActive}, #ffffff)` }));
|
|
56
|
+
return customCSSVars;
|
|
57
|
+
}
|
|
58
|
+
componentDidLoad() {
|
|
59
|
+
this.setCustomCSSProperties();
|
|
60
|
+
if (this._element) {
|
|
61
|
+
core.ElementIDUtils.addIDInfo(this._element);
|
|
62
|
+
}
|
|
63
|
+
if (this._button) {
|
|
64
|
+
const dataInfo = { id: 'embedded' };
|
|
65
|
+
core.ElementIDUtils.addIDInfo(this._button, 'tile-medium_button', dataInfo);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
70
|
+
return (index.h(index.Host, { style: this.setCustomCSSProperties() }, index.h("div", { class: `tile-medium_container ${this.color}` }, index.h("div", { class: `tile-medium_header` }, index.h("div", { class: "tile-medium_header-image" }, this.avatarProps
|
|
71
|
+
? index.h("ez-avatar", { size: "60", name: (_a = this.avatarProps) === null || _a === void 0 ? void 0 : _a.name, imageSrc: (_b = this.avatarProps) === null || _b === void 0 ? void 0 : _b.imageSrc, shape: ((_c = this.avatarProps) === null || _c === void 0 ? void 0 : _c.shape) || "square" })
|
|
72
|
+
: this.iconName && index.h("ez-icon", { size: "x-large", class: "icon", iconName: this.iconName })), index.h("div", { class: `tag_group` }, this.renderBadges())), index.h("div", { class: "tile-medium_content" }, index.h("div", null, this.smallTitleText && index.h("span", { class: "small_title", title: this.smallTitleText }, this.smallTitleText), this.titleText && index.h("span", { class: "main_title", title: this.titleText }, this.titleText), this.descriptionText && index.h("span", { class: "description", title: this.descriptionText }, this.descriptionText)), this.buttonProps &&
|
|
73
|
+
index.h("ez-button", { ref: el => this._button = el, class: "tile-medium_button", label: ((_d = this.buttonProps) === null || _d === void 0 ? void 0 : _d.label) || undefined, enabled: (_f = (_e = this.buttonProps) === null || _e === void 0 ? void 0 : _e.enabled) !== null && _f !== void 0 ? _f : true, mode: (_g = this.buttonProps) === null || _g === void 0 ? void 0 : _g.mode, iconName: (_h = this.buttonProps) === null || _h === void 0 ? void 0 : _h.iconName, size: (_j = this.buttonProps) === null || _j === void 0 ? void 0 : _j.size, onClick: (_k = this.buttonProps) === null || _k === void 0 ? void 0 : _k.onClick })))));
|
|
74
|
+
}
|
|
75
|
+
get _element() { return index.getElement(this); }
|
|
76
|
+
};
|
|
77
|
+
EzTileMedium.style = ezTileMediumCss;
|
|
78
|
+
|
|
79
|
+
exports.ez_tile_medium = EzTileMedium;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
|
+
const core = require('@sankhyalabs/core');
|
|
7
|
+
|
|
8
|
+
const ezTileCss = ":host{--ez-tile--width:120px;--ez-tile--height:80px;--ez-tile--padding:var(--space--12, 12px);--ez-tile--icon--margin-bottom:var(--space--8);--ez-tile--border-radius:var(--border--radius-16, 16px);--ez-tile--background-color:var(--color--gray-70, #ffffff);--ez-tile--color:var(--color--ocean-green-900, #003D2D);--ez-tile--icon-color:var(--color--ocean-green-400, #42A58A);--ez-tile--hover-background-color:var(--color--gray-80, #F9F9F9);--ez-tile--hover-color:var(--color--ocean-green-900, #003D2D);--ez-tile--hover-icon-color:var(--color--ocean-green-400, #42A58A);--ez-tile--focus-visible-border:2px solid var(--color--petroleum-400, #626D80);--ez-tile--font-family:var(--font-pattern, Arial);--ez-tile--font-weight:var(--font-weight--regular, 400);--ez-tile--font-size:var(--font-size--default, 14px);--ez-tile--title-line-height:var(--line-height--20, 20px);--ez-tile--icon-line-height:var(--line-height--24, 24px)}button{display:flex;flex-wrap:wrap;align-content:space-between;overflow:hidden;outline:none;box-shadow:none;width:var(--ez-tile--custom-width, var(--ez-tile--width));height:var(--ez-tile--custom-height, var(--ez-tile--height));border-radius:var(--ez-tile--border-radius);background-color:var(--ez-tile--background-color);color:var(--ez-tile--color);box-sizing:border-box;padding:var(--ez-tile--padding);border:2px solid var(--ez-tile--background-color)}button:focus-visible{border:var(--ez-tile--focus-visible-border)}.medium{--ez-tile--width:var(--ez-tile--custom-width, 120px);--ez-tile--height:var(--ez-tile--custom-height, 170px)}.isInteractive:hover,.isInteractive:focus{--ez-icon--color:var(--ez-tile--hover-icon-color);--ez-tile--background-color:var(--ez-tile--hover-background-color);--ez-tile--color:var(--ez-tile--hover-color);cursor:pointer}span{-webkit-line-clamp:var(--ez-tile--custom-maximum-lines, 1);line-clamp:var(--ez-tile--custom-maximum-lines,1);font-family:var(--ez-tile--font-family);font-weight:var(--ez-tile--font-weight);font-size:var(--ez-tile--font-size);line-height:var(--ez-tile--title-line-height);display:-webkit-box;-webkit-box-orient:vertical;width:100%;overflow:hidden;text-overflow:ellipsis;text-align:left;white-space:pre-wrap}ez-icon{--ez-icon--color:var(--ez-tile--icon-color);margin-bottom:var(--ez-tile--icon--margin-bottom);line-height:var(--ez-tile--icon-line-height)}.isInteractive:hover,.isInteractive:focus{outline:none}.green{--ez-tile--background-color:var(--color--ocean-green-90);--ez-tile--icon-color:var(--color--ocean-green-500)}.isInteractive.green:hover,.isInteractive.green:focus{--ez-tile--hover-background-color:var(--color--ocean-green-100);--ez-tile--icon-color:var(--color--ocean-green-500);outline:none}.gray{--ez-tile--background-color:var(--color--gray-80);--ez-tile--icon-color:var(--color--ocean-green-400)}.isInteractive.gray:hover,.isInteractive.gray:focus{--ez-tile--hover-background-color:var(--color--gray-90);--ez-tile--hover-icon-color:var(--color--ocean-green-400)}.red{--ez-tile--background-color:var(--color--red-100);--ez-tile--icon-color:var(--color--red-300)}.isInteractive.red:hover,.isInteractive.red:focus{--ez-tile--hover-background-color:var(--color--red-200);--ez-tile--hover-icon-color:var(--color--red-300)}.yellow{--ez-tile--background-color:var(--color--yellow-100);--ez-tile--icon-color:var(--color--yellow-400)}.isInteractive.yellow:hover,.isInteractive.yellow:focus{--ez-tile--hover-background-color:var(--color--yellow-200);--ez-tile--hover-icon-color:var(--color--yellow-400)}";
|
|
9
|
+
|
|
10
|
+
const EzTile = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.tileClick = index.createEvent(this, "tileClick", 7);
|
|
14
|
+
this.text = undefined;
|
|
15
|
+
this.size = "small";
|
|
16
|
+
this.height = undefined;
|
|
17
|
+
this.width = undefined;
|
|
18
|
+
this.color = "default";
|
|
19
|
+
this.iconName = "home";
|
|
20
|
+
this.maximumLines = undefined;
|
|
21
|
+
this.isInteractive = false;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Aplica o foco no componente.
|
|
25
|
+
*/
|
|
26
|
+
async setFocus() {
|
|
27
|
+
this._container.focus();
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Remove o foco do componente.
|
|
31
|
+
*/
|
|
32
|
+
async setBlur() {
|
|
33
|
+
this._container.blur();
|
|
34
|
+
}
|
|
35
|
+
clickListener(evt) {
|
|
36
|
+
if (!this.isInteractive) {
|
|
37
|
+
evt.stopImmediatePropagation();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
handleClick() {
|
|
41
|
+
if (this.isInteractive) {
|
|
42
|
+
this.tileClick.emit();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
componentDidRender() {
|
|
46
|
+
if (this._element) {
|
|
47
|
+
core.ElementIDUtils.addIDInfo(this._element);
|
|
48
|
+
}
|
|
49
|
+
if (this._container) {
|
|
50
|
+
const dataInfo = { id: 'embedded' };
|
|
51
|
+
core.ElementIDUtils.addIDInfo(this._container, 'tile-button', dataInfo);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
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}` } : {}));
|
|
56
|
+
return (index.h(index.Host, { style: customStyleVars }, index.h("button", { ref: element => this._container = element, class: `${this.color} ${this.size} ${this.isInteractive ? "isInteractive" : ""}`, onClick: () => this.handleClick() }, index.h("ez-icon", { class: "icon", iconName: this.iconName, size: "large" }), index.h("span", { title: this.text }, this.text))));
|
|
57
|
+
}
|
|
58
|
+
get _element() { return index.getElement(this); }
|
|
59
|
+
};
|
|
60
|
+
EzTile.style = ezTileCss;
|
|
61
|
+
|
|
62
|
+
exports.ez_tile = EzTile;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
|
|
8
|
+
const index$1 = require('./index-040deae3.js');
|
|
8
9
|
|
|
9
10
|
const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}.time__input{height:100%}";
|
|
10
11
|
|
|
@@ -52,7 +53,7 @@ const EzTimeInput = class {
|
|
|
52
53
|
this._viewValue = newValueValidated == undefined ? "" : newValueValidated.toString();
|
|
53
54
|
this.prepareValue(this._viewValue);
|
|
54
55
|
if (this._viewValue && !core.TimeFormatter.validateTime(this._viewValue, this.showSeconds)) {
|
|
55
|
-
this.setError("
|
|
56
|
+
this.setError(this.i18n("ez-time-input.invalidTime"));
|
|
56
57
|
newValueValidated = undefined;
|
|
57
58
|
}
|
|
58
59
|
else {
|
|
@@ -141,15 +142,8 @@ const EzTimeInput = class {
|
|
|
141
142
|
//---------------------------------------------
|
|
142
143
|
// Lifecycle web component
|
|
143
144
|
//---------------------------------------------
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
if (this.autoFocus) {
|
|
147
|
-
requestAnimationFrame(() => {
|
|
148
|
-
this.setFocus({ selectText: true });
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
componentWillLoad() {
|
|
145
|
+
async componentWillLoad() {
|
|
146
|
+
this.i18n = await index$1.initI18n();
|
|
153
147
|
this.observeShowSeconds();
|
|
154
148
|
if (this.value) {
|
|
155
149
|
this.prepareValue(this.value.toString());
|
|
@@ -158,6 +152,14 @@ const EzTimeInput = class {
|
|
|
158
152
|
this.prepareValue(this._viewValue);
|
|
159
153
|
}
|
|
160
154
|
}
|
|
155
|
+
componentDidLoad() {
|
|
156
|
+
CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
157
|
+
if (this.autoFocus) {
|
|
158
|
+
requestAnimationFrame(() => {
|
|
159
|
+
this.setFocus({ selectText: true });
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}
|
|
161
163
|
render() {
|
|
162
164
|
core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
163
165
|
return (index.h(index.Host, null, index.h("ez-text-input", { class: "time__input", "data-element-id": core.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 }, index.h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
|
|
@@ -3,129 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
|
-
const core = require('@sankhyalabs/core');
|
|
7
|
-
const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
|
|
8
6
|
const floatingUi_dom_esm = require('./floating-ui.dom.esm-017acce4.js');
|
|
9
|
-
|
|
10
|
-
const ezFilterInputCss = ":host{display:block;width:100%}";
|
|
11
|
-
|
|
12
|
-
const EzFilterInput = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.ezChange = index.createEvent(this, "ezChange", 7);
|
|
16
|
-
this.ezSearching = index.createEvent(this, "ezSearching", 7);
|
|
17
|
-
this.ezFocusIn = index.createEvent(this, "ezFocusIn", 7);
|
|
18
|
-
this._searchingText = "";
|
|
19
|
-
this.handleFocus = () => {
|
|
20
|
-
if (this._searchingText === "") {
|
|
21
|
-
this._textInput.value = "";
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
this._textInput.value = this._searchingText;
|
|
25
|
-
}
|
|
26
|
-
this.ezFocusIn.emit();
|
|
27
|
-
};
|
|
28
|
-
this.label = undefined;
|
|
29
|
-
this.value = undefined;
|
|
30
|
-
this.enabled = true;
|
|
31
|
-
this.errorMessage = undefined;
|
|
32
|
-
this.restrict = undefined;
|
|
33
|
-
this.mode = "regular";
|
|
34
|
-
this.asyncSearch = false;
|
|
35
|
-
this.canShowError = true;
|
|
36
|
-
this.autoFocus = false;
|
|
37
|
-
}
|
|
38
|
-
observeLabel() {
|
|
39
|
-
if (this._textInput) {
|
|
40
|
-
this._textInput.label = this.label;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
observeErrorMessage() {
|
|
44
|
-
if (this._textInput) {
|
|
45
|
-
this._textInput.errorMessage = this.errorMessage;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
observeValue(newValue, oldValue) {
|
|
49
|
-
if (this._textInput && newValue != oldValue) {
|
|
50
|
-
this._textInput.value = newValue;
|
|
51
|
-
this.ezChange.emit(newValue);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Aplica o foco no campo.
|
|
56
|
-
*/
|
|
57
|
-
async setFocus(options) {
|
|
58
|
-
this._textInput.setFocus(options);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Remove o foco do campo.
|
|
62
|
-
*/
|
|
63
|
-
async setBlur() {
|
|
64
|
-
this._textInput.setBlur();
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Retorna se o conteúdo é inválido.
|
|
68
|
-
*/
|
|
69
|
-
async isInvalid() {
|
|
70
|
-
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Método responsável por setar um novo valor ao campo.
|
|
74
|
-
*/
|
|
75
|
-
async setValue(newValue) {
|
|
76
|
-
if (!this.asyncSearch || this._textInput == undefined) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
if (newValue !== this.value) {
|
|
80
|
-
this.value = newValue;
|
|
81
|
-
this._searchingText = "";
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
this._textInput.value = newValue;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Método responsável por resetar o valor do campo para o ultimo valor inputado.
|
|
89
|
-
*/
|
|
90
|
-
async endSearch() {
|
|
91
|
-
if (!this.asyncSearch || this._textInput == undefined) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
if (this._textInput.value !== this.value) {
|
|
95
|
-
this._textInput.value = this.value;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
handleChange(evt) {
|
|
99
|
-
const newValue = evt.detail;
|
|
100
|
-
this.errorMessage = "";
|
|
101
|
-
if (this.asyncSearch) {
|
|
102
|
-
this._searchingText = newValue;
|
|
103
|
-
this.ezSearching.emit(newValue);
|
|
104
|
-
}
|
|
105
|
-
else if (newValue !== this.value) {
|
|
106
|
-
this.value = newValue;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
componentDidLoad() {
|
|
110
|
-
CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
111
|
-
if (this.autoFocus) {
|
|
112
|
-
requestAnimationFrame(() => {
|
|
113
|
-
this.setFocus({ selectText: true });
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
render() {
|
|
118
|
-
core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
119
|
-
return (index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError }, index.h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
120
|
-
}
|
|
121
|
-
get _elem() { return index.getElement(this); }
|
|
122
|
-
static get watchers() { return {
|
|
123
|
-
"label": ["observeLabel"],
|
|
124
|
-
"errorMessage": ["observeErrorMessage"],
|
|
125
|
-
"value": ["observeValue"]
|
|
126
|
-
}; }
|
|
127
|
-
};
|
|
128
|
-
EzFilterInput.style = ezFilterInputCss;
|
|
7
|
+
const core = require('@sankhyalabs/core');
|
|
129
8
|
|
|
130
9
|
const ezTooltipCss = ":host{--triangle-size:8px;width:100%}.tooltip{position:absolute;z-index:var(--elevation--24);padding:var(--space--extra-small, 3px) var(--space--small, 6px);border-radius:var(--border--radius-small);box-sizing:border-box;font-family:var(--font-pattern\t, 'Roboto', sans-serif);font-size:var(--text--small, 12px);font-weight:var(--text-weight--medium, 400);text-align:center;width:max-content;display:none}.arrow{position:absolute;width:var(--triangle-size);height:var(--triangle-size);transform:rotate(45deg)}.default-tooltip{background:var(--title--primary, #2b3a54);color:var(--color--inverted)}.default-tooltip .arrow{background:var(--title--primary, #2b3a54)}.error-tooltip{background:var(--color-alert--error-800, #BD0025);color:var(--color--error-200, #F7E0E5)}.error-tooltip .arrow{background:var(--color-alert--error-800, #BD0025)}.success-tooltip{background:var(--color--success, #00cb94);color:var(--color--success-200, #EBFFFA)}.success-tooltip .arrow{background:var(--color--success, #00cb94)}.warning-tooltip{background:var(--color--warning, #f2d410);color:var(--color--warning-200, #FDF8D8)}.warning-tooltip .arrow{background:var(--color--warning, #f2d410)}";
|
|
131
10
|
|
|
@@ -253,5 +132,4 @@ const EzTooltip = class {
|
|
|
253
132
|
};
|
|
254
133
|
EzTooltip.style = ezTooltipCss;
|
|
255
134
|
|
|
256
|
-
exports.ez_filter_input = EzFilterInput;
|
|
257
135
|
exports.ez_tooltip = EzTooltip;
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
+
const index$1 = require('./index-040deae3.js');
|
|
7
8
|
|
|
8
9
|
const ICON_EXPANDED = "chevron-down";
|
|
9
10
|
const ICON_COLAPSED = "chevron-right";
|
|
@@ -243,6 +244,12 @@ class Tree extends Node {
|
|
|
243
244
|
resolve();
|
|
244
245
|
});
|
|
245
246
|
}
|
|
247
|
+
setAllChildrenVisible(node) {
|
|
248
|
+
node.children.forEach(child => {
|
|
249
|
+
child.visible = true;
|
|
250
|
+
this.setAllChildrenVisible(child);
|
|
251
|
+
});
|
|
252
|
+
}
|
|
246
253
|
applyFilter(node) {
|
|
247
254
|
node.children.forEach((value) => {
|
|
248
255
|
this.applyFilter(value);
|
|
@@ -254,6 +261,7 @@ class Tree extends Node {
|
|
|
254
261
|
let isVisible = false;
|
|
255
262
|
if (normalizedLabel.includes(this._filterPattern)) {
|
|
256
263
|
isVisible = true;
|
|
264
|
+
this.setAllChildrenVisible(node);
|
|
257
265
|
}
|
|
258
266
|
else {
|
|
259
267
|
const childrenArray = Array.from(node.children.values());
|
|
@@ -559,6 +567,9 @@ const EzTree = class {
|
|
|
559
567
|
this._tree.load(this.items);
|
|
560
568
|
}
|
|
561
569
|
}
|
|
570
|
+
async componentWillLoad() {
|
|
571
|
+
this.i18n = await index$1.initI18n();
|
|
572
|
+
}
|
|
562
573
|
componentWillRender() {
|
|
563
574
|
var _a;
|
|
564
575
|
if (!this.selectedId || ((_a = this.value) === null || _a === void 0 ? void 0 : _a.id) === this.selectedId) {
|
|
@@ -576,7 +587,7 @@ const EzTree = class {
|
|
|
576
587
|
}
|
|
577
588
|
this._visibleItems = [];
|
|
578
589
|
return (index.h(index.Host, { tabindex: "-1" }, this._waintingForLoad ?
|
|
579
|
-
index.h("label", null, "
|
|
590
|
+
index.h("label", null, this.i18n("app.loading"), "...")
|
|
580
591
|
:
|
|
581
592
|
this._tree.getChildren().map(node => {
|
|
582
593
|
var _a;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
|
+
const core = require('@sankhyalabs/core');
|
|
7
|
+
|
|
8
|
+
const ezUnderfaceCss = ":host{--ez-underface--width:693px;--ez-underface--height:247px;--ez-underface--padding:var(--space--24, 24px);--ez-underface--border-radius:var(--border--radius-26, 26px)}div{width:var(--ez-underface--custom-width, var(--ez-underface--width));height:var(--ez-underface--custom-height, var(--ez-underface--height));border-radius:var(--ez-underface--border-radius);padding:var(--ez-underface--padding);display:block;overflow:hidden;outline:none;box-shadow:none;border:none;box-sizing:border-box;background-color:var(--ez-underface--custom-background-color, var(--color--petroleum-700, #222D42))}.light-green{background-color:var(--ez-underface--custom-background-color, var(--color--ocean-green-90))}.green{background-color:var(--ez-underface--custom-background-color, var(--color--green-600))}.light-gray{background-color:var(--ez-underface--custom-background-color, var(--color--gray-80))}.dark-petroleum{background-color:var(--ez-underface--custom-background-color, var(--color--petroleum-900))}.ocean-green{background-color:var(--ez-underface--custom-background-color, var(--color--ocean-green-600))}";
|
|
9
|
+
|
|
10
|
+
const EzUnderface = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.color = "default";
|
|
14
|
+
this.customColor = undefined;
|
|
15
|
+
this.height = undefined;
|
|
16
|
+
this.width = undefined;
|
|
17
|
+
}
|
|
18
|
+
componentDidRender() {
|
|
19
|
+
if (this._element) {
|
|
20
|
+
core.ElementIDUtils.addIDInfo(this._element);
|
|
21
|
+
}
|
|
22
|
+
if (this._container) {
|
|
23
|
+
const dataInfo = { id: 'container' };
|
|
24
|
+
core.ElementIDUtils.addIDInfo(this._container, 'underface', dataInfo);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const customStyleVars = Object.assign({}, this.customColor && { '--ez-underface--custom-background-color': `var(${this.customColor})` }, this.height && { '--ez-underface--custom-height': `${this.height}px` }, this.width && { '--ez-underface--custom-width': `${this.width}px` });
|
|
29
|
+
return (index.h(index.Host, { style: customStyleVars }, index.h("div", { ref: element => this._container = element, class: `underface_container ${this.color}` }, index.h("slot", null))));
|
|
30
|
+
}
|
|
31
|
+
get _element() { return index.getElement(this); }
|
|
32
|
+
};
|
|
33
|
+
EzUnderface.style = ezUnderfaceCss;
|
|
34
|
+
|
|
35
|
+
exports.ez_underface = EzUnderface;
|