@beeq/core 1.8.0-beta.14 → 1.8.0-beta.16
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/beeq/beeq.esm.js +1 -1
- package/dist/beeq/beeq.esm.js.map +1 -1
- package/dist/beeq/index.esm.js +1 -1
- package/dist/beeq/{p-350cd07e.entry.js → p-026fad0d.entry.js} +2 -2
- package/dist/beeq/p-026fad0d.entry.js.map +1 -0
- package/dist/beeq/{p-457ab863.entry.js → p-09323635.entry.js} +2 -2
- package/dist/beeq/p-09323635.entry.js.map +1 -0
- package/dist/beeq/p-0c0bd129.entry.js +6 -0
- package/dist/beeq/p-0c0bd129.entry.js.map +1 -0
- package/dist/beeq/{p-0180a237.entry.js → p-0c12aa01.entry.js} +2 -2
- package/dist/beeq/p-0c12aa01.entry.js.map +1 -0
- package/dist/beeq/{p-be234206.entry.js → p-0f72dbb6.entry.js} +2 -2
- package/dist/beeq/p-0f72dbb6.entry.js.map +1 -0
- package/dist/beeq/{p-96793709.entry.js → p-19b7bbe0.entry.js} +2 -2
- package/dist/beeq/p-19b7bbe0.entry.js.map +1 -0
- package/dist/beeq/{p-a89bfbd8.entry.js → p-1b0cfcd6.entry.js} +2 -2
- package/dist/beeq/p-1b0cfcd6.entry.js.map +1 -0
- package/dist/beeq/{p-0711a447.entry.js → p-1cdea079.entry.js} +2 -2
- package/dist/beeq/p-1cdea079.entry.js.map +1 -0
- package/dist/beeq/{p-99668b08.entry.js → p-20d91acf.entry.js} +2 -2
- package/dist/beeq/p-20d91acf.entry.js.map +1 -0
- package/dist/beeq/{p-854e2114.entry.js → p-29d9487c.entry.js} +2 -2
- package/dist/beeq/p-29d9487c.entry.js.map +1 -0
- package/dist/beeq/p-2c566eb0.entry.js +6 -0
- package/dist/beeq/p-2c566eb0.entry.js.map +1 -0
- package/dist/beeq/{p-d2c20a92.entry.js → p-2ef4ed54.entry.js} +2 -2
- package/dist/beeq/p-2ef4ed54.entry.js.map +1 -0
- package/dist/beeq/{p-561ff182.js → p-3c472097.js} +2 -2
- package/dist/beeq/{p-bdf2ea24.entry.js → p-43dc9906.entry.js} +2 -2
- package/dist/beeq/p-43dc9906.entry.js.map +1 -0
- package/dist/beeq/{p-b9171e19.entry.js → p-4c66663c.entry.js} +2 -2
- package/dist/beeq/p-4c66663c.entry.js.map +1 -0
- package/dist/beeq/{p-81b6556f.entry.js → p-4d6a9646.entry.js} +2 -2
- package/dist/beeq/p-4d6a9646.entry.js.map +1 -0
- package/dist/beeq/{p-0ff234ec.entry.js → p-52603411.entry.js} +2 -2
- package/dist/beeq/p-52603411.entry.js.map +1 -0
- package/dist/beeq/{p-c8f639ab.entry.js → p-56c43424.entry.js} +2 -2
- package/dist/beeq/p-56c43424.entry.js.map +1 -0
- package/dist/beeq/{p-5b5f9a2a.entry.js → p-5d6fc48a.entry.js} +2 -2
- package/dist/beeq/p-5d6fc48a.entry.js.map +1 -0
- package/dist/beeq/p-60094726.js +7 -0
- package/dist/beeq/p-60094726.js.map +1 -0
- package/dist/beeq/p-6079f9b2.entry.js +6 -0
- package/dist/beeq/p-6079f9b2.entry.js.map +1 -0
- package/dist/beeq/{p-6482a62d.entry.js → p-6a0b0106.entry.js} +2 -2
- package/dist/beeq/p-6a0b0106.entry.js.map +1 -0
- package/dist/beeq/{p-382eea5f.entry.js → p-73ef1309.entry.js} +2 -2
- package/dist/beeq/p-73ef1309.entry.js.map +1 -0
- package/dist/beeq/{p-cc83682b.entry.js → p-75cc6789.entry.js} +2 -2
- package/dist/beeq/p-75cc6789.entry.js.map +1 -0
- package/dist/beeq/{p-42d22a31.entry.js → p-7a719a9b.entry.js} +2 -2
- package/dist/beeq/p-7a719a9b.entry.js.map +1 -0
- package/dist/beeq/{p-a0d6207d.entry.js → p-7f124d61.entry.js} +2 -2
- package/dist/beeq/p-7f124d61.entry.js.map +1 -0
- package/dist/beeq/{p-def8acd7.entry.js → p-8ca2588f.entry.js} +2 -2
- package/dist/beeq/p-8ca2588f.entry.js.map +1 -0
- package/dist/beeq/{p-8b595d1f.entry.js → p-921fa1ea.entry.js} +2 -2
- package/dist/beeq/p-921fa1ea.entry.js.map +1 -0
- package/dist/beeq/p-99b5d671.entry.js +6 -0
- package/dist/beeq/p-99b5d671.entry.js.map +1 -0
- package/dist/beeq/{p-47d41233.entry.js → p-a5e01629.entry.js} +2 -2
- package/dist/beeq/p-a5e01629.entry.js.map +1 -0
- package/dist/beeq/{p-5f00f1f5.entry.js → p-adec3d5b.entry.js} +2 -2
- package/dist/beeq/{p-5f00f1f5.entry.js.map → p-adec3d5b.entry.js.map} +1 -1
- package/dist/beeq/{p-1d67af77.entry.js → p-b83f174c.entry.js} +2 -2
- package/dist/beeq/p-b83f174c.entry.js.map +1 -0
- package/dist/beeq/{p-4f47130c.entry.js → p-c09dac58.entry.js} +2 -2
- package/dist/beeq/p-c09dac58.entry.js.map +1 -0
- package/dist/beeq/p-c65d21e2.entry.js +6 -0
- package/dist/beeq/p-c65d21e2.entry.js.map +1 -0
- package/dist/beeq/{p-eab2d27c.entry.js → p-c70c6b00.entry.js} +2 -2
- package/dist/beeq/p-c70c6b00.entry.js.map +1 -0
- package/dist/beeq/{p-995bfd58.js → p-c9ed66d9.js} +2 -2
- package/dist/beeq/{p-a6094ed8.entry.js → p-d8221b88.entry.js} +2 -2
- package/dist/beeq/p-d8221b88.entry.js.map +1 -0
- package/dist/beeq/{p-439583bc.entry.js → p-d8a257b7.entry.js} +2 -2
- package/dist/beeq/p-d8a257b7.entry.js.map +1 -0
- package/dist/beeq/p-dc544089.entry.js +6 -0
- package/dist/beeq/p-dc544089.entry.js.map +1 -0
- package/dist/beeq/{p-70ae504a.entry.js → p-e056c02a.entry.js} +2 -2
- package/dist/beeq/p-e056c02a.entry.js.map +1 -0
- package/dist/beeq/{p-8e9f0bf3.entry.js → p-e68dcd3d.entry.js} +2 -2
- package/dist/beeq/p-e68dcd3d.entry.js.map +1 -0
- package/dist/beeq/{p-d7507599.entry.js → p-eb662058.entry.js} +2 -2
- package/dist/beeq/p-eb662058.entry.js.map +1 -0
- package/dist/beeq.html-custom-data.json +2029 -0
- package/dist/cjs/{assetsPath-557e47c5.js → assetsPath-0ec85a1a.js} +2 -2
- package/dist/cjs/{assetsPath-557e47c5.js.map → assetsPath-0ec85a1a.js.map} +1 -1
- package/dist/cjs/beeq.cjs.js +3 -3
- package/dist/cjs/beeq.cjs.js.map +1 -1
- package/dist/cjs/bq-accordion-group.cjs.entry.js +3 -3
- package/dist/cjs/bq-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-accordion.cjs.entry.js +5 -5
- package/dist/cjs/bq-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-alert.cjs.entry.js +6 -6
- package/dist/cjs/bq-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-avatar.cjs.entry.js +5 -5
- package/dist/cjs/bq-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-badge.cjs.entry.js +3 -3
- package/dist/cjs/bq-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +4 -11
- package/dist/cjs/bq-breadcrumb-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-breadcrumb.cjs.entry.js +20 -38
- package/dist/cjs/bq-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-button_2.cjs.entry.js +7 -7
- package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-card.cjs.entry.js +4 -4
- package/dist/cjs/bq-card.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-checkbox.cjs.entry.js +9 -11
- package/dist/cjs/bq-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-date-picker.cjs.entry.js +35 -16
- package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-dialog.cjs.entry.js +6 -6
- package/dist/cjs/bq-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-divider.cjs.entry.js +5 -5
- package/dist/cjs/bq-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-drawer.cjs.entry.js +6 -6
- package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-dropdown_2.cjs.entry.js +5 -5
- package/dist/cjs/bq-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-empty-state.cjs.entry.js +5 -5
- package/dist/cjs/bq-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-input.cjs.entry.js +42 -17
- package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-notification.cjs.entry.js +4 -4
- package/dist/cjs/bq-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option-group.cjs.entry.js +2 -2
- package/dist/cjs/bq-option-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option-list_2.cjs.entry.js +7 -7
- package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-option.cjs.entry.js +5 -5
- package/dist/cjs/bq-option.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-page-title.cjs.entry.js +3 -3
- package/dist/cjs/bq-page-title.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-progress.cjs.entry.js +9 -9
- package/dist/cjs/bq-progress.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-radio-group.cjs.entry.js +68 -25
- package/dist/cjs/bq-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-radio.cjs.entry.js +10 -4
- package/dist/cjs/bq-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-select.cjs.entry.js +7 -7
- package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-side-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/bq-side-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-side-menu.cjs.entry.js +3 -3
- package/dist/cjs/bq-side-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-slider.cjs.entry.js +21 -7
- package/dist/cjs/bq-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-spinner.cjs.entry.js +5 -5
- package/dist/cjs/bq-spinner.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-status.cjs.entry.js +2 -2
- package/dist/cjs/bq-status.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-step-item.cjs.entry.js +5 -5
- package/dist/cjs/bq-step-item.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-steps.cjs.entry.js +2 -2
- package/dist/cjs/bq-steps.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-switch.cjs.entry.js +56 -4
- package/dist/cjs/bq-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-tab-group.cjs.entry.js +9 -9
- package/dist/cjs/bq-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-tab.cjs.entry.js +6 -6
- package/dist/cjs/bq-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-textarea.cjs.entry.js +62 -13
- package/dist/cjs/bq-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-toast.cjs.entry.js +2 -2
- package/dist/cjs/bq-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/bq-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/bq-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-9cbab9ab.js → index-c4edfa07.js} +787 -553
- package/dist/cjs/index-c4edfa07.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{isDefined-7235b5cd.js → isDefined-e538d669.js} +2 -2
- package/dist/cjs/{isDefined-7235b5cd.js.map → isDefined-e538d669.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/bq-accordion.js +117 -18
- package/dist/collection/components/accordion/bq-accordion.js.map +1 -1
- package/dist/collection/components/accordion-group/bq-accordion-group.js +36 -1
- package/dist/collection/components/accordion-group/bq-accordion-group.js.map +1 -1
- package/dist/collection/components/accordion-group/scss/bq-accordion-group.css +1 -1
- package/dist/collection/components/alert/bq-alert.js +91 -9
- package/dist/collection/components/alert/bq-alert.js.map +1 -1
- package/dist/collection/components/alert/scss/bq-alert.css +1 -1
- package/dist/collection/components/avatar/bq-avatar.js +66 -4
- package/dist/collection/components/avatar/bq-avatar.js.map +1 -1
- package/dist/collection/components/avatar/scss/bq-avatar.css +1 -1
- package/dist/collection/components/badge/bq-badge.js +36 -2
- package/dist/collection/components/badge/bq-badge.js.map +1 -1
- package/dist/collection/components/breadcrumb/bq-breadcrumb.js +43 -119
- package/dist/collection/components/breadcrumb/bq-breadcrumb.js.map +1 -1
- package/dist/collection/components/breadcrumb/scss/bq-breadcrumb.css +1 -1
- package/dist/collection/components/breadcrumb-item/bq-breadcrumb-item.js +50 -46
- package/dist/collection/components/breadcrumb-item/bq-breadcrumb-item.js.map +1 -1
- package/dist/collection/components/breadcrumb-item/scss/bq-breadcrumb-item.css +1 -1
- package/dist/collection/components/button/bq-button.js +77 -2
- package/dist/collection/components/button/bq-button.js.map +1 -1
- package/dist/collection/components/button/scss/bq-button.css +1 -1
- package/dist/collection/components/card/bq-card.js +37 -3
- package/dist/collection/components/card/bq-card.js.map +1 -1
- package/dist/collection/components/card/scss/bq-card.css +1 -1
- package/dist/collection/components/checkbox/bq-checkbox.js +62 -9
- package/dist/collection/components/checkbox/bq-checkbox.js.map +1 -1
- package/dist/collection/components/checkbox/scss/bq-checkbox.css +1 -1
- package/dist/collection/components/date-picker/bq-date-picker.js +190 -43
- package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -1
- package/dist/collection/components/date-picker/scss/bq-date-picker.css +1 -1
- package/dist/collection/components/dialog/bq-dialog.js +96 -12
- package/dist/collection/components/dialog/bq-dialog.js.map +1 -1
- package/dist/collection/components/dialog/scss/bq-dialog.css +1 -1
- package/dist/collection/components/divider/bq-divider.js +53 -8
- package/dist/collection/components/divider/bq-divider.js.map +1 -1
- package/dist/collection/components/drawer/bq-drawer.js +75 -13
- package/dist/collection/components/drawer/bq-drawer.js.map +1 -1
- package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
- package/dist/collection/components/dropdown/bq-dropdown.js +70 -4
- package/dist/collection/components/dropdown/bq-dropdown.js.map +1 -1
- package/dist/collection/components/dropdown/scss/bq-dropdown.css +1 -1
- package/dist/collection/components/empty-state/bq-empty-state.js +24 -4
- package/dist/collection/components/empty-state/bq-empty-state.js.map +1 -1
- package/dist/collection/components/icon/bq-icon.js +34 -2
- package/dist/collection/components/icon/bq-icon.js.map +1 -1
- package/dist/collection/components/input/bq-input.js +176 -14
- package/dist/collection/components/input/bq-input.js.map +1 -1
- package/dist/collection/components/input/scss/bq-input.css +1 -1
- package/dist/collection/components/notification/bq-notification.js +73 -7
- package/dist/collection/components/notification/bq-notification.js.map +1 -1
- package/dist/collection/components/notification/scss/bq-notification.css +1 -1
- package/dist/collection/components/option/bq-option.js +52 -4
- package/dist/collection/components/option/bq-option.js.map +1 -1
- package/dist/collection/components/option-group/bq-option-group.js +32 -1
- package/dist/collection/components/option-group/bq-option-group.js.map +1 -1
- package/dist/collection/components/option-list/bq-option-list.js +24 -1
- package/dist/collection/components/option-list/bq-option-list.js.map +1 -1
- package/dist/collection/components/option-list/scss/bq-option-list.css +1 -1
- package/dist/collection/components/page-title/bq-page-title.js +39 -2
- package/dist/collection/components/page-title/bq-page-title.js.map +1 -1
- package/dist/collection/components/panel/bq-panel.js +44 -1
- package/dist/collection/components/panel/bq-panel.js.map +1 -1
- package/dist/collection/components/panel/scss/bq-panel.css +1 -1
- package/dist/collection/components/progress/bq-progress.js +105 -67
- package/dist/collection/components/progress/bq-progress.js.map +1 -1
- package/dist/collection/components/radio/bq-radio.js +76 -2
- package/dist/collection/components/radio/bq-radio.js.map +1 -1
- package/dist/collection/components/radio/scss/bq-radio.css +1 -1
- package/dist/collection/components/radio-group/bq-radio-group.js +187 -57
- package/dist/collection/components/radio-group/bq-radio-group.js.map +1 -1
- package/dist/collection/components/radio-group/scss/bq-radio-group.css +1 -1
- package/dist/collection/components/select/bq-select.js +133 -4
- package/dist/collection/components/select/bq-select.js.map +1 -1
- package/dist/collection/components/select/scss/bq-select.css +1 -1
- package/dist/collection/components/side-menu/bq-side-menu.js +53 -2
- package/dist/collection/components/side-menu/bq-side-menu.js.map +1 -1
- package/dist/collection/components/side-menu-item/bq-side-menu-item.js +43 -0
- package/dist/collection/components/side-menu-item/bq-side-menu-item.js.map +1 -1
- package/dist/collection/components/side-menu-item/scss/bq-side-menu-item.css +1 -1
- package/dist/collection/components/slider/bq-slider.js +88 -6
- package/dist/collection/components/slider/bq-slider.js.map +1 -1
- package/dist/collection/components/spinner/bq-spinner.js +36 -4
- package/dist/collection/components/spinner/bq-spinner.js.map +1 -1
- package/dist/collection/components/status/bq-status.js +24 -4
- package/dist/collection/components/status/bq-status.js.map +1 -1
- package/dist/collection/components/step-item/bq-step-item.js +42 -4
- package/dist/collection/components/step-item/bq-step-item.js.map +1 -1
- package/dist/collection/components/steps/bq-steps.js +34 -1
- package/dist/collection/components/steps/bq-steps.js.map +1 -1
- package/dist/collection/components/switch/bq-switch.js +124 -3
- package/dist/collection/components/switch/bq-switch.js.map +1 -1
- package/dist/collection/components/switch/scss/bq-switch.css +1 -1
- package/dist/collection/components/tab/bq-tab.js +100 -41
- package/dist/collection/components/tab/bq-tab.js.map +1 -1
- package/dist/collection/components/tab-group/bq-tab-group.js +84 -46
- package/dist/collection/components/tab-group/bq-tab-group.js.map +1 -1
- package/dist/collection/components/tab-group/scss/bq-tab-group.css +1 -1
- package/dist/collection/components/tag/bq-tag.js +70 -3
- package/dist/collection/components/tag/bq-tag.js.map +1 -1
- package/dist/collection/components/tag/scss/bq-tag.css +1 -1
- package/dist/collection/components/textarea/bq-textarea.js +176 -11
- package/dist/collection/components/textarea/bq-textarea.js.map +1 -1
- package/dist/collection/components/textarea/scss/bq-textarea.css +1 -1
- package/dist/collection/components/toast/bq-toast.js +60 -3
- package/dist/collection/components/toast/bq-toast.js.map +1 -1
- package/dist/collection/components/tooltip/bq-tooltip.js +55 -1
- package/dist/collection/components/tooltip/bq-tooltip.js.map +1 -1
- package/dist/collection/global/scripts/global.js.map +1 -1
- package/dist/collection/tools/generate-custom-elements-json.js +8 -7
- package/dist/collection/tools/generate-custom-elements-json.js.map +1 -1
- package/dist/components/bq-accordion-group.js +1 -1
- package/dist/components/bq-accordion-group.js.map +1 -1
- package/dist/components/bq-accordion.js +1 -1
- package/dist/components/bq-accordion.js.map +1 -1
- package/dist/components/bq-alert.js +1 -1
- package/dist/components/bq-alert.js.map +1 -1
- package/dist/components/bq-avatar.js +1 -1
- package/dist/components/bq-avatar.js.map +1 -1
- package/dist/components/bq-badge.js +1 -1
- package/dist/components/bq-breadcrumb-item.js +1 -1
- package/dist/components/bq-breadcrumb-item.js.map +1 -1
- package/dist/components/bq-breadcrumb.js +1 -1
- package/dist/components/bq-breadcrumb.js.map +1 -1
- package/dist/components/bq-button.js +1 -1
- package/dist/components/bq-card.js +1 -1
- package/dist/components/bq-card.js.map +1 -1
- package/dist/components/bq-checkbox.js +1 -1
- package/dist/components/bq-checkbox.js.map +1 -1
- package/dist/components/bq-date-picker.js +1 -1
- package/dist/components/bq-date-picker.js.map +1 -1
- package/dist/components/bq-dialog.js +1 -1
- package/dist/components/bq-dialog.js.map +1 -1
- package/dist/components/bq-divider.js +1 -1
- package/dist/components/bq-drawer.js +1 -1
- package/dist/components/bq-drawer.js.map +1 -1
- package/dist/components/bq-dropdown.js +1 -1
- package/dist/components/bq-empty-state.js +1 -1
- package/dist/components/bq-empty-state.js.map +1 -1
- package/dist/components/bq-icon.js +1 -1
- package/dist/components/bq-input.js +1 -1
- package/dist/components/bq-input.js.map +1 -1
- package/dist/components/bq-notification.js +1 -1
- package/dist/components/bq-notification.js.map +1 -1
- package/dist/components/bq-option-group.js +1 -1
- package/dist/components/bq-option-group.js.map +1 -1
- package/dist/components/bq-option-list.js +1 -1
- package/dist/components/bq-option.js +1 -1
- package/dist/components/bq-option.js.map +1 -1
- package/dist/components/bq-page-title.js +1 -1
- package/dist/components/bq-page-title.js.map +1 -1
- package/dist/components/bq-panel.js +1 -1
- package/dist/components/bq-progress.js +1 -1
- package/dist/components/bq-progress.js.map +1 -1
- package/dist/components/bq-radio-group.js +1 -1
- package/dist/components/bq-radio-group.js.map +1 -1
- package/dist/components/bq-radio.js +1 -1
- package/dist/components/bq-radio.js.map +1 -1
- package/dist/components/bq-select.js +1 -1
- package/dist/components/bq-select.js.map +1 -1
- package/dist/components/bq-side-menu-item.js +1 -1
- package/dist/components/bq-side-menu-item.js.map +1 -1
- package/dist/components/bq-side-menu.js +1 -1
- package/dist/components/bq-side-menu.js.map +1 -1
- package/dist/components/bq-slider.js +1 -1
- package/dist/components/bq-slider.js.map +1 -1
- package/dist/components/bq-spinner.js +1 -1
- package/dist/components/bq-spinner.js.map +1 -1
- package/dist/components/bq-status.js +1 -1
- package/dist/components/bq-status.js.map +1 -1
- package/dist/components/bq-step-item.js +1 -1
- package/dist/components/bq-step-item.js.map +1 -1
- package/dist/components/bq-steps.js +1 -1
- package/dist/components/bq-steps.js.map +1 -1
- package/dist/components/bq-switch.js +1 -1
- package/dist/components/bq-switch.js.map +1 -1
- package/dist/components/bq-tab-group.js +1 -1
- package/dist/components/bq-tab-group.js.map +1 -1
- package/dist/components/bq-tab.js +1 -1
- package/dist/components/bq-tab.js.map +1 -1
- package/dist/components/bq-tag.js +1 -1
- package/dist/components/bq-textarea.js +1 -1
- package/dist/components/bq-textarea.js.map +1 -1
- package/dist/components/bq-toast.js +1 -1
- package/dist/components/bq-toast.js.map +1 -1
- package/dist/components/bq-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-2bdb6f46.js → p-27c1b08e.js} +2 -2
- package/dist/components/p-27c1b08e.js.map +1 -0
- package/dist/components/{p-209dd39e.js → p-295b174b.js} +2 -2
- package/dist/components/p-295b174b.js.map +1 -0
- package/dist/components/{p-fd41feb9.js → p-33371480.js} +2 -2
- package/dist/components/{p-fd41feb9.js.map → p-33371480.js.map} +1 -1
- package/dist/components/p-5940b410.js +7 -0
- package/dist/components/p-5940b410.js.map +1 -0
- package/dist/components/{p-00b80145.js → p-78d23ddc.js} +2 -2
- package/dist/components/{p-9e8fdef7.js → p-93c16753.js} +2 -2
- package/dist/components/p-93c16753.js.map +1 -0
- package/dist/components/{p-56dbc376.js → p-9f037c57.js} +2 -2
- package/dist/components/p-9f037c57.js.map +1 -0
- package/dist/components/{p-2c245c83.js → p-c2d43340.js} +2 -2
- package/dist/components/p-c2d43340.js.map +1 -0
- package/dist/components/{p-641036af.js → p-cbfc423f.js} +2 -2
- package/dist/components/p-cbfc423f.js.map +1 -0
- package/dist/components/{p-07467338.js → p-cf496927.js} +1 -1
- package/dist/components/p-cf496927.js.map +1 -0
- package/dist/components/{p-ddf2a5ae.js → p-f5cd1f38.js} +2 -2
- package/dist/components/p-f5cd1f38.js.map +1 -0
- package/dist/components/{p-59b33ad7.js → p-fe0b66e5.js} +2 -2
- package/dist/components/p-fe0b66e5.js.map +1 -0
- package/dist/custom-elements.json +17528 -0
- package/dist/esm/{assetsPath-15d3d3e4.js → assetsPath-6c498eae.js} +2 -2
- package/dist/esm/{assetsPath-15d3d3e4.js.map → assetsPath-6c498eae.js.map} +1 -1
- package/dist/esm/beeq.js +4 -4
- package/dist/esm/beeq.js.map +1 -1
- package/dist/esm/bq-accordion-group.entry.js +3 -3
- package/dist/esm/bq-accordion-group.entry.js.map +1 -1
- package/dist/esm/bq-accordion.entry.js +5 -5
- package/dist/esm/bq-accordion.entry.js.map +1 -1
- package/dist/esm/bq-alert.entry.js +6 -6
- package/dist/esm/bq-alert.entry.js.map +1 -1
- package/dist/esm/bq-avatar.entry.js +5 -5
- package/dist/esm/bq-avatar.entry.js.map +1 -1
- package/dist/esm/bq-badge.entry.js +3 -3
- package/dist/esm/bq-badge.entry.js.map +1 -1
- package/dist/esm/bq-breadcrumb-item.entry.js +4 -11
- package/dist/esm/bq-breadcrumb-item.entry.js.map +1 -1
- package/dist/esm/bq-breadcrumb.entry.js +20 -38
- package/dist/esm/bq-breadcrumb.entry.js.map +1 -1
- package/dist/esm/bq-button_2.entry.js +7 -7
- package/dist/esm/bq-button_2.entry.js.map +1 -1
- package/dist/esm/bq-card.entry.js +4 -4
- package/dist/esm/bq-card.entry.js.map +1 -1
- package/dist/esm/bq-checkbox.entry.js +9 -11
- package/dist/esm/bq-checkbox.entry.js.map +1 -1
- package/dist/esm/bq-date-picker.entry.js +35 -16
- package/dist/esm/bq-date-picker.entry.js.map +1 -1
- package/dist/esm/bq-dialog.entry.js +6 -6
- package/dist/esm/bq-dialog.entry.js.map +1 -1
- package/dist/esm/bq-divider.entry.js +5 -5
- package/dist/esm/bq-divider.entry.js.map +1 -1
- package/dist/esm/bq-drawer.entry.js +6 -6
- package/dist/esm/bq-drawer.entry.js.map +1 -1
- package/dist/esm/bq-dropdown_2.entry.js +5 -5
- package/dist/esm/bq-dropdown_2.entry.js.map +1 -1
- package/dist/esm/bq-empty-state.entry.js +5 -5
- package/dist/esm/bq-empty-state.entry.js.map +1 -1
- package/dist/esm/bq-input.entry.js +42 -17
- package/dist/esm/bq-input.entry.js.map +1 -1
- package/dist/esm/bq-notification.entry.js +4 -4
- package/dist/esm/bq-notification.entry.js.map +1 -1
- package/dist/esm/bq-option-group.entry.js +2 -2
- package/dist/esm/bq-option-group.entry.js.map +1 -1
- package/dist/esm/bq-option-list_2.entry.js +7 -7
- package/dist/esm/bq-option-list_2.entry.js.map +1 -1
- package/dist/esm/bq-option.entry.js +5 -5
- package/dist/esm/bq-option.entry.js.map +1 -1
- package/dist/esm/bq-page-title.entry.js +3 -3
- package/dist/esm/bq-page-title.entry.js.map +1 -1
- package/dist/esm/bq-progress.entry.js +9 -9
- package/dist/esm/bq-progress.entry.js.map +1 -1
- package/dist/esm/bq-radio-group.entry.js +68 -25
- package/dist/esm/bq-radio-group.entry.js.map +1 -1
- package/dist/esm/bq-radio.entry.js +10 -4
- package/dist/esm/bq-radio.entry.js.map +1 -1
- package/dist/esm/bq-select.entry.js +7 -7
- package/dist/esm/bq-select.entry.js.map +1 -1
- package/dist/esm/bq-side-menu-item.entry.js +2 -2
- package/dist/esm/bq-side-menu-item.entry.js.map +1 -1
- package/dist/esm/bq-side-menu.entry.js +3 -3
- package/dist/esm/bq-side-menu.entry.js.map +1 -1
- package/dist/esm/bq-slider.entry.js +21 -7
- package/dist/esm/bq-slider.entry.js.map +1 -1
- package/dist/esm/bq-spinner.entry.js +5 -5
- package/dist/esm/bq-spinner.entry.js.map +1 -1
- package/dist/esm/bq-status.entry.js +2 -2
- package/dist/esm/bq-status.entry.js.map +1 -1
- package/dist/esm/bq-step-item.entry.js +5 -5
- package/dist/esm/bq-step-item.entry.js.map +1 -1
- package/dist/esm/bq-steps.entry.js +2 -2
- package/dist/esm/bq-steps.entry.js.map +1 -1
- package/dist/esm/bq-switch.entry.js +56 -4
- package/dist/esm/bq-switch.entry.js.map +1 -1
- package/dist/esm/bq-tab-group.entry.js +9 -9
- package/dist/esm/bq-tab-group.entry.js.map +1 -1
- package/dist/esm/bq-tab.entry.js +6 -6
- package/dist/esm/bq-tab.entry.js.map +1 -1
- package/dist/esm/bq-textarea.entry.js +62 -13
- package/dist/esm/bq-textarea.entry.js.map +1 -1
- package/dist/esm/bq-toast.entry.js +2 -2
- package/dist/esm/bq-toast.entry.js.map +1 -1
- package/dist/esm/bq-tooltip.entry.js +2 -2
- package/dist/esm/bq-tooltip.entry.js.map +1 -1
- package/dist/esm/{index-f0f1a8c6.js → index-c7d02072.js} +787 -553
- package/dist/esm/index-c7d02072.js.map +1 -0
- package/dist/esm/index.js +4 -4
- package/dist/esm/{isDefined-edd9ee7b.js → isDefined-48de6db5.js} +2 -2
- package/dist/esm/{isDefined-edd9ee7b.js.map → isDefined-48de6db5.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/hydrate/index.js +3017 -848
- package/dist/hydrate/index.mjs +3017 -848
- package/dist/stencil.config.js +14 -3
- package/dist/stencil.config.js.map +1 -1
- package/dist/types/components/accordion/bq-accordion.d.ts +100 -10
- package/dist/types/components/accordion-group/bq-accordion-group.d.ts +25 -0
- package/dist/types/components/alert/bq-alert.d.ts +71 -5
- package/dist/types/components/avatar/bq-avatar.d.ts +51 -1
- package/dist/types/components/badge/bq-badge.d.ts +28 -0
- package/dist/types/components/breadcrumb/bq-breadcrumb.d.ts +25 -17
- package/dist/types/components/breadcrumb-item/bq-breadcrumb-item.d.ts +43 -10
- package/dist/types/components/button/bq-button.d.ts +51 -0
- package/dist/types/components/card/bq-card.d.ts +31 -1
- package/dist/types/components/checkbox/bq-checkbox.d.ts +37 -1
- package/dist/types/components/date-picker/bq-date-picker.d.ts +112 -28
- package/dist/types/components/dialog/bq-dialog.d.ts +76 -8
- package/dist/types/components/divider/bq-divider.d.ts +31 -4
- package/dist/types/components/drawer/bq-drawer.d.ts +59 -9
- package/dist/types/components/dropdown/bq-dropdown.d.ts +51 -3
- package/dist/types/components/empty-state/bq-empty-state.d.ts +18 -0
- package/dist/types/components/icon/bq-icon.d.ts +21 -1
- package/dist/types/components/input/bq-input.d.ts +77 -0
- package/dist/types/components/notification/bq-notification.d.ts +57 -5
- package/dist/types/components/option/bq-option.d.ts +40 -0
- package/dist/types/components/option-group/bq-option-group.d.ts +31 -0
- package/dist/types/components/option-list/bq-option-list.d.ts +21 -0
- package/dist/types/components/page-title/bq-page-title.d.ts +37 -0
- package/dist/types/components/panel/bq-panel.d.ts +31 -0
- package/dist/types/components/progress/bq-progress.d.ts +33 -9
- package/dist/types/components/radio/bq-radio.d.ts +37 -0
- package/dist/types/components/radio-group/bq-radio-group.d.ts +53 -10
- package/dist/types/components/select/bq-select.d.ts +85 -0
- package/dist/types/components/side-menu/bq-side-menu.d.ts +45 -0
- package/dist/types/components/side-menu-item/bq-side-menu-item.d.ts +37 -0
- package/dist/types/components/slider/bq-slider.d.ts +39 -1
- package/dist/types/components/spinner/bq-spinner.d.ts +26 -0
- package/dist/types/components/status/bq-status.d.ts +21 -3
- package/dist/types/components/step-item/bq-step-item.d.ts +32 -0
- package/dist/types/components/steps/bq-steps.d.ts +27 -0
- package/dist/types/components/switch/bq-switch.d.ts +43 -0
- package/dist/types/components/tab/bq-tab.d.ts +47 -5
- package/dist/types/components/tab-group/bq-tab-group.d.ts +34 -8
- package/dist/types/components/tag/bq-tag.d.ts +49 -0
- package/dist/types/components/textarea/bq-textarea.d.ts +74 -0
- package/dist/types/components/toast/bq-toast.d.ts +47 -2
- package/dist/types/components/tooltip/bq-tooltip.d.ts +40 -0
- package/dist/types/components.d.ts +5783 -71
- package/dist/types/global/scripts/global.d.ts +0 -21
- package/dist/types/global.d.ts +26 -0
- package/dist/types/tools/generate-custom-elements-json.d.ts +1 -1
- package/package.json +1 -1
- package/dist/beeq/p-0180a237.entry.js.map +0 -1
- package/dist/beeq/p-0711a447.entry.js.map +0 -1
- package/dist/beeq/p-0875b715.entry.js +0 -6
- package/dist/beeq/p-0875b715.entry.js.map +0 -1
- package/dist/beeq/p-0ff234ec.entry.js.map +0 -1
- package/dist/beeq/p-1d67af77.entry.js.map +0 -1
- package/dist/beeq/p-25365502.entry.js +0 -6
- package/dist/beeq/p-25365502.entry.js.map +0 -1
- package/dist/beeq/p-350cd07e.entry.js.map +0 -1
- package/dist/beeq/p-382eea5f.entry.js.map +0 -1
- package/dist/beeq/p-42d22a31.entry.js.map +0 -1
- package/dist/beeq/p-439583bc.entry.js.map +0 -1
- package/dist/beeq/p-457ab863.entry.js.map +0 -1
- package/dist/beeq/p-47d41233.entry.js.map +0 -1
- package/dist/beeq/p-4f47130c.entry.js.map +0 -1
- package/dist/beeq/p-5b5f9a2a.entry.js.map +0 -1
- package/dist/beeq/p-5da52049.js +0 -7
- package/dist/beeq/p-5da52049.js.map +0 -1
- package/dist/beeq/p-63941636.entry.js +0 -6
- package/dist/beeq/p-63941636.entry.js.map +0 -1
- package/dist/beeq/p-6482a62d.entry.js.map +0 -1
- package/dist/beeq/p-64ddef8a.entry.js +0 -6
- package/dist/beeq/p-64ddef8a.entry.js.map +0 -1
- package/dist/beeq/p-70ae504a.entry.js.map +0 -1
- package/dist/beeq/p-81b6556f.entry.js.map +0 -1
- package/dist/beeq/p-854e2114.entry.js.map +0 -1
- package/dist/beeq/p-8b595d1f.entry.js.map +0 -1
- package/dist/beeq/p-8e9f0bf3.entry.js.map +0 -1
- package/dist/beeq/p-94ca5709.entry.js +0 -6
- package/dist/beeq/p-94ca5709.entry.js.map +0 -1
- package/dist/beeq/p-96793709.entry.js.map +0 -1
- package/dist/beeq/p-99668b08.entry.js.map +0 -1
- package/dist/beeq/p-a0d6207d.entry.js.map +0 -1
- package/dist/beeq/p-a6094ed8.entry.js.map +0 -1
- package/dist/beeq/p-a89bfbd8.entry.js.map +0 -1
- package/dist/beeq/p-b9171e19.entry.js.map +0 -1
- package/dist/beeq/p-bdf2ea24.entry.js.map +0 -1
- package/dist/beeq/p-be234206.entry.js.map +0 -1
- package/dist/beeq/p-c8f639ab.entry.js.map +0 -1
- package/dist/beeq/p-cc83682b.entry.js.map +0 -1
- package/dist/beeq/p-d2c20a92.entry.js.map +0 -1
- package/dist/beeq/p-d7507599.entry.js.map +0 -1
- package/dist/beeq/p-def8acd7.entry.js.map +0 -1
- package/dist/beeq/p-eab2d27c.entry.js.map +0 -1
- package/dist/beeq/p-f9d9bd41.entry.js +0 -6
- package/dist/beeq/p-f9d9bd41.entry.js.map +0 -1
- package/dist/cjs/index-9cbab9ab.js.map +0 -1
- package/dist/components/p-07467338.js.map +0 -1
- package/dist/components/p-209dd39e.js.map +0 -1
- package/dist/components/p-2bdb6f46.js.map +0 -1
- package/dist/components/p-2c245c83.js.map +0 -1
- package/dist/components/p-56dbc376.js.map +0 -1
- package/dist/components/p-59b33ad7.js.map +0 -1
- package/dist/components/p-641036af.js.map +0 -1
- package/dist/components/p-9e8fdef7.js.map +0 -1
- package/dist/components/p-ddf2a5ae.js.map +0 -1
- package/dist/components/p-f1736bec.js +0 -7
- package/dist/components/p-f1736bec.js.map +0 -1
- package/dist/esm/index-f0f1a8c6.js.map +0 -1
- /package/dist/beeq/{p-561ff182.js.map → p-3c472097.js.map} +0 -0
- /package/dist/beeq/{p-995bfd58.js.map → p-c9ed66d9.js.map} +0 -0
- /package/dist/components/{p-00b80145.js.map → p-78d23ddc.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["bqCheckboxCss","BqCheckboxStyle0","BqCheckbox","inputElem","prevCheckedValue","internals","handleIndeterminatePropChange","this","indeterminate","checked","handleRequiredPropChange","updateFormValidity","bqChange","bqFocus","bqBlur","componentWillLoad","componentDidUpdate","emit","formAssociatedCallback","setFormValue","formResetCallback","clearSelection","undefined","setValidity","vClick","click","vFocus","focus","vBlur","blur","value","formValidationMessage","required","states","clear","add","valueMissing","handleChange","handleOnFocus","el","handleOnBlur","render","h","key","class","disabled","backgroundOnHover","name","part","type","isNil","form","formId","ref","input","onBlur","onChange","onFocus","tabindex","xmlns","viewBox","fill","d","stroke"],"sources":["../../packages/beeq/src/components/checkbox/scss/bq-checkbox.scss?tag=bq-checkbox&encapsulation=shadow","../../packages/beeq/src/components/checkbox/bq-checkbox.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Checkbox styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-checkbox.variables';\n\n:host {\n @apply inline-block;\n}\n\n.bq-checkbox {\n @apply box-border inline-flex cursor-pointer select-none rounded-s transition-colors duration-300 ease-in-out p-b-xs p-i-xs;\n\n // Default hover state\n &:not(.is-checked),\n &:not(.is-indeterminate) {\n &:not(.is-disabled):hover .bq-checkbox__checkbox {\n @apply border-hover-brand;\n }\n }\n\n // Display background on hover (if enabled)\n &.has-background:not(.is-disabled):hover {\n @apply bg-hover-ui-primary;\n }\n\n // Checked/Indeterminate hover state\n &.is-checked,\n &.is-indeterminate {\n &:not(.is-disabled):hover .bq-checkbox__checkbox {\n @apply bg-hover-ui-brand border-hover-brand;\n }\n }\n}\n\n.bq-checkbox__input {\n // Checkbox square icon has `FOCUS`\n &:focus-visible {\n ~ .bq-checkbox__checkbox {\n @apply focus border-brand;\n }\n }\n\n // Checkbox square icon is `CHECKED/INDETERMINATE`\n &:checked,\n &:indeterminate {\n ~ .bq-checkbox__checkbox {\n @apply border-brand bg-ui-brand;\n }\n }\n\n // Checkbox square icon is `CHECKED/INDETERMINATE` and `DISABLED`\n &:checked:disabled,\n &:indeterminate:disabled {\n ~ .bq-checkbox__checkbox {\n @apply opacity-60;\n }\n }\n\n &:disabled {\n ~ .bq-checkbox__checkbox {\n @apply opacity-60;\n }\n }\n}\n\n// Checkbox square icon `DEFAULT` state (not checked/indeterminate, not hover, not disabled)\n.bq-checkbox__checkbox {\n @apply rounded-[--bq-checkbox--border-radius] border-[length:--bq-checkbox--border-width] border-solid border-[color:--bq-icon--primary];\n}\n\n.bq-checkbox__checkbox,\n.bq-checkbox__label {\n @apply transition-[color,background-color,border-color,box-shadow] duration-300;\n}\n","import { AttachInternals, Component, Element, Event, EventEmitter, h, Method, Prop, Watch } from '@stencil/core';\n\nimport { isNil } from '../../shared/utils';\n\n/**\n * @part base - The component's internal wrapper of the checkbox component.\n * @part control - The container `<div>` element that holds the custom checkbox.\n * @part input - The native HTML `<input type=\"checkbox\">` used under the hood.\n * @part checkbox - The `<span>` element that renders the custom checked/indeterminate state.\n * @part label - The `<span>` element that holds the text content.\n */\n@Component({\n tag: 'bq-checkbox',\n styleUrl: './scss/bq-checkbox.scss',\n formAssociated: true,\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class BqCheckbox {\n // Own Properties\n // ====================\n\n private inputElem: HTMLInputElement;\n private prevCheckedValue: boolean;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqCheckboxElement;\n @AttachInternals() internals!: ElementInternals;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** If true checkbox displays background on hover */\n @Prop({ reflect: true }) backgroundOnHover? = false;\n\n /** The form ID that the checkbox is associated with */\n @Prop({ reflect: true }) formId?: string;\n\n /** The native form validation message */\n @Prop({ mutable: true }) formValidationMessage?: string;\n\n /** If true checkbox is checked */\n @Prop({ reflect: true, mutable: true }) checked?: boolean;\n\n /** If true checkbox is disabled */\n @Prop({ reflect: true }) disabled? = false;\n\n /** A state that is neither checked nor unchecked */\n @Prop({ reflect: true, mutable: true }) indeterminate? = false;\n\n /** Name of the HTML input form control. Submitted with the form as part of a name/value pair. */\n @Prop({ reflect: true }) name!: string;\n\n /** If `true`, it will indicate that the user must specify a value for the checkbox before the owning form can be submitted */\n @Prop({ reflect: true }) required?: boolean;\n\n /** A string representing the value of the checkbox. Primarily used to differentiate a list of related checkboxes that have the same name. */\n @Prop({ reflect: true }) value!: string;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('indeterminate')\n handleIndeterminatePropChange() {\n if (!this.inputElem) return;\n\n this.inputElem.indeterminate = this.indeterminate;\n if (this.indeterminate) {\n this.checked = false;\n }\n }\n\n @Watch('required')\n handleRequiredPropChange() {\n this.updateFormValidity();\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Handler to be called when the checkbox state changes */\n @Event() bqChange: EventEmitter<{ checked: boolean }>;\n\n /** Handler to be called when the checkbox gets focus */\n @Event() bqFocus: EventEmitter<HTMLBqCheckboxElement>;\n\n /** Handler to be called when the checkbox loses focus */\n @Event() bqBlur: EventEmitter<HTMLBqCheckboxElement>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.prevCheckedValue = this.checked;\n }\n\n componentDidUpdate() {\n /**\n * We need to trigger the `bqChange` immediately after the first update happens\n * so the checked attribute get applied, otherwise, a delay will happen\n * between the event emits and when the checked attribute value gets reflected in the element host.\n */\n if (this.checked !== this.prevCheckedValue) {\n if (!this.indeterminate) {\n this.bqChange.emit({ checked: this.checked });\n }\n this.prevCheckedValue = this.checked;\n }\n }\n\n formAssociatedCallback() {\n this.setFormValue(this.checked);\n this.updateFormValidity();\n }\n\n formResetCallback() {\n this.clearSelection();\n // Reset the form value and validity state\n this.internals.setFormValue(undefined);\n this.internals.setValidity({});\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n /**\n * Simulate a click event on the native `<input>` HTML element used under the hood.\n * Use this method instead of the global `element.click()`.\n */\n @Method()\n async vClick() {\n this.inputElem?.click();\n }\n\n /**\n * Sets focus on the native `<input>` HTML element used under the hood.\n * Use this method instead of the global `element.focus()`.\n */\n @Method()\n async vFocus() {\n this.inputElem?.focus();\n }\n\n /**\n * Remove focus from the native `<input>` HTML element used under the hood.\n * Use this method instead of the global `element.blur()`.\n */\n @Method()\n async vBlur() {\n this.inputElem?.blur();\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private setFormValue = (checked: boolean) => {\n const value = checked ? 'on' : undefined;\n // Set form value based on the checked state\n // Here we also pass the state of the checkbox (2nd argument) as the state of the form control\n // Details: https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setFormValue\n this.internals?.setFormValue(value, `${this.checked}`);\n };\n\n private updateFormValidity = () => {\n const { formValidationMessage, internals, required, checked, inputElem } = this;\n // Clear the validity state\n internals?.states.clear();\n\n if (!(required && !checked)) {\n // If the checkbox is not required or is checked, set the validity state to valid\n internals?.states.add('valid');\n internals?.setValidity({});\n return;\n }\n\n // Set validity state based on the required property and checked state\n internals?.states.add('invalid');\n internals?.setValidity({ valueMissing: true }, formValidationMessage, inputElem);\n };\n\n private clearSelection = () => {\n this.checked = false;\n this.indeterminate = false;\n };\n\n private handleChange = () => {\n this.checked = !this.checked;\n this.indeterminate = false;\n\n this.setFormValue(this.checked);\n this.updateFormValidity();\n };\n\n private handleOnFocus = () => {\n this.bqFocus.emit(this.el);\n };\n\n private handleOnBlur = () => {\n this.bqBlur.emit(this.el);\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <label\n class={{\n 'bq-checkbox group': true,\n 'is-checked': this.checked,\n 'is-indeterminate': this.indeterminate,\n 'is-disabled !cursor-not-allowed': this.disabled,\n 'has-background': this.backgroundOnHover,\n }}\n aria-label={this.name || 'checkbox'}\n part=\"base\"\n >\n <div\n class=\"bq-checkbox__control relative box-border flex items-center justify-center bs-[--bq-checkbox--size] is-[--bq-checkbox--size] p-b-xs3 p-i-xs3\"\n part=\"control\"\n >\n <input\n type=\"checkbox\"\n class=\"bq-checkbox__input pointer-events-none absolute opacity-0 p-b-0 p-i-0 m-b-0 m-i-0\"\n name={!isNil(this.name) ? this.name : undefined}\n checked={this.checked}\n disabled={this.disabled}\n indeterminate={this.indeterminate}\n form={this.formId}\n required={this.required}\n value={this.value}\n aria-checked={this.checked ? 'true' : 'false'}\n aria-disabled={this.disabled ? 'true' : 'false'}\n ref={(input: HTMLInputElement) => (this.inputElem = input)}\n onBlur={this.handleOnBlur}\n onChange={this.handleChange}\n onFocus={this.handleOnFocus}\n part=\"input\"\n tabindex=\"0\"\n />\n <span\n class=\"bq-checkbox__checkbox relative box-border flex items-center justify-center bs-full is-[--bq-checkbox--size]\"\n part=\"checkbox\"\n >\n {/*\n We could move these SVGs to separated functional components, but it seems there's a weird issue with\n Stencil and pure SVG components: https://stencil-worldwide.slack.com/archives/C79EANFL7/p1663779385026389\n */}\n {this.checked && (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"absolute text-neutral-white bs-full is-full\"\n viewBox=\"0 0 256 256\"\n >\n <path fill=\"none\" d=\"M0 0h256v256H0z\" />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"32\"\n d=\"M216 72 104 184l-56-56\"\n />\n </svg>\n )}\n {!this.checked && this.indeterminate && (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"absolute text-neutral-white bs-full is-full\"\n viewBox=\"0 0 256 256\"\n fill=\"currentColor\"\n >\n <path fill=\"none\" d=\"M0 0h256v256H0z\" />\n <path\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"32\"\n d=\"M40 128h176\"\n />\n </svg>\n )}\n </span>\n </div>\n <span\n class=\"bq-checkbox__label ps-xs text-start font-medium leading-regular text-primary group-hover-[&:not(.is-disabled)]:text-hover-primary group-[.is-disabled]:opacity-60\"\n part=\"label\"\n >\n <slot />\n </span>\n </label>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DIALOG_SIZE","DIALOG_FOOTER_APPEARANCE","bqDialogCss","BqDialogStyle0","BqDialog","dialogElem","contentElem","footerElem","closeSlotElem","OPEN_CSS_CLASS","checkPropValues","validatePropValue","this","el","handleOpenChange","open","handleOpen","handleClose","bqCancel","bqClose","bqOpen","bqAfterOpen","bqAfterClose","componentWillLoad","componentDidLoad","shadowRoot","querySelector","addEventListener","hide","disconnectedCallback","removeEventListener","handleMouseClick","event","disableCloseClickOutside","button","rect","getBoundingClientRect","clientY","top","bottom","clientX","left","right","cancel","handleKeyDown","ev","isEscapeKey","key","disableCloseEscKeydown","preventDefault","show","emit","defaultPrevented","async","leave","close","handleTransitionEnd","classList","add","disableBackdrop","showModal","enter","remove","handleContentSlotChange","hasContent","hasSlotContent","handleFooterSlotChange","hasFooter","render","style","border","h","class","size","inert","undefined","ref","part","id","name","hideCloseButton","appearance","role","title","mainElem","onSlotchange","footerAppearance"],"sources":["../../packages/beeq/src/components/dialog/bq-dialog.types.ts","../../packages/beeq/src/components/dialog/scss/bq-dialog.scss?tag=bq-dialog&encapsulation=shadow","../../packages/beeq/src/components/dialog/bq-dialog.tsx"],"sourcesContent":["export const DIALOG_SIZE = ['small', 'medium', 'large'] as const;\nexport type TDialogSize = (typeof DIALOG_SIZE)[number];\n\nexport const DIALOG_FOOTER_APPEARANCE = ['standard', 'highlight'] as const;\nexport type TDialogFooterAppearance = (typeof DIALOG_FOOTER_APPEARANCE)[number];\n\nexport const DIALOG_BORDER_RADIUS = ['none', 'xs2', 'xs', 's', 'm', 'l', 'full'] as const;\nexport type TDialogBorderRadius = (typeof DIALOG_BORDER_RADIUS)[number];\n","/* -------------------------------------------------------------------------- */\n/* Dialog styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-dialog.variables';\n\n:host {\n @apply invisible #{!important};\n}\n\n:host(.bq-dialog--open) {\n @apply visible #{!important};\n}\n\n/* --------------------------------- Dialog --------------------------------- */\n\n.bq-dialog {\n @apply absolute flex flex-col gap-[--bq-dialog--content-footer-gap] p-b-0 p-i-0;\n @apply bg-[--bq-dialog--background] text-[--bq-dialog--text-color] shadow-[shadow:--bq-dialog--box-shadow];\n @apply rounded-[--bq-dialog--border-radius] border-[length:--bq-dialog--border-width] border-[color:--bq-dialog--border-color];\n // If mobile resolution, dialog will be full width\n @apply is-[90vw];\n\n border-style: var(--bq-dialog--border-style);\n\n &.small {\n @apply sm:is-[--bq-dialog--width-small];\n }\n\n &.medium {\n @apply sm:is-[--bq-dialog--width-medium];\n }\n\n &.large {\n @apply sm:is-[--bq-dialog--width-large];\n }\n}\n\n/* ----------------------------- Dialog backdrop ---------------------------- */\n\n.bq-dialog::backdrop {\n @apply bg-[--bq-dialog--background-backdrop] opacity-0 transition-[opacity] duration-300 ease-in-out;\n}\n\n.bq-dialog[open]::backdrop {\n @apply opacity-60;\n}\n\n/* ------------------------------ Dialog header ----------------------------- */\n\n.bq-dialog--header {\n @apply sticky flex items-center gap-m inset-bs-0 p-b-[--bq-dialog--padding] p-be-0 p-i-[--bq-dialog--padding];\n}\n\n/* ------------------------------ Dialog footer ----------------------------- */\n\n.bq-dialog--footer {\n @apply sticky flex items-center justify-end gap-xs is-full inset-bs-[100%] p-b-[--bq-dialog--padding] p-bs-0 p-i-[--bq-dialog--padding];\n}\n\n/* --------------------------- Dialog close button -------------------------- */\n\n.bq-dialog--close {\n --bq-radius--m: theme(borderRadius.s);\n --bq-button--small-paddingX: theme(spacing.xs2);\n --bq-button--small-paddingY: theme(spacing.xs2);\n\n &::part(button) {\n @apply border-none;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\n\nimport {\n DIALOG_FOOTER_APPEARANCE,\n DIALOG_SIZE,\n TDialogBorderRadius,\n TDialogFooterAppearance,\n TDialogSize,\n} from './bq-dialog.types';\nimport { enter, hasSlotContent, leave, validatePropValue } from '../../shared/utils';\n\n/**\n * @part body - The `<main>` that holds the dialog body content\n * @part button-close - The button that close the dialog on click\n * @part content - The `<div>` container that holds the dialog title and body content\n * @part dialog - The `<dialog>` wrapper container inside the shadow DOM\n * @part footer - The `<footer>` that holds footer content\n * @part header - The `<header>` that holds the icon, title, description and close button\n * @part title - The `<div>` that holds the title content\n */\n\n@Component({\n tag: 'bq-dialog',\n styleUrl: './scss/bq-dialog.scss',\n shadow: true,\n})\nexport class BqDialog {\n // Own Properties\n // ====================\n\n private dialogElem: HTMLDialogElement;\n private contentElem: HTMLElement;\n private footerElem: HTMLElement;\n private closeSlotElem: HTMLElement;\n private OPEN_CSS_CLASS = 'bq-dialog--open';\n\n // Reference to host HTML element\n // ===================================\n @Element() el!: HTMLBqDialogElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private hasContent = false;\n @State() private hasFooter = false;\n\n // Public Property API\n // ========================\n\n /** Corder radius of the dialog component */\n @Prop({ reflect: true }) border: TDialogBorderRadius = 'm';\n\n /** If true, the backdrop overlay won't be shown when the dialog opens */\n @Prop({ reflect: true }) disableBackdrop = false;\n\n /** If true, the dialog will not close when the [Esc] key is press */\n @Prop({ reflect: true }) disableCloseEscKeydown = false;\n\n /** If true, the dialog will not close when clicking on the backdrop overlay */\n @Prop({ reflect: true }) disableCloseClickOutside = false;\n\n /** The appearance of footer */\n @Prop({ reflect: true }) footerAppearance: TDialogFooterAppearance = 'standard';\n\n /** If true, it hides the close button */\n @Prop({ reflect: true }) hideCloseButton = false;\n\n /** If true, the dialog will be shown as open */\n @Prop({ reflect: true, mutable: true }) open: boolean = false;\n\n /** The size of the dialog */\n @Prop({ reflect: true, mutable: true }) size: TDialogSize = 'medium';\n\n // Prop lifecycle events\n // =======================\n @Watch('footerAppearance')\n @Watch('size')\n checkPropValues() {\n validatePropValue(DIALOG_SIZE, 'large', this.el, 'size');\n validatePropValue(DIALOG_FOOTER_APPEARANCE, 'standard', this.el, 'footerAppearance');\n }\n\n @Watch('open')\n async handleOpenChange() {\n if (this.open) {\n await this.handleOpen();\n return;\n }\n\n await this.handleClose();\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler emitted when the dialog has been canceled or dismissed */\n @Event() bqCancel!: EventEmitter<void>;\n\n /** Callback handler emitted when the dialog will close */\n @Event() bqClose!: EventEmitter<void>;\n\n /** Callback handler emitted when the dialog will open */\n @Event() bqOpen!: EventEmitter<void>;\n\n /** Callback handler emitted when the dialog finish opening */\n @Event() bqAfterOpen!: EventEmitter<void>;\n\n /** Callback handler emitted when the dialog finish closing */\n @Event() bqAfterClose!: EventEmitter<void>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.checkPropValues();\n }\n\n componentDidLoad() {\n this.handleOpenChange();\n this.closeSlotElem = this.el.shadowRoot.querySelector('slot[name=\"button-close\"]');\n this.closeSlotElem?.addEventListener('click', () => this.hide());\n }\n\n disconnectedCallback() {\n this.closeSlotElem?.removeEventListener('click', () => this.hide());\n }\n\n // Listeners\n // ==============\n\n @Listen('mousedown', { target: 'window', capture: true })\n async handleMouseClick(event: MouseEvent) {\n if (!this.open) return;\n if (!this.dialogElem || this.disableCloseClickOutside) return;\n // Skip if the mouse button is not the main button\n if (event.button !== 0) return;\n\n const rect = this.dialogElem.getBoundingClientRect();\n if (\n event.clientY < rect.top ||\n event.clientY > rect.bottom ||\n event.clientX < rect.left ||\n event.clientX > rect.right\n ) {\n await this.cancel();\n }\n }\n\n @Listen('keydown', { target: 'window', capture: true })\n async handleKeyDown(ev: KeyboardEvent) {\n const isEscapeKey = ev.key === 'Escape' || ev.key === 'Esc';\n if (!this.open || !this.dialogElem || !isEscapeKey) return;\n\n if (this.disableCloseEscKeydown) {\n ev.preventDefault();\n return;\n }\n\n await this.cancel();\n }\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n /** Open the dialog */\n @Method()\n async show() {\n const ev = this.bqOpen.emit();\n if (ev.defaultPrevented) return;\n\n this.open = true;\n }\n\n /** Closes the dialog */\n @Method()\n async hide() {\n const ev = this.bqClose.emit();\n if (ev.defaultPrevented) return;\n\n this.open = false;\n }\n\n /** Dismiss or cancel the dialog */\n @Method()\n async cancel() {\n const ev = this.bqCancel.emit();\n if (ev.defaultPrevented) return;\n\n this.open = false;\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleClose = async () => {\n if (!this.dialogElem) return;\n\n await leave(this.dialogElem);\n this.dialogElem.close();\n // Emit bqAfterClose event after the dialog is closed\n this.handleTransitionEnd();\n };\n\n private handleOpen = async () => {\n if (!this.dialogElem) return;\n\n this.el.classList.add(this.OPEN_CSS_CLASS);\n // Show the dialog\n if (this.disableBackdrop) {\n this.dialogElem.show();\n } else {\n this.dialogElem.showModal();\n }\n await enter(this.dialogElem);\n // Emit bqAfterOpen event after the dialog is opened\n this.handleTransitionEnd();\n };\n\n private handleTransitionEnd = () => {\n if (this.open) {\n this.bqAfterOpen.emit();\n return;\n }\n\n this.bqAfterClose.emit();\n this.el.classList.remove(this.OPEN_CSS_CLASS);\n };\n\n private handleContentSlotChange = () => {\n this.hasContent = hasSlotContent(this.contentElem);\n };\n\n private handleFooterSlotChange = () => {\n this.hasFooter = hasSlotContent(this.footerElem, 'footer');\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const style = {\n ...(this.border && { '--bq-dialog--border-radius': `var(--bq-radius--${this.border})` }),\n };\n\n return (\n <dialog\n style={style}\n class={{\n [`bq-dialog hidden ${this.size} m-auto focus-visible:outline-none`]: true,\n 'inset-be-[50%] inset-bs-[50%]': this.disableBackdrop,\n }}\n data-transition-enter=\"transition ease-in duration-300\"\n data-transition-enter-start=\"opacity-0 scale-90\"\n data-transition-enter-end=\"opacity-100 scale-100\"\n data-transition-leave=\"transition ease-out duration-300\"\n data-transition-leave-start=\"opacity-100 scale-100\"\n data-transition-leave-end=\"opacity-0 scale-90\"\n inert={this.open ? undefined : true}\n ref={(dialogElem) => (this.dialogElem = dialogElem)}\n aria-modal=\"true\"\n aria-labelledby=\"bq-dialog--title\"\n part=\"dialog\"\n >\n <main class=\"flex flex-col gap-[--bq-dialog--title-body-gap] overflow-hidden\" part=\"content\">\n <header class=\"bq-dialog--header\" part=\"header\">\n <div id=\"bq-dialog--title\" class=\"bq-dialog--title flex flex-1 items-center justify-between\" part=\"title\">\n <slot name=\"title\" />\n </div>\n <slot name=\"button-close\">\n {!this.hideCloseButton && (\n <bq-button class=\"bq-dialog--close\" appearance=\"text\" size=\"small\">\n <bq-icon class=\"cursor-pointer\" name=\"x\" role=\"img\" title=\"Close\" />\n </bq-button>\n )}\n </slot>\n </header>\n <div\n class={{\n '!hidden': !this.hasContent,\n 'overflow-y-auto p-i-[--bq-dialog--padding]': this.hasContent,\n '!p-be-[--bq-dialog--padding]': !this.hasFooter,\n }}\n ref={(mainElem) => (this.contentElem = mainElem)}\n part=\"body\"\n >\n <slot onSlotchange={this.handleContentSlotChange} />\n </div>\n </main>\n <footer\n class={{\n '!hidden': !this.hasFooter,\n 'bq-dialog--footer': this.hasFooter,\n 'bg-ui-alt !p-b-s': this.footerAppearance === 'highlight',\n }}\n ref={(footerElem) => (this.footerElem = footerElem)}\n part=\"footer\"\n >\n <slot name=\"footer\" onSlotchange={this.handleFooterSlotChange} />\n </footer>\n </dialog>\n );\n }\n}\n"],"mappings":";;;;4KAAO,MAAMA,EAAc,CAAC,QAAS,SAAU,SAGxC,MAAMC,EAA2B,CAAC,WAAY,aCHrD,MAAMC,EAAc,mm0BACpB,MAAAC,EAAeD,E,MCyBFE,EAAQ,M,gOAkBW,M,eACD,M,YAM0B,I,qBAGZ,M,4BAGO,M,8BAGE,M,sBAGiB,W,qBAG1B,M,UAGa,M,UAGI,Q,CA1CpDC,WACAC,YACAC,WACAC,cACAC,eAAiB,kB,wBA4CzB,eAAAC,GACEC,EAAkBX,EAAa,QAASY,KAAKC,GAAI,QACjDF,EAAkBV,EAA0B,WAAYW,KAAKC,GAAI,mB,CAInE,sBAAMC,GACJ,GAAIF,KAAKG,KAAM,OACPH,KAAKI,aACX,M,OAGIJ,KAAKK,a,CAQJC,SAGAC,QAGAC,OAGAC,YAGAC,aAMT,iBAAAC,GACEX,KAAKF,iB,CAGP,gBAAAc,GACEZ,KAAKE,mBACLF,KAAKJ,cAAgBI,KAAKC,GAAGY,WAAWC,cAAc,6BACtDd,KAAKJ,eAAemB,iBAAiB,SAAS,IAAMf,KAAKgB,Q,CAG3D,oBAAAC,GACEjB,KAAKJ,eAAesB,oBAAoB,SAAS,IAAMlB,KAAKgB,Q,CAO9D,sBAAMG,CAAiBC,GACrB,IAAKpB,KAAKG,KAAM,OAChB,IAAKH,KAAKP,YAAcO,KAAKqB,yBAA0B,OAEvD,GAAID,EAAME,SAAW,EAAG,OAExB,MAAMC,EAAOvB,KAAKP,WAAW+B,wBAC7B,GACEJ,EAAMK,QAAUF,EAAKG,KACrBN,EAAMK,QAAUF,EAAKI,QACrBP,EAAMQ,QAAUL,EAAKM,MACrBT,EAAMQ,QAAUL,EAAKO,MACrB,OACM9B,KAAK+B,Q,EAKf,mBAAMC,CAAcC,GAClB,MAAMC,EAAcD,EAAGE,MAAQ,UAAYF,EAAGE,MAAQ,MACtD,IAAKnC,KAAKG,OAASH,KAAKP,aAAeyC,EAAa,OAEpD,GAAIlC,KAAKoC,uBAAwB,CAC/BH,EAAGI,iBACH,M,OAGIrC,KAAK+B,Q,CAYb,UAAMO,GACJ,MAAML,EAAKjC,KAAKQ,OAAO+B,OACvB,GAAIN,EAAGO,iBAAkB,OAEzBxC,KAAKG,KAAO,I,CAKd,UAAMa,GACJ,MAAMiB,EAAKjC,KAAKO,QAAQgC,OACxB,GAAIN,EAAGO,iBAAkB,OAEzBxC,KAAKG,KAAO,K,CAKd,YAAM4B,GACJ,MAAME,EAAKjC,KAAKM,SAASiC,OACzB,GAAIN,EAAGO,iBAAkB,OAEzBxC,KAAKG,KAAO,K,CAQNE,YAAcoC,UACpB,IAAKzC,KAAKP,WAAY,aAEhBiD,EAAM1C,KAAKP,YACjBO,KAAKP,WAAWkD,QAEhB3C,KAAK4C,qBAAqB,EAGpBxC,WAAaqC,UACnB,IAAKzC,KAAKP,WAAY,OAEtBO,KAAKC,GAAG4C,UAAUC,IAAI9C,KAAKH,gBAE3B,GAAIG,KAAK+C,gBAAiB,CACxB/C,KAAKP,WAAW6C,M,KACX,CACLtC,KAAKP,WAAWuD,W,OAEZC,EAAMjD,KAAKP,YAEjBO,KAAK4C,qBAAqB,EAGpBA,oBAAsB,KAC5B,GAAI5C,KAAKG,KAAM,CACbH,KAAKS,YAAY8B,OACjB,M,CAGFvC,KAAKU,aAAa6B,OAClBvC,KAAKC,GAAG4C,UAAUK,OAAOlD,KAAKH,eAAe,EAGvCsD,wBAA0B,KAChCnD,KAAKoD,WAAaC,EAAerD,KAAKN,YAAY,EAG5C4D,uBAAyB,KAC/BtD,KAAKuD,UAAYF,EAAerD,KAAKL,WAAY,SAAS,EAO5D,MAAA6D,GACE,MAAMC,EAAQ,IACRzD,KAAK0D,QAAU,CAAE,6BAA8B,oBAAoB1D,KAAK0D,YAG9E,OACEC,EAAA,UAAAxB,IAAA,2CACEsB,MAAOA,EACPG,MAAO,CACL,CAAC,oBAAoB5D,KAAK6D,0CAA2C,KACrE,gCAAiC7D,KAAK+C,iBACvC,wBACqB,kCAAiC,8BAC3B,qBAAoB,4BACtB,wBAAuB,wBAC3B,mCAAkC,8BAC5B,wBAAuB,4BACzB,qBAC1Be,MAAO9D,KAAKG,KAAO4D,UAAY,KAC/BC,IAAMvE,GAAgBO,KAAKP,WAAaA,EAAW,aACxC,OAAM,kBACD,mBAChBwE,KAAK,UAELN,EAAA,QAAAxB,IAAA,2CAAMyB,MAAM,kEAAkEK,KAAK,WACjFN,EAAA,UAAAxB,IAAA,2CAAQyB,MAAM,oBAAoBK,KAAK,UACrCN,EAAA,OAAAxB,IAAA,2CAAK+B,GAAG,mBAAmBN,MAAM,4DAA4DK,KAAK,SAChGN,EAAA,QAAAxB,IAAA,2CAAMgC,KAAK,WAEbR,EAAA,QAAAxB,IAAA,2CAAMgC,KAAK,iBACPnE,KAAKoE,iBACLT,EAAA,aAAAxB,IAAA,2CAAWyB,MAAM,mBAAmBS,WAAW,OAAOR,KAAK,SACzDF,EAAA,WAAAxB,IAAA,2CAASyB,MAAM,iBAAiBO,KAAK,IAAIG,KAAK,MAAMC,MAAM,aAKlEZ,EAAA,OAAAxB,IAAA,2CACEyB,MAAO,CACL,WAAY5D,KAAKoD,WACjB,6CAA8CpD,KAAKoD,WACnD,gCAAiCpD,KAAKuD,WAExCS,IAAMQ,GAAcxE,KAAKN,YAAc8E,EACvCP,KAAK,QAELN,EAAA,QAAAxB,IAAA,2CAAMsC,aAAczE,KAAKmD,4BAG7BQ,EAAA,UAAAxB,IAAA,2CACEyB,MAAO,CACL,WAAY5D,KAAKuD,UACjB,oBAAqBvD,KAAKuD,UAC1B,mBAAoBvD,KAAK0E,mBAAqB,aAEhDV,IAAMrE,GAAgBK,KAAKL,WAAaA,EACxCsE,KAAK,UAELN,EAAA,QAAAxB,IAAA,2CAAMgC,KAAK,SAASM,aAAczE,KAAKsD,0B","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["bqInputCss","BqInputStyle0","BqInput","helperTextElem","inputElem","labelElem","prefixElem","suffixElem","debounceBqInput","fallbackInputId","internals","handleValueChange","Array","isArray","this","value","hasValue","some","val","length","setFormValue","join","isDefined","bqBlur","bqChange","bqClear","bqFocus","bqInput","componentWillLoad","formResetCallback","isNil","handleClear","handleBlur","disabled","emit","el","handleFocus","handleInput","ev","cancel","isHTMLElement","target","type","Number","debounce","debounceTime","handleChange","undefined","handleClearClick","stopPropagation","focus","handleLabelSlotChange","hasLabel","hasSlotContent","handlePrefixSlotChange","hasPrefix","handleSuffixSlotChange","hasSuffix","handleHelperTextSlotChange","hasHelperText","render","h","key","class","part","name","htmlFor","ref","onSlotchange","validationStatus","spanElem","id","autoCapitalize","autocapitalize","autoComplete","autocomplete","autoCorrect","autocorrect","form","inputMode","inputmode","max","maxLength","maxlength","min","minLength","minlength","pattern","placeholder","readOnly","readonly","required","step","onBlur","onChange","onFocus","onInput","disableClear","appearance","clearButtonLabel","size","onBqClick","exportparts","divElem"],"sources":["../../packages/beeq/src/components/input/scss/bq-input.scss?tag=bq-input&encapsulation=shadow","../../packages/beeq/src/components/input/bq-input.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Input styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-input.variables';\n\n:host {\n @apply block is-full;\n}\n\n/* -------------------------------------------------------------------------- */\n/* Label and Helper text */\n/* -------------------------------------------------------------------------- */\n\n.bq-input--label {\n @apply flex flex-grow items-center m-be-[--bq-input--label-margin-bottom];\n @apply text-[length:--bq-input--label-text-size] text-[color:--bq-input--label-text-color];\n}\n\n.bq-input--helper-text {\n @apply text-[length:--bq-input--helper-text-size] text-[color:--bq-input--helper-text-color] m-bs-[--bq-input--helper-margin-top];\n}\n\n.bq-input--helper-text.validation-error {\n @apply text-danger;\n}\n\n.bq-input--helper-text.validation-success {\n @apply text-success;\n}\n\n.bq-input--helper-text.validation-warning {\n @apply text-warning;\n}\n\n/* -------------------------------------------------------------------------- */\n/* Input group control */\n/* -------------------------------------------------------------------------- */\n\n.bq-input--control {\n @apply flex items-center transition-[border-color,box-shadow] is-full;\n // Border\n @apply rounded-[--bq-input--border-radius] border-[length:--bq-input--border-width] border-[color:--bq-input--border-color];\n // Padding\n @apply pe-[--bq-input--padding-end] ps-[--bq-input--padding-start] p-b-[--bq-input--paddingY];\n // Text\n @apply text-[length:--bq-input--text-size] text-[color:--bq-input--text-color] placeholder:text-[color:--bq-input--text-placeholder-color];\n // Hover\n @apply [&:not(.disabled):not(:focus-within)]:hover:border-hover-brand;\n\n border-style: var(--bq-input--border-style);\n\n // Focus\n &:not(.disabled):focus-within {\n --bq-ring-width: 1px;\n --bq-ring-offset-width: 0;\n --bq-ring-color-focus: var(--bq-input--border-color-focus);\n\n @apply focus border-[color:--bq-input--border-color-focus];\n }\n\n // Enable clear button whenever the input group control is hovered or has focus\n &:not(.disabled):hover,\n &:not(.disabled):focus-within {\n .bq-input--control__clear {\n @apply inline-block;\n }\n }\n}\n\n.bq-input--control.disabled {\n @apply cursor-not-allowed opacity-60;\n}\n\n/* ------------------------------- Validation ------------------------------- */\n\n.bq-input--control.validation-error {\n @apply border-danger [&:not(.disabled):not(:focus-within)]:hover:border-hover-danger;\n\n &:not(.disabled):focus-within {\n --bq-ring-color-focus: theme(stroke.danger);\n\n @apply border-active-danger;\n }\n}\n\n.bq-input--control.validation-success {\n @apply border-success [&:not(.disabled):not(:focus-within)]:hover:border-hover-success;\n\n &:not(.disabled):focus-within {\n --bq-ring-color-focus: theme(stroke.success);\n\n @apply border-active-success;\n }\n}\n\n.bq-input--control.validation-warning {\n @apply border-warning [&:not(.disabled):not(:focus-within)]:hover:border-hover-warning;\n\n &:not(.disabled):focus-within {\n --bq-ring-color-focus: theme(stroke.warning);\n\n @apply border-active-warning;\n }\n}\n\n/* -------------------------------------------------------------------------- */\n/* Native HTML Input */\n/* -------------------------------------------------------------------------- */\n\n.bq-input--control__input {\n @apply flex-auto cursor-inherit appearance-none bg-inherit font-inherit text-[length:inherit] text-inherit;\n @apply border-none min-bs-[--bq-input--icon-size] min-is-0 p-b-0 p-i-0 m-b-0 m-i-0 focus:outline-none focus-visible:outline-none;\n\n box-shadow: none;\n font-weight: inherit;\n}\n\n/* -------------------------------------------------------------------------- */\n/* Clear button */\n/* -------------------------------------------------------------------------- */\n\n.bq-input--control__clear::part(button) {\n // Since the clear button is inside the input group control,\n // we need to reset the focus ring styles\n --bq-ring-width: initial;\n --bq-ring-offset-width: initial;\n --bq-ring-color-focus: initial;\n\n @apply rounded-xs border-none bs-auto p-b-0 p-i-0;\n}\n\n/* -------------------------------------------------------------------------- */\n/* Prefix and suffix */\n/* -------------------------------------------------------------------------- */\n\n.bq-input--control__prefix,\n.bq-input--control__suffix {\n @apply pointer-events-none flex items-center text-[color:--bq-input--text-color];\n}\n\n.bq-input--control__prefix {\n @apply me-[--bq-input--gap];\n}\n\n.bq-input--control__suffix {\n @apply ms-[--bq-input--gap];\n}\n\n/* -------------------------------------------------------------------------- */\n/* Slotted and internal icons */\n/* -------------------------------------------------------------------------- */\n\nbq-icon,\n::slotted(bq-icon) {\n --bq-icon--size: var(--bq-input--icon-size) !important;\n}\n\n/* -------------------------------------------------------------------------- */\n/* Hide webkit clear button */\n/* -------------------------------------------------------------------------- */\n\n/* Remove clear controls from search input */\n\n.bq-input--control__input::-moz-search-cancel {\n @apply hidden appearance-none;\n}\n\n.bq-input--control__input::-webkit-search-decoration,\n.bq-input--control__input::-webkit-search-cancel-button,\n.bq-input--control__input::-webkit-search-results-button,\n.bq-input--control__input::-webkit-search-results-decoration {\n @apply hidden appearance-none;\n}\n\n/* Remove native control extra padding from input date and datetime */\n\n.bq-input--control__input::-webkit-datetime-edit-fields-wrapper,\n.bq-input--control__input::-webkit-datetime-edit,\n.bq-input--control__input::-webkit-datetime-edit-year-field,\n.bq-input--control__input::-webkit-datetime-edit-month-field,\n.bq-input--control__input::-webkit-datetime-edit-day-field,\n.bq-input--control__input::-webkit-datetime-edit-hour-field,\n.bq-input--control__input::-webkit-datetime-edit-minute-field,\n.bq-input--control__input::-webkit-datetime-edit-second-field,\n.bq-input--control__input::-webkit-datetime-edit-millisecond-field,\n.bq-input--control__input::-webkit-datetime-edit-meridiem-field {\n @apply p-b-0 p-i-0;\n}\n","import { AttachInternals, Component, Element, Event, EventEmitter, h, Prop, State, Watch } from '@stencil/core';\n\nimport { TInputType, TInputValidation, TInputValue } from './bq-input.types';\nimport { debounce, hasSlotContent, isDefined, isHTMLElement, isNil, TDebounce } from '../../shared/utils';\n\n/**\n * @part base - The component's base wrapper.\n * @part button - The native HTML button used under the hood in the clear button.\n * @part clear-btn - The clear button.\n * @part control - The input control wrapper.\n * @part helper-text - The helper text slot container.\n * @part label - The label slot container.\n * @part input - The native HTML input element used under the hood.\n * @part prefix - The prefix slot container.\n * @part suffix - The suffix slot container.\n */\n@Component({\n tag: 'bq-input',\n styleUrl: './scss/bq-input.scss',\n formAssociated: true,\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class BqInput {\n // Own Properties\n // ====================\n\n private helperTextElem?: HTMLElement;\n private inputElem?: HTMLInputElement;\n private labelElem?: HTMLElement;\n private prefixElem?: HTMLElement;\n private suffixElem?: HTMLElement;\n\n private debounceBqInput: TDebounce<void>;\n private fallbackInputId = 'input';\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqInputElement;\n @AttachInternals() internals!: ElementInternals;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() hasHelperText = false;\n @State() hasLabel = false;\n @State() hasPrefix = false;\n @State() hasSuffix = false;\n @State() hasValue = false;\n\n // Public Property API\n // ========================\n\n /**\n * Controls whether or not the input field should be capitalized and how.\n * Possible values are 'off', 'none', 'on', 'sentences', 'words', and 'characters'.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize\n */\n @Prop({ reflect: true }) autocapitalize: string = 'off';\n\n /**\n * Specifies whether or not the input field should have autocomplete enabled.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values\n */\n @Prop({ reflect: true }) autocomplete: string = 'off';\n\n /**\n * Controls whether or not the input field should have autocorrect enabled.\n * Possible values are 'on' and 'off'.\n */\n @Prop({ reflect: true }) autocorrect: 'on' | 'off' = 'off';\n\n /** If true, the input will be focused on component render */\n @Prop({ reflect: true }) autofocus: boolean;\n\n /** The clear button aria label */\n @Prop({ reflect: true }) clearButtonLabel? = 'Clear value';\n\n /**\n * The amount of time, in milliseconds, to wait before emitting the `bqInput` event after the input value changes.\n * A value of 0 means no debouncing will occur.\n */\n @Prop({ reflect: true, mutable: true }) debounceTime? = 0;\n\n /**\n * Indicates whether the input is disabled or not.\n * If `true`, the input is disabled and cannot be interacted with.\n */\n @Prop({ mutable: true }) disabled?: boolean = false;\n\n /** If true, the clear button won't be displayed */\n @Prop({ reflect: true }) disableClear? = false;\n\n /** The ID of the form that the input field belongs to. */\n @Prop({ reflect: true }) form?: string;\n\n /**\n * The inputmode attribute specifies what kind of input mechanism would be most helpful for users entering content into the input field.\n * This allows a browser to display an appropriate virtual keyboard while editing.\n * Possible values are 'none', 'text', 'decimal', 'numeric', 'tel', 'search', 'email', 'url', and 'date'.\n */\n @Prop() inputmode?: string;\n\n /**\n * The maximum value that the input field can accept.\n * Only applies to date and number input types.\n */\n @Prop({ reflect: true }) max?: number | string;\n\n /** The maximum number of characters that the input field can accept. */\n @Prop({ reflect: true }) maxlength: number;\n\n /**\n * The minimum value that the input field can accept.\n * Only applies to date and number input types.\n */\n @Prop({ reflect: true }) min?: number | string;\n\n /** The minimum number of characters that the input field can accept. */\n @Prop({ reflect: true }) minlength: number;\n\n /** The input field name. */\n @Prop({ reflect: true }) name!: string;\n\n /**\n * Specifies a regular expression the form control's value should match.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern\n */\n @Prop({ reflect: true }) pattern?: string;\n\n /** The input placeholder text value */\n @Prop({ reflect: true }) placeholder?: string;\n\n /** If true, the input field cannot be modified. */\n @Prop({ reflect: true }) readonly?: boolean;\n\n /** Indicates whether or not the input field is required to be filled out before submitting the form. */\n @Prop({ reflect: true }) required?: boolean;\n\n /**\n * A number that specifies the granularity that the value must adhere to.\n * Valid for date, month, week, time, datetime-local, number, and range.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step\n */\n @Prop({ reflect: true }) step: number | 'any';\n\n /**\n * The type attribute specifies the type of input field to display.\n * Possible values are 'text', 'password', 'email', 'number', 'tel', 'search', 'url', and more.\n * See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types\n */\n @Prop({ reflect: true }) type: TInputType = 'text';\n\n /**\n * The validation status of the input.\n *\n * @remarks\n * This property is used to indicate the validation status of the input. It can be set to one of the following values:\n * - `'none'`: No validation status is set.\n * - `'error'`: The input has a validation error.\n * - `'warning'`: The input has a validation warning.\n * - `'success'`: The input has passed validation.\n */\n @Prop({ reflect: true }) validationStatus: TInputValidation = 'none';\n\n /** The input value, it can be used to reset the input to a previous value */\n @Prop({ reflect: true, mutable: true }) value: TInputValue;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('value')\n handleValueChange() {\n if (Array.isArray(this.value)) {\n this.hasValue = this.value.some((val) => val.length > 0);\n this.internals.setFormValue(this.value.join(','));\n return;\n }\n\n this.hasValue = isDefined(this.value);\n this.internals.setFormValue(`${this.value}`);\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler emitted when the input loses focus */\n @Event() bqBlur!: EventEmitter<HTMLBqInputElement>;\n\n /**\n * Callback handler emitted when the input value has changed and the input loses focus.\n * This handler is called whenever the user finishes typing or pasting text into the input field and then clicks outside of the input field.\n */\n @Event() bqChange!: EventEmitter<{ value: string | number | string[]; el: HTMLBqInputElement }>;\n\n /** Callback handler emitted when the input value has been cleared */\n @Event() bqClear!: EventEmitter<HTMLBqInputElement>;\n\n /** Callback handler emitted when the input has received focus */\n @Event() bqFocus!: EventEmitter<HTMLBqInputElement>;\n\n /**\n * Callback handler emitted when the input value changes.\n * This handler is called whenever the user types or pastes text into the input field.\n */\n @Event() bqInput!: EventEmitter<{ value: string | number | string[]; el: HTMLBqInputElement }>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.handleValueChange();\n }\n\n formResetCallback() {\n if (isNil(this.value)) return;\n\n this.handleClear();\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleBlur = () => {\n if (this.disabled) return;\n\n this.bqBlur.emit(this.el);\n };\n\n private handleFocus = () => {\n if (this.disabled) return;\n\n this.bqFocus.emit(this.el);\n };\n\n private handleInput = (ev: Event) => {\n if (this.disabled) return;\n\n this.debounceBqInput?.cancel();\n\n if (!isHTMLElement(ev.target, 'input')) return;\n this.value = this.type === 'number' ? Number(ev.target.value) : ev.target.value;\n this.internals.setFormValue(`${this.value}`);\n\n this.debounceBqInput = debounce(() => {\n this.bqInput.emit({ value: this.value, el: this.el });\n }, this.debounceTime);\n this.debounceBqInput();\n };\n\n private handleChange = (ev: Event) => {\n if (this.disabled) return;\n\n if (!isHTMLElement(ev.target, 'input')) return;\n this.value = this.type === 'number' ? Number(ev.target.value) : ev.target.value;\n this.internals.setFormValue(`${this.value}`);\n\n this.bqChange.emit({ value: this.value, el: this.el });\n };\n\n private handleClear = () => {\n if (this.disabled) return;\n\n const { inputElem, internals } = this;\n\n // Clear input element value\n inputElem.value = '';\n this.value = inputElem.value;\n\n // Update associated form control value\n internals.setFormValue(undefined);\n };\n\n private handleClearClick = (ev: CustomEvent) => {\n ev.stopPropagation();\n this.handleClear();\n\n const { bqClear, bqChange, bqInput, el, inputElem } = this;\n // Emit events\n bqClear.emit(el);\n bqInput.emit({ value: this.value, el });\n bqChange.emit({ value: this.value, el });\n // Refocus input element\n inputElem.focus();\n };\n\n private handleLabelSlotChange = () => {\n this.hasLabel = hasSlotContent(this.labelElem);\n };\n\n private handlePrefixSlotChange = () => {\n this.hasPrefix = hasSlotContent(this.prefixElem);\n };\n\n private handleSuffixSlotChange = () => {\n this.hasSuffix = hasSlotContent(this.suffixElem);\n };\n\n private handleHelperTextSlotChange = () => {\n this.hasHelperText = hasSlotContent(this.helperTextElem);\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div class=\"bq-input\" part=\"base\">\n {/* Label */}\n <label\n class={{ 'bq-input--label': true, '!hidden': !this.hasLabel }}\n aria-label={this.name || this.fallbackInputId}\n htmlFor={this.name || this.fallbackInputId}\n ref={(labelElem) => (this.labelElem = labelElem)}\n part=\"label\"\n >\n <slot name=\"label\" onSlotchange={this.handleLabelSlotChange} />\n </label>\n {/* Input control group */}\n <div\n class={{\n 'bq-input--control': true,\n [`validation-${this.validationStatus}`]: true,\n disabled: this.disabled,\n }}\n part=\"control\"\n >\n {/* Prefix */}\n <span\n class={{ 'bq-input--control__prefix': true, '!hidden': !this.hasPrefix }}\n ref={(spanElem) => (this.prefixElem = spanElem)}\n part=\"prefix\"\n >\n <slot name=\"prefix\" onSlotchange={this.handlePrefixSlotChange} />\n </span>\n {/* HTML Input */}\n <input\n id={this.name || this.fallbackInputId}\n class=\"bq-input--control__input\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n autoCapitalize={this.autocapitalize}\n autoComplete={this.autocomplete}\n autoCorrect={this.autocorrect}\n disabled={this.disabled}\n form={this.form}\n inputMode={this.inputmode}\n max={this.max}\n maxLength={this.maxlength}\n min={this.min}\n minLength={this.minlength}\n name={this.name}\n pattern={this.pattern}\n placeholder={this.placeholder}\n ref={(inputElem) => (this.inputElem = inputElem)}\n readOnly={this.readonly}\n required={this.required}\n step={this.step}\n type={this.type}\n value={this.value}\n part=\"input\"\n // Events\n onBlur={this.handleBlur}\n onChange={this.handleChange}\n onFocus={this.handleFocus}\n onInput={this.handleInput}\n />\n {/* Clear Button */}\n {this.hasValue && !this.disabled && !this.disableClear && (\n // The clear button will be visible as long as the input has a value\n // and the parent group is hovered or has focus-within\n <bq-button\n class=\"bq-input--control__clear ms-[--bq-input--gap] hidden\"\n appearance=\"text\"\n aria-label={this.clearButtonLabel}\n size=\"small\"\n onBqClick={this.handleClearClick}\n part=\"clear-btn\"\n exportparts=\"button\"\n >\n <slot name=\"clear-icon\">\n <bq-icon name=\"x-circle\" class=\"flex\" />\n </slot>\n </bq-button>\n )}\n {/* Suffix */}\n <span\n class={{ 'bq-input--control__suffix': true, '!hidden': !this.hasSuffix }}\n ref={(spanElem) => (this.suffixElem = spanElem)}\n part=\"suffix\"\n >\n <slot name=\"suffix\" onSlotchange={this.handleSuffixSlotChange} />\n </span>\n </div>\n {/* Helper text */}\n <div\n class={{\n [`bq-input--helper-text validation-${this.validationStatus}`]: true,\n '!hidden': !this.hasHelperText,\n }}\n ref={(divElem) => (this.helperTextElem = divElem)}\n part=\"helper-text\"\n >\n <slot name=\"helper-text\" onSlotchange={this.handleHelperTextSlotChange} />\n </div>\n </div>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["bqTabCss","BqTabStyle0","BqTab","buttonElement","iconElement","checkPropValues","validatePropValue","TAB_SIZE","this","el","TAB_ORIENTATION","TAB_PLACEMENT","bqClick","bqFocus","bqBlur","bqKeyDown","componentWillLoad","vClick","click","vFocus","focus","vBlur","blur","enableFocus","value","tabIndex","handleClick","active","emit","handleOnFocus","handleOnBlur","handleOnKeyDown","event","handleIconSlotChange","hasIcon","hasSlotContent","tabindex","render","h","key","ref","class","size","orientation","placement","id","tabId","onBlur","onClick","onFocus","onKeyDown","disabled","role","controls","part","span","name","onSlotchange"],"sources":["../../packages/beeq/src/components/tab/scss/bq-tab.scss?tag=bq-tab&encapsulation=shadow","../../packages/beeq/src/components/tab/bq-tab.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Tab styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-tab.variables';\n\n:host {\n @apply inline-block;\n}\n\n.bq-tab {\n @apply relative flex cursor-pointer items-center justify-center rounded-s disabled:cursor-not-allowed disabled:opacity-60;\n @apply text-[length:--bq-tab--font-size] font-[--bq-tab--font-weight] leading-[--bq-tab--line-height] [&:not([disabled])]:hover:bg-hover-ui-primary [&:not([disabled])]:hover:text-hover-brand;\n @apply border-0 bg-transparent focus-visible:focus;\n @apply transition-[color,background-color,border-color,box-shadow] duration-300;\n\n &::after {\n @apply absolute z-[1] block bg-brand opacity-0 content-empty -inset-be-1;\n @apply transition-opacity duration-300 ease-linear;\n }\n\n &--horizontal-start,\n &--horizontal-end {\n &::after {\n /**\n * This hack will make the underline larger so it fits till the tab bar edges for the first and last tab button,\n * because the parent container applies some padding to not cut the focus outline style.\n */\n @apply -start-xs3 bs-[2px] is-[calc(100%_+_var(--bq-spacing-xs2))];\n }\n }\n\n &--vertical-start {\n @apply justify-end is-full;\n\n &::after {\n @apply -end-xs2 bs-[calc(100%_+_var(--bq-spacing-xs2))] is-[2px];\n }\n }\n\n &--vertical-end {\n @apply justify-start is-full;\n\n &::after {\n @apply -start-xs2 bs-[calc(100%_+_var(--bq-spacing-xs2))] is-[2px];\n }\n }\n\n &[aria-selected='true']::after {\n @apply opacity-100;\n }\n\n &--small {\n @apply p-b-[--bq-tab--padding-vertical-small] p-i-[--bq-tab--padding-horizontal-small];\n\n ::slotted(bq-icon) {\n --bq-icon--size: var(--bq-tab--icon-size-small) #{!important};\n }\n }\n\n &--medium {\n @apply p-b-[--bq-tab--padding-vertical-medium] p-i-[--bq-tab--padding-horizontal-medium];\n\n ::slotted(bq-icon) {\n --bq-icon--size: var(--bq-tab--icon-size-medium) #{!important};\n }\n }\n\n &--large {\n @apply text-l p-b-[--bq-tab--padding-vertical-large] p-i-[--bq-tab--padding-horizontal-large];\n\n ::slotted(bq-icon) {\n --bq-icon--size: var(--bq-tab--icon-size-large) #{!important};\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\n\nimport { TAB_ORIENTATION, TAB_PLACEMENT, TAB_SIZE, TTabOrientation, TTabPlacement, TTabSize } from './bq-tab.types';\nimport { hasSlotContent, validatePropValue } from '../../shared/utils';\n\n/**\n * @part base - The HTML button used under the hood.\n * @part content - The HTML `<div>` element that holds the content.\n * @part icon - The HTML `<div>` element that holds the icon content.\n * @part text - The HTML `<div>` element that holds the text content.\n * @part underline - The HTML `<div>` element that display active state.\n */\n@Component({\n tag: 'bq-tab',\n styleUrl: './scss/bq-tab.scss',\n shadow: true,\n})\nexport class BqTab {\n // Own Properties\n // ====================\n\n private buttonElement: HTMLButtonElement;\n private iconElement: HTMLSpanElement;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqTabElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() tabIndex: number | null = null;\n @State() hasIcon: boolean = false;\n\n // Public Property API\n // ========================\n\n /** If true tab is active */\n @Prop({ reflect: true, mutable: true }) active?: boolean;\n\n /** If true tab is disabled */\n @Prop({ reflect: true }) disabled = false;\n\n /** The size of the tab */\n @Prop({ reflect: true }) size: TTabSize = 'medium';\n\n /** The direction that tab should be render */\n @Prop({ reflect: true }) orientation?: TTabOrientation = 'horizontal';\n\n /** The placement that tab should be render */\n @Prop({ reflect: true }) placement?: TTabPlacement = 'start';\n\n /** The id of the tab */\n @Prop({ reflect: true }) tabId!: string;\n\n /** The tab panel id that the tab controls */\n @Prop({ reflect: true }) controls!: string;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('size')\n @Watch('orientation')\n @Watch('placement')\n checkPropValues() {\n validatePropValue(TAB_SIZE, 'medium', this.el, 'size');\n validatePropValue(TAB_ORIENTATION, 'horizontal', this.el, 'orientation');\n validatePropValue(TAB_PLACEMENT, 'start', this.el, 'placement');\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Handler to be called when the tab state changes */\n @Event() bqClick: EventEmitter<HTMLBqTabElement>;\n\n /** Handler to be called when the tab gets focus */\n @Event() bqFocus: EventEmitter<HTMLBqTabElement>;\n\n /** Handler to be called when the tab loses focus */\n @Event() bqBlur: EventEmitter<HTMLBqTabElement>;\n\n /** Handler to be called when the tab key is pressed */\n @Event() bqKeyDown: EventEmitter<KeyboardEvent>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.checkPropValues();\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n /**\n * Simulate a click event on the native `<button>` HTML element used under the hood.\n * Use this method instead of the global `element.click()`.\n */\n @Method()\n async vClick() {\n this.buttonElement?.click();\n }\n\n /**\n * Sets focus on the native `<button>` HTML element used under the hood.\n * Use this method instead of the global `element.focus()`.\n */\n @Method()\n async vFocus() {\n this.buttonElement?.focus();\n }\n\n /**\n * Remove focus from the native `<button>` HTML element used under the hood.\n * Use this method instead of the global `element.blur()`.\n */\n @Method()\n async vBlur() {\n this.buttonElement?.blur();\n }\n\n /**\n * Sets tabindex on the native `<button>` HTML element used under the hood.\n * This method is used inside `<bq-tab-group>` to make tab focusable after the active one is focused\n */\n @Method()\n async enableFocus(value: boolean) {\n this.tabIndex = value ? 0 : null;\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleClick = () => {\n this.active = true;\n this.bqClick.emit(this.el);\n };\n\n private handleOnFocus = () => {\n this.bqFocus.emit(this.el);\n };\n\n private handleOnBlur = () => {\n this.bqBlur.emit(this.el);\n };\n\n private handleOnKeyDown = (event: KeyboardEvent) => {\n this.bqKeyDown.emit(event);\n };\n\n private handleIconSlotChange = () => {\n this.hasIcon = hasSlotContent(this.iconElement, 'icon');\n };\n\n private get tabindex(): string {\n // NOTE: this.active is undefined when is not part of bq-tab-group\n return `${this.tabIndex ?? -1 + +(this.active ?? 1)}`;\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <button\n ref={(el) => (this.buttonElement = el)}\n class={{\n [`bq-tab bq-tab--${this.size} bq-tab--${this.orientation}-${this.placement}`]: true,\n 'text-brand': this.active,\n 'text-primary': !this.active,\n }}\n id={this.tabId}\n onBlur={this.handleOnBlur}\n onClick={this.handleClick}\n onFocus={this.handleOnFocus}\n onKeyDown={this.handleOnKeyDown}\n disabled={this.disabled}\n role=\"tab\"\n aria-controls={this.controls}\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-selected={this.active ? 'true' : 'false'}\n tabindex={this.tabindex}\n part=\"base\"\n >\n <div class=\"flex items-center justify-center\" part=\"content\">\n <div class=\"flex\" ref={(span: HTMLSpanElement) => (this.iconElement = span)} part=\"icon\">\n <slot name=\"icon\" onSlotchange={this.handleIconSlotChange} />\n </div>\n <div class={{ 'line-clamp-1': true, 'ms-[--bq-tab--label-icon-gap]': this.hasIcon }} part=\"text\">\n <slot />\n </div>\n </div>\n </button>\n );\n }\n}\n"],"mappings":";;;;mLAAA,MAAMA,EAAW,m/xBACjB,MAAAC,EAAeD,E,MCgBFE,EAAK,M,6KAgBmB,K,aACP,M,oCASQ,M,UAGM,S,iBAGe,a,eAGJ,Q,6CA/B7CC,cACAC,Y,wBA4CR,eAAAC,GACEC,EAAkBC,EAAU,SAAUC,KAAKC,GAAI,QAC/CH,EAAkBI,EAAiB,aAAcF,KAAKC,GAAI,eAC1DH,EAAkBK,EAAe,QAASH,KAAKC,GAAI,Y,CAQ5CG,QAGAC,QAGAC,OAGAC,UAMT,iBAAAC,GACER,KAAKH,iB,CAiBP,YAAMY,GACJT,KAAKL,eAAee,O,CAQtB,YAAMC,GACJX,KAAKL,eAAeiB,O,CAQtB,WAAMC,GACJb,KAAKL,eAAemB,M,CAQtB,iBAAMC,CAAYC,GAChBhB,KAAKiB,SAAWD,EAAQ,EAAI,I,CAQtBE,YAAc,KACpBlB,KAAKmB,OAAS,KACdnB,KAAKI,QAAQgB,KAAKpB,KAAKC,GAAG,EAGpBoB,cAAgB,KACtBrB,KAAKK,QAAQe,KAAKpB,KAAKC,GAAG,EAGpBqB,aAAe,KACrBtB,KAAKM,OAAOc,KAAKpB,KAAKC,GAAG,EAGnBsB,gBAAmBC,IACzBxB,KAAKO,UAAUa,KAAKI,EAAM,EAGpBC,qBAAuB,KAC7BzB,KAAK0B,QAAUC,EAAe3B,KAAKJ,YAAa,OAAO,EAGzD,YAAYgC,GAEV,MAAO,GAAG5B,KAAKiB,WAAa,KAAMjB,KAAKmB,QAAU,I,CAOnD,MAAAU,GACE,OACEC,EAAA,UAAAC,IAAA,2CACEC,IAAM/B,GAAQD,KAAKL,cAAgBM,EACnCgC,MAAO,CACL,CAAC,kBAAkBjC,KAAKkC,gBAAgBlC,KAAKmC,eAAenC,KAAKoC,aAAc,KAC/E,aAAcpC,KAAKmB,OACnB,gBAAiBnB,KAAKmB,QAExBkB,GAAIrC,KAAKsC,MACTC,OAAQvC,KAAKsB,aACbkB,QAASxC,KAAKkB,YACduB,QAASzC,KAAKqB,cACdqB,UAAW1C,KAAKuB,gBAChBoB,SAAU3C,KAAK2C,SACfC,KAAK,MAAK,gBACK5C,KAAK6C,SAAQ,gBACb7C,KAAK2C,SAAW,OAAS,QAAO,gBAChC3C,KAAKmB,OAAS,OAAS,QACtCS,SAAU5B,KAAK4B,SACfkB,KAAK,QAELhB,EAAA,OAAAC,IAAA,2CAAKE,MAAM,mCAAmCa,KAAK,WACjDhB,EAAA,OAAAC,IAAA,2CAAKE,MAAM,OAAOD,IAAMe,GAA2B/C,KAAKJ,YAAcmD,EAAOD,KAAK,QAChFhB,EAAA,QAAAC,IAAA,2CAAMiB,KAAK,OAAOC,aAAcjD,KAAKyB,wBAEvCK,EAAA,OAAAC,IAAA,2CAAKE,MAAO,CAAE,eAAgB,KAAM,gCAAiCjC,KAAK0B,SAAWoB,KAAK,QACxFhB,EAAA,QAAAC,IAAA,+C","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["BADGE_SIZE","bqBadgeCss","BqBadgeStyle0","BqBadge","spanElement","observer","MutationObserver","mutations","mutation","this","contentLength","target","textContent","length","handleSizePropChange","validatePropValue","el","componentWillLoad","disconnectedCallback","disconnect","onSlotChange","slot","isNil","getTextContent","recurse","node","assignedNodes","flatten","takeRecords","observe","characterData","childList","subtree","querySelector","render","styles","backgroundColor","getColorCSSVariable","textColor","h","Host","key","style","class","size","digit","part","ref","element","onSlotchange"],"sources":["../../packages/beeq/src/components/badge/bq-badge.types.ts","../../packages/beeq/src/components/badge/scss/bq-badge.scss?tag=bq-badge&encapsulation=shadow","../../packages/beeq/src/components/badge/bq-badge.tsx"],"sourcesContent":["export const BADGE_SIZE = ['small', 'medium'] as const;\nexport type TBadgeSize = (typeof BADGE_SIZE)[number];\n","/* -------------------------------------------------------------------------- */\n/* Badge styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-badge.variables';\n\n:host {\n @apply inline-block;\n}\n\n.bq-badge {\n @apply flex items-center justify-center bg-[color:--bq-badge--background-color] text-[color:--bq-badge--text-color];\n @apply rounded-[--bq-badge--border-radius] border-[length:--bq-badge--border-width] border-[color:--bq-badge--border-color];\n\n border-style: var(--bq-badge--border-style);\n box-shadow: var(--bq-badge--box-shadow);\n}\n\n.size {\n &--small {\n @apply bs-[--bq-badge--size-small] is-[--bq-badge--size-small];\n }\n\n &--medium {\n @apply bs-[--bq-badge--size-medium] is-[--bq-badge--size-medium];\n }\n}\n\n.digit {\n @apply min-bs-[--bq-badge--size-large] min-is-[--bq-badge--size-large];\n}\n","import { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { BADGE_SIZE, TBadgeSize } from './bq-badge.types';\nimport { getColorCSSVariable, getTextContent, isNil, validatePropValue } from '../../shared/utils';\n\n/**\n * @part base - The component's internal wrapper that holds the count.\n * @part number - The component's internal wrapper that holds the slot.\n */\n@Component({\n tag: 'bq-badge',\n styleUrl: './scss/bq-badge.scss',\n shadow: true,\n})\nexport class BqBadge {\n // Own Properties\n // ====================\n\n private spanElement?: HTMLSpanElement;\n\n private observer: MutationObserver = new MutationObserver((mutations) => {\n const [mutation] = mutations;\n this.contentLength = mutation.target.textContent.length;\n });\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el: HTMLBqBadgeElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private contentLength = 0;\n\n // Public Property API\n // ========================\n\n /** Badge background color. The value should be a valid value of the palette color */\n @Prop({ mutable: true, reflect: true }) backgroundColor? = 'ui--danger';\n\n /** Badge number color. The value should be a valid value of the palette color */\n @Prop({ mutable: true, reflect: true }) textColor? = 'text--inverse';\n\n /** The size of the badge. Relevant if badge has no content. */\n @Prop({ reflect: true, mutable: true }) size?: TBadgeSize = 'small';\n\n // Prop lifecycle events\n // =======================\n\n @Watch('size')\n handleSizePropChange() {\n validatePropValue(BADGE_SIZE, 'small', this.el, 'size');\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.handleSizePropChange();\n }\n\n disconnectedCallback() {\n this.observer?.disconnect();\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private onSlotChange = () => {\n const slot = this.slot;\n\n if (isNil(slot)) return;\n\n this.contentLength = getTextContent(slot, { recurse: true }).length;\n const [node] = slot.assignedNodes({ flatten: true });\n\n if (isNil(node)) {\n this.observer.takeRecords();\n return;\n }\n\n this.observer.observe(node, {\n characterData: true,\n childList: true,\n subtree: true,\n });\n };\n\n private get slot(): HTMLSlotElement | null {\n return this.spanElement?.querySelector('slot') ?? null;\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const styles = {\n ...(this.backgroundColor && { '--bq-badge--background-color': getColorCSSVariable(this.backgroundColor) }),\n ...(this.textColor && { '--bq-badge--text-color': getColorCSSVariable(this.textColor) }),\n };\n\n return (\n <Host style={styles}>\n <div\n class={{\n 'bq-badge': true,\n [`size--${this.size}`]: this.contentLength === 0,\n digit: this.contentLength > 0,\n 'p-i-xs2': this.contentLength > 1,\n }}\n part=\"base\"\n >\n <span ref={(element) => (this.spanElement = element)} class=\"text-xs font-bold leading-small\" part=\"number\">\n <slot onSlotchange={this.onSlotChange}></slot>\n </span>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":";;;;yMAAO,MAAMA,EAAa,CAAC,QAAS,UCApC,MAAMC,EAAa,q6pBACnB,MAAAC,EAAeD,E,MCaFE,EAAO,M,4CAoBe,E,qBAM0B,a,eAGN,gB,UAGO,O,CA5BpDC,YAEAC,SAA6B,IAAIC,kBAAkBC,IACzD,MAAOC,GAAYD,EACnBE,KAAKC,cAAgBF,EAASG,OAAOC,YAAYC,MAAM,I,wBA8BzD,oBAAAC,GACEC,EAAkBf,EAAY,QAASS,KAAKO,GAAI,O,CAWlD,iBAAAC,GACER,KAAKK,sB,CAGP,oBAAAI,GACET,KAAKJ,UAAUc,Y,CAkBTC,aAAe,KACrB,MAAMC,EAAOZ,KAAKY,KAElB,GAAIC,EAAMD,GAAO,OAEjBZ,KAAKC,cAAgBa,EAAeF,EAAM,CAAEG,QAAS,OAAQX,OAC7D,MAAOY,GAAQJ,EAAKK,cAAc,CAAEC,QAAS,OAE7C,GAAIL,EAAMG,GAAO,CACfhB,KAAKJ,SAASuB,cACd,M,CAGFnB,KAAKJ,SAASwB,QAAQJ,EAAM,CAC1BK,cAAe,KACfC,UAAW,KACXC,QAAS,MACT,EAGJ,QAAYX,GACV,OAAOZ,KAAKL,aAAa6B,cAAc,SAAW,I,CAOpD,MAAAC,GACE,MAAMC,EAAS,IACT1B,KAAK2B,iBAAmB,CAAE,+BAAgCC,EAAoB5B,KAAK2B,qBACnF3B,KAAK6B,WAAa,CAAE,yBAA0BD,EAAoB5B,KAAK6B,aAG7E,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOP,GACXI,EAAA,OAAAE,IAAA,2CACEE,MAAO,CACL,WAAY,KACZ,CAAC,SAASlC,KAAKmC,QAASnC,KAAKC,gBAAkB,EAC/CmC,MAAOpC,KAAKC,cAAgB,EAC5B,UAAWD,KAAKC,cAAgB,GAElCoC,KAAK,QAELP,EAAA,QAAAE,IAAA,2CAAMM,IAAMC,GAAavC,KAAKL,YAAc4C,EAAUL,MAAM,kCAAkCG,KAAK,UACjGP,EAAA,QAAAE,IAAA,2CAAMQ,aAAcxC,KAAKW,iB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DIVIDER_ORIENTATION","DIVIDER_ORIENTATION_ENUM","HORIZONTAL","VERTICAL","DIVIDER_TITLE_ALIGNMENT","DIVIDER_STROKE_LINECAP","bqDividerCss","BqDividerStyle0","BqDivider","titleElem","checkPropValues","validatePropValue","this","el","connectedCallback","componentWillLoad","componentDidLoad","handleSlotChange","hasTitle","hasSlotContent","getTextContent","querySelector","strokeAttributes","strokeDrawPositions","dashed","strokeDasharray","strokeLinecap","strokeThickness","drawOffset","x1","x2","y1","y2","orientationMap","Map","Object","entries","get","orientation","strokeDashWidth","strokeDashGap","render","styles","strokeColor","getColorCSSVariable","isNil","strokeBasis","h","Host","key","style","class","titleAlignment","part","ref","div","role","onSlotchange"],"sources":["../../packages/beeq/src/components/divider/bq-divider.types.ts","../../packages/beeq/src/components/divider/scss/bq-divider.scss?tag=bq-divider&encapsulation=shadow","../../packages/beeq/src/components/divider/bq-divider.tsx"],"sourcesContent":["export const DIVIDER_ORIENTATION = ['horizontal', 'vertical'] as const;\nexport type TDividerOrientation = (typeof DIVIDER_ORIENTATION)[number];\n\nexport const DIVIDER_ORIENTATION_ENUM = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n} as const;\n\nexport const DIVIDER_TITLE_ALIGNMENT = ['start', 'middle', 'end'] as const;\nexport type TDividerTitleAlignment = (typeof DIVIDER_TITLE_ALIGNMENT)[number];\n\nexport const DIVIDER_STROKE_LINECAP = ['square', 'round', 'butt'] as const;\nexport type TDividerStrokeLinecap = (typeof DIVIDER_STROKE_LINECAP)[number];\n","/* -------------------------------------------------------------------------- */\n/* Button styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-divider.variables';\n\n:host {\n @apply block is-full;\n}\n\n:host([orientation='vertical']) {\n @apply flex bs-full;\n}\n\n.bq-divider {\n @apply flex items-center gap-[--bq-divider--title-marginX];\n}\n\n.bq-divider--stroke {\n @apply flex-grow stroke-[color:--bq-divider--stroke-color] bs-[--bq-divider--stroke-thickness] is-full;\n\n &.end {\n @apply rotate-180;\n }\n}\n\n.bq-divider--title__start .bq-divider--stroke.start,\n.bq-divider--title__end .bq-divider--stroke.end {\n @apply flex-grow-0 basis-[--bq-divider--stroke-basis];\n}\n\n.bq-divider--vertical {\n @apply flex-col items-center gap-[--bq-divider--title-marginX] is-full;\n\n .bq-divider--stroke {\n @apply bs-full is-[--bq-divider--stroke-thickness];\n }\n}\n","import { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport {\n DIVIDER_ORIENTATION,\n DIVIDER_ORIENTATION_ENUM,\n DIVIDER_STROKE_LINECAP,\n DIVIDER_TITLE_ALIGNMENT,\n TDividerOrientation,\n TDividerStrokeLinecap,\n TDividerTitleAlignment,\n} from './bq-divider.types';\nimport { getColorCSSVariable, getTextContent, hasSlotContent, isNil, validatePropValue } from '../../shared/utils';\n\n/**\n * @part base - The component's internal wrapper.\n * @part dash-start - The component's internal svg wrapper for the start line of the divider's stroke\n * @part dash-end - The component's internal svg wrapper for the end line of the divider's stroke\n * @part dash-start-line - The component's internal line component of the divider's stroke\n * @part dash-end-line - The component's internal line component of the divider's stroke\n */\n@Component({\n tag: 'bq-divider',\n styleUrl: './scss/bq-divider.scss',\n shadow: true,\n})\nexport class BqDivider {\n // Own Properties\n // ====================\n\n private titleElem: HTMLDivElement;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqDividerElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private hasTitle: boolean;\n\n // Public Property API\n // ========================\n\n /** If true, the divider has a dashed pattern */\n @Prop() dashed = false;\n\n /** The default orientation of the divider */\n @Prop({ reflect: true }) orientation: TDividerOrientation = 'horizontal';\n\n /** Set the stroke color of the divider. The value should be a valid value of the palette color */\n @Prop({ reflect: true }) strokeColor?: string = 'stroke--primary';\n\n /** Set the alignment of the title on the main axis of the divider (horizontal / vertical) */\n @Prop({ reflect: true }) titleAlignment?: TDividerTitleAlignment = 'middle';\n\n /** Set the width of each dash of the divider's stroke. This is applicable when the stroke is dashed */\n @Prop({ reflect: true }) strokeDashWidth?: number = 12;\n\n /** Set the gap of the divider's stroke. This is applicable when the stroke is dashed */\n @Prop({ reflect: true }) strokeDashGap?: number = 7;\n\n /** Set the thickness of the divider's stroke. Value expressed in px*/\n @Prop({ reflect: true }) strokeThickness?: number = 1;\n\n /** Set the min width of the divider's stroke when text is not centered. Value expressed in px */\n @Prop({ reflect: true }) strokeBasis?: number = 0;\n\n /** Set the line of the divider's stroke. This is applicable when the stroke is dashed */\n @Prop({ reflect: true }) strokeLinecap?: TDividerStrokeLinecap = 'butt';\n\n // Prop lifecycle events\n // =======================\n\n @Watch('orientation')\n @Watch('titleAlignment')\n @Watch('strokeLinecap')\n checkPropValues() {\n validatePropValue(DIVIDER_ORIENTATION, 'horizontal', this.el, 'orientation');\n validatePropValue(DIVIDER_TITLE_ALIGNMENT, 'middle', this.el, 'titleAlignment');\n validatePropValue(DIVIDER_STROKE_LINECAP, 'butt', this.el, 'strokeLinecap');\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n connectedCallback() {\n this.checkPropValues();\n }\n\n componentWillLoad() {\n this.checkPropValues();\n }\n\n componentDidLoad() {\n this.handleSlotChange();\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleSlotChange = () => {\n this.hasTitle = hasSlotContent(this.titleElem) || !!getTextContent(this.titleElem.querySelector('slot'));\n };\n\n private get strokeAttributes() {\n return {\n ...this.strokeDrawPositions,\n ...(this.dashed && { 'stroke-dasharray': this.strokeDasharray }),\n 'stroke-linecap': this.strokeLinecap,\n 'stroke-width': this.strokeThickness,\n };\n }\n\n private get strokeDrawPositions() {\n const drawOffset = this.strokeThickness / 2;\n const strokeDrawPositions = {\n [DIVIDER_ORIENTATION_ENUM.HORIZONTAL]: { x1: drawOffset, x2: '100%', y1: drawOffset, y2: drawOffset },\n [DIVIDER_ORIENTATION_ENUM.VERTICAL]: { x1: drawOffset, x2: drawOffset, y1: drawOffset, y2: '100%' },\n };\n const orientationMap = new Map(Object.entries(strokeDrawPositions));\n\n return orientationMap.get(this.orientation);\n }\n\n private get strokeDasharray() {\n return `${this.strokeDashWidth}, ${this.strokeDashGap}`;\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const styles = {\n ...(this.strokeColor && { '--bq-divider--stroke-color': getColorCSSVariable(this.strokeColor) }),\n ...(this.strokeThickness && { '--bq-divider--stroke-thickness': `${this.strokeThickness}px` }),\n ...(!isNil(this.strokeBasis) && { '--bq-divider--stroke-basis': `${this.strokeBasis}px` }),\n };\n\n return (\n <Host style={styles}>\n <div\n class={{\n 'bq-divider': true,\n [`bq-divider--${this.orientation}`]: true,\n [`bq-divider--title__${this.titleAlignment}`]: true,\n 'gap-0': !this.hasTitle,\n }}\n part=\"base\"\n ref={(div) => (this.titleElem = div)}\n role=\"separator\"\n aria-orientation={this.orientation}\n >\n <svg\n class={{\n 'bq-divider--stroke start': true,\n '!hidden': this.strokeBasis === 0 && this.titleAlignment === 'start',\n }}\n part=\"dash-start\"\n >\n <line {...this.strokeAttributes} part=\"dash-start-line\" />\n </svg>\n <slot onSlotchange={this.handleSlotChange} />\n <svg\n class={{\n 'bq-divider--stroke end': true,\n '!hidden': !this.hasTitle || (this.strokeBasis === 0 && this.titleAlignment === 'end'),\n }}\n part=\"dash-end\"\n >\n <line {...this.strokeAttributes} part=\"dash-end-line\" />\n </svg>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":";;;;gNAAO,MAAMA,EAAsB,CAAC,aAAc,YAG3C,MAAMC,EAA2B,CACtCC,WAAY,aACZC,SAAU,YAGL,MAAMC,EAA0B,CAAC,QAAS,SAAU,OAGpD,MAAMC,EAAyB,CAAC,SAAU,QAAS,QCX1D,MAAMC,EAAe,m4oBACrB,MAAAC,EAAeD,E,MCwBFE,EAAS,M,6DAqBH,M,iBAG2C,a,iBAGZ,kB,oBAGmB,S,qBAGf,G,mBAGF,E,qBAGE,E,iBAGJ,E,mBAGiB,M,CAzCzDC,U,wBAiDR,eAAAC,GACEC,EAAkBX,EAAqB,aAAcY,KAAKC,GAAI,eAC9DF,EAAkBP,EAAyB,SAAUQ,KAAKC,GAAI,kBAC9DF,EAAkBN,EAAwB,OAAQO,KAAKC,GAAI,gB,CAW7D,iBAAAC,GACEF,KAAKF,iB,CAGP,iBAAAK,GACEH,KAAKF,iB,CAGP,gBAAAM,GACEJ,KAAKK,kB,CAkBCA,iBAAmB,KACzBL,KAAKM,SAAWC,EAAeP,KAAKH,cAAgBW,EAAeR,KAAKH,UAAUY,cAAc,QAAQ,EAG1G,oBAAYC,GACV,MAAO,IACFV,KAAKW,uBACJX,KAAKY,QAAU,CAAE,mBAAoBZ,KAAKa,iBAC9C,iBAAkBb,KAAKc,cACvB,eAAgBd,KAAKe,gB,CAIzB,uBAAYJ,GACV,MAAMK,EAAahB,KAAKe,gBAAkB,EAC1C,MAAMJ,EAAsB,CAC1B,CAACtB,EAAyBC,YAAa,CAAE2B,GAAID,EAAYE,GAAI,OAAQC,GAAIH,EAAYI,GAAIJ,GACzF,CAAC3B,EAAyBE,UAAW,CAAE0B,GAAID,EAAYE,GAAIF,EAAYG,GAAIH,EAAYI,GAAI,SAE7F,MAAMC,EAAiB,IAAIC,IAAIC,OAAOC,QAAQb,IAE9C,OAAOU,EAAeI,IAAIzB,KAAK0B,Y,CAGjC,mBAAYb,GACV,MAAO,GAAGb,KAAK2B,oBAAoB3B,KAAK4B,e,CAO1C,MAAAC,GACE,MAAMC,EAAS,IACT9B,KAAK+B,aAAe,CAAE,6BAA8BC,EAAoBhC,KAAK+B,iBAC7E/B,KAAKe,iBAAmB,CAAE,iCAAkC,GAAGf,KAAKe,yBACnEkB,EAAMjC,KAAKkC,cAAgB,CAAE,6BAA8B,GAAGlC,KAAKkC,kBAG1E,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOR,GACXK,EAAA,OAAAE,IAAA,2CACEE,MAAO,CACL,aAAc,KACd,CAAC,eAAevC,KAAK0B,eAAgB,KACrC,CAAC,sBAAsB1B,KAAKwC,kBAAmB,KAC/C,SAAUxC,KAAKM,UAEjBmC,KAAK,OACLC,IAAMC,GAAS3C,KAAKH,UAAY8C,EAChCC,KAAK,YAAW,mBACE5C,KAAK0B,aAEvBS,EAAA,OAAAE,IAAA,2CACEE,MAAO,CACL,2BAA4B,KAC5B,UAAWvC,KAAKkC,cAAgB,GAAKlC,KAAKwC,iBAAmB,SAE/DC,KAAK,cAELN,EAAA,QAAAE,IAAA,8CAAUrC,KAAKU,iBAAkB+B,KAAK,qBAExCN,EAAA,QAAAE,IAAA,2CAAMQ,aAAc7C,KAAKK,mBACzB8B,EAAA,OAAAE,IAAA,2CACEE,MAAO,CACL,yBAA0B,KAC1B,WAAYvC,KAAKM,UAAaN,KAAKkC,cAAgB,GAAKlC,KAAKwC,iBAAmB,OAElFC,KAAK,YAELN,EAAA,QAAAE,IAAA,8CAAUrC,KAAKU,iBAAkB+B,KAAK,oB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["bqOptionGroupCss","BqOptionGroupStyle0","BqOptionGroup","render","h","key","class","part","name","role"],"sources":["../../packages/beeq/src/components/option-group/scss/bq-option-group.scss?tag=bq-option-group&encapsulation=shadow","../../packages/beeq/src/components/option-group/bq-option-group.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Option group styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-option-group.variables';\n\n:host {\n @apply block;\n}\n\n.bq-option-group {\n @apply flex overflow-hidden overflow-ellipsis;\n @apply bg-[--bq-option-group--background] text-[length:--bq-option-group--font-size] leading-[--bq-option-group--line-height];\n @apply pe-[--bq-option-group--label-padding-end] ps-[--bq-option-group--label-padding-start] p-b-[--bq-option-group--label-paddingY] p-i-[--bq-option-group--label-paddingY];\n\n &__child {\n @apply flex items-center;\n }\n}\n\n.bq-option-group__label {\n @apply pe-[--bq-option-group--label-text-padding-end] ps-[--bq-option-group--label-text-padding-start];\n}\n\n.bq-option-group__container ::slotted(bq-option) {\n @apply ps-[--bq-option-group--container-padding-start];\n}\n","import { Component, Element, h } from '@stencil/core';\n\n/**\n * @part label - The `legend` tag element which acts as a container for the label\n * @part prefix - The prefix of the label\n * @part label - The text of the label\n * @part suffix - The suffix of the label\n * @part group - The `div` element which holds the option items\n */\n@Component({\n tag: 'bq-option-group',\n styleUrl: './scss/bq-option-group.scss',\n shadow: true,\n})\nexport class BqOptionGroup {\n // Own Properties\n // ====================\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n // Prop lifecycle events\n // =======================\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div class=\"bg-ui-primary\">\n <legend class=\"bq-option-group m-be-[--bq-option-group--gapY-list]\" part=\"label\">\n <span class=\"option-group__prefix flex items-center\" part=\"prefix\">\n <slot name=\"header-prefix\" />\n </span>\n <span\n class=\"bq-option-group__label inline-block overflow-hidden text-ellipsis whitespace-nowrap is-auto\"\n part=\"label\"\n >\n <slot name=\"header-label\" />\n </span>\n <span class=\"bq-option-group__suffix\" part=\"suffix\">\n <slot name=\"header-suffix\" />\n </span>\n </legend>\n <div\n class=\"bq-option-group__container flex flex-col gap-[--bq-option-group--gapY-list]\"\n role=\"group\"\n aria-label=\"Options\"\n part=\"group\"\n >\n <slot />\n </div>\n </div>\n );\n }\n}\n"],"mappings":";;;;kDAAA,MAAMA,EAAmB,oxrBACzB,MAAAC,EAAeD,E,MCaFE,EAAa,M,iDA8CxB,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAM,iBACTF,EAAA,UAAAC,IAAA,2CAAQC,MAAM,sDAAsDC,KAAK,SACvEH,EAAA,QAAAC,IAAA,2CAAMC,MAAM,yCAAyCC,KAAK,UACxDH,EAAA,QAAAC,IAAA,2CAAMG,KAAK,mBAEbJ,EAAA,QAAAC,IAAA,2CACEC,MAAM,8FACNC,KAAK,SAELH,EAAA,QAAAC,IAAA,2CAAMG,KAAK,kBAEbJ,EAAA,QAAAC,IAAA,2CAAMC,MAAM,0BAA0BC,KAAK,UACzCH,EAAA,QAAAC,IAAA,2CAAMG,KAAK,oBAGfJ,EAAA,OAAAC,IAAA,2CACEC,MAAM,8EACNG,KAAK,QAAO,aACD,UACXF,KAAK,SAELH,EAAA,QAAAC,IAAA,8C","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["TOAST_TYPE","TOAST_PLACEMENT","bqToastCss","BqToastStyle0","TOAST_PORTAL_SELECTOR","BqToast","window","document","querySelector","autoDismissDebounce","checkPropValues","validatePropValue","this","el","toastPortal","classList","remove","add","placement","handleTimeChange","cancel","time","Math","max","debounce","hide","handleOpenChange","open","bqHide","bqShow","connectedCallback","Object","assign","createElement","className","componentWillLoad","disconnectedCallback","onNotificationHide","removeChild","tagName","toLowerCase","error","DOMException","show","handleShow","handleHide","toast","parentElement","body","append","appendChild","requestAnimationFrame","ev","emit","defaultPrevented","iconName","typeMap","success","loading","alert","info","type","render","style","border","h","Host","key","class","hidden","role","part","hideIcon","name","size","slot","exportparts"],"sources":["../../packages/beeq/src/components/toast/bq-toast.types.ts","../../packages/beeq/src/components/toast/scss/bq-toast.scss?tag=bq-toast&encapsulation=shadow","../../packages/beeq/src/components/toast/bq-toast.tsx"],"sourcesContent":["export const TOAST_TYPE = ['info', 'success', 'alert', 'error', 'loading', 'custom'] as const;\nexport type TToastType = (typeof TOAST_TYPE)[number];\n\nexport const TOAST_PLACEMENT = [\n 'top-center',\n 'top-right',\n 'bottom-right',\n 'bottom-center',\n 'bottom-left',\n 'top-left',\n] as const;\nexport type TToastPlacement = (typeof TOAST_PLACEMENT)[number];\n\nexport const TOAST_BORDER_RADIUS = ['none', 'xs2', 'xs', 's', 'm', 'l', 'full'] as const;\nexport type TToastBorderRadius = (typeof TOAST_BORDER_RADIUS)[number];\n","/* -------------------------------------------------------------------------- */\n/* Toast styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-toast.variables';\n\n:host {\n @apply inline-block;\n}\n\n:host(.is-hidden) {\n @apply hidden;\n}\n\n.bq-toast {\n @include animation-slide-in;\n @apply flex items-center gap-[--bq-toast--gap] p-b-[--bq-toast--padding-y] p-i-[--bq-toast--padding-x];\n @apply rounded-[--bq-toast--border-radius] bg-[--bq-toast--background] shadow-[shadow:--bq-toast--box-shadow];\n @apply border-[length:--bq-toast--border-width] border-[color:--bq-toast--border-color];\n\n border-style: var(--bq-toast--border-style);\n}\n\n.bq-toast--icon {\n @apply flex;\n\n &.info {\n @apply text-[--bq-toast--icon-color-info];\n }\n\n &.success {\n @apply text-[--bq-toast--icon-color-success];\n }\n\n &.alert {\n @apply text-[--bq-toast--icon-color-alert];\n }\n\n &.error {\n @apply text-[--bq-toast--icon-color-error];\n }\n\n &.loading {\n @include animation-spin;\n @apply text-[--bq-toast--icon-color-loading];\n }\n\n &.custom {\n @apply text-[--bq-toast--icon-color-custom];\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Listen, Method, Prop, State, Watch } from '@stencil/core';\n\nimport { TOAST_PLACEMENT, TOAST_TYPE, TToastBorderRadius, TToastPlacement, TToastType } from './bq-toast.types';\nimport { debounce, TDebounce, validatePropValue } from '../../shared/utils';\n\nconst TOAST_PORTAL_SELECTOR = 'bq-toast-portal';\n\n/**\n * @part wrapper - The component's internal wrapper inside the shadow DOM.\n * @part icon-info - The `<div>` container that holds the icon component.\n * @part base - The `<div>` container of the internal bq-icon component.\n * @part svg - The `<svg>` element of the internal bq-icon component.\n *\n * @slot - The content to be displayed in the toast component.\n * @slot icon - The icon to be displayed in the toast component.\n */\n@Component({\n tag: 'bq-toast',\n styleUrl: './scss/bq-toast.scss',\n shadow: true,\n})\nexport class BqToast {\n // Own Properties\n // ====================\n\n private autoDismissDebounce: TDebounce<void>;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqToastElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private toastPortal =\n typeof window !== 'undefined' ? document.querySelector(`.${TOAST_PORTAL_SELECTOR}`) : null;\n\n // Public Property API\n // ========================\n\n /** The corder radius of the toast component */\n @Prop({ reflect: true }) border: TToastBorderRadius = 's';\n\n /** Type of toast */\n @Prop({ reflect: true, mutable: true }) type: TToastType = 'info';\n\n /** Placement of toast */\n @Prop({ reflect: true, mutable: true }) placement: TToastPlacement = 'bottom-center';\n\n /** If true will hide toast icon */\n @Prop({ reflect: true, mutable: true }) hideIcon = false;\n\n /** If true, the toast will be shown */\n @Prop({ reflect: true, mutable: true }) open: boolean;\n\n /** The length of time, in milliseconds, after which the toast will close itself */\n @Prop({ reflect: true }) time: number = 3000;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('type')\n @Watch('placement')\n checkPropValues() {\n validatePropValue(TOAST_TYPE, 'default', this.el, 'type');\n validatePropValue(TOAST_PLACEMENT, 'bottom-center', this.el, 'placement');\n\n const { toastPortal } = this;\n toastPortal?.classList.remove(...TOAST_PLACEMENT);\n toastPortal?.classList.add(this.placement);\n }\n\n @Watch('time')\n handleTimeChange() {\n this.autoDismissDebounce?.cancel();\n\n this.time = Math.max(0, this.time);\n\n this.autoDismissDebounce = debounce(() => {\n this.hide();\n }, this.time);\n }\n\n @Watch('open')\n handleOpenChange() {\n this.autoDismissDebounce?.cancel();\n\n if (this.open) {\n this.autoDismissDebounce?.();\n }\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler to be called when the notification is hidden */\n @Event() bqHide: EventEmitter<HTMLBqToastElement>;\n\n /** Callback handler to be called when the notification is shown */\n @Event() bqShow: EventEmitter<HTMLBqToastElement>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n connectedCallback() {\n const { toastPortal } = this;\n if (!toastPortal && typeof window !== 'undefined') {\n this.toastPortal = Object.assign(document.createElement('div'), { className: TOAST_PORTAL_SELECTOR });\n }\n }\n\n componentWillLoad() {\n this.checkPropValues();\n this.handleTimeChange();\n this.handleOpenChange();\n }\n\n disconnectedCallback() {\n this.autoDismissDebounce?.cancel();\n }\n\n // Listeners\n // ==============\n\n @Listen('bqHide')\n onNotificationHide() {\n try {\n const { toastPortal } = this;\n toastPortal?.removeChild(this.el);\n // Remove the toast portal from the DOM when there are no more toasts\n if (toastPortal?.querySelector(this.el.tagName.toLowerCase()) === null) {\n toastPortal?.remove();\n }\n } catch (error) {\n /**\n * Skip DOMException error since it could be possible that\n * in some situations the notification portal is missing\n */\n if (error instanceof DOMException) return;\n throw error;\n }\n }\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n /** Method to be called to show the toast component */\n @Method()\n async show(): Promise<void> {\n this.handleShow();\n }\n\n /** Method to be called to hide the toast component */\n @Method()\n async hide(): Promise<void> {\n this.handleHide();\n }\n\n /** This method can be used to display toasts in a fixed-position element that allows for stacking multiple toasts vertically */\n @Method()\n async toast() {\n const { toastPortal } = this;\n if (toastPortal?.parentElement === null) {\n document.body.append(toastPortal);\n }\n\n toastPortal?.appendChild(this.el);\n\n requestAnimationFrame(() => {\n this.show();\n });\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleShow = () => {\n const ev = this.bqShow.emit(this.el);\n if (!ev.defaultPrevented) {\n this.open = true;\n }\n };\n\n private handleHide = () => {\n const ev = this.bqHide.emit(this.el);\n if (!ev.defaultPrevented) {\n this.open = false;\n }\n };\n\n private get iconName() {\n const typeMap = {\n success: 'check-circle-bold',\n error: 'x-circle-bold',\n loading: 'spinner-gap-bold',\n alert: 'warning-bold',\n info: 'info-bold',\n };\n\n return typeMap[this.type] || 'info-bold';\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const style = {\n ...(this.border && { '--bq-toast--border-radius': `var(--bq-radius--${this.border})` }),\n };\n\n return (\n <Host\n style={style}\n class={{ 'is-hidden': !this.open }}\n aria-hidden={!this.open ? 'true' : 'false'}\n hidden={!this.open ? 'true' : 'false'}\n role=\"status\"\n >\n <output class=\"bq-toast\" part=\"wrapper\">\n <div class={{ [`bq-toast--icon ${this.type}`]: true, '!hidden': this.hideIcon }} part=\"icon\">\n <slot name=\"icon\">\n <bq-icon name={this.iconName} size=\"24\" slot=\"icon\" exportparts=\"base,svg\" />\n </slot>\n </div>\n <slot />\n </output>\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
|
package/dist/beeq/p-5da52049.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built by Endavans
|
|
3
|
-
* © https://beeq.design - Apache 2 License.
|
|
4
|
-
*/
|
|
5
|
-
const e="beeq";const t={allRenderFn:true,appendChildSlotFix:true,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:true,cmpDidLoad:true,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:true,experimentalSlotFixes:true,formAssociated:true,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:true,scriptDataOpts:false,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:true,slotRelocation:false,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var n=Object.defineProperty;var r=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:true})};var l=new WeakMap;var s=e=>l.get(e);var i=(e,t)=>l.set(t.t=e,t);var o=(e,t)=>{const n={l:0,$hostElement$:e,i:t,o:new Map};{n.u=new Promise((e=>n.v=e))}{n.h=new Promise((e=>n.p=e));e["s-p"]=[];e["s-rc"]=[]}return l.set(e,n)};var a=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,n)=>{const r=e.m.replace(/-/g,"_");const l=e.$;if(!l){return void 0}const s=c.get(l);if(s){return s[r]}
|
|
6
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((e=>{{c.set(l,e)}return e[r]}),f)};var v=new Map;var d="r";var h="o";var p="s";var m="t";var $="s-id";var y="sty-id";var b="c-id";var w="{visibility:hidden}.hydrated{visibility:inherit}";var g="slot-fb{display:contents}slot-fb[hidden]{display:none}";var S="http://www.w3.org/1999/xlink";var k=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var C=typeof window!=="undefined"?window:{};var x=C.document||{head:{}};var j=C.HTMLElement||class{};var O={l:0,S:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var D=t.shadowDom;var E=(()=>{let e=false;try{x.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=true}}))}catch(e){}return e})();var L=e=>Promise.resolve(e);var T=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var A=false;var F=[];var M=[];var R=(e,t)=>n=>{e.push(n);if(!A){A=true;if(t&&O.l&4){N(U)}else{O.raf(U)}}};var P=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var U=()=>{P(F);{P(M);if(A=F.length>0){O.raf(U)}}};var N=e=>L().then(e);var W=R(M,true);var I={};var H="http://www.w3.org/2000/svg";var q="http://www.w3.org/1999/xhtml";var z=e=>e!=null;var B=e=>{e=typeof e;return e==="object"||e==="function"};function Q(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var G={};r(G,{err:()=>V,map:()=>X,ok:()=>K,unwrap:()=>_,unwrapErr:()=>J});var K=e=>({isOk:true,isErr:false,value:e});var V=e=>({isOk:false,isErr:true,value:e});function X(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>K(e)))}else{return K(n)}}if(e.isErr){const t=e.value;return V(t)}throw"should never get here"}var _=e=>{if(e.isOk){return e.value}else{throw e.value}};var J=e=>{if(e.isErr){return e.value}else{throw e.value}};var Y=(e,t="")=>{{return()=>{}}};var Z=(e,t)=>{{return()=>{}}};var ee=(e,t,...n)=>{let r=null;let l=null;let s=false;let i=false;const o=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(s=typeof e!=="function"&&!B(r)){r=String(r)}if(s&&i){o[o.length-1].k+=r}else{o.push(s?te(null,r):r)}i=s}}};a(n);if(t){if(t.key){l=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,o,le)}const f=te(e,null);f.C=t;if(o.length>0){f.j=o}{f.O=l}return f};var te=(e,t)=>{const n={l:0,D:e,k:t,L:null,j:null};{n.C=null}{n.O=null}return n};var ne={};var re=e=>e&&e.D===ne;var le={forEach:(e,t)=>e.map(se).forEach(t),map:(e,t)=>e.map(se).map(t).map(ie)};var se=e=>({vattrs:e.C,vchildren:e.j,vkey:e.O,vname:e.T,vtag:e.D,vtext:e.k});var ie=e=>{if(typeof e.vtag==="function"){const t={...e.vattrs};if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return ee(e.vtag,t,...e.vchildren||[])}const t=te(e.vtag,e.vtext);t.C=e.vattrs;t.j=e.vchildren;t.O=e.vkey;t.T=e.vname;return t};var oe=(e,t,n,r)=>{const l=Y("hydrateClient",t);const s=e.shadowRoot;const i=[];const o=[];const a=s?[]:null;const f=r.A=te(t,null);if(!O.F){fe(x.body,O.F=new Map)}e[$]=n;e.removeAttribute($);ae(f,i,o,a,e,e,n);i.map((e=>{const n=e.M+"."+e.R;const r=O.F.get(n);const l=e.L;if(r&&D&&r["s-en"]===""){r.parentNode.insertBefore(l,r.nextSibling)}if(!s){l["s-hn"]=t;if(r){l["s-ol"]=r;l["s-ol"]["s-nr"]=l}}O.F.delete(n)}));if(s){a.map((e=>{if(e){s.appendChild(e)}}))}l()};var ae=(e,t,n,r,l,s,i)=>{let o;let a;let f;let c;if(s.nodeType===1){o=s.getAttribute(b);if(o){a=o.split(".");if(a[0]===i||a[0]==="0"){f={l:0,M:a[0],R:a[1],P:a[2],U:a[3],D:s.tagName.toLowerCase(),L:s,C:null,j:null,O:null,T:null,k:null};t.push(f);s.removeAttribute(b);if(!e.j){e.j=[]}e.j[f.U]=f;e=f;if(r&&f.P==="0"){r[f.U]=f.L}}}if(s.shadowRoot){for(c=s.shadowRoot.childNodes.length-1;c>=0;c--){ae(e,t,n,r,l,s.shadowRoot.childNodes[c],i)}}for(c=s.childNodes.length-1;c>=0;c--){ae(e,t,n,r,l,s.childNodes[c],i)}}else if(s.nodeType===8){a=s.nodeValue.split(".");if(a[1]===i||a[1]==="0"){o=a[0];f={l:0,M:a[1],R:a[2],P:a[3],U:a[4],L:s,C:null,j:null,O:null,T:null,D:null,k:null};if(o===m){f.L=s.nextSibling;if(f.L&&f.L.nodeType===3){f.k=f.L.textContent;t.push(f);s.remove();if(!e.j){e.j=[]}e.j[f.U]=f;if(r&&f.P==="0"){r[f.U]=f.L}}}else if(f.M===i){if(o===p){f.D="slot";if(a[5]){s["s-sn"]=f.T=a[5]}else{s["s-sn"]=""}s["s-sr"]=true;if(r){f.L=x.createElement(f.D);if(f.T){f.L.setAttribute("name",f.T)}s.parentNode.insertBefore(f.L,s);s.remove();if(f.P==="0"){r[f.U]=f.L}}n.push(f);if(!e.j){e.j=[]}e.j[f.U]=f}else if(o===d){if(r){s.remove()}}}}}else if(e&&e.D==="style"){const t=te(null,s.textContent);t.L=s;t.U="0";e.j=[t]}};var fe=(e,t)=>{if(e.nodeType===1){let n=0;if(e.shadowRoot){for(;n<e.shadowRoot.childNodes.length;n++){fe(e.shadowRoot.childNodes[n],t)}}for(n=0;n<e.childNodes.length;n++){fe(e.childNodes[n],t)}}else if(e.nodeType===8){const n=e.nodeValue.split(".");if(n[0]===h){t.set(n[1]+"."+n[2],e);e.nodeValue="";e["s-en"]=n[3]}}};var ce=(e,t)=>{if(e!=null&&!B(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var ue=e=>s(e).$hostElement$;var ve=(e,t,n)=>{const r=ue(e);return{emit:e=>de(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}};var de=(e,t,n)=>{const r=O.ce(t,n);e.dispatchEvent(r);return r};var he=new WeakMap;var pe=(e,t,n)=>{let r=v.get(e);if(T&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}v.set(e,r)};var me=(e,t,n)=>{var r;const l=ye(t);const s=v.get(l);e=e.nodeType===11?e:x;if(s){if(typeof s==="string"){e=e.head||e;let n=he.get(e);let i;if(!n){he.set(e,n=new Set)}if(!n.has(l)){if(e.host&&(i=e.querySelector(`[${y}="${l}"]`))){i.innerHTML=s}else{i=x.createElement("style");i.innerHTML=s;const n=(r=O.N)!=null?r:Q(x);if(n!=null){i.setAttribute("nonce",n)}if(!(t.l&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(i,n)}else if("host"in e){if(T){const t=new CSSStyleSheet;t.replaceSync(s);e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");if(t){t.innerHTML=s+t.innerHTML}else{e.prepend(i)}}}else{e.append(i)}}if(t.l&1&&e.nodeName!=="HEAD"){e.insertBefore(i,null)}}if(t.l&4){i.innerHTML+=g}if(n){n.add(l)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return l};var $e=e=>{const t=e.i;const n=e.$hostElement$;const r=t.l;const l=Y("attachStyles",t.m);const s=me(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10&&r&2){n["s-sc"]=s;n.classList.add(s+"-h")}l()};var ye=(e,t)=>"sc-"+e.m;var be=(e,t,n,r,l,s)=>{if(n!==r){let i=a(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const l=ge(n);const s=ge(r);t.remove(...l.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!l.includes(e))))}else if(t==="style"){{for(const t in n){if(!r||r[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in r){if(!n||r[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,r[t])}else{e.style[t]=r[t]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(C,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(n||r){const l=t.endsWith(Se);t=t.replace(ke,"");if(n){O.rel(e,t,n,l)}if(r){O.ael(e,t,r,l)}}}else{const a=B(r);if((i||a&&r!==null)&&!l){try{if(!e.tagName.includes("-")){const l=r==null?"":r;if(t==="list"){i=false}else if(n==null||e[t]!=l){if(typeof e.__lookupSetter__(t)==="function"){e[t]=l}else{e.setAttribute(t,l)}}}else{e[t]=r}}catch(e){}}let f=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;f=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(f){e.removeAttributeNS(S,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||l)&&!a){r=r===true?"":r;if(f){e.setAttributeNS(S,t,r)}else{e.setAttribute(t,r)}}}}};var we=/\s/;var ge=e=>!e?[]:e.split(we);var Se="Capture";var ke=new RegExp(Se+"$");var Ce=(e,t,n)=>{const r=t.L.nodeType===11&&t.L.host?t.L.host:t.L;const l=e&&e.C||I;const s=t.C||I;{for(const e of xe(Object.keys(l))){if(!(e in s)){be(r,e,l[e],void 0,n,t.l)}}}for(const e of xe(Object.keys(s))){be(r,e,l[e],s[e],n,t.l)}};function xe(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var je;var Oe;var De=false;var Ee=false;var Le=(e,n,r,l)=>{const s=n.j[r];let i=0;let o;let a;if(s.k!==null){o=s.L=x.createTextNode(s.k)}else{if(!Ee){Ee=s.D==="svg"}o=s.L=x.createElementNS(Ee?H:q,!De&&t.slotRelocation&&s.l&2?"slot-fb":s.D);if(Ee&&s.D==="foreignObject"){Ee=false}{Ce(null,s,Ee)}const n=o.getRootNode();const r=!n.querySelector("body");if(!r&&t.scoped&&z(je)&&o["s-si"]!==je){o.classList.add(o["s-si"]=je)}if(s.j){for(i=0;i<s.j.length;++i){a=Le(e,s,i);if(a){o.appendChild(a)}}}{if(s.D==="svg"){Ee=false}else if(o.tagName==="foreignObject"){Ee=true}}}o["s-hn"]=Oe;return o};var Te=e=>{O.l|=1;const t=e.closest(Oe.toLowerCase());if(t!=null){const n=Array.from(t.childNodes).find((e=>e["s-cr"]));const r=Array.from(e.childNodes);for(const e of n?r.reverse():r){if(e["s-sh"]!=null){Ne(t,e,n!=null?n:null);e["s-sh"]=void 0}}}O.l&=~1};var Ae=(e,t,n,r,l,s)=>{let i=e;let o;if(i.shadowRoot&&i.tagName===Oe){i=i.shadowRoot}for(;l<=s;++l){if(r[l]){o=Le(null,n,l);if(o){r[l].L=o;Ne(i,o,t)}}}};var Fe=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.L;Ue(t);if(e){e.remove()}}}};var Me=(e,t,n,r,l=false)=>{let s=0;let i=0;let o=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let v=r.length-1;let d=r[0];let h=r[v];let p;let m;while(s<=f&&i<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--f]}else if(d==null){d=r[++i]}else if(h==null){h=r[--v]}else if(Re(c,d,l)){Pe(c,d,l);c=t[++s];d=r[++i]}else if(Re(u,h,l)){Pe(u,h,l);u=t[--f];h=r[--v]}else if(Re(c,h,l)){Pe(c,h,l);Ne(e,c.L,u.L.nextSibling);c=t[++s];h=r[--v]}else if(Re(u,d,l)){Pe(u,d,l);Ne(e,u.L,c.L);u=t[--f];d=r[++i]}else{o=-1;{for(a=s;a<=f;++a){if(t[a]&&t[a].O!==null&&t[a].O===d.O){o=a;break}}}if(o>=0){m=t[o];if(m.D!==d.D){p=Le(t&&t[i],n,o)}else{Pe(m,d,l);t[o]=void 0;p=m.L}d=r[++i]}else{p=Le(t&&t[i],n,i);d=r[++i]}if(p){{Ne(c.L.parentNode,p,c.L)}}}}if(s>f){Ae(e,r[v+1]==null?null:r[v+1].L,n,r,i,v)}else if(i>v){Fe(t,s,f)}};var Re=(e,t,n=false)=>{if(e.D===t.D){if(!n){return e.O===t.O}return true}return false};var Pe=(e,n,r=false)=>{const l=n.L=e.L;const s=e.j;const i=n.j;const o=n.D;const a=n.k;if(a===null){{Ee=o==="svg"?true:o==="foreignObject"?false:Ee}{if(o==="slot"&&!De){if(e.T!==n.T){n.L["s-sn"]=n.T||"";Te(n.L.parentElement)}}else{Ce(e,n,Ee)}}if(s!==null&&i!==null){Me(l,s,n,i,r)}else if(i!==null){if(e.k!==null){l.textContent=""}Ae(l,null,n,i,0,i.length-1)}else if(!r&&t.updatable&&s!==null){Fe(s,0,s.length-1)}if(Ee&&o==="svg"){Ee=false}}else if(e.k!==a){l.data=a}};var Ue=e=>{{e.C&&e.C.ref&&e.C.ref(null);e.j&&e.j.map(Ue)}};var Ne=(e,t,n)=>{const r=e==null?void 0:e.insertBefore(t,n);return r};var We=(e,t,n=false)=>{var r;const l=e.$hostElement$;const s=e.i;const i=e.A||te(null,null);const o=re(t)?t:ee(null,null,t);Oe=l.tagName;if(s.W){o.C=o.C||{};s.W.map((([e,t])=>o.C[t]=l[e]))}if(n&&o.C){for(const e of Object.keys(o.C)){if(l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){o.C[e]=l[e]}}}o.D=null;o.l|=4;e.A=o;o.L=i.L=l.shadowRoot||l;{je=l["s-sc"]}De=(s.l&1)!==0;Pe(i,o,n);if(s.l&2){for(const e of o.L.childNodes){if(e["s-hn"]!==Oe&&!e["s-sh"]){if(n&&e["s-ih"]==null){e["s-ih"]=(r=e.hidden)!=null?r:false}e.hidden=true}}}};var Ie=(e,t)=>{if(t&&!e.I&&t["s-p"]){t["s-p"].push(new Promise((t=>e.I=t)))}};var He=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}Ie(e,e.H);const n=()=>qe(e,t);return W(n)};var qe=(e,t)=>{const n=e.$hostElement$;const r=Y("scheduleUpdate",e.i.m);const l=e.t;if(!l){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{e.l|=256;if(e.q){e.q.map((([e,t])=>Xe(l,e,t)));e.q=void 0}}{s=Xe(l,"componentWillLoad")}}r();return ze(s,(()=>Qe(e,l,t)))};var ze=(e,t)=>Be(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var Be=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var Qe=async(e,t,n)=>{var r;const l=e.$hostElement$;const s=Y("update",e.i.m);const i=l["s-rc"];if(n){$e(e)}const o=Y("render",e.i.m);{Ge(e,t,l,n)}if(i){i.map((e=>e()));l["s-rc"]=void 0}o();s();{const t=(r=l["s-p"])!=null?r:[];const n=()=>Ke(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.l|=4;t.length=0}}};var Ge=(e,t,n,r)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{We(e,t,r)}}}}catch(t){f(t,e.$hostElement$)}return null};var Ke=e=>{const t=e.i.m;const n=e.$hostElement$;const r=Y("postUpdate",t);const l=e.t;const s=e.H;if(!(e.l&64)){e.l|=64;{_e(n)}{Xe(l,"componentDidLoad")}r();{e.p(n);if(!s){Ve()}}}else{{Xe(l,"componentDidUpdate")}r()}{e.v(n)}{if(e.I){e.I();e.I=void 0}if(e.l&512){N((()=>He(e,false)))}e.l&=~(4|512)}};var Ve=t=>{{_e(x.documentElement)}N((()=>de(C,"appload",{detail:{namespace:e}})))};var Xe=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){f(e)}}return void 0};var _e=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var Je=(e,t)=>s(e).o.get(t);var Ye=(e,t,n,r)=>{const l=s(e);if(!l){throw new Error(`Couldn't find host element for "${r.m}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const i=l.$hostElement$;const o=l.o.get(t);const a=l.l;const c=l.t;n=ce(n,r.B[t][0]);const u=Number.isNaN(o)&&Number.isNaN(n);const v=n!==o&&!u;if((!(a&8)||o===void 0)&&v){l.o.set(t,n);if(c){if(r.G&&a&128){const e=r.G[t];if(e){e.map((e=>{try{c[e](n,o,t)}catch(e){f(e,i)}}))}}if((a&(2|16))===2){He(l,false)}}}};var Ze=(e,t,n)=>{var r,l;const i=e.prototype;if(t.l&64&&n&1){k.forEach((e=>Object.defineProperty(i,e,{value(...t){const n=s(this);const r=n.t;if(!r){n.h.then((n=>{const r=n[e];typeof r==="function"&&r.call(n,...t)}))}else{const n=r[e];typeof n==="function"&&n.call(r,...t)}}})))}if(t.B||(t.G||e.watchers)){if(e.watchers&&!t.G){t.G=e.watchers}const o=Object.entries((r=t.B)!=null?r:{});o.map((([e,[r]])=>{if(r&31||n&2&&r&32){Object.defineProperty(i,e,{get(){return Je(this,e)},set(n){Ye(this,e,n,t)},configurable:true,enumerable:true})}else if(n&1&&r&64){Object.defineProperty(i,e,{value(...t){var n;const r=s(this);return(n=r==null?void 0:r.u)==null?void 0:n.then((()=>{var n;return(n=r.t)==null?void 0:n[e](...t)}))}})}}));if(n&1){const n=new Map;i.attributeChangedCallback=function(e,r,l){O.jmp((()=>{var o;const a=n.get(e);if(this.hasOwnProperty(a)){l=this[a];delete this[a]}else if(i.hasOwnProperty(a)&&typeof this[a]==="number"&&this[a]==l){return}else if(a==null){const n=s(this);const i=n==null?void 0:n.l;if(i&&!(i&8)&&i&128&&l!==r){const s=n.t;const i=(o=t.G)==null?void 0:o[e];i==null?void 0:i.forEach((t=>{if(s[t]!=null){s[t].call(s,l,r,e)}}))}return}this[a]=l===null&&typeof this[a]==="boolean"?false:l}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=t.G)!=null?l:{}),...o.filter((([e,t])=>t[0]&15)).map((([e,r])=>{var l;const s=r[1]||e;n.set(s,e);if(r[0]&512){(l=t.W)==null?void 0:l.push([e,s])}return s}))]))}}return e};var et=async(e,t,n,r)=>{let l;if((t.l&32)===0){t.l|=32;const r=n.$;if(r){const e=u(n);if(e&&"then"in e){const t=Z();l=await e;t()}else{l=e}if(!l){throw new Error(`Constructor for "${n.m}#${t.K}" was not found`)}if(!l.isProxied){{n.G=l.watchers}Ze(l,n,2);l.isProxied=true}const r=Y("createInstance",n.m);{t.l|=8}try{new l(t)}catch(e){f(e)}{t.l&=~8}{t.l|=128}r();tt(t.t)}else{l=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.l|=128))}if(l&&l.style){let e;if(typeof l.style==="string"){e=l.style}const t=ye(n);if(!v.has(t)){const r=Y("registerStyles",n.m);pe(t,e,!!(n.l&1));r()}}}const s=t.H;const i=()=>He(t,true);if(s&&s["s-rc"]){s["s-rc"].push(i)}else{i()}};var tt=e=>{{Xe(e,"connectedCallback")}};var nt=e=>{if((O.l&1)===0){const t=s(e);const n=t.i;const r=Y("connectedCallback",n.m);if(!(t.l&1)){t.l|=1;let r;{r=e.getAttribute($);if(r){if(n.l&1){const t=me(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}oe(e,n.m,r,t)}}{let n=e;while(n=n.parentNode||n.host){if(n.nodeType===1&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Ie(t,t.H=n);break}}}if(n.B){Object.entries(n.B).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{et(e,t,n)}}else{ot(e,t,n.V);if(t==null?void 0:t.t){tt(t.t)}else if(t==null?void 0:t.h){t.h.then((()=>tt(t.t)))}}r()}};var rt=e=>{{Xe(e,"disconnectedCallback")}};var lt=async e=>{if((O.l&1)===0){const t=s(e);{if(t.X){t.X.map((e=>e()));t.X=void 0}}if(t==null?void 0:t.t){rt(t.t)}else if(t==null?void 0:t.h){t.h.then((()=>rt(t.t)))}}};var st=(e,t={})=>{var n;const r=Y();const l=[];const i=t.exclude||[];const a=C.customElements;const f=x.head;const c=f.querySelector("meta[charset]");const u=x.createElement("style");const v=[];let d;let h=true;Object.assign(O,t);O.S=new URL(t.resourcesUrl||"./",x.baseURI).href;{O.l|=2}let p=false;e.map((e=>{e[1].map((t=>{var n;const r={l:t[0],m:t[1],B:t[2],V:t[3]};if(r.l&4){p=true}{r.B=t[2]}{r.V=t[3]}{r.W=[]}{r.G=(n=t[4])!=null?n:{}}const f=r.m;const c=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;o(e,r);if(r.l&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open",delegatesFocus:!!(r.l&16)})}}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${r.m}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=s(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;ot(this,e,r.V)}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{O.jmp((()=>nt(this)))}}disconnectedCallback(){O.jmp((()=>lt(this)))}componentOnReady(){return s(this).h}};if(r.l&64){c.formAssociated=true}r.$=e[0];if(!i.includes(f)&&!a.get(f)){l.push(f);a.define(f,Ze(c,r,1))}}))}));if(l.length>0){if(p){u.textContent+=g}{u.textContent+=l.sort()+w}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=O.N)!=null?n:Q(x);if(e!=null){u.setAttribute("nonce",e)}f.insertBefore(u,c?c.nextSibling:f.firstChild)}}h=false;if(v.length){v.map((e=>e.connectedCallback()))}else{{O.jmp((()=>d=setTimeout(Ve,30)))}}r()};var it=(e,t)=>t;var ot=(e,t,n,r)=>{if(n){n.map((([n,r,l])=>{const s=ft(e,n);const i=at(t,l);const o=ct(n);O.ael(s,r,i,o);(t.X=t.X||[]).push((()=>O.rel(s,r,i,o)))}))}};var at=(e,t)=>n=>{var r;try{{if(e.l&256){(r=e.t)==null?void 0:r[t](n)}else{(e.q=e.q||[]).push([t,n])}}}catch(e){f(e)}};var ft=(e,t)=>{if(t&4)return x;if(t&8)return C;if(t&16)return x.body;return e};var ct=e=>E?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;var ut=e=>O.N=e;export{it as F,j as H,ne as a,st as b,ve as c,ue as g,ee as h,L as p,i as r,ut as s};
|
|
7
|
-
//# sourceMappingURL=p-5da52049.js.map
|