@watermarkinsights/ripple 5.16.0-alpha.1 → 5.16.0-alpha.11
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-DRIUP2B4.js +7 -0
- package/dist/cjs/{chartFunctions-439c6fd4.js → chartFunctions-D441_SCy.js} +2 -3
- package/dist/cjs/{functions-dd27bda3.js → functions-Cv4tH2z-.js} +90 -83
- package/dist/cjs/{index-788526f5.js → index-bkpjhWBk.js} +777 -410
- package/dist/cjs/{intl-6d72b4a0.js → intl-CDsbzEBp.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/priv-calendar.cjs.entry.js +6 -12
- package/dist/cjs/priv-chart-popover.cjs.entry.js +4 -8
- package/dist/cjs/priv-navigator-button.cjs.entry.js +3 -6
- package/dist/cjs/priv-navigator-item.cjs.entry.js +3 -6
- package/dist/cjs/priv-option-list.cjs.entry.js +10 -16
- package/dist/cjs/ripple.cjs.js +7 -7
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +11 -20
- package/dist/cjs/wm-button.cjs.entry.js +9 -17
- package/dist/cjs/wm-chart-slice.cjs.entry.js +1 -8
- package/dist/cjs/wm-chart.cjs.entry.js +14 -18
- package/dist/cjs/wm-date-range.cjs.entry.js +10 -15
- package/dist/cjs/wm-datepicker.cjs.entry.js +18 -17
- package/dist/cjs/wm-file-list.cjs.entry.js +3 -6
- package/dist/cjs/wm-file.cjs.entry.js +6 -16
- package/dist/cjs/wm-flyout.cjs.entry.js +6 -17
- package/dist/cjs/wm-input.cjs.entry.js +13 -19
- package/dist/cjs/wm-line-chart.cjs.entry.js +18 -28
- package/dist/cjs/wm-modal-pss_3.cjs.entry.js +12 -18
- package/dist/cjs/wm-modal_3.cjs.entry.js +12 -19
- package/dist/cjs/wm-navigation_3.cjs.entry.js +13 -22
- package/dist/cjs/wm-navigator.cjs.entry.js +17 -15
- package/dist/cjs/wm-nested-select.cjs.entry.js +21 -20
- package/dist/cjs/wm-optgroup.cjs.entry.js +3 -7
- package/dist/cjs/wm-option_2.cjs.entry.js +19 -20
- package/dist/cjs/wm-pagination.cjs.entry.js +11 -14
- package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +10 -27
- package/dist/cjs/wm-search.cjs.entry.js +27 -11
- package/dist/cjs/wm-snackbar.cjs.entry.js +10 -12
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +23 -19
- package/dist/cjs/wm-tag-input.cjs.entry.js +42 -48
- package/dist/cjs/wm-tag-option.cjs.entry.js +2 -8
- package/dist/cjs/wm-textarea.cjs.entry.js +13 -14
- package/dist/cjs/wm-timepicker.cjs.entry.js +18 -17
- package/dist/cjs/wm-toggletip.cjs.entry.js +9 -14
- package/dist/cjs/wm-uploader.cjs.entry.js +18 -22
- package/dist/cjs/wm-wrapper.cjs.entry.js +1 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +8 -4
- package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +15 -12
- package/dist/collection/components/charts/wm-chart/wm-chart.js +45 -22
- package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +52 -33
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +23 -16
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +9 -6
- package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +15 -12
- package/dist/collection/components/datepickers/datepicker.css +15 -9
- package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +21 -12
- package/dist/collection/components/datepickers/wm-date-range.js +39 -19
- package/dist/collection/components/datepickers/wm-datepicker.js +39 -19
- package/dist/collection/components/selects/priv-option-list/priv-option-list.js +27 -16
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.css +15 -9
- package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +56 -26
- package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +12 -5
- package/dist/collection/components/selects/wm-option/wm-option.js +15 -6
- package/dist/collection/components/selects/wm-select/wm-select.css +15 -9
- package/dist/collection/components/selects/wm-select/wm-select.js +50 -22
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +25 -16
- package/dist/collection/components/wm-button/wm-button.js +44 -23
- package/dist/collection/components/wm-file/wm-file.js +30 -19
- package/dist/collection/components/wm-file-list/wm-file-list.js +4 -2
- package/dist/collection/components/wm-flyout/wm-flyout.js +32 -20
- package/dist/collection/components/wm-input/wm-input.css +15 -9
- package/dist/collection/components/wm-input/wm-input.js +63 -30
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +11 -5
- package/dist/collection/components/wm-modal/wm-modal-footer.js +16 -6
- package/dist/collection/components/wm-modal/wm-modal-header.js +7 -3
- package/dist/collection/components/wm-modal/wm-modal.css +1 -1
- package/dist/collection/components/wm-modal/wm-modal.js +15 -9
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +16 -6
- package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +7 -3
- package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +16 -9
- package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +6 -5
- package/dist/collection/components/wm-navigation/wm-navigation-item.js +10 -9
- package/dist/collection/components/wm-navigation/wm-navigation.js +6 -4
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +7 -3
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +10 -4
- package/dist/collection/components/wm-navigator/wm-navigator.js +34 -15
- package/dist/collection/components/wm-pagination/wm-pagination.js +22 -12
- package/dist/collection/components/wm-search/wm-search.js +47 -12
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +9 -6
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +19 -7
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +10 -7
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +13 -3
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +23 -17
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +79 -54
- package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +18 -10
- package/dist/collection/components/wm-textarea/wm-textarea.css +15 -9
- package/dist/collection/components/wm-textarea/wm-textarea.js +42 -18
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +15 -9
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +36 -18
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +21 -13
- package/dist/collection/components/wm-uploader/wm-uploader.css +21 -10
- package/dist/collection/components/wm-uploader/wm-uploader.js +47 -26
- package/dist/collection/global/intl.js +2 -2
- package/dist/esm/app-globals-C7MKvxOg.js +5 -0
- package/dist/esm/{chartFunctions-6749593d.js → chartFunctions-D1WRRNPk.js} +3 -4
- package/dist/esm/{functions-dabfd76f.js → functions-DT2ztGYg.js} +91 -84
- package/dist/esm/{index-130e07bb.js → index-BmU89qgm.js} +774 -406
- package/dist/esm/{intl-43676e71.js → intl-BnrBfoLu.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/priv-calendar.entry.js +6 -10
- package/dist/esm/priv-chart-popover.entry.js +4 -6
- package/dist/esm/priv-navigator-button.entry.js +3 -4
- package/dist/esm/priv-navigator-item.entry.js +3 -4
- package/dist/esm/priv-option-list.entry.js +10 -14
- package/dist/esm/ripple.js +6 -5
- package/dist/esm/wm-action-menu_2.entry.js +11 -18
- package/dist/esm/wm-button.entry.js +9 -15
- package/dist/esm/wm-chart-slice.entry.js +1 -6
- package/dist/esm/wm-chart.entry.js +14 -16
- package/dist/esm/wm-date-range.entry.js +10 -13
- package/dist/esm/wm-datepicker.entry.js +18 -15
- package/dist/esm/wm-file-list.entry.js +3 -4
- package/dist/esm/wm-file.entry.js +6 -14
- package/dist/esm/wm-flyout.entry.js +6 -15
- package/dist/esm/wm-input.entry.js +13 -17
- package/dist/esm/wm-line-chart.entry.js +18 -26
- package/dist/esm/wm-modal-pss_3.entry.js +12 -16
- package/dist/esm/wm-modal_3.entry.js +12 -17
- package/dist/esm/wm-navigation_3.entry.js +13 -20
- package/dist/esm/wm-navigator.entry.js +17 -13
- package/dist/esm/wm-nested-select.entry.js +21 -18
- package/dist/esm/wm-optgroup.entry.js +3 -5
- package/dist/esm/wm-option_2.entry.js +19 -18
- package/dist/esm/wm-pagination.entry.js +11 -12
- package/dist/esm/wm-progress-indicator_3.entry.js +10 -25
- package/dist/esm/wm-search.entry.js +27 -9
- package/dist/esm/wm-snackbar.entry.js +10 -10
- package/dist/esm/wm-tab-item_3.entry.js +23 -17
- package/dist/esm/wm-tag-input.entry.js +42 -46
- package/dist/esm/wm-tag-option.entry.js +2 -6
- package/dist/esm/wm-textarea.entry.js +13 -12
- package/dist/esm/wm-timepicker.entry.js +18 -15
- package/dist/esm/wm-toggletip.entry.js +9 -12
- package/dist/esm/wm-uploader.entry.js +18 -20
- package/dist/esm/wm-wrapper.entry.js +1 -1
- package/dist/esm-es5/app-globals-C7MKvxOg.js +1 -0
- package/dist/esm-es5/chartFunctions-D1WRRNPk.js +1 -0
- package/dist/esm-es5/functions-DT2ztGYg.js +1 -0
- package/dist/esm-es5/index-BmU89qgm.js +1 -0
- package/dist/esm-es5/{intl-43676e71.js → intl-BnrBfoLu.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/priv-calendar.entry.js +1 -1
- package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
- package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
- package/dist/esm-es5/priv-option-list.entry.js +1 -1
- package/dist/esm-es5/ripple.js +1 -1
- package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
- package/dist/esm-es5/wm-button.entry.js +1 -1
- package/dist/esm-es5/wm-chart-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-flyout.entry.js +1 -1
- package/dist/esm-es5/wm-input.entry.js +1 -1
- package/dist/esm-es5/wm-line-chart.entry.js +1 -1
- package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
- package/dist/esm-es5/wm-modal_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
- package/dist/esm-es5/wm-navigator.entry.js +1 -1
- package/dist/esm-es5/wm-nested-select.entry.js +1 -1
- package/dist/esm-es5/wm-optgroup.entry.js +1 -1
- package/dist/esm-es5/wm-option_2.entry.js +1 -1
- package/dist/esm-es5/wm-pagination.entry.js +1 -1
- package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
- package/dist/esm-es5/wm-search.entry.js +1 -1
- package/dist/esm-es5/wm-snackbar.entry.js +1 -1
- package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
- package/dist/esm-es5/wm-tag-input.entry.js +1 -1
- package/dist/esm-es5/wm-tag-option.entry.js +1 -1
- package/dist/esm-es5/wm-textarea.entry.js +1 -1
- package/dist/esm-es5/wm-timepicker.entry.js +1 -1
- package/dist/esm-es5/wm-toggletip.entry.js +1 -1
- package/dist/esm-es5/wm-uploader.entry.js +1 -1
- package/dist/esm-es5/wm-wrapper.entry.js +1 -1
- package/dist/ripple/{p-c7d71181.system.entry.js → p-00cec2a0.system.entry.js} +1 -1
- package/dist/ripple/{p-1955c66a.system.entry.js → p-07cb5512.system.entry.js} +1 -1
- package/dist/ripple/p-08b265a2.entry.js +1 -0
- package/dist/ripple/{p-12d6ab73.system.entry.js → p-0fce4df8.system.entry.js} +1 -1
- package/dist/ripple/{p-59591401.entry.js → p-120c9c9c.entry.js} +1 -1
- package/dist/ripple/{p-57c25b63.entry.js → p-12e14668.entry.js} +1 -1
- package/dist/ripple/p-19f43d88.entry.js +1 -0
- package/dist/ripple/{p-b23c6351.system.entry.js → p-2269f7f7.system.entry.js} +1 -1
- package/dist/ripple/{p-4fb4deb9.entry.js → p-24857d09.entry.js} +1 -1
- package/dist/ripple/{p-89479d02.system.entry.js → p-24a498ec.system.entry.js} +1 -1
- package/dist/ripple/p-29eb4cc7.entry.js +1 -0
- package/dist/ripple/{p-4c2a044d.system.entry.js → p-2a85a48c.system.entry.js} +1 -1
- package/dist/ripple/{p-97ffaa7d.entry.js → p-2f04ea70.entry.js} +1 -1
- package/dist/ripple/{p-f9fa1506.system.entry.js → p-35f0c155.system.entry.js} +1 -1
- package/dist/ripple/p-3d83fdec.system.entry.js +1 -0
- package/dist/ripple/p-423931b7.entry.js +1 -0
- package/dist/ripple/p-44004383.entry.js +1 -0
- package/dist/ripple/p-4adda78c.entry.js +1 -0
- package/dist/ripple/{p-fe71ec64.system.entry.js → p-514af1a7.system.entry.js} +1 -1
- package/dist/ripple/{p-61f9987d.system.entry.js → p-582e730d.system.entry.js} +1 -1
- package/dist/ripple/p-59030f63.entry.js +1 -0
- package/dist/ripple/{p-9b2281e2.system.entry.js → p-5975c901.system.entry.js} +1 -1
- package/dist/ripple/{p-091fbc50.system.entry.js → p-5a10db87.system.entry.js} +1 -1
- package/dist/ripple/{p-72ed488e.system.entry.js → p-5aeb9091.system.entry.js} +1 -1
- package/dist/ripple/p-5b523b9f.system.entry.js +1 -0
- package/dist/ripple/p-5bb7a993.entry.js +1 -0
- package/dist/ripple/{p-74f103dd.entry.js → p-5ecfe800.entry.js} +1 -1
- package/dist/ripple/p-62520534.entry.js +1 -0
- package/dist/ripple/{p-c699aec8.system.entry.js → p-628dfdaf.system.entry.js} +1 -1
- package/dist/ripple/{p-36fd8aed.system.entry.js → p-64a308de.system.entry.js} +1 -1
- package/dist/ripple/p-64f555f9.entry.js +1 -0
- package/dist/ripple/{p-92a50b38.system.entry.js → p-65058356.system.entry.js} +1 -1
- package/dist/ripple/{p-6a082957.entry.js → p-65c38f2b.entry.js} +1 -1
- package/dist/ripple/{p-9328023c.entry.js → p-6650bcad.entry.js} +1 -1
- package/dist/ripple/{p-30236be3.system.entry.js → p-6ed1a615.system.entry.js} +1 -1
- package/dist/ripple/{p-c53f5914.entry.js → p-72c247fb.system.entry.js} +1 -1
- package/dist/ripple/p-81245443.entry.js +1 -0
- package/dist/ripple/p-81870134.entry.js +1 -0
- package/dist/ripple/{p-2f7ca1a7.system.entry.js → p-819382b4.entry.js} +1 -1
- package/dist/ripple/{p-4e6b0a6e.system.entry.js → p-9223a1bf.system.entry.js} +1 -1
- package/dist/ripple/p-9635519f.entry.js +1 -0
- package/dist/ripple/{p-f8995a5e.system.entry.js → p-98c7683b.system.entry.js} +1 -1
- package/dist/ripple/p-9a5a577a.entry.js +1 -0
- package/dist/ripple/p-9a9e1d00.entry.js +1 -0
- package/dist/ripple/{p-f3df715f.entry.js → p-9e353b52.entry.js} +1 -1
- package/dist/ripple/p-B7qucsb3.system.js +1 -0
- package/dist/ripple/p-BRUS9KP_.system.js +1 -0
- package/dist/ripple/p-BmU89qgm.js +2 -0
- package/dist/ripple/p-CLQInGS5.system.js +1 -0
- package/dist/ripple/p-CZkA6XrR.js +1 -0
- package/dist/ripple/{p-49a347e1.js → p-ChCup6OE.js} +1 -1
- package/dist/ripple/p-D1BYKagG.js +1 -0
- package/dist/ripple/p-DT2ztGYg.js +1 -0
- package/dist/ripple/p-Dd2F6qzY.system.js +2 -0
- package/dist/ripple/p-Dg5uzcYb.system.js +1 -0
- package/dist/ripple/{p-ba399879.system.js → p-LmBQIm9U.system.js} +1 -1
- package/dist/ripple/p-a0add2dd.entry.js +1 -0
- package/dist/ripple/p-a1f70a0a.system.entry.js +1 -0
- package/dist/ripple/p-a8eff037.system.entry.js +1 -0
- package/dist/ripple/p-ac310358.entry.js +1 -0
- package/dist/ripple/{p-b01f9572.system.entry.js → p-bda8ce77.system.entry.js} +1 -1
- package/dist/ripple/{p-043901ab.system.entry.js → p-c12eb0fa.system.entry.js} +1 -1
- package/dist/ripple/p-c44cbbea.entry.js +1 -0
- package/dist/ripple/p-c72b5e55.system.entry.js +1 -0
- package/dist/ripple/{p-ceac4dea.system.entry.js → p-c889749f.system.entry.js} +1 -1
- package/dist/ripple/p-cb5c1920.entry.js +1 -0
- package/dist/ripple/{p-0bb576c5.system.entry.js → p-cc9752df.system.entry.js} +1 -1
- package/dist/ripple/{p-cd0cc88d.entry.js → p-cca5dd54.entry.js} +1 -1
- package/dist/ripple/p-d14aedd7.entry.js +1 -0
- package/dist/ripple/p-d1651848.entry.js +1 -0
- package/dist/ripple/{p-2823d02b.system.entry.js → p-d83f36af.system.entry.js} +1 -1
- package/dist/ripple/p-e01688df.system.entry.js +1 -0
- package/dist/ripple/p-e0a1a76d.system.entry.js +1 -0
- package/dist/ripple/{p-8ec2e944.system.entry.js → p-ec6e0106.system.entry.js} +1 -1
- package/dist/ripple/{p-bc4976e6.entry.js → p-ee8649b3.system.entry.js} +1 -1
- package/dist/ripple/p-f073981c.entry.js +1 -0
- package/dist/ripple/{p-a5fb4171.system.entry.js → p-f47bacb5.entry.js} +1 -1
- package/dist/ripple/{p-c4896784.system.entry.js → p-f4a19c56.system.entry.js} +1 -1
- package/dist/ripple/p-f4ad21f8.entry.js +1 -0
- package/dist/ripple/p-f5ca18bb.entry.js +1 -0
- package/dist/ripple/{p-fe93b6b9.system.entry.js → p-fe71211e.system.entry.js} +1 -1
- package/dist/ripple/ripple.esm.js +1 -1
- package/dist/ripple/ripple.js +1 -1
- package/dist/types/components/datepickers/wm-datepicker.d.ts +1 -0
- package/dist/types/components/selects/wm-nested-select/wm-nested-select.d.ts +1 -0
- package/dist/types/components/selects/wm-select/wm-select.d.ts +1 -0
- package/dist/types/components/wm-input/wm-input.d.ts +1 -0
- package/dist/types/components/wm-tag-input/wm-tag-input.d.ts +1 -0
- package/dist/types/components/wm-textarea/wm-textarea.d.ts +1 -0
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +1 -0
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +1 -0
- package/dist/types/components.d.ts +986 -0
- package/dist/types/stencil-public-runtime.d.ts +37 -2
- package/package.json +2 -2
- package/dist/cjs/app-globals-f56991b7.js +0 -92
- package/dist/esm/app-globals-cc7a1bd5.js +0 -90
- package/dist/esm-es5/app-globals-cc7a1bd5.js +0 -1
- package/dist/esm-es5/chartFunctions-6749593d.js +0 -1
- package/dist/esm-es5/functions-dabfd76f.js +0 -1
- package/dist/esm-es5/index-130e07bb.js +0 -1
- package/dist/loader/package.json +0 -11
- package/dist/ripple/p-0189929d.entry.js +0 -1
- package/dist/ripple/p-0c89b82c.entry.js +0 -1
- package/dist/ripple/p-12ac8f93.js +0 -1
- package/dist/ripple/p-13b1d775.entry.js +0 -1
- package/dist/ripple/p-144ce232.entry.js +0 -1
- package/dist/ripple/p-1497ccfc.entry.js +0 -1
- package/dist/ripple/p-1a3037aa.entry.js +0 -1
- package/dist/ripple/p-22b55b6f.entry.js +0 -1
- package/dist/ripple/p-257d2d5c.entry.js +0 -1
- package/dist/ripple/p-30201dc9.entry.js +0 -1
- package/dist/ripple/p-36d2b888.entry.js +0 -1
- package/dist/ripple/p-3f98056c.js +0 -1
- package/dist/ripple/p-41120a33.system.js +0 -1
- package/dist/ripple/p-492aa9fe.system.entry.js +0 -1
- package/dist/ripple/p-4a29bb8c.entry.js +0 -1
- package/dist/ripple/p-4cebf2d7.entry.js +0 -1
- package/dist/ripple/p-56d54fe6.system.entry.js +0 -1
- package/dist/ripple/p-5cff41e0.entry.js +0 -1
- package/dist/ripple/p-5ef786db.system.entry.js +0 -1
- package/dist/ripple/p-6a03a172.entry.js +0 -1
- package/dist/ripple/p-6abc1227.entry.js +0 -1
- package/dist/ripple/p-6d12cfb7.system.entry.js +0 -1
- package/dist/ripple/p-81ce2697.entry.js +0 -1
- package/dist/ripple/p-823d7b4e.system.entry.js +0 -1
- package/dist/ripple/p-89316785.system.js +0 -1
- package/dist/ripple/p-8a569d3b.entry.js +0 -1
- package/dist/ripple/p-8f987f71.entry.js +0 -1
- package/dist/ripple/p-92cb12d3.entry.js +0 -1
- package/dist/ripple/p-94f776eb.entry.js +0 -1
- package/dist/ripple/p-a2c8937d.js +0 -1
- package/dist/ripple/p-b34552b0.system.entry.js +0 -1
- package/dist/ripple/p-b39ab477.entry.js +0 -1
- package/dist/ripple/p-bb9f6920.entry.js +0 -1
- package/dist/ripple/p-bd48c50a.entry.js +0 -1
- package/dist/ripple/p-c1aa877a.system.js +0 -1
- package/dist/ripple/p-c31e1379.entry.js +0 -1
- package/dist/ripple/p-cef8a45b.system.js +0 -2
- package/dist/ripple/p-d333d851.system.entry.js +0 -1
- package/dist/ripple/p-d9da0502.js +0 -2
- package/dist/ripple/p-e59a48a6.system.js +0 -1
- /package/dist/cjs/{interfaces-85d78ae9.js → interfaces-C7YbtGnk.js} +0 -0
- /package/dist/esm/{interfaces-cc5b177f.js → interfaces-COwzv5zO.js} +0 -0
- /package/dist/esm-es5/{interfaces-cc5b177f.js → interfaces-COwzv5zO.js} +0 -0
- /package/dist/ripple/{p-2732bddd.js → p-COwzv5zO.js} +0 -0
- /package/dist/ripple/{p-42fa7a77.system.js → p-ClUp3GkF.system.js} +0 -0
- /package/dist/ripple/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { forceUpdate } from "@stencil/core";
|
|
3
|
-
import { getTextDir, shouldOpenUp, isElOrChild, toBool, handleDisabledAttribute } from "../../../global/functions";
|
|
3
|
+
import { getTextDir, shouldOpenUp, isElOrChild, toBool, handleDisabledAttribute, showTooltip, hideTooltip } from "../../../global/functions";
|
|
4
4
|
import { globalMessages, selectMessages } from "../../../global/intl";
|
|
5
5
|
export class Select {
|
|
6
6
|
constructor() {
|
|
7
|
-
this.openUp = false;
|
|
8
|
-
//////////////////////////////////////
|
|
9
|
-
// for multiselect button text
|
|
10
|
-
this.overflowCount = 0;
|
|
11
|
-
this.displayedOptions = [];
|
|
12
7
|
this.disabled = false;
|
|
13
8
|
this.maxHeight = "200px";
|
|
14
|
-
this.label = undefined;
|
|
15
9
|
this.labelPosition = "top";
|
|
16
10
|
this.requiredField = false;
|
|
17
|
-
this.errorMessage = undefined;
|
|
18
11
|
this.multiple = false;
|
|
19
12
|
this.search = false;
|
|
20
13
|
this.selectAll = false;
|
|
@@ -23,6 +16,11 @@ export class Select {
|
|
|
23
16
|
this.allSelectedMessage = selectMessages.allSelected;
|
|
24
17
|
this.isExpanded = false;
|
|
25
18
|
this.announcement = "";
|
|
19
|
+
this.openUp = false;
|
|
20
|
+
//////////////////////////////////////
|
|
21
|
+
// for multiselect button text
|
|
22
|
+
this.overflowCount = 0;
|
|
23
|
+
this.displayedOptions = [];
|
|
26
24
|
}
|
|
27
25
|
get childOptions() {
|
|
28
26
|
return Array.from(this.el.querySelectorAll("wm-option"));
|
|
@@ -172,6 +170,12 @@ export class Select {
|
|
|
172
170
|
this.wmSelectBlurred.emit();
|
|
173
171
|
}
|
|
174
172
|
}
|
|
173
|
+
handleLabelMouseEnter(ev) {
|
|
174
|
+
const labelEl = ev.target;
|
|
175
|
+
if (labelEl.scrollWidth > labelEl.clientWidth) {
|
|
176
|
+
showTooltip("right", ev.target, this.label);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
175
179
|
setButtonText() {
|
|
176
180
|
this.displayedOptions = this.childOptions.filter((x) => x.selected);
|
|
177
181
|
// handle overflow + counter for multiselect
|
|
@@ -228,9 +232,9 @@ export class Select {
|
|
|
228
232
|
["aria-expanded"]: this.isExpanded ? "true" : "false",
|
|
229
233
|
onClick: () => (this.isExpanded ? this.close() : this.open()),
|
|
230
234
|
};
|
|
231
|
-
return (h(Host, { key: '
|
|
235
|
+
return (h(Host, { key: '27f57d30b836eac8dc27ae98a425015d86a0948b', onBlur: (ev) => this.handleComponentBlur(ev) }, h("div", { key: '8f48d8e8d616244350e61d6e81f350640131bbf0', class: `wrapper ${getTextDir()} label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '39d3bcec9b67d671a6bdbb6a3ee738832189ea51', ref: (el) => (this.labelEl = el), class: "label-wrapper" }, h("label", { key: 'b0bb90a215ac20de94afa8dba56e839bdc590dc1', class: "label", id: "label", htmlFor: "selectbtn", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label),
|
|
232
236
|
// we can't use aria-required because the listbox is in a sub-component and it is not announced
|
|
233
|
-
this.requiredField
|
|
237
|
+
this.requiredField && (h("span", { key: '4a5648503a023ff1eba34db936d49709e14da9f1', class: "required" }, h("span", { key: '3fe783c7174d3d827b20589cad412d32fa4cd978', class: "sr-only" }, globalMessages.requiredField), h("span", { key: '85ac4ca35f1077ade1bdda403b8888cc206ff28e', "aria-hidden": "true" }, "*")))), h("div", { key: 'c2e70d87db2d533713ac9c5a877ddba98a9a9a2f', class: "button-wrapper" }, h("button", Object.assign({ key: '460c6ac5cde8637b0098201966ca4268301ac2b7' }, buttonProps, { class: "displayedoption", ref: (el) => (this.buttonEl = el), onBlur: (ev) => this.handleButtonBlur(ev) }), h("span", { key: '3af3357f45ceacc5689e90e2bdc6459cab591c2f', class: `overflowcontrol ${showSubinfo ? "hassubinfo" : ""}` }, h("span", { key: 'bd9869db1146e54cc47c2965ebe2776873e2a18e', class: "button-text" }, this.renderButtonText()), showSubinfo && h("span", { key: 'b22d952625e93fab98ebb1b688101fd8891a4af7', class: "subinfo" }, this.selectedOptions[0].subinfo)), h("div", { key: '1f6448ee167d1847eff8fb5bc7a30e0a964e6efe', class: `expand-icon svg-icon ${this.isExpanded ? "svg-expand-less" : "svg-expand-more"}` }), this.renderOverflowCount(), h("div", { key: '0d550b97a3e08e9b708f2f4c3d91f9cac76ba5d8', ref: (el) => (this.measurementAreaEl = el), class: "measurement-area", "aria-hidden": "true" })), h("div", { key: '59cc7fcfa25d9d3eab8e4d70cdcd365e36e160ad', class: `dropdown ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, ref: (el) => (this.dropdownEl = el) }, h("priv-option-list", { key: '9fb7d0396527bc18bb8f5d00d64c858470d0698d', 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: '4c307bca5104ec962ca050b46adf882fb78bb74a' }))), h("div", { key: '06f11b61b475cc6cd78c2a8278b8455a79405e17', id: "error", class: this.errorMessage ? "error-message" : "" }, this.errorMessage), h("div", { key: '86cf865fbb7fd0e2c88290fe92e6062ada7d9ab6', id: "announcement", "aria-live": "polite", "aria-atomic": "true", class: "sr-only", ref: (el) => (this.liveRegionEl = el) }, this.announcement)))));
|
|
234
238
|
}
|
|
235
239
|
static get is() { return "wm-select"; }
|
|
236
240
|
static get encapsulation() { return "shadow"; }
|
|
@@ -249,6 +253,7 @@ export class Select {
|
|
|
249
253
|
return {
|
|
250
254
|
"disabled": {
|
|
251
255
|
"type": "boolean",
|
|
256
|
+
"attribute": "disabled",
|
|
252
257
|
"mutable": false,
|
|
253
258
|
"complexType": {
|
|
254
259
|
"original": "boolean",
|
|
@@ -261,12 +266,14 @@ export class Select {
|
|
|
261
266
|
"tags": [],
|
|
262
267
|
"text": ""
|
|
263
268
|
},
|
|
264
|
-
"
|
|
269
|
+
"getter": false,
|
|
270
|
+
"setter": false,
|
|
265
271
|
"reflect": true,
|
|
266
272
|
"defaultValue": "false"
|
|
267
273
|
},
|
|
268
274
|
"maxHeight": {
|
|
269
275
|
"type": "string",
|
|
276
|
+
"attribute": "max-height",
|
|
270
277
|
"mutable": false,
|
|
271
278
|
"complexType": {
|
|
272
279
|
"original": "string",
|
|
@@ -279,12 +286,14 @@ export class Select {
|
|
|
279
286
|
"tags": [],
|
|
280
287
|
"text": ""
|
|
281
288
|
},
|
|
282
|
-
"
|
|
289
|
+
"getter": false,
|
|
290
|
+
"setter": false,
|
|
283
291
|
"reflect": false,
|
|
284
292
|
"defaultValue": "\"200px\""
|
|
285
293
|
},
|
|
286
294
|
"label": {
|
|
287
295
|
"type": "string",
|
|
296
|
+
"attribute": "label",
|
|
288
297
|
"mutable": true,
|
|
289
298
|
"complexType": {
|
|
290
299
|
"original": "string",
|
|
@@ -297,11 +306,13 @@ export class Select {
|
|
|
297
306
|
"tags": [],
|
|
298
307
|
"text": ""
|
|
299
308
|
},
|
|
300
|
-
"
|
|
309
|
+
"getter": false,
|
|
310
|
+
"setter": false,
|
|
301
311
|
"reflect": false
|
|
302
312
|
},
|
|
303
313
|
"labelPosition": {
|
|
304
314
|
"type": "string",
|
|
315
|
+
"attribute": "label-position",
|
|
305
316
|
"mutable": false,
|
|
306
317
|
"complexType": {
|
|
307
318
|
"original": "\"top\" | \"left\" | \"none\"",
|
|
@@ -314,12 +325,14 @@ export class Select {
|
|
|
314
325
|
"tags": [],
|
|
315
326
|
"text": ""
|
|
316
327
|
},
|
|
317
|
-
"
|
|
328
|
+
"getter": false,
|
|
329
|
+
"setter": false,
|
|
318
330
|
"reflect": false,
|
|
319
331
|
"defaultValue": "\"top\""
|
|
320
332
|
},
|
|
321
333
|
"requiredField": {
|
|
322
334
|
"type": "boolean",
|
|
335
|
+
"attribute": "required-field",
|
|
323
336
|
"mutable": false,
|
|
324
337
|
"complexType": {
|
|
325
338
|
"original": "boolean",
|
|
@@ -332,12 +345,14 @@ export class Select {
|
|
|
332
345
|
"tags": [],
|
|
333
346
|
"text": ""
|
|
334
347
|
},
|
|
335
|
-
"
|
|
348
|
+
"getter": false,
|
|
349
|
+
"setter": false,
|
|
336
350
|
"reflect": false,
|
|
337
351
|
"defaultValue": "false"
|
|
338
352
|
},
|
|
339
353
|
"errorMessage": {
|
|
340
354
|
"type": "string",
|
|
355
|
+
"attribute": "error-message",
|
|
341
356
|
"mutable": true,
|
|
342
357
|
"complexType": {
|
|
343
358
|
"original": "string",
|
|
@@ -350,11 +365,13 @@ export class Select {
|
|
|
350
365
|
"tags": [],
|
|
351
366
|
"text": ""
|
|
352
367
|
},
|
|
353
|
-
"
|
|
368
|
+
"getter": false,
|
|
369
|
+
"setter": false,
|
|
354
370
|
"reflect": false
|
|
355
371
|
},
|
|
356
372
|
"multiple": {
|
|
357
373
|
"type": "boolean",
|
|
374
|
+
"attribute": "multiple",
|
|
358
375
|
"mutable": false,
|
|
359
376
|
"complexType": {
|
|
360
377
|
"original": "boolean",
|
|
@@ -367,12 +384,14 @@ export class Select {
|
|
|
367
384
|
"tags": [],
|
|
368
385
|
"text": ""
|
|
369
386
|
},
|
|
370
|
-
"
|
|
387
|
+
"getter": false,
|
|
388
|
+
"setter": false,
|
|
371
389
|
"reflect": false,
|
|
372
390
|
"defaultValue": "false"
|
|
373
391
|
},
|
|
374
392
|
"search": {
|
|
375
393
|
"type": "boolean",
|
|
394
|
+
"attribute": "search",
|
|
376
395
|
"mutable": false,
|
|
377
396
|
"complexType": {
|
|
378
397
|
"original": "boolean",
|
|
@@ -385,12 +404,14 @@ export class Select {
|
|
|
385
404
|
"tags": [],
|
|
386
405
|
"text": ""
|
|
387
406
|
},
|
|
388
|
-
"
|
|
407
|
+
"getter": false,
|
|
408
|
+
"setter": false,
|
|
389
409
|
"reflect": false,
|
|
390
410
|
"defaultValue": "false"
|
|
391
411
|
},
|
|
392
412
|
"selectAll": {
|
|
393
413
|
"type": "boolean",
|
|
414
|
+
"attribute": "select-all",
|
|
394
415
|
"mutable": false,
|
|
395
416
|
"complexType": {
|
|
396
417
|
"original": "boolean",
|
|
@@ -403,12 +424,14 @@ export class Select {
|
|
|
403
424
|
"tags": [],
|
|
404
425
|
"text": ""
|
|
405
426
|
},
|
|
406
|
-
"
|
|
427
|
+
"getter": false,
|
|
428
|
+
"setter": false,
|
|
407
429
|
"reflect": false,
|
|
408
430
|
"defaultValue": "false"
|
|
409
431
|
},
|
|
410
432
|
"placeholder": {
|
|
411
433
|
"type": "string",
|
|
434
|
+
"attribute": "placeholder",
|
|
412
435
|
"mutable": false,
|
|
413
436
|
"complexType": {
|
|
414
437
|
"original": "string",
|
|
@@ -421,12 +444,14 @@ export class Select {
|
|
|
421
444
|
"tags": [],
|
|
422
445
|
"text": ""
|
|
423
446
|
},
|
|
424
|
-
"
|
|
447
|
+
"getter": false,
|
|
448
|
+
"setter": false,
|
|
425
449
|
"reflect": false,
|
|
426
450
|
"defaultValue": "selectMessages.multiPlaceholder"
|
|
427
451
|
},
|
|
428
452
|
"searchPlaceholder": {
|
|
429
453
|
"type": "string",
|
|
454
|
+
"attribute": "search-placeholder",
|
|
430
455
|
"mutable": false,
|
|
431
456
|
"complexType": {
|
|
432
457
|
"original": "string",
|
|
@@ -439,12 +464,14 @@ export class Select {
|
|
|
439
464
|
"tags": [],
|
|
440
465
|
"text": ""
|
|
441
466
|
},
|
|
442
|
-
"
|
|
467
|
+
"getter": false,
|
|
468
|
+
"setter": false,
|
|
443
469
|
"reflect": false,
|
|
444
470
|
"defaultValue": "selectMessages.searchPlaceholder"
|
|
445
471
|
},
|
|
446
472
|
"allSelectedMessage": {
|
|
447
473
|
"type": "string",
|
|
474
|
+
"attribute": "all-selected-message",
|
|
448
475
|
"mutable": false,
|
|
449
476
|
"complexType": {
|
|
450
477
|
"original": "string",
|
|
@@ -457,7 +484,8 @@ export class Select {
|
|
|
457
484
|
"tags": [],
|
|
458
485
|
"text": ""
|
|
459
486
|
},
|
|
460
|
-
"
|
|
487
|
+
"getter": false,
|
|
488
|
+
"setter": false,
|
|
461
489
|
"reflect": false,
|
|
462
490
|
"defaultValue": "selectMessages.allSelected"
|
|
463
491
|
}
|
|
@@ -3,19 +3,14 @@ import { debounce, getTextDir, shouldOpenUp, shouldShiftRight } from "../../glob
|
|
|
3
3
|
export class ActionMenu {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.openUp = false;
|
|
6
|
+
this.isExpanded = false;
|
|
7
|
+
this.actionMenuType = "icon";
|
|
8
|
+
this.disabled = false;
|
|
6
9
|
this.keysSoFar = "";
|
|
7
10
|
this.searchIndex = 0;
|
|
8
11
|
this.debouncedClearKeysSoFar = debounce(() => {
|
|
9
12
|
this.keysSoFar = "";
|
|
10
13
|
}, 500);
|
|
11
|
-
this.isExpanded = false;
|
|
12
|
-
this.tooltipPosition = undefined;
|
|
13
|
-
this.actionMenuType = "icon";
|
|
14
|
-
this.buttonText = undefined;
|
|
15
|
-
this.disabled = false;
|
|
16
|
-
this.tooltip = undefined;
|
|
17
|
-
this.labelForIdenticalButtons = undefined;
|
|
18
|
-
this.darkMode = undefined;
|
|
19
14
|
}
|
|
20
15
|
get horizontalPosition() {
|
|
21
16
|
return !!this.el && !!this.itemsEl && shouldShiftRight(this.el, this.itemsEl.clientWidth) ? "right" : "left";
|
|
@@ -190,7 +185,7 @@ export class ActionMenu {
|
|
|
190
185
|
return null;
|
|
191
186
|
}
|
|
192
187
|
render() {
|
|
193
|
-
return (h(Host, { key: '
|
|
188
|
+
return (h(Host, { key: '6a2551f3260b0ab3a606174243d89bfc7daa68e5', onBlur: () => this.close(false) }, h("div", { key: '1dc817e8a83608d514b45aa00c4c00031ba3019d', class: getTextDir() }, h("wm-button", { key: '4d9bb231cef8871774fbe03c71a0c3e203c0dd99', "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: 'c9c33887915c59b82c2b87fd65e39059a6f84bd5', 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: '0c5a25373176ffa495a75a0e91ab6e71e45d3bbf' })))));
|
|
194
189
|
}
|
|
195
190
|
static get is() { return "wm-action-menu"; }
|
|
196
191
|
static get encapsulation() { return "shadow"; }
|
|
@@ -209,6 +204,7 @@ export class ActionMenu {
|
|
|
209
204
|
return {
|
|
210
205
|
"tooltipPosition": {
|
|
211
206
|
"type": "string",
|
|
207
|
+
"attribute": "tooltip-position",
|
|
212
208
|
"mutable": false,
|
|
213
209
|
"complexType": {
|
|
214
210
|
"original": "| \"top\"\n | \"bottom\"\n | \"left\"\n | \"right\"\n | \"bottom-left\"\n | \"bottom-right\"\n | \"top-right\"\n | \"top-left\"",
|
|
@@ -221,11 +217,13 @@ export class ActionMenu {
|
|
|
221
217
|
"tags": [],
|
|
222
218
|
"text": ""
|
|
223
219
|
},
|
|
224
|
-
"
|
|
220
|
+
"getter": false,
|
|
221
|
+
"setter": false,
|
|
225
222
|
"reflect": false
|
|
226
223
|
},
|
|
227
224
|
"actionMenuType": {
|
|
228
225
|
"type": "string",
|
|
226
|
+
"attribute": "action-menu-type",
|
|
229
227
|
"mutable": false,
|
|
230
228
|
"complexType": {
|
|
231
229
|
"original": "\"icon\" | \"text\" | \"selector\" | \"selector-primary\"",
|
|
@@ -238,12 +236,14 @@ export class ActionMenu {
|
|
|
238
236
|
"tags": [],
|
|
239
237
|
"text": ""
|
|
240
238
|
},
|
|
241
|
-
"
|
|
239
|
+
"getter": false,
|
|
240
|
+
"setter": false,
|
|
242
241
|
"reflect": false,
|
|
243
242
|
"defaultValue": "\"icon\""
|
|
244
243
|
},
|
|
245
244
|
"buttonText": {
|
|
246
245
|
"type": "string",
|
|
246
|
+
"attribute": "button-text",
|
|
247
247
|
"mutable": false,
|
|
248
248
|
"complexType": {
|
|
249
249
|
"original": "string",
|
|
@@ -256,11 +256,13 @@ export class ActionMenu {
|
|
|
256
256
|
"tags": [],
|
|
257
257
|
"text": ""
|
|
258
258
|
},
|
|
259
|
-
"
|
|
259
|
+
"getter": false,
|
|
260
|
+
"setter": false,
|
|
260
261
|
"reflect": false
|
|
261
262
|
},
|
|
262
263
|
"disabled": {
|
|
263
264
|
"type": "boolean",
|
|
265
|
+
"attribute": "disabled",
|
|
264
266
|
"mutable": false,
|
|
265
267
|
"complexType": {
|
|
266
268
|
"original": "boolean",
|
|
@@ -273,12 +275,14 @@ export class ActionMenu {
|
|
|
273
275
|
"tags": [],
|
|
274
276
|
"text": ""
|
|
275
277
|
},
|
|
276
|
-
"
|
|
278
|
+
"getter": false,
|
|
279
|
+
"setter": false,
|
|
277
280
|
"reflect": true,
|
|
278
281
|
"defaultValue": "false"
|
|
279
282
|
},
|
|
280
283
|
"tooltip": {
|
|
281
284
|
"type": "string",
|
|
285
|
+
"attribute": "tooltip",
|
|
282
286
|
"mutable": false,
|
|
283
287
|
"complexType": {
|
|
284
288
|
"original": "string",
|
|
@@ -291,11 +295,13 @@ export class ActionMenu {
|
|
|
291
295
|
"tags": [],
|
|
292
296
|
"text": ""
|
|
293
297
|
},
|
|
294
|
-
"
|
|
298
|
+
"getter": false,
|
|
299
|
+
"setter": false,
|
|
295
300
|
"reflect": false
|
|
296
301
|
},
|
|
297
302
|
"labelForIdenticalButtons": {
|
|
298
303
|
"type": "string",
|
|
304
|
+
"attribute": "label-for-identical-buttons",
|
|
299
305
|
"mutable": false,
|
|
300
306
|
"complexType": {
|
|
301
307
|
"original": "string",
|
|
@@ -308,11 +314,13 @@ export class ActionMenu {
|
|
|
308
314
|
"tags": [],
|
|
309
315
|
"text": ""
|
|
310
316
|
},
|
|
311
|
-
"
|
|
317
|
+
"getter": false,
|
|
318
|
+
"setter": false,
|
|
312
319
|
"reflect": false
|
|
313
320
|
},
|
|
314
321
|
"darkMode": {
|
|
315
322
|
"type": "boolean",
|
|
323
|
+
"attribute": "dark-mode",
|
|
316
324
|
"mutable": false,
|
|
317
325
|
"complexType": {
|
|
318
326
|
"original": "boolean",
|
|
@@ -325,7 +333,8 @@ export class ActionMenu {
|
|
|
325
333
|
"tags": [],
|
|
326
334
|
"text": ""
|
|
327
335
|
},
|
|
328
|
-
"
|
|
336
|
+
"getter": false,
|
|
337
|
+
"setter": false,
|
|
329
338
|
"reflect": false
|
|
330
339
|
}
|
|
331
340
|
};
|
|
@@ -3,22 +3,17 @@ import { getIconCodeFromName } from "../../global/interfaces";
|
|
|
3
3
|
import { generateId, hideTooltip, handleDisabledAttribute, showTooltip, toBool, triggerFormSubmit, } from "../../global/functions";
|
|
4
4
|
export class Button {
|
|
5
5
|
constructor() {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// icon and tooltip have reflect set to true. Without reflect, the react wrappers don't expose the attribute
|
|
7
|
+
// and the component throws errors when they are required (when buttonType is icononly or navigational)
|
|
8
8
|
this.disabled = false;
|
|
9
9
|
this.buttonType = "secondary";
|
|
10
|
-
this.icon = undefined;
|
|
11
|
-
this.iconSize = undefined;
|
|
12
|
-
this.iconRotate = undefined;
|
|
13
|
-
this.iconFlip = undefined;
|
|
14
|
-
this.tooltip = undefined;
|
|
15
|
-
this.labelForIdenticalButtons = undefined;
|
|
16
10
|
this.tooltipPosition = "bottom-right";
|
|
17
11
|
this.permanentlyDelete = false;
|
|
18
12
|
this.textWrap = true;
|
|
19
|
-
this.customBackground = undefined;
|
|
20
13
|
this.isSubmit = false;
|
|
21
14
|
this.isTabbing = false;
|
|
15
|
+
this.id = generateId();
|
|
16
|
+
this.ariaPopup = false;
|
|
22
17
|
}
|
|
23
18
|
get isDisabled() {
|
|
24
19
|
// string "false" needs to be treated as bool False because react wrappers convert bool to string.
|
|
@@ -249,7 +244,7 @@ export class Button {
|
|
|
249
244
|
}
|
|
250
245
|
}
|
|
251
246
|
render() {
|
|
252
|
-
return (h(Host, { key: '
|
|
247
|
+
return (h(Host, { key: 'd122993141c67e59f1b99fcc574772c7c35be7a7', class: `${this.isDisabled ? "button-disabled" : ""} -${this.buttonType}` }, h("button", { key: '6c6cb49fa724cb4e317a3a7c7fdc32e9d1ca43f6', id: this.id, class: `${this.buttonClasses}`, disabled: this.isDisabled, ref: (el) => (this.buttonEl = el), "aria-label": this.getAriaLabel(), "aria-hasPopup": this.ariaPopup ? "menu" : null, onMouseEnter: (ev) => this.handleMouseEnter(ev), onMouseLeave: () => hideTooltip(), onFocus: (ev) => this.handleFocus(ev), onBlur: () => hideTooltip(), onClick: () => hideTooltip() }, (this.icon || this.buttonType.endsWith("-ai")) && this.renderIcon(), (!this.buttonType.startsWith("navigational") && !this.buttonType.startsWith("icononly")) && (h("span", { key: '164207b617f46f932f462f15fb22529885a64e86', class: "button-text" }, h("slot", { key: '9e2831478378a258a8fd83405d0a1509e0e56697' }))), (this.buttonType == "selector" || this.buttonType == "selector-primary") && (h("div", { key: 'f0a5ebc4c97bd184a7e14171aaa0f103fd8c0c35', class: "selector-icon svg-icon svg-expand-more" })))));
|
|
253
248
|
}
|
|
254
249
|
static get is() { return "wm-button"; }
|
|
255
250
|
static get encapsulation() { return "shadow"; }
|
|
@@ -268,6 +263,7 @@ export class Button {
|
|
|
268
263
|
return {
|
|
269
264
|
"disabled": {
|
|
270
265
|
"type": "boolean",
|
|
266
|
+
"attribute": "disabled",
|
|
271
267
|
"mutable": false,
|
|
272
268
|
"complexType": {
|
|
273
269
|
"original": "boolean",
|
|
@@ -280,12 +276,14 @@ export class Button {
|
|
|
280
276
|
"tags": [],
|
|
281
277
|
"text": ""
|
|
282
278
|
},
|
|
283
|
-
"
|
|
279
|
+
"getter": false,
|
|
280
|
+
"setter": false,
|
|
284
281
|
"reflect": true,
|
|
285
282
|
"defaultValue": "false"
|
|
286
283
|
},
|
|
287
284
|
"buttonType": {
|
|
288
285
|
"type": "string",
|
|
286
|
+
"attribute": "button-type",
|
|
289
287
|
"mutable": true,
|
|
290
288
|
"complexType": {
|
|
291
289
|
"original": "validButtonTypes",
|
|
@@ -304,12 +302,14 @@ export class Button {
|
|
|
304
302
|
"tags": [],
|
|
305
303
|
"text": ""
|
|
306
304
|
},
|
|
307
|
-
"
|
|
305
|
+
"getter": false,
|
|
306
|
+
"setter": false,
|
|
308
307
|
"reflect": false,
|
|
309
308
|
"defaultValue": "\"secondary\""
|
|
310
309
|
},
|
|
311
310
|
"icon": {
|
|
312
311
|
"type": "string",
|
|
312
|
+
"attribute": "icon",
|
|
313
313
|
"mutable": true,
|
|
314
314
|
"complexType": {
|
|
315
315
|
"original": "string",
|
|
@@ -322,11 +322,13 @@ export class Button {
|
|
|
322
322
|
"tags": [],
|
|
323
323
|
"text": ""
|
|
324
324
|
},
|
|
325
|
-
"
|
|
325
|
+
"getter": false,
|
|
326
|
+
"setter": false,
|
|
326
327
|
"reflect": true
|
|
327
328
|
},
|
|
328
329
|
"iconSize": {
|
|
329
330
|
"type": "string",
|
|
331
|
+
"attribute": "icon-size",
|
|
330
332
|
"mutable": false,
|
|
331
333
|
"complexType": {
|
|
332
334
|
"original": "string",
|
|
@@ -339,11 +341,13 @@ export class Button {
|
|
|
339
341
|
"tags": [],
|
|
340
342
|
"text": ""
|
|
341
343
|
},
|
|
342
|
-
"
|
|
344
|
+
"getter": false,
|
|
345
|
+
"setter": false,
|
|
343
346
|
"reflect": false
|
|
344
347
|
},
|
|
345
348
|
"iconRotate": {
|
|
346
349
|
"type": "number",
|
|
350
|
+
"attribute": "icon-rotate",
|
|
347
351
|
"mutable": false,
|
|
348
352
|
"complexType": {
|
|
349
353
|
"original": "number",
|
|
@@ -356,11 +360,13 @@ export class Button {
|
|
|
356
360
|
"tags": [],
|
|
357
361
|
"text": ""
|
|
358
362
|
},
|
|
359
|
-
"
|
|
363
|
+
"getter": false,
|
|
364
|
+
"setter": false,
|
|
360
365
|
"reflect": false
|
|
361
366
|
},
|
|
362
367
|
"iconFlip": {
|
|
363
368
|
"type": "string",
|
|
369
|
+
"attribute": "icon-flip",
|
|
364
370
|
"mutable": false,
|
|
365
371
|
"complexType": {
|
|
366
372
|
"original": "\"horizontal\" | \"vertical\"",
|
|
@@ -373,11 +379,13 @@ export class Button {
|
|
|
373
379
|
"tags": [],
|
|
374
380
|
"text": ""
|
|
375
381
|
},
|
|
376
|
-
"
|
|
382
|
+
"getter": false,
|
|
383
|
+
"setter": false,
|
|
377
384
|
"reflect": false
|
|
378
385
|
},
|
|
379
386
|
"tooltip": {
|
|
380
387
|
"type": "string",
|
|
388
|
+
"attribute": "tooltip",
|
|
381
389
|
"mutable": true,
|
|
382
390
|
"complexType": {
|
|
383
391
|
"original": "string",
|
|
@@ -390,11 +398,13 @@ export class Button {
|
|
|
390
398
|
"tags": [],
|
|
391
399
|
"text": ""
|
|
392
400
|
},
|
|
393
|
-
"
|
|
401
|
+
"getter": false,
|
|
402
|
+
"setter": false,
|
|
394
403
|
"reflect": true
|
|
395
404
|
},
|
|
396
405
|
"labelForIdenticalButtons": {
|
|
397
406
|
"type": "string",
|
|
407
|
+
"attribute": "label-for-identical-buttons",
|
|
398
408
|
"mutable": false,
|
|
399
409
|
"complexType": {
|
|
400
410
|
"original": "string",
|
|
@@ -407,11 +417,13 @@ export class Button {
|
|
|
407
417
|
"tags": [],
|
|
408
418
|
"text": ""
|
|
409
419
|
},
|
|
410
|
-
"
|
|
420
|
+
"getter": false,
|
|
421
|
+
"setter": false,
|
|
411
422
|
"reflect": false
|
|
412
423
|
},
|
|
413
424
|
"tooltipPosition": {
|
|
414
425
|
"type": "string",
|
|
426
|
+
"attribute": "tooltip-position",
|
|
415
427
|
"mutable": false,
|
|
416
428
|
"complexType": {
|
|
417
429
|
"original": "TooltipPlacement",
|
|
@@ -430,12 +442,14 @@ export class Button {
|
|
|
430
442
|
"tags": [],
|
|
431
443
|
"text": ""
|
|
432
444
|
},
|
|
433
|
-
"
|
|
445
|
+
"getter": false,
|
|
446
|
+
"setter": false,
|
|
434
447
|
"reflect": false,
|
|
435
448
|
"defaultValue": "\"bottom-right\""
|
|
436
449
|
},
|
|
437
450
|
"permanentlyDelete": {
|
|
438
451
|
"type": "boolean",
|
|
452
|
+
"attribute": "permanently-delete",
|
|
439
453
|
"mutable": false,
|
|
440
454
|
"complexType": {
|
|
441
455
|
"original": "boolean",
|
|
@@ -448,12 +462,14 @@ export class Button {
|
|
|
448
462
|
"tags": [],
|
|
449
463
|
"text": ""
|
|
450
464
|
},
|
|
451
|
-
"
|
|
465
|
+
"getter": false,
|
|
466
|
+
"setter": false,
|
|
452
467
|
"reflect": false,
|
|
453
468
|
"defaultValue": "false"
|
|
454
469
|
},
|
|
455
470
|
"textWrap": {
|
|
456
471
|
"type": "boolean",
|
|
472
|
+
"attribute": "text-wrap",
|
|
457
473
|
"mutable": false,
|
|
458
474
|
"complexType": {
|
|
459
475
|
"original": "boolean",
|
|
@@ -466,12 +482,14 @@ export class Button {
|
|
|
466
482
|
"tags": [],
|
|
467
483
|
"text": ""
|
|
468
484
|
},
|
|
469
|
-
"
|
|
485
|
+
"getter": false,
|
|
486
|
+
"setter": false,
|
|
470
487
|
"reflect": false,
|
|
471
488
|
"defaultValue": "true"
|
|
472
489
|
},
|
|
473
490
|
"customBackground": {
|
|
474
491
|
"type": "string",
|
|
492
|
+
"attribute": "custom-background",
|
|
475
493
|
"mutable": false,
|
|
476
494
|
"complexType": {
|
|
477
495
|
"original": "string",
|
|
@@ -484,11 +502,13 @@ export class Button {
|
|
|
484
502
|
"tags": [],
|
|
485
503
|
"text": ""
|
|
486
504
|
},
|
|
487
|
-
"
|
|
505
|
+
"getter": false,
|
|
506
|
+
"setter": false,
|
|
488
507
|
"reflect": false
|
|
489
508
|
},
|
|
490
509
|
"isSubmit": {
|
|
491
510
|
"type": "boolean",
|
|
511
|
+
"attribute": "is-submit",
|
|
492
512
|
"mutable": false,
|
|
493
513
|
"complexType": {
|
|
494
514
|
"original": "boolean",
|
|
@@ -501,7 +521,8 @@ export class Button {
|
|
|
501
521
|
"tags": [],
|
|
502
522
|
"text": ""
|
|
503
523
|
},
|
|
504
|
-
"
|
|
524
|
+
"getter": false,
|
|
525
|
+
"setter": false,
|
|
505
526
|
"reflect": false,
|
|
506
527
|
"defaultValue": "false"
|
|
507
528
|
}
|