@watermarkinsights/ripple 5.16.0-alpha.1 → 5.16.0-alpha.10
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-C-IAhycr.js +7 -0
- package/dist/cjs/{chartFunctions-439c6fd4.js → chartFunctions-C8PCmGmn.js} +2 -3
- package/dist/cjs/{functions-dd27bda3.js → functions-DfuY5Jtp.js} +74 -79
- package/dist/cjs/{index-788526f5.js → index-DwhNqnaT.js} +777 -410
- package/dist/cjs/{intl-6d72b4a0.js → intl-Bl-0Yn5n.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-CrcR41XQ.js +5 -0
- package/dist/esm/{chartFunctions-6749593d.js → chartFunctions-BocRhQ0T.js} +3 -4
- package/dist/esm/{functions-dabfd76f.js → functions-B9BrPorY.js} +75 -80
- package/dist/esm/{index-130e07bb.js → index-C20glyTb.js} +774 -406
- package/dist/esm/{intl-43676e71.js → intl-D-bH9lQF.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-CrcR41XQ.js +1 -0
- package/dist/esm-es5/chartFunctions-BocRhQ0T.js +1 -0
- package/dist/esm-es5/functions-B9BrPorY.js +1 -0
- package/dist/esm-es5/index-C20glyTb.js +1 -0
- package/dist/esm-es5/{intl-43676e71.js → intl-D-bH9lQF.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-03e28e65.system.entry.js +1 -0
- package/dist/ripple/{p-f3df715f.entry.js → p-0616bd1c.entry.js} +1 -1
- package/dist/ripple/p-088a84b6.entry.js +1 -0
- package/dist/ripple/p-09116c34.entry.js +1 -0
- package/dist/ripple/{p-59591401.entry.js → p-0a9f8d0d.entry.js} +1 -1
- package/dist/ripple/{p-97ffaa7d.entry.js → p-1a96dc5e.entry.js} +1 -1
- package/dist/ripple/{p-b01f9572.system.entry.js → p-1b8f9ff1.system.entry.js} +1 -1
- package/dist/ripple/p-21728198.entry.js +1 -0
- package/dist/ripple/p-25227bec.entry.js +1 -0
- package/dist/ripple/p-264fb4fc.entry.js +1 -0
- package/dist/ripple/{p-61f9987d.system.entry.js → p-27c1933e.system.entry.js} +1 -1
- package/dist/ripple/p-27de107e.entry.js +1 -0
- package/dist/ripple/p-338835e6.entry.js +1 -0
- package/dist/ripple/p-3678e285.entry.js +1 -0
- package/dist/ripple/p-384f6dc8.entry.js +1 -0
- package/dist/ripple/{p-a5fb4171.system.entry.js → p-3fa20b7a.entry.js} +1 -1
- package/dist/ripple/{p-74f103dd.entry.js → p-476e2913.entry.js} +1 -1
- package/dist/ripple/{p-c699aec8.system.entry.js → p-4a50f797.system.entry.js} +1 -1
- package/dist/ripple/p-5026b7e8.entry.js +1 -0
- package/dist/ripple/{p-9b2281e2.system.entry.js → p-5166de03.system.entry.js} +1 -1
- package/dist/ripple/{p-bc4976e6.entry.js → p-5827cae3.system.entry.js} +1 -1
- package/dist/ripple/{p-ceac4dea.system.entry.js → p-59f7cfd7.system.entry.js} +1 -1
- package/dist/ripple/{p-b23c6351.system.entry.js → p-5a728ced.system.entry.js} +1 -1
- package/dist/ripple/p-5c8e802a.system.entry.js +1 -0
- package/dist/ripple/{p-cd0cc88d.entry.js → p-5cc5b46b.entry.js} +1 -1
- package/dist/ripple/{p-2f7ca1a7.system.entry.js → p-6c66e270.entry.js} +1 -1
- package/dist/ripple/p-6ffa9bfc.entry.js +1 -0
- package/dist/ripple/{p-043901ab.system.entry.js → p-70cdc5ce.system.entry.js} +1 -1
- package/dist/ripple/p-719b7087.system.entry.js +1 -0
- package/dist/ripple/{p-fe93b6b9.system.entry.js → p-734d06dc.system.entry.js} +1 -1
- package/dist/ripple/{p-4fb4deb9.entry.js → p-757b04eb.entry.js} +1 -1
- package/dist/ripple/{p-0bb576c5.system.entry.js → p-7ea000d6.system.entry.js} +1 -1
- package/dist/ripple/{p-30236be3.system.entry.js → p-81783193.system.entry.js} +1 -1
- package/dist/ripple/{p-36fd8aed.system.entry.js → p-82a66121.system.entry.js} +1 -1
- package/dist/ripple/p-85afd9bf.system.entry.js +1 -0
- package/dist/ripple/p-8eWf5O5Z.system.js +1 -0
- package/dist/ripple/p-90d11417.system.entry.js +1 -0
- package/dist/ripple/p-979cd9f4.entry.js +1 -0
- package/dist/ripple/p-B0uE_ID-.system.js +2 -0
- package/dist/ripple/p-B9BrPorY.js +1 -0
- package/dist/ripple/p-BOTV28v8.system.js +1 -0
- package/dist/ripple/{p-ba399879.system.js → p-BVUnLeDz.system.js} +1 -1
- package/dist/ripple/p-Bboe1S7O.js +1 -0
- package/dist/ripple/p-C20glyTb.js +2 -0
- package/dist/ripple/p-CKTNcFzW.system.js +1 -0
- package/dist/ripple/{p-49a347e1.js → p-DAuKYO5n.js} +1 -1
- package/dist/ripple/p-D_issjBT.system.js +1 -0
- package/dist/ripple/p-a1cd3c29.entry.js +1 -0
- package/dist/ripple/p-a634e9f5.entry.js +1 -0
- package/dist/ripple/p-b0653ac3.entry.js +1 -0
- package/dist/ripple/{p-89479d02.system.entry.js → p-b140b04d.system.entry.js} +1 -1
- package/dist/ripple/p-b2433a3c.system.entry.js +1 -0
- package/dist/ripple/{p-091fbc50.system.entry.js → p-b2604e2b.system.entry.js} +1 -1
- package/dist/ripple/{p-72ed488e.system.entry.js → p-b593e93c.system.entry.js} +1 -1
- package/dist/ripple/{p-9328023c.entry.js → p-c164a1cb.entry.js} +1 -1
- package/dist/ripple/p-c344e3c0.entry.js +1 -0
- package/dist/ripple/{p-1955c66a.system.entry.js → p-caef27f1.system.entry.js} +1 -1
- package/dist/ripple/{p-f8995a5e.system.entry.js → p-cf3defe6.system.entry.js} +1 -1
- package/dist/ripple/{p-4c2a044d.system.entry.js → p-d11e4c6e.system.entry.js} +1 -1
- package/dist/ripple/{p-c7d71181.system.entry.js → p-d17bf683.system.entry.js} +1 -1
- package/dist/ripple/{p-fe71ec64.system.entry.js → p-d1ea5d4c.system.entry.js} +1 -1
- package/dist/ripple/{p-c53f5914.entry.js → p-d293be99.system.entry.js} +1 -1
- package/dist/ripple/p-d3bc9393.entry.js +1 -0
- package/dist/ripple/{p-4e6b0a6e.system.entry.js → p-d3d5306c.system.entry.js} +1 -1
- package/dist/ripple/p-d5232e7d.entry.js +1 -0
- package/dist/ripple/{p-6a082957.entry.js → p-d61938ca.entry.js} +1 -1
- package/dist/ripple/p-dECFx5ly.js +1 -0
- package/dist/ripple/p-dc3e43aa.entry.js +1 -0
- package/dist/ripple/{p-57c25b63.entry.js → p-dca6cfbd.entry.js} +1 -1
- package/dist/ripple/{p-f9fa1506.system.entry.js → p-de4c51e2.system.entry.js} +1 -1
- package/dist/ripple/{p-8ec2e944.system.entry.js → p-e2e2929f.system.entry.js} +1 -1
- package/dist/ripple/p-e63b30bd.system.entry.js +1 -0
- package/dist/ripple/{p-2823d02b.system.entry.js → p-e6e4e23a.system.entry.js} +1 -1
- package/dist/ripple/p-e9b67596.entry.js +1 -0
- package/dist/ripple/p-ebd318c6.entry.js +1 -0
- package/dist/ripple/p-ee0e88ed.entry.js +1 -0
- package/dist/ripple/{p-92a50b38.system.entry.js → p-ef56fc5a.system.entry.js} +1 -1
- package/dist/ripple/{p-12d6ab73.system.entry.js → p-f878d184.system.entry.js} +1 -1
- package/dist/ripple/{p-c4896784.system.entry.js → p-fb4367a8.system.entry.js} +1 -1
- package/dist/ripple/p-fc35bcf9.entry.js +1 -0
- package/dist/ripple/p-ffd7de48.entry.js +1 -0
- 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,21 +1,17 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { handleDisabledAttribute, toBool } from "../../global/functions";
|
|
2
|
+
import { handleDisabledAttribute, toBool, showTooltip, hideTooltip } from "../../global/functions";
|
|
3
3
|
import { globalMessages } from "../../global/intl";
|
|
4
4
|
export class Textarea {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.previousValue = "";
|
|
7
|
-
this.label = undefined;
|
|
8
6
|
this.labelPosition = "top";
|
|
9
7
|
this.value = "";
|
|
10
8
|
this.disabled = false;
|
|
11
|
-
this.info = undefined;
|
|
12
9
|
this.placeholder = "";
|
|
13
10
|
this.requiredField = false;
|
|
14
|
-
this.errorMessage = undefined;
|
|
15
|
-
this.characterLimit = undefined;
|
|
16
11
|
this.inputWidth = "";
|
|
17
12
|
this.inputHeight = "";
|
|
18
13
|
this.announcement = "";
|
|
14
|
+
this.previousValue = "";
|
|
19
15
|
}
|
|
20
16
|
get charCount() {
|
|
21
17
|
return this.value.length;
|
|
@@ -58,6 +54,12 @@ export class Textarea {
|
|
|
58
54
|
}
|
|
59
55
|
this.previousValue = this.value;
|
|
60
56
|
}
|
|
57
|
+
handleLabelMouseEnter(ev) {
|
|
58
|
+
const labelEl = ev.target;
|
|
59
|
+
if (labelEl.scrollWidth > labelEl.clientWidth) {
|
|
60
|
+
showTooltip("right", ev.target, this.label);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
61
63
|
announce(message) {
|
|
62
64
|
if (this.liveRegionEl.textContent === message) {
|
|
63
65
|
message += "\u00A0";
|
|
@@ -65,7 +67,7 @@ export class Textarea {
|
|
|
65
67
|
this.announcement = message;
|
|
66
68
|
}
|
|
67
69
|
render() {
|
|
68
|
-
return (h("div", { key: '
|
|
70
|
+
return (h("div", { key: '5bd7daf935fa75bec3fccc000c4674b23da1c043', class: `wrapper label-${this.labelPosition} ${this.errorMessage ? "invalid" : ""}` }, h("div", { key: '52f18f7ef95fb4505f19ec57b3328db9706af750', class: "label-wrapper" }, h("label", { key: '510bf29970364b1caacfd1eef164a2f766217df2', htmlFor: "inputfield", class: "label", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label, this.characterLimit && (h("span", { key: '47024a21e0940c6c40dde2b131c337636fe1bbdf', class: "sr-only" }, " ", globalMessages.getCharacterLimit(this.characterLimit)))), this.requiredField && (h("span", { key: 'dff37fb5a589b44b4eb249b0b3a572e9944a15cb', class: "required", "aria-hidden": "true" }, "*"))), h("div", { key: '8dda587667514bbf0db310491cf58d2b3ea00fea', class: "inner-wrapper" }, h("div", { key: '8782435cdc9150197ac29a09fd6b3d6b95413c59', class: `inputfield-wrapper ${this.errorMessage ? "invalid" : ""}`, style: this.inputWidth ? { width: this.inputWidth } : {} }, h("textarea", { key: '3d7a017570a79669f03914e00be725a633717c66', id: "inputfield", disabled: this.isDisabled, "aria-describedby": "info error", onInput: (ev) => this.handleInput(ev), onBlur: () => this.handleBlur(), placeholder: this.placeholder, autocomplete: "off", "aria-required": this.requiredField ? "true" : null, value: this.value, rows: 3, style: { height: this.inputHeight } }), this.characterLimit && typeof this.characterLimit === "number" ? (h("div", { class: `character-count ${this.value.length > this.characterLimit ? "exceeded" : ""}` }, this.charCount, "/", this.characterLimit)) : ("")), this.info && (h("div", { key: '7cfb20e30f1413096a861089e932aabc46be0593', id: "info", class: "info" }, this.info)), h("div", { key: '2f450eb52e3bf5e805e125f19e59766c4d45a75c', id: "error", class: "error-message" }, this.errorMessage), h("div", { key: '024947b6fa1ef096bb09c1c9183984e647ed5432', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }, this.announcement))));
|
|
69
71
|
}
|
|
70
72
|
static get is() { return "wm-textarea"; }
|
|
71
73
|
static get encapsulation() { return "shadow"; }
|
|
@@ -83,6 +85,7 @@ export class Textarea {
|
|
|
83
85
|
return {
|
|
84
86
|
"label": {
|
|
85
87
|
"type": "string",
|
|
88
|
+
"attribute": "label",
|
|
86
89
|
"mutable": false,
|
|
87
90
|
"complexType": {
|
|
88
91
|
"original": "string",
|
|
@@ -95,11 +98,13 @@ export class Textarea {
|
|
|
95
98
|
"tags": [],
|
|
96
99
|
"text": ""
|
|
97
100
|
},
|
|
98
|
-
"
|
|
101
|
+
"getter": false,
|
|
102
|
+
"setter": false,
|
|
99
103
|
"reflect": false
|
|
100
104
|
},
|
|
101
105
|
"labelPosition": {
|
|
102
106
|
"type": "string",
|
|
107
|
+
"attribute": "label-position",
|
|
103
108
|
"mutable": false,
|
|
104
109
|
"complexType": {
|
|
105
110
|
"original": "\"top\" | \"left\" | \"none\"",
|
|
@@ -112,12 +117,14 @@ export class Textarea {
|
|
|
112
117
|
"tags": [],
|
|
113
118
|
"text": ""
|
|
114
119
|
},
|
|
115
|
-
"
|
|
120
|
+
"getter": false,
|
|
121
|
+
"setter": false,
|
|
116
122
|
"reflect": false,
|
|
117
123
|
"defaultValue": "\"top\""
|
|
118
124
|
},
|
|
119
125
|
"value": {
|
|
120
126
|
"type": "string",
|
|
127
|
+
"attribute": "value",
|
|
121
128
|
"mutable": true,
|
|
122
129
|
"complexType": {
|
|
123
130
|
"original": "string",
|
|
@@ -130,12 +137,14 @@ export class Textarea {
|
|
|
130
137
|
"tags": [],
|
|
131
138
|
"text": ""
|
|
132
139
|
},
|
|
133
|
-
"
|
|
140
|
+
"getter": false,
|
|
141
|
+
"setter": false,
|
|
134
142
|
"reflect": false,
|
|
135
143
|
"defaultValue": "\"\""
|
|
136
144
|
},
|
|
137
145
|
"disabled": {
|
|
138
146
|
"type": "boolean",
|
|
147
|
+
"attribute": "disabled",
|
|
139
148
|
"mutable": false,
|
|
140
149
|
"complexType": {
|
|
141
150
|
"original": "boolean",
|
|
@@ -148,12 +157,14 @@ export class Textarea {
|
|
|
148
157
|
"tags": [],
|
|
149
158
|
"text": ""
|
|
150
159
|
},
|
|
151
|
-
"
|
|
160
|
+
"getter": false,
|
|
161
|
+
"setter": false,
|
|
152
162
|
"reflect": false,
|
|
153
163
|
"defaultValue": "false"
|
|
154
164
|
},
|
|
155
165
|
"info": {
|
|
156
166
|
"type": "string",
|
|
167
|
+
"attribute": "info",
|
|
157
168
|
"mutable": false,
|
|
158
169
|
"complexType": {
|
|
159
170
|
"original": "string",
|
|
@@ -166,11 +177,13 @@ export class Textarea {
|
|
|
166
177
|
"tags": [],
|
|
167
178
|
"text": ""
|
|
168
179
|
},
|
|
169
|
-
"
|
|
180
|
+
"getter": false,
|
|
181
|
+
"setter": false,
|
|
170
182
|
"reflect": false
|
|
171
183
|
},
|
|
172
184
|
"placeholder": {
|
|
173
185
|
"type": "string",
|
|
186
|
+
"attribute": "placeholder",
|
|
174
187
|
"mutable": false,
|
|
175
188
|
"complexType": {
|
|
176
189
|
"original": "string",
|
|
@@ -183,12 +196,14 @@ export class Textarea {
|
|
|
183
196
|
"tags": [],
|
|
184
197
|
"text": ""
|
|
185
198
|
},
|
|
186
|
-
"
|
|
199
|
+
"getter": false,
|
|
200
|
+
"setter": false,
|
|
187
201
|
"reflect": false,
|
|
188
202
|
"defaultValue": "\"\""
|
|
189
203
|
},
|
|
190
204
|
"requiredField": {
|
|
191
205
|
"type": "boolean",
|
|
206
|
+
"attribute": "required-field",
|
|
192
207
|
"mutable": false,
|
|
193
208
|
"complexType": {
|
|
194
209
|
"original": "boolean",
|
|
@@ -201,12 +216,14 @@ export class Textarea {
|
|
|
201
216
|
"tags": [],
|
|
202
217
|
"text": ""
|
|
203
218
|
},
|
|
204
|
-
"
|
|
219
|
+
"getter": false,
|
|
220
|
+
"setter": false,
|
|
205
221
|
"reflect": false,
|
|
206
222
|
"defaultValue": "false"
|
|
207
223
|
},
|
|
208
224
|
"errorMessage": {
|
|
209
225
|
"type": "string",
|
|
226
|
+
"attribute": "error-message",
|
|
210
227
|
"mutable": false,
|
|
211
228
|
"complexType": {
|
|
212
229
|
"original": "string",
|
|
@@ -219,11 +236,13 @@ export class Textarea {
|
|
|
219
236
|
"tags": [],
|
|
220
237
|
"text": ""
|
|
221
238
|
},
|
|
222
|
-
"
|
|
239
|
+
"getter": false,
|
|
240
|
+
"setter": false,
|
|
223
241
|
"reflect": false
|
|
224
242
|
},
|
|
225
243
|
"characterLimit": {
|
|
226
244
|
"type": "number",
|
|
245
|
+
"attribute": "character-limit",
|
|
227
246
|
"mutable": false,
|
|
228
247
|
"complexType": {
|
|
229
248
|
"original": "number",
|
|
@@ -236,11 +255,13 @@ export class Textarea {
|
|
|
236
255
|
"tags": [],
|
|
237
256
|
"text": ""
|
|
238
257
|
},
|
|
239
|
-
"
|
|
258
|
+
"getter": false,
|
|
259
|
+
"setter": false,
|
|
240
260
|
"reflect": false
|
|
241
261
|
},
|
|
242
262
|
"inputWidth": {
|
|
243
263
|
"type": "string",
|
|
264
|
+
"attribute": "input-width",
|
|
244
265
|
"mutable": false,
|
|
245
266
|
"complexType": {
|
|
246
267
|
"original": "string",
|
|
@@ -253,12 +274,14 @@ export class Textarea {
|
|
|
253
274
|
"tags": [],
|
|
254
275
|
"text": ""
|
|
255
276
|
},
|
|
256
|
-
"
|
|
277
|
+
"getter": false,
|
|
278
|
+
"setter": false,
|
|
257
279
|
"reflect": false,
|
|
258
280
|
"defaultValue": "\"\""
|
|
259
281
|
},
|
|
260
282
|
"inputHeight": {
|
|
261
283
|
"type": "string",
|
|
284
|
+
"attribute": "input-height",
|
|
262
285
|
"mutable": false,
|
|
263
286
|
"complexType": {
|
|
264
287
|
"original": "string",
|
|
@@ -271,7 +294,8 @@ export class Textarea {
|
|
|
271
294
|
"tags": [],
|
|
272
295
|
"text": ""
|
|
273
296
|
},
|
|
274
|
-
"
|
|
297
|
+
"getter": false,
|
|
298
|
+
"setter": false,
|
|
275
299
|
"reflect": false,
|
|
276
300
|
"defaultValue": "\"\""
|
|
277
301
|
}
|
|
@@ -890,21 +890,28 @@
|
|
|
890
890
|
flex-direction: column;
|
|
891
891
|
font-size: 0.875rem;
|
|
892
892
|
}
|
|
893
|
+
:host .wrapper .label-wrapper {
|
|
894
|
+
display: flex;
|
|
895
|
+
}
|
|
893
896
|
:host .wrapper .label {
|
|
894
|
-
display: block;
|
|
897
|
+
display: inline-block;
|
|
895
898
|
line-height: normal;
|
|
896
899
|
font-weight: 600;
|
|
897
900
|
white-space: nowrap;
|
|
901
|
+
overflow: hidden;
|
|
902
|
+
text-overflow: ellipsis;
|
|
898
903
|
margin-bottom: 0.25rem;
|
|
899
904
|
}
|
|
900
|
-
:host .wrapper .
|
|
905
|
+
:host .wrapper .required {
|
|
906
|
+
display: inline-block;
|
|
901
907
|
color: var(--wmcolor-text-required);
|
|
902
908
|
}
|
|
903
909
|
:host .wrapper.label-left {
|
|
904
910
|
flex-direction: row;
|
|
905
911
|
}
|
|
906
912
|
:host .wrapper.label-left .label-wrapper {
|
|
907
|
-
|
|
913
|
+
height: fit-content;
|
|
914
|
+
margin-right: 0.75rem;
|
|
908
915
|
}
|
|
909
916
|
:host .wrapper.label-left .label-wrapper .label {
|
|
910
917
|
display: flex;
|
|
@@ -912,7 +919,6 @@
|
|
|
912
919
|
min-height: 2.5rem;
|
|
913
920
|
white-space: normal;
|
|
914
921
|
margin-bottom: 0;
|
|
915
|
-
margin-right: 0.75rem;
|
|
916
922
|
}
|
|
917
923
|
:host .wrapper.label-none label {
|
|
918
924
|
position: absolute !important;
|
|
@@ -926,11 +932,11 @@
|
|
|
926
932
|
white-space: nowrap !important;
|
|
927
933
|
margin: -1px !important;
|
|
928
934
|
}
|
|
929
|
-
:host .wrapper.invalid .label {
|
|
935
|
+
:host .wrapper.invalid .label-wrapper {
|
|
930
936
|
color: var(--wmcolor-text-error);
|
|
931
937
|
position: relative;
|
|
932
938
|
}
|
|
933
|
-
:host .wrapper.invalid .label:after {
|
|
939
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
934
940
|
content: "";
|
|
935
941
|
display: block;
|
|
936
942
|
background-color: var(--icon-fill, currentColor);
|
|
@@ -939,14 +945,14 @@
|
|
|
939
945
|
-webkit-mask-size: 100%;
|
|
940
946
|
mask-size: 100%;
|
|
941
947
|
}
|
|
942
|
-
:host .wrapper.invalid .label:after {
|
|
948
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
943
949
|
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z'/%3E%3C/svg%3E%0A");
|
|
944
950
|
mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath style='fill: var(--icon-fill, currentColor)' d='M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z'/%3E%3C/svg%3E%0A");
|
|
945
951
|
}
|
|
946
|
-
:host .wrapper.invalid .label:after {
|
|
952
|
+
:host .wrapper.invalid .label-wrapper:after {
|
|
947
953
|
display: inline-block;
|
|
948
954
|
margin-inline-start: 0.25rem;
|
|
949
|
-
|
|
955
|
+
align-self: center;
|
|
950
956
|
flex-shrink: 0;
|
|
951
957
|
transform: translateY(-1px);
|
|
952
958
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { intl, shouldOpenUp, toBool, handleDisabledAttribute } from "../../global/functions";
|
|
2
|
+
import { intl, shouldOpenUp, toBool, handleDisabledAttribute, showTooltip, hideTooltip } from "../../global/functions";
|
|
3
3
|
export class Timepicker {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.disabled = false;
|
|
6
|
+
this.value = "";
|
|
7
|
+
this.label = "";
|
|
8
|
+
this.labelPosition = "top";
|
|
9
|
+
this.requiredField = false;
|
|
10
|
+
this.isExpanded = false;
|
|
5
11
|
this.twelveHrValid = /^(0?[0-9]|1[0-2])\s*:?\s*([0-5][0-9])?\s?(a|p|am|pm)?$/i;
|
|
6
12
|
this.twentyFourHrValid = /^(0?[0-9]|1[0-9]|2[0-4])\s*:?\s*([0-5][0-9])?$/;
|
|
7
13
|
this.timeFormat = "hh:mm";
|
|
@@ -12,14 +18,6 @@ export class Timepicker {
|
|
|
12
18
|
defaultMessage: "Select time",
|
|
13
19
|
description: "Button text for screen readers.",
|
|
14
20
|
});
|
|
15
|
-
this.disabled = false;
|
|
16
|
-
this.value = "";
|
|
17
|
-
this.errorMessage = undefined;
|
|
18
|
-
this.label = "";
|
|
19
|
-
this.labelPosition = "top";
|
|
20
|
-
this.requiredField = false;
|
|
21
|
-
this.preselected = undefined;
|
|
22
|
-
this.isExpanded = false;
|
|
23
21
|
}
|
|
24
22
|
get selectedOption() {
|
|
25
23
|
return this.optionsList.filter((option) => option.tabIndex === 0)[0];
|
|
@@ -168,6 +166,12 @@ export class Timepicker {
|
|
|
168
166
|
this.wmTimepickerInputBlurred.emit();
|
|
169
167
|
this.tpWrapper.classList.remove("focus");
|
|
170
168
|
}
|
|
169
|
+
handleLabelMouseEnter(ev) {
|
|
170
|
+
const labelEl = ev.target;
|
|
171
|
+
if (labelEl.scrollWidth > labelEl.clientWidth) {
|
|
172
|
+
showTooltip("right", ev.target, this.label);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
171
175
|
generateTimeIntervals() {
|
|
172
176
|
let timeIntervals = [];
|
|
173
177
|
let startTime = 0;
|
|
@@ -275,13 +279,13 @@ export class Timepicker {
|
|
|
275
279
|
return this.times.map((time, index) => (h("li", { id: `option${index + 1}`, "data-time": time, role: "option", onClick: () => this.handleOptionClick(time) }, this.reformatTimeInternal("12", time))));
|
|
276
280
|
}
|
|
277
281
|
render() {
|
|
278
|
-
return (h(Host, { key: '
|
|
282
|
+
return (h(Host, { key: 'fd0acc447628174ea8551c1ea7cafdc8b0b6ec74', onBlur: () => this.close(false) }, h("div", { key: 'a8c7c453558df7a33fc42d71eff78894a36306d6', class: `wrapper label-${this.labelPosition} ${!!this.errorMessage ? "invalid" : ""}`, ref: (t) => (this.tpWrapper = t) }, h("div", { key: '9f259605e513d12e32716f12b4d5dee9fb97d10a', class: "label-wrapper" }, this.labelPosition !== "none" && (h("label", { key: '1b1b596a992a66f6738cab61086c9d7298934e8c', id: "label", class: "label", htmlFor: "time-input", onMouseEnter: (ev) => this.handleLabelMouseEnter(ev), onMouseLeave: () => hideTooltip() }, this.label)), this.labelPosition !== "none" && this.requiredField && (h("div", { key: '4fc12427a1b3c62b9a6e7cd53c83cec311b46f1e', "aria-hidden": "true", class: "required" }, "*"))), h("div", { key: '6f299347f62dd5299f0223bbdee82fc55dafe06a' }, h("div", { key: 'd78e3b28b110714558d94ba03bedc4d63e8a41d7', class: "inner-wrapper" }, h("input", { key: '1af64c4c0ab7bd983d3e926ad1ea146bed0dadea', id: "time-input", "aria-label": this.label, "aria-describedby": "error", ref: (el) => (this.inputEl = el), onBlur: () => this.handleInputBlur(), onInput: () => (this.value = this.inputEl.value), disabled: this.isDisabled, "aria-required": this.requiredField ? "true" : null, placeholder: this.timeFormat, autocomplete: "off", value: this.value, onFocus: () => this.tpWrapper.classList.add("focus") }), h("button", { key: 'a99cd67d7bfa17c4ba512b73097b5987b8d5d4f8', id: "btn", ref: (el) => (this.buttonEl = el), disabled: this.isDisabled, "aria-controls": "list", "aria-expanded": this.isExpanded ? "true" : "false", "aria-label": this.buttonAriaLabel, "aria-describedby": "time-input", onClick: () => (this.isExpanded ? this.close() : this.open()),
|
|
279
283
|
// This addresses an issue in Safari, where clicking buttons does not focus them
|
|
280
284
|
// if the button does not receive focus when clicked, Timepicker incorrectly emits a blur event
|
|
281
285
|
onMouseDown: (ev) => {
|
|
282
286
|
ev.preventDefault();
|
|
283
287
|
this.buttonEl.focus();
|
|
284
|
-
} }, h("span", { key: '
|
|
288
|
+
} }, h("span", { key: 'd50582487d9860716e0bdc67b99ac75b346d62aa', class: "svg-icon svg-time" })), h("ul", { key: '63a9ed95dc1c238d12d84150c406e5ff877d71b3', class: `options ${this.isExpanded ? "open" : ""} ${this.openUp ? "upwards" : ""}`, id: "list", role: "listbox", "aria-labelledby": "label", "aria-describedby": this.isExpanded ? "collapsed" : null, tabindex: -1, ref: (el) => (this.optionsEl = el) }, this.renderOptions())), h("div", { key: '25ea586bea9676a7d18c2fdeada1dcaf0a224471', id: "error", class: "error" }, this.errorMessage)), h("div", { key: '4985d6ee5df49f687eaeeb06a1b5a0c8b14b7119', id: "live-polite", class: "sr-only", "aria-live": "polite", "aria-atomic": "true", ref: (el) => (this.liveRegionEl = el) }))));
|
|
285
289
|
}
|
|
286
290
|
static get is() { return "wm-timepicker"; }
|
|
287
291
|
static get encapsulation() { return "shadow"; }
|
|
@@ -300,6 +304,7 @@ export class Timepicker {
|
|
|
300
304
|
return {
|
|
301
305
|
"disabled": {
|
|
302
306
|
"type": "boolean",
|
|
307
|
+
"attribute": "disabled",
|
|
303
308
|
"mutable": false,
|
|
304
309
|
"complexType": {
|
|
305
310
|
"original": "boolean",
|
|
@@ -312,12 +317,14 @@ export class Timepicker {
|
|
|
312
317
|
"tags": [],
|
|
313
318
|
"text": ""
|
|
314
319
|
},
|
|
315
|
-
"
|
|
320
|
+
"getter": false,
|
|
321
|
+
"setter": false,
|
|
316
322
|
"reflect": false,
|
|
317
323
|
"defaultValue": "false"
|
|
318
324
|
},
|
|
319
325
|
"value": {
|
|
320
326
|
"type": "string",
|
|
327
|
+
"attribute": "value",
|
|
321
328
|
"mutable": true,
|
|
322
329
|
"complexType": {
|
|
323
330
|
"original": "string",
|
|
@@ -330,12 +337,14 @@ export class Timepicker {
|
|
|
330
337
|
"tags": [],
|
|
331
338
|
"text": ""
|
|
332
339
|
},
|
|
333
|
-
"
|
|
340
|
+
"getter": false,
|
|
341
|
+
"setter": false,
|
|
334
342
|
"reflect": false,
|
|
335
343
|
"defaultValue": "\"\""
|
|
336
344
|
},
|
|
337
345
|
"errorMessage": {
|
|
338
346
|
"type": "string",
|
|
347
|
+
"attribute": "error-message",
|
|
339
348
|
"mutable": false,
|
|
340
349
|
"complexType": {
|
|
341
350
|
"original": "string",
|
|
@@ -348,11 +357,13 @@ export class Timepicker {
|
|
|
348
357
|
"tags": [],
|
|
349
358
|
"text": ""
|
|
350
359
|
},
|
|
351
|
-
"
|
|
360
|
+
"getter": false,
|
|
361
|
+
"setter": false,
|
|
352
362
|
"reflect": false
|
|
353
363
|
},
|
|
354
364
|
"label": {
|
|
355
365
|
"type": "string",
|
|
366
|
+
"attribute": "label",
|
|
356
367
|
"mutable": false,
|
|
357
368
|
"complexType": {
|
|
358
369
|
"original": "string",
|
|
@@ -365,12 +376,14 @@ export class Timepicker {
|
|
|
365
376
|
"tags": [],
|
|
366
377
|
"text": ""
|
|
367
378
|
},
|
|
368
|
-
"
|
|
379
|
+
"getter": false,
|
|
380
|
+
"setter": false,
|
|
369
381
|
"reflect": false,
|
|
370
382
|
"defaultValue": "\"\""
|
|
371
383
|
},
|
|
372
384
|
"labelPosition": {
|
|
373
385
|
"type": "string",
|
|
386
|
+
"attribute": "label-position",
|
|
374
387
|
"mutable": false,
|
|
375
388
|
"complexType": {
|
|
376
389
|
"original": "\"top\" | \"left\" | \"none\"",
|
|
@@ -383,12 +396,14 @@ export class Timepicker {
|
|
|
383
396
|
"tags": [],
|
|
384
397
|
"text": ""
|
|
385
398
|
},
|
|
386
|
-
"
|
|
399
|
+
"getter": false,
|
|
400
|
+
"setter": false,
|
|
387
401
|
"reflect": false,
|
|
388
402
|
"defaultValue": "\"top\""
|
|
389
403
|
},
|
|
390
404
|
"requiredField": {
|
|
391
405
|
"type": "boolean",
|
|
406
|
+
"attribute": "required-field",
|
|
392
407
|
"mutable": false,
|
|
393
408
|
"complexType": {
|
|
394
409
|
"original": "boolean",
|
|
@@ -401,12 +416,14 @@ export class Timepicker {
|
|
|
401
416
|
"tags": [],
|
|
402
417
|
"text": ""
|
|
403
418
|
},
|
|
404
|
-
"
|
|
419
|
+
"getter": false,
|
|
420
|
+
"setter": false,
|
|
405
421
|
"reflect": false,
|
|
406
422
|
"defaultValue": "false"
|
|
407
423
|
},
|
|
408
424
|
"preselected": {
|
|
409
425
|
"type": "string",
|
|
426
|
+
"attribute": "preselected",
|
|
410
427
|
"mutable": false,
|
|
411
428
|
"complexType": {
|
|
412
429
|
"original": "string",
|
|
@@ -419,7 +436,8 @@ export class Timepicker {
|
|
|
419
436
|
"tags": [],
|
|
420
437
|
"text": ""
|
|
421
438
|
},
|
|
422
|
-
"
|
|
439
|
+
"getter": false,
|
|
440
|
+
"setter": false,
|
|
423
441
|
"reflect": false
|
|
424
442
|
}
|
|
425
443
|
};
|
|
@@ -2,6 +2,10 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
import { showTooltip, hideTooltip, shouldOpenUp, shouldOpenDown, shouldShiftLeft, shouldShiftRight, intl, debounce, findAllScrollableParents, getCumulativeScrollOffset, } from "../../global/functions";
|
|
3
3
|
export class Toggletip {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.tooltipPosition = "bottom-right";
|
|
6
|
+
this.targetSize = "small";
|
|
7
|
+
this.toggletipType = "info";
|
|
8
|
+
this.isHidden = true; // initially toggletip is hidden so it can be measured and replaced before it is displayed. It is also hidden while the user is scrolling in browsers that don't fully implement the popover API (as of this day FF and Safari don't know about anchor())
|
|
5
9
|
this.scrollableParents = [];
|
|
6
10
|
this.tooltipInfoMessage = intl.formatMessage({
|
|
7
11
|
id: "toggletip.moreInformation",
|
|
@@ -20,12 +24,6 @@ export class Toggletip {
|
|
|
20
24
|
this.debouncedResize = debounce(() => {
|
|
21
25
|
this.scrollableParents = findAllScrollableParents(this.el);
|
|
22
26
|
}, 200);
|
|
23
|
-
this.label = undefined;
|
|
24
|
-
this.tooltip = undefined;
|
|
25
|
-
this.tooltipPosition = "bottom-right";
|
|
26
|
-
this.targetSize = "small";
|
|
27
|
-
this.toggletipType = "info";
|
|
28
|
-
this.isHidden = true;
|
|
29
27
|
}
|
|
30
28
|
get isOpen() {
|
|
31
29
|
return this.toggletipEl.matches(":popover-open");
|
|
@@ -221,9 +219,9 @@ export class Toggletip {
|
|
|
221
219
|
}
|
|
222
220
|
}
|
|
223
221
|
render() {
|
|
224
|
-
return (h(Host, { key: '
|
|
222
|
+
return (h(Host, { key: '653e8a3a21b1a63ebae98f4813393ae2c3020aa0', class: `size-${this.targetSize}` }, h("button", { key: '15a4de61c15d32091643bbabaf438f5116e5bea9', class: "button", type: "button", "aria-label": this.label, popoverTarget: "toggletip", popoverTargetAction: "toggle", onClick: () => this.open(),
|
|
225
223
|
// In order to position the tooltip identically to the toggletip, its presence is determined by these four events
|
|
226
|
-
onMouseEnter: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }, this.renderIcon()), h("div", { key: '
|
|
224
|
+
onMouseEnter: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onMouseLeave: () => hideTooltip(), onFocus: () => !this.isOpen && showTooltip(this.toggletipPosition, this.el, this.tooltipMessage), onBlur: () => this.handleBlur() }, this.renderIcon()), h("div", { key: '96e4c18106ed35a41a0fc4ff2ea2b239cac541e1', popover: "", ref: (el) => (this.toggletipEl = el), class: `toggletip ${this.targetSize} ${this.isHidden ? "hidden" : ""}`, id: "toggletip" }, this.tooltip), h("div", { key: 'd6cf716efcd55983e0b86854eac118a9bbb01d76', ref: (el) => (this.liveRegionEl = el), class: "live-region sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true" })));
|
|
227
225
|
}
|
|
228
226
|
static get is() { return "wm-toggletip"; }
|
|
229
227
|
static get encapsulation() { return "shadow"; }
|
|
@@ -242,6 +240,7 @@ export class Toggletip {
|
|
|
242
240
|
return {
|
|
243
241
|
"label": {
|
|
244
242
|
"type": "string",
|
|
243
|
+
"attribute": "label",
|
|
245
244
|
"mutable": false,
|
|
246
245
|
"complexType": {
|
|
247
246
|
"original": "string",
|
|
@@ -254,11 +253,13 @@ export class Toggletip {
|
|
|
254
253
|
"tags": [],
|
|
255
254
|
"text": ""
|
|
256
255
|
},
|
|
257
|
-
"
|
|
256
|
+
"getter": false,
|
|
257
|
+
"setter": false,
|
|
258
258
|
"reflect": false
|
|
259
259
|
},
|
|
260
260
|
"tooltip": {
|
|
261
261
|
"type": "string",
|
|
262
|
+
"attribute": "tooltip",
|
|
262
263
|
"mutable": false,
|
|
263
264
|
"complexType": {
|
|
264
265
|
"original": "string",
|
|
@@ -271,11 +272,13 @@ export class Toggletip {
|
|
|
271
272
|
"tags": [],
|
|
272
273
|
"text": ""
|
|
273
274
|
},
|
|
274
|
-
"
|
|
275
|
+
"getter": false,
|
|
276
|
+
"setter": false,
|
|
275
277
|
"reflect": false
|
|
276
278
|
},
|
|
277
279
|
"tooltipPosition": {
|
|
278
280
|
"type": "string",
|
|
281
|
+
"attribute": "tooltip-position",
|
|
279
282
|
"mutable": false,
|
|
280
283
|
"complexType": {
|
|
281
284
|
"original": "TooltipPlacement",
|
|
@@ -294,12 +297,14 @@ export class Toggletip {
|
|
|
294
297
|
"tags": [],
|
|
295
298
|
"text": ""
|
|
296
299
|
},
|
|
297
|
-
"
|
|
300
|
+
"getter": false,
|
|
301
|
+
"setter": false,
|
|
298
302
|
"reflect": false,
|
|
299
303
|
"defaultValue": "\"bottom-right\""
|
|
300
304
|
},
|
|
301
305
|
"targetSize": {
|
|
302
306
|
"type": "string",
|
|
307
|
+
"attribute": "target-size",
|
|
303
308
|
"mutable": false,
|
|
304
309
|
"complexType": {
|
|
305
310
|
"original": "\"small\" | \"large\"",
|
|
@@ -312,12 +317,14 @@ export class Toggletip {
|
|
|
312
317
|
"tags": [],
|
|
313
318
|
"text": ""
|
|
314
319
|
},
|
|
315
|
-
"
|
|
320
|
+
"getter": false,
|
|
321
|
+
"setter": false,
|
|
316
322
|
"reflect": false,
|
|
317
323
|
"defaultValue": "\"small\""
|
|
318
324
|
},
|
|
319
325
|
"toggletipType": {
|
|
320
326
|
"type": "string",
|
|
327
|
+
"attribute": "toggletip-type",
|
|
321
328
|
"mutable": false,
|
|
322
329
|
"complexType": {
|
|
323
330
|
"original": "\"info\" | \"ai\"",
|
|
@@ -330,7 +337,8 @@ export class Toggletip {
|
|
|
330
337
|
"tags": [],
|
|
331
338
|
"text": ""
|
|
332
339
|
},
|
|
333
|
-
"
|
|
340
|
+
"getter": false,
|
|
341
|
+
"setter": false,
|
|
334
342
|
"reflect": false,
|
|
335
343
|
"defaultValue": "\"info\""
|
|
336
344
|
}
|