@watermarkinsights/ripple 5.12.0-11 → 5.12.0-13
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/{esm/global-c1827d25.js → cjs/app-globals-f7b7659e.js} +10 -1
- package/dist/cjs/{chartFunctions-0436714f.js → chartFunctions-1e1d3cae.js} +3 -3
- package/dist/cjs/{functions-e24249e6.js → functions-4f353093.js} +1684 -273
- package/dist/cjs/index-788526f5.js +1859 -0
- package/dist/cjs/{intl-a70cf8c2.js → intl-f7c9452b.js} +104 -1
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/priv-calendar.cjs.entry.js +6 -5
- package/dist/cjs/priv-chart-popover.cjs.entry.js +6 -5
- package/dist/cjs/priv-navigator-button.cjs.entry.js +4 -3
- package/dist/cjs/priv-navigator-item.cjs.entry.js +4 -3
- package/dist/cjs/priv-option-list.cjs.entry.js +15 -51
- package/dist/cjs/ripple.cjs.js +12 -11
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +8 -6
- package/dist/cjs/wm-button.cjs.entry.js +5 -4
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -1
- package/dist/cjs/wm-chart.cjs.entry.js +7 -6
- package/dist/cjs/wm-date-range.cjs.entry.js +22 -10
- package/dist/cjs/wm-datepicker.cjs.entry.js +9 -8
- package/dist/cjs/wm-file-list.cjs.entry.js +4 -3
- package/dist/cjs/wm-file.cjs.entry.js +5 -4
- package/dist/cjs/wm-input.cjs.entry.js +6 -5
- package/dist/cjs/wm-line-chart.cjs.entry.js +19 -17
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-modal_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -10
- package/dist/cjs/wm-navigator.cjs.entry.js +4 -3
- package/dist/cjs/wm-nested-select.cjs.entry.js +17 -55
- package/dist/cjs/wm-optgroup.cjs.entry.js +5 -4
- package/dist/cjs/wm-option_2.cjs.entry.js +13 -23
- package/dist/cjs/wm-pagination.cjs.entry.js +66 -13
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +9 -7
- package/dist/cjs/wm-search.cjs.entry.js +7 -6
- package/dist/cjs/wm-snackbar.cjs.entry.js +14 -8
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +17 -9
- package/dist/cjs/wm-tag-input.cjs.entry.js +30 -23
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -2
- package/dist/cjs/wm-textarea.cjs.entry.js +6 -5
- package/dist/cjs/wm-timepicker.cjs.entry.js +6 -5
- package/dist/cjs/wm-toggletip.cjs.entry.js +7 -6
- package/dist/cjs/wm-uploader.cjs.entry.js +7 -6
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/charts/chartFunctions.js +1 -1
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +2 -2
- package/dist/collection/components/charts/wm-chart/wm-chart.js +1 -1
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +14 -13
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +1 -1
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +1 -1
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +2 -2
- package/dist/collection/components/datepickers/wm-date-range.js +30 -15
- package/dist/collection/components/datepickers/wm-datepicker.js +17 -13
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +18 -53
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +17 -56
- 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 +10 -22
- 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-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 +63 -11
- package/dist/collection/components/wm-search/wm-search.js +5 -4
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +10 -5
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +1 -1
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +8 -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 +25 -19
- package/dist/collection/components/wm-textarea/wm-textarea.js +1 -1
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +11 -8
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +0 -1
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +2 -2
- package/dist/collection/components/wm-uploader/wm-uploader.js +2 -2
- package/dist/collection/global/intl.js +102 -0
- package/dist/collection/lang/piglatin.js +9 -1
- package/dist/{cjs/global-da3d372b.js → esm/app-globals-abcdae09.js} +7 -2
- package/dist/esm/{chartFunctions-7a2b7a90.js → chartFunctions-4cfa7410.js} +3 -3
- package/dist/esm/{functions-899cea51.js → functions-9e8253e7.js} +1685 -274
- package/dist/esm/index-130e07bb.js +1828 -0
- package/dist/esm/{intl-87b9b541.js → intl-d78f158c.js} +104 -2
- package/dist/esm/loader.js +5 -4
- package/dist/esm/priv-calendar.entry.js +6 -5
- package/dist/esm/priv-chart-popover.entry.js +6 -5
- package/dist/esm/priv-navigator-button.entry.js +4 -3
- package/dist/esm/priv-navigator-item.entry.js +4 -3
- package/dist/esm/priv-option-list.entry.js +15 -51
- package/dist/esm/ripple.js +13 -12
- package/dist/esm/wm-action-menu_2.entry.js +8 -6
- package/dist/esm/wm-button.entry.js +5 -4
- package/dist/esm/wm-chart-slice.entry.js +1 -1
- package/dist/esm/wm-chart.entry.js +7 -6
- package/dist/esm/wm-date-range.entry.js +22 -10
- package/dist/esm/wm-datepicker.entry.js +9 -8
- package/dist/esm/wm-file-list.entry.js +4 -3
- package/dist/esm/wm-file.entry.js +5 -4
- package/dist/esm/wm-input.entry.js +6 -5
- package/dist/esm/wm-line-chart.entry.js +19 -17
- package/dist/esm/wm-modal-pss_3.entry.js +13 -10
- package/dist/esm/wm-modal_3.entry.js +13 -10
- package/dist/esm/wm-navigation_3.entry.js +13 -10
- package/dist/esm/wm-navigator.entry.js +4 -3
- package/dist/esm/wm-nested-select.entry.js +17 -55
- package/dist/esm/wm-optgroup.entry.js +5 -4
- package/dist/esm/wm-option_2.entry.js +13 -23
- package/dist/esm/wm-pagination.entry.js +66 -13
- package/dist/esm/wm-progress-indicator_3.entry.js +9 -7
- package/dist/esm/wm-search.entry.js +7 -6
- package/dist/esm/wm-snackbar.entry.js +14 -8
- package/dist/esm/wm-tab-item_3.entry.js +17 -9
- package/dist/esm/wm-tag-input.entry.js +30 -23
- package/dist/esm/wm-tag-option.entry.js +2 -2
- package/dist/esm/wm-textarea.entry.js +6 -5
- package/dist/esm/wm-timepicker.entry.js +6 -5
- package/dist/esm/wm-toggletip.entry.js +7 -6
- package/dist/esm/wm-uploader.entry.js +7 -6
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-abcdae09.js +1 -0
- package/dist/esm-es5/{chartFunctions-7a2b7a90.js → chartFunctions-4cfa7410.js} +1 -1
- package/dist/esm-es5/functions-9e8253e7.js +1 -0
- package/dist/esm-es5/index-130e07bb.js +1 -0
- package/dist/esm-es5/intl-d78f158c.js +1 -0
- 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-slice.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-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/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/loader/cdn.js +1 -2
- package/dist/loader/index.cjs.js +1 -2
- package/dist/loader/index.d.ts +3 -0
- package/dist/loader/index.es2017.js +1 -2
- package/dist/loader/index.js +1 -2
- package/dist/ripple/{p-65d26233.system.entry.js → p-043901ab.system.entry.js} +1 -1
- package/dist/ripple/{p-555091aa.system.entry.js → p-0a6cbbce.system.entry.js} +1 -1
- package/dist/ripple/{p-48e09589.entry.js → p-13b1d775.entry.js} +1 -1
- package/dist/ripple/p-142e4c2d.entry.js +1 -0
- package/dist/ripple/{p-1a71d867.system.entry.js → p-165b5d3d.system.entry.js} +1 -1
- package/dist/ripple/p-1a5b91c1.entry.js +1 -0
- package/dist/ripple/{p-bda32fc9.system.entry.js → p-1f5f9e07.system.entry.js} +1 -1
- package/dist/ripple/p-236247d1.entry.js +1 -0
- package/dist/ripple/{p-6c7e754c.js → p-2fa21bed.js} +1 -1
- package/dist/ripple/{p-a04ef164.system.entry.js → p-3376581a.system.entry.js} +1 -1
- package/dist/ripple/{p-39436e07.system.entry.js → p-39abb5e4.system.entry.js} +1 -1
- package/dist/ripple/{p-ce219de1.system.entry.js → p-3d520a26.system.entry.js} +1 -1
- package/dist/ripple/p-41ce71aa.system.js +1 -0
- package/dist/ripple/{p-68e04222.entry.js → p-45c4fc87.entry.js} +1 -1
- package/dist/ripple/p-4d29bcf8.entry.js +1 -0
- package/dist/ripple/p-56d386b7.system.entry.js +1 -0
- package/dist/ripple/{p-29bc2e29.entry.js → p-5c62e26d.entry.js} +1 -1
- package/dist/ripple/{p-b22b8da5.system.entry.js → p-629f5f7d.system.entry.js} +1 -1
- package/dist/ripple/p-6354858c.system.entry.js +1 -0
- package/dist/ripple/{p-b027e0e7.entry.js → p-63f9a56d.entry.js} +1 -1
- package/dist/ripple/{p-1a4b6b02.system.entry.js → p-658f146a.system.entry.js} +1 -1
- package/dist/ripple/{p-50ba37b9.entry.js → p-68bd4288.entry.js} +1 -1
- package/dist/ripple/p-70aa314c.entry.js +1 -0
- package/dist/ripple/p-75656013.entry.js +1 -0
- package/dist/ripple/{p-e9177cb5.entry.js → p-76f9acec.entry.js} +1 -1
- package/dist/ripple/p-77b420a9.entry.js +1 -0
- package/dist/ripple/p-7b75564f.entry.js +1 -0
- package/dist/ripple/p-7bdacaba.entry.js +1 -0
- package/dist/ripple/{p-1a6699ee.entry.js → p-7c306fa3.entry.js} +1 -1
- package/dist/ripple/{p-639011da.system.entry.js → p-7c4fa135.system.entry.js} +1 -1
- package/dist/ripple/{p-32bf3f5b.system.entry.js → p-823d7b4e.system.entry.js} +1 -1
- package/dist/ripple/{p-63faf802.system.entry.js → p-83839da3.system.entry.js} +1 -1
- package/dist/ripple/p-86457680.js +1 -0
- package/dist/ripple/p-86ee3a1c.system.entry.js +1 -0
- package/dist/ripple/{p-4392f369.system.entry.js → p-8ad6cfa7.system.entry.js} +1 -1
- package/dist/ripple/{p-3703934b.system.js → p-8afa85d7.system.js} +1 -1
- package/dist/ripple/p-91427f79.system.js +1 -0
- package/dist/ripple/p-933bdedf.entry.js +1 -0
- package/dist/ripple/{p-f3b7781a.system.entry.js → p-9345ff24.system.entry.js} +1 -1
- package/dist/ripple/p-93649ba1.entry.js +1 -0
- package/dist/ripple/{p-a94b1ea9.entry.js → p-988dc626.entry.js} +1 -1
- package/dist/ripple/p-9973d3c4.entry.js +1 -0
- package/dist/ripple/{p-08cae940.system.entry.js → p-9d1301b5.system.entry.js} +1 -1
- package/dist/ripple/{p-c850c123.system.entry.js → p-9fa2a154.system.entry.js} +1 -1
- package/dist/ripple/{p-e27499cc.entry.js → p-a2535dde.entry.js} +1 -1
- package/dist/ripple/{p-8a555fea.system.entry.js → p-a32c32a5.system.entry.js} +1 -1
- package/dist/ripple/p-a3b005be.entry.js +1 -0
- package/dist/ripple/{p-00daed0d.system.entry.js → p-a5647b5c.system.entry.js} +1 -1
- package/dist/ripple/{p-ab7a7407.entry.js → p-a7252c5d.entry.js} +1 -1
- package/dist/ripple/p-a766c2d9.js +1 -0
- package/dist/ripple/{p-c32d42ff.system.entry.js → p-aad4c911.system.entry.js} +1 -1
- package/dist/ripple/{p-49faa27e.system.entry.js → p-b57307fb.system.entry.js} +1 -1
- package/dist/ripple/{p-5567f97d.system.entry.js → p-b85b90df.system.entry.js} +1 -1
- package/dist/ripple/p-b9fd87cf.system.entry.js +1 -0
- package/dist/ripple/p-bdc1ca1c.entry.js +1 -0
- package/dist/ripple/p-bf95dc5f.js +1 -0
- package/dist/ripple/p-c508b49a.system.js +1 -0
- package/dist/ripple/{p-0b779f0c.system.entry.js → p-c53f75cd.system.entry.js} +1 -1
- package/dist/ripple/{p-dbca5668.system.entry.js → p-c5500fcd.system.entry.js} +1 -1
- package/dist/ripple/{p-930a43cd.system.entry.js → p-c9c0614b.system.entry.js} +1 -1
- package/dist/ripple/p-cb60f6cc.entry.js +1 -0
- package/dist/ripple/{p-3f3dadc5.system.entry.js → p-cce8e977.system.entry.js} +1 -1
- package/dist/ripple/{p-88ebddd7.entry.js → p-cd0cc88d.entry.js} +1 -1
- package/dist/ripple/p-cef8a45b.system.js +2 -0
- package/dist/ripple/p-d03e0e35.system.entry.js +1 -0
- package/dist/ripple/{p-66b8e9a0.entry.js → p-d2de817b.entry.js} +1 -1
- package/dist/ripple/{p-94cf5830.system.entry.js → p-d9b5f378.system.entry.js} +1 -1
- package/dist/ripple/p-d9da0502.js +2 -0
- package/dist/ripple/{p-9609af5c.system.entry.js → p-db2d9e78.system.entry.js} +1 -1
- package/dist/ripple/p-dc86a666.system.js +1 -0
- package/dist/ripple/p-ded3327c.entry.js +1 -0
- package/dist/ripple/{p-f594d6e1.entry.js → p-deec276d.entry.js} +1 -1
- package/dist/ripple/p-e2cf5473.entry.js +1 -0
- package/dist/ripple/{p-17a72fc6.system.entry.js → p-edca689f.system.entry.js} +1 -1
- package/dist/ripple/p-f1528c80.entry.js +1 -0
- package/dist/ripple/p-f26a2a38.entry.js +1 -0
- package/dist/ripple/{p-f6ec10c6.entry.js → p-f5380902.entry.js} +1 -1
- package/dist/ripple/p-f9a71cf6.entry.js +1 -0
- package/dist/ripple/{p-08c0a003.system.entry.js → p-fde28903.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/selects/priv-option-list/priv-option-list.d.ts +0 -6
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +6 -0
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +1 -0
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +1 -0
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +2 -1
- package/dist/types/global/intl.d.ts +22 -0
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/package.json +2 -2
- package/dist/cjs/index-e86c28b6.js +0 -2649
- package/dist/collection/components/charts/chartFunctions.spec.js +0 -16
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.e2e.js +0 -81
- package/dist/collection/components/charts/screenshots.e2e.js +0 -96
- package/dist/collection/components/charts/wm-chart/wm-chart.e2e.js +0 -213
- package/dist/collection/components/charts/wm-chart/wm-chart.spec.js +0 -37
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.e2e.js +0 -176
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.spec.js +0 -163
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.e2e.js +0 -69
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.spec.js +0 -79
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.spec.js +0 -89
- package/dist/collection/components/datepickers/wm-date-range.e2e.js +0 -443
- package/dist/collection/components/datepickers/wm-date-range.spec.js +0 -22
- package/dist/collection/components/datepickers/wm-datepicker.e2e.js +0 -382
- package/dist/collection/components/datepickers/wm-datepicker.spec.js +0 -21
- package/dist/collection/components/selects/wm-option/wm-option.e2e.js +0 -22
- package/dist/collection/components/selects/wm-option/wm-option.spec.js +0 -63
- package/dist/collection/components/selects/wm-select/wm-select.e2e.js +0 -521
- package/dist/collection/components/selects/wm-select/wm-select.spec.js +0 -271
- package/dist/collection/components/wm-action-menu/wm-action-menu.e2e.js +0 -200
- package/dist/collection/components/wm-action-menu/wm-action-menu.spec.js +0 -48
- package/dist/collection/components/wm-button/wm-button.e2e.js +0 -55
- package/dist/collection/components/wm-button/wm-button.spec.js +0 -74
- package/dist/collection/components/wm-file/wm-file.spec.js +0 -194
- package/dist/collection/components/wm-file-list/wm-file-list.spec.js +0 -69
- package/dist/collection/components/wm-input/wm-input.e2e.js +0 -32
- package/dist/collection/components/wm-input/wm-input.spec.js +0 -173
- package/dist/collection/components/wm-menuitem/wm-menuitem.e2e.js +0 -23
- package/dist/collection/components/wm-menuitem/wm-menuitem.spec.js +0 -54
- package/dist/collection/components/wm-modal/wm-modal-footer.spec.js +0 -11
- package/dist/collection/components/wm-modal/wm-modal-header.spec.js +0 -8
- package/dist/collection/components/wm-modal/wm-modal.e2e.js +0 -104
- package/dist/collection/components/wm-modal/wm-modal.spec.js +0 -30
- package/dist/collection/components/wm-navigation/wm-navigation.e2e.js +0 -102
- package/dist/collection/components/wm-navigation/wm-navigation.spec.js +0 -91
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.e2e.js +0 -50
- package/dist/collection/components/wm-navigator/wm-navigator.e2e.js +0 -209
- package/dist/collection/components/wm-navigator/wm-navigator.spec.js +0 -177
- package/dist/collection/components/wm-pagination/wm-pagination.e2e.js +0 -312
- package/dist/collection/components/wm-search/wm-search.e2e.js +0 -76
- package/dist/collection/components/wm-search/wm-search.spec.js +0 -71
- package/dist/collection/components/wm-snackbar/wm-snackbar.e2e.js +0 -112
- package/dist/collection/components/wm-snackbar/wm-snackbar.spec.js +0 -9
- package/dist/collection/components/wm-tabs/wm-tabs.e2e.js +0 -91
- package/dist/collection/components/wm-tabs/wm-tabs.spec.js +0 -12
- package/dist/collection/components/wm-tag-input/wm-tag-input.e2e.js +0 -204
- package/dist/collection/components/wm-tag-input/wm-tag-input.spec.js +0 -195
- package/dist/collection/components/wm-textarea/wm-textarea.e2e.js +0 -41
- package/dist/collection/components/wm-textarea/wm-textarea.spec.js +0 -79
- package/dist/collection/components/wm-timepicker/wm-timepicker.e2e.js +0 -163
- package/dist/collection/components/wm-timepicker/wm-timepicker.spec.js +0 -147
- package/dist/collection/components/wm-toggletip/wm-toggletip.e2e.js +0 -69
- package/dist/collection/components/wm-toggletip/wm-toggletip.spec.js +0 -21
- package/dist/collection/components/wm-uploader/wm-uploader.e2e.js +0 -70
- package/dist/collection/components/wm-uploader/wm-uploader.spec.js +0 -234
- package/dist/collection/global/functions.spec.js +0 -126
- package/dist/collection/lang/lang.spec.js +0 -20
- package/dist/esm/index-558b5a82.js +0 -2618
- package/dist/esm-es5/functions-899cea51.js +0 -1
- package/dist/esm-es5/global-c1827d25.js +0 -1
- package/dist/esm-es5/index-558b5a82.js +0 -1
- package/dist/esm-es5/intl-87b9b541.js +0 -1
- package/dist/ripple/p-15778b2d.entry.js +0 -1
- package/dist/ripple/p-1fcea04c.entry.js +0 -1
- package/dist/ripple/p-20cb733d.js +0 -1
- package/dist/ripple/p-2d0b6f97.entry.js +0 -1
- package/dist/ripple/p-338f476b.entry.js +0 -1
- package/dist/ripple/p-3ffd83ff.entry.js +0 -1
- package/dist/ripple/p-466c31d7.entry.js +0 -1
- package/dist/ripple/p-47285fc5.system.entry.js +0 -1
- package/dist/ripple/p-4b6ef736.system.js +0 -1
- package/dist/ripple/p-529bf080.system.js +0 -1
- package/dist/ripple/p-568c595f.js +0 -2
- package/dist/ripple/p-56f88847.system.entry.js +0 -1
- package/dist/ripple/p-688b090d.entry.js +0 -1
- package/dist/ripple/p-69d44bc5.js +0 -1
- package/dist/ripple/p-7dc6ea5b.system.js +0 -1
- package/dist/ripple/p-8fcd6f3e.system.entry.js +0 -1
- package/dist/ripple/p-90f4a160.entry.js +0 -1
- package/dist/ripple/p-92b3a061.system.js +0 -1
- package/dist/ripple/p-94495341.entry.js +0 -1
- package/dist/ripple/p-9479898e.entry.js +0 -1
- package/dist/ripple/p-98c0893f.system.entry.js +0 -1
- package/dist/ripple/p-98f95d71.entry.js +0 -1
- package/dist/ripple/p-a7709012.entry.js +0 -1
- package/dist/ripple/p-ab8d78cc.system.js +0 -2
- package/dist/ripple/p-adc254e6.entry.js +0 -1
- package/dist/ripple/p-b7577799.entry.js +0 -1
- package/dist/ripple/p-bfe5815c.system.entry.js +0 -1
- package/dist/ripple/p-c0deae46.entry.js +0 -1
- package/dist/ripple/p-d1da356b.entry.js +0 -1
- package/dist/ripple/p-dd566933.entry.js +0 -1
- package/dist/ripple/p-e917500f.entry.js +0 -1
- package/dist/ripple/p-f0645532.entry.js +0 -1
- package/dist/ripple/p-f8192441.js +0 -1
- package/dist/ripple/p-fa0dcbe4.entry.js +0 -1
|
@@ -212,23 +212,23 @@ export class DatePicker {
|
|
|
212
212
|
this.liveRegionEl.textContent = message;
|
|
213
213
|
}
|
|
214
214
|
render() {
|
|
215
|
-
return (h(Host, { "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { "aria-hidden": "true", class: "required" }, "*"))))), h("div",
|
|
215
|
+
return (h(Host, { key: '85687dcb3b87ff6b660797b7e8ceef84a9710deb', "aria-busy": "false", class: `${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'c64159f0ecc1ce84fda38106b54d7fa49a79fc65', ref: (d) => (this.dpWrapperEl = d), class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '43bed05cd8ddf12279fd007fac3be60ce20864f8', class: "label-wrapper", ref: (e) => (this.labelWrapperEl = e) }, this.labelPosition !== "none" && (h("label", { key: '9acaee7a5ed8a29971813a06a5051c2838c13065', id: "datepickerLabel", htmlFor: "date-input", class: "label", title: `${this.label} (${this.dateFormat})` }, this.label, this.requiredField && (h("span", { key: 'f3e1f8719fcc6ead12968215e2731d95b2603956', "aria-hidden": "true", class: "required" }, "*"))))), h("div", { key: '0c041afacda26e06e15275eb92f430f7d9a16520' }, h("div", { key: '25af5c4db0a4efa3310c039046541651c2f58a25', class: "single-wrapper input" }, h("input", { key: 'ba297de98ddb0c85ddac0b20f5f177b186956ded', 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: 'd4c145ebda9243d464b077a250ea272090e1e9bd', class: "container", id: "wm-container" }, h("button", { key: '630191453f20cbe48e919a91928c2120ca41f66e', disabled: this.disabled, onClick: this.togglePopup.bind(this), "aria-label": intl.formatMessage({
|
|
216
216
|
id: "date.selectDate",
|
|
217
217
|
defaultMessage: "Select date",
|
|
218
218
|
description: "Button text for screen readers.",
|
|
219
|
-
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { class: "svg-icon svg-date" }), h("span", { class: "calendar", title: intl.formatMessage({
|
|
219
|
+
}), "aria-describedby": "single-date-input", ref: (el) => (this.toggleEl = el), "aria-expanded": `${this.isExpanded}`, class: "toggle", id: "toggle" }, h("span", { key: '8d418c81d6dcb4ab2155729be5634ee7a2566048', class: "svg-icon svg-date" }), h("span", { key: '5100cad9f4ed307d753499710853de95e81c04e8', class: "calendar", title: intl.formatMessage({
|
|
220
220
|
id: "date.calendarView",
|
|
221
221
|
defaultMessage: "Calendar View",
|
|
222
222
|
description: "Calendar button",
|
|
223
|
-
}) })), h("div", { class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.openUp ? "expand-upwards" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), onClick: () => (this.popupClicked = true) }, h("div", { tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
223
|
+
}) })), h("div", { key: '36d24aeb7e59ae59284596ad362eb5459a9ad1de', class: `popup-wrapper ${this.calEl && this.calEl.view}-view ${this.openUp ? "expand-upwards" : ""}`, id: "popup-wrapper", ref: (el) => (this.popupEl = el), onClick: () => (this.popupClicked = true) }, h("div", { key: '52e0c98a890204e111f6c508177181bf69c5af28', tabIndex: 0, onFocus: () => this.calEl.focusLastFocusable() }), h("priv-calendar", { key: '12ed17f4c034aff9be9421046d52ffc4e745c929', ref: (el) => (this.calEl = el), startDate: this.calendarDate, focusDate: this.calendarDate, class: "inside" }), h("div", { key: 'c4b913e51442e1e57805934fd9071cc8796ca551', tabIndex: 0, onFocus: () => this.calEl.focusFirstFocusable() })), h("div", { key: '4194d3665db2426ea6600f01f014735c6f49c7c4', id: "live-region", "aria-live": "polite", "aria-relevant": "text", class: "sr-only" }), h("div", { key: '538a624beb90096a1368873b8f044b0ff32bf125', id: "month-title", class: "sr-only" }, intl.formatMessage({
|
|
224
224
|
id: "date.selectMonth",
|
|
225
225
|
defaultMessage: "Activate to select a month.",
|
|
226
226
|
description: "Calendar button",
|
|
227
|
-
})), h("div", { id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
227
|
+
})), h("div", { key: '37b0366f3742eff0d38993c60e132759683cfc18', id: "year-title", class: "sr-only" }, intl.formatMessage({
|
|
228
228
|
id: "date.selectYear",
|
|
229
229
|
defaultMessage: "Activate to select a year.",
|
|
230
230
|
description: "Calendar button",
|
|
231
|
-
})))), h("div", { id: "error", class: "error" }, this.errorMessage), h("div", { ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
231
|
+
})))), h("div", { key: 'b21dcace67f1f10949bfa1ed0238ddbff738a2f5', id: "error", class: "error" }, this.errorMessage), h("div", { key: 'cf362caa31e7a5951365a3e3a63d119d58f746f5', ref: (el) => (this.liveRegionEl = el), class: "sr-only", "aria-live": "polite", "aria-atomic": "true" })))));
|
|
232
232
|
}
|
|
233
233
|
static get is() { return "wm-datepicker"; }
|
|
234
234
|
static get encapsulation() { return "shadow"; }
|
|
@@ -433,14 +433,17 @@ export class DatePicker {
|
|
|
433
433
|
"complexType": {
|
|
434
434
|
"signature": "(inputFormat: string, outputFormat: string, date?: string) => Promise<string>",
|
|
435
435
|
"parameters": [{
|
|
436
|
-
"
|
|
437
|
-
"
|
|
436
|
+
"name": "inputFormat",
|
|
437
|
+
"type": "string",
|
|
438
|
+
"docs": ""
|
|
438
439
|
}, {
|
|
439
|
-
"
|
|
440
|
-
"
|
|
440
|
+
"name": "outputFormat",
|
|
441
|
+
"type": "string",
|
|
442
|
+
"docs": ""
|
|
441
443
|
}, {
|
|
442
|
-
"
|
|
443
|
-
"
|
|
444
|
+
"name": "date",
|
|
445
|
+
"type": "string | undefined",
|
|
446
|
+
"docs": ""
|
|
444
447
|
}],
|
|
445
448
|
"references": {
|
|
446
449
|
"Promise": {
|
|
@@ -459,8 +462,9 @@ export class DatePicker {
|
|
|
459
462
|
"complexType": {
|
|
460
463
|
"signature": "(input?: string) => Promise<boolean>",
|
|
461
464
|
"parameters": [{
|
|
462
|
-
"
|
|
463
|
-
"
|
|
465
|
+
"name": "input",
|
|
466
|
+
"type": "string | undefined",
|
|
467
|
+
"docs": ""
|
|
464
468
|
}],
|
|
465
469
|
"references": {
|
|
466
470
|
"Promise": {
|
|
@@ -1,33 +1,18 @@
|
|
|
1
1
|
import { h, forceUpdate } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { debounce, isElOrChild } from "../../../global/functions";
|
|
3
|
+
import { selectMessages } from "../../../global/intl";
|
|
3
4
|
export class PrivOptionList {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.searchIndex = 0;
|
|
6
7
|
this.keysSoFar = "";
|
|
7
|
-
this.selectAllMessage = intl.formatMessage({
|
|
8
|
-
id: "select.selectAll",
|
|
9
|
-
defaultMessage: "Select All",
|
|
10
|
-
});
|
|
11
|
-
this.deselectAllMessage = intl.formatMessage({
|
|
12
|
-
id: "select.deselectAll",
|
|
13
|
-
defaultMessage: "Deselect All",
|
|
14
|
-
});
|
|
15
|
-
this.allOptionsSelectedMessage = intl.formatMessage({
|
|
16
|
-
id: "select.allOptionsSelected",
|
|
17
|
-
defaultMessage: "All options selected",
|
|
18
|
-
});
|
|
19
|
-
this.allOptionsDeselectedMessage = intl.formatMessage({
|
|
20
|
-
id: "select.allOptionsDeselected",
|
|
21
|
-
defaultMessage: "All options deselected",
|
|
22
|
-
});
|
|
23
8
|
this.debouncedSearch = debounce(() => {
|
|
24
9
|
this.searchTerm = this.searchFieldEl.value;
|
|
25
10
|
this.optionListSearchChanged.emit({ searchTerm: this.searchTerm });
|
|
26
11
|
if (this.filteredOptions.length) {
|
|
27
|
-
this.announce(this.
|
|
12
|
+
this.announce(selectMessages.getSearchResultsFound(this.filteredOptions.length));
|
|
28
13
|
}
|
|
29
14
|
else {
|
|
30
|
-
this.announce(
|
|
15
|
+
this.announce(selectMessages.noSearchResults);
|
|
31
16
|
}
|
|
32
17
|
}, 150);
|
|
33
18
|
this.debouncedClearKeysSoFar = debounce(() => {
|
|
@@ -77,20 +62,6 @@ export class PrivOptionList {
|
|
|
77
62
|
return this.childOptions.every((option) => option.selected);
|
|
78
63
|
}
|
|
79
64
|
//////////////////////////////////////
|
|
80
|
-
get resultsFoundMessage() {
|
|
81
|
-
return intl.formatMessage({
|
|
82
|
-
id: "select.searchResultsFound",
|
|
83
|
-
defaultMessage: "{numResults, plural, one {1 option found} other {# options found}}",
|
|
84
|
-
description: "The message read by the screen reader, indicating how many results a search returned",
|
|
85
|
-
}, { numResults: this.filteredOptions.length });
|
|
86
|
-
}
|
|
87
|
-
get noResultsFoundMessage() {
|
|
88
|
-
return intl.formatMessage({
|
|
89
|
-
id: "select.noSearchResults",
|
|
90
|
-
defaultMessage: "No results found. Please try your search again.",
|
|
91
|
-
description: "The message displayed when no options pass the search filter",
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
65
|
get effectiveMaxHeight() {
|
|
95
66
|
let result = this.maxHeight;
|
|
96
67
|
if (this.upwardsHeightLimit && this.el.parentElement.clientHeight > this.upwardsHeightLimit) {
|
|
@@ -295,11 +266,11 @@ export class PrivOptionList {
|
|
|
295
266
|
this.allSelected ? this.deselectAllOptions() : this.selectAllOptions();
|
|
296
267
|
}
|
|
297
268
|
selectAllOptions() {
|
|
298
|
-
this.announce(
|
|
269
|
+
this.announce(selectMessages.allOptionsSelectedMessage);
|
|
299
270
|
this.optionListAllSelected.emit();
|
|
300
271
|
}
|
|
301
272
|
deselectAllOptions() {
|
|
302
|
-
this.announce(
|
|
273
|
+
this.announce(selectMessages.allOptionsDeselectedMessage);
|
|
303
274
|
this.optionListAllDeselected.emit();
|
|
304
275
|
}
|
|
305
276
|
moveUp(el) {
|
|
@@ -370,20 +341,12 @@ export class PrivOptionList {
|
|
|
370
341
|
}
|
|
371
342
|
renderReturnBtn() {
|
|
372
343
|
const selectionCount = this.childOptions.filter((o) => o.selected).length;
|
|
373
|
-
const singleSelectionCountMessage = intl.formatMessage({
|
|
374
|
-
id: "select.optgroupSingleSelectionCount",
|
|
375
|
-
defaultMessage: "Item Selected",
|
|
376
|
-
description: "Text indicating number of selected in a group, where only a single selection is possible.",
|
|
377
|
-
}, { numSelected: selectionCount });
|
|
378
|
-
const multipleSelectionCountMessage = intl.formatMessage({
|
|
379
|
-
id: "select.optgroupMultipleSelectionCount",
|
|
380
|
-
defaultMessage: "{numSelected} Selected",
|
|
381
|
-
description: "Text indicating number of selected in a group, where multiple selections are possible.",
|
|
382
|
-
}, { numSelected: selectionCount });
|
|
383
344
|
return (h("button", { ref: (el) => (this.returnBtnEl = el), id: "return-btn", class: "return-btn", onKeyDown: (ev) => this.handleKeyDown(ev), onClick: () => {
|
|
384
345
|
//@ts-ignore -- Check out this one weird trick TypeScript doesn't want you to know about
|
|
385
346
|
this.el.getRootNode().host.isExpanded = false;
|
|
386
|
-
} }, h("div", { class: "svg-icon svg-previous" }), h("div", { class: "return-btn-label" }, this.optgroupLabel, selectionCount > 0 && (h("span", { class: "selection-count" }, this.multiple
|
|
347
|
+
} }, h("div", { class: "svg-icon svg-previous" }), h("div", { class: "return-btn-label" }, this.optgroupLabel, selectionCount > 0 && (h("span", { class: "selection-count" }, this.multiple
|
|
348
|
+
? selectMessages.getOptgroupMultipleSelectionCount(selectionCount)
|
|
349
|
+
: selectMessages.optgroupSingleSelectionCount)))));
|
|
387
350
|
}
|
|
388
351
|
renderSearchField() {
|
|
389
352
|
return (h("div", { class: "search" }, h("div", { class: "searchfield-wrapper", ref: (el) => (this.searchFieldWrapperEl = el) }, h("div", { class: "svg-icon svg-search" }), h("input", { ref: (el) => (this.searchFieldEl = el), class: "searchfield", role: "combobox", "aria-controls": "list",
|
|
@@ -391,10 +354,10 @@ export class PrivOptionList {
|
|
|
391
354
|
onKeyDown: (ev) => this.handleKeyDown(ev), onFocus: () => this.searchFieldWrapperEl.classList.add("focus"), onBlur: (ev) => this.handleSearchFieldBlur(ev), onInput: () => this.debouncedSearch(), placeholder: this.searchPlaceholder }))));
|
|
392
355
|
}
|
|
393
356
|
renderSearchFailedMessage() {
|
|
394
|
-
return h("div", { class: "search-results-message" },
|
|
357
|
+
return h("div", { class: "search-results-message" }, selectMessages.noSearchResults);
|
|
395
358
|
}
|
|
396
359
|
renderSelectAllButton() {
|
|
397
|
-
return (h("button", { ref: (el) => (this.selectAllEl = el), class: "select-all", onClick: () => this.handleSelectAllClick(), onKeyDown: (ev) => this.handleKeyDown(ev), tabindex: "-1" }, this.allSelected ?
|
|
360
|
+
return (h("button", { ref: (el) => (this.selectAllEl = el), class: "select-all", onClick: () => this.handleSelectAllClick(), onKeyDown: (ev) => this.handleKeyDown(ev), tabindex: "-1" }, this.allSelected ? selectMessages.deselectAllMessage : selectMessages.selectAllMessage));
|
|
398
361
|
}
|
|
399
362
|
renderCloneOptions() {
|
|
400
363
|
return Array.from(this.childOptions).map((o) => {
|
|
@@ -406,7 +369,7 @@ export class PrivOptionList {
|
|
|
406
369
|
return (h("div", { class: "non-options-wrapper" }, this.isInNestedSelect && this.renderReturnBtn(), this.search && this.renderSearchField(), this.visibleSelectAllButton && this.renderSelectAllButton()));
|
|
407
370
|
}
|
|
408
371
|
render() {
|
|
409
|
-
return (h("div", { class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { 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",
|
|
372
|
+
return (h("div", { key: '9bff5e1fd9c47e6a53a08771b7828006df908d65', class: "list-wrapper" }, (this.isInNestedSelect || this.search || this.visibleSelectAllButton) && this.renderNonOptions(), h("div", { key: '9064ef7a435327acd64c8789fd17fdd68c915892', 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: '42862b03eebe938669c91532d6bf5802912be520' })), h("div", { key: 'e74fd4a6d036b8eeade85b7048530b664147ccc3', id: "optionlist-announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
410
373
|
}
|
|
411
374
|
static get is() { return "priv-option-list"; }
|
|
412
375
|
static get originalStyleUrls() {
|
|
@@ -690,8 +653,9 @@ export class PrivOptionList {
|
|
|
690
653
|
"complexType": {
|
|
691
654
|
"signature": "(option: HTMLElement) => Promise<void>",
|
|
692
655
|
"parameters": [{
|
|
693
|
-
"
|
|
694
|
-
"
|
|
656
|
+
"name": "option",
|
|
657
|
+
"type": "HTMLElement",
|
|
658
|
+
"docs": ""
|
|
695
659
|
}],
|
|
696
660
|
"references": {
|
|
697
661
|
"Promise": {
|
|
@@ -714,8 +678,9 @@ export class PrivOptionList {
|
|
|
714
678
|
"complexType": {
|
|
715
679
|
"signature": "(optionToSelect?: \"next\" | \"previous\") => Promise<void>",
|
|
716
680
|
"parameters": [{
|
|
717
|
-
"
|
|
718
|
-
"
|
|
681
|
+
"name": "optionToSelect",
|
|
682
|
+
"type": "\"next\" | \"previous\" | undefined",
|
|
683
|
+
"docs": ""
|
|
719
684
|
}],
|
|
720
685
|
"references": {
|
|
721
686
|
"Promise": {
|
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import { h, Host, forceUpdate } from "@stencil/core";
|
|
2
|
-
import { getContextMeasurements, getTextDir,
|
|
3
|
-
import { globalMessages } from "../../../global/intl";
|
|
2
|
+
import { getContextMeasurements, getTextDir, isElOrChild, shouldOpenUp, toBool } from "../../../global/functions";
|
|
3
|
+
import { globalMessages, selectMessages } from "../../../global/intl";
|
|
4
4
|
export class NestedSelect {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.openUp = false;
|
|
7
7
|
this.overflowCount = 0;
|
|
8
8
|
this.displayedOptions = [];
|
|
9
9
|
this.clearSelectionMessage = this.multiple
|
|
10
|
-
?
|
|
11
|
-
|
|
12
|
-
defaultMessage: "Clear all Selections",
|
|
13
|
-
description: "Button text to clear selection. Use imperative",
|
|
14
|
-
})
|
|
15
|
-
: intl.formatMessage({
|
|
16
|
-
id: "select.singleClearSelection",
|
|
17
|
-
defaultMessage: "Clear Selection",
|
|
18
|
-
description: "Button text to clear selection. Use imperative",
|
|
19
|
-
});
|
|
10
|
+
? selectMessages.multiClearSelection
|
|
11
|
+
: selectMessages.singleClearSelection;
|
|
20
12
|
this.disabled = false;
|
|
21
13
|
this.maxHeight = "200px";
|
|
22
14
|
this.label = undefined;
|
|
@@ -26,27 +18,9 @@ export class NestedSelect {
|
|
|
26
18
|
this.multiple = false;
|
|
27
19
|
this.search = false;
|
|
28
20
|
this.selectAll = false;
|
|
29
|
-
this.placeholder = this.multiple
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
defaultMessage: "Make a selection",
|
|
33
|
-
description: "Placeholder text for multiple select. Use imperative",
|
|
34
|
-
})
|
|
35
|
-
: intl.formatMessage({
|
|
36
|
-
id: "select.singlePlaceholder",
|
|
37
|
-
defaultMessage: "Select an Option",
|
|
38
|
-
description: "Placeholder text for single select. Use imperative",
|
|
39
|
-
});
|
|
40
|
-
this.searchPlaceholder = intl.formatMessage({
|
|
41
|
-
id: "select.searchPlaceholder",
|
|
42
|
-
defaultMessage: "Search",
|
|
43
|
-
description: "Placeholder text. Use imperative",
|
|
44
|
-
});
|
|
45
|
-
this.allSelectedMessage = intl.formatMessage({
|
|
46
|
-
id: "select.allSelected",
|
|
47
|
-
defaultMessage: "All selected",
|
|
48
|
-
description: "Text displayed when all options are selected",
|
|
49
|
-
});
|
|
21
|
+
this.placeholder = this.multiple ? selectMessages.multiPlaceholder : selectMessages.singlePlaceholder;
|
|
22
|
+
this.searchPlaceholder = selectMessages.searchPlaceholder;
|
|
23
|
+
this.allSelectedMessage = selectMessages.allSelected;
|
|
50
24
|
this.isExpanded = false;
|
|
51
25
|
this.showClearSelectionButton = false;
|
|
52
26
|
this.announcement = "";
|
|
@@ -282,12 +256,7 @@ export class NestedSelect {
|
|
|
282
256
|
}
|
|
283
257
|
handleClearSelection() {
|
|
284
258
|
this.optgroupEls.forEach((optgroupEl) => optgroupEl.emitDeselection());
|
|
285
|
-
|
|
286
|
-
id: "select.selectionCleared",
|
|
287
|
-
defaultMessage: "Selection cleared",
|
|
288
|
-
description: "Screen reader announcement alerting the user they have cleared their selection",
|
|
289
|
-
});
|
|
290
|
-
this.announce(selectionClearedAnnouncement);
|
|
259
|
+
this.announce(selectMessages.selectionCleared);
|
|
291
260
|
if (!this.multiple) {
|
|
292
261
|
this.close();
|
|
293
262
|
}
|
|
@@ -300,17 +269,9 @@ export class NestedSelect {
|
|
|
300
269
|
renderSelectionCount(optgroupEl) {
|
|
301
270
|
const selectionCount = this.countOptgroupSelected(optgroupEl);
|
|
302
271
|
if (selectionCount) {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
description: "Text indicating number of selected in a group, where only a single selection is possible.",
|
|
307
|
-
}, { numSelected: selectionCount });
|
|
308
|
-
const multipleSelectionCountMessage = intl.formatMessage({
|
|
309
|
-
id: "select.optgroupMultipleSelectionCount",
|
|
310
|
-
defaultMessage: "{numSelected} Selected",
|
|
311
|
-
description: "Text indicating number of selected in a group, where multiple selections are possible.",
|
|
312
|
-
}, { numSelected: selectionCount });
|
|
313
|
-
return (h("div", { class: "selection-count" }, h("span", null, this.multiple ? multipleSelectionCountMessage : singleSelectionCountMessage)));
|
|
272
|
+
return (h("div", { class: "selection-count" }, h("span", null, this.multiple
|
|
273
|
+
? selectMessages.getOptgroupMultipleSelectionCount(selectionCount)
|
|
274
|
+
: selectMessages.optgroupSingleSelectionCount)));
|
|
314
275
|
}
|
|
315
276
|
}
|
|
316
277
|
render() {
|
|
@@ -325,16 +286,16 @@ export class NestedSelect {
|
|
|
325
286
|
this.isExpanded ? this.close() : this.open();
|
|
326
287
|
},
|
|
327
288
|
};
|
|
328
|
-
return (h(Host, { onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { class: "label-wrapper" }, h("label", { class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
289
|
+
return (h(Host, { key: '35b5a920424ccf73ba6c0f8b073660bc55f11d13', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '4a6083fd7d7a37484a11f76e23b09b38c45c5efc', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: 'f04741975bfc4f279c599fce8c75d388b8c4cd1b', class: "label-wrapper" }, h("label", { key: 'a736b71a96766ddbc7a9117edc93a9c4f726cadc', class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
329
290
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
330
|
-
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { class: "button-wrapper" }, h("button", Object.assign({}, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { class: "overflowcontrol" }, h("span", { class: "button-text" }, this.renderButtonText())), h("div", { class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("div", { ref: (el) => (this.menuEl = el), class: "menu", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.renderClearSelectionButton(), this.optgroupEls.map((optgroupEl) => {
|
|
291
|
+
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { key: '3b7e545c988aa5632f6642724c014833626cab84', class: "button-wrapper" }, h("button", Object.assign({ key: '25b334f4ca5c404caa0c0247bf55b4f5b413095d' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: 'c4d56e83b6b4c89dc0e104593fa92b9ba2a8c21f', class: "overflowcontrol" }, h("span", { key: 'b760eef949e5253468f13baff83667ee434d1951', class: "button-text" }, this.renderButtonText())), h("div", { key: 'db5f385e8000f44b7b9766a64d5cee7705f454f0', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '25e7af8324bd62bad0e695a607ed250979c16b4a', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '7934c8d583cd0d55c71e2c48178e6068f3493717', class: `dropdown ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("div", { key: 'aab0cff0d97a087612183e537d440f723fa227cc', ref: (el) => (this.menuEl = el), class: "menu", style: { "--max-height": this.constrainedMaxHeight }, tabIndex: -1 }, this.renderClearSelectionButton(), this.optgroupEls.map((optgroupEl) => {
|
|
331
292
|
return (h("button", { class: `menuitem group-btn ${optgroupEl.disabled ? "disabled" : ""}`, role: "menuitem", "data-label": optgroupEl.label, tabindex: -1, "aria-disabled": optgroupEl.disabled, onClick: () => {
|
|
332
293
|
if (!optgroupEl.disabled) {
|
|
333
294
|
optgroupEl.isExpanded = !optgroupEl.isExpanded;
|
|
334
295
|
forceUpdate(this.el);
|
|
335
296
|
}
|
|
336
297
|
}, onKeyDown: (ev) => this.handleMenuitemKeydown(ev) }, h("span", null, optgroupEl.label), this.renderSelectionCount(optgroupEl), optgroupEl.disabled && h("div", { class: "disabled-indication" }, "Disabled"), h("div", { class: "svg-icon svg-next" })));
|
|
337
|
-
})), h("div", { ref: (el) => (this.optListWrapperEl = el), class: "option-list-wrapper hidden" }, h("slot",
|
|
298
|
+
})), h("div", { key: 'e232b3658388254d67f422d7c61cf5dd76b78b01', ref: (el) => (this.optListWrapperEl = el), class: "option-list-wrapper hidden" }, h("slot", { key: '21c9e76ac62b193033df6865b12554db5d6eecc9' }))), h("div", { key: '5f8031fb45f9db031883834330717dc59ef21720', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage))), h("div", { key: '102c6d80ad7424b8d306125f06632b4316101533', id: "nestedselect-announcement", "aria-live": "assertive", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)));
|
|
338
299
|
}
|
|
339
300
|
static get is() { return "wm-nested-select"; }
|
|
340
301
|
static get encapsulation() { return "shadow"; }
|
|
@@ -527,7 +488,7 @@ export class NestedSelect {
|
|
|
527
488
|
},
|
|
528
489
|
"attribute": "placeholder",
|
|
529
490
|
"reflect": false,
|
|
530
|
-
"defaultValue": "this.multiple
|
|
491
|
+
"defaultValue": "this.multiple ? selectMessages.multiPlaceholder : selectMessages.singlePlaceholder"
|
|
531
492
|
},
|
|
532
493
|
"searchPlaceholder": {
|
|
533
494
|
"type": "string",
|
|
@@ -545,7 +506,7 @@ export class NestedSelect {
|
|
|
545
506
|
},
|
|
546
507
|
"attribute": "search-placeholder",
|
|
547
508
|
"reflect": false,
|
|
548
|
-
"defaultValue": "
|
|
509
|
+
"defaultValue": "selectMessages.searchPlaceholder"
|
|
549
510
|
},
|
|
550
511
|
"allSelectedMessage": {
|
|
551
512
|
"type": "string",
|
|
@@ -563,7 +524,7 @@ export class NestedSelect {
|
|
|
563
524
|
},
|
|
564
525
|
"attribute": "all-selected-message",
|
|
565
526
|
"reflect": false,
|
|
566
|
-
"defaultValue": "
|
|
527
|
+
"defaultValue": "selectMessages.allSelected"
|
|
567
528
|
},
|
|
568
529
|
"constrainedMaxHeight": {
|
|
569
530
|
"type": "string",
|
|
@@ -48,7 +48,7 @@ export class Optgroup {
|
|
|
48
48
|
handleDisabledAttribute(this.el, this.isDisabled);
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host,
|
|
51
|
+
return (h(Host, { key: 'bba30132f0e662bcfc6f9a4280558aa4426673f4' }, h("div", { key: '757e663ad18a9a451169f994f54faf8f9182e1d9', class: `list-wrapper` }, h("priv-option-list", { key: '1bfda628a518f2508084a2382cc7a2f19754859e', 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: 'd584feb13518107132003e262c5bcc818b677c5c' })))));
|
|
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, { role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { class: "sr-only" }, this.el.textContent)), h("div", { class: "subinfo" }, this.subinfo)));
|
|
146
|
+
return (h(Host, { key: '613fb3ff6678fbe5793a432817705b46c502ae06', role: "option", tabindex: this.focused ? 0 : -1, class: this.hostClasses }, h("div", { key: '8f9e3e8a88bf839e6b5801f01e6b451d297bce55', class: `option-wrapper ${this.parentOptionList.multiple ? "checkbox" : ""}` }, this.parentOptionList.multiple && (h("div", { key: '82c0706404571fda0937308433b9def82f021666', class: `checkbox svg-icon ${this.selected ? "svg-checkbox-selected" : "svg-checkbox-blank"}` })), h("span", { key: '8c657048302620555e49630a4adc94171894b0a3', class: "option-text", "aria-hidden": "true", ref: (el) => (this.textEl = el) }, this.el.textContent), h("span", { key: '879fad664edef7a7188a8dfac862b29d7f78af42', class: "sr-only" }, this.el.textContent)), h("div", { key: 'bf5a1372a0daf05ef3cf8af196eddcaacd7ee049', class: "subinfo" }, this.subinfo)));
|
|
147
147
|
}
|
|
148
148
|
static get is() { return "wm-option"; }
|
|
149
149
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { forceUpdate } from "@stencil/core";
|
|
3
|
-
import { getTextDir, shouldOpenUp,
|
|
4
|
-
import { globalMessages } from "../../../global/intl";
|
|
3
|
+
import { getTextDir, shouldOpenUp, isElOrChild, toBool, handleDisabledAttribute } from "../../../global/functions";
|
|
4
|
+
import { globalMessages, selectMessages } from "../../../global/intl";
|
|
5
5
|
export class Select {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.openUp = false;
|
|
@@ -18,21 +18,9 @@ export class Select {
|
|
|
18
18
|
this.multiple = false;
|
|
19
19
|
this.search = false;
|
|
20
20
|
this.selectAll = false;
|
|
21
|
-
this.placeholder =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
description: "Placeholder text. Use imperative",
|
|
25
|
-
});
|
|
26
|
-
this.searchPlaceholder = intl.formatMessage({
|
|
27
|
-
id: "select.searchPlaceholder",
|
|
28
|
-
defaultMessage: "Search",
|
|
29
|
-
description: "Placeholder text. Use imperative",
|
|
30
|
-
});
|
|
31
|
-
this.allSelectedMessage = intl.formatMessage({
|
|
32
|
-
id: "select.allSelected",
|
|
33
|
-
defaultMessage: "All selected",
|
|
34
|
-
description: "Text displayed when all options are selected",
|
|
35
|
-
});
|
|
21
|
+
this.placeholder = selectMessages.multiPlaceholder;
|
|
22
|
+
this.searchPlaceholder = selectMessages.searchPlaceholder;
|
|
23
|
+
this.allSelectedMessage = selectMessages.allSelected;
|
|
36
24
|
this.isExpanded = false;
|
|
37
25
|
this.announcement = "";
|
|
38
26
|
}
|
|
@@ -240,9 +228,9 @@ export class Select {
|
|
|
240
228
|
["aria-expanded"]: this.isExpanded ? "true" : "false",
|
|
241
229
|
onClick: () => (this.isExpanded ? this.close() : this.open()),
|
|
242
230
|
};
|
|
243
|
-
return (h(Host, { onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { ref: (el) => (this.labelEl = el), class: "label-wrapper" }, h("label", { class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
231
|
+
return (h(Host, { key: 'e37a1ce52a903991570fbf06cad2b17ccae703de', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '973d0197afb6fef37768c0ea86002b9be4a4e50e', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '7632bd4f20bc49fbfc3b4e7a9c8ed63d7a7a6f44', ref: (el) => (this.labelEl = el), class: "label-wrapper" }, h("label", { key: '20caf14eab2111ba2b8f86519e2ba99be2eee496', class: "label", id: "label", htmlFor: "selectbtn" }, this.label,
|
|
244
232
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
245
|
-
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { class: "button-wrapper" }, h("button", Object.assign({}, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("priv-option-list", { ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => this.close(), onOptionListAllSelected: () => this.wmSelectAllSelected.emit(), onOptionListAllDeselected: () => this.wmSelectAllDeselected.emit() }, h("slot",
|
|
233
|
+
this.requiredField ? (h("span", { class: "required" }, h("span", { class: "sr-only" }, globalMessages.requiredField), h("span", { "aria-hidden": "true" }, "*"))) : (""))), h("div", { key: 'a527d782f81eeeb771164cc0b7449b696f34196d', class: "button-wrapper" }, h("button", Object.assign({ key: '39ed454cbff5e73d98d36eefd6fb79320f0dc517' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: '658551325b10ae492b13018e57a7871497972f8f', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: '425e8afaf12ee7921219e5b2076156459570fc72', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: 'c6bfe3c261ece6a4dfd6489fae77dd91b7730629', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: 'f9d3c5405c82d7724b074a197ca9c6f17acc1042', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '8452deceae0ecbcbf96a64c2d406aea66023b6ef', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: 'e5beb9e541348fe6127a058e60c4a292cbabb264', class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("priv-option-list", { key: '2ff10a32e89a597176a96ac852dd6e1fe118fc74', ref: (el) => (this.optionListEl = el), multiple: this.multiple, search: this.search, selectAll: this.selectAll, maxHeight: this.maxHeight, searchPlaceholder: this.searchPlaceholder, onOptionListCloseRequested: () => this.close(), onOptionListAllSelected: () => this.wmSelectAllSelected.emit(), onOptionListAllDeselected: () => this.wmSelectAllDeselected.emit() }, h("slot", { key: '947c0114cae3a41d14f5d0ecfaf72a6e4c61f411' }))), h("div", { key: '50b156927292a726eac80a6035db6185483cdf35', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: 'de0b2e27d65056a691182397405c6eec7cb38fcf', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
246
234
|
}
|
|
247
235
|
static get is() { return "wm-select"; }
|
|
248
236
|
static get encapsulation() { return "shadow"; }
|
|
@@ -435,7 +423,7 @@ export class Select {
|
|
|
435
423
|
},
|
|
436
424
|
"attribute": "placeholder",
|
|
437
425
|
"reflect": false,
|
|
438
|
-
"defaultValue": "
|
|
426
|
+
"defaultValue": "selectMessages.multiPlaceholder"
|
|
439
427
|
},
|
|
440
428
|
"searchPlaceholder": {
|
|
441
429
|
"type": "string",
|
|
@@ -453,7 +441,7 @@ export class Select {
|
|
|
453
441
|
},
|
|
454
442
|
"attribute": "search-placeholder",
|
|
455
443
|
"reflect": false,
|
|
456
|
-
"defaultValue": "
|
|
444
|
+
"defaultValue": "selectMessages.searchPlaceholder"
|
|
457
445
|
},
|
|
458
446
|
"allSelectedMessage": {
|
|
459
447
|
"type": "string",
|
|
@@ -471,7 +459,7 @@ export class Select {
|
|
|
471
459
|
},
|
|
472
460
|
"attribute": "all-selected-message",
|
|
473
461
|
"reflect": false,
|
|
474
|
-
"defaultValue": "
|
|
462
|
+
"defaultValue": "selectMessages.allSelected"
|
|
475
463
|
}
|
|
476
464
|
};
|
|
477
465
|
}
|
|
@@ -190,7 +190,7 @@ export class ActionMenu {
|
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (h(Host, { onBlur: () => this.close(false) }, h("div", { class: getTextDir() }, h("wm-button", { "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", { 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",
|
|
193
|
+
return (h(Host, { key: 'c6dfb14c3fe2e1a65238554ca585e94c7a5e8ed8', onBlur: () => this.close(false) }, h("div", { key: 'ae43b9b2e4da167c035ab018620f55f06cfdf17d', class: getTextDir() }, h("wm-button", { key: '22fbc47fb5e2430e2607bce4e820066906959ab7', "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: '90dd3b0691b50a06eb8cc4c27d2f7febdc6a00a4', 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: '5c6eeb1aa8b90c2b679d593d81f90cde7d10ff79' })))));
|
|
194
194
|
}
|
|
195
195
|
static get is() { return "wm-action-menu"; }
|
|
196
196
|
static get encapsulation() { return "shadow"; }
|
|
@@ -183,7 +183,7 @@ export class Button {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
render() {
|
|
186
|
-
return (h(Host, { class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { 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.renderIcon(), h("span", { class: "button-text" }, h("slot",
|
|
186
|
+
return (h(Host, { key: 'ae038ae6dddcd3220b1c3d027390d743e85ff3bc', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: 'e10a7276c46e73fc93b2e26b6f2f81b37625d08e', 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.renderIcon(), h("span", { key: '3dbdd426484b9265107fe994c160af6f2bbd6958', class: "button-text" }, h("slot", { key: 'f5e28ec3acb64b330185f9b65d0f221fd95f1399' })), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: 'c2b16a69daf975cf6996aa365756574d1f74920f', class: "selector-icon svg-icon svg-expand-more" })))));
|
|
187
187
|
}
|
|
188
188
|
static get is() { return "wm-button"; }
|
|
189
189
|
static get encapsulation() { return "shadow"; }
|
|
@@ -171,7 +171,7 @@ export class File {
|
|
|
171
171
|
return (h("div", { class: `file-wrapper` }, h("div", { class: `file ${this.errorMessage ? "--error" : ""} ${this.isCondensed ? "condensed" : ""}` }, this.renderFileName(), !this.errorMessage && (h("div", { class: "right-group" }, this.renderFileInfo(), this.fileActions !== "" && this.renderFileControls())), this.errorMessage && (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)));
|
|
172
172
|
}
|
|
173
173
|
render() {
|
|
174
|
-
return h(Host, { role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
|
|
174
|
+
return h(Host, { key: '534c481a5423a9f1a1ec811ec6b736e462a981ea', role: "listitem" }, this.isUploading ? this.renderFileInProgress() : this.renderFile());
|
|
175
175
|
}
|
|
176
176
|
static get is() { return "wm-file"; }
|
|
177
177
|
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", { role: "list", class: "list-wrapper" }, h("slot",
|
|
7
|
+
return (h("div", { key: '69e557483f15721fc39315353da4cc1db7b6405d', role: "list", class: "list-wrapper" }, h("slot", { key: '1f00bd3aa0961aa99298eacb90b65717e8a5fd87' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "wm-file-list"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -101,7 +101,7 @@ export class Input {
|
|
|
101
101
|
: `info error`;
|
|
102
102
|
}
|
|
103
103
|
render() {
|
|
104
|
-
return (h("div", { class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { class: "label-wrapper" }, h("label", { htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { class: "required", "aria-hidden": "true" }, "*")))), h("div", { class: "inner-wrapper" }, h("div", { class: "text-after-wrapper" }, h("div", { class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { 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", { 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", { class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { id: "info", class: "info" }, this.info)), h("div", { id: "error", class: "error-message" }, this.errorMessage), h("div", { class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
104
|
+
return (h("div", { key: '62f9860ec2c3ab8b8889a3cb16782cd751c785fb', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}`, ref: (el) => (this.inputWrapperEl = el) }, h("div", { key: '5ee7f338762c085696e47d58e8f75f93bf4d4a6f', class: "label-wrapper" }, h("label", { key: '65f22de9893c6f5edb02a60229a8b45869ff0807', htmlFor: "inputfield", class: "label" }, this.label, this.characterLimit && (h("span", { key: '43577e74f14b26a0f41d77d326cd88d3d171e6b7', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit))), this.requiredField && (h("span", { key: '440bf0ce343f6735ab26a4b3926da12353bf855f', class: "required", "aria-hidden": "true" }, "*")))), h("div", { key: 'ab920b6710d5a7d1aeb4a118d64da53c74e1edae', class: "inner-wrapper" }, h("div", { key: '9cb24ca5e904bbbbf3df16efe6b09ea2cacfd44c', class: "text-after-wrapper" }, h("div", { key: '78fa02386934097655347c80ce4e7b76e1531900', class: `inputfield-wrapper ${this.isDisabled ? "disabled" : ""}`, style: this.getInputWidth() }, this.symbolBefore && (h("span", { key: 'a34b2dd76159a2662bf4f0c693a2ff3a76483b32', class: "symbol", id: "symbol-before" }, this.symbolBefore)), h("input", { key: '361b681383669fd62399818fde3010bc67a484e2', 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: 'dcb784ead7dc9e468f260b3821957fe85c47fc0d', 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: 'd133d5ae885d18c52fba9e09b54918eef2005fba', class: "text-after", id: "text-after" }, this.textAfter))), this.info && (h("div", { key: 'e2ff90b30e75517d3aa96ad2a80af2a1875f4ba8', id: "info", class: "info" }, this.info)), h("div", { key: '68f36477a50cce27e642b47e49448e8f2502b275', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '8b86d3977cad2208e5428226ed83245b5747049d', class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
105
105
|
}
|
|
106
106
|
static get is() { return "wm-input"; }
|
|
107
107
|
static get encapsulation() { return "shadow"; }
|
|
@@ -98,7 +98,7 @@ export class Menuitem {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return (h(Host, { tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { class: "wrapper", "aria-disabled": this.disabled ? "true" : null }, this.icon && this.renderIcon(), this.el.textContent, this.description ? h("div", { class: "description" }, this.description) : "")));
|
|
101
|
+
return (h(Host, { key: '16c2fc6ddfd8439be81e11534f9a7303c121c6f8', tabindex: -1, role: "menuitem", "aria-disabled": this.disabled ? "true" : null }, h("div", { key: '138d8175228c5de3132e2b8c491baf5ea4ffeaaf', 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"; }
|
|
@@ -30,7 +30,7 @@ export class ModalFooter {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h("div", { class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { "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))));
|
|
33
|
+
return (h("div", { key: '10a9f1254c1b643ba9f89ac1ee0fae7858de6c9a', class: `wm-wrapper ${this.infoText ? " footer-text" : ""}` }, h("div", { key: '0952172dfbf984b1bade03bd46961ea87dcbf0fb', class: "wm-info", "aria-live": "polite" }, this.infoText), h("div", { key: 'cadbb6b7d1049d8569622d942a8ef729b7e3a433', class: "wm-button-collection" }, this.secondaryText && (h("wm-button", { key: 'd200b5ab6bf7345416584317b472644107beb221', onClick: () => this.emitParentSecondaryEvent(), id: `wm-secondary-${this.uid}`, ref: (el) => (this.primaryActionDisabled ? (this.lastElement = el) : undefined) }, this.secondaryText)), h("wm-button", { key: 'a549abb82c93025ad46f15efd73e0e064819d00c', "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))));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "wm-modal-footer"; }
|
|
36
36
|
static get originalStyleUrls() {
|
|
@@ -21,7 +21,7 @@ export class ModalHeader {
|
|
|
21
21
|
parentModal.emitCloseEvent();
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host,
|
|
24
|
+
return (h(Host, { key: 'b47b9c7312835b262a989a6767e22cb8989e11fa' }, h("div", { key: 'f630fc530287907277206152fd5f136464dfd4c1', class: "wm-wrapper" }, h("div", { key: '1905201146dc1822f4f94a8b6cfa555d8e8b48e4' }, h("h2", { key: '48c5208a4901e205fa75a97090ff94834cea72b2', class: "title", id: `wm-modal-heading-text-${this.uid}` }, this.heading, h("span", { key: 'b446719f776cad720d022078d7638f96541f24d1', class: "subtitle" }, this.subheading))), h("wm-button", { key: '7d7e003f445142544a26c80005801cdb7bd44d4f', "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() }))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "wm-modal-header"; }
|
|
27
27
|
static get originalStyleUrls() {
|
|
@@ -108,11 +108,11 @@ export class Modal {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h("dialog", { class: `${"wm-" + this.modalType}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
111
|
+
return (h("dialog", { key: '180b70af975b675f000a254775207ed546b77568', class: `${"wm-" + this.modalType}`, ref: (el) => (this.dialogEl = el), onKeyDown: (ev) => this.handleKeyDown(ev) }, h("div", { key: 'e56f1ec368d2b1adf786c3621e25a7d4854dbb59', class: "tabtrap sr-only", tabindex: "0", onFocus: (ev) => {
|
|
112
112
|
const focusedFromCloseButton = ev.relatedTarget && ev.relatedTarget == this.closeButtonEl;
|
|
113
113
|
// no related target means we're coming from outside the page (browser chrome), and first element should be focused instead
|
|
114
114
|
focusedFromCloseButton ? this.focusLastElement.emit() : this.focusFirstElement.emit();
|
|
115
|
-
} }), !this.hasBrowserPopoverSupport && h("div", { class: "wm-tooltip" }), h("slot",
|
|
115
|
+
} }), !this.hasBrowserPopoverSupport && h("div", { key: 'ab6538a71ffbdafb09b8921e69f5cfc6ebec2f43', class: "wm-tooltip" }), h("slot", { key: '4de24a0170c9ad81ec726f2fc899f10dedc81142' }), h("div", { key: 'acfccf69bdc7c9b57f77f5fb4fc47907921030c7', class: "tabtrap sr-only", tabindex: "0", onFocus: () => {
|
|
116
116
|
this.focusFirstElement.emit();
|
|
117
117
|
} })));
|
|
118
118
|
}
|