@sankhyalabs/ezui 6.4.0-dev.8 → 6.4.0-ms.2
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-c1310a36.js → ApplicationUtils-6a76ac09.js} +1 -1
- package/dist/cjs/{app-globals-701e1cea.js → app-globals-cdb08d04.js} +2 -4
- package/dist/cjs/ez-actions-button.cjs.entry.js +3 -3
- package/dist/cjs/ez-alert-list.cjs.entry.js +2 -2
- 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 +2 -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 +27 -97
- package/dist/cjs/ez-calendar.cjs.entry.js +2 -2
- package/dist/cjs/{ez-card-item.cjs.entry.js → ez-card-item_2.cjs.entry.js} +206 -1
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-input.cjs.entry.js +10 -27
- package/dist/cjs/ez-classic-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -3
- package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +4 -4
- package/dist/cjs/ez-combo-box.cjs.entry.js +3 -3
- package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ez-double-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ez-empty-card.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +2 -2
- package/dist/cjs/ez-form.cjs.entry.js +4 -4
- package/dist/cjs/ez-grid.cjs.entry.js +5 -23
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +2 -2
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +2 -2
- package/dist/cjs/ez-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
- package/dist/cjs/ez-modal.cjs.entry.js +2 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +3 -3
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -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 +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search-plus.cjs.entry.js +3 -3
- package/dist/cjs/ez-search-result-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-search.cjs.entry.js +3 -3
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
- package/dist/cjs/ez-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ez-sortable-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +3 -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-tag.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-tile-medium.cjs.entry.js +1 -1
- package/dist/cjs/ez-tile.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +2 -37
- package/dist/cjs/ez-underface.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +3 -3
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +4 -4
- package/dist/cjs/filter-column.cjs.entry.js +2 -2
- package/dist/cjs/{index-b1103222.js → index-425b1f67.js} +0 -21
- package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +4 -27
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{search-column-eea0291e.js → search-column-78dd20d5.js} +3 -3
- package/dist/collection/collection-manifest.json +0 -4
- package/dist/collection/components/ez-button/ez-button.css +80 -292
- package/dist/collection/components/ez-button/ez-button.js +29 -226
- package/dist/collection/components/ez-classic-input/ez-classic-input.css +0 -29
- package/dist/collection/components/ez-classic-input/ez-classic-input.js +8 -42
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +2 -3
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
- package/dist/collection/components/ez-tree/ez-tree.js +0 -44
- package/dist/collection/components/ez-tree/types/Tree.js +0 -23
- package/dist/collection/global/app-init.js +1 -3
- package/dist/collection/utils/i18n/locales/en-us.js +0 -7
- package/dist/collection/utils/i18n/locales/es-es.js +0 -7
- package/dist/collection/utils/i18n/locales/pt-br.js +0 -7
- package/dist/custom-elements/index.d.ts +0 -24
- package/dist/custom-elements/index.js +41 -597
- package/dist/esm/{ApplicationUtils-bda1789e.js → ApplicationUtils-1fd662ab.js} +1 -1
- package/dist/esm/{app-globals-bbd79783.js → app-globals-8c57b015.js} +2 -4
- package/dist/esm/ez-actions-button.entry.js +3 -3
- package/dist/esm/ez-alert-list.entry.js +2 -2
- 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 +2 -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 +27 -97
- package/dist/esm/ez-calendar.entry.js +2 -2
- package/dist/esm/{ez-card-item.entry.js → ez-card-item_2.entry.js} +206 -2
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-classic-input.entry.js +10 -27
- package/dist/esm/ez-classic-text-area.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +3 -3
- package/dist/esm/ez-combo-box-list_4.entry.js +4 -4
- package/dist/esm/ez-combo-box.entry.js +3 -3
- package/dist/esm/ez-date-input.entry.js +2 -2
- package/dist/esm/ez-date-time-input.entry.js +2 -2
- package/dist/esm/ez-dialog.entry.js +2 -2
- package/dist/esm/ez-double-list.entry.js +2 -2
- package/dist/esm/ez-dropdown.entry.js +1 -1
- package/dist/esm/ez-empty-card.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +2 -2
- package/dist/esm/ez-filter-input.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +2 -2
- package/dist/esm/ez-form.entry.js +4 -4
- package/dist/esm/ez-grid.entry.js +5 -23
- package/dist/esm/ez-guide-navigator.entry.js +2 -2
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +2 -2
- package/dist/esm/ez-list.entry.js +2 -2
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +2 -2
- package/dist/esm/ez-modal.entry.js +2 -2
- package/dist/esm/ez-multi-selection-list.entry.js +3 -3
- package/dist/esm/ez-number-input.entry.js +2 -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 +1 -1
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search-plus.entry.js +3 -3
- package/dist/esm/ez-search-result-list.entry.js +2 -2
- package/dist/esm/ez-search.entry.js +3 -3
- package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
- package/dist/esm/ez-skeleton.entry.js +2 -2
- package/dist/esm/ez-sortable-list.entry.js +2 -2
- package/dist/esm/ez-split-button.entry.js +2 -2
- package/dist/esm/ez-split-item.entry.js +3 -3
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-tag.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-tile-medium.entry.js +1 -1
- package/dist/esm/ez-tile.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +2 -37
- package/dist/esm/ez-underface.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +3 -3
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +5 -5
- package/dist/esm/filter-column.entry.js +2 -2
- package/dist/esm/{index-d5042cb2.js → index-498e0126.js} +1 -22
- package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +5 -27
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{search-column-1bc0a10b.js → search-column-729f3655.js} +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-95de3211.entry.js → p-02e1efa8.entry.js} +1 -1
- package/dist/ezui/{p-558c5a72.entry.js → p-0c1a288c.entry.js} +1 -1
- package/dist/ezui/p-1bcfd88c.entry.js +1 -0
- package/dist/ezui/{p-86919f02.entry.js → p-1e21d31b.entry.js} +1 -1
- 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-cf33bc48.entry.js → p-20c024f7.entry.js} +1 -1
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/{p-813ec0b6.entry.js → p-24732fea.entry.js} +1 -1
- package/dist/ezui/{p-1365e47d.entry.js → p-2879c45f.entry.js} +1 -1
- package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
- package/dist/ezui/p-2d080bdc.entry.js +1 -0
- package/dist/ezui/{p-56d078e3.entry.js → p-31450a28.entry.js} +1 -1
- package/dist/ezui/{p-7199eff7.entry.js → p-39b16566.entry.js} +1 -1
- package/dist/ezui/{p-5d6eebd7.entry.js → p-3cecb4cb.entry.js} +1 -1
- package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/{p-40692a38.entry.js → p-451a17ad.entry.js} +1 -1
- package/dist/ezui/{p-570cf58a.entry.js → p-48effc69.entry.js} +1 -1
- package/dist/ezui/{p-e88ebd3d.entry.js → p-4c5cb0da.entry.js} +1 -1
- package/dist/ezui/{p-4a876b8b.entry.js → p-4d30b703.entry.js} +1 -1
- package/dist/ezui/{p-3c087451.entry.js → p-4e6e0740.entry.js} +1 -1
- package/dist/ezui/{p-2532755e.entry.js → p-5172793a.entry.js} +1 -1
- package/dist/ezui/{p-35387e50.entry.js → p-52d9b604.entry.js} +1 -1
- package/dist/ezui/{p-7077d357.entry.js → p-53bc30a1.entry.js} +1 -1
- package/dist/ezui/{p-b038e8e0.entry.js → p-559b915a.entry.js} +1 -1
- package/dist/ezui/{p-54aa1b62.entry.js → p-57b40333.entry.js} +2 -2
- package/dist/ezui/{p-3805fcec.entry.js → p-5ac7c4b3.entry.js} +1 -1
- package/dist/ezui/{p-d5af382e.entry.js → p-5b9060ad.entry.js} +1 -1
- package/dist/ezui/{p-52898743.entry.js → p-5dd12c80.entry.js} +1 -1
- package/dist/ezui/p-5e495d47.entry.js +1 -0
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/{p-3234f883.entry.js → p-603ef267.entry.js} +1 -1
- package/dist/ezui/{p-8e3dce8d.entry.js → p-60f5483c.entry.js} +1 -1
- package/dist/ezui/{p-51e34317.entry.js → p-6369a0cd.entry.js} +1 -1
- package/dist/ezui/{p-89c1529a.entry.js → p-66b00dec.entry.js} +1 -1
- package/dist/ezui/{p-0b531233.entry.js → p-6d596a5a.entry.js} +1 -1
- package/dist/ezui/{p-84260094.entry.js → p-762a1033.entry.js} +1 -1
- package/dist/ezui/p-76ad2e26.js +1 -0
- package/dist/ezui/{p-ea053063.entry.js → p-79044c3e.entry.js} +1 -1
- package/dist/ezui/{p-f45afc64.entry.js → p-7aed8d32.entry.js} +1 -1
- package/dist/ezui/{p-ef33aaac.js → p-7e5c7b4c.js} +1 -1
- package/dist/ezui/{p-e195eaad.entry.js → p-7f792043.entry.js} +1 -1
- package/dist/ezui/{p-b7f8f8ec.entry.js → p-82fa431b.entry.js} +1 -1
- package/dist/ezui/p-86b065e6.entry.js +1 -0
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/{p-78e975b4.entry.js → p-91c9d50e.entry.js} +1 -1
- package/dist/ezui/{p-05e68ab3.entry.js → p-93e1c917.entry.js} +1 -1
- package/dist/ezui/{p-968e52c7.entry.js → p-94630d41.entry.js} +1 -1
- package/dist/ezui/{p-18e71523.entry.js → p-9c5cd3b2.entry.js} +1 -1
- package/dist/ezui/{p-239247da.js → p-9dc31fc6.js} +1 -1
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/{p-f26b97e9.entry.js → p-a3ada561.entry.js} +1 -1
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/{p-cb46afc5.js → p-af47458b.js} +1 -1
- package/dist/ezui/{p-62641d1c.entry.js → p-bc22f56d.entry.js} +1 -1
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- package/dist/ezui/{p-f562f533.entry.js → p-c2d38fbf.entry.js} +1 -1
- package/dist/ezui/{p-c96e536d.entry.js → p-d2645bdf.entry.js} +1 -1
- package/dist/ezui/{p-62f8ae4b.entry.js → p-d512cb84.entry.js} +1 -1
- package/dist/ezui/{p-9b88612e.entry.js → p-d845fa56.entry.js} +1 -1
- package/dist/ezui/p-d8cc640d.entry.js +1 -0
- package/dist/ezui/{p-11654eec.entry.js → p-da4419a6.entry.js} +1 -1
- package/dist/ezui/{p-5f4a66ec.entry.js → p-dee18824.entry.js} +1 -1
- package/dist/ezui/{p-bdde0db4.entry.js → p-e20ad35d.entry.js} +1 -1
- package/dist/ezui/{p-edb7a3b6.entry.js → p-e5e623d9.entry.js} +1 -1
- package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
- package/dist/ezui/p-e78e87f5.entry.js +1 -0
- package/dist/ezui/{p-e9b409c1.entry.js → p-e7a7c594.entry.js} +1 -1
- package/dist/ezui/{p-6133b731.entry.js → p-ec04285e.entry.js} +1 -1
- package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
- package/dist/ezui/{p-1cebeb65.entry.js → p-fcdc7d0b.entry.js} +1 -1
- package/dist/types/components/ez-button/ez-button.d.ts +2 -48
- package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +0 -7
- package/dist/types/components/ez-tree/ez-tree.d.ts +0 -8
- package/dist/types/components/ez-tree/types/Tree.d.ts +0 -3
- package/dist/types/components.d.ts +22 -354
- package/dist/types/utils/i18n/locales/en-us.d.ts +0 -7
- package/dist/types/utils/i18n/locales/es-es.d.ts +0 -7
- package/dist/types/utils/i18n/locales/pt-br.d.ts +0 -7
- package/dist/types/utils/i18n/translations.d.ts +0 -21
- package/package.json +3 -4
- package/react/components.d.ts +0 -4
- package/react/components.js +0 -4
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-classic-combo-box.cjs.entry.js +0 -322
- package/dist/cjs/ez-list-item.cjs.entry.js +0 -22
- package/dist/cjs/ez-popover-core.cjs.entry.js +0 -211
- package/dist/cjs/ez-progress-bar.cjs.entry.js +0 -32
- package/dist/cjs/ez-spinner.cjs.entry.js +0 -34
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +0 -99
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +0 -796
- package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js +0 -1
- package/dist/collection/components/ez-list-item/ez-list-item.css +0 -61
- package/dist/collection/components/ez-list-item/ez-list-item.js +0 -78
- package/dist/collection/components/ez-progress-bar/ez-progress-bar.css +0 -72
- package/dist/collection/components/ez-progress-bar/ez-progress-bar.js +0 -88
- package/dist/collection/components/ez-spinner/ez-spinner.css +0 -76
- package/dist/collection/components/ez-spinner/ez-spinner.js +0 -57
- package/dist/collection/utils/ag-grid-license.js +0 -20
- package/dist/esm/ez-classic-combo-box.entry.js +0 -318
- package/dist/esm/ez-list-item.entry.js +0 -18
- package/dist/esm/ez-popover-core.entry.js +0 -207
- package/dist/esm/ez-progress-bar.entry.js +0 -28
- package/dist/esm/ez-spinner.entry.js +0 -30
- package/dist/ezui/p-06ed5e57.entry.js +0 -1
- package/dist/ezui/p-14d6aeb8.entry.js +0 -1
- package/dist/ezui/p-1723f728.entry.js +0 -1
- package/dist/ezui/p-6cb15024.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-770cf2b8.entry.js +0 -1
- package/dist/ezui/p-9bcfa689.entry.js +0 -1
- package/dist/ezui/p-a9432878.entry.js +0 -1
- package/dist/ezui/p-c2b43a66.entry.js +0 -1
- package/dist/ezui/p-d02b0ab2.entry.js +0 -1
- package/dist/ezui/p-d3779449.entry.js +0 -1
- package/dist/ezui/p-fac16755.js +0 -1
- package/dist/ezui/p-fd5ba9c6.entry.js +0 -1
- package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +0 -114
- package/dist/types/components/ez-classic-combo-box/interfaces/IOption.d.ts +0 -4
- package/dist/types/components/ez-list-item/ez-list-item.d.ts +0 -9
- package/dist/types/components/ez-progress-bar/ez-progress-bar.d.ts +0 -11
- package/dist/types/components/ez-spinner/ez-spinner.d.ts +0 -10
- package/dist/types/utils/ag-grid-license.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const DialogType = require('./DialogType-2114c337.js');
|
|
4
|
-
const index = require('./index-
|
|
4
|
+
const index = require('./index-425b1f67.js');
|
|
5
5
|
|
|
6
6
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
7
7
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-425b1f67.js');
|
|
4
4
|
|
|
5
5
|
async function initializeApp() {
|
|
6
6
|
await index.initI18n();
|
|
7
|
-
|
|
8
|
-
console.log('Global initialization ez-ui completed!');
|
|
9
|
-
}
|
|
7
|
+
console.log('Global initialization ez-ui completed!');
|
|
10
8
|
}
|
|
11
9
|
|
|
12
10
|
const globalScripts = initializeApp;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
require('./ApplicationUtils-
|
|
7
|
+
require('./ApplicationUtils-6a76ac09.js');
|
|
8
8
|
const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
|
|
9
9
|
require('./DialogType-2114c337.js');
|
|
10
10
|
require('./CheckMode-ecb90b87.js');
|
|
11
|
-
require('./index-
|
|
11
|
+
require('./index-425b1f67.js');
|
|
12
12
|
require('./FormLayout-18853e70.js');
|
|
13
13
|
|
|
14
14
|
const ezActionsButtonCss = ":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px);--ez-button--border:none}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none;--ez-button--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const index$1 = require('./index-
|
|
7
|
+
const index$1 = require('./index-425b1f67.js');
|
|
8
8
|
|
|
9
9
|
const ezAlertListCss = ":host {\n display: flex;\n\n /* Alert List */\n \n /*@doc Define a largura da lista minimizado */\n --ez-alert-list__container--width: 680px;\n /*@doc Define a altura da lista minimizado */\n --ez-alert-list__container--height: 220px;\n \n /*@doc Define a largura da lista maximizada */\n --ez-alert-list__container--width--expanded: 920px;\n /*@doc Define a altura da lista maximizada */\n --ez-alert-list__container--height--expanded: 540px;\n\n /* Title */\n /*@doc Define a fonte do título do componente */\n --ez-alert-list__title--font-family: var(--font-pattern, \"Roboto\");\n /*@doc Define o tamanho da fonte do título do popup.*/\n --ez-alert-list__title--font-size: var(--title--large, 20px);\n /*@doc Define a cor da fonte do título do popup.*/\n --ez-alert-list__title--color: var(--title--primary, #2b3a54);\n /*@doc Define o peso da fonte do título do popup.*/\n --ez-alert-list__title--font-weight: var(--text-weight--extra-large, 700);\n\n /* @doc Define a borda inferior do item da lista. */\n --ez-list__item--border-bottom: var(--border--small, 1px solid);\n\n /* @doc Define a cor da borda inferior do item da lista. */\n --ez-list__item--border-bottom-color: var(--color--strokes, #DCE0E8);\n\n /* @doc Define o tipo da quebra de linha do item da lista. */\n --ez-list__item--white-space: break-space;\n}\n\n.alert-list__content {\n display: flex;\n flex-direction: column;\n \n gap: var(--space--xs);\n margin: var(--space--large, 24px);\n width: 100%;\n}\n\n.alert-list__container {\n z-index: var(--ez-elevation--8, 8);\n display: flex;\n height: var(--ez-alert-list__container--height);\n width: var(--ez-alert-list__container--width);\n border-radius: var(--border--radius-medium);\n background-color: var(--background--xlight);\n box-shadow: var(--shadow--medium);\n\n &.expanded {\n height: var(--ez-alert-list__container--height--expanded);\n width: var(--ez-alert-list__container--width--expanded);\n }\n\n @media (max-height: 640px) {\n max-height: calc(100vh - var(--space--3xl));\n } \n}\n\n.alert-list__header {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.alert-list__title {\n font-family: var(--ez-alert-list__title--font-family);\n font-size: var(--ez-alert-list__title--font-size);\n font-weight: var(--ez-alert-list__title--font-weight);\n color: var(--ez-alert-list__title--color);\n}\n\n.alert-list__header__buttons {\n display: flex;\n gap: var(--space--xs);\n}\n\n.alert-list__expandable-content {\n overflow-y: auto;\n scrollbar-width: thin;\n}\n\n";
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezAlertCss = ":host{--ez-alert-alert-container--padding-up-down:var(--space--small, 6px);--ez-alert-alert-container--padding-right-left:var(--space--medium, 12px);--ez-alert-alert-container--gap:var(--space--medium, 12px);--ez-alert-alert-container--border-radius:var(--border--radius-medium, 12px);--ez-alert-alert-container--font-color-warn:var(--color--alert-warning-900, #8C6B00);--ez-alert-alert-container--icon-warn:var(--color--alert-warning-900, #8C6B00);--ez-alert-alert-container--background-color-warn:var(--color--alert-warning-200, #FFF7D5);--ez-alert-alert-container--font-color-critical:var(--color--alert-error, #BD0025);--ez-alert-alert-container--icon-critical:var(--color--alert-error, #BD0025);--ez-alert-alert-container--background-color-critical:var(--color--alert-error-200, #F7E0E5);--ez-alert-alert-container--font-color-success:var(--color--alert-success, #157A00);--ez-alert-alert-container--icon-success:var(--color--alert-success, #157A00);--ez-alert-alert-container--background-color-success:var(--color--alert-success-200, #E7F6E0);font-size:var(--text--small, 12px);font-family:var(--font-pattern, \"Roboto\");width:100%;hyphens:auto;display:block}.alert-container{display:flex;align-items:center;gap:var(--ez-alert-alert-container--gap);padding:var(--ez-alert-alert-container--padding-up-down) var(--ez-alert-alert-container--padding-right-left);border-radius:var(--ez-alert-alert-container--border-radius)}.warn{background-color:var(--ez-alert-alert-container--background-color-warn);color:var(--ez-alert-alert-container--font-color-warn)}.critical{background-color:var(--ez-alert-alert-container--background-color-critical);color:var(--ez-alert-alert-container--font-color-critical)}.success{background-color:var(--ez-alert-alert-container--background-color-success);color:var(--ez-alert-alert-container--font-color-success)}ez-icon{--ez-icon--color:inherit}.alert-container__icon-warn{--ez-icon--color:var(--ez-alert-alert-container--icon-warn)}.alert-container__icon-critical{--ez-icon--color:var(--ez-alert-alert-container--icon-critical)}.alert-container__icon-success{--ez-icon--color:var(--ez-alert-alert-container--icon-success)}";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index$1 = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
|
+
const index$1 = require('./index-425b1f67.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
|
|
9
9
|
const ezAvatarCss = ":host{--ez-avatar--background-color:var(--color--ocean-green-600, #008561);--ez-avatar--color:var(--color--gray-70, #fff);--ez-avatar--border-radius-circle:50%;--ez-avatar--border-radius-square:25%;--ez-avatar--background-color-hover:var(--color--ocean-green-700, #00684C)}button,figure{display:flex;align-items:center;justify-content:center;border:var(--ez-avatar--border);background-color:var(--ez-avatar--background-color);color:var(--ez-avatar--color);font-weight:var(--font-weight--medium, 500);font-family:var(--font-pattern, 'Roboto');transition:background-color 0.2s linear, color 0.2s linear;margin:0;padding:0}button:hover{cursor:pointer;background-color:var(--ez-avatar--background-color-hover)}.avatar--320{--avatar-size:320px;width:20rem;height:20rem}.avatar--300{--avatar-size:300px;width:18.75rem;height:18.75rem}.avatar--280{--avatar-size:280px;width:17.5rem;height:17.5rem}.avatar--260{--avatar-size:260px;width:16.25rem;height:16.25rem}.avatar--240{--avatar-size:240px;width:15rem;height:15rem}.avatar--220{--avatar-size:220px;width:13.75rem;height:13.75rem}.avatar--200{--avatar-size:200px;width:12.5rem;height:12.5rem}.avatar--180{--avatar-size:180px;width:11.25rem;height:11.25rem}.avatar--160{--avatar-size:160px;width:10rem;height:10rem}.avatar--140{--avatar-size:140px;width:8.75rem;height:8.75rem}.avatar--120{--avatar-size:120px;width:7.5rem;height:7.5rem}.avatar--100{--avatar-size:100px;width:6.25rem;height:6.25rem}.avatar--80{--avatar-size:80px;width:5rem;height:5rem}.avatar--60{--avatar-size:60px;width:3.75rem;height:3.75rem}.avatar-initial{font-size:calc(0.375 * var(--avatar-size));}.avatar--circle{border-radius:var(--ez-avatar--border-radius-circle)}.avatar--square{border-radius:var(--ez-avatar--border-radius-square)}.avatar-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar--has-image{background-color:transparent}ez-icon{--ez-icon--color:var(--color--gray-70, #fff);font-weight:var(--font-weight--medium, 500)}";
|
|
@@ -2,61 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
|
-
const ezButtonCss = ":host{--ez-button--min-width:50px;--ez-button--width:auto;--ez-button--height:var(--space--42, 42px);--ez-button--padding-top:var(--space--0, 0px);--ez-button--padding-bottom:var(--space--0, 0px);--ez-button--padding-right:var(--space--12, 12px);--ez-button--padding-left:var(--space--12, 12px);--ez-button--icon--gap:var(--space--8, 8px);--ez-button--color:var(--color--ocean-green-600, #008561);--ez-button--label-icon--color:var(--color--ocean-green-500, #1A9171);--ez-button--label-icon--hover-color:var(--color--ocean-green-700, #00684C);--ez-button--label-icon--disabled-color:var(--color--gray-400);--ez-button--left-icon--color:var(--color--ocean-green-600, #008561);--ez-button--right-icon--color:var(--color--ocean-green-600, #008561);--ez-button--left-icon--hover-color:var(--color--ocean-green-600, #008561);--ez-button--right-icon--hover-color:var(--color--ocean-green-600, #008561);--ez-button--left-icon--disabled-color:var(--color--gray-300, #A4A5A7);--ez-button--right-icon--disabled-color:var(--color--gray-300, #A4A5A7);--ez-button--font-size:var(--font-size--default, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--font-weight--medium, 500);--ez-button--background-color:var(--color--gray-70, #ffffff);--ez-button--border-radius:var(--border--radius--24, 24px);--ez-button--border:1px solid var(--color--gray-90, #EAEAEA);--ez-button--hover--border:1px solid var(--color--gray-90, #EAEAEA);--ez-button--justify-content:center;--ez-button--hover-color:var(--color--ocean-green-600, #008561);--ez-button--hover--background-color:var(--color--gray-80, #F9F9F9);--ez-button--disabled-color:var(--color--gray-400, #77777A);--ez-button--disabled--background-color:var(--color--gray-80, #F9F9F9);--ez-button--disabled--border:1px solid var(--color--gray-200, #A4A5A7);--ez-button--disabled-icon-color:var(--color--gray-400, #D2D2D3);--ez-button--link-color:var(--color--ocean-green-600, #008561);--ez-button--link--hover-color:var(--color--primary-700, #1C1D22);--ez-button--link-disabled-color:var(--color--gray-400, #77777A);--ez-button--link--small--font-size:var(--font-size--small, 12px);--ez-button--link--medium--font-size:var(--font-size--default, 14px);--ez-button--link--large--font-size:var(--font-size--medium, 16px);display:flex;width:fit-content}:host(.ez-button--primary){--ez-button--color:var(--color--gray-70);--ez-button--background-color:var(--color--ocean-green-500);--ez-button--font-weight:var(--font-weight--regular);--ez-button--left-icon--color:var(--color--gray-70);--ez-button--right-icon--color:var(--color--gray-70);--ez-button--border:1px solid var(--color--ocean-green-500);--ez-button--hover-color:var(--color--gray-70);--ez-button--hover--background-color:var(--color--ocean-green-700);--ez-button--hover--border:1px solid var(--color--ocean-green-700);--ez-button--left-icon--hover-color:var(--color--gray-70);--ez-button--right-icon--hover-color:var(--color--gray-70);--ez-button--disabled-color:var(--color--gray-70);--ez-button--disabled--background-color:var(--color--gray-400);--ez-button--disabled--border:1px solid var(--color--gray-400);--ez-button--disabled-icon-color:var(--color--gray-200);--ez-button--left-icon--disabled-color:var(--color--gray-200);--ez-button--right-icon--disabled-color:var(--color--gray-200)}:host(.ez-button--secondary){--ez-button--color:var(--color--ocean-green-600);--ez-button--background-color:var(--color--gray-70);--ez-button--border:1px solid var(--color--gray-90);--ez-button--left-icon--color:var(--color--ocean-green-600);--ez-button--right-icon--color:var(--color--ocean-green-600);--ez-button--hover-color:var(--color--ocean-green-600);--ez-button--hover--background-color:var(--color--gray-80);--ez-button--hover--border:1px solid var(--color--gray-90);--ez-button--left-icon--hover-color:var(--color--ocean-green-600);--ez-button--right-icon--hover-color:var(--color--ocean-green-600);--ez-button--disabled-color:var(--color--gray-400);--ez-button--disabled--background-color:var(--color--gray-80);--ez-button--disabled--border:1px solid var(--color--gray-200);--ez-button--disabled-icon-color:var(--color--gray-400);--ez-button--left-icon--disabled-color:var(--color--gray-300);--ez-button--right-icon--disabled-color:var(--color--gray-300)}:host(.ez-button--tertiary){--ez-button--color:var(--color--ocean-green-600);--ez-button--background-color:transparent;--ez-button--font-weight:var(--font-weight--regular);--ez-button--border:none;--ez-button--left-icon--color:var(--color--ocean-green-600);--ez-button--right-icon--color:var(--color--ocean-green-600);--ez-button--hover-color:var(--color--ocean-green-800);--ez-button--hover--background-color:transparent;--ez-button--hover--border:none;--ez-button--left-icon--hover-color:var(--color--ocean-green-800);--ez-button--right-icon--hover-color:var(--color--ocean-green-800);--ez-button--disabled-color:var(--color--gray-400);--ez-button--disabled--background-color:transparent;--ez-button--disabled--border:transparent;--ez-button--disabled-icon-color:var(--color--gray-200);--ez-button--left-icon--disabled-color:var(--color--gray-200);--ez-button--right-icon--disabled-color:var(--color--gray-200)}:host(.ez-button--link--primary){color:var(--color--primary);fill:var(--color--primary)}button{position:relative;display:flex;align-items:center;outline:0;border:0;margin:0;padding:0;cursor:pointer;transition:background-color 0.2s linear, transform 0.15s ease;white-space:nowrap;box-sizing:border-box;overflow:hidden;transform:scale(1);min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);gap:var(--ez-button--icon--gap);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button.pressed{transform:scale(0.98)}button.btn-icon{transition:background-color 0.2s linear, transform 0.15s ease;transform:scale(1)}button.btn-icon.pressed{transform:scale(0.95)}button:disabled,button[aria-disabled]{transform:scale(1) !important}.ripple{position:absolute;width:20px;height:20px;border-radius:50%;background:rgba(255, 255, 255, 0.3);pointer-events:none;transform:scale(0);animation:ripple-animation 0.6s linear;z-index:0}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}:host .ripple,:host(.ez-button--secondary) .ripple{background:rgba(0, 133, 97, 0.2)}:host(.ez-button--primary) .ripple{background:rgba(255, 255, 255, 0.3)}:host(.ez-button--tertiary) .ripple{background:rgba(0, 133, 97, 0.15)}button>*:not(.ripple){position:relative;z-index:1}button:disabled .ripple,button[aria-disabled] .ripple{display:none}button:hover{background-color:var(--ez-button--hover--background-color);border:var(--ez-button--hover--border);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button[aria-disabled]:active,button:disabled:active,button[aria-disabled]:hover,button:disabled:hover,button[aria-disabled],button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);--ez-icon--color:var(--ez-button--disabled-icon-color);--ez-button--left-icon--color:var(--ez-button--left-icon--disabled-color);--ez-button--right-icon--color:var(--ez-button--right-icon--disabled-color);cursor:no-drop;border:var(--ez-button--disabled--border)}button[aria-disabled].force-focus-visible,button[aria-disabled]:focus-visible{box-shadow:0 0 0 2px var(--color--gray-70), 0 0 0 4px var(--color--petroleum-100)}button ez-icon{--ez-icon--color:inherit}button ez-icon.leftIcon{--ez-icon--color:var(--ez-button--left-icon--color)}button ez-icon.rightIcon{--ez-icon--color:var(--ez-button--right-icon--color)}button:hover ez-icon.leftIcon{--ez-icon--color:var(--ez-button--left-icon--hover-color)}button:hover ez-icon.rightIcon{--ez-icon--color:var(--ez-button--right-icon--hover-color)}button:disabled:hover ez-icon.leftIcon,button[aria-disabled]:hover ez-icon.leftIcon{--ez-icon--color:var(--ez-button--left-icon--disabled-color)}button:disabled:hover ez-icon.rightIcon,button[aria-disabled]:hover ez-icon.rightIcon{--ez-icon--color:var(--ez-button--right-icon--disabled-color)}button.x-small{height:28px;--ez-button--font-size:var(--text--small, 12px)}button.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}button.medium{height:42px}button.large{height:46px}button.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--x-small{width:28px;min-width:28px;height:28px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--label-icon--color)}.label-icon:hover{color:var(--ez-button--label-icon--hover-color);fill:var(--ez-button--label-icon--hover-color)}.label-icon .disabled{color:var(--ez-button--label-icon--disabled-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button[aria-disabled]+label,button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--label-icon--disabled-color);cursor:no-drop}button.force-focus-visible,button:focus-visible{box-shadow:0 0 0 2px var(--color--gray-70), 0 0 0 4px var(--color--ocean-green-200)}div.label-icon{cursor:pointer}div.label-icon button[aria-disabled],div.label-icon button:disabled{cursor:no-drop}a{outline:0;border:0;margin:0;border-radius:0;padding:0;margin:0;padding-inline:var(--space--8);font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:var(--ez-button--border-radius);gap:var(--ez-button--icon--gap)}a ez-icon{--ez-icon--color:var(--ez-button--link--color)}a:hover{color:var(--ez-button--link--hover-color);--ez-icon--color:var(--ez-button--link--hover-color)}a:hover ez-icon{--ez-icon--color:var(--ez-button--link--hover-color)}a.disabled{color:var(--ez-button--link-disabled-color);cursor:not-allowed}a.disabled ez-icon{--ez-icon--color:var(--ez-button--link-disabled-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}a.force-focus-visible,a:focus-visible{box-shadow:0 0 0 2px var(--color--gray-70), 0 0 0 4px var(--color--ocean-green-200)}a.disabled.force-focus-visible,a.disabled:focus-visible{box-shadow:0 0 0 2px var(--color--gray-70), 0 0 0 4px var(--color--petroleum-100)}";
|
|
8
|
+
const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #2B3A54);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large, 500);--ez-button--background-color:var(--background--light, #ffffff);--ez-button--border-radius:var(--border--radius-large, 24px);--ez-button--border:1px solid var(--color--strokes);--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600, #007a5a);--ez-button--hover--background-color:var(--background--light, #ffffff);--ez-button--disabled-color:var(--text--primary);--ez-button--disabled--background-color:var(--background--medium);--ez-button--focus--border:var(--border--medium, 2px solid) var(--color--primary-300);--ez-button--focus--box-shadow:var(--color--primary-300) 0px 0px 0px 2px;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link-disabled-color:var(--text--secondary, #a2abb9);--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:none;box-shadow:var(--ez-button--focus--box-shadow)}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.x-small{height:28px;--ez-button--font-size:var(--text--small, 12px)}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--x-small{width:28px;min-width:28px;height:28px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}a.disabled{color:var(--ez-button--link-disabled-color);cursor:not-allowed}";
|
|
9
9
|
|
|
10
10
|
const EzButton = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
this.createRipple = (event) => {
|
|
14
|
-
const button = this._button;
|
|
15
|
-
if (!button || this.isDisabled || !this.enabled)
|
|
16
|
-
return;
|
|
17
|
-
const rect = button.getBoundingClientRect();
|
|
18
|
-
let clientX, clientY;
|
|
19
|
-
if (event instanceof MouseEvent) {
|
|
20
|
-
clientX = event.clientX;
|
|
21
|
-
clientY = event.clientY;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
clientX = event.touches[0].clientX;
|
|
25
|
-
clientY = event.touches[0].clientY;
|
|
26
|
-
}
|
|
27
|
-
const x = clientX - rect.left;
|
|
28
|
-
const y = clientY - rect.top;
|
|
29
|
-
const newRipple = { x, y, id: Date.now() };
|
|
30
|
-
this.ripples = [...this.ripples, newRipple];
|
|
31
|
-
this.isPressed = true;
|
|
32
|
-
setTimeout(() => {
|
|
33
|
-
this.isPressed = false;
|
|
34
|
-
}, 150);
|
|
35
|
-
setTimeout(() => {
|
|
36
|
-
this.ripples = this.ripples.filter(ripple => ripple.id !== newRipple.id);
|
|
37
|
-
}, 600);
|
|
38
|
-
};
|
|
39
|
-
this.ripples = [];
|
|
40
|
-
this.isPressed = false;
|
|
41
13
|
this.label = undefined;
|
|
42
14
|
this.enabled = true;
|
|
43
|
-
this.isDisabled = false;
|
|
44
15
|
this.mode = "regular";
|
|
45
16
|
this.image = undefined;
|
|
46
17
|
this.iconName = undefined;
|
|
47
|
-
this.size =
|
|
48
|
-
this.variant = undefined;
|
|
49
|
-
this.type = "button";
|
|
50
|
-
this.leftIconName = undefined;
|
|
51
|
-
this.rightIconName = undefined;
|
|
52
|
-
this.suppressAnimation = false;
|
|
18
|
+
this.size = undefined;
|
|
53
19
|
}
|
|
54
20
|
/**
|
|
55
21
|
* Aplica o foco no botão.
|
|
56
22
|
*/
|
|
57
23
|
async setFocus() {
|
|
58
24
|
this._button.focus();
|
|
59
|
-
this._button.classList.add("force-focus-visible");
|
|
60
25
|
}
|
|
61
26
|
/**
|
|
62
27
|
* Remove o foco do botão.
|
|
@@ -64,32 +29,12 @@ const EzButton = class {
|
|
|
64
29
|
async setBlur() {
|
|
65
30
|
this._button.blur();
|
|
66
31
|
}
|
|
67
|
-
onMouseDown(event) {
|
|
68
|
-
this.createRipple(event);
|
|
69
|
-
}
|
|
70
|
-
onTouchStart(event) {
|
|
71
|
-
this.createRipple(event);
|
|
72
|
-
}
|
|
73
32
|
clickListener(evt) {
|
|
74
|
-
|
|
75
|
-
this.isDisabled === true ||
|
|
76
|
-
this.isDisabled === "" ||
|
|
77
|
-
this.isDisabled === "full";
|
|
78
|
-
if (isDisabled) {
|
|
33
|
+
if (!this.enabled) {
|
|
79
34
|
evt.stopImmediatePropagation();
|
|
80
35
|
}
|
|
81
36
|
}
|
|
82
|
-
removeForcedFocusVisible() {
|
|
83
|
-
var _a;
|
|
84
|
-
(_a = this._button) === null || _a === void 0 ? void 0 : _a.classList.remove('force-focus-visible');
|
|
85
|
-
}
|
|
86
|
-
connectedCallback() {
|
|
87
|
-
var _a, _b;
|
|
88
|
-
(_a = this._button) === null || _a === void 0 ? void 0 : _a.removeEventListener('blur', this.removeForcedFocusVisible.bind(this));
|
|
89
|
-
(_b = this._button) === null || _b === void 0 ? void 0 : _b.addEventListener('blur', this.removeForcedFocusVisible.bind(this));
|
|
90
|
-
}
|
|
91
37
|
componentDidLoad() {
|
|
92
|
-
var _a;
|
|
93
38
|
if (this._element) {
|
|
94
39
|
core.ElementIDUtils.addIDInfo(this._element);
|
|
95
40
|
}
|
|
@@ -97,23 +42,17 @@ const EzButton = class {
|
|
|
97
42
|
const dataInfo = { id: 'embedded' };
|
|
98
43
|
core.ElementIDUtils.addIDInfo(this._button, 'button', dataInfo);
|
|
99
44
|
}
|
|
100
|
-
(_a = this._button) === null || _a === void 0 ? void 0 : _a.addEventListener('blur', this.removeForcedFocusVisible.bind(this));
|
|
101
|
-
}
|
|
102
|
-
disconnectCallback() {
|
|
103
|
-
var _a;
|
|
104
|
-
(_a = this._button) === null || _a === void 0 ? void 0 : _a.removeEventListener('blur', this.removeForcedFocusVisible.bind(this));
|
|
105
45
|
}
|
|
106
46
|
getButtonSize(sizeParam = "medium") {
|
|
107
47
|
const sizeList = ["x-small", "small", "medium", "large"];
|
|
108
48
|
const sizeLowerCase = this.size && this.size.toLowerCase();
|
|
109
49
|
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
110
50
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return iconSize;
|
|
51
|
+
getIconSize(sizeParam = "medium") {
|
|
52
|
+
const sizeList = ["small", "medium", "large"];
|
|
53
|
+
const sizeLowerCase = this.size && this.size.toLowerCase();
|
|
54
|
+
const sizeMapped = sizeLowerCase === "x-small" ? "small" : sizeLowerCase;
|
|
55
|
+
return sizeList.includes(sizeMapped) ? sizeMapped : sizeParam;
|
|
117
56
|
}
|
|
118
57
|
handleSlotChange(ev) {
|
|
119
58
|
const slot = ev.target;
|
|
@@ -121,40 +60,31 @@ const EzButton = class {
|
|
|
121
60
|
if (!!content) {
|
|
122
61
|
if (this.mode == "link") {
|
|
123
62
|
content.style.display = "inline";
|
|
63
|
+
if (slot.name == "leftIcon") {
|
|
64
|
+
content.style.paddingRight = "var(--ez-button__inline__icon--padding)";
|
|
65
|
+
}
|
|
66
|
+
else if (slot.name == "rightIcon") {
|
|
67
|
+
content.style.paddingLeft = "var(--ez-button__inline__icon--padding)";
|
|
68
|
+
}
|
|
124
69
|
}
|
|
125
70
|
else {
|
|
126
71
|
content.style.setProperty("--ez-icon--color", "var(--ez-icon--color)");
|
|
127
72
|
}
|
|
128
73
|
}
|
|
129
74
|
}
|
|
130
|
-
renderRipples() {
|
|
131
|
-
return this.ripples.map((ripple) => (index.h("span", { key: ripple.id, class: "ripple", style: {
|
|
132
|
-
left: `${ripple.x - 10}px`,
|
|
133
|
-
top: `${ripple.y - 10}px`,
|
|
134
|
-
} })));
|
|
135
|
-
}
|
|
136
75
|
render() {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
: index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
150
|
-
}
|
|
151
|
-
return (index.h("button", { class: `${this.getButtonSize("")} ${this.isPressed ? 'pressed' : ''}`, type: this.type, disabled: this.isDisabled === "full" || !this.enabled, "aria-disabled": this.isDisabled && this.isDisabled === true, ref: (el) => this._button = el }, this.leftIconName
|
|
152
|
-
? index.h("ez-icon", { class: "leftIcon", iconName: this.leftIconName, size: this.getIconSize() })
|
|
153
|
-
: index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, this.rightIconName
|
|
154
|
-
? index.h("ez-icon", { class: "rightIcon", iconName: this.rightIconName, size: this.getIconSize() })
|
|
155
|
-
: index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), !this.suppressAnimation && this.renderRipples()));
|
|
156
|
-
};
|
|
157
|
-
return (index.h(index.Host, { class: `${this.variant ? `ez-button--${this.variant}` : ""}` }, renderButton()));
|
|
76
|
+
if (this.mode == "icon") {
|
|
77
|
+
return (index.h("button", { class: "btn-icon " + ((this.getButtonSize()) ? `btn-icon--${this.getButtonSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })));
|
|
78
|
+
}
|
|
79
|
+
else if (this.mode == "label-icon") {
|
|
80
|
+
return (index.h("div", { class: "label-icon" }, index.h("button", { class: "btn-icon " + ((this.getButtonSize()) ? `btn-icon--${this.getButtonSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })), index.h("label", { title: this.label }, this.label)));
|
|
81
|
+
}
|
|
82
|
+
else if (this.mode == "link") {
|
|
83
|
+
return (index.h("a", { class: `${this.getIconSize()} ${!this.enabled ? "disabled" : ""}`, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return (index.h("button", { class: this.getButtonSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
|
|
87
|
+
}
|
|
158
88
|
}
|
|
159
89
|
get _element() { return index.getElement(this); }
|
|
160
90
|
};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const index$1 = require('./index-
|
|
7
|
+
const index$1 = require('./index-425b1f67.js');
|
|
8
8
|
|
|
9
9
|
const ezCalendarCss = ":host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--ez-calendar__nav-btn--next-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{display:flex;flex-direction:column;z-index:var(--more-visible, 2);background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:'';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--extra-small, 10px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color);color:var(--ez-calendar__cell--over--color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset;color:var(--ez-calendar--color)}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;padding:0px;font-weight:var(--text-weight--large, 600);font-size:var(--title--extra-small, 12px);font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendar-time{margin-left:-10px;display:flex;flex-direction:column;padding:12px 0px 0px 10px;background-color:var(--ez-calendar__time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:136px;padding:0px;margin:0px;overflow:auto;scrollbar-width:none}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendar-time__header{display:flex;justify-content:space-between;padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}";
|
|
10
10
|
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
+
const floatingUi_dom_esm = require('./floating-ui.dom.esm-017acce4.js');
|
|
7
8
|
|
|
8
9
|
const ezCardItemCss = ":host { \n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define o tamanho da fonte do componente no modo compacto.*/\n --ez-card-item--font-size-compacted: var(--text--extra-small, 10px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--font-weight--semi-bold, 600);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--font-weight--semi-bold, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define a cor da fonte do valor do detalhe do componente.*/\n --ez-card-item__detail-value--color: var(--color--petroleum-500, #404E65);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--detail-label--font-weight: var(--text-weight--large, 400);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item__detail{\n display: inline-block;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: 0.95;\n}\n\n\n\n.card-item__expanded {\n padding: var(--space--medium);\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n flex-direction: column;\n cursor: pointer;\n justify-content: space-between;\n width: 100%;\n}\n\n.card-item__details-container__left {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-container__right {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail{\n cursor: pointer;\n}\n\n.card-item__detail-default:not(:last-child) {\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--detail-label--font-weight);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n color: var(--ez-card-item__detail-value--color);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n.card-item__content{\n display: flex;\n align-items: center;\n}\n\n.card-item__details-container_default{\n display: flex;\n}\n\n.card-item__details-slot{\n margin-left: auto;\n}\n\n/* Modo compacto */\n.card-item__compacted {\n padding: var(--space--2xs) var(--space--small);\n}\n\n.card-item__detail-label-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__detail-value-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__title-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__details-container__left-compacted{\n width: 100%;\n}\n\n.card-item__details-container__right-compacted {\n width: 100%;\n}\n\n\n@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-container__left {\n width: 100%;\n }\n \n .card-item__details-container__right {\n width: 100%;\n }\n}\n\n@container box (max-width: 200px) {\n .card-item__title {\n font-size: 10px;\n }\n\n .card-item__detail-label {\n font-size: 10px;\n }\n\n .card-item__detail-value {\n font-size: 10px;\n }\n\n}";
|
|
9
10
|
|
|
@@ -59,4 +60,208 @@ const EzCardItem = class {
|
|
|
59
60
|
};
|
|
60
61
|
EzCardItem.style = ezCardItemCss;
|
|
61
62
|
|
|
63
|
+
const ezPopoverCoreCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--elevation--100, 100);--ez-popover__box--overlay-z-index:var(--elevation--24, 24);position:relative;display:flex;user-select:none}.popover__overlay{display:none;position:fixed;padding:0;top:0px;left:0px;width:100%;height:100vh;box-sizing:border-box;z-index:var(--ez-popover__box--overlay-z-index)}.popover__overlay--light{background-color:rgba(var(--rgb-background--overlay), var(--opacity--bright))}.popover__overlay--medium{background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.popover__box{display:none;position:fixed;top:0;left:0;z-index:var(--ez-popover__box--z-index);flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:calc(100% - 10px)}";
|
|
64
|
+
|
|
65
|
+
const EzPopoverCore = class {
|
|
66
|
+
constructor(hostRef) {
|
|
67
|
+
index.registerInstance(this, hostRef);
|
|
68
|
+
this.ezVisibilityChange = index.createEvent(this, "ezVisibilityChange", 7);
|
|
69
|
+
this.autoClose = true;
|
|
70
|
+
this.boxWidth = "fit-content";
|
|
71
|
+
this.opened = false;
|
|
72
|
+
this.overlayType = "light";
|
|
73
|
+
this.anchorElement = undefined;
|
|
74
|
+
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
75
|
+
this.useAnchorSize = false;
|
|
76
|
+
this.minWidth = 150;
|
|
77
|
+
}
|
|
78
|
+
observeOpened(newValue, oldValue) {
|
|
79
|
+
if (newValue === oldValue) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (newValue) {
|
|
83
|
+
this.openPopover();
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
this.hidePopover();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Atualiza a posição do popover.
|
|
91
|
+
*/
|
|
92
|
+
async updatePosition(top, left) {
|
|
93
|
+
this.updateOptionPosition(top, left);
|
|
94
|
+
await this.updatePositionPopover();
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Exibe o ez-popover.
|
|
98
|
+
*/
|
|
99
|
+
async show(top, left) {
|
|
100
|
+
this.updateOptionPosition(top, left);
|
|
101
|
+
this.opened = true;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Ancora a exibição do popOver a um elemento HTML.
|
|
105
|
+
*/
|
|
106
|
+
async showUnder(element, options) {
|
|
107
|
+
if (options) {
|
|
108
|
+
this.options = options;
|
|
109
|
+
}
|
|
110
|
+
this.anchorElement = element;
|
|
111
|
+
this.opened = true;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Oculta o ez-popover.
|
|
115
|
+
*/
|
|
116
|
+
async hide() {
|
|
117
|
+
this.opened = false;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Altera as opções.
|
|
121
|
+
*/
|
|
122
|
+
async setOptions(options) {
|
|
123
|
+
Object.assign(this.options, options);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Altera o elemento de ancoragem.
|
|
127
|
+
*/
|
|
128
|
+
async setAnchorElement(anchor) {
|
|
129
|
+
this.anchorElement = anchor;
|
|
130
|
+
}
|
|
131
|
+
parseSizePixel(sizePixel, defaultValue) {
|
|
132
|
+
if (!sizePixel) {
|
|
133
|
+
return defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0;
|
|
134
|
+
}
|
|
135
|
+
if (typeof sizePixel === "string") {
|
|
136
|
+
return Number(sizePixel.replace("px", ""));
|
|
137
|
+
}
|
|
138
|
+
return sizePixel !== null && sizePixel !== void 0 ? sizePixel : 0;
|
|
139
|
+
}
|
|
140
|
+
updateOptionPosition(top, left) {
|
|
141
|
+
Object.assign(this.options, {
|
|
142
|
+
horizontalGap: this.parseSizePixel(left, this.options.horizontalGap),
|
|
143
|
+
verticalGap: this.parseSizePixel(top, this.options.verticalGap),
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
getElement(element) {
|
|
147
|
+
if (typeof element === 'string') {
|
|
148
|
+
return document.getElementById(element);
|
|
149
|
+
}
|
|
150
|
+
return element;
|
|
151
|
+
}
|
|
152
|
+
getAnchorElement() {
|
|
153
|
+
if (!this.anchorElement) {
|
|
154
|
+
return this._host;
|
|
155
|
+
}
|
|
156
|
+
if (Array.isArray(this.anchorElement)) {
|
|
157
|
+
for (const element of this.anchorElement) {
|
|
158
|
+
const htmlElement = this.getElement(element);
|
|
159
|
+
if (htmlElement) {
|
|
160
|
+
return htmlElement;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return this._host;
|
|
164
|
+
}
|
|
165
|
+
return this.getElement(this.anchorElement);
|
|
166
|
+
}
|
|
167
|
+
async updatePositionPopover() {
|
|
168
|
+
if (!this._box || !this.opened) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
const currentAnchorElement = this.getAnchorElement();
|
|
172
|
+
await floatingUi_dom_esm.computePosition(currentAnchorElement, this._box, {
|
|
173
|
+
placement: this.options.fromRight ? 'bottom-end' : 'bottom-start',
|
|
174
|
+
middleware: [floatingUi_dom_esm.flip(), floatingUi_dom_esm.shift({ padding: 5 })],
|
|
175
|
+
strategy: 'fixed',
|
|
176
|
+
}).then(({ x, y, placement }) => {
|
|
177
|
+
const newTop = placement.includes("bottom") ? y + this.options.verticalGap : y - this.options.verticalGap;
|
|
178
|
+
const newLeft = placement.includes("start") ? x + this.options.horizontalGap : x - this.options.horizontalGap;
|
|
179
|
+
Object.assign(this._box.style, {
|
|
180
|
+
top: `${newTop}px`,
|
|
181
|
+
left: `${newLeft}px`,
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
hidePopover() {
|
|
186
|
+
if (!this._box) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
this._box.style.display = '';
|
|
190
|
+
this.hideOverlay();
|
|
191
|
+
this.ezVisibilityChange.emit(false);
|
|
192
|
+
}
|
|
193
|
+
async openPopover() {
|
|
194
|
+
if (!this._box || !this.opened) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
this._box.style.display = 'flex';
|
|
198
|
+
this._box.style.visibility = 'hidden';
|
|
199
|
+
if (this.useAnchorSize) {
|
|
200
|
+
const currentAnchorElement = this.getAnchorElement();
|
|
201
|
+
const anchorSize = currentAnchorElement.getBoundingClientRect().width;
|
|
202
|
+
const width = anchorSize < this.minWidth ? this.minWidth : anchorSize;
|
|
203
|
+
this._box.style.width = `${width}px`;
|
|
204
|
+
}
|
|
205
|
+
await this.updatePositionPopover();
|
|
206
|
+
this.openOverlay();
|
|
207
|
+
this.ezVisibilityChange.emit(true);
|
|
208
|
+
this._box.style.visibility = 'visible';
|
|
209
|
+
}
|
|
210
|
+
openOverlay() {
|
|
211
|
+
if (!this._overlay || !this._overlayIsActive) {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
this._overlay.style.display = 'block';
|
|
215
|
+
}
|
|
216
|
+
hideOverlay() {
|
|
217
|
+
if (!this._overlay) {
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
this._overlay.style.display = 'none';
|
|
221
|
+
}
|
|
222
|
+
checkStatusOverlay() {
|
|
223
|
+
if (this.overlayType !== "none") {
|
|
224
|
+
return true;
|
|
225
|
+
}
|
|
226
|
+
if (this.overlayType === "none" && this.autoClose) {
|
|
227
|
+
return true;
|
|
228
|
+
}
|
|
229
|
+
return false;
|
|
230
|
+
}
|
|
231
|
+
handlePositionUpdate() {
|
|
232
|
+
if (!this.opened) {
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
this.updatePositionPopover();
|
|
236
|
+
}
|
|
237
|
+
componentWillLoad() {
|
|
238
|
+
window.addEventListener('scroll', this.handlePositionUpdate.bind(this), true);
|
|
239
|
+
window.addEventListener('resize', this.handlePositionUpdate.bind(this), true);
|
|
240
|
+
}
|
|
241
|
+
componentDidLoad() {
|
|
242
|
+
this._overlayIsActive = this.checkStatusOverlay();
|
|
243
|
+
this._resizeObserver = new ResizeObserver(this.updatePositionPopover.bind(this));
|
|
244
|
+
this._resizeObserver.observe(this._box);
|
|
245
|
+
this.openPopover();
|
|
246
|
+
}
|
|
247
|
+
disconnectedCallback() {
|
|
248
|
+
window.removeEventListener('scroll', this.handlePositionUpdate.bind(this), true);
|
|
249
|
+
window.removeEventListener('resize', this.handlePositionUpdate.bind(this), true);
|
|
250
|
+
this._resizeObserver.disconnect();
|
|
251
|
+
}
|
|
252
|
+
render() {
|
|
253
|
+
return (index.h(index.Host, null, index.h("div", { ref: el => this._overlay = el, onClick: () => this.hide(), class: `popover__overlay popover__overlay--${this.overlayType}` }), index.h("section", { ref: el => this._box = el, class: {
|
|
254
|
+
"popover__box": true,
|
|
255
|
+
"popover__box--fit-content": this.boxWidth === "fit-content",
|
|
256
|
+
"popover__box--full-width": this.boxWidth !== "fit-content",
|
|
257
|
+
} }, index.h("slot", null))));
|
|
258
|
+
}
|
|
259
|
+
get _host() { return index.getElement(this); }
|
|
260
|
+
static get watchers() { return {
|
|
261
|
+
"opened": ["observeOpened"]
|
|
262
|
+
}; }
|
|
263
|
+
};
|
|
264
|
+
EzPopoverCore.style = ezPopoverCoreCss;
|
|
265
|
+
|
|
62
266
|
exports.ez_card_item = EzCardItem;
|
|
267
|
+
exports.ez_popover_core = EzPopoverCore;
|