@watermarkinsights/ripple 5.20.0-alpha.9 → 5.21.0-alpha.0
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-36cafd76.js → app-globals-bbe1db66.js} +1 -1
- package/dist/cjs/{chartFunctions-ce91b2c9.js → chartFunctions-369d5c6e.js} +1 -1
- package/dist/cjs/{functions-ea3eae05.js → functions-505d6601.js} +106 -24
- package/dist/cjs/{intl-ea56dd40.js → intl-e7d7e719.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/priv-calendar.cjs.entry.js +105 -84
- package/dist/cjs/priv-chart-popover.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 +3 -3
- package/dist/cjs/wm-button.cjs.entry.js +2 -2
- package/dist/cjs/wm-chart.cjs.entry.js +3 -3
- package/dist/cjs/wm-date-range.cjs.entry.js +1 -1
- package/dist/cjs/wm-datepicker.cjs.entry.js +1 -1
- 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 +25 -12
- 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 +4 -4
- package/dist/cjs/wm-snackbar.cjs.entry.js +4 -4
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +14 -29
- 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/priv-calendar/priv-calendar.css +61 -35
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +106 -83
- 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.css +5 -10
- package/dist/collection/components/selects/wm-option/wm-option.js +1 -1
- package/dist/collection/components/selects/wm-select/wm-select.css +0 -1
- package/dist/collection/components/selects/wm-select/wm-select.js +20 -7
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +1 -1
- 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.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.css +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +2 -13
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +2 -2
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +8 -29
- 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 +9 -0
- package/dist/esm/{app-globals-89e7e2af.js → app-globals-fde74c92.js} +1 -1
- package/dist/esm/{chartFunctions-613e9c87.js → chartFunctions-02a60556.js} +1 -1
- package/dist/esm/{functions-38e392cb.js → functions-14aaf49d.js} +106 -25
- package/dist/esm/{intl-0b8f342e.js → intl-7b5f8017.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/priv-calendar.entry.js +105 -84
- package/dist/esm/priv-chart-popover.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 +3 -3
- package/dist/esm/wm-button.entry.js +2 -2
- package/dist/esm/wm-chart.entry.js +3 -3
- package/dist/esm/wm-date-range.entry.js +1 -1
- package/dist/esm/wm-datepicker.entry.js +1 -1
- 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 +25 -12
- 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 +4 -4
- package/dist/esm/wm-snackbar.entry.js +4 -4
- package/dist/esm/wm-tab-item_3.entry.js +14 -29
- 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-89e7e2af.js → app-globals-fde74c92.js} +1 -1
- package/dist/esm-es5/{chartFunctions-613e9c87.js → chartFunctions-02a60556.js} +1 -1
- package/dist/esm-es5/functions-14aaf49d.js +1 -0
- package/dist/esm-es5/{intl-0b8f342e.js → intl-7b5f8017.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.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.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-4df8346a.entry.js → p-0460b298.entry.js} +1 -1
- package/dist/ripple/{p-41664372.entry.js → p-07dd157d.entry.js} +1 -1
- package/dist/ripple/{p-b921ee01.entry.js → p-0a47f460.entry.js} +1 -1
- package/dist/ripple/{p-667fdcbb.system.entry.js → p-0c737405.system.entry.js} +1 -1
- package/dist/ripple/{p-908057b2.entry.js → p-0eb56759.entry.js} +1 -1
- package/dist/ripple/{p-44cc05f6.system.entry.js → p-0ed21cab.system.entry.js} +1 -1
- package/dist/ripple/{p-9609d8e7.entry.js → p-12f39b2f.entry.js} +1 -1
- package/dist/ripple/{p-2b7259cb.system.entry.js → p-135ecb41.system.entry.js} +1 -1
- package/dist/ripple/{p-f4390a0a.system.entry.js → p-17d9c6b5.system.entry.js} +1 -1
- package/dist/ripple/{p-118093e1.entry.js → p-1ea4427b.entry.js} +1 -1
- package/dist/ripple/{p-92c8361f.js → p-220fa36a.js} +1 -1
- package/dist/ripple/{p-96f86eb4.system.entry.js → p-223efa2f.system.entry.js} +1 -1
- package/dist/ripple/{p-7134a305.system.entry.js → p-22b8d0a4.system.entry.js} +1 -1
- package/dist/ripple/{p-c7f3ef7f.system.entry.js → p-241e4847.system.entry.js} +1 -1
- package/dist/ripple/p-28f191bf.system.js +1 -0
- package/dist/ripple/{p-7edd25f7.system.js → p-2ecde7a9.system.js} +1 -1
- package/dist/ripple/{p-17964357.system.entry.js → p-321d4148.system.entry.js} +1 -1
- package/dist/ripple/{p-8e2f3a45.entry.js → p-365ab12b.entry.js} +1 -1
- package/dist/ripple/{p-65abcbb4.system.js → p-3967eef9.system.js} +1 -1
- package/dist/ripple/{p-6a70dc0b.system.entry.js → p-3b9ddb71.system.entry.js} +1 -1
- package/dist/ripple/{p-960d2cf0.system.entry.js → p-3ef56754.system.entry.js} +1 -1
- package/dist/ripple/p-3ef6eadd.entry.js +1 -0
- package/dist/ripple/{p-56b6d9f6.entry.js → p-3fb09574.entry.js} +1 -1
- package/dist/ripple/{p-00eaa361.system.entry.js → p-4086d2f2.system.entry.js} +1 -1
- package/dist/ripple/{p-4d0abf7a.entry.js → p-4cc3a15f.entry.js} +1 -1
- package/dist/ripple/{p-91c5b14e.system.entry.js → p-4e9f0f73.system.entry.js} +1 -1
- package/dist/ripple/{p-b1fb99e4.system.entry.js → p-4edc18b1.system.entry.js} +1 -1
- package/dist/ripple/{p-26ffcd83.entry.js → p-4f37838a.entry.js} +1 -1
- package/dist/ripple/{p-5405df80.system.entry.js → p-533290cd.system.entry.js} +1 -1
- package/dist/ripple/{p-fbad04d7.system.entry.js → p-58b7509e.system.entry.js} +1 -1
- package/dist/ripple/{p-1a89139d.system.entry.js → p-5e15c72a.system.entry.js} +1 -1
- package/dist/ripple/{p-b0da7ad4.system.entry.js → p-5fbc65d9.system.entry.js} +1 -1
- package/dist/ripple/{p-3612ee73.entry.js → p-61f780ab.entry.js} +1 -1
- package/dist/ripple/{p-23e1112c.system.entry.js → p-6d0f7f1d.system.entry.js} +1 -1
- package/dist/ripple/{p-d2ae64dd.js → p-700fa3a5.js} +1 -1
- package/dist/ripple/{p-ecd1c2ba.entry.js → p-71a3be1c.entry.js} +1 -1
- package/dist/ripple/{p-56e376b2.system.entry.js → p-736dc15d.system.entry.js} +1 -1
- package/dist/ripple/{p-39a4934f.entry.js → p-742451fa.entry.js} +1 -1
- package/dist/ripple/{p-7c3bf608.entry.js → p-7a189f76.entry.js} +1 -1
- package/dist/ripple/p-7a68fd88.system.entry.js +1 -0
- package/dist/ripple/{p-f9bbb123.system.entry.js → p-86113458.system.entry.js} +1 -1
- package/dist/ripple/{p-2db6573e.system.entry.js → p-8754858a.system.entry.js} +1 -1
- package/dist/ripple/{p-a9ddfa2c.entry.js → p-886b50fb.entry.js} +1 -1
- package/dist/ripple/p-8e59cec0.entry.js +1 -0
- package/dist/ripple/{p-4602304a.system.entry.js → p-8eba876d.system.entry.js} +1 -1
- package/dist/ripple/{p-3133ce3c.system.entry.js → p-9a691e9d.system.entry.js} +1 -1
- package/dist/ripple/{p-d815809f.js → p-9f10c71b.js} +1 -1
- package/dist/ripple/{p-86a61a2a.entry.js → p-9f27c966.entry.js} +1 -1
- package/dist/ripple/{p-507ea41f.system.entry.js → p-a0acef05.system.entry.js} +1 -1
- package/dist/ripple/p-a0b38e60.system.js +1 -0
- package/dist/ripple/{p-0825151e.entry.js → p-ace61ebd.entry.js} +1 -1
- package/dist/ripple/p-ad409bbe.system.entry.js +1 -0
- package/dist/ripple/{p-4b8f7d1e.entry.js → p-b275c070.entry.js} +1 -1
- package/dist/ripple/{p-abcdd7be.system.entry.js → p-b3682bbf.system.entry.js} +1 -1
- package/dist/ripple/{p-e5c34af5.system.entry.js → p-b5bfb1a3.system.entry.js} +1 -1
- package/dist/ripple/{p-72e1fdb5.entry.js → p-be8f0d4c.entry.js} +1 -1
- package/dist/ripple/{p-f91fc18d.entry.js → p-c68699f5.entry.js} +1 -1
- package/dist/ripple/{p-0bce3f83.entry.js → p-c9c76589.entry.js} +1 -1
- package/dist/ripple/{p-a5c5c64c.entry.js → p-cc85cd9b.entry.js} +1 -1
- package/dist/ripple/{p-a7cde3fc.entry.js → p-d22239ed.entry.js} +1 -1
- package/dist/ripple/{p-9e89655f.entry.js → p-d3aa80bc.entry.js} +1 -1
- package/dist/ripple/{p-a14dee02.system.entry.js → p-d66d99cd.system.entry.js} +1 -1
- package/dist/ripple/{p-bde7e77b.system.entry.js → p-d8e7f0ab.system.entry.js} +1 -1
- package/dist/ripple/{p-1fcf0ea8.system.entry.js → p-dab72fca.system.entry.js} +1 -1
- package/dist/ripple/{p-8d1e0f23.system.entry.js → p-dca07826.system.entry.js} +1 -1
- package/dist/ripple/p-e72235c6.js +1 -0
- package/dist/ripple/{p-60e16c79.entry.js → p-e73d5896.entry.js} +1 -1
- package/dist/ripple/{p-5e7893f0.entry.js → p-e9038796.entry.js} +1 -1
- package/dist/ripple/{p-2508b801.entry.js → p-eb68ec38.entry.js} +1 -1
- package/dist/ripple/{p-957f13fb.entry.js → p-ecafbfba.entry.js} +1 -1
- package/dist/ripple/{p-31bac55d.entry.js → p-ef3a4568.entry.js} +1 -1
- package/dist/ripple/{p-d9c7206b.system.entry.js → p-f1dea7a8.system.entry.js} +1 -1
- package/dist/ripple/{p-9202d9e9.entry.js → p-f3216137.entry.js} +1 -1
- package/dist/ripple/{p-ee96cea8.entry.js → p-f5c59ec1.entry.js} +1 -1
- package/dist/ripple/{p-ee89aa62.system.js → p-f768a9a5.system.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/datepickers/priv-calendar/priv-calendar.d.ts +8 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +3 -2
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +0 -1
- package/dist/types/components.d.ts +0 -2
- package/dist/types/global/functions.d.ts +1 -0
- package/package.json +2 -2
- package/dist/esm-es5/functions-38e392cb.js +0 -1
- package/dist/ripple/p-24594868.system.entry.js +0 -1
- package/dist/ripple/p-608971f2.system.js +0 -1
- package/dist/ripple/p-8ec6ec53.entry.js +0 -1
- package/dist/ripple/p-b511ebfd.js +0 -1
- package/dist/ripple/p-b5739e00.system.js +0 -1
- package/dist/ripple/p-e660d0b8.system.entry.js +0 -1
- package/dist/ripple/p-f11198be.entry.js +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { intl, dateFind, getMonthLength, makeISO, calendar_months, weekdays } from "../../../global/functions";
|
|
2
|
+
import { intl, dateFind, getMonthLength, makeISO, calendar_months, weekdays, clampDate, } from "../../../global/functions";
|
|
3
|
+
import { generateId } from "../../../global/functions";
|
|
4
|
+
import { showTooltip, hideTooltip } from "../../../global/functions";
|
|
3
5
|
export class PrivCalendar {
|
|
4
6
|
constructor() {
|
|
5
7
|
this.today = this.dateToISO(new Date());
|
|
@@ -9,6 +11,27 @@ export class PrivCalendar {
|
|
|
9
11
|
id: "date.instructions",
|
|
10
12
|
defaultMessage: "Use arrows to select a date in the table. Tab left or right to buttons for selecting previous month, next month, or the month selection table.",
|
|
11
13
|
});
|
|
14
|
+
this.previousMonthButtonLabel = intl.formatMessage({
|
|
15
|
+
id: "date.selectPreviousMonth",
|
|
16
|
+
defaultMessage: "View previous month",
|
|
17
|
+
description: "Calendar button",
|
|
18
|
+
});
|
|
19
|
+
this.previousYearButtonLabel = intl.formatMessage({
|
|
20
|
+
id: "date.selectPreviousYear",
|
|
21
|
+
defaultMessage: "View previous year",
|
|
22
|
+
description: "Calendar button",
|
|
23
|
+
});
|
|
24
|
+
this.nextMonthButtonLabel = intl.formatMessage({
|
|
25
|
+
id: "date.selectNextMonth",
|
|
26
|
+
defaultMessage: "View next month",
|
|
27
|
+
description: "Calendar button",
|
|
28
|
+
});
|
|
29
|
+
this.nextYearButtonLabel = intl.formatMessage({
|
|
30
|
+
id: "date.selectNextYear",
|
|
31
|
+
defaultMessage: "View next year",
|
|
32
|
+
description: "Calendar button",
|
|
33
|
+
});
|
|
34
|
+
this.uid = generateId();
|
|
12
35
|
this._focus = {
|
|
13
36
|
year: {
|
|
14
37
|
asString: () => dateFind.year.asString(this.focusDate),
|
|
@@ -37,11 +60,11 @@ export class PrivCalendar {
|
|
|
37
60
|
},
|
|
38
61
|
increase: (n) => {
|
|
39
62
|
const newDate = dateFind.month.increase(this.focusDate, n);
|
|
40
|
-
this.focusDate = newDate;
|
|
63
|
+
this.focusDate = clampDate(newDate);
|
|
41
64
|
},
|
|
42
65
|
decrease: (n) => {
|
|
43
66
|
const newDate = dateFind.month.decrease(this.focusDate, n);
|
|
44
|
-
this.focusDate = newDate;
|
|
67
|
+
this.focusDate = clampDate(newDate);
|
|
45
68
|
},
|
|
46
69
|
},
|
|
47
70
|
day: {
|
|
@@ -238,6 +261,7 @@ export class PrivCalendar {
|
|
|
238
261
|
return Array.from(this.el.querySelectorAll(".header-btn"));
|
|
239
262
|
}
|
|
240
263
|
handleKey(ev) {
|
|
264
|
+
const activeEl = (document.activeElement.shadowRoot || document).activeElement;
|
|
241
265
|
switch (ev.key) {
|
|
242
266
|
case " ":
|
|
243
267
|
case "Enter":
|
|
@@ -286,55 +310,55 @@ export class PrivCalendar {
|
|
|
286
310
|
}
|
|
287
311
|
break;
|
|
288
312
|
case "ArrowLeft":
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
this.
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
313
|
+
if (activeEl.classList.contains("date-cell") || activeEl.classList.contains("month")) {
|
|
314
|
+
ev.preventDefault();
|
|
315
|
+
if (this.view === "day") {
|
|
316
|
+
this._focus.day.decrease(1);
|
|
317
|
+
this.focusCell();
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
this.monthButtonFocus.decrease(1);
|
|
321
|
+
}
|
|
297
322
|
}
|
|
298
323
|
break;
|
|
299
324
|
case "ArrowRight":
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
this.
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
325
|
+
if (activeEl.classList.contains("date-cell") || activeEl.classList.contains("month")) {
|
|
326
|
+
ev.preventDefault();
|
|
327
|
+
if (this.view === "day") {
|
|
328
|
+
this._focus.day.increase(1);
|
|
329
|
+
this.focusCell();
|
|
330
|
+
}
|
|
331
|
+
else {
|
|
332
|
+
this.monthButtonFocus.increase(1);
|
|
333
|
+
}
|
|
307
334
|
}
|
|
308
335
|
break;
|
|
309
336
|
case "ArrowUp":
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
this.
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
337
|
+
if (activeEl.classList.contains("date-cell") || activeEl.classList.contains("month")) {
|
|
338
|
+
ev.preventDefault();
|
|
339
|
+
if (this.view === "day") {
|
|
340
|
+
this._focus.day.decrease(7);
|
|
341
|
+
this.focusCell();
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
this.monthButtonFocus.decrease(3);
|
|
345
|
+
}
|
|
317
346
|
}
|
|
318
347
|
break;
|
|
319
348
|
case "ArrowDown":
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
//If the down arrow is pressed from the month button or the arrow buttons, focus should shift to the current cell in focus
|
|
323
|
-
if (!(document.activeElement.shadowRoot || document).activeElement.classList.contains("date-cell")) {
|
|
324
|
-
this.focusCell();
|
|
325
|
-
break;
|
|
326
|
-
}
|
|
327
|
-
this._focus.day.increase(7);
|
|
349
|
+
if (activeEl.classList.contains("arw-btn")) {
|
|
350
|
+
ev.preventDefault();
|
|
328
351
|
this.focusCell();
|
|
329
352
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
353
|
+
if (activeEl.classList.contains("date-cell") || activeEl.classList.contains("month")) {
|
|
354
|
+
ev.preventDefault();
|
|
355
|
+
if (this.view === "day") {
|
|
356
|
+
this._focus.day.increase(7);
|
|
334
357
|
this.focusCell();
|
|
335
|
-
break;
|
|
336
358
|
}
|
|
337
|
-
this.
|
|
359
|
+
else if (this.view === "month") {
|
|
360
|
+
this.monthButtonFocus.increase(3);
|
|
361
|
+
}
|
|
338
362
|
}
|
|
339
363
|
break;
|
|
340
364
|
}
|
|
@@ -466,34 +490,50 @@ export class PrivCalendar {
|
|
|
466
490
|
this.focusCell();
|
|
467
491
|
} }, month));
|
|
468
492
|
}
|
|
493
|
+
renderHeader() {
|
|
494
|
+
const previousButtonLabel = this.view == "day" ? this.previousMonthButtonLabel : this.previousYearButtonLabel;
|
|
495
|
+
const nextButtonLabel = this.view == "day" ? this.nextMonthButtonLabel : this.nextYearButtonLabel;
|
|
496
|
+
return (h("div", { class: "calendar-header" }, h("button", { onClick: () => {
|
|
497
|
+
if (this.view == "day") {
|
|
498
|
+
this._focus.month.decrease(1);
|
|
499
|
+
}
|
|
500
|
+
else if (this.view == "month") {
|
|
501
|
+
this._focus.year.decrease(1);
|
|
502
|
+
}
|
|
503
|
+
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": previousButtonLabel, onMouseOver: () => showTooltip("right", this.prevBtnEl, previousButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("right", this.prevBtnEl, previousButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-previous" })), h("span", { class: "header-title" }, calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), this.renderToggleButton(), h("button", { onClick: () => {
|
|
504
|
+
if (this.view == "day") {
|
|
505
|
+
this._focus.month.increase(1);
|
|
506
|
+
}
|
|
507
|
+
else if (this.view == "month") {
|
|
508
|
+
this._focus.year.increase(1);
|
|
509
|
+
}
|
|
510
|
+
}, "aria-label": nextButtonLabel, class: "header-btn arw-btn", ref: (el) => (this.nextBtnEl = el), onMouseOver: () => showTooltip("right", this.nextBtnEl, nextButtonLabel), onMouseLeave: () => hideTooltip(), onFocus: () => showTooltip("right", this.nextBtnEl, nextButtonLabel), onBlur: () => hideTooltip() }, h("span", { class: "svg-icon svg-next" }))));
|
|
511
|
+
}
|
|
512
|
+
renderToggleButton() {
|
|
513
|
+
return (h("div", { class: "toggle-button" }, h("div", { class: "input-wrapper left" }, h("input", { type: "radio", id: `month-radio-${this.uid}`, "aria-label": intl.formatMessage({
|
|
514
|
+
id: "date.monthView",
|
|
515
|
+
defaultMessage: "Month view",
|
|
516
|
+
description: "Calendar button to change to month view",
|
|
517
|
+
}), name: `rdo-${this.uid}`, class: "toggle-radio-input", checked: this.view === "day", onClick: () => (this.view = "day") }), h("label", { htmlFor: `month-radio-${this.uid}`, class: "radio" }, intl.formatMessage({
|
|
518
|
+
id: "date.month",
|
|
519
|
+
defaultMessage: "Month",
|
|
520
|
+
description: "Calendar button to change to month view",
|
|
521
|
+
}))), h("div", { class: "input-wrapper right" }, h("input", { type: "radio", id: `year-radio-${this.uid}`, "aria-label": intl.formatMessage({
|
|
522
|
+
id: "date.yearView",
|
|
523
|
+
defaultMessage: "Year view",
|
|
524
|
+
description: "Calendar button to change to year view",
|
|
525
|
+
}), name: `rdo-${this.uid}`, class: "toggle-radio-input", checked: this.view === "month", onClick: () => (this.view = "month") }), h("label", { htmlFor: `year-radio-${this.uid}`, class: "radio" }, intl.formatMessage({
|
|
526
|
+
id: "date.year",
|
|
527
|
+
defaultMessage: "Year",
|
|
528
|
+
description: "Calendar button to change to year view",
|
|
529
|
+
})))));
|
|
530
|
+
}
|
|
469
531
|
renderDayView() {
|
|
470
532
|
const dates = this.getCalendarDates(this.focusDate);
|
|
471
533
|
// the start and end date, set in either of the calendars
|
|
472
534
|
const eitherStart = this.startDate || (this.otherCalEl && this.otherCalEl.startDate);
|
|
473
535
|
const eitherEnd = this.endDate || (this.otherCalEl && this.otherCalEl.endDate);
|
|
474
|
-
return (h("div", {
|
|
475
|
-
this._focus.month.decrease(1);
|
|
476
|
-
}, class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el), "aria-label": intl.formatMessage({
|
|
477
|
-
id: "date.selectPreviousMonth",
|
|
478
|
-
defaultMessage: "Select previous month",
|
|
479
|
-
description: "Calendar button",
|
|
480
|
-
}) }, h("span", { class: "svg-icon svg-previous" })), h("div", { id: "popup-title-month", class: "header-btn title-box", tabindex: "0", role: "button", onKeyDown: (ev) => {
|
|
481
|
-
if (ev.key === "Enter" || ev.key === " ") {
|
|
482
|
-
ev.preventDefault();
|
|
483
|
-
this.view = "month";
|
|
484
|
-
}
|
|
485
|
-
}, onClick: () => (this.view = "month"), "aria-label": `${intl.formatMessage({
|
|
486
|
-
id: "date.currentMonth",
|
|
487
|
-
defaultMessage: "current month",
|
|
488
|
-
description: "Calendar button",
|
|
489
|
-
})}: ${calendar_months[this._focus.month.asInt() - 1]}
|
|
490
|
-
${this._focus.year.asString()}.`, "aria-describedby": "month-title" }, h("span", { class: "title", "aria-hidden": "true" }, calendar_months[this._focus.month.asInt() - 1], " ", this._focus.year.asString()), h("span", { class: "svg-icon svg-expand-more" })), h("button", { onClick: () => {
|
|
491
|
-
this._focus.month.increase(1);
|
|
492
|
-
}, "aria-label": intl.formatMessage({
|
|
493
|
-
id: "date.selectNextMonth",
|
|
494
|
-
defaultMessage: "Select next month",
|
|
495
|
-
description: "Calendar button",
|
|
496
|
-
}), class: "header-btn arw-btn" }, h("span", { class: "svg-icon svg-next" }))), h("div", { "aria-labelledby": "popup-title-month", role: "grid", class: "date-grid" }, h("div", { role: "rowgroup", class: "date-header" }, h("div", { role: "row", class: "header-row" }, h("div", { role: "columnheader", class: "header-cell" }, h("span", null, intl.formatMessage({
|
|
536
|
+
return (h("div", { "aria-labelledby": "popup-title-month", role: "grid", class: "date-grid" }, h("div", { role: "rowgroup", class: "date-header" }, h("div", { role: "row", class: "header-row" }, h("div", { role: "columnheader", class: "header-cell" }, h("span", null, intl.formatMessage({
|
|
497
537
|
id: "date.su",
|
|
498
538
|
defaultMessage: "Su",
|
|
499
539
|
description: "Abbreviated day of the week",
|
|
@@ -521,34 +561,17 @@ export class PrivCalendar {
|
|
|
521
561
|
id: "date.sa",
|
|
522
562
|
defaultMessage: "Sa",
|
|
523
563
|
description: "Abbreviated day of the week",
|
|
524
|
-
}))))), h("div", { role: "rowgroup" }, h("div", { role: "row", class: "date-row" }, dates.slice(0, 7).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(7, 14).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(14, 21).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(21, 28).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(28, 35).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), dates.length > 35 ? (h("div", { role: "row" }, dates.slice(35).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd)))) : (""))))
|
|
564
|
+
}))))), h("div", { role: "rowgroup" }, h("div", { role: "row", class: "date-row" }, dates.slice(0, 7).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(7, 14).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(14, 21).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(21, 28).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), h("div", { role: "row" }, dates.slice(28, 35).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd))), dates.length > 35 ? (h("div", { role: "row" }, dates.slice(35).map((date, i) => this.renderCalendarDate(date, i, eitherStart, eitherEnd)))) : (""))));
|
|
525
565
|
}
|
|
526
566
|
renderMonthView() {
|
|
527
|
-
return (h("div", { class: "month-view" }, h("div", { class: "
|
|
528
|
-
this._focus.year.decrease(1);
|
|
529
|
-
}, "aria-label": intl.formatMessage({
|
|
530
|
-
id: "date.selectPreviousYear",
|
|
531
|
-
defaultMessage: "Select previous year",
|
|
532
|
-
description: "Calendar button",
|
|
533
|
-
}), class: "header-btn arw-btn", ref: (el) => (this.prevBtnEl = el) }, h("span", { class: "svg-icon svg-previous" })), h("div", { id: "popup-title-year", tabindex: "0", class: "header-btn title-box year", role: "button", onClick: () => (this.view = "day"), onKeyDown: (ev) => {
|
|
534
|
-
if (ev.key === "Enter" || ev.key === " ") {
|
|
535
|
-
ev.preventDefault();
|
|
536
|
-
this.view = "day";
|
|
537
|
-
}
|
|
538
|
-
}, "aria-labelledby": "year-title" }, h("span", { class: "title" }, this._focus.year.asString()), h("span", { class: "svg-icon svg-expand-less" })), h("button", { onClick: () => {
|
|
539
|
-
this._focus.year.increase(1);
|
|
540
|
-
}, "aria-label": intl.formatMessage({
|
|
541
|
-
id: "date.selectNextYear",
|
|
542
|
-
defaultMessage: "Select next year",
|
|
543
|
-
description: "Calendar button",
|
|
544
|
-
}), class: "header-btn arw-btn" }, h("span", { class: "svg-icon svg-next" }))), h("div", { "aria-labelledby": "popup-title-year", role: "grid", class: "months" }, h("div", { role: "row", class: "month-row" }, calendar_months.slice(0, 3).map((month, index) => this.renderMonth(month, index))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(3, 6).map((month, index) => this.renderMonth(month, index + 3))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(6, 9).map((month, index) => this.renderMonth(month, index + 6))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(9).map((month, index) => this.renderMonth(month, index + 9))))));
|
|
567
|
+
return (h("div", { class: "month-view" }, h("div", { "aria-labelledby": "popup-title-year", role: "grid", class: "months" }, h("div", { role: "row", class: "month-row" }, calendar_months.slice(0, 3).map((month, index) => this.renderMonth(month, index))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(3, 6).map((month, index) => this.renderMonth(month, index + 3))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(6, 9).map((month, index) => this.renderMonth(month, index + 6))), h("div", { role: "row", class: "month-row" }, calendar_months.slice(9).map((month, index) => this.renderMonth(month, index + 9))))));
|
|
545
568
|
}
|
|
546
569
|
render() {
|
|
547
|
-
return (h(Host, { key: '
|
|
570
|
+
return (h(Host, { key: '5ac1252b33ef3a43fecf9c3221938389cf1d3681', onMouseOut: (ev) => {
|
|
548
571
|
// @ts-ignore
|
|
549
572
|
if (!this.el.parentElement.contains(ev.toElement))
|
|
550
573
|
this.outOfCal.emit();
|
|
551
|
-
}, role: "application", "aria-describedby": "application" }, this.view === "day" ? this.renderDayView() : this.renderMonthView(), h("div", { key: '
|
|
574
|
+
}, role: "application", "aria-describedby": "application" }, h("div", { key: 'e92179ff0e073bb0713728d6781ac4d040543169', class: `popup ${this.view}-view` }, this.renderHeader(), this.view === "day" ? this.renderDayView() : this.renderMonthView()), h("div", { key: 'c16391c078271ae7fef7fdb55ac268b746d06124', id: "application", class: "sr-only" }, this.calName, this.calInstructions)));
|
|
552
575
|
}
|
|
553
576
|
static get is() { return "priv-calendar"; }
|
|
554
577
|
static get originalStyleUrls() {
|
|
@@ -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: 'b1d10f8872c9d905ba04ddd8e3688561d779453c', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '8ec2219a390ee59f518a505a4e7a74266524203f', id: "list", class: "options-wrapper", tabindex: -1, role: "listbox", "aria-multiselectable": this.multiple ? "true" : null, "aria-labelledby": "label", 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: '87573087bc2ca9f558171f2b166c65d1252d2bf0' })), h("div", { key: 'b066e22e83612448cc55c2495bc4a6532f6d0065', 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() {
|
|
@@ -292,16 +292,16 @@ export class NestedSelect {
|
|
|
292
292
|
this.isExpanded ? this.close() : this.open();
|
|
293
293
|
},
|
|
294
294
|
};
|
|
295
|
-
return (h(Host, { key: '
|
|
295
|
+
return (h(Host, { key: 'd695b66fc02c415decc52fb7933e045d77ec6570', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: 'f11c3f53c8def76bbd904e46d518e539161274f4', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '0c258365d64598bfd9b00e380c73317fd3023ae6', class: "label-wrapper" }, h("label", { key: '45b88d6f43d9f7769a86643a8755187d85aae2d0', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
|
|
296
296
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
297
|
-
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : ("")), h("div", { key: '
|
|
297
|
+
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : ("")), h("div", { key: '15aff7adcdeffb80773e642426351dfaf6aa2cb6', class: "button-wrapper" }, h("button", Object.assign({ key: '5939e8c3f600e30226b1197eb575ceea73a05163' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: '03b725b1a68c66ca06112ad647cacd9c61a87e6e', class: "overflowcontrol" }, h("span", { key: 'abcf682d2a7d623c8e4efb94d7f9a55ca4722131', class: "button-text" }, this.renderButtonText())), h("div", { key: '5295064b9dddfc08facb985aed1a140b2f67d8dd', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: 'f97f6711b3239d0d6179c8cad3f8b088541161f4', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '637aba14e9e93baa1c902f8b7b81d5487d56e0a6', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("div", { key: '6da587e0991c5b6bd5429b4796a7418610d586d6', ref: (el) => (this.menuEl = el), id: "menu", role: "menu", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.renderClearSelectionButton(), this.optgroupEls.map((optgroupEl) => {
|
|
298
298
|
return (h("button", { class: `menuitem group-btn ${optgroupEl.disabled ? "disabled" : ""}`, role: "menuitem", "data-label": optgroupEl.label, tabindex: -1, "aria-disabled": optgroupEl.disabled, onClick: () => {
|
|
299
299
|
if (!optgroupEl.disabled) {
|
|
300
300
|
optgroupEl.isExpanded = !optgroupEl.isExpanded;
|
|
301
301
|
forceUpdate(this.el);
|
|
302
302
|
}
|
|
303
303
|
}, 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" })));
|
|
304
|
-
})), h("div", { key: '
|
|
304
|
+
})), h("div", { key: '34c842099530cbcbd56f98c40d4c37b307a45f32', ref: (el) => (this.optListWrapperEl = el), class: "option-list-wrapper hidden" }, h("slot", { key: 'ad13e3aa8800bb47a70105c525ff9ea7a280a658' }))), h("div", { key: '3098fc48ccd369e3c7209baaaf73842bf684a5f1', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: 'e69d19a1f0d34c0822c03e31c4acbc87f1122684', id: "nestedselect-announcement", "aria-live": "assertive", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
305
305
|
}
|
|
306
306
|
static get is() { return "wm-nested-select"; }
|
|
307
307
|
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: 'd77bf14f995daa7ee2809e248824722f786d1bd9' }, h("div", { key: 'a695e5a0c65767922d05eb38085a81737b1b840e', class: `list-wrapper` }, h("priv-option-list", { key: 'a0eb3e7a12e61b1508f16d20bd7dbddfb2724f38', 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: '106a06b63cccf8436616efd341e22e863021007e' })))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "wm-optgroup"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -876,11 +876,6 @@
|
|
|
876
876
|
color: var(--wmcolor-select-option-text);
|
|
877
877
|
user-select: none;
|
|
878
878
|
}
|
|
879
|
-
:host:focus, :host.focus {
|
|
880
|
-
outline: none;
|
|
881
|
-
background: var(--wmcolor-select-option-background-focus);
|
|
882
|
-
color: var(--wmcolor-interactive-text);
|
|
883
|
-
}
|
|
884
879
|
:host.icon {
|
|
885
880
|
color: var(--wmcolor-interactive);
|
|
886
881
|
}
|
|
@@ -993,13 +988,13 @@
|
|
|
993
988
|
pointer-events: none;
|
|
994
989
|
}
|
|
995
990
|
|
|
996
|
-
:host(:focus
|
|
991
|
+
:host(:focus) {
|
|
997
992
|
outline: none;
|
|
998
993
|
background: var(--wmcolor-select-option-background-focus);
|
|
999
994
|
color: var(--wmcolor-interactive-text);
|
|
1000
995
|
}
|
|
1001
|
-
:host(:focus
|
|
1002
|
-
:host(:focus
|
|
996
|
+
:host(:focus) .checkbox.svg-checkbox-blank,
|
|
997
|
+
:host(:focus) .checkbox.svg-checkbox-selected {
|
|
1003
998
|
--icon-fill: var(--wmcolor-interactive-text);
|
|
1004
999
|
}
|
|
1005
1000
|
|
|
@@ -1009,7 +1004,7 @@
|
|
|
1009
1004
|
outline: none;
|
|
1010
1005
|
}
|
|
1011
1006
|
|
|
1012
|
-
:host(:focus
|
|
1013
|
-
:host(:focus
|
|
1007
|
+
:host(:focus:hover) .checkbox.svg-checkbox-blank,
|
|
1008
|
+
:host(:focus:hover) .checkbox.svg-checkbox-selected {
|
|
1014
1009
|
--icon-fill: var(--wmcolor-interactive);
|
|
1015
1010
|
}
|
|
@@ -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: '3bebc22b8d9c2f28d6d4a40202dbbd5bfcd881a2', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: 'a65b8024c460fc76a188847c383c813110cf9ae1', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { key: '9bb2af43b87a04158ac30263c766d1997ae13902', class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { key: '341516525f8fd5eb4e389eda55ec336961d4010e', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: '69c48602a0954b55ae50f441417e7088ae2f6550', class: "sr-only" }, this.el.textContent)), h("div", { key: 'd9f8a9a104849c65a1e13482a028e0c7b181f54f', class: "subinfo" }, this.subinfo)));
|
|
147
147
|
}
|
|
148
148
|
static get is() { return "wm-option"; }
|
|
149
149
|
static get encapsulation() { return "shadow"; }
|
|
@@ -68,7 +68,7 @@ export class Select {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
handleToggle(ev) {
|
|
71
|
-
ev.newState === "open" ? this.
|
|
71
|
+
ev.newState === "open" ? this.onOpen() : this.onClose();
|
|
72
72
|
}
|
|
73
73
|
dropdownPosition() {
|
|
74
74
|
// polyfill for opening up or down + positioning according to screen
|
|
@@ -108,7 +108,7 @@ export class Select {
|
|
|
108
108
|
}
|
|
109
109
|
this.isHidden = false;
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
onOpen() {
|
|
112
112
|
if (!this.isExpanded && !this.isDisabled) {
|
|
113
113
|
// polyfill for browsers without anchor() support (FF)
|
|
114
114
|
if (!this.hasAnchor) {
|
|
@@ -119,6 +119,16 @@ export class Select {
|
|
|
119
119
|
const hasSpaceBelow = this.dropdownEl.offsetHeight <= document.documentElement.clientHeight - anchorRect.bottom;
|
|
120
120
|
const hasSpaceAbove = this.dropdownEl.offsetHeight <= anchorRect.top;
|
|
121
121
|
this.openUp = !hasSpaceBelow && hasSpaceAbove;
|
|
122
|
+
if (!hasSpaceBelow && !hasSpaceAbove) {
|
|
123
|
+
// dropdown will open downwards but doesn't have enough space
|
|
124
|
+
// it needs to be absolutely positioned + html has to have overflow-y auto
|
|
125
|
+
// (the default, but could have been overriden)
|
|
126
|
+
// in order to ensure the options can be scrolled to
|
|
127
|
+
// (would already be possible if the page has content below. this is in case select was at bottom of page)
|
|
128
|
+
this.initialHtmlOverflowY = document.documentElement.style.overflowY;
|
|
129
|
+
document.documentElement.style.overflowY = "auto";
|
|
130
|
+
this.dropdownEl.style.position = "absolute";
|
|
131
|
+
}
|
|
122
132
|
this.isExpanded = true;
|
|
123
133
|
});
|
|
124
134
|
setTimeout(() => {
|
|
@@ -128,9 +138,12 @@ export class Select {
|
|
|
128
138
|
}, 50);
|
|
129
139
|
}
|
|
130
140
|
}
|
|
131
|
-
|
|
141
|
+
onClose() {
|
|
132
142
|
if (this.isExpanded) {
|
|
133
143
|
this.optionListEl.unfocusAll();
|
|
144
|
+
// see onOpen
|
|
145
|
+
document.documentElement.style.overflowY = this.initialHtmlOverflowY || "";
|
|
146
|
+
this.dropdownEl.style.position = "fixed";
|
|
134
147
|
window.setTimeout(() => {
|
|
135
148
|
if (!this.hasAnchor) {
|
|
136
149
|
this.isHidden = true;
|
|
@@ -301,14 +314,14 @@ export class Select {
|
|
|
301
314
|
}
|
|
302
315
|
render() {
|
|
303
316
|
const showSubinfo = !this.multiple && this.selectedOptions.length > 0 && this.selectedOptions[0].subinfo;
|
|
304
|
-
return (h(Host, { key: '
|
|
317
|
+
return (h(Host, { key: '7fb824eaafac8e737e8bafb76e6bbac60cf652d1', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '19cf9096a6dd9e534aa35e1aa2ad318cc71f0a17', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'b0c98aeb4a346745064fbbf214fb6647b2a9f32b', class: "label-wrapper" }, h("label", { key: 'fc1fde9175b1e661a6f08a0fcc35aa06a405bca9', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
|
|
305
318
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
306
|
-
this.requiredField && (h("span", { key: '
|
|
319
|
+
this.requiredField && (h("span", { key: '2a322ba30403a27e5f4be402143d5ccc1c5ed134', class: "required" }, h("span", { key: '3461e69bc5773cc2d635aa16b739580314a2bfe6', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '435cd8abf9909ac43455c150c1e8ab7b7c3ee014', "aria-hidden": "true" }, "*")))), h("div", { key: '247e8b19ad5fb48e4f1152e67780218b201c9064', class: "button-wrapper" }, h("button", { key: 'a69404e36e8bbafa5bbd7c9f1c6e381571ce6240', id: "selectbtn", disabled: this.isDisabled, "aria-labelledby": "label selectbtn", "aria-describedby": "error", popoverTarget: "dropdown", popoverTargetAction: "toggle", class: "displayedoption", ref: (el) => (this.buttonEl = el) }, h("span", { key: 'da21f5b17347388d719c32f49ffb06878fa5102b', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: 'c65e84dbf79866af02242917a91146cb85cda6e6', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: 'f57f44de3f21a331b7e996a823a4d88b53835eb0', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: '44a7fade429711e38e95abca8d165c1d1cf0ff6c', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '07ad0b8a3e260c58b1291e64d3db2498cb0e503e', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '745291f917c50256155e3a208791417467b25f88',
|
|
307
320
|
// is-open is for the CSS transition in modern browsers
|
|
308
321
|
// hidden is to wait for position calculations in Firefox
|
|
309
322
|
class: `dropdown ${this.isExpanded ? "is-open" : ""} ${this.isHidden ? "hidden" : ""} ${this.openUp ? "upward" : ""}`, id: "dropdown", popover: "auto", ref: (el) => (this.dropdownEl = el),
|
|
310
323
|
// @ts-ignore -- don't tell typescript but we're in the future
|
|
311
|
-
onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '
|
|
324
|
+
onToggle: (ev) => this.handleToggle(ev) }, h("priv-option-list", { key: '185863f82957568eef29a5180afcd0973c5616ad', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => {
|
|
312
325
|
this.dropdownEl.hidePopover();
|
|
313
326
|
}, onOptionListAllSelected: () => {
|
|
314
327
|
this.returnFocus = true;
|
|
@@ -316,7 +329,7 @@ export class Select {
|
|
|
316
329
|
}, onOptionListAllDeselected: () => {
|
|
317
330
|
this.returnFocus = true;
|
|
318
331
|
this.wmSelectAllDeselected.emit();
|
|
319
|
-
} }, h("slot", { key: '
|
|
332
|
+
} }, h("slot", { key: '580139ee9425c0fe550c793aceddc85b2c4ff472' }))), h("div", { key: '5a99e8a6087b883dba4f97b9ee2a77ed65ea900f', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: '01137653e4eeb06386250a901c5663cafd679d08', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
320
333
|
}
|
|
321
334
|
static get is() { return "wm-select"; }
|
|
322
335
|
static get encapsulation() { return "shadow"; }
|
|
@@ -190,7 +190,7 @@ export class ActionMenu {
|
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(Host, { key: '
|
|
193
|
+
return (h(Host, { key: '6c215ca92b7775278392baade1cbd7238fec554c', onBlur: () => this.close(false) }, h("div", { key: 'd38c5a3fc3cd5faaaeff2e7f5e1e23a7ea7ec1ab', class: getTextDir() }, h("wm-button", { key: '4570f3978bd74038a1832c3bd1583c630eb195f7', "button-type": this.internalButtonType, tooltip: this.tooltip, "custom-background": this.darkMode ? "dark" : undefined, "label-for-identical-buttons": this.labelForIdenticalButtons, icon: this.actionMenuType === "icon" ? "#more-options" : "", iconSize: this.actionMenuType === "icon" ? "24px" : undefined, id: "menubtn", onClick: () => (this.isExpanded ? this.close() : this.open()), onBlur: (ev) => this.handleButtonBlur(ev), disabled: this.disabled, ref: (el) => (this.wmButtonEl = el), "tooltip-position": this.tooltipPosition || this.horizontalPosition, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? "true" : "false", "aria-controls": "menu" }, this.buttonText), h("div", { key: '5058056510151dad8e95bd6b1ea6dd322d632331', class: `dropdown ${this.openUp ? "open-up" : ""} ${this.horizontalPosition} ${this.isExpanded ? "open" : ""} hidden`, id: "menu", tabindex: -1, role: "menu", ref: (el) => (this.itemsEl = el) }, h("slot", { key: 'd1a23671f13261238fd3f2c1e33a8f6c277bd31a' })))));
|
|
194
194
|
}
|
|
195
195
|
static get is() { return "wm-action-menu"; }
|
|
196
196
|
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: 'e2cb063d8e0c666bfc211bd53e88db0272ac7921', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: '7811155d0e2623f94dcfdebf4170895533afcd9d', 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: '1d4a5c64e24dea05a019b8bc4a8e7127ed32e14d', class: "button-text" }, h("slot", { key: 'bae008635b392c8082b2a63e6670d6a7d6b00205' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: 'fc2760aa3e58026bc1426bd0b3673701e67fee56', 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: 'd1ec4a91453b2274dd4c60800ebbf12c1533b5c0', 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: '50bc377faf106c14b0c4fa9c1e6680b98d066f1b', role: "list", class: "list-wrapper" }, h("slot", { key: '5fad985b96a6cfc72c2baf85c7c5092db510d7fb' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "wm-file-list"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -154,7 +154,7 @@ export class Flyout {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
render() {
|
|
157
|
-
return (h(Host, { key: '
|
|
157
|
+
return (h(Host, { key: '8426f99872f01fe209bb11ce424af76e7c0b1727' }, h("dialog", { key: '8ba7566093a1357598c1c28510c7bf6b800c55e7', ref: (el) => (this.dialogEl = el), class: "flyout", "aria-labelledby": "heading", onClose: () => this.wmFlyoutCloseTriggered.emit(), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: 'e7b0f1b8b9866e5db316d7cb07e5fc5667c789a3', tabindex: "0", class: "focus-trap", onFocus: () => this.lastFocusableEl.focus(), "aria-hidden": "true" }), this.renderHeader(), h("div", { key: '2346c27d6967d3acfdf9d6ef3f790f713509aca5', class: "flyout-content" }, h("slot", { key: '4906e2566894e8fa81039c267f9aa4a2b68e353c' })), this.renderFooter(), h("div", { key: 'c60c5a887c7be651082e45764d9ff49031a00910', tabindex: "0", class: "focus-trap", onFocus: () => this.handleEndBookendFocus(), "aria-hidden": "true" }))));
|
|
158
158
|
}
|
|
159
159
|
static get is() { return "wm-flyout"; }
|
|
160
160
|
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: '5e281cdb07413696a1405266627db2bc22ce1674', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: '2aa8b6434a1e649cc88cd9bddb771a7f18af9a5c', class: "label-wrapper" }, h("label", { key: 'd6246e9715693cce6e4ae537792042e8ffd97050', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '0fa5b82940b14472d05a1e8f6f628137d87a36f9', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("div", { key: '05c896add7e40b09ed3bee2cb19840ba9b71ecd4', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: 'ffff813c749cd3432b773e41c07cf4f4fe32d6c6', class: "inner-wrapper" }, h("div", { key: '10e3e09153b703b51fd170cc0b77ca4beedcf63d', class: "text-after-wrapper" }, h("div", { key: 'dbaeab7a9da2a81eb3bd188819e0a1c5396190d8', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: '45cd4bde06af5d09ef124ff27c7b40dffc642524', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '0c6b0a7ea54a1f85abb6d82a91cb7afaba5753c6', 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: 'b05bdbea66f4b71913130eff59770d22b573db36', 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: '41c2fb3f492ac63a423caf3ddbe48f1ecf06121a', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: 'f211e673ba9d3b7de1152d92ec2d496932f96772', id: "info", class: "info" }, this.info)), h("div", { key: '699d7f3c818082b4d2d8558b80bbf134587c827e', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '69cf3df248eb4884eaead9e13f1c7414c08f5cd1', 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"; }
|
|
@@ -98,7 +98,7 @@ export class Menuitem {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: '3918e12cfecc1ef4123851608175c4dfe9c41022', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: 'ce62650fb0afee46e8acf66324d65a303931efde', class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, this.icon && this.renderIcon(), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "wm-menuitem"; }
|
|
104
104
|
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: '86b0ac602ef44f1f903993c287ccbf35736f0d6d', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '3eba5847dbf91ed35aa9489c39658794f7cb9870', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'f81a1bc7519936e40f400c243bfd6f6b4e19e8f3', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: '19cf3c9d718ac7d82e9c073ebe3890163fef6dbd', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: '7f10d760d7fbeea0325a1d6c194e153cfda26ff7', "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() {
|