@watermarkinsights/ripple 5.28.1 → 5.29.0-alpha.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/{app-globals-0b8313f1.js → app-globals-4965a440.js} +1 -1
- package/dist/cjs/{chartFunctions-51660576.js → chartFunctions-608adb05.js} +1 -1
- package/dist/cjs/{functions-2041a1d8.js → functions-b188d5b3.js} +0 -32
- package/dist/cjs/{intl-02a445a1.js → intl-01531391.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +4 -4
- package/dist/cjs/priv-chart-popover-old.cjs.entry.js +1 -1
- package/dist/cjs/priv-chart-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-button.cjs.entry.js +1 -1
- package/dist/cjs/priv-navigator-item.cjs.entry.js +1 -1
- package/dist/cjs/priv-option-list.cjs.entry.js +3 -3
- package/dist/cjs/ripple.cjs.js +2 -2
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +5 -5
- package/dist/cjs/wm-button.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart-bar.cjs.entry.js +3 -3
- package/dist/cjs/wm-chart-column.cjs.entry.js +3 -3
- package/dist/cjs/wm-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-date-range.cjs.entry.js +153 -115
- package/dist/cjs/wm-datepicker.cjs.entry.js +128 -91
- package/dist/cjs/wm-file-list.cjs.entry.js +1 -1
- package/dist/cjs/wm-file.cjs.entry.js +2 -2
- package/dist/cjs/wm-flyout.cjs.entry.js +3 -3
- package/dist/cjs/wm-input.cjs.entry.js +3 -3
- package/dist/cjs/wm-line-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-modal_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/wm-navigator.cjs.entry.js +1 -1
- package/dist/cjs/wm-nested-select.cjs.entry.js +5 -5
- package/dist/cjs/wm-optgroup.cjs.entry.js +2 -2
- package/dist/cjs/wm-option_2.cjs.entry.js +7 -7
- package/dist/cjs/wm-pagination.cjs.entry.js +3 -3
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/wm-search.cjs.entry.js +5 -5
- package/dist/cjs/wm-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +7 -7
- package/dist/cjs/wm-tag-input.cjs.entry.js +4 -4
- package/dist/cjs/wm-tag-option.cjs.entry.js +1 -1
- package/dist/cjs/wm-textarea.cjs.entry.js +3 -3
- package/dist/cjs/wm-timepicker.cjs.entry.js +3 -3
- package/dist/cjs/wm-toggletip.cjs.entry.js +4 -4
- package/dist/cjs/wm-uploader.cjs.entry.js +4 -4
- package/dist/collection/components/datepickers/datepicker.css +4 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +38 -21
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
- package/dist/collection/components/datepickers/wm-date-range.js +157 -140
- package/dist/collection/components/datepickers/wm-datepicker.js +132 -115
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +1 -1
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +3 -3
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +1 -1
- package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
- package/dist/collection/components/selects/wm-select/wm-select.js +4 -4
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +3 -3
- package/dist/collection/components/wm-button/wm-button.js +1 -1
- package/dist/collection/components/wm-file/wm-file.js +1 -1
- package/dist/collection/components/wm-file-list/wm-file-list.js +1 -1
- package/dist/collection/components/wm-flyout/wm-flyout.js +1 -1
- package/dist/collection/components/wm-input/wm-input.js +1 -1
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-footer.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal-header.js +1 -1
- package/dist/collection/components/wm-modal/wm-modal.js +2 -2
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +1 -1
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +2 -2
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +1 -1
- package/dist/collection/components/wm-navigation/wm-navigation.js +2 -2
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +1 -1
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +1 -1
- package/dist/collection/components/wm-pagination/wm-pagination.js +1 -1
- package/dist/collection/components/wm-search/wm-search.css +2 -0
- package/dist/collection/components/wm-search/wm-search.js +2 -2
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +3 -3
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +1 -1
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +2 -2
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +2 -2
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +3 -3
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/global/functions.js +0 -30
- package/dist/esm/{app-globals-b5a717cb.js → app-globals-eba3c8fb.js} +1 -1
- package/dist/esm/{chartFunctions-ba9dc8bc.js → chartFunctions-4bc77b76.js} +1 -1
- package/dist/esm/{functions-2c952c7e.js → functions-de887809.js} +1 -31
- package/dist/esm/{intl-28a56253.js → intl-56b47a7b.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/priv-calendar.entry.js +4 -4
- package/dist/esm/priv-chart-popover-old.entry.js +1 -1
- package/dist/esm/priv-chart-popover_2.entry.js +1 -1
- package/dist/esm/priv-navigator-button.entry.js +1 -1
- package/dist/esm/priv-navigator-item.entry.js +1 -1
- package/dist/esm/priv-option-list.entry.js +3 -3
- package/dist/esm/ripple.js +2 -2
- package/dist/esm/wm-action-menu_2.entry.js +5 -5
- package/dist/esm/wm-button.entry.js +2 -2
- package/dist/esm/wm-chart-bar.entry.js +3 -3
- package/dist/esm/wm-chart-column.entry.js +3 -3
- package/dist/esm/wm-chart.entry.js +3 -3
- package/dist/esm/wm-date-range.entry.js +153 -115
- package/dist/esm/wm-datepicker.entry.js +128 -91
- package/dist/esm/wm-file-list.entry.js +1 -1
- package/dist/esm/wm-file.entry.js +2 -2
- package/dist/esm/wm-flyout.entry.js +3 -3
- package/dist/esm/wm-input.entry.js +3 -3
- package/dist/esm/wm-line-chart.entry.js +3 -3
- package/dist/esm/wm-modal-pss_3.entry.js +6 -6
- package/dist/esm/wm-modal_3.entry.js +6 -6
- package/dist/esm/wm-navigation_3.entry.js +6 -6
- package/dist/esm/wm-navigator.entry.js +1 -1
- package/dist/esm/wm-nested-select.entry.js +5 -5
- package/dist/esm/wm-optgroup.entry.js +2 -2
- package/dist/esm/wm-option_2.entry.js +7 -7
- package/dist/esm/wm-pagination.entry.js +3 -3
- package/dist/esm/wm-progress-indicator_3.entry.js +2 -2
- package/dist/esm/wm-search.entry.js +5 -5
- package/dist/esm/wm-snackbar.entry.js +4 -4
- package/dist/esm/wm-tab-item_3.entry.js +7 -7
- package/dist/esm/wm-tag-input.entry.js +4 -4
- package/dist/esm/wm-tag-option.entry.js +1 -1
- package/dist/esm/wm-textarea.entry.js +3 -3
- package/dist/esm/wm-timepicker.entry.js +3 -3
- package/dist/esm/wm-toggletip.entry.js +4 -4
- package/dist/esm/wm-uploader.entry.js +4 -4
- package/dist/esm-es5/app-globals-eba3c8fb.js +1 -0
- package/dist/esm-es5/{chartFunctions-ba9dc8bc.js → chartFunctions-4bc77b76.js} +1 -1
- package/dist/esm-es5/{functions-2c952c7e.js → functions-de887809.js} +1 -1
- package/dist/esm-es5/{intl-28a56253.js → intl-56b47a7b.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover-old.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover_2.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/priv-option-list.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-bar.entry.js +1 -1
- package/dist/esm-es5/wm-chart-column.entry.js +1 -1
- package/dist/esm-es5/wm-chart.entry.js +1 -1
- package/dist/esm-es5/wm-date-range.entry.js +1 -1
- package/dist/esm-es5/wm-datepicker.entry.js +1 -1
- package/dist/esm-es5/wm-file-list.entry.js +1 -1
- package/dist/esm-es5/wm-file.entry.js +1 -1
- package/dist/esm-es5/wm-flyout.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/ripple/{p-4b1f77ac.entry.js → p-03a6850a.entry.js} +1 -1
- package/dist/ripple/{p-1827c07b.system.entry.js → p-0c3162d5.system.entry.js} +1 -1
- package/dist/ripple/{p-39c777f2.system.entry.js → p-0ec71f08.system.entry.js} +1 -1
- package/dist/ripple/{p-b47869f8.system.entry.js → p-1032c0db.system.entry.js} +1 -1
- package/dist/ripple/{p-aee33406.system.entry.js → p-13152ac1.system.entry.js} +1 -1
- package/dist/ripple/p-1318ae67.entry.js +1 -0
- package/dist/ripple/{p-6ec064ab.system.entry.js → p-137bf0c0.system.entry.js} +1 -1
- package/dist/ripple/{p-9a121a9f.entry.js → p-13bb6faf.entry.js} +1 -1
- package/dist/ripple/{p-a0f67c24.entry.js → p-16ff8110.entry.js} +1 -1
- package/dist/ripple/{p-1cf4994d.system.entry.js → p-1825d519.system.entry.js} +1 -1
- package/dist/ripple/{p-587c8c0b.entry.js → p-18417851.entry.js} +1 -1
- package/dist/ripple/p-1c655f6b.entry.js +1 -0
- package/dist/ripple/{p-3b335c30.system.entry.js → p-1ce77857.system.entry.js} +1 -1
- package/dist/ripple/{p-d8500a20.entry.js → p-1d76061a.entry.js} +1 -1
- package/dist/ripple/{p-6689ae84.system.entry.js → p-22b57f73.system.entry.js} +1 -1
- package/dist/ripple/{p-d4136c40.system.entry.js → p-24dfbf1d.system.entry.js} +1 -1
- package/dist/ripple/{p-2524203b.system.entry.js → p-28996d67.system.entry.js} +1 -1
- package/dist/ripple/{p-2e87a994.system.entry.js → p-30118d12.system.entry.js} +1 -1
- package/dist/ripple/{p-357b24b6.entry.js → p-32f3581a.entry.js} +1 -1
- package/dist/ripple/p-334d8711.system.js +1 -0
- package/dist/ripple/{p-640d450d.js → p-3c8c5933.js} +1 -1
- package/dist/ripple/{p-76646853.system.entry.js → p-436bf381.system.entry.js} +1 -1
- package/dist/ripple/{p-3fde7b17.system.entry.js → p-43843597.system.entry.js} +1 -1
- package/dist/ripple/{p-81eafe68.entry.js → p-48b596ae.entry.js} +1 -1
- package/dist/ripple/{p-c3710308.system.js → p-4bab5360.system.js} +1 -1
- package/dist/ripple/{p-bbaa0295.entry.js → p-4ff0db4d.entry.js} +1 -1
- package/dist/ripple/{p-c071456c.system.entry.js → p-57f1bafd.system.entry.js} +1 -1
- package/dist/ripple/{p-01055d26.entry.js → p-5b0e9165.entry.js} +1 -1
- package/dist/ripple/p-600b72ad.system.js +1 -0
- package/dist/ripple/{p-1a78f028.system.entry.js → p-6266fcbf.system.entry.js} +1 -1
- package/dist/ripple/{p-13730e2a.system.entry.js → p-646e22d3.system.entry.js} +1 -1
- package/dist/ripple/{p-7c5c3ec3.system.entry.js → p-6d2af8d9.system.entry.js} +1 -1
- package/dist/ripple/{p-ff2bf89a.system.entry.js → p-6d46f775.system.entry.js} +1 -1
- package/dist/ripple/{p-ca839c73.entry.js → p-6de0efee.entry.js} +1 -1
- package/dist/ripple/{p-2054d617.entry.js → p-7833db63.entry.js} +1 -1
- package/dist/ripple/p-7b7c32af.entry.js +1 -0
- package/dist/ripple/{p-ba6c13c7.entry.js → p-817aa29c.entry.js} +1 -1
- package/dist/ripple/{p-63c804c2.entry.js → p-82c9bd47.entry.js} +1 -1
- package/dist/ripple/{p-5bf97600.entry.js → p-8480138d.entry.js} +1 -1
- package/dist/ripple/{p-23750a8d.entry.js → p-85ef702d.entry.js} +1 -1
- package/dist/ripple/{p-e559b093.system.entry.js → p-86bcd942.system.entry.js} +1 -1
- package/dist/ripple/{p-f52ff657.entry.js → p-8799bce9.entry.js} +1 -1
- package/dist/ripple/{p-037e3c7a.entry.js → p-8dcc8c0c.entry.js} +1 -1
- package/dist/ripple/{p-8647ef67.entry.js → p-8fa572a8.entry.js} +1 -1
- package/dist/ripple/{p-18761ad7.js → p-904545cc.js} +1 -1
- package/dist/ripple/{p-57b566af.system.entry.js → p-90cb5d27.system.entry.js} +1 -1
- package/dist/ripple/p-9202ef69.system.entry.js +1 -0
- package/dist/ripple/{p-26b5b04e.system.entry.js → p-9f971522.system.entry.js} +1 -1
- package/dist/ripple/p-a235bc17.js +1 -0
- package/dist/ripple/{p-7851b16f.system.entry.js → p-a5dc49c1.system.entry.js} +1 -1
- package/dist/ripple/{p-fc9b09ba.system.entry.js → p-a73fb160.system.entry.js} +1 -1
- package/dist/ripple/{p-dcff6224.system.entry.js → p-a9580e7a.system.entry.js} +1 -1
- package/dist/ripple/p-b04a6351.entry.js +1 -0
- package/dist/ripple/{p-2fdaacf5.entry.js → p-b09998e1.entry.js} +1 -1
- package/dist/ripple/{p-c90dea3b.system.entry.js → p-b3a86ec4.system.entry.js} +1 -1
- package/dist/ripple/p-b501f06c.entry.js +1 -0
- package/dist/ripple/{p-1d528e60.entry.js → p-b957033b.entry.js} +1 -1
- package/dist/ripple/{p-f2f896b2.system.entry.js → p-ca3abcc0.system.entry.js} +1 -1
- package/dist/ripple/{p-a8b2b639.system.entry.js → p-cc455a6c.system.entry.js} +1 -1
- package/dist/ripple/{p-952f0628.entry.js → p-cdf9c0e9.entry.js} +1 -1
- package/dist/ripple/{p-81674b46.js → p-d4ae193e.js} +1 -1
- package/dist/ripple/{p-3a481357.system.js → p-d4d769a7.system.js} +1 -1
- package/dist/ripple/{p-eff5e623.system.entry.js → p-d6a9000f.system.entry.js} +1 -1
- package/dist/ripple/{p-6cdb2b26.entry.js → p-d6cd9f79.entry.js} +1 -1
- package/dist/ripple/{p-bfd74710.entry.js → p-d9e4335e.entry.js} +1 -1
- package/dist/ripple/{p-ef4e30c2.entry.js → p-dadf3ed3.entry.js} +1 -1
- package/dist/ripple/p-dc3684b5.entry.js +1 -0
- package/dist/ripple/{p-ae3aa9a6.entry.js → p-dca94e24.entry.js} +1 -1
- package/dist/ripple/{p-30ffd48a.system.entry.js → p-dcd6acc5.system.entry.js} +1 -1
- package/dist/ripple/{p-a0841eee.entry.js → p-dd81e308.entry.js} +1 -1
- package/dist/ripple/{p-e1ff0d63.system.entry.js → p-e11d9b06.system.entry.js} +1 -1
- package/dist/ripple/{p-7dc387b5.system.entry.js → p-e36e71dc.system.entry.js} +1 -1
- package/dist/ripple/{p-8634b2e1.entry.js → p-e6a81600.entry.js} +1 -1
- package/dist/ripple/{p-3b93eed7.system.entry.js → p-ef7d84da.system.entry.js} +1 -1
- package/dist/ripple/{p-118888bb.entry.js → p-f1de3153.entry.js} +1 -1
- package/dist/ripple/p-f3e84476.system.entry.js +1 -0
- package/dist/ripple/{p-3cd9160c.system.entry.js → p-f4d27fea.system.entry.js} +1 -1
- package/dist/ripple/p-fb062f04.system.js +1 -0
- package/dist/ripple/{p-1c08e803.system.entry.js → p-fcf4bd61.system.entry.js} +1 -1
- package/dist/ripple/{p-5af87cce.entry.js → p-fd02c124.entry.js} +1 -1
- package/dist/ripple/{p-097c7a49.entry.js → p-ffa20853.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/datepickers/wm-date-range.d.ts +13 -13
- package/dist/types/components/datepickers/wm-datepicker.d.ts +13 -12
- package/dist/types/global/functions.d.ts +0 -1
- package/package.json +2 -2
- package/dist/esm-es5/app-globals-b5a717cb.js +0 -1
- package/dist/ripple/p-001b65cb.system.js +0 -1
- package/dist/ripple/p-06ccdc10.entry.js +0 -1
- package/dist/ripple/p-0d882420.system.js +0 -1
- package/dist/ripple/p-0f86a48a.entry.js +0 -1
- package/dist/ripple/p-282564c9.entry.js +0 -1
- package/dist/ripple/p-5e285786.entry.js +0 -1
- package/dist/ripple/p-61d8d940.system.entry.js +0 -1
- package/dist/ripple/p-637bcbd6.system.js +0 -1
- package/dist/ripple/p-6b725bc9.entry.js +0 -1
- package/dist/ripple/p-8cf004ef.entry.js +0 -1
- package/dist/ripple/p-99baa733.system.entry.js +0 -1
- package/dist/ripple/p-9bd3eb06.js +0 -1
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { intl, toBool, handleDisabledAttribute,
|
|
2
|
+
import { intl, toBool, handleDisabledAttribute, dateToISO, showTooltip, hideTooltip, findAllScrollableParents, } from "../../global/functions";
|
|
3
3
|
export class DatePicker {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.
|
|
6
|
-
this.
|
|
7
|
-
this.
|
|
8
|
-
this.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
this.buttonContainerEl.classList.add("sr-only");
|
|
15
|
-
this.toggleEl.tabIndex = -1;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
this.buttonContainerEl.classList.remove("sr-only");
|
|
19
|
-
this.toggleEl.tabIndex = 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}, 10);
|
|
5
|
+
this.hasAnchor = CSS.supports("top", "anchor(bottom)");
|
|
6
|
+
this.popupMinHeight = 337; // priv-calendar.scss line 98
|
|
7
|
+
this.popupWidth = 336;
|
|
8
|
+
this.checkCanOpen = () => {
|
|
9
|
+
if (!this.anchorEl)
|
|
10
|
+
return;
|
|
11
|
+
const fit = this.measureFit();
|
|
12
|
+
this.canOpen = fit.vertical !== "none" && fit.horizontal !== "none";
|
|
13
|
+
};
|
|
23
14
|
this.value = "";
|
|
24
15
|
this.disabled = false;
|
|
25
16
|
this.dateFormat = "mm/dd/yyyy";
|
|
@@ -29,6 +20,34 @@ export class DatePicker {
|
|
|
29
20
|
this.requiredField = false;
|
|
30
21
|
this.preselected = undefined;
|
|
31
22
|
this.isExpanded = false;
|
|
23
|
+
this.openUp = false;
|
|
24
|
+
this.openRight = false;
|
|
25
|
+
this.isHidden = false;
|
|
26
|
+
this.canOpen = true;
|
|
27
|
+
}
|
|
28
|
+
measureFit() {
|
|
29
|
+
const rect = this.anchorEl.getBoundingClientRect();
|
|
30
|
+
const vw = document.documentElement.clientWidth;
|
|
31
|
+
const vh = document.documentElement.clientHeight;
|
|
32
|
+
if (!vw || !vh) {
|
|
33
|
+
return { vertical: "below", horizontal: "left" };
|
|
34
|
+
}
|
|
35
|
+
const spaceBelow = vh - rect.bottom;
|
|
36
|
+
const spaceAbove = rect.top;
|
|
37
|
+
const fitsBelow = spaceBelow >= this.popupMinHeight;
|
|
38
|
+
const fitsAbove = spaceAbove >= this.popupMinHeight;
|
|
39
|
+
const canScroll = findAllScrollableParents(this.el).length > 0;
|
|
40
|
+
const fitsLeftAligned = rect.left + this.popupWidth <= vw;
|
|
41
|
+
const fitsRightAligned = rect.right - this.popupWidth >= 0;
|
|
42
|
+
const vertical = fitsBelow
|
|
43
|
+
? "below"
|
|
44
|
+
: fitsAbove
|
|
45
|
+
? "above"
|
|
46
|
+
: canScroll
|
|
47
|
+
? "below-scroll"
|
|
48
|
+
: "none";
|
|
49
|
+
const horizontal = fitsLeftAligned ? "left" : fitsRightAligned ? "right" : "none";
|
|
50
|
+
return { vertical, horizontal };
|
|
32
51
|
}
|
|
33
52
|
get isDisabled() {
|
|
34
53
|
// string "false" needs to be treated as bool False because react wrappers convert bool to string.
|
|
@@ -59,46 +78,84 @@ export class DatePicker {
|
|
|
59
78
|
setTimeout(() => this.announce(this.errorMessage), 100);
|
|
60
79
|
}
|
|
61
80
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
this.toggleEl.focus();
|
|
81
|
+
positionDropdown() {
|
|
82
|
+
// polyfill for browsers without anchor() support (older Firefox)
|
|
83
|
+
const rect = this.anchorEl.getBoundingClientRect();
|
|
84
|
+
const spaceAbove = rect.top;
|
|
85
|
+
const spaceBelow = document.documentElement.clientHeight - rect.bottom;
|
|
86
|
+
const viewportWidth = document.documentElement.clientWidth;
|
|
87
|
+
const popupHeight = this.popupEl.clientHeight;
|
|
88
|
+
const popupWidth = this.popupEl.clientWidth;
|
|
89
|
+
this.el.style.removeProperty("--popup-translate-y");
|
|
90
|
+
this.el.style.removeProperty("--popup-max-height");
|
|
91
|
+
this.el.style.removeProperty("--popup-left");
|
|
92
|
+
// HORIZONTAL: prefer left-aligned to toggle; fall back to right-aligned.
|
|
93
|
+
// canOpen guarantees at least one side fits, so no centered fallback.
|
|
94
|
+
if (popupWidth <= viewportWidth - rect.left) {
|
|
95
|
+
this.el.style.setProperty("--popup-left", rect.left + "px");
|
|
78
96
|
}
|
|
97
|
+
else {
|
|
98
|
+
this.el.style.setProperty("--popup-left", rect.right - popupWidth + "px");
|
|
99
|
+
}
|
|
100
|
+
// VERTICAL
|
|
101
|
+
const gap = 2;
|
|
102
|
+
if (popupHeight + gap <= spaceBelow) {
|
|
103
|
+
this.el.style.setProperty("--popup-translate-y", rect.bottom + gap + "px");
|
|
104
|
+
}
|
|
105
|
+
else if (popupHeight + gap <= spaceAbove) {
|
|
106
|
+
this.el.style.setProperty("--popup-translate-y", rect.top - popupHeight - gap + "px");
|
|
107
|
+
}
|
|
108
|
+
else if (spaceBelow >= spaceAbove) {
|
|
109
|
+
this.el.style.setProperty("--popup-translate-y", rect.bottom + gap + "px");
|
|
110
|
+
this.el.style.setProperty("--popup-max-height", spaceBelow - gap + "px");
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
this.el.style.setProperty("--popup-translate-y", "0px");
|
|
114
|
+
this.el.style.setProperty("--popup-max-height", spaceAbove - gap + "px");
|
|
115
|
+
}
|
|
116
|
+
this.isHidden = false;
|
|
79
117
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
118
|
+
handleToggle(ev) {
|
|
119
|
+
if (ev.newState === "open") {
|
|
120
|
+
if (!this.hasAnchor) {
|
|
121
|
+
this.positionDropdown();
|
|
122
|
+
}
|
|
123
|
+
requestAnimationFrame(() => {
|
|
124
|
+
if (this.hasAnchor) {
|
|
125
|
+
const fit = this.measureFit();
|
|
126
|
+
this.openUp = fit.vertical === "above";
|
|
127
|
+
this.openRight = fit.horizontal === "right";
|
|
128
|
+
if (fit.vertical === "below-scroll") {
|
|
129
|
+
// scroll needs to reveal the popup — pop it out of top-layer fixed
|
|
130
|
+
// positioning so the ancestor scroll container governs visibility.
|
|
131
|
+
this.popupEl.style.position = "absolute";
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
this.isExpanded = true;
|
|
135
|
+
this.calEl.focusDate = this.calendarDate;
|
|
136
|
+
this.calEl.startDate = this.calendarDate;
|
|
137
|
+
this.calEl.focusCell();
|
|
138
|
+
window.setTimeout(() => {
|
|
139
|
+
this.calEl.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
140
|
+
}, 250);
|
|
141
|
+
});
|
|
85
142
|
}
|
|
86
143
|
else {
|
|
87
|
-
this.popupEl.style.
|
|
88
|
-
this.
|
|
144
|
+
this.popupEl.style.position = "";
|
|
145
|
+
this.isExpanded = false;
|
|
146
|
+
if (!this.hasAnchor) {
|
|
147
|
+
this.isHidden = true;
|
|
148
|
+
}
|
|
149
|
+
this.calEl.view = "day";
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
closePopup(returnFocus = false) {
|
|
153
|
+
this.popupEl.hidePopover();
|
|
154
|
+
if (returnFocus) {
|
|
155
|
+
window.setTimeout(() => {
|
|
156
|
+
this.toggleEl.focus();
|
|
157
|
+
}, 50);
|
|
89
158
|
}
|
|
90
|
-
this.popupEl.style.visibility = "visible";
|
|
91
|
-
window.requestAnimationFrame(() => {
|
|
92
|
-
this.popupEl.classList.add("open");
|
|
93
|
-
});
|
|
94
|
-
this.isExpanded = true;
|
|
95
|
-
this.calEl.focusDate = this.calendarDate;
|
|
96
|
-
this.calEl.startDate = this.calendarDate;
|
|
97
|
-
this.calEl.focusCell();
|
|
98
|
-
window.setTimeout(() => {
|
|
99
|
-
// ensure focused element is visible if popup opens below the fold
|
|
100
|
-
this.calEl.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
101
|
-
}, 250);
|
|
102
159
|
}
|
|
103
160
|
handleInput(ev) {
|
|
104
161
|
// keep component's value in sync with input's value
|
|
@@ -122,26 +179,6 @@ export class DatePicker {
|
|
|
122
179
|
showTooltip("right", ev.target, this.label);
|
|
123
180
|
}
|
|
124
181
|
}
|
|
125
|
-
handleKey(ev) {
|
|
126
|
-
if (ev.key === "Escape" && this.isExpanded) {
|
|
127
|
-
ev.preventDefault();
|
|
128
|
-
ev.stopPropagation(); // prevents closing of parent modal
|
|
129
|
-
this.closePopup(true);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
blurHandler() {
|
|
133
|
-
if (!this.popupClicked && !this.toggleButtonClicked && this.isExpanded) {
|
|
134
|
-
this.closePopup();
|
|
135
|
-
}
|
|
136
|
-
this.popupClicked = false;
|
|
137
|
-
this.toggleButtonClicked = false;
|
|
138
|
-
}
|
|
139
|
-
// for cases where the user clicks or uses a shortcut to leave the document
|
|
140
|
-
handleBlurOnWindow() {
|
|
141
|
-
if (this.isExpanded) {
|
|
142
|
-
this.closePopup();
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
182
|
handleCellTriggered(ev) {
|
|
146
183
|
let dateElement = ev.detail.cell;
|
|
147
184
|
let isoDate = dateElement.getAttribute("data-year") +
|
|
@@ -222,45 +259,45 @@ export class DatePicker {
|
|
|
222
259
|
if (this.label === "") {
|
|
223
260
|
console.error("You must include a label prop for the datepicker input (for accessibility reasons), even if the label position is none.");
|
|
224
261
|
}
|
|
262
|
+
if (!this.hasAnchor) {
|
|
263
|
+
this.isHidden = true;
|
|
264
|
+
}
|
|
225
265
|
handleDisabledAttribute(this.el, this.isDisabled);
|
|
226
266
|
}
|
|
227
267
|
componentDidLoad() {
|
|
228
|
-
this.
|
|
229
|
-
|
|
230
|
-
});
|
|
231
|
-
const resizeObserver = new ResizeObserver(() => {
|
|
232
|
-
this.debouncedResize();
|
|
233
|
-
});
|
|
234
|
-
resizeObserver.observe(this.el);
|
|
268
|
+
this.checkCanOpen();
|
|
269
|
+
window.addEventListener("resize", this.checkCanOpen);
|
|
235
270
|
}
|
|
236
|
-
|
|
237
|
-
this.
|
|
271
|
+
disconnectedCallback() {
|
|
272
|
+
window.removeEventListener("resize", this.checkCanOpen);
|
|
238
273
|
}
|
|
239
274
|
announce(message) {
|
|
240
|
-
//
|
|
275
|
+
// is a non-breaking space character, which causes the message to be read as a new one
|
|
241
276
|
if (this.liveRegionEl.textContent === message) {
|
|
242
|
-
message += "
|
|
277
|
+
message += " ";
|
|
243
278
|
}
|
|
244
279
|
this.liveRegionEl.textContent = message;
|
|
245
280
|
}
|
|
246
281
|
render() {
|
|
247
|
-
return (h(Host, { key: '
|
|
282
|
+
return (h(Host, { key: '5aa1a1ebee45fddbe0115120005653eb4e8f0949', "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'a8099a183130f0f7db1d81cf9fd788352b788d89', ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '017a8fc0ebeec8c4627f2ec37089194b2f0376cc', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '1ce207b8c401fa9984f1296eca2dd5641593149c', id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})`, onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '143b26071989903f116506d878805aa4651c6d05', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: 'e8ea10210bdee3ebe3ec892f46db57a0ef0a24af' }, h("div", { key: '430e16d121a51fbc0332192d9b167045ce8d2e7b', class: "single-wrapper input", ref: (el) => (this.anchorEl = el) }, h("input", { key: '1e9229e8e64cff7bbcbbd7d7b47198d63ed7d8a1', disabled: this.isDisabled, type: "text", id: "single-date-input", class: "date-input", name: "date", placeholder: this.dateFormat, value: this.value, onFocus: () => this.handleInputFocus(), onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleInputBlur(), onChange: () => this.handleInputChange(), ref: (input) => (this.inputEl = input), "aria-describedby": "error", "aria-label": this.label, "aria-required": this.requiredField ? "true" : null }), h("div", { key: 'cea591466300a74fa1221477f31a82264b14e205', class: "container", id: "wm-container" }, this.canOpen && (h("button", { key: '77dc9a126a4a050993b00b755ef39a08ba8ea272', disabled: this.disabled, "aria-label": intl.formatMessage({
|
|
248
283
|
id: "date.selectDate",
|
|
249
284
|
defaultMessage: "Select date",
|
|
250
285
|
description: "Button text for screen readers.",
|
|
251
|
-
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: '
|
|
286
|
+
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle", popoverTarget: "popup-wrapper", popoverTargetAction: "toggle" }, h("span", { key: 'c343d4983996c82c060e7e1eedd967072ea48671', class: "svg-icon svg-date" }), h("span", { key: '14612ecb341cbd4a371e3193f4dadd7d21f4e71f', class: "calendar", title: intl.formatMessage({
|
|
252
287
|
id: "date.calendarView",
|
|
253
288
|
defaultMessage: "Calendar View",
|
|
254
289
|
description: "Calendar button",
|
|
255
|
-
}) })), h("div", { key: '
|
|
290
|
+
}) }))), h("div", { key: '6d9aa84a9bd718ae8d6c0c25a70e5359fcbc28a1', class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.openRight ? "open-right" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), popover: "auto",
|
|
291
|
+
// @ts-ignore -- onToggle is a valid ToggleEvent listener for popover elements
|
|
292
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("div", { key: '6621819f8a58a6c87761d26bc3e81a627ad9394f', tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { key: '0d2cde70da11059ab064e152ad1821062deb3ab7', ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { key: '88bc54e4d1ab32eacc76a6ca996ee71971b1c436', tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { key: 'c85fa035265ae44f3274c41d0520bc29b834874e', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: 'ff9d8aa22eadbc2859b3b44dcbccb61a1750c6fa', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
256
293
|
id: "date.selectMonth",
|
|
257
294
|
defaultMessage: "Activate to select a month.",
|
|
258
295
|
description: "Calendar button",
|
|
259
|
-
})), h("div", { key: '
|
|
296
|
+
})), h("div", { key: 'd5c6487ee625dcb969c560bb2206b5ee97b0be84', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
260
297
|
id: "date.selectYear",
|
|
261
298
|
defaultMessage: "Activate to select a year.",
|
|
262
299
|
description: "Calendar button",
|
|
263
|
-
})))), h("div", { key: '
|
|
300
|
+
})))), h("div", { key: '3f836c8f120c2d0fbcb56c155a7b254e35bfc30f', id: "error", class: "error" }, this.errorMessage), h("div", { key: '254201ab85d9a7c1d4b3c2ee111a4ca44e1c2485', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
264
301
|
}
|
|
265
302
|
static get is() { return "wm-datepicker"; }
|
|
266
303
|
static get encapsulation() { return "shadow"; }
|
|
@@ -423,7 +460,11 @@ export class DatePicker {
|
|
|
423
460
|
}
|
|
424
461
|
static get states() {
|
|
425
462
|
return {
|
|
426
|
-
"isExpanded": {}
|
|
463
|
+
"isExpanded": {},
|
|
464
|
+
"openUp": {},
|
|
465
|
+
"openRight": {},
|
|
466
|
+
"isHidden": {},
|
|
467
|
+
"canOpen": {}
|
|
427
468
|
};
|
|
428
469
|
}
|
|
429
470
|
static get events() {
|
|
@@ -528,35 +569,11 @@ export class DatePicker {
|
|
|
528
569
|
}
|
|
529
570
|
static get listeners() {
|
|
530
571
|
return [{
|
|
531
|
-
"name": "keydown",
|
|
532
|
-
"method": "handleKey",
|
|
533
|
-
"target": undefined,
|
|
534
|
-
"capture": false,
|
|
535
|
-
"passive": false
|
|
536
|
-
}, {
|
|
537
|
-
"name": "click",
|
|
538
|
-
"method": "blurHandler",
|
|
539
|
-
"target": "document",
|
|
540
|
-
"capture": false,
|
|
541
|
-
"passive": false
|
|
542
|
-
}, {
|
|
543
|
-
"name": "blur",
|
|
544
|
-
"method": "handleBlurOnWindow",
|
|
545
|
-
"target": "window",
|
|
546
|
-
"capture": false,
|
|
547
|
-
"passive": false
|
|
548
|
-
}, {
|
|
549
572
|
"name": "cellTriggered",
|
|
550
573
|
"method": "handleCellTriggered",
|
|
551
574
|
"target": undefined,
|
|
552
575
|
"capture": false,
|
|
553
576
|
"passive": false
|
|
554
|
-
}, {
|
|
555
|
-
"name": "resize",
|
|
556
|
-
"method": "handleWindowResize",
|
|
557
|
-
"target": "window",
|
|
558
|
-
"capture": false,
|
|
559
|
-
"passive": true
|
|
560
577
|
}];
|
|
561
578
|
}
|
|
562
579
|
}
|
|
@@ -367,7 +367,7 @@ export class PrivOptionList {
|
|
|
367
367
|
return (h("div", { class: "non-options-wrapper" }, this.isInNestedSelect && this.renderReturnBtn(), this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton()));
|
|
368
368
|
}
|
|
369
369
|
render() {
|
|
370
|
-
return (h("div", { key: '
|
|
370
|
+
return (h("div", { key: '425b430c29dc0bfb140f584119c64cc23fde960b', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '9e21fb94dd8113e09d82ea5024de6327c16a1e9b', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-label": this.optgroupLabel, ref: (el) => (this.listboxEl = el), style: { "--max-height": this.effectiveMaxHeight } }, this.searchTerm && this.filteredOptions.length === 0 && this.renderSearchFailedMessage(), this.multiple && this.renderCloneOptions(), h("slot", { key: '7f7ef3e9e175b677488bc0daed3e8170b109454f' })), h("div", { key: '43f89c5b2eccebfc62b847c529ae00469b4fa5b7', id: "optionlist-announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
371
371
|
}
|
|
372
372
|
static get is() { return "priv-option-list"; }
|
|
373
373
|
static get originalStyleUrls() {
|
|
@@ -291,16 +291,16 @@ export class NestedSelect {
|
|
|
291
291
|
this.isExpanded ? this.close() : this.open();
|
|
292
292
|
},
|
|
293
293
|
};
|
|
294
|
-
return (h(Host, { key: '
|
|
294
|
+
return (h(Host, { key: 'f4ac99af822bcd4f917bc96daac6fbb61e34f80e', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '74d71c731f63152c402100fbfd97a54828360613', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'dbc5fc7283a3a32e059ba333116b1d882f321cd2', class: "label-wrapper" }, h("label", { key: 'cdd87e55969aaa094d1a3ddeb1385bf0bb3100de', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
|
|
295
295
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
296
|
-
this.labelPosition !== "none" && this.requiredField && (h("span", { key: '
|
|
296
|
+
this.labelPosition !== "none" && this.requiredField && (h("span", { key: '32b6eb9751a9e31228a2cf0d5a4d05448b095a8c', class: "required" }, h("span", { key: '5c5b0f47c47ed2cb90199e4cffdb4da91d7d45e3', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '7d04b03628b48903447c5b5289646b93b6cb619e', "aria-hidden": "true" }, "*")))), h("div", { key: 'e64f0cd85f5cf893b2466891df11ecc99b3cacf5', class: "button-wrapper" }, h("button", Object.assign({ key: '0b848795e3b8452474a19b0faec455aec49a4d1f' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: '12f2c4f128bd3b8f993179408821521afbc879ed', class: "overflowcontrol" }, h("span", { key: '82f3176f5daafd346b011b0c2509c43b28e179a8', class: "button-text" }, this.renderButtonText())), h("div", { key: '3dd0a416c62f42d63ff216094e3977a1b905d07b', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: 'b0510d9af441f11bdd91a008029c5c3884d6d3ce', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '88e174bb89a1a5439750bcd7a67f1982e72a08e1', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, this.renderClearSelectionButton(), h("div", { key: 'f020d5cc419669458b37c90e3626166ebe64cd46', ref: (el) => (this.menuEl = el), id: "menu", role: "menu", class: this.isGroupExpanded ? "hidden" : "", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.optgroupEls.map((optgroupEl) => {
|
|
297
297
|
return (h("button", { class: `menuitem group-btn ${optgroupEl.disabled ? "disabled" : ""}`, role: "menuitem", "data-label": optgroupEl.label, tabindex: -1, "aria-disabled": optgroupEl.disabled, onClick: () => {
|
|
298
298
|
if (!optgroupEl.disabled) {
|
|
299
299
|
optgroupEl.isExpanded = !optgroupEl.isExpanded;
|
|
300
300
|
forceUpdate(this.el);
|
|
301
301
|
}
|
|
302
302
|
}, onKeyDown: (ev) => this.handleMenuitemKeydown(ev) }, h("div", { class: "option-text" }, h("span", null, optgroupEl.label), this.renderSelectionCount(optgroupEl), optgroupEl.disabled && h("div", { class: "disabled-indication" }, "Disabled")), h("div", { class: "svg-icon svg-next" })));
|
|
303
|
-
})), h("div", { key: '
|
|
303
|
+
})), h("div", { key: '10a832d2f59a1d4b12add69575decdc50e468cbb', class: `option-list-wrapper ${this.isGroupExpanded ? "" : "hidden"}` }, h("slot", { key: 'd9a4e3f2fd69b9a8ff5da0718bad9f5fa5d0627d' }))), h("div", { key: 'beb4561d510171994dbc1b470f09a00c441c53dc', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: '559f0ea2ccbd83f99bb52cabcfc643286346d6c4', id: "nestedselect-announcement", "aria-live": "assertive", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
304
304
|
}
|
|
305
305
|
static get is() { return "wm-nested-select"; }
|
|
306
306
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,7 +48,7 @@ export class Optgroup {
|
|
|
48
48
|
handleDisabledAttribute(this.el, this.isDisabled);
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '112773f131899f3d54ef25a3613b661a189039b3' }, h("div", { key: 'ecf1dc4c6d34313a3855cd8a48516c15511c580a', class: `list-wrapper` }, h("priv-option-list", { key: '411201251651e8b8b5658462c570a835a1c02ed9', ref: (el) => (this.optionListEl = el), multiple: this.parentNestedSelect.multiple, search: this.parentNestedSelect.search, maxHeight: this.parentNestedSelect.constrainedMaxHeight, searchPlaceholder: this.parentNestedSelect.searchPlaceholder, optgroupLabel: this.label, selectAll: this.parentNestedSelect.selectAll, onOptionListAllSelected: () => this.wmOptgroupAllSelected.emit(), onOptionListAllDeselected: () => this.wmOptgroupAllDeselected.emit() }, h("slot", { key: '7f92977bf73bad336e11cdc2a48db3c09e1abd0f' })))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "wm-optgroup"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -143,7 +143,7 @@ export class Option {
|
|
|
143
143
|
this.parentOptionList.addEventListener("optionListSearchChanged", (ev) => this.handleSearch(ev));
|
|
144
144
|
}
|
|
145
145
|
render() {
|
|
146
|
-
return (h(Host, { key: '
|
|
146
|
+
return (h(Host, { key: 'ddcce18a738c96e04821be241dbe60d7a66793a8', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: '696f04668d92846969f4b87fde35bae2b3d7815b', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { key: '7c7806d75157dc65d04eb5ee8fb45ec660cbaf8a', class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { key: 'ef04b8bb3cbe625ca3db957565946be82734b8eb', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: '1701cb9a834c9a592e44a7e3e96995f7257cf857', class: "sr-only" }, this.el.textContent)), h("div", { key: 'd42fa750da7788e72ff675e13289d14e0c7ef397', class: "subinfo" }, this.subinfo)));
|
|
147
147
|
}
|
|
148
148
|
static get is() { return "wm-option"; }
|
|
149
149
|
static get encapsulation() { return "shadow"; }
|
|
@@ -323,14 +323,14 @@ export class Select {
|
|
|
323
323
|
}
|
|
324
324
|
render() {
|
|
325
325
|
const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
|
|
326
|
-
return (h(Host, { key: '
|
|
326
|
+
return (h(Host, { key: '0c15e3c853e8061fd3482900a5c9e79099e18072', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '86953fd45cb2e305629b0e688e97ed16038406e8', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '5758544de948ec407faea3909f45b9065e2ef857', class: "label-wrapper" }, h("label", { key: '4f32e8a8996f2926519151fe0d8256f8af620ba1', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
|
|
327
327
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
328
|
-
this.labelPosition !== "none" && this.requiredField && (h("span", { key: '
|
|
328
|
+
this.labelPosition !== "none" && this.requiredField && (h("span", { key: 'a72a5517f26e297549dcd0ac057ce7b19e1acfbd', class: "required" }, h("span", { key: '60bd893e2a2ed1031167bfe835cfb310133cd56e', class: "sr-only" }, globalMessages.requiredField), h("span", { key: 'bff8c8faee5517d83844c2dd22528dbc59ea3b42', "aria-hidden": "true" }, "*")))), h("div", { key: 'a9f9d86a709a21d312ecf0f008af1f29bfacf23c', class: "button-wrapper" }, h("button", { key: '6bae8ba99a52af84870a5861132e625de8f341f1', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "info error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: '65ed5b61f0d0f1e7df3efcb7eb05e69a788d985f', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: '6eb71f7cb727bb9ef93a4780a61fcae3a4c5dc87', class: "button-text" }, this.setButtonText()), showSubinfo && h("span", { key: '7d71e73f4a5609c32c7b0bbd32a7c618f67204c6', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: '946a6a2445eca2ecddaf0703672074f0f7aab906', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '359b34e29578c693cd11377208ad4c14f8da3699', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '8570e7a0eda0afc398d312de70fd7ab5edabfa0b',
|
|
329
329
|
// is-open is for the CSS transition in modern browsers
|
|
330
330
|
// hidden is to wait for position calculations in Firefox
|
|
331
331
|
class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "upward" : ""}`, id: "dropdown", popover: "auto", ref: (el) => (this.dropdownEl = el),
|
|
332
332
|
// @ts-ignore -- don't tell typescript but we're in the future
|
|
333
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '
|
|
333
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '365d65d779b224a382c8910990d8fc5a8b9782fc', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
|
|
334
334
|
this.dropdownEl.hidePopover();
|
|
335
335
|
}, onOptionListAllSelected: () => {
|
|
336
336
|
this.returnFocus = true;
|
|
@@ -338,7 +338,7 @@ export class Select {
|
|
|
338
338
|
}, onOptionListAllDeselected: () => {
|
|
339
339
|
this.returnFocus = true;
|
|
340
340
|
this.wmSelectAllDeselected.emit();
|
|
341
|
-
} }, h("slot", { key: '
|
|
341
|
+
} }, h("slot", { key: '14e69ec589802c881b15056f26a316604231b953' }))), this.info && (h("div", { key: '874ecb2e44f633f9270d2ec2a75c8fcbd8c502c6', class: "info" }, this.info)), h("div", { key: 'c0092eabe951be48b32cfc552acff972ba2e1a85', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: '4f0d41664246dbbb7dec502058814198d0b8195f', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
342
342
|
}
|
|
343
343
|
static get is() { return "wm-select"; }
|
|
344
344
|
static get encapsulation() { return "shadow"; }
|
|
@@ -335,7 +335,7 @@ export class ActionMenu {
|
|
|
335
335
|
return null;
|
|
336
336
|
}
|
|
337
337
|
render() {
|
|
338
|
-
return (h(Host, { key: '
|
|
338
|
+
return (h(Host, { key: '69913d953807a3170a37c14ec90374fb9b1d06f5', onBlur: () => this.close(false) }, h("div", { key: '7331521a42c349f0a8d413a8a5de1fc8c1cf669d', class: getTextDir() }, h("button", { key: '7e0f1be8ab511c85cf157610df71c31eaf3476b0', ref: (el) => (this.menubtnEl = el), id: "menubtn", class: `wm-button -${this.internalButtonType}${this.darkMode ? " dark" : ""}${this.isTabbing ? " user-is-tabbing" : ""}`, disabled: this.disabled, "aria-label": this.internalButtonType === "icononly"
|
|
339
339
|
? this.labelForIdenticalButtons || this.tooltip
|
|
340
340
|
: this.labelForIdenticalButtons || undefined, "aria-expanded": this.isExpanded ? "true" : "false", "aria-haspopup": "menu", popoverTarget: "menu", popoverTargetAction: "toggle", onMouseEnter: () => this.actionMenuType === "icon" &&
|
|
341
341
|
showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onMouseLeave: () => hideTooltip(), onFocus: () => this.isTabbing &&
|
|
@@ -343,9 +343,9 @@ export class ActionMenu {
|
|
|
343
343
|
showTooltip(this.tooltipPosition || this.horizontalPosition, this.menubtnEl, this.tooltip), onBlur: (ev) => {
|
|
344
344
|
hideTooltip();
|
|
345
345
|
this.handleButtonBlur(ev);
|
|
346
|
-
} }, this.actionMenuType === "icon" && (h("span", { key: '
|
|
346
|
+
} }, this.actionMenuType === "icon" && (h("span", { key: '20f9b04965a29040eedc9101888b4f19e2404a04', class: "svg-icon svg-more-options", style: { "--icon-size": "24px" } })), this.actionMenuType !== "icon" && h("span", { key: '1d621e6a8e82afba51b8ad517aa2305d96fb195c', class: "button-text" }, this.buttonText), (this.actionMenuType === "selector" || this.actionMenuType === "selector-primary") && (h("div", { key: 'f074e4b5dd035dec5414e6dd376bb4cc99de26e9', class: "selector-icon svg-icon svg-expand-more" }))), h("div", { key: 'b56cf79575ba14b6b79b297d96b0419368821273', class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "open-up" : ""} ${this.horizontalPosition}`, id: "menu", popover: "auto", tabindex: -1, role: "menu", ref: (el) => (this.dropdownEl = el),
|
|
347
347
|
// @ts-ignore -- don't tell typescript but we're in the future
|
|
348
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: '
|
|
348
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("slot", { key: '54889dffdec22f8a353698b51b6036324b9adc3b' })))));
|
|
349
349
|
}
|
|
350
350
|
static get is() { return "wm-action-menu"; }
|
|
351
351
|
static get encapsulation() { return "shadow"; }
|
|
@@ -249,7 +249,7 @@ export class Button {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
render() {
|
|
252
|
-
return (h(Host, { key: '
|
|
252
|
+
return (h(Host, { key: '45c097cfa42faee14d57d673dfdfc0dc5eaf2e28', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: 'd2e49a842147c1aece51a067627649bd30a8b75d', id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: (ev) => this.handleMouseEnter(ev), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.handleFocus(ev), onBlur: () => hideTooltip(), onClick: () => hideTooltip() }, (this.icon || this.buttonType.endsWith("-ai")) && this.renderIcon(), (!this.buttonType.startsWith("navigational") && !this.buttonType.startsWith("icononly")) && (h("span", { key: '56a427048076148c1e5b99633530e94215fa2989', class: "button-text" }, h("slot", { key: '0612c8fb5f2e0abb994ac97bced2ccddf54a0acb' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: 'd0d6780ad0bee7bef186a7576154c1c20cab1d2c', class: "selector-icon svg-icon svg-expand-more" })))));
|
|
253
253
|
}
|
|
254
254
|
static get is() { return "wm-button"; }
|
|
255
255
|
static get encapsulation() { return "shadow"; }
|
|
@@ -187,7 +187,7 @@ export class File {
|
|
|
187
187
|
return (h("div", { class: `file-wrapper` }, h("div", { class: `file ${this.errorMessage ? "--error" : ""} ${this.isCondensed ? "condensed" : ""} ${this.isExtraCondensed ? "extra-condensed" : ""}` }, this.renderFileName(), showRightGroup && (h("div", { class: "right-group" }, !this.isExtraCondensed && this.renderFileInfo(), this.fileActions !== "" && this.renderFileControls())), this.errorMessage && (h("div", { class: "right-group" }, h("wm-button", { "permanently-delete": true, "button-type": "textonly", "label-for-identical-buttons": this.generateClearButtonLabel(this.name), onClick: () => this.wmFileErrorCleared.emit() }, this.clearButtonText))), this.progress == 100 && h("span", { class: "svg-icon svg-success" })), this.errorMessage && h("div", { class: "error-message" }, this.errorMessage)));
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
190
|
-
return h(Host, { key: '
|
|
190
|
+
return h(Host, { key: '19151d50d2b01dd9db64aaf4b908fc95456ff3b7', role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
|
|
191
191
|
}
|
|
192
192
|
static get is() { return "wm-file"; }
|
|
193
193
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@ export class FileList {
|
|
|
4
4
|
this.showInfo = "last-updated";
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: 'fb7803d26479493a92b7f9611cb3f5680660a5ba', role: "list", class: "list-wrapper" }, h("slot", { key: '0ad53e2213af396c9b29fb7e7fd4d9fe80399e45' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "wm-file-list"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -155,7 +155,7 @@ export class Flyout {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
render() {
|
|
158
|
-
return (h(Host, { key: '
|
|
158
|
+
return (h(Host, { key: 'c1546402148e441545a292d9ac795adfac725fe3' }, h("dialog", { key: '0ac428de73ee5ddc2ca3d539c247d2d548f51101', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: 'b38a16a9e97a98ce84b6a09522cca6dce7f8837f', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: '270b3b0ed4e59ba61a74202a96b4f75fce4a8c94', class: "flyout-content" }, h("slot", { key: '765d86ef84594c4b0a713d4ef8df3649c3152067' })), this.renderFooter(), h("div", { key: '7c3fb50b72a44852964eac51db31192af176c54c', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
|
|
159
159
|
}
|
|
160
160
|
static get is() { return "wm-flyout"; }
|
|
161
161
|
static get encapsulation() { return "shadow"; }
|
|
@@ -107,7 +107,7 @@ export class Input {
|
|
|
107
107
|
: `info error`;
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (h("div", { key: '
|
|
110
|
+
return (h("div", { key: '3580f19d6c2f1fc0cc5c58c13343e435d55233f8', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: '5827ef923458400025e77de71fad2c80b1b095bd', class: "label-wrapper" }, h("label", { key: '7d1dc047b0c6bb2c14bc61a40445683277ea2ae6', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: 'c586de9e5cd0210a33619453a1ea4eacc1640822', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '0292d93aefa4007d05d31f01ac44eedf70d59d99', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'c82f5e79d3286d5b1d13e1e6d2f926b54c0c5403', class: "inner-wrapper" }, h("div", { key: '61aff4b5c1c880306a43899ade2431a4e3939b16', class: "text-after-wrapper" }, h("div", { key: 'c697b2f407a7b54ae5f971490e013a912a73de72', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '1983539be2e0a4e1aafa889910788b0fadbecf44', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '78fbe9432521856d2c86e43e16296fc01f1b07b8', ref: (el) => (this.inputEl = el), id: "inputfield", disabled: this.isDisabled, "aria-describedby": this.descriptors(), onInput: (ev) => this.handleInput(ev), onKeyDown: (ev) => this.handleKeyDown(ev), onBlur: () => this.handleBlur(), onFocus: () => this.handleFocus(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, maxLength: this.characterLimit || undefined, type: this.type, step: this.step, max: this.max, min: this.min, value: this.el.value }), this.symbolAfter && (h("span", { key: 'abe682508a99df6475ce4ca4706926c11c1704c9', class: "symbol", id: "symbol-after" }, this.symbolAfter)), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: "character-count" }, this.charCount, "/", this.characterLimit)) : ("")), this.textAfter && (h("span", { key: 'b6e60134de240bb256d75ff55744fe4df1e6c795', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: '0a058e1a91250f96a04807419e73c0cc89519364', id: "info", class: "info" }, this.info)), h("div", { key: '21432ca07ec97686e3073297cece2013e5cc94e6', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: 'fe235ceffb5fd33b4a04eac4a87cd24579bbcbc3', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "wm-input"; }
|
|
113
113
|
static get encapsulation() { return "shadow"; }
|
|
@@ -95,7 +95,7 @@ export class Menuitem {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: 'c4acd31a2ed44a310abfedbac8979553d897d786', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '641ab7d318bf9aa2c58c598b2a70c961ea8decf1', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '3c9b0be9cbffbcf0846d0951943dcfdd0f60b323', class: "main-text" }, this.icon && this.renderIcon(), this.el.textContent), this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "wm-menuitem"; }
|
|
101
101
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,7 +31,7 @@ export class ModalFooter {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: '3f8bf20b91042cf4cffe66f699f69e2d3b4bf2a1', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '931e2db6fc146360aa6c30475a9cb5a7c7362abb', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'be69d329e1ff91222849469a490ebae0c9a79740', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '35e8f32d574a5d394aeeb5b863a351afe2caa63c', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '78059456220627f3397467ef676d4c6479c72040', "button-type": this.deleteStyle ? "secondary" : "primary", "permanently-delete": this.deleteStyle, onClick: () => this.emitParentPrimaryEvent(), disabled: this.primaryActionDisabled, id: `wm-primary-${this.uid}`, ref: (el) => (!this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.primaryText))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "wm-modal-footer"; }
|
|
37
37
|
static get originalStyleUrls() {
|
|
@@ -22,7 +22,7 @@ export class ModalHeader {
|
|
|
22
22
|
parentModal.emitCloseEvent();
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'bbeb92788540f1ced0f431b9e4de2f840411ba2b' }, h("div", { key: '80cef5fed98c11c17b053b253f89a8bec6cce125', class: "wm-wrapper" }, h("div", { key: '7de34c034dd881c921ae869b13c4b32a0eabb384' }, h("h2", { key: '97d040fc65373a77ab92f1d0dea82eaab0b7dd55', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: '5ea4bbe018ffa23d11a30cba541e0acbba9d90fc', class: "subtitle" }, this.subheading))), h("wm-button", { key: '9eccd26892d01c1daf642f628762f759e697f375', "button-type": "navigational", icon: "#close", tooltip: globalMessages.close, "tooltip-position": "left", id: `wm-modal-close-${this.uid}`, ref: (el) => (this.closeButtonEl = el), onClick: () => this.emitParentCloseEvent() }))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "wm-modal-header"; }
|
|
28
28
|
static get originalStyleUrls() {
|