@watermarkinsights/ripple 5.13.0-alpha.2 → 5.13.0-alpha.3
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-DztnjEf7.js +92 -0
- package/dist/cjs/chartFunctions-CM2Nah_s.js +731 -0
- package/dist/cjs/functions-CoXfjC6r.js +10450 -0
- package/dist/cjs/index-Cig4P4gJ.js +2082 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-C7YbtGnk.js +37 -0
- package/dist/cjs/intl-DVt1J717.js +283 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/priv-calendar.cjs.entry.js +568 -0
- package/dist/cjs/priv-chart-popover.cjs.entry.js +136 -0
- package/dist/cjs/priv-navigator-button_2.cjs.entry.js +54 -0
- package/dist/cjs/priv-option-list_2.cjs.entry.js +556 -0
- package/dist/cjs/ripple.cjs.js +25 -0
- package/dist/cjs/wm-action-menu_4.cjs.entry.js +702 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +20 -0
- package/dist/cjs/wm-chart.cjs.entry.js +159 -0
- package/dist/cjs/wm-date-range.cjs.entry.js +479 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +249 -0
- package/dist/cjs/wm-file-list.cjs.entry.js +20 -0
- package/dist/cjs/wm-file.cjs.entry.js +184 -0
- package/dist/cjs/wm-input.cjs.entry.js +113 -0
- package/dist/cjs/wm-line-chart.cjs.entry.js +451 -0
- package/dist/cjs/wm-modal-footer.cjs.entry.js +46 -0
- package/dist/cjs/wm-modal-header.cjs.entry.js +38 -0
- package/dist/cjs/wm-modal-pss-footer.cjs.entry.js +42 -0
- package/dist/cjs/wm-modal-pss-header.cjs.entry.js +41 -0
- package/dist/cjs/wm-modal-pss.cjs.entry.js +137 -0
- package/dist/cjs/wm-modal.cjs.entry.js +135 -0
- package/dist/cjs/wm-navigation-hamburger.cjs.entry.js +50 -0
- package/dist/cjs/wm-navigation-item.cjs.entry.js +20 -0
- package/dist/cjs/wm-navigation.cjs.entry.js +118 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +329 -0
- package/dist/cjs/wm-nested-select.cjs.entry.js +310 -0
- package/dist/cjs/wm-optgroup.cjs.entry.js +70 -0
- package/dist/cjs/wm-pagination.cjs.entry.js +225 -0
- package/dist/cjs/wm-progress-indicator.cjs.entry.js +109 -0
- package/dist/cjs/wm-progress-monitor.cjs.entry.js +73 -0
- package/dist/cjs/wm-progress-slice.cjs.entry.js +15 -0
- package/dist/cjs/wm-search.cjs.entry.js +210 -0
- package/dist/cjs/wm-select.cjs.entry.js +251 -0
- package/dist/cjs/wm-tab-item.cjs.entry.js +65 -0
- package/dist/cjs/wm-tab-list.cjs.entry.js +177 -0
- package/dist/cjs/wm-tab-panel.cjs.entry.js +34 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +879 -0
- package/dist/cjs/wm-tag-option.cjs.entry.js +37 -0
- package/dist/cjs/wm-textarea.cjs.entry.js +81 -0
- package/dist/cjs/wm-timepicker.cjs.entry.js +302 -0
- package/dist/cjs/wm-toggletip.cjs.entry.js +178 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +315 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +19 -0
- package/dist/collection/collection-manifest.json +58 -0
- package/dist/collection/components/charts/chartFunctions.js +665 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.css +908 -0
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +261 -0
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +128 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.css +1274 -0
- package/dist/collection/components/charts/wm-chart/wm-chart.js +445 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.css +1067 -0
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +742 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.css +1274 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +271 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.css +909 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +154 -0
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +124 -0
- package/dist/collection/components/datepickers/datepicker.css +1044 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.css +1279 -0
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +849 -0
- package/dist/collection/components/datepickers/wm-date-range.js +869 -0
- package/dist/collection/components/datepickers/wm-datepicker.js +538 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.css +918 -0
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +791 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +1181 -0
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +644 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.css +830 -0
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +265 -0
- package/dist/collection/components/selects/wm-option/wm-option.css +931 -0
- package/dist/collection/components/selects/wm-option/wm-option.js +539 -0
- package/dist/collection/components/selects/wm-select/wm-select.css +1104 -0
- package/dist/collection/components/selects/wm-select/wm-select.js +606 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.css +891 -0
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +444 -0
- package/dist/collection/components/wm-button/wm-button.css +1261 -0
- package/dist/collection/components/wm-button/wm-button.js +510 -0
- package/dist/collection/components/wm-file/wm-file.css +927 -0
- package/dist/collection/components/wm-file/wm-file.js +423 -0
- package/dist/collection/components/wm-file-list/wm-file-list.css +820 -0
- package/dist/collection/components/wm-file-list/wm-file-list.js +47 -0
- package/dist/collection/components/wm-input/wm-input.css +993 -0
- package/dist/collection/components/wm-input/wm-input.js +498 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +891 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +425 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +845 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +152 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +844 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +83 -0
- package/dist/collection/components/wm-modal/wm-modal.css +892 -0
- package/dist/collection/components/wm-modal/wm-modal.js +356 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.css +852 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +148 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.css +846 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +86 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.css +928 -0
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +369 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.css +847 -0
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +120 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.css +856 -0
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +99 -0
- package/dist/collection/components/wm-navigation/wm-navigation.css +898 -0
- package/dist/collection/components/wm-navigation/wm-navigation.js +192 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +850 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +90 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +830 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +130 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +903 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +515 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +971 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +373 -0
- package/dist/collection/components/wm-search/wm-search.css +896 -0
- package/dist/collection/components/wm-search/wm-search.js +462 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +1078 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +280 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +869 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +187 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +841 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +276 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +825 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +97 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +1276 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +1245 -0
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +251 -0
- package/dist/collection/components/wm-textarea/wm-textarea.css +980 -0
- package/dist/collection/components/wm-textarea/wm-textarea.js +331 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +1094 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +559 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +1152 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +295 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +1563 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +618 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +28 -0
- package/dist/collection/dev/button.js +0 -0
- package/dist/collection/dev/chart-small.js +56 -0
- package/dist/collection/dev/chart.js +18 -0
- package/dist/collection/dev/date-range.js +6 -0
- package/dist/collection/dev/datepicker.js +46 -0
- package/dist/collection/dev/file-list.js +16 -0
- package/dist/collection/dev/file.js +0 -0
- package/dist/collection/dev/input.js +6 -0
- package/dist/collection/dev/line-chart.js +0 -0
- package/dist/collection/dev/modal.js +48 -0
- package/dist/collection/dev/navigation.js +13 -0
- package/dist/collection/dev/navigator.js +34 -0
- package/dist/collection/dev/nested-select.js +36 -0
- package/dist/collection/dev/pagination.js +7 -0
- package/dist/collection/dev/progress-monitor.js +0 -0
- package/dist/collection/dev/pss-modal.js +8 -0
- package/dist/collection/dev/scripts.js +49 -0
- package/dist/collection/dev/search.js +72 -0
- package/dist/collection/dev/select.js +57 -0
- package/dist/collection/dev/snackbar.js +60 -0
- package/dist/collection/dev/tabs.js +44 -0
- package/dist/collection/dev/tag-input.js +32 -0
- package/dist/collection/dev/textarea.js +28 -0
- package/dist/collection/dev/timepicker.js +32 -0
- package/dist/collection/dev/toggletip.js +9 -0
- package/dist/collection/dev/uploader.js +139 -0
- package/dist/collection/global/__mocks__/functions.js +6 -0
- package/dist/collection/global/functions.js +825 -0
- package/dist/collection/global/global.js +88 -0
- package/dist/collection/global/interfaces.js +51 -0
- package/dist/collection/global/intl.js +274 -0
- package/dist/collection/global/services/__mocks__/http-service.js +130 -0
- package/dist/collection/global/services/http-service.js +50 -0
- package/dist/collection/lang/lang.js +5 -0
- package/dist/collection/lang/missing.js +43 -0
- package/dist/collection/lang/piglatin.js +101 -0
- package/dist/components/chartFunctions.js +714 -0
- package/dist/components/functions.js +10410 -0
- package/dist/components/index.js +91 -0
- package/dist/components/interfaces.js +34 -0
- package/dist/components/intl.js +277 -0
- package/dist/components/priv-calendar.js +6 -0
- package/dist/components/priv-calendar2.js +592 -0
- package/dist/components/priv-chart-popover.js +6 -0
- package/dist/components/priv-chart-popover2.js +154 -0
- package/dist/components/priv-navigator-button.js +6 -0
- package/dist/components/priv-navigator-button2.js +42 -0
- package/dist/components/priv-navigator-item.js +6 -0
- package/dist/components/priv-navigator-item2.js +49 -0
- package/dist/components/priv-option-list.js +6 -0
- package/dist/components/priv-option-list2.js +421 -0
- package/dist/components/wm-action-menu.js +6 -0
- package/dist/components/wm-action-menu2.js +231 -0
- package/dist/components/wm-button.js +6 -0
- package/dist/components/wm-button2.js +231 -0
- package/dist/components/wm-chart-slice.js +41 -0
- package/dist/components/wm-chart.js +197 -0
- package/dist/components/wm-date-range.js +522 -0
- package/dist/components/wm-datepicker.js +287 -0
- package/dist/components/wm-file-list.js +38 -0
- package/dist/components/wm-file.js +228 -0
- package/dist/components/wm-input.js +152 -0
- package/dist/components/wm-line-chart.js +497 -0
- package/dist/components/wm-menuitem.js +6 -0
- package/dist/components/wm-menuitem2.js +146 -0
- package/dist/components/wm-modal-footer.js +73 -0
- package/dist/components/wm-modal-header.js +61 -0
- package/dist/components/wm-modal-pss-footer.js +69 -0
- package/dist/components/wm-modal-pss-header.js +64 -0
- package/dist/components/wm-modal-pss.js +162 -0
- package/dist/components/wm-modal.js +161 -0
- package/dist/components/wm-navigation-hamburger.js +70 -0
- package/dist/components/wm-navigation-item.js +40 -0
- package/dist/components/wm-navigation.js +144 -0
- package/dist/components/wm-navigator.js +369 -0
- package/dist/components/wm-nested-select.js +343 -0
- package/dist/components/wm-optgroup.js +107 -0
- package/dist/components/wm-option.js +6 -0
- package/dist/components/wm-option2.js +196 -0
- package/dist/components/wm-pagination.js +251 -0
- package/dist/components/wm-progress-indicator.js +144 -0
- package/dist/components/wm-progress-monitor.js +93 -0
- package/dist/components/wm-progress-slice.js +37 -0
- package/dist/components/wm-search.js +250 -0
- package/dist/components/wm-select.js +6 -0
- package/dist/components/wm-select2.js +294 -0
- package/dist/components/wm-snackbar.js +210 -0
- package/dist/components/wm-tab-item.js +85 -0
- package/dist/components/wm-tab-list.js +217 -0
- package/dist/components/wm-tab-panel.js +52 -0
- package/dist/components/wm-tag-input.js +919 -0
- package/dist/components/wm-tag-option.js +63 -0
- package/dist/components/wm-textarea.js +113 -0
- package/dist/components/wm-timepicker.js +333 -0
- package/dist/components/wm-toggletip.js +200 -0
- package/dist/components/wm-uploader.js +348 -0
- package/dist/components/wm-wrapper.js +34 -0
- package/dist/esm/app-globals-9HoPoE5v.js +90 -0
- package/dist/esm/chartFunctions-BFCUD5JX.js +714 -0
- package/dist/esm/functions-ZDMCMR3o.js +10410 -0
- package/dist/esm/index-EopL5zo4.js +2071 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-CyJHzEjr.js +34 -0
- package/dist/esm/intl-DYVRT1s6.js +277 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/priv-calendar.entry.js +566 -0
- package/dist/esm/priv-chart-popover.entry.js +134 -0
- package/dist/esm/priv-navigator-button_2.entry.js +51 -0
- package/dist/esm/priv-option-list_2.entry.js +553 -0
- package/dist/esm/ripple.js +21 -0
- package/dist/esm/wm-action-menu_4.entry.js +697 -0
- package/dist/esm/wm-chart-slice.entry.js +18 -0
- package/dist/esm/wm-chart.entry.js +157 -0
- package/dist/esm/wm-date-range.entry.js +477 -0
- package/dist/esm/wm-datepicker.entry.js +247 -0
- package/dist/esm/wm-file-list.entry.js +18 -0
- package/dist/esm/wm-file.entry.js +182 -0
- package/dist/esm/wm-input.entry.js +111 -0
- package/dist/esm/wm-line-chart.entry.js +449 -0
- package/dist/esm/wm-modal-footer.entry.js +44 -0
- package/dist/esm/wm-modal-header.entry.js +36 -0
- package/dist/esm/wm-modal-pss-footer.entry.js +40 -0
- package/dist/esm/wm-modal-pss-header.entry.js +39 -0
- package/dist/esm/wm-modal-pss.entry.js +135 -0
- package/dist/esm/wm-modal.entry.js +133 -0
- package/dist/esm/wm-navigation-hamburger.entry.js +48 -0
- package/dist/esm/wm-navigation-item.entry.js +18 -0
- package/dist/esm/wm-navigation.entry.js +116 -0
- package/dist/esm/wm-navigator.entry.js +327 -0
- package/dist/esm/wm-nested-select.entry.js +308 -0
- package/dist/esm/wm-optgroup.entry.js +68 -0
- package/dist/esm/wm-pagination.entry.js +223 -0
- package/dist/esm/wm-progress-indicator.entry.js +107 -0
- package/dist/esm/wm-progress-monitor.entry.js +71 -0
- package/dist/esm/wm-progress-slice.entry.js +13 -0
- package/dist/esm/wm-search.entry.js +208 -0
- package/dist/esm/wm-select.entry.js +249 -0
- package/dist/esm/wm-tab-item.entry.js +63 -0
- package/dist/esm/wm-tab-list.entry.js +175 -0
- package/dist/esm/wm-tab-panel.entry.js +32 -0
- package/dist/esm/wm-tag-input.entry.js +877 -0
- package/dist/esm/wm-tag-option.entry.js +35 -0
- package/dist/esm/wm-textarea.entry.js +79 -0
- package/dist/esm/wm-timepicker.entry.js +300 -0
- package/dist/esm/wm-toggletip.entry.js +176 -0
- package/dist/esm/wm-uploader.entry.js +313 -0
- package/dist/esm/wm-wrapper.entry.js +17 -0
- package/dist/esm-es5/app-globals-9HoPoE5v.js +1 -0
- package/dist/esm-es5/chartFunctions-BFCUD5JX.js +1 -0
- package/dist/esm-es5/functions-ZDMCMR3o.js +1 -0
- package/dist/esm-es5/index-EopL5zo4.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/interfaces-CyJHzEjr.js +1 -0
- package/dist/esm-es5/intl-DYVRT1s6.js +1 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/priv-calendar.entry.js +1 -0
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -0
- package/dist/esm-es5/priv-navigator-button_2.entry.js +1 -0
- package/dist/esm-es5/priv-option-list_2.entry.js +1 -0
- package/dist/esm-es5/ripple.js +1 -0
- package/dist/esm-es5/wm-action-menu_4.entry.js +1 -0
- package/dist/esm-es5/wm-chart-slice.entry.js +1 -0
- package/dist/esm-es5/wm-chart.entry.js +1 -0
- package/dist/esm-es5/wm-date-range.entry.js +1 -0
- package/dist/esm-es5/wm-datepicker.entry.js +1 -0
- package/dist/esm-es5/wm-file-list.entry.js +1 -0
- package/dist/esm-es5/wm-file.entry.js +1 -0
- package/dist/esm-es5/wm-input.entry.js +1 -0
- package/dist/esm-es5/wm-line-chart.entry.js +1 -0
- package/dist/esm-es5/wm-modal-footer.entry.js +1 -0
- package/dist/esm-es5/wm-modal-header.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss-footer.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss-header.entry.js +1 -0
- package/dist/esm-es5/wm-modal-pss.entry.js +1 -0
- package/dist/esm-es5/wm-modal.entry.js +1 -0
- package/dist/esm-es5/wm-navigation-hamburger.entry.js +1 -0
- package/dist/esm-es5/wm-navigation-item.entry.js +1 -0
- package/dist/esm-es5/wm-navigation.entry.js +1 -0
- package/dist/esm-es5/wm-navigator.entry.js +1 -0
- package/dist/esm-es5/wm-nested-select.entry.js +1 -0
- package/dist/esm-es5/wm-optgroup.entry.js +1 -0
- package/dist/esm-es5/wm-pagination.entry.js +1 -0
- package/dist/esm-es5/wm-progress-indicator.entry.js +1 -0
- package/dist/esm-es5/wm-progress-monitor.entry.js +1 -0
- package/dist/esm-es5/wm-progress-slice.entry.js +1 -0
- package/dist/esm-es5/wm-search.entry.js +1 -0
- package/dist/esm-es5/wm-select.entry.js +1 -0
- package/dist/esm-es5/wm-tab-item.entry.js +1 -0
- package/dist/esm-es5/wm-tab-list.entry.js +1 -0
- package/dist/esm-es5/wm-tab-panel.entry.js +1 -0
- package/dist/esm-es5/wm-tag-input.entry.js +1 -0
- package/dist/esm-es5/wm-tag-option.entry.js +1 -0
- package/dist/esm-es5/wm-textarea.entry.js +1 -0
- package/dist/esm-es5/wm-timepicker.entry.js +1 -0
- package/dist/esm-es5/wm-toggletip.entry.js +1 -0
- package/dist/esm-es5/wm-uploader.entry.js +1 -0
- package/dist/esm-es5/wm-wrapper.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +2 -0
- package/dist/loader/index.cjs.js +2 -0
- package/dist/loader/index.d.ts +24 -0
- package/dist/loader/index.es2017.js +2 -0
- package/dist/loader/index.js +3 -0
- package/dist/ripple/index.esm.js +0 -0
- package/dist/ripple/p-032f127e.entry.js +1 -0
- package/dist/ripple/p-0bd43518.system.entry.js +1 -0
- package/dist/ripple/p-0dccd9b4.system.entry.js +1 -0
- package/dist/ripple/p-0dffa9ff.system.entry.js +1 -0
- package/dist/ripple/p-10d2b86e.entry.js +1 -0
- package/dist/ripple/p-1818d7f9.entry.js +1 -0
- package/dist/ripple/p-18d22114.system.entry.js +1 -0
- package/dist/ripple/p-1a769629.system.entry.js +1 -0
- package/dist/ripple/p-271ba485.system.entry.js +1 -0
- package/dist/ripple/p-2d41fbed.system.entry.js +1 -0
- package/dist/ripple/p-2f26b6ac.entry.js +1 -0
- package/dist/ripple/p-3065bbe5.system.entry.js +1 -0
- package/dist/ripple/p-306caa10.entry.js +1 -0
- package/dist/ripple/p-32f2f3b4.system.entry.js +1 -0
- package/dist/ripple/p-340b73a9.system.entry.js +1 -0
- package/dist/ripple/p-42f9cd3d.entry.js +1 -0
- package/dist/ripple/p-47b525bd.entry.js +1 -0
- package/dist/ripple/p-492a8a9f.entry.js +1 -0
- package/dist/ripple/p-4c316652.system.entry.js +1 -0
- package/dist/ripple/p-54aeadde.entry.js +1 -0
- package/dist/ripple/p-568e29d3.entry.js +1 -0
- package/dist/ripple/p-588a86ed.system.entry.js +1 -0
- package/dist/ripple/p-591fd100.entry.js +1 -0
- package/dist/ripple/p-5a6cbc14.system.entry.js +1 -0
- package/dist/ripple/p-5abe1171.system.entry.js +1 -0
- package/dist/ripple/p-5ae17300.system.entry.js +1 -0
- package/dist/ripple/p-5b02ae40.entry.js +1 -0
- package/dist/ripple/p-5e438798.system.entry.js +1 -0
- package/dist/ripple/p-5ed4177e.entry.js +1 -0
- package/dist/ripple/p-6133160d.system.entry.js +1 -0
- package/dist/ripple/p-620aff89.entry.js +1 -0
- package/dist/ripple/p-65db2c0f.entry.js +1 -0
- package/dist/ripple/p-70ed57bf.entry.js +1 -0
- package/dist/ripple/p-735d033a.entry.js +1 -0
- package/dist/ripple/p-74b1e110.entry.js +1 -0
- package/dist/ripple/p-77a8306c.entry.js +1 -0
- package/dist/ripple/p-7886fe5e.system.entry.js +1 -0
- package/dist/ripple/p-7ce09692.system.entry.js +1 -0
- package/dist/ripple/p-7cf1d9eb.system.entry.js +1 -0
- package/dist/ripple/p-7e786c28.system.entry.js +1 -0
- package/dist/ripple/p-812615ae.entry.js +1 -0
- package/dist/ripple/p-8a33538f.entry.js +1 -0
- package/dist/ripple/p-8b9c4e3e.entry.js +1 -0
- package/dist/ripple/p-90925ea9.entry.js +1 -0
- package/dist/ripple/p-959afdcf.entry.js +1 -0
- package/dist/ripple/p-997bdd2e.system.entry.js +1 -0
- package/dist/ripple/p-9db5f78e.entry.js +1 -0
- package/dist/ripple/p-BexWEx3U.system.js +1 -0
- package/dist/ripple/p-BgmAsS86.system.js +1 -0
- package/dist/ripple/p-Buh1DT2-.js +1 -0
- package/dist/ripple/p-CLZytLAw.system.js +1 -0
- package/dist/ripple/p-CTau6pR2.system.js +2 -0
- package/dist/ripple/p-CwkTkxrj.system.js +1 -0
- package/dist/ripple/p-CyJHzEjr.js +1 -0
- package/dist/ripple/p-DXsimRMV.js +1 -0
- package/dist/ripple/p-EopL5zo4.js +2 -0
- package/dist/ripple/p-GXdCI-yj.system.js +1 -0
- package/dist/ripple/p-UJrCrAlw.system.js +1 -0
- package/dist/ripple/p-YWpyar7R.system.js +1 -0
- package/dist/ripple/p-ZDMCMR3o.js +1 -0
- package/dist/ripple/p-b0b94ac4.system.entry.js +1 -0
- package/dist/ripple/p-b12640bd.entry.js +1 -0
- package/dist/ripple/p-b16431b0.system.entry.js +1 -0
- package/dist/ripple/p-b43cc69f.entry.js +1 -0
- package/dist/ripple/p-b4917824.entry.js +1 -0
- package/dist/ripple/p-b55babe1.system.entry.js +1 -0
- package/dist/ripple/p-ba48d47a.entry.js +1 -0
- package/dist/ripple/p-ba8ca46b.system.entry.js +1 -0
- package/dist/ripple/p-bee35fef.entry.js +1 -0
- package/dist/ripple/p-c273bb1c.system.entry.js +1 -0
- package/dist/ripple/p-cdebe76b.system.entry.js +1 -0
- package/dist/ripple/p-ce9634a2.entry.js +1 -0
- package/dist/ripple/p-d20ed498.entry.js +1 -0
- package/dist/ripple/p-d3e6498c.system.entry.js +1 -0
- package/dist/ripple/p-d40b6ef1.system.entry.js +1 -0
- package/dist/ripple/p-d4481342.system.entry.js +1 -0
- package/dist/ripple/p-d5bcab58.entry.js +1 -0
- package/dist/ripple/p-d7660e7d.entry.js +1 -0
- package/dist/ripple/p-d85f017a.system.entry.js +1 -0
- package/dist/ripple/p-da5ad94c.system.entry.js +1 -0
- package/dist/ripple/p-dcca5771.system.entry.js +1 -0
- package/dist/ripple/p-dd236f42.system.entry.js +1 -0
- package/dist/ripple/p-de33fd67.entry.js +1 -0
- package/dist/ripple/p-e0c9798d.system.entry.js +1 -0
- package/dist/ripple/p-e3700f4c.entry.js +1 -0
- package/dist/ripple/p-e901154b.entry.js +1 -0
- package/dist/ripple/p-e9fc862d.entry.js +1 -0
- package/dist/ripple/p-ea885cf3.system.entry.js +1 -0
- package/dist/ripple/p-f4c4218c.system.entry.js +1 -0
- package/dist/ripple/p-f57eb234.system.entry.js +1 -0
- package/dist/ripple/p-f858f5f9.system.entry.js +1 -0
- package/dist/ripple/p-f8721463.system.entry.js +1 -0
- package/dist/ripple/p-f881be15.entry.js +1 -0
- package/dist/ripple/p-f98949ad.entry.js +1 -0
- package/dist/ripple/p-fdcbcdf5.entry.js +1 -0
- package/dist/ripple/p-sXfORL9J.js +1 -0
- package/dist/ripple/ripple.css +1 -0
- package/dist/ripple/ripple.esm.js +1 -0
- package/dist/ripple/ripple.js +127 -0
- package/package.json +2 -2
- /package/dist/{types/test-setup.d.ts → collection/dev/action-menu.js} +0 -0
|
@@ -0,0 +1,644 @@
|
|
|
1
|
+
import { h, Host, forceUpdate } from "@stencil/core";
|
|
2
|
+
import { getContextMeasurements, getTextDir, isElOrChild, shouldOpenUp, toBool } from "../../../global/functions";
|
|
3
|
+
import { globalMessages, selectMessages } from "../../../global/intl";
|
|
4
|
+
export class NestedSelect {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.disabled = false;
|
|
7
|
+
this.maxHeight = "200px";
|
|
8
|
+
this.labelPosition = "top";
|
|
9
|
+
this.requiredField = false;
|
|
10
|
+
this.multiple = false;
|
|
11
|
+
this.search = false;
|
|
12
|
+
this.selectAll = false;
|
|
13
|
+
this.placeholder = this.multiple ? selectMessages.multiPlaceholder : selectMessages.singlePlaceholder;
|
|
14
|
+
this.searchPlaceholder = selectMessages.searchPlaceholder;
|
|
15
|
+
this.allSelectedMessage = selectMessages.allSelected;
|
|
16
|
+
this.isExpanded = false;
|
|
17
|
+
this.showClearSelectionButton = false;
|
|
18
|
+
this.announcement = "";
|
|
19
|
+
this.openUp = false;
|
|
20
|
+
this.constrainedMaxHeight = this.maxHeight; // internal, limits the upwards maxheight of the dropdown if it decides to open upwards but there is not enough room
|
|
21
|
+
this.overflowCount = 0;
|
|
22
|
+
this.displayedOptions = [];
|
|
23
|
+
this.clearSelectionMessage = this.multiple
|
|
24
|
+
? selectMessages.multiClearSelection
|
|
25
|
+
: selectMessages.singleClearSelection;
|
|
26
|
+
}
|
|
27
|
+
get isDisabled() {
|
|
28
|
+
// string "false" needs to be treated as bool False because react wrappers convert bool to string.
|
|
29
|
+
return toBool(this.disabled);
|
|
30
|
+
}
|
|
31
|
+
get childOptions() {
|
|
32
|
+
return Array.from(this.el.querySelectorAll("wm-option"));
|
|
33
|
+
}
|
|
34
|
+
get optgroupEls() {
|
|
35
|
+
return Array.from(this.el.querySelectorAll("wm-optgroup"));
|
|
36
|
+
}
|
|
37
|
+
get menuitemEls() {
|
|
38
|
+
return Array.from(this.el.shadowRoot.querySelectorAll(".menuitem"));
|
|
39
|
+
}
|
|
40
|
+
get allSelected() {
|
|
41
|
+
return this.childOptions.every((option) => option.selected);
|
|
42
|
+
}
|
|
43
|
+
componentWillLoad() {
|
|
44
|
+
const mutationObserver = new MutationObserver((mutationRecordList) => mutationRecordList.forEach((_mutationRecord) => this.handleChildChange()));
|
|
45
|
+
mutationObserver.observe(this.el, {
|
|
46
|
+
childList: true,
|
|
47
|
+
attributes: true,
|
|
48
|
+
subtree: true,
|
|
49
|
+
attributeFilter: ["selected"],
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
handleChildChange() {
|
|
53
|
+
// on update of children or children selected state, reset button text and rerender
|
|
54
|
+
this.setButtonText();
|
|
55
|
+
forceUpdate(this.el);
|
|
56
|
+
if (this.multiple) {
|
|
57
|
+
// update state of clone options
|
|
58
|
+
this.optgroupEls.forEach((optgroupEl) => optgroupEl.handleChildChange());
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
setButtonText() {
|
|
62
|
+
this.displayedOptions = this.childOptions.filter((x) => x.selected);
|
|
63
|
+
// handle overflow + counter for multiselect
|
|
64
|
+
if (this.multiple) {
|
|
65
|
+
// this is a fixed measurement accounting for the max width of a 3 character overflow counter
|
|
66
|
+
const overflowCounterWidth = 38;
|
|
67
|
+
const computedStyle = window.getComputedStyle(this.buttonEl);
|
|
68
|
+
// there seems to be no quick way to get an elements width without padding, except for subtracting padding manually
|
|
69
|
+
const paddingLeft = parseInt(computedStyle.getPropertyValue("padding-left").slice(0, -2));
|
|
70
|
+
const paddingRight = parseInt(computedStyle.getPropertyValue("padding-right").slice(0, -2));
|
|
71
|
+
const availableSpace = this.buttonEl.clientWidth - paddingLeft - paddingRight - overflowCounterWidth;
|
|
72
|
+
this.overflowCount = 0;
|
|
73
|
+
this.measurementAreaEl.textContent = this.displayedOptions.map((x) => x.textContent).join(", ");
|
|
74
|
+
let optionsTotalWidth = this.measurementAreaEl.clientWidth;
|
|
75
|
+
while (optionsTotalWidth > availableSpace && this.displayedOptions.length > 1) {
|
|
76
|
+
this.overflowCount++;
|
|
77
|
+
this.displayedOptions.pop();
|
|
78
|
+
this.measurementAreaEl.textContent = this.displayedOptions.map((x) => x.textContent).join(", ");
|
|
79
|
+
optionsTotalWidth = this.measurementAreaEl.clientWidth;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
countOptgroupSelected(optgroupEl) {
|
|
84
|
+
let selectedOptions = Array.from(optgroupEl.querySelectorAll("wm-option")).filter((option) => option.selected);
|
|
85
|
+
return selectedOptions.length;
|
|
86
|
+
}
|
|
87
|
+
handleOptionSelection() {
|
|
88
|
+
if (!this.multiple) {
|
|
89
|
+
this.close();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
handleChildEnter() {
|
|
93
|
+
// only occurs for multiselects. handle the click, then close
|
|
94
|
+
this.close();
|
|
95
|
+
}
|
|
96
|
+
closePopupOnEscape() {
|
|
97
|
+
this.close();
|
|
98
|
+
}
|
|
99
|
+
handleKeyDown(ev) {
|
|
100
|
+
switch (ev.key) {
|
|
101
|
+
case "Tab":
|
|
102
|
+
// if tabbing backwards, close and return focus to button. Otherwise, close but do not redirect focus.
|
|
103
|
+
this.close(ev.shiftKey ? true : false);
|
|
104
|
+
break;
|
|
105
|
+
case "ArrowDown":
|
|
106
|
+
if (this.isExpanded === false) {
|
|
107
|
+
ev.preventDefault();
|
|
108
|
+
this.open();
|
|
109
|
+
}
|
|
110
|
+
break;
|
|
111
|
+
case "ArrowUp":
|
|
112
|
+
if (this.isExpanded === false) {
|
|
113
|
+
ev.preventDefault();
|
|
114
|
+
this.open(true);
|
|
115
|
+
}
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
close(returnFocus = true) {
|
|
120
|
+
if (this.isExpanded) {
|
|
121
|
+
this.isExpanded = false;
|
|
122
|
+
this.dropdownEl.classList.remove("open");
|
|
123
|
+
window.setTimeout(() => {
|
|
124
|
+
this.optgroupEls.forEach((optgroupEl) => (optgroupEl.isExpanded = false));
|
|
125
|
+
if (returnFocus) {
|
|
126
|
+
this.buttonEl.focus();
|
|
127
|
+
}
|
|
128
|
+
}, 150);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
open(focusLast = false) {
|
|
132
|
+
if (!this.isDisabled) {
|
|
133
|
+
this.showClearSelectionButton = this.childOptions.some((o) => o.selected);
|
|
134
|
+
this.dropdownEl.scrollTop = 0;
|
|
135
|
+
this.isExpanded = true;
|
|
136
|
+
this.dropdownEl.classList.add("open");
|
|
137
|
+
const elHeight = this.el.clientHeight;
|
|
138
|
+
this.openUp = shouldOpenUp(this.el, this.dropdownEl.clientHeight, elHeight, 0);
|
|
139
|
+
this.constrainedMaxHeight = this.maxHeight;
|
|
140
|
+
const spaceAbove = getContextMeasurements(this.el).spaceAbove;
|
|
141
|
+
if (this.openUp) {
|
|
142
|
+
if (parseInt(getComputedStyle(this.menuEl).getPropertyValue("--max-height").replace("px", "")) > spaceAbove) {
|
|
143
|
+
this.constrainedMaxHeight = spaceAbove.toString() + "px";
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
// if opening upwards, set an upwards height limit for the optgroup level
|
|
147
|
+
this.optgroupEls.forEach((o) => {
|
|
148
|
+
o.shadowRoot.querySelector("priv-option-list").upwardsHeightLimit = this.openUp
|
|
149
|
+
? spaceAbove
|
|
150
|
+
: null;
|
|
151
|
+
});
|
|
152
|
+
// scrollIntoView does not work when the container of the element it's called on is not rendered to the page (in our case the dropdown is still closed and has transform: scaleY(0))
|
|
153
|
+
// when opening the dropdown, scrollIntoView must be delayed to a point where the browser recognizes content within it as able to be scrolled to
|
|
154
|
+
// in Safari in particular, the soonest this seems to happen is 20ms. The longest we can wait before any jumping in the open dropdown is noticeable is 60ms
|
|
155
|
+
window.setTimeout(() => {
|
|
156
|
+
if (this.menuitemEls.length > 0) {
|
|
157
|
+
const menuitemToFocus = this.menuitemEls[focusLast ? this.menuitemEls.length - 1 : 0];
|
|
158
|
+
menuitemToFocus.scrollIntoView({ block: "nearest" });
|
|
159
|
+
menuitemToFocus.focus();
|
|
160
|
+
}
|
|
161
|
+
}, 60);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
moveDown(menuitemEl) {
|
|
165
|
+
const currentIndex = this.menuitemEls.indexOf(menuitemEl);
|
|
166
|
+
const menuitemToFocus = this.menuitemEls[currentIndex == this.menuitemEls.length - 1 ? 0 : currentIndex + 1];
|
|
167
|
+
menuitemToFocus.scrollIntoView({ block: "nearest" });
|
|
168
|
+
menuitemToFocus.focus();
|
|
169
|
+
}
|
|
170
|
+
moveUp(menuitemEl) {
|
|
171
|
+
const currentIndex = this.menuitemEls.indexOf(menuitemEl);
|
|
172
|
+
const menuitemToFocus = this.menuitemEls[currentIndex == 0 ? this.menuitemEls.length - 1 : currentIndex - 1];
|
|
173
|
+
menuitemToFocus.scrollIntoView({ block: "nearest" });
|
|
174
|
+
menuitemToFocus.focus();
|
|
175
|
+
}
|
|
176
|
+
handleButtonBlur(ev) {
|
|
177
|
+
if (isElOrChild(this.el, ev.relatedTarget)) {
|
|
178
|
+
// do not emit a blur event when opening the dropdown and focusing the Options
|
|
179
|
+
ev.stopPropagation();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
handleClick(ev) {
|
|
183
|
+
if (!isElOrChild(this.el, ev.target)) {
|
|
184
|
+
this.close();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
handleMenuitemKeydown(ev) {
|
|
188
|
+
switch (ev.key) {
|
|
189
|
+
case "ArrowDown":
|
|
190
|
+
ev.preventDefault();
|
|
191
|
+
// focus next
|
|
192
|
+
this.moveDown(ev.target);
|
|
193
|
+
break;
|
|
194
|
+
case "ArrowUp":
|
|
195
|
+
ev.preventDefault();
|
|
196
|
+
this.moveUp(ev.target);
|
|
197
|
+
// focus previous
|
|
198
|
+
break;
|
|
199
|
+
case "ArrowRight":
|
|
200
|
+
if (ev.target.classList.contains("group-btn")) {
|
|
201
|
+
ev.preventDefault();
|
|
202
|
+
ev.target.click();
|
|
203
|
+
}
|
|
204
|
+
break;
|
|
205
|
+
case "Escape":
|
|
206
|
+
ev.preventDefault();
|
|
207
|
+
this.close();
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
handleComponentBlur(ev) {
|
|
212
|
+
// Do not close or emit custom blur event when blurring to an element inside (wm-option)
|
|
213
|
+
if (!this.el.contains(ev.relatedTarget)) {
|
|
214
|
+
this.close(false);
|
|
215
|
+
this.wmNestedSelectBlurred.emit();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
handleOptgroupExpanded() {
|
|
219
|
+
this.menuEl.classList.add("hidden");
|
|
220
|
+
this.optListWrapperEl.classList.remove("hidden");
|
|
221
|
+
}
|
|
222
|
+
handleOptgroupHidden(ev) {
|
|
223
|
+
this.showClearSelectionButton = this.childOptions.some((o) => o.selected);
|
|
224
|
+
this.menuEl.classList.remove("hidden");
|
|
225
|
+
this.optListWrapperEl.classList.add("hidden");
|
|
226
|
+
// focus back to nested select's optgroup menuitem
|
|
227
|
+
if (this.isExpanded) {
|
|
228
|
+
const elToFocus = this.el.shadowRoot.querySelector(`button[data-label=${ev.detail}]`);
|
|
229
|
+
elToFocus.focus();
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
announce(message) {
|
|
233
|
+
// \u00A0 is a non-breaking space character, which causes the message to be read as a new one
|
|
234
|
+
if (this.liveRegionEl.textContent === message) {
|
|
235
|
+
message += "\u00A0";
|
|
236
|
+
}
|
|
237
|
+
this.announcement = message;
|
|
238
|
+
}
|
|
239
|
+
renderButtonText() {
|
|
240
|
+
if (this.displayedOptions.length < 1) {
|
|
241
|
+
return h("span", null, this.placeholder);
|
|
242
|
+
}
|
|
243
|
+
else if (this.multiple && this.allSelected && this.overflowCount > 0) {
|
|
244
|
+
return this.allSelectedMessage;
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
return this.displayedOptions.map((x, idx) => (h("span", null, idx > 0 ? ", " : "", x.textContent)));
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
renderOverflowCount() {
|
|
251
|
+
if (this.overflowCount > 0 && !this.allSelected) {
|
|
252
|
+
return (h("span", null, h("span", { class: "overflow-counter" }, "+", this.overflowCount)));
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
handleClearSelection() {
|
|
256
|
+
this.optgroupEls.forEach((optgroupEl) => optgroupEl.emitDeselection());
|
|
257
|
+
this.announce(selectMessages.selectionCleared);
|
|
258
|
+
if (!this.multiple) {
|
|
259
|
+
this.close();
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
renderClearSelectionButton() {
|
|
263
|
+
if (this.showClearSelectionButton) {
|
|
264
|
+
return (h("button", { class: "menuitem clear-selection", onClick: () => this.handleClearSelection(), tabindex: -1, onKeyDown: (ev) => this.handleMenuitemKeydown(ev) }, h("div", { class: "svg-icon svg-close" }), this.clearSelectionMessage));
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
renderSelectionCount(optgroupEl) {
|
|
268
|
+
const selectionCount = this.countOptgroupSelected(optgroupEl);
|
|
269
|
+
if (selectionCount) {
|
|
270
|
+
return (h("div", { class: "selection-count" }, h("span", null, this.multiple
|
|
271
|
+
? selectMessages.getOptgroupMultipleSelectionCount(selectionCount)
|
|
272
|
+
: selectMessages.optgroupSingleSelectionCount)));
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
render() {
|
|
276
|
+
const buttonProps = {
|
|
277
|
+
id: "selectbtn",
|
|
278
|
+
["disabled"]: this.isDisabled,
|
|
279
|
+
["aria-controls"]: "list",
|
|
280
|
+
["aria-labelledby"]: "label selectbtn",
|
|
281
|
+
["aria-describedby"]: "error",
|
|
282
|
+
["aria-expanded"]: this.isExpanded ? "true" : "false",
|
|
283
|
+
onClick: () => {
|
|
284
|
+
this.isExpanded ? this.close() : this.open();
|
|
285
|
+
},
|
|
286
|
+
};
|
|
287
|
+
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,
|
|
288
|
+
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
289
|
+
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) => {
|
|
290
|
+
return (h("button", { class: `menuitem group-btn ${optgroupEl.disabled ? "disabled" : ""}`, role: "menuitem", "data-label": optgroupEl.label, tabindex: -1, "aria-disabled": optgroupEl.disabled, onClick: () => {
|
|
291
|
+
if (!optgroupEl.disabled) {
|
|
292
|
+
optgroupEl.isExpanded = !optgroupEl.isExpanded;
|
|
293
|
+
forceUpdate(this.el);
|
|
294
|
+
}
|
|
295
|
+
}, 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" })));
|
|
296
|
+
})), 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)));
|
|
297
|
+
}
|
|
298
|
+
static get is() { return "wm-nested-select"; }
|
|
299
|
+
static get encapsulation() { return "shadow"; }
|
|
300
|
+
static get delegatesFocus() { return true; }
|
|
301
|
+
static get originalStyleUrls() {
|
|
302
|
+
return {
|
|
303
|
+
"$": ["wm-nested-select.scss"]
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
static get styleUrls() {
|
|
307
|
+
return {
|
|
308
|
+
"$": ["wm-nested-select.css"]
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
static get properties() {
|
|
312
|
+
return {
|
|
313
|
+
"disabled": {
|
|
314
|
+
"type": "boolean",
|
|
315
|
+
"attribute": "disabled",
|
|
316
|
+
"mutable": false,
|
|
317
|
+
"complexType": {
|
|
318
|
+
"original": "boolean",
|
|
319
|
+
"resolved": "boolean",
|
|
320
|
+
"references": {}
|
|
321
|
+
},
|
|
322
|
+
"required": false,
|
|
323
|
+
"optional": false,
|
|
324
|
+
"docs": {
|
|
325
|
+
"tags": [],
|
|
326
|
+
"text": ""
|
|
327
|
+
},
|
|
328
|
+
"getter": false,
|
|
329
|
+
"setter": false,
|
|
330
|
+
"reflect": true,
|
|
331
|
+
"defaultValue": "false"
|
|
332
|
+
},
|
|
333
|
+
"maxHeight": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"attribute": "max-height",
|
|
336
|
+
"mutable": false,
|
|
337
|
+
"complexType": {
|
|
338
|
+
"original": "string",
|
|
339
|
+
"resolved": "string",
|
|
340
|
+
"references": {}
|
|
341
|
+
},
|
|
342
|
+
"required": false,
|
|
343
|
+
"optional": false,
|
|
344
|
+
"docs": {
|
|
345
|
+
"tags": [],
|
|
346
|
+
"text": ""
|
|
347
|
+
},
|
|
348
|
+
"getter": false,
|
|
349
|
+
"setter": false,
|
|
350
|
+
"reflect": false,
|
|
351
|
+
"defaultValue": "\"200px\""
|
|
352
|
+
},
|
|
353
|
+
"label": {
|
|
354
|
+
"type": "string",
|
|
355
|
+
"attribute": "label",
|
|
356
|
+
"mutable": true,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "string",
|
|
359
|
+
"resolved": "string | undefined",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": true,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [],
|
|
366
|
+
"text": ""
|
|
367
|
+
},
|
|
368
|
+
"getter": false,
|
|
369
|
+
"setter": false,
|
|
370
|
+
"reflect": false
|
|
371
|
+
},
|
|
372
|
+
"labelPosition": {
|
|
373
|
+
"type": "string",
|
|
374
|
+
"attribute": "label-position",
|
|
375
|
+
"mutable": false,
|
|
376
|
+
"complexType": {
|
|
377
|
+
"original": "\"top\" | \"left\" | \"none\"",
|
|
378
|
+
"resolved": "\"left\" | \"none\" | \"top\"",
|
|
379
|
+
"references": {}
|
|
380
|
+
},
|
|
381
|
+
"required": false,
|
|
382
|
+
"optional": false,
|
|
383
|
+
"docs": {
|
|
384
|
+
"tags": [],
|
|
385
|
+
"text": ""
|
|
386
|
+
},
|
|
387
|
+
"getter": false,
|
|
388
|
+
"setter": false,
|
|
389
|
+
"reflect": false,
|
|
390
|
+
"defaultValue": "\"top\""
|
|
391
|
+
},
|
|
392
|
+
"requiredField": {
|
|
393
|
+
"type": "boolean",
|
|
394
|
+
"attribute": "required-field",
|
|
395
|
+
"mutable": false,
|
|
396
|
+
"complexType": {
|
|
397
|
+
"original": "boolean",
|
|
398
|
+
"resolved": "boolean",
|
|
399
|
+
"references": {}
|
|
400
|
+
},
|
|
401
|
+
"required": false,
|
|
402
|
+
"optional": false,
|
|
403
|
+
"docs": {
|
|
404
|
+
"tags": [],
|
|
405
|
+
"text": ""
|
|
406
|
+
},
|
|
407
|
+
"getter": false,
|
|
408
|
+
"setter": false,
|
|
409
|
+
"reflect": false,
|
|
410
|
+
"defaultValue": "false"
|
|
411
|
+
},
|
|
412
|
+
"errorMessage": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"attribute": "error-message",
|
|
415
|
+
"mutable": true,
|
|
416
|
+
"complexType": {
|
|
417
|
+
"original": "string",
|
|
418
|
+
"resolved": "string | undefined",
|
|
419
|
+
"references": {}
|
|
420
|
+
},
|
|
421
|
+
"required": false,
|
|
422
|
+
"optional": true,
|
|
423
|
+
"docs": {
|
|
424
|
+
"tags": [],
|
|
425
|
+
"text": ""
|
|
426
|
+
},
|
|
427
|
+
"getter": false,
|
|
428
|
+
"setter": false,
|
|
429
|
+
"reflect": false
|
|
430
|
+
},
|
|
431
|
+
"multiple": {
|
|
432
|
+
"type": "boolean",
|
|
433
|
+
"attribute": "multiple",
|
|
434
|
+
"mutable": false,
|
|
435
|
+
"complexType": {
|
|
436
|
+
"original": "boolean",
|
|
437
|
+
"resolved": "boolean",
|
|
438
|
+
"references": {}
|
|
439
|
+
},
|
|
440
|
+
"required": false,
|
|
441
|
+
"optional": false,
|
|
442
|
+
"docs": {
|
|
443
|
+
"tags": [],
|
|
444
|
+
"text": ""
|
|
445
|
+
},
|
|
446
|
+
"getter": false,
|
|
447
|
+
"setter": false,
|
|
448
|
+
"reflect": false,
|
|
449
|
+
"defaultValue": "false"
|
|
450
|
+
},
|
|
451
|
+
"search": {
|
|
452
|
+
"type": "boolean",
|
|
453
|
+
"attribute": "search",
|
|
454
|
+
"mutable": false,
|
|
455
|
+
"complexType": {
|
|
456
|
+
"original": "boolean",
|
|
457
|
+
"resolved": "boolean",
|
|
458
|
+
"references": {}
|
|
459
|
+
},
|
|
460
|
+
"required": false,
|
|
461
|
+
"optional": false,
|
|
462
|
+
"docs": {
|
|
463
|
+
"tags": [],
|
|
464
|
+
"text": ""
|
|
465
|
+
},
|
|
466
|
+
"getter": false,
|
|
467
|
+
"setter": false,
|
|
468
|
+
"reflect": false,
|
|
469
|
+
"defaultValue": "false"
|
|
470
|
+
},
|
|
471
|
+
"selectAll": {
|
|
472
|
+
"type": "boolean",
|
|
473
|
+
"attribute": "select-all",
|
|
474
|
+
"mutable": false,
|
|
475
|
+
"complexType": {
|
|
476
|
+
"original": "boolean",
|
|
477
|
+
"resolved": "boolean",
|
|
478
|
+
"references": {}
|
|
479
|
+
},
|
|
480
|
+
"required": false,
|
|
481
|
+
"optional": false,
|
|
482
|
+
"docs": {
|
|
483
|
+
"tags": [],
|
|
484
|
+
"text": ""
|
|
485
|
+
},
|
|
486
|
+
"getter": false,
|
|
487
|
+
"setter": false,
|
|
488
|
+
"reflect": false,
|
|
489
|
+
"defaultValue": "false"
|
|
490
|
+
},
|
|
491
|
+
"placeholder": {
|
|
492
|
+
"type": "string",
|
|
493
|
+
"attribute": "placeholder",
|
|
494
|
+
"mutable": false,
|
|
495
|
+
"complexType": {
|
|
496
|
+
"original": "string",
|
|
497
|
+
"resolved": "string",
|
|
498
|
+
"references": {}
|
|
499
|
+
},
|
|
500
|
+
"required": false,
|
|
501
|
+
"optional": false,
|
|
502
|
+
"docs": {
|
|
503
|
+
"tags": [],
|
|
504
|
+
"text": ""
|
|
505
|
+
},
|
|
506
|
+
"getter": false,
|
|
507
|
+
"setter": false,
|
|
508
|
+
"reflect": false,
|
|
509
|
+
"defaultValue": "this.multiple ? selectMessages.multiPlaceholder : selectMessages.singlePlaceholder"
|
|
510
|
+
},
|
|
511
|
+
"searchPlaceholder": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"attribute": "search-placeholder",
|
|
514
|
+
"mutable": false,
|
|
515
|
+
"complexType": {
|
|
516
|
+
"original": "string",
|
|
517
|
+
"resolved": "string",
|
|
518
|
+
"references": {}
|
|
519
|
+
},
|
|
520
|
+
"required": false,
|
|
521
|
+
"optional": false,
|
|
522
|
+
"docs": {
|
|
523
|
+
"tags": [],
|
|
524
|
+
"text": ""
|
|
525
|
+
},
|
|
526
|
+
"getter": false,
|
|
527
|
+
"setter": false,
|
|
528
|
+
"reflect": false,
|
|
529
|
+
"defaultValue": "selectMessages.searchPlaceholder"
|
|
530
|
+
},
|
|
531
|
+
"allSelectedMessage": {
|
|
532
|
+
"type": "string",
|
|
533
|
+
"attribute": "all-selected-message",
|
|
534
|
+
"mutable": false,
|
|
535
|
+
"complexType": {
|
|
536
|
+
"original": "string",
|
|
537
|
+
"resolved": "string",
|
|
538
|
+
"references": {}
|
|
539
|
+
},
|
|
540
|
+
"required": false,
|
|
541
|
+
"optional": false,
|
|
542
|
+
"docs": {
|
|
543
|
+
"tags": [],
|
|
544
|
+
"text": ""
|
|
545
|
+
},
|
|
546
|
+
"getter": false,
|
|
547
|
+
"setter": false,
|
|
548
|
+
"reflect": false,
|
|
549
|
+
"defaultValue": "selectMessages.allSelected"
|
|
550
|
+
},
|
|
551
|
+
"constrainedMaxHeight": {
|
|
552
|
+
"type": "string",
|
|
553
|
+
"attribute": "constrained-max-height",
|
|
554
|
+
"mutable": true,
|
|
555
|
+
"complexType": {
|
|
556
|
+
"original": "string",
|
|
557
|
+
"resolved": "string",
|
|
558
|
+
"references": {}
|
|
559
|
+
},
|
|
560
|
+
"required": false,
|
|
561
|
+
"optional": false,
|
|
562
|
+
"docs": {
|
|
563
|
+
"tags": [],
|
|
564
|
+
"text": ""
|
|
565
|
+
},
|
|
566
|
+
"getter": false,
|
|
567
|
+
"setter": false,
|
|
568
|
+
"reflect": false,
|
|
569
|
+
"defaultValue": "this.maxHeight"
|
|
570
|
+
}
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
static get states() {
|
|
574
|
+
return {
|
|
575
|
+
"isExpanded": {},
|
|
576
|
+
"showClearSelectionButton": {},
|
|
577
|
+
"announcement": {}
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
static get events() {
|
|
581
|
+
return [{
|
|
582
|
+
"method": "wmNestedSelectBlurred",
|
|
583
|
+
"name": "wmNestedSelectBlurred",
|
|
584
|
+
"bubbles": true,
|
|
585
|
+
"cancelable": true,
|
|
586
|
+
"composed": true,
|
|
587
|
+
"docs": {
|
|
588
|
+
"tags": [],
|
|
589
|
+
"text": ""
|
|
590
|
+
},
|
|
591
|
+
"complexType": {
|
|
592
|
+
"original": "void",
|
|
593
|
+
"resolved": "void",
|
|
594
|
+
"references": {}
|
|
595
|
+
}
|
|
596
|
+
}];
|
|
597
|
+
}
|
|
598
|
+
static get elementRef() { return "el"; }
|
|
599
|
+
static get listeners() {
|
|
600
|
+
return [{
|
|
601
|
+
"name": "wmOptionSelected",
|
|
602
|
+
"method": "handleOptionSelection",
|
|
603
|
+
"target": undefined,
|
|
604
|
+
"capture": false,
|
|
605
|
+
"passive": false
|
|
606
|
+
}, {
|
|
607
|
+
"name": "wmEnterKeyPressed",
|
|
608
|
+
"method": "handleChildEnter",
|
|
609
|
+
"target": undefined,
|
|
610
|
+
"capture": false,
|
|
611
|
+
"passive": false
|
|
612
|
+
}, {
|
|
613
|
+
"name": "wmEscKeyPressed",
|
|
614
|
+
"method": "closePopupOnEscape",
|
|
615
|
+
"target": undefined,
|
|
616
|
+
"capture": false,
|
|
617
|
+
"passive": false
|
|
618
|
+
}, {
|
|
619
|
+
"name": "keydown",
|
|
620
|
+
"method": "handleKeyDown",
|
|
621
|
+
"target": undefined,
|
|
622
|
+
"capture": false,
|
|
623
|
+
"passive": false
|
|
624
|
+
}, {
|
|
625
|
+
"name": "click",
|
|
626
|
+
"method": "handleClick",
|
|
627
|
+
"target": "document",
|
|
628
|
+
"capture": true,
|
|
629
|
+
"passive": false
|
|
630
|
+
}, {
|
|
631
|
+
"name": "optgroupExpanded",
|
|
632
|
+
"method": "handleOptgroupExpanded",
|
|
633
|
+
"target": undefined,
|
|
634
|
+
"capture": false,
|
|
635
|
+
"passive": false
|
|
636
|
+
}, {
|
|
637
|
+
"name": "optgroupHidden",
|
|
638
|
+
"method": "handleOptgroupHidden",
|
|
639
|
+
"target": undefined,
|
|
640
|
+
"capture": false,
|
|
641
|
+
"passive": false
|
|
642
|
+
}];
|
|
643
|
+
}
|
|
644
|
+
}
|