placer-toolkit 0.5.1
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/LICENSE.md +9 -0
- package/README.md +66 -0
- package/dist/animations/attention_seekers/bounce.d.ts +16 -0
- package/dist/animations/attention_seekers/bounce.js +45 -0
- package/dist/animations/attention_seekers/flash.d.ts +4 -0
- package/dist/animations/attention_seekers/flash.js +9 -0
- package/dist/animations/attention_seekers/headShake.d.ts +4 -0
- package/dist/animations/attention_seekers/headShake.js +10 -0
- package/dist/animations/attention_seekers/heartBeat.d.ts +4 -0
- package/dist/animations/attention_seekers/heartBeat.js +9 -0
- package/dist/animations/attention_seekers/jello.d.ts +4 -0
- package/dist/animations/attention_seekers/jello.js +17 -0
- package/dist/animations/attention_seekers/pulse.d.ts +4 -0
- package/dist/animations/attention_seekers/pulse.js +7 -0
- package/dist/animations/attention_seekers/rubberBand.d.ts +4 -0
- package/dist/animations/attention_seekers/rubberBand.js +11 -0
- package/dist/animations/attention_seekers/shake.d.ts +4 -0
- package/dist/animations/attention_seekers/shake.js +15 -0
- package/dist/animations/attention_seekers/shakeX.d.ts +4 -0
- package/dist/animations/attention_seekers/shakeX.js +15 -0
- package/dist/animations/attention_seekers/shakeY.d.ts +4 -0
- package/dist/animations/attention_seekers/shakeY.js +15 -0
- package/dist/animations/attention_seekers/swing.d.ts +4 -0
- package/dist/animations/attention_seekers/swing.js +9 -0
- package/dist/animations/attention_seekers/tada.d.ts +4 -0
- package/dist/animations/attention_seekers/tada.js +42 -0
- package/dist/animations/attention_seekers/wobble.d.ts +4 -0
- package/dist/animations/attention_seekers/wobble.js +26 -0
- package/dist/animations/back_entrances/backInDown.d.ts +5 -0
- package/dist/animations/back_entrances/backInDown.js +7 -0
- package/dist/animations/back_entrances/backInLeft.d.ts +5 -0
- package/dist/animations/back_entrances/backInLeft.js +7 -0
- package/dist/animations/back_entrances/backInRight.d.ts +5 -0
- package/dist/animations/back_entrances/backInRight.js +7 -0
- package/dist/animations/back_entrances/backInUp.d.ts +5 -0
- package/dist/animations/back_entrances/backInUp.js +7 -0
- package/dist/animations/back_exits/backOutDown.d.ts +5 -0
- package/dist/animations/back_exits/backOutDown.js +7 -0
- package/dist/animations/back_exits/backOutLeft.d.ts +5 -0
- package/dist/animations/back_exits/backOutLeft.js +7 -0
- package/dist/animations/back_exits/backOutRight.d.ts +5 -0
- package/dist/animations/back_exits/backOutRight.js +7 -0
- package/dist/animations/back_exits/backOutUp.d.ts +5 -0
- package/dist/animations/back_exits/backOutUp.js +7 -0
- package/dist/animations/bouncing_entrances/bounceIn.d.ts +16 -0
- package/dist/animations/bouncing_entrances/bounceIn.js +16 -0
- package/dist/animations/bouncing_entrances/bounceInDown.d.ts +16 -0
- package/dist/animations/bouncing_entrances/bounceInDown.js +22 -0
- package/dist/animations/bouncing_entrances/bounceInLeft.d.ts +16 -0
- package/dist/animations/bouncing_entrances/bounceInLeft.js +22 -0
- package/dist/animations/bouncing_entrances/bounceInRight.d.ts +16 -0
- package/dist/animations/bouncing_entrances/bounceInRight.js +22 -0
- package/dist/animations/bouncing_entrances/bounceInUp.d.ts +16 -0
- package/dist/animations/bouncing_entrances/bounceInUp.js +22 -0
- package/dist/animations/bouncing_exits/bounceOut.d.ts +9 -0
- package/dist/animations/bouncing_exits/bounceOut.js +8 -0
- package/dist/animations/bouncing_exits/bounceOutDown.d.ts +9 -0
- package/dist/animations/bouncing_exits/bounceOutDown.js +20 -0
- package/dist/animations/bouncing_exits/bounceOutLeft.d.ts +5 -0
- package/dist/animations/bouncing_exits/bounceOutLeft.js +14 -0
- package/dist/animations/bouncing_exits/bounceOutRight.d.ts +5 -0
- package/dist/animations/bouncing_exits/bounceOutRight.js +14 -0
- package/dist/animations/bouncing_exits/bounceOutUp.d.ts +9 -0
- package/dist/animations/bouncing_exits/bounceOutUp.js +20 -0
- package/dist/animations/easings/easings.d.ts +31 -0
- package/dist/animations/easings/easings.js +33 -0
- package/dist/animations/fading_entrances/fadeIn.d.ts +4 -0
- package/dist/animations/fading_entrances/fadeIn.js +6 -0
- package/dist/animations/fading_entrances/fadeInBottomLeft.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInBottomLeft.js +6 -0
- package/dist/animations/fading_entrances/fadeInBottomRight.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInBottomRight.js +6 -0
- package/dist/animations/fading_entrances/fadeInDown.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInDown.js +6 -0
- package/dist/animations/fading_entrances/fadeInDownBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInDownBig.js +6 -0
- package/dist/animations/fading_entrances/fadeInLeft.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInLeft.js +6 -0
- package/dist/animations/fading_entrances/fadeInLeftBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInLeftBig.js +6 -0
- package/dist/animations/fading_entrances/fadeInRight.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInRight.js +6 -0
- package/dist/animations/fading_entrances/fadeInRightBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInRightBig.js +6 -0
- package/dist/animations/fading_entrances/fadeInTopLeft.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInTopLeft.js +6 -0
- package/dist/animations/fading_entrances/fadeInTopRight.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInTopRight.js +6 -0
- package/dist/animations/fading_entrances/fadeInUp.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInUp.js +6 -0
- package/dist/animations/fading_entrances/fadeInUpBig.d.ts +5 -0
- package/dist/animations/fading_entrances/fadeInUpBig.js +6 -0
- package/dist/animations/fading_exits/fadeOut.d.ts +4 -0
- package/dist/animations/fading_exits/fadeOut.js +6 -0
- package/dist/animations/fading_exits/fadeOutBottomLeft.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutBottomLeft.js +6 -0
- package/dist/animations/fading_exits/fadeOutBottomRight.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutBottomRight.js +6 -0
- package/dist/animations/fading_exits/fadeOutDown.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutDown.js +6 -0
- package/dist/animations/fading_exits/fadeOutDownBig.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutDownBig.js +6 -0
- package/dist/animations/fading_exits/fadeOutLeft.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutLeft.js +6 -0
- package/dist/animations/fading_exits/fadeOutLeftBig.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutLeftBig.js +6 -0
- package/dist/animations/fading_exits/fadeOutRight.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutRight.js +6 -0
- package/dist/animations/fading_exits/fadeOutRightBig.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutRightBig.js +6 -0
- package/dist/animations/fading_exits/fadeOutTopLeft.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutTopLeft.js +6 -0
- package/dist/animations/fading_exits/fadeOutTopRight.d.ts +5 -0
- package/dist/animations/fading_exits/fadeOutTopRight.js +6 -0
- package/dist/animations/fading_exits/fadeOutUp.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutUp.js +6 -0
- package/dist/animations/fading_exits/fadeOutUpBig.d.ts +9 -0
- package/dist/animations/fading_exits/fadeOutUpBig.js +6 -0
- package/dist/animations/flippers/flip.d.ts +5 -0
- package/dist/animations/flippers/flip.js +29 -0
- package/dist/animations/flippers/flipInX.d.ts +21 -0
- package/dist/animations/flippers/flipInX.js +22 -0
- package/dist/animations/flippers/flipInY.d.ts +21 -0
- package/dist/animations/flippers/flipInY.js +22 -0
- package/dist/animations/flippers/flipOutX.d.ts +9 -0
- package/dist/animations/flippers/flipOutX.js +15 -0
- package/dist/animations/flippers/flipOutY.d.ts +9 -0
- package/dist/animations/flippers/flipOutY.js +15 -0
- package/dist/animations/index.d.ts +99 -0
- package/dist/animations/index.js +101 -0
- package/dist/animations/lightspeed/lightSpeedInLeft.d.ts +9 -0
- package/dist/animations/lightspeed/lightSpeedInLeft.js +12 -0
- package/dist/animations/lightspeed/lightSpeedInRight.d.ts +9 -0
- package/dist/animations/lightspeed/lightSpeedInRight.js +12 -0
- package/dist/animations/lightspeed/lightSpeedOutLeft.d.ts +9 -0
- package/dist/animations/lightspeed/lightSpeedOutLeft.js +10 -0
- package/dist/animations/lightspeed/lightSpeedOutRight.d.ts +9 -0
- package/dist/animations/lightspeed/lightSpeedOutRight.js +10 -0
- package/dist/animations/rotating_entrances/rotateIn.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateIn.js +6 -0
- package/dist/animations/rotating_entrances/rotateInDownLeft.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInDownLeft.js +6 -0
- package/dist/animations/rotating_entrances/rotateInDownRight.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInDownRight.js +6 -0
- package/dist/animations/rotating_entrances/rotateInUpLeft.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInUpLeft.js +6 -0
- package/dist/animations/rotating_entrances/rotateInUpRight.d.ts +5 -0
- package/dist/animations/rotating_entrances/rotateInUpRight.js +6 -0
- package/dist/animations/rotating_exits/rotateOut.d.ts +9 -0
- package/dist/animations/rotating_exits/rotateOut.js +6 -0
- package/dist/animations/rotating_exits/rotateOutDownLeft.d.ts +9 -0
- package/dist/animations/rotating_exits/rotateOutDownLeft.js +6 -0
- package/dist/animations/rotating_exits/rotateOutDownRight.d.ts +9 -0
- package/dist/animations/rotating_exits/rotateOutDownRight.js +6 -0
- package/dist/animations/rotating_exits/rotateOutUpLeft.d.ts +9 -0
- package/dist/animations/rotating_exits/rotateOutUpLeft.js +6 -0
- package/dist/animations/rotating_exits/rotateOutUpRight.d.ts +9 -0
- package/dist/animations/rotating_exits/rotateOutUpRight.js +6 -0
- package/dist/animations/sliding_entrances/slideInDown.d.ts +9 -0
- package/dist/animations/sliding_entrances/slideInDown.js +6 -0
- package/dist/animations/sliding_entrances/slideInLeft.d.ts +9 -0
- package/dist/animations/sliding_entrances/slideInLeft.js +6 -0
- package/dist/animations/sliding_entrances/slideInRight.d.ts +9 -0
- package/dist/animations/sliding_entrances/slideInRight.js +6 -0
- package/dist/animations/sliding_entrances/slideInUp.d.ts +9 -0
- package/dist/animations/sliding_entrances/slideInUp.js +6 -0
- package/dist/animations/sliding_exits/slideOutDown.d.ts +9 -0
- package/dist/animations/sliding_exits/slideOutDown.js +6 -0
- package/dist/animations/sliding_exits/slideOutLeft.d.ts +9 -0
- package/dist/animations/sliding_exits/slideOutLeft.js +6 -0
- package/dist/animations/sliding_exits/slideOutRight.d.ts +9 -0
- package/dist/animations/sliding_exits/slideOutRight.js +6 -0
- package/dist/animations/sliding_exits/slideOutUp.d.ts +9 -0
- package/dist/animations/sliding_exits/slideOutUp.js +6 -0
- package/dist/animations/specials/hinge.d.ts +21 -0
- package/dist/animations/specials/hinge.js +28 -0
- package/dist/animations/specials/jackInTheBox.d.ts +16 -0
- package/dist/animations/specials/jackInTheBox.js +13 -0
- package/dist/animations/specials/rollIn.d.ts +5 -0
- package/dist/animations/specials/rollIn.js +10 -0
- package/dist/animations/specials/rollOut.d.ts +9 -0
- package/dist/animations/specials/rollOut.js +10 -0
- package/dist/animations/zooming_entrances/zoomIn.d.ts +9 -0
- package/dist/animations/zooming_entrances/zoomIn.js +6 -0
- package/dist/animations/zooming_entrances/zoomInDown.d.ts +6 -0
- package/dist/animations/zooming_entrances/zoomInDown.js +16 -0
- package/dist/animations/zooming_entrances/zoomInLeft.d.ts +6 -0
- package/dist/animations/zooming_entrances/zoomInLeft.js +16 -0
- package/dist/animations/zooming_entrances/zoomInRight.d.ts +6 -0
- package/dist/animations/zooming_entrances/zoomInRight.js +16 -0
- package/dist/animations/zooming_entrances/zoomInUp.d.ts +6 -0
- package/dist/animations/zooming_entrances/zoomInUp.js +16 -0
- package/dist/animations/zooming_exits/zoomOut.d.ts +9 -0
- package/dist/animations/zooming_exits/zoomOut.js +7 -0
- package/dist/animations/zooming_exits/zoomOutDown.d.ts +6 -0
- package/dist/animations/zooming_exits/zoomOutDown.js +16 -0
- package/dist/animations/zooming_exits/zoomOutLeft.d.ts +5 -0
- package/dist/animations/zooming_exits/zoomOutLeft.js +14 -0
- package/dist/animations/zooming_exits/zoomOutRight.d.ts +5 -0
- package/dist/animations/zooming_exits/zoomOutRight.js +14 -0
- package/dist/animations/zooming_exits/zoomOutUp.d.ts +6 -0
- package/dist/animations/zooming_exits/zoomOutUp.js +16 -0
- package/dist/components/animation/animation.component.d.ts +65 -0
- package/dist/components/animation/animation.component.js +247 -0
- package/dist/components/animation/animation.d.ts +8 -0
- package/dist/components/animation/animation.js +5 -0
- package/dist/components/animation/animation.styles.d.ts +1 -0
- package/dist/components/animation/animation.styles.js +9 -0
- package/dist/components/animation/animations.d.ts +4 -0
- package/dist/components/animation/animations.js +13 -0
- package/dist/components/avatar/avatar.component.d.ts +43 -0
- package/dist/components/avatar/avatar.component.js +137 -0
- package/dist/components/avatar/avatar.d.ts +8 -0
- package/dist/components/avatar/avatar.js +5 -0
- package/dist/components/avatar/avatar.styles.d.ts +1 -0
- package/dist/components/avatar/avatar.styles.js +68 -0
- package/dist/components/badge/badge.component.d.ts +21 -0
- package/dist/components/badge/badge.component.js +64 -0
- package/dist/components/badge/badge.d.ts +8 -0
- package/dist/components/badge/badge.js +5 -0
- package/dist/components/badge/badge.styles.d.ts +1 -0
- package/dist/components/badge/badge.styles.js +76 -0
- package/dist/components/button/button.component.d.ts +104 -0
- package/dist/components/button/button.component.js +346 -0
- package/dist/components/button/button.d.ts +8 -0
- package/dist/components/button/button.js +5 -0
- package/dist/components/button/button.styles.d.ts +1 -0
- package/dist/components/button/button.styles.js +322 -0
- package/dist/components/button-group/button-group.component.d.ts +26 -0
- package/dist/components/button-group/button-group.component.js +93 -0
- package/dist/components/button-group/button-group.d.ts +8 -0
- package/dist/components/button-group/button-group.js +5 -0
- package/dist/components/button-group/button-group.styles.d.ts +1 -0
- package/dist/components/button-group/button-group.styles.js +14 -0
- package/dist/components/callout/callout.component.d.ts +22 -0
- package/dist/components/callout/callout.component.js +63 -0
- package/dist/components/callout/callout.d.ts +8 -0
- package/dist/components/callout/callout.js +5 -0
- package/dist/components/callout/callout.styles.d.ts +1 -0
- package/dist/components/callout/callout.styles.js +68 -0
- package/dist/components/card/card.component.d.ts +29 -0
- package/dist/components/card/card.component.js +59 -0
- package/dist/components/card/card.d.ts +8 -0
- package/dist/components/card/card.js +5 -0
- package/dist/components/card/card.styles.d.ts +1 -0
- package/dist/components/card/card.styles.js +65 -0
- package/dist/components/checkbox/checkbox.component.d.ts +44 -0
- package/dist/components/checkbox/checkbox.component.js +287 -0
- package/dist/components/checkbox/checkbox.d.ts +8 -0
- package/dist/components/checkbox/checkbox.js +5 -0
- package/dist/components/checkbox/checkbox.styles.d.ts +1 -0
- package/dist/components/checkbox/checkbox.styles.js +166 -0
- package/dist/components/comparer/comparer.component.d.ts +43 -0
- package/dist/components/comparer/comparer.component.js +181 -0
- package/dist/components/comparer/comparer.d.ts +8 -0
- package/dist/components/comparer/comparer.js +5 -0
- package/dist/components/comparer/comparer.styles.d.ts +1 -0
- package/dist/components/comparer/comparer.styles.js +75 -0
- package/dist/components/copy-button/copy-button.component.d.ts +75 -0
- package/dist/components/copy-button/copy-button.component.js +289 -0
- package/dist/components/copy-button/copy-button.d.ts +8 -0
- package/dist/components/copy-button/copy-button.js +5 -0
- package/dist/components/copy-button/copy-button.styles.d.ts +1 -0
- package/dist/components/copy-button/copy-button.styles.js +61 -0
- package/dist/components/details/details.component.d.ts +25 -0
- package/dist/components/details/details.component.js +243 -0
- package/dist/components/details/details.d.ts +8 -0
- package/dist/components/details/details.js +5 -0
- package/dist/components/details/details.styles.d.ts +1 -0
- package/dist/components/details/details.styles.js +86 -0
- package/dist/components/dialog/dialog.component.d.ts +84 -0
- package/dist/components/dialog/dialog.component.js +362 -0
- package/dist/components/dialog/dialog.d.ts +8 -0
- package/dist/components/dialog/dialog.js +5 -0
- package/dist/components/dialog/dialog.styles.d.ts +1 -0
- package/dist/components/dialog/dialog.styles.js +123 -0
- package/dist/components/divider/divider.component.d.ts +20 -0
- package/dist/components/divider/divider.component.js +51 -0
- package/dist/components/divider/divider.d.ts +8 -0
- package/dist/components/divider/divider.js +5 -0
- package/dist/components/divider/divider.styles.d.ts +1 -0
- package/dist/components/divider/divider.styles.js +29 -0
- package/dist/components/drawer/drawer.component.d.ts +95 -0
- package/dist/components/drawer/drawer.component.js +509 -0
- package/dist/components/drawer/drawer.d.ts +8 -0
- package/dist/components/drawer/drawer.js +5 -0
- package/dist/components/drawer/drawer.styles.d.ts +1 -0
- package/dist/components/drawer/drawer.styles.js +157 -0
- package/dist/components/dropdown/dropdown.component.d.ts +44 -0
- package/dist/components/dropdown/dropdown.component.js +385 -0
- package/dist/components/dropdown/dropdown.d.ts +8 -0
- package/dist/components/dropdown/dropdown.js +5 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +1 -0
- package/dist/components/dropdown/dropdown.styles.js +52 -0
- package/dist/components/icon/icon.component.d.ts +47 -0
- package/dist/components/icon/icon.component.js +225 -0
- package/dist/components/icon/icon.d.ts +8 -0
- package/dist/components/icon/icon.js +5 -0
- package/dist/components/icon/icon.styles.d.ts +1 -0
- package/dist/components/icon/icon.styles.js +49 -0
- package/dist/components/icon/library.d.ts +14 -0
- package/dist/components/icon/library.default.d.ts +3 -0
- package/dist/components/icon/library.default.js +8 -0
- package/dist/components/icon/library.js +34 -0
- package/dist/components/icon/library.system.d.ts +3 -0
- package/dist/components/icon/library.system.js +130 -0
- package/dist/components/icon-button/icon-button.component.d.ts +27 -0
- package/dist/components/icon-button/icon-button.component.js +151 -0
- package/dist/components/icon-button/icon-button.d.ts +8 -0
- package/dist/components/icon-button/icon-button.js +5 -0
- package/dist/components/icon-button/icon-button.styles.d.ts +1 -0
- package/dist/components/icon-button/icon-button.styles.js +53 -0
- package/dist/components/input/input.component.d.ts +78 -0
- package/dist/components/input/input.component.js +513 -0
- package/dist/components/input/input.d.ts +8 -0
- package/dist/components/input/input.js +5 -0
- package/dist/components/input/input.styles.d.ts +1 -0
- package/dist/components/input/input.styles.js +308 -0
- package/dist/components/menu/menu.component.d.ts +20 -0
- package/dist/components/menu/menu.component.js +123 -0
- package/dist/components/menu/menu.d.ts +8 -0
- package/dist/components/menu/menu.js +5 -0
- package/dist/components/menu/menu.styles.d.ts +1 -0
- package/dist/components/menu/menu.styles.js +20 -0
- package/dist/components/menu-item/menu-item.component.d.ts +34 -0
- package/dist/components/menu-item/menu-item.component.js +211 -0
- package/dist/components/menu-item/menu-item.d.ts +8 -0
- package/dist/components/menu-item/menu-item.js +5 -0
- package/dist/components/menu-item/menu-item.styles.d.ts +1 -0
- package/dist/components/menu-item/menu-item.styles.js +157 -0
- package/dist/components/menu-item/submenu-controller.d.ts +34 -0
- package/dist/components/menu-item/submenu-controller.js +246 -0
- package/dist/components/menu-label/menu-label.component.d.ts +15 -0
- package/dist/components/menu-label/menu-label.component.js +25 -0
- package/dist/components/menu-label/menu-label.d.ts +8 -0
- package/dist/components/menu-label/menu-label.js +5 -0
- package/dist/components/menu-label/menu-label.styles.d.ts +1 -0
- package/dist/components/menu-label/menu-label.styles.js +22 -0
- package/dist/components/option/option.component.d.ts +42 -0
- package/dist/components/option/option.component.js +161 -0
- package/dist/components/option/option.d.ts +8 -0
- package/dist/components/option/option.js +5 -0
- package/dist/components/option/option.styles.d.ts +1 -0
- package/dist/components/option/option.styles.js +108 -0
- package/dist/components/popup/popup.component.d.ts +44 -0
- package/dist/components/popup/popup.component.js +483 -0
- package/dist/components/popup/popup.d.ts +8 -0
- package/dist/components/popup/popup.js +6 -0
- package/dist/components/popup/popup.styles.d.ts +1 -0
- package/dist/components/popup/popup.styles.js +64 -0
- package/dist/components/qr-code/qr-code.component.d.ts +16 -0
- package/dist/components/qr-code/qr-code.component.js +94 -0
- package/dist/components/qr-code/qr-code.d.ts +8 -0
- package/dist/components/qr-code/qr-code.js +5 -0
- package/dist/components/qr-code/qr-code.styles.d.ts +1 -0
- package/dist/components/qr-code/qr-code.styles.js +9 -0
- package/dist/components/radio/radio.component.d.ts +19 -0
- package/dist/components/radio/radio.component.js +120 -0
- package/dist/components/radio/radio.d.ts +8 -0
- package/dist/components/radio/radio.js +5 -0
- package/dist/components/radio/radio.styles.d.ts +1 -0
- package/dist/components/radio/radio.styles.js +132 -0
- package/dist/components/radio-button/radio-button.component.d.ts +22 -0
- package/dist/components/radio-button/radio-button.component.js +131 -0
- package/dist/components/radio-button/radio-button.d.ts +8 -0
- package/dist/components/radio-button/radio-button.js +5 -0
- package/dist/components/radio-button/radio-button.styles.d.ts +1 -0
- package/dist/components/radio-button/radio-button.styles.js +25 -0
- package/dist/components/radio-group/radio-group.component.d.ts +46 -0
- package/dist/components/radio-group/radio-group.component.js +379 -0
- package/dist/components/radio-group/radio-group.d.ts +8 -0
- package/dist/components/radio-group/radio-group.js +5 -0
- package/dist/components/radio-group/radio-group.styles.d.ts +1 -0
- package/dist/components/radio-group/radio-group.styles.js +42 -0
- package/dist/components/rating/rating.component.d.ts +37 -0
- package/dist/components/rating/rating.component.js +308 -0
- package/dist/components/rating/rating.d.ts +8 -0
- package/dist/components/rating/rating.js +5 -0
- package/dist/components/rating/rating.styles.d.ts +1 -0
- package/dist/components/rating/rating.styles.js +94 -0
- package/dist/components/resize-observer/resize-observer.component.d.ts +26 -0
- package/dist/components/resize-observer/resize-observer.component.js +89 -0
- package/dist/components/resize-observer/resize-observer.d.ts +8 -0
- package/dist/components/resize-observer/resize-observer.js +5 -0
- package/dist/components/resize-observer/resize-observer.styles.d.ts +1 -0
- package/dist/components/resize-observer/resize-observer.styles.js +9 -0
- package/dist/components/select/select.component.d.ts +174 -0
- package/dist/components/select/select.component.js +960 -0
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/select/select.js +5 -0
- package/dist/components/select/select.styles.d.ts +1 -0
- package/dist/components/select/select.styles.js +363 -0
- package/dist/components/spinner/spinner.component.d.ts +20 -0
- package/dist/components/spinner/spinner.component.js +47 -0
- package/dist/components/spinner/spinner.d.ts +8 -0
- package/dist/components/spinner/spinner.js +5 -0
- package/dist/components/spinner/spinner.styles.d.ts +1 -0
- package/dist/components/spinner/spinner.styles.js +61 -0
- package/dist/components/switch/switch.component.d.ts +84 -0
- package/dist/components/switch/switch.component.js +281 -0
- package/dist/components/switch/switch.d.ts +8 -0
- package/dist/components/switch/switch.js +5 -0
- package/dist/components/switch/switch.styles.d.ts +1 -0
- package/dist/components/switch/switch.styles.js +178 -0
- package/dist/components/tab/tab.component.d.ts +22 -0
- package/dist/components/tab/tab.component.js +112 -0
- package/dist/components/tab/tab.d.ts +8 -0
- package/dist/components/tab/tab.js +5 -0
- package/dist/components/tab/tab.styles.d.ts +1 -0
- package/dist/components/tab/tab.styles.js +85 -0
- package/dist/components/tab-group/tab-group.component.d.ts +51 -0
- package/dist/components/tab-group/tab-group.component.js +513 -0
- package/dist/components/tab-group/tab-group.d.ts +8 -0
- package/dist/components/tab-group/tab-group.js +5 -0
- package/dist/components/tab-group/tab-group.styles.d.ts +1 -0
- package/dist/components/tab-group/tab-group.styles.js +219 -0
- package/dist/components/tab-panel/tab-panel.component.d.ts +12 -0
- package/dist/components/tab-panel/tab-panel.component.js +56 -0
- package/dist/components/tab-panel/tab-panel.d.ts +8 -0
- package/dist/components/tab-panel/tab-panel.js +5 -0
- package/dist/components/tab-panel/tab-panel.styles.d.ts +1 -0
- package/dist/components/tab-panel/tab-panel.styles.js +18 -0
- package/dist/components/tag/tag.component.d.ts +38 -0
- package/dist/components/tag/tag.component.js +109 -0
- package/dist/components/tag/tag.d.ts +8 -0
- package/dist/components/tag/tag.js +5 -0
- package/dist/components/tag/tag.styles.d.ts +1 -0
- package/dist/components/tag/tag.styles.js +155 -0
- package/dist/components/tooltip/tooltip.component.d.ts +38 -0
- package/dist/components/tooltip/tooltip.component.js +267 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +5 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +1 -0
- package/dist/components/tooltip/tooltip.styles.js +59 -0
- package/dist/default.css +1005 -0
- package/dist/events/events.d.ts +33 -0
- package/dist/events/events.js +1 -0
- package/dist/events/pc-after-collapse.d.ts +6 -0
- package/dist/events/pc-after-collapse.js +1 -0
- package/dist/events/pc-after-expand.d.ts +6 -0
- package/dist/events/pc-after-expand.js +1 -0
- package/dist/events/pc-after-hide.d.ts +6 -0
- package/dist/events/pc-after-hide.js +1 -0
- package/dist/events/pc-after-show.d.ts +6 -0
- package/dist/events/pc-after-show.js +1 -0
- package/dist/events/pc-blur.d.ts +6 -0
- package/dist/events/pc-blur.js +1 -0
- package/dist/events/pc-cancel.d.ts +6 -0
- package/dist/events/pc-cancel.js +1 -0
- package/dist/events/pc-change.d.ts +6 -0
- package/dist/events/pc-change.js +1 -0
- package/dist/events/pc-clear.d.ts +6 -0
- package/dist/events/pc-clear.js +1 -0
- package/dist/events/pc-close.d.ts +6 -0
- package/dist/events/pc-close.js +1 -0
- package/dist/events/pc-collapse.d.ts +6 -0
- package/dist/events/pc-collapse.js +1 -0
- package/dist/events/pc-copy.d.ts +8 -0
- package/dist/events/pc-copy.js +1 -0
- package/dist/events/pc-error.d.ts +8 -0
- package/dist/events/pc-error.js +1 -0
- package/dist/events/pc-expand.d.ts +6 -0
- package/dist/events/pc-expand.js +1 -0
- package/dist/events/pc-finish.d.ts +6 -0
- package/dist/events/pc-finish.js +1 -0
- package/dist/events/pc-focus.d.ts +6 -0
- package/dist/events/pc-focus.js +1 -0
- package/dist/events/pc-hide.d.ts +6 -0
- package/dist/events/pc-hide.js +1 -0
- package/dist/events/pc-hover.d.ts +9 -0
- package/dist/events/pc-hover.js +1 -0
- package/dist/events/pc-initial-focus.d.ts +6 -0
- package/dist/events/pc-initial-focus.js +1 -0
- package/dist/events/pc-input.d.ts +6 -0
- package/dist/events/pc-input.js +1 -0
- package/dist/events/pc-invalid.d.ts +6 -0
- package/dist/events/pc-invalid.js +1 -0
- package/dist/events/pc-lazy-change.d.ts +6 -0
- package/dist/events/pc-lazy-change.js +1 -0
- package/dist/events/pc-lazy-load.d.ts +6 -0
- package/dist/events/pc-lazy-load.js +1 -0
- package/dist/events/pc-load.d.ts +6 -0
- package/dist/events/pc-load.js +1 -0
- package/dist/events/pc-mutation.d.ts +8 -0
- package/dist/events/pc-mutation.js +1 -0
- package/dist/events/pc-remove.d.ts +6 -0
- package/dist/events/pc-remove.js +1 -0
- package/dist/events/pc-reposition.d.ts +6 -0
- package/dist/events/pc-reposition.js +1 -0
- package/dist/events/pc-request-close.d.ts +8 -0
- package/dist/events/pc-request-close.js +1 -0
- package/dist/events/pc-resize.d.ts +8 -0
- package/dist/events/pc-resize.js +1 -0
- package/dist/events/pc-select.d.ts +9 -0
- package/dist/events/pc-select.js +1 -0
- package/dist/events/pc-selection-change.js +1 -0
- package/dist/events/pc-show.d.ts +6 -0
- package/dist/events/pc-show.js +1 -0
- package/dist/events/pc-slide-change.js +1 -0
- package/dist/events/pc-start.d.ts +6 -0
- package/dist/events/pc-start.js +1 -0
- package/dist/events/pc-tab-hide.d.ts +8 -0
- package/dist/events/pc-tab-hide.js +1 -0
- package/dist/events/pc-tab-show.d.ts +8 -0
- package/dist/events/pc-tab-show.js +1 -0
- package/dist/global-shims.d.ts +18 -0
- package/dist/global-shims.js +96 -0
- package/dist/internal/active-elements.d.ts +2 -0
- package/dist/internal/active-elements.js +16 -0
- package/dist/internal/animate.d.ts +10 -0
- package/dist/internal/animate.js +45 -0
- package/dist/internal/close-active-element.d.ts +1 -0
- package/dist/internal/close-active-element.js +8 -0
- package/dist/internal/debounce.d.ts +1 -0
- package/dist/internal/debounce.js +14 -0
- package/dist/internal/default-value.d.ts +2 -0
- package/dist/internal/default-value.js +26 -0
- package/dist/internal/drag.d.ts +7 -0
- package/dist/internal/drag.js +27 -0
- package/dist/internal/emit.d.ts +1 -0
- package/dist/internal/emit.js +14 -0
- package/dist/internal/event.d.ts +1 -0
- package/dist/internal/event.js +13 -0
- package/dist/internal/form.d.ts +41 -0
- package/dist/internal/form.js +282 -0
- package/dist/internal/math.d.ts +1 -0
- package/dist/internal/math.js +12 -0
- package/dist/internal/modal.d.ts +19 -0
- package/dist/internal/modal.js +116 -0
- package/dist/internal/offset.d.ts +4 -0
- package/dist/internal/offset.js +10 -0
- package/dist/internal/scroll.d.ts +3 -0
- package/dist/internal/scroll.js +70 -0
- package/dist/internal/scrollend-polyfill.d.ts +1 -0
- package/dist/internal/scrollend-polyfill.js +65 -0
- package/dist/internal/slot.d.ts +14 -0
- package/dist/internal/slot.js +75 -0
- package/dist/internal/string.d.ts +1 -0
- package/dist/internal/string.js +5 -0
- package/dist/internal/tabbable.d.ts +5 -0
- package/dist/internal/tabbable.js +145 -0
- package/dist/internal/watch.d.ts +11 -0
- package/dist/internal/watch.js +32 -0
- package/dist/native-styles.css +261 -0
- package/dist/placer-autoloader.d.ts +1 -0
- package/dist/placer-autoloader.js +41 -0
- package/dist/placer.d.ts +44 -0
- package/dist/placer.js +43 -0
- package/dist/style-utilities/fouce.css +13 -0
- package/dist/style-utilities/style-utilities.css +2 -0
- package/dist/style-utilities/visually-hidden.css +12 -0
- package/dist/utilities/animation-registry.d.ts +14 -0
- package/dist/utilities/animation-registry.js +39 -0
- package/dist/utilities/animation.d.ts +1 -0
- package/dist/utilities/animation.js +1 -0
- package/dist/utilities/base-path.d.ts +2 -0
- package/dist/utilities/base-path.js +8 -0
- package/dist/utilities/form.d.ts +2 -0
- package/dist/utilities/form.js +39 -0
- package/dist/utilities/icon-library.d.ts +1 -0
- package/dist/utilities/icon-library.js +1 -0
- package/dist/utility.css +41 -0
- package/package.json +82 -0
- package/src/animations/attention_seekers/bounce.ts +43 -0
- package/src/animations/attention_seekers/flash.ts +7 -0
- package/src/animations/attention_seekers/headShake.ts +8 -0
- package/src/animations/attention_seekers/heartBeat.ts +7 -0
- package/src/animations/attention_seekers/jello.ts +15 -0
- package/src/animations/attention_seekers/pulse.ts +5 -0
- package/src/animations/attention_seekers/rubberBand.ts +9 -0
- package/src/animations/attention_seekers/shake.ts +13 -0
- package/src/animations/attention_seekers/shakeX.ts +13 -0
- package/src/animations/attention_seekers/shakeY.ts +13 -0
- package/src/animations/attention_seekers/swing.ts +7 -0
- package/src/animations/attention_seekers/tada.ts +40 -0
- package/src/animations/attention_seekers/wobble.ts +24 -0
- package/src/animations/back_entrances/backInDown.ts +5 -0
- package/src/animations/back_entrances/backInLeft.ts +5 -0
- package/src/animations/back_entrances/backInRight.ts +5 -0
- package/src/animations/back_entrances/backInUp.ts +5 -0
- package/src/animations/back_exits/backOutDown.ts +5 -0
- package/src/animations/back_exits/backOutLeft.ts +5 -0
- package/src/animations/back_exits/backOutRight.ts +5 -0
- package/src/animations/back_exits/backOutUp.ts +5 -0
- package/src/animations/bouncing_entrances/bounceIn.ts +14 -0
- package/src/animations/bouncing_entrances/bounceInDown.ts +20 -0
- package/src/animations/bouncing_entrances/bounceInLeft.ts +20 -0
- package/src/animations/bouncing_entrances/bounceInRight.ts +20 -0
- package/src/animations/bouncing_entrances/bounceInUp.ts +20 -0
- package/src/animations/bouncing_exits/bounceOut.ts +6 -0
- package/src/animations/bouncing_exits/bounceOutDown.ts +18 -0
- package/src/animations/bouncing_exits/bounceOutLeft.ts +12 -0
- package/src/animations/bouncing_exits/bounceOutRight.ts +12 -0
- package/src/animations/bouncing_exits/bounceOutUp.ts +18 -0
- package/src/animations/easings/easings.ts +31 -0
- package/src/animations/fading_entrances/fadeIn.ts +4 -0
- package/src/animations/fading_entrances/fadeInBottomLeft.ts +4 -0
- package/src/animations/fading_entrances/fadeInBottomRight.ts +4 -0
- package/src/animations/fading_entrances/fadeInDown.ts +4 -0
- package/src/animations/fading_entrances/fadeInDownBig.ts +4 -0
- package/src/animations/fading_entrances/fadeInLeft.ts +4 -0
- package/src/animations/fading_entrances/fadeInLeftBig.ts +4 -0
- package/src/animations/fading_entrances/fadeInRight.ts +4 -0
- package/src/animations/fading_entrances/fadeInRightBig.ts +4 -0
- package/src/animations/fading_entrances/fadeInTopLeft.ts +4 -0
- package/src/animations/fading_entrances/fadeInTopRight.ts +4 -0
- package/src/animations/fading_entrances/fadeInUp.ts +4 -0
- package/src/animations/fading_entrances/fadeInUpBig.ts +4 -0
- package/src/animations/fading_exits/fadeOut.ts +4 -0
- package/src/animations/fading_exits/fadeOutBottomLeft.ts +4 -0
- package/src/animations/fading_exits/fadeOutBottomRight.ts +4 -0
- package/src/animations/fading_exits/fadeOutDown.ts +4 -0
- package/src/animations/fading_exits/fadeOutDownBig.ts +4 -0
- package/src/animations/fading_exits/fadeOutLeft.ts +4 -0
- package/src/animations/fading_exits/fadeOutLeftBig.ts +4 -0
- package/src/animations/fading_exits/fadeOutRight.ts +4 -0
- package/src/animations/fading_exits/fadeOutRightBig.ts +4 -0
- package/src/animations/fading_exits/fadeOutTopLeft.ts +4 -0
- package/src/animations/fading_exits/fadeOutTopRight.ts +4 -0
- package/src/animations/fading_exits/fadeOutUp.ts +4 -0
- package/src/animations/fading_exits/fadeOutUpBig.ts +4 -0
- package/src/animations/flippers/flip.ts +32 -0
- package/src/animations/flippers/flipInX.ts +20 -0
- package/src/animations/flippers/flipInY.ts +20 -0
- package/src/animations/flippers/flipOutX.ts +13 -0
- package/src/animations/flippers/flipOutY.ts +13 -0
- package/src/animations/index.ts +101 -0
- package/src/animations/lightspeed/lightSpeedInLeft.ts +10 -0
- package/src/animations/lightspeed/lightSpeedInRight.ts +10 -0
- package/src/animations/lightspeed/lightSpeedOutLeft.ts +8 -0
- package/src/animations/lightspeed/lightSpeedOutRight.ts +8 -0
- package/src/animations/rotating_entrances/rotateIn.ts +4 -0
- package/src/animations/rotating_entrances/rotateInDownLeft.ts +4 -0
- package/src/animations/rotating_entrances/rotateInDownRight.ts +4 -0
- package/src/animations/rotating_entrances/rotateInUpLeft.ts +4 -0
- package/src/animations/rotating_entrances/rotateInUpRight.ts +4 -0
- package/src/animations/rotating_exits/rotateOut.ts +4 -0
- package/src/animations/rotating_exits/rotateOutDownLeft.ts +4 -0
- package/src/animations/rotating_exits/rotateOutDownRight.ts +4 -0
- package/src/animations/rotating_exits/rotateOutUpLeft.ts +4 -0
- package/src/animations/rotating_exits/rotateOutUpRight.ts +4 -0
- package/src/animations/sliding_entrances/slideInDown.ts +4 -0
- package/src/animations/sliding_entrances/slideInLeft.ts +4 -0
- package/src/animations/sliding_entrances/slideInRight.ts +4 -0
- package/src/animations/sliding_entrances/slideInUp.ts +4 -0
- package/src/animations/sliding_exits/slideOutDown.ts +4 -0
- package/src/animations/sliding_exits/slideOutLeft.ts +4 -0
- package/src/animations/sliding_exits/slideOutRight.ts +4 -0
- package/src/animations/sliding_exits/slideOutUp.ts +4 -0
- package/src/animations/specials/hinge.ts +26 -0
- package/src/animations/specials/jackInTheBox.ts +11 -0
- package/src/animations/specials/rollIn.ts +8 -0
- package/src/animations/specials/rollOut.ts +8 -0
- package/src/animations/zooming_entrances/zoomIn.ts +4 -0
- package/src/animations/zooming_entrances/zoomInDown.ts +14 -0
- package/src/animations/zooming_entrances/zoomInLeft.ts +14 -0
- package/src/animations/zooming_entrances/zoomInRight.ts +14 -0
- package/src/animations/zooming_entrances/zoomInUp.ts +14 -0
- package/src/animations/zooming_exits/zoomOut.ts +5 -0
- package/src/animations/zooming_exits/zoomOutDown.ts +14 -0
- package/src/animations/zooming_exits/zoomOutLeft.ts +12 -0
- package/src/animations/zooming_exits/zoomOutRight.ts +12 -0
- package/src/animations/zooming_exits/zoomOutUp.ts +14 -0
- package/src/components/animation/animation.component.ts +224 -0
- package/src/components/animation/animation.styles.ts +7 -0
- package/src/components/animation/animation.ts +10 -0
- package/src/components/animation/animations.ts +13 -0
- package/src/components/avatar/avatar.component.ts +113 -0
- package/src/components/avatar/avatar.styles.ts +66 -0
- package/src/components/avatar/avatar.ts +10 -0
- package/src/components/badge/badge.component.ts +54 -0
- package/src/components/badge/badge.styles.ts +74 -0
- package/src/components/badge/badge.ts +10 -0
- package/src/components/button/button.component.ts +335 -0
- package/src/components/button/button.styles.ts +320 -0
- package/src/components/button/button.ts +10 -0
- package/src/components/button-group/button-group.component.ts +101 -0
- package/src/components/button-group/button-group.styles.ts +12 -0
- package/src/components/button-group/button-group.ts +10 -0
- package/src/components/callout/callout.component.ts +60 -0
- package/src/components/callout/callout.styles.ts +66 -0
- package/src/components/callout/callout.ts +10 -0
- package/src/components/card/card.component.ts +59 -0
- package/src/components/card/card.styles.ts +63 -0
- package/src/components/card/card.ts +10 -0
- package/src/components/checkbox/checkbox.component.ts +244 -0
- package/src/components/checkbox/checkbox.styles.ts +164 -0
- package/src/components/checkbox/checkbox.ts +10 -0
- package/src/components/comparer/comparer.component.ts +188 -0
- package/src/components/comparer/comparer.styles.ts +73 -0
- package/src/components/comparer/comparer.ts +10 -0
- package/src/components/copy-button/copy-button.component.ts +272 -0
- package/src/components/copy-button/copy-button.styles.ts +59 -0
- package/src/components/copy-button/copy-button.ts +10 -0
- package/src/components/details/details.component.ts +259 -0
- package/src/components/details/details.styles.ts +84 -0
- package/src/components/details/details.ts +10 -0
- package/src/components/dialog/dialog.component.ts +403 -0
- package/src/components/dialog/dialog.styles.ts +121 -0
- package/src/components/dialog/dialog.ts +10 -0
- package/src/components/divider/divider.component.ts +42 -0
- package/src/components/divider/divider.styles.ts +27 -0
- package/src/components/divider/divider.ts +10 -0
- package/src/components/drawer/drawer.component.ts +565 -0
- package/src/components/drawer/drawer.styles.ts +155 -0
- package/src/components/drawer/drawer.ts +10 -0
- package/src/components/dropdown/dropdown.component.ts +430 -0
- package/src/components/dropdown/dropdown.styles.ts +50 -0
- package/src/components/dropdown/dropdown.ts +10 -0
- package/src/components/icon/icon.component.ts +239 -0
- package/src/components/icon/icon.styles.ts +47 -0
- package/src/components/icon/icon.ts +10 -0
- package/src/components/icon/library.default.ts +10 -0
- package/src/components/icon/library.system.ts +136 -0
- package/src/components/icon/library.ts +54 -0
- package/src/components/icon-button/icon-button.component.ts +129 -0
- package/src/components/icon-button/icon-button.styles.ts +51 -0
- package/src/components/icon-button/icon-button.ts +10 -0
- package/src/components/input/input.component.ts +496 -0
- package/src/components/input/input.styles.ts +306 -0
- package/src/components/input/input.ts +10 -0
- package/src/components/menu/menu.component.ts +161 -0
- package/src/components/menu/menu.styles.ts +18 -0
- package/src/components/menu/menu.ts +10 -0
- package/src/components/menu-item/menu-item.component.ts +190 -0
- package/src/components/menu-item/menu-item.styles.ts +155 -0
- package/src/components/menu-item/menu-item.ts +10 -0
- package/src/components/menu-item/submenu-controller.ts +337 -0
- package/src/components/menu-label/menu-label.component.ts +22 -0
- package/src/components/menu-label/menu-label.styles.ts +20 -0
- package/src/components/menu-label/menu-label.ts +10 -0
- package/src/components/option/option.component.ts +141 -0
- package/src/components/option/option.styles.ts +106 -0
- package/src/components/option/option.ts +10 -0
- package/src/components/popup/popup.component.ts +540 -0
- package/src/components/popup/popup.styles.ts +63 -0
- package/src/components/popup/popup.ts +12 -0
- package/src/components/qr-code/qr-code.component.ts +70 -0
- package/src/components/qr-code/qr-code.styles.ts +7 -0
- package/src/components/qr-code/qr-code.ts +10 -0
- package/src/components/radio/radio.component.ts +100 -0
- package/src/components/radio/radio.styles.ts +130 -0
- package/src/components/radio/radio.ts +10 -0
- package/src/components/radio-button/radio-button.component.ts +116 -0
- package/src/components/radio-button/radio-button.styles.ts +23 -0
- package/src/components/radio-button/radio-button.ts +10 -0
- package/src/components/radio-group/radio-group.component.ts +404 -0
- package/src/components/radio-group/radio-group.styles.ts +40 -0
- package/src/components/radio-group/radio-group.ts +10 -0
- package/src/components/rating/rating.component.ts +319 -0
- package/src/components/rating/rating.styles.ts +92 -0
- package/src/components/rating/rating.ts +10 -0
- package/src/components/resize-observer/resize-observer.component.ts +91 -0
- package/src/components/resize-observer/resize-observer.styles.ts +7 -0
- package/src/components/resize-observer/resize-observer.ts +10 -0
- package/src/components/select/select.component.ts +1013 -0
- package/src/components/select/select.styles.ts +361 -0
- package/src/components/select/select.ts +10 -0
- package/src/components/spinner/spinner.component.ts +38 -0
- package/src/components/spinner/spinner.styles.ts +59 -0
- package/src/components/spinner/spinner.ts +10 -0
- package/src/components/switch/switch.component.ts +253 -0
- package/src/components/switch/switch.styles.ts +176 -0
- package/src/components/switch/switch.ts +10 -0
- package/src/components/tab/tab.component.ts +87 -0
- package/src/components/tab/tab.styles.ts +83 -0
- package/src/components/tab/tab.ts +10 -0
- package/src/components/tab-group/tab-group.component.ts +607 -0
- package/src/components/tab-group/tab-group.styles.ts +217 -0
- package/src/components/tab-group/tab-group.ts +10 -0
- package/src/components/tab-panel/tab-panel.component.ts +43 -0
- package/src/components/tab-panel/tab-panel.styles.ts +16 -0
- package/src/components/tab-panel/tab-panel.ts +10 -0
- package/src/components/tag/tag.component.ts +94 -0
- package/src/components/tag/tag.styles.ts +153 -0
- package/src/components/tag/tag.ts +10 -0
- package/src/components/tooltip/tooltip.component.ts +276 -0
- package/src/components/tooltip/tooltip.styles.ts +57 -0
- package/src/components/tooltip/tooltip.ts +10 -0
- package/src/default.css +1005 -0
- package/src/events/events.ts +35 -0
- package/src/events/pc-after-collapse.ts +7 -0
- package/src/events/pc-after-expand.ts +7 -0
- package/src/events/pc-after-hide.ts +7 -0
- package/src/events/pc-after-show.ts +7 -0
- package/src/events/pc-blur.ts +7 -0
- package/src/events/pc-cancel.ts +7 -0
- package/src/events/pc-change.ts +7 -0
- package/src/events/pc-clear.ts +7 -0
- package/src/events/pc-close.ts +7 -0
- package/src/events/pc-collapse.ts +7 -0
- package/src/events/pc-copy.ts +7 -0
- package/src/events/pc-error.ts +7 -0
- package/src/events/pc-expand.ts +7 -0
- package/src/events/pc-finish.ts +7 -0
- package/src/events/pc-focus.ts +7 -0
- package/src/events/pc-hide.ts +7 -0
- package/src/events/pc-hover.ts +10 -0
- package/src/events/pc-initial-focus.ts +7 -0
- package/src/events/pc-input.ts +7 -0
- package/src/events/pc-invalid.ts +7 -0
- package/src/events/pc-lazy-change.ts +7 -0
- package/src/events/pc-lazy-load.ts +7 -0
- package/src/events/pc-load.ts +7 -0
- package/src/events/pc-mutation.ts +7 -0
- package/src/events/pc-remove.ts +7 -0
- package/src/events/pc-reposition.ts +7 -0
- package/src/events/pc-request-close.ts +9 -0
- package/src/events/pc-resize.ts +7 -0
- package/src/events/pc-select.ts +9 -0
- package/src/events/pc-selection-change.ts +10 -0
- package/src/events/pc-show.ts +7 -0
- package/src/events/pc-slide-change.ts +13 -0
- package/src/events/pc-start.ts +7 -0
- package/src/events/pc-tab-hide.ts +7 -0
- package/src/events/pc-tab-show.ts +7 -0
- package/src/global-shims.ts +126 -0
- package/src/global.d.ts +31 -0
- package/src/internal/active-elements.ts +21 -0
- package/src/internal/animate.ts +62 -0
- package/src/internal/close-active-element.ts +7 -0
- package/src/internal/debounce.ts +25 -0
- package/src/internal/default-value.ts +40 -0
- package/src/internal/drag.ts +36 -0
- package/src/internal/emit.ts +19 -0
- package/src/internal/event.ts +12 -0
- package/src/internal/form.ts +389 -0
- package/src/internal/math.ts +14 -0
- package/src/internal/modal.ts +157 -0
- package/src/internal/offset.ts +12 -0
- package/src/internal/scroll.ts +95 -0
- package/src/internal/scrollend-polyfill.ts +99 -0
- package/src/internal/slot.ts +110 -0
- package/src/internal/string.ts +3 -0
- package/src/internal/tabbable.ts +207 -0
- package/src/internal/watch.ts +58 -0
- package/src/native-styles.css +261 -0
- package/src/placer-autoloader.ts +53 -0
- package/src/placer.ts +53 -0
- package/src/style-utilities/fouce.css +13 -0
- package/src/style-utilities/style-utilities.css +2 -0
- package/src/style-utilities/visually-hidden.css +12 -0
- package/src/utilities/animation-registry.ts +72 -0
- package/src/utilities/animation.ts +4 -0
- package/src/utilities/base-path.ts +39 -0
- package/src/utilities/form.ts +41 -0
- package/src/utilities/icon-library.ts +4 -0
- package/src/utility.css +41 -0
|
@@ -0,0 +1,960 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { LitElement, html } from 'lit';
|
|
3
|
+
import { query, state, property, customElement } from 'lit/decorators.js';
|
|
4
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
5
|
+
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
|
|
6
|
+
import { setDefaultAnimation, getAnimation } from '../../utilities/animation-registry.js';
|
|
7
|
+
import { stopAnimations, animateTo } from '../../internal/animate.js';
|
|
8
|
+
import { FormControlController } from '../../internal/form.js';
|
|
9
|
+
import { HasSlotController } from '../../internal/slot.js';
|
|
10
|
+
import { scrollIntoView } from '../../internal/scroll.js';
|
|
11
|
+
import { waitForEvent } from '../../internal/event.js';
|
|
12
|
+
import { watch } from '../../internal/watch.js';
|
|
13
|
+
import { emit } from '../../internal/emit.js';
|
|
14
|
+
import { PcIcon } from '../icon/icon.component.js';
|
|
15
|
+
import { PcPopup } from '../popup/popup.component.js';
|
|
16
|
+
import { PcTag } from '../tag/tag.component.js';
|
|
17
|
+
import { styles } from './select.styles.js';
|
|
18
|
+
|
|
19
|
+
setDefaultAnimation("select.show", {
|
|
20
|
+
keyframes: [
|
|
21
|
+
{ opacity: 0, transform: "scale(0.92)" },
|
|
22
|
+
{ opacity: 1, transform: "scale(1)" },
|
|
23
|
+
],
|
|
24
|
+
options: {
|
|
25
|
+
duration: 200,
|
|
26
|
+
easing: "cubic-bezier(0.25, 0.8, 0.4, 1)",
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
setDefaultAnimation("select.hide", {
|
|
30
|
+
keyframes: [
|
|
31
|
+
{ opacity: 1, transform: "scale(1)" },
|
|
32
|
+
{ opacity: 0, transform: "scale(0.9)" },
|
|
33
|
+
],
|
|
34
|
+
options: {
|
|
35
|
+
duration: 150,
|
|
36
|
+
easing: "cubic-bezier(0.4, 0, 1, 1)",
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
/**
|
|
40
|
+
* @summary Selects allow you to choose items from a menu of predefined options.
|
|
41
|
+
* @status experimental
|
|
42
|
+
* @since 0.5.1
|
|
43
|
+
*
|
|
44
|
+
* @dependency pc-icon
|
|
45
|
+
* @dependency pc-popup
|
|
46
|
+
* @dependency pc-tag
|
|
47
|
+
*
|
|
48
|
+
* @slot — The listbox options. Only `<pc-option>` and `<pc-divider>` elements can be slotted here. You can use `<pc-divider>` to group items visually.
|
|
49
|
+
* @slot label — The input’s label. Alternatively, you can use the `label` attribute.
|
|
50
|
+
* @slot prefix — Used to prepend a presentational icon or similar element to the combobox.
|
|
51
|
+
* @slot suffix — Used to append a presentational icon or similar element to the combobox.
|
|
52
|
+
* @slot clear-icon — An icon to use in place of the default clear icon.
|
|
53
|
+
* @slot expand-icon — The icon to show when the select is expanded and collapsed. Rotates on open and close.
|
|
54
|
+
* @slot hint — Text that describes how to use the input. Alternatively, you can use the `hint` attribute.
|
|
55
|
+
*
|
|
56
|
+
* @event pc-change — Emitted when the select’s value changes.
|
|
57
|
+
* @event pc-clear — Emitted when the select’s value is cleared.
|
|
58
|
+
* @event pc-input — Emitted when the select receives input.
|
|
59
|
+
* @event pc-focus — Emitted when the select gains focus.
|
|
60
|
+
* @event pc-blur — Emitted when the select loses focus.
|
|
61
|
+
* @event pc-show — Emitted when the select’s menu opens.
|
|
62
|
+
* @event pc-after-show — Emitted after the select’s menu opens and all animations are complete.
|
|
63
|
+
* @event pc-hide — Emitted when the select’s menu closes.
|
|
64
|
+
* @event pc-after-hide — Emitted after the select’s menu closes and all animations are complete.
|
|
65
|
+
* @event pc-invalid — Emitted when the select has been checked for validity and its constraints aren’t satisfied.
|
|
66
|
+
*
|
|
67
|
+
* @csspart form-control — The form control that wraps the label, input and hint text.
|
|
68
|
+
* @csspart label — The label’s wrapper.
|
|
69
|
+
* @csspart input — The select’s wrapper.
|
|
70
|
+
* @csspart hint — The hint’s wrapper.
|
|
71
|
+
* @csspart combobox — The container the wraps the prefix, suffix, combobox, clear icon and expand button.
|
|
72
|
+
* @csspart prefix — The container that wraps the prefix slot.
|
|
73
|
+
* @csspart suffix — The container that wraps the suffix slot.
|
|
74
|
+
* @csspart display-input — The element that displays the selected option’s label, an `<input>` element.
|
|
75
|
+
* @csspart listbox — The listbox container where options are slotted.
|
|
76
|
+
* @csspart tags — The container that houses option tags when `multiselect` is used.
|
|
77
|
+
* @csspart tag — The individual tags that represent each multiselect option.
|
|
78
|
+
* @csspart tag__base — The tag’s base part.
|
|
79
|
+
* @csspart tag__content — The tag’s content part.
|
|
80
|
+
* @csspart tag__remove-button — The tag’s remove button.
|
|
81
|
+
* @csspart tag__remove-button__base — The tag’s remove button base part.
|
|
82
|
+
* @csspart clear-button — The clear button.
|
|
83
|
+
* @csspart expand-icon — The container that wraps the expand icon.
|
|
84
|
+
*/
|
|
85
|
+
let PcSelect = class PcSelect extends LitElement {
|
|
86
|
+
constructor() {
|
|
87
|
+
super(...arguments);
|
|
88
|
+
// @ts-expect-error
|
|
89
|
+
this.formControlController = new FormControlController(this, {
|
|
90
|
+
assumeInteractionOn: ["pc-blur", "pc-input"],
|
|
91
|
+
});
|
|
92
|
+
this.hasSlotController = new HasSlotController(this, "label", "hint");
|
|
93
|
+
this.typeToSelectString = "";
|
|
94
|
+
this.hasFocus = false;
|
|
95
|
+
/** @internal This is an internal property. */
|
|
96
|
+
this.displayLabel = "";
|
|
97
|
+
/** @internal This is an internal property. */
|
|
98
|
+
this.selectedOptions = [];
|
|
99
|
+
this.valueHasChanged = false;
|
|
100
|
+
/** The name of the select, submitted as a name/value pair with form data. */
|
|
101
|
+
this.name = "";
|
|
102
|
+
this._value = "";
|
|
103
|
+
/** The default value of the select. Primarily used for resetting the select. */
|
|
104
|
+
this.defaultValue = "";
|
|
105
|
+
/** The select’s size. */
|
|
106
|
+
this.size = "medium";
|
|
107
|
+
/** Placeholder text to show as a hint when the select is empty. */
|
|
108
|
+
this.placeholder = "";
|
|
109
|
+
/** Allows more than one option to be selected. */
|
|
110
|
+
this.multiple = false;
|
|
111
|
+
/** The maximum number of selected options to show when the `multiple` attribute is true. After the maximum limit, “+number” will be shown to indicate the number of additional items that are selected. Set the value to 0 to remove the limit. */
|
|
112
|
+
this.maxOptionsVisible = 3;
|
|
113
|
+
/** Disables the select. */
|
|
114
|
+
this.disabled = false;
|
|
115
|
+
/** Adds a clear button when the select is not empty. */
|
|
116
|
+
this.clearable = false;
|
|
117
|
+
/** Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can use the `show()` and `hide()` methods and this attribute will reflect the select’s open state. */
|
|
118
|
+
this.open = false;
|
|
119
|
+
/** Enable this option to prevent the listbox from being clipped when the component is placed inside a container with `overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all scenarios. */
|
|
120
|
+
this.hoist = false;
|
|
121
|
+
/** Draws a filled select control. */
|
|
122
|
+
this.filled = false;
|
|
123
|
+
/** Draws a pill‐style select. */
|
|
124
|
+
this.pill = false;
|
|
125
|
+
/** The select’s label. If you need to display HTML, use the `label` slot instead. */
|
|
126
|
+
this.label = "";
|
|
127
|
+
/** The preferred placement of the select’s listbox. Note that the actual placement may vary to keep the listbox inside of the viewport. */
|
|
128
|
+
this.placement = "bottom";
|
|
129
|
+
/** The select’s hint. If you need to display HTML, use the `hint` slot instead. */
|
|
130
|
+
this.hint = "";
|
|
131
|
+
/** By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you to place the form control outside of a form and associate it with the form that has this `id`. The form must be in the same document or shadow root for this to work. */
|
|
132
|
+
this.form = "";
|
|
133
|
+
/** Indicates if the select must be filled in or not. */
|
|
134
|
+
this.required = false;
|
|
135
|
+
/** A function that customises the tags to be rendered when the `multiple` attribute is true. The first parameter is the option, the second parameter is the current tag’s index. The function should either return either a Lit `TemplateResult` or a string containing trusted HTML of the symbol to render at the specified value. */
|
|
136
|
+
this.getTag = (option) => {
|
|
137
|
+
return html `
|
|
138
|
+
<pc-tag
|
|
139
|
+
part="tag"
|
|
140
|
+
size=${this.size}
|
|
141
|
+
?pill=${this.pill}
|
|
142
|
+
removable
|
|
143
|
+
@pc-remove=${(event) => this.handleTagRemove(event, option)}
|
|
144
|
+
exportparts="
|
|
145
|
+
base:tag__base,
|
|
146
|
+
content:tag__content,
|
|
147
|
+
remove-button:tag__remove-button,
|
|
148
|
+
remove-button__base:tag__remove-button__base
|
|
149
|
+
"
|
|
150
|
+
>
|
|
151
|
+
${option.getTextLabel()}
|
|
152
|
+
</pc-tag>
|
|
153
|
+
`;
|
|
154
|
+
};
|
|
155
|
+
this.handleDocumentFocusIn = (event) => {
|
|
156
|
+
const path = event.composedPath();
|
|
157
|
+
if (this && !path.includes(this)) {
|
|
158
|
+
this.hide();
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
this.handleDocumentKeyDown = (event) => {
|
|
162
|
+
const target = event.target;
|
|
163
|
+
const isClearButton = target.closest(".clear-button") !== null;
|
|
164
|
+
const isIconButton = target.closest("pc-icon-button") !== null;
|
|
165
|
+
if (isClearButton || isIconButton) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
if (event.key === "Escape" && this.open && !this.closeWatcher) {
|
|
169
|
+
event.preventDefault();
|
|
170
|
+
event.stopPropagation();
|
|
171
|
+
this.hide();
|
|
172
|
+
this.displayInput.focus({ preventScroll: true });
|
|
173
|
+
}
|
|
174
|
+
if (event.key === "Enter" ||
|
|
175
|
+
(event.key === " " && this.typeToSelectString === "")) {
|
|
176
|
+
event.preventDefault();
|
|
177
|
+
event.stopImmediatePropagation();
|
|
178
|
+
if (!this.open) {
|
|
179
|
+
this.show();
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
if (this.currentOption && !this.currentOption.disabled) {
|
|
183
|
+
this.valueHasChanged = true;
|
|
184
|
+
if (this.multiple) {
|
|
185
|
+
this.toggleOptionSelection(this.currentOption);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
this.setSelectedOptions(this.currentOption);
|
|
189
|
+
}
|
|
190
|
+
this.updateComplete.then(() => {
|
|
191
|
+
emit(this, "pc-input");
|
|
192
|
+
emit(this, "pc-change");
|
|
193
|
+
});
|
|
194
|
+
if (!this.multiple) {
|
|
195
|
+
this.hide();
|
|
196
|
+
this.displayInput.focus({ preventScroll: true });
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return;
|
|
200
|
+
}
|
|
201
|
+
if (["ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
202
|
+
const allOptions = this.getAllOptions();
|
|
203
|
+
const currentIndex = allOptions.indexOf(this.currentOption);
|
|
204
|
+
let newIndex = Math.max(0, currentIndex);
|
|
205
|
+
event.preventDefault();
|
|
206
|
+
if (!this.open) {
|
|
207
|
+
this.show();
|
|
208
|
+
if (this.currentOption) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
if (event.key === "ArrowUp") {
|
|
213
|
+
newIndex = currentIndex - 1;
|
|
214
|
+
if (newIndex < 0) {
|
|
215
|
+
newIndex = allOptions.length - 1;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
else if (event.key === "ArrowDown") {
|
|
219
|
+
newIndex = currentIndex + 1;
|
|
220
|
+
if (newIndex > allOptions.length - 1) {
|
|
221
|
+
newIndex = 0;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
else if (event.key === "Home") {
|
|
225
|
+
newIndex = 0;
|
|
226
|
+
}
|
|
227
|
+
else if (event.key === "End") {
|
|
228
|
+
newIndex = allOptions.length - 1;
|
|
229
|
+
}
|
|
230
|
+
this.setCurrentOption(allOptions[newIndex]);
|
|
231
|
+
}
|
|
232
|
+
if ((event.key && event.key.length === 1) ||
|
|
233
|
+
event.key === "Backspace") {
|
|
234
|
+
const allOptions = this.getAllOptions();
|
|
235
|
+
// Don’t block modifier keys
|
|
236
|
+
if (event.metaKey || event.ctrlKey || event.altKey) {
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
if (!this.open) {
|
|
240
|
+
if (event.key === "Backspace") {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
this.show();
|
|
244
|
+
}
|
|
245
|
+
event.stopPropagation();
|
|
246
|
+
event.preventDefault();
|
|
247
|
+
clearTimeout(this.typeToSelectTimeout);
|
|
248
|
+
this.typeToSelectTimeout = window.setTimeout(() => {
|
|
249
|
+
this.typeToSelectString = "";
|
|
250
|
+
}, 1000);
|
|
251
|
+
if (event.key === "Backspace") {
|
|
252
|
+
this.typeToSelectString = this.typeToSelectString.slice(0, -1);
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
this.typeToSelectString += event.key.toLowerCase();
|
|
256
|
+
}
|
|
257
|
+
for (const option of allOptions) {
|
|
258
|
+
const label = option.getTextLabel().toLowerCase();
|
|
259
|
+
if (label.startsWith(this.typeToSelectString)) {
|
|
260
|
+
this.setCurrentOption(option);
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
this.handleDocumentMouseDown = (event) => {
|
|
267
|
+
const path = event.composedPath();
|
|
268
|
+
if (this && !path.includes(this)) {
|
|
269
|
+
this.hide();
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
get value() {
|
|
274
|
+
return this._value;
|
|
275
|
+
}
|
|
276
|
+
/** The current value of the select, submitted as a name/value pair with form data. When the `multiple` attribute is true, the `value` attribute will be a space‐delimited list of values based on the options selected, and the `value` property will be an array. **For this reason, values must not contain spaces.** */
|
|
277
|
+
set value(value) {
|
|
278
|
+
if (this.multiple) {
|
|
279
|
+
value = Array.isArray(value) ? value : value.split(" ");
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
value = Array.isArray(value) ? value.join(" ") : value;
|
|
283
|
+
}
|
|
284
|
+
if (this._value === value) {
|
|
285
|
+
return;
|
|
286
|
+
}
|
|
287
|
+
this.valueHasChanged = true;
|
|
288
|
+
this._value = value;
|
|
289
|
+
}
|
|
290
|
+
/** Gets the validity state object. */
|
|
291
|
+
get validity() {
|
|
292
|
+
return this.valueInput.validity;
|
|
293
|
+
}
|
|
294
|
+
/** Gets the validation message. */
|
|
295
|
+
get validationMessage() {
|
|
296
|
+
return this.valueInput.validationMessage;
|
|
297
|
+
}
|
|
298
|
+
connectedCallback() {
|
|
299
|
+
super.connectedCallback();
|
|
300
|
+
setTimeout(() => {
|
|
301
|
+
this.handleDefaultSlotChange();
|
|
302
|
+
});
|
|
303
|
+
this.open = false;
|
|
304
|
+
}
|
|
305
|
+
addOpenListeners() {
|
|
306
|
+
document.addEventListener("focusin", this.handleDocumentFocusIn);
|
|
307
|
+
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
308
|
+
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
309
|
+
if (this.getRootNode() !== document) {
|
|
310
|
+
this.getRootNode().addEventListener("focusin", this.handleDocumentFocusIn);
|
|
311
|
+
}
|
|
312
|
+
if ("CloseWatcher" in window) {
|
|
313
|
+
this.closeWatcher?.destroy();
|
|
314
|
+
this.closeWatcher = new CloseWatcher();
|
|
315
|
+
this.closeWatcher.onclose = () => {
|
|
316
|
+
if (this.open) {
|
|
317
|
+
this.hide();
|
|
318
|
+
this.displayInput.focus({ preventScroll: true });
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
removeOpenListeners() {
|
|
324
|
+
document.removeEventListener("focusin", this.handleDocumentFocusIn);
|
|
325
|
+
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
326
|
+
document.removeEventListener("mousedown", this.handleDocumentMouseDown);
|
|
327
|
+
if (this.getRootNode() !== document) {
|
|
328
|
+
this.getRootNode().removeEventListener("focusin", this.handleDocumentFocusIn);
|
|
329
|
+
}
|
|
330
|
+
this.closeWatcher?.destroy();
|
|
331
|
+
}
|
|
332
|
+
handleFocus() {
|
|
333
|
+
this.hasFocus = true;
|
|
334
|
+
this.displayInput.setSelectionRange(0, 0);
|
|
335
|
+
emit(this, "pc-focus");
|
|
336
|
+
}
|
|
337
|
+
handleBlur() {
|
|
338
|
+
this.hasFocus = false;
|
|
339
|
+
emit(this, "pc-blur");
|
|
340
|
+
}
|
|
341
|
+
handleLabelClick() {
|
|
342
|
+
this.displayInput.focus();
|
|
343
|
+
}
|
|
344
|
+
handleComboboxMouseDown(event) {
|
|
345
|
+
const path = event.composedPath();
|
|
346
|
+
const isIconButton = path.some((element) => element instanceof Element &&
|
|
347
|
+
element.tagName.toLowerCase() === "pc-icon-button");
|
|
348
|
+
if (this.disabled || isIconButton) {
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
event.preventDefault();
|
|
352
|
+
this.displayInput.focus({ preventScroll: true });
|
|
353
|
+
this.open = !this.open;
|
|
354
|
+
}
|
|
355
|
+
handleComboboxKeyDown(event) {
|
|
356
|
+
if (event.key === "Tab") {
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
event.stopPropagation();
|
|
360
|
+
this.handleDocumentKeyDown(event);
|
|
361
|
+
}
|
|
362
|
+
handleClearClick(event) {
|
|
363
|
+
event.stopPropagation();
|
|
364
|
+
this.valueHasChanged = true;
|
|
365
|
+
if (this.value !== "") {
|
|
366
|
+
this.setSelectedOptions([]);
|
|
367
|
+
this.displayInput.focus({ preventScroll: true });
|
|
368
|
+
this.updateComplete.then(() => {
|
|
369
|
+
emit(this, "pc-clear");
|
|
370
|
+
emit(this, "pc-input");
|
|
371
|
+
emit(this, "pc-change");
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
handleClearMouseDown(event) {
|
|
376
|
+
event.stopPropagation();
|
|
377
|
+
event.preventDefault();
|
|
378
|
+
}
|
|
379
|
+
handleOptionClick(event) {
|
|
380
|
+
const target = event.target;
|
|
381
|
+
const option = target.closest("pc-option");
|
|
382
|
+
const oldValue = this.value;
|
|
383
|
+
if (option && !option.disabled) {
|
|
384
|
+
this.valueHasChanged = true;
|
|
385
|
+
if (this.multiple) {
|
|
386
|
+
this.toggleOptionSelection(option);
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
this.setSelectedOptions(option);
|
|
390
|
+
}
|
|
391
|
+
this.updateComplete.then(() => this.displayInput.focus({ preventScroll: true }));
|
|
392
|
+
if (this.value !== oldValue) {
|
|
393
|
+
this.updateComplete.then(() => {
|
|
394
|
+
emit(this, "pc-input");
|
|
395
|
+
emit(this, "pc-change");
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
if (!this.multiple) {
|
|
399
|
+
this.hide();
|
|
400
|
+
this.displayInput.focus({ preventScroll: true });
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
// @internal Used by options to update labels
|
|
405
|
+
handleDefaultSlotChange() {
|
|
406
|
+
if (!customElements.get("pc-option")) {
|
|
407
|
+
customElements
|
|
408
|
+
.whenDefined("pc-option")
|
|
409
|
+
.then(() => this.handleDefaultSlotChange());
|
|
410
|
+
}
|
|
411
|
+
const allOptions = this.getAllOptions();
|
|
412
|
+
const val = this.valueHasChanged ? this.value : this.defaultValue;
|
|
413
|
+
const value = Array.isArray(val) ? val : [val];
|
|
414
|
+
const values = [];
|
|
415
|
+
allOptions.forEach((option) => values.push(option.value));
|
|
416
|
+
this.setSelectedOptions(allOptions.filter((element) => value.includes(element.value)));
|
|
417
|
+
}
|
|
418
|
+
handleTagRemove(event, option) {
|
|
419
|
+
event.stopPropagation();
|
|
420
|
+
this.valueHasChanged = true;
|
|
421
|
+
if (!this.disabled) {
|
|
422
|
+
this.toggleOptionSelection(option, false);
|
|
423
|
+
this.updateComplete.then(() => {
|
|
424
|
+
emit(this, "pc-input");
|
|
425
|
+
emit(this, "pc-change");
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
getAllOptions() {
|
|
430
|
+
return [...this.querySelectorAll("pc-option")];
|
|
431
|
+
}
|
|
432
|
+
getFirstOption() {
|
|
433
|
+
return this.querySelector("pc-option");
|
|
434
|
+
}
|
|
435
|
+
setCurrentOption(option) {
|
|
436
|
+
const allOptions = this.getAllOptions();
|
|
437
|
+
allOptions.forEach((element) => {
|
|
438
|
+
element.current = false;
|
|
439
|
+
element.tabIndex = -1;
|
|
440
|
+
});
|
|
441
|
+
if (option) {
|
|
442
|
+
this.currentOption = option;
|
|
443
|
+
option.current = true;
|
|
444
|
+
option.tabIndex = 0;
|
|
445
|
+
option.focus();
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
setSelectedOptions(option) {
|
|
449
|
+
const allOptions = this.getAllOptions();
|
|
450
|
+
const newSelectedOptions = Array.isArray(option) ? option : [option];
|
|
451
|
+
allOptions.forEach((element) => (element.selected = false));
|
|
452
|
+
if (newSelectedOptions.length) {
|
|
453
|
+
newSelectedOptions.forEach((element) => (element.selected = true));
|
|
454
|
+
}
|
|
455
|
+
this.selectionChanged();
|
|
456
|
+
}
|
|
457
|
+
toggleOptionSelection(option, force) {
|
|
458
|
+
if (force === true || force === false) {
|
|
459
|
+
option.selected = force;
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
option.selected = !option.selected;
|
|
463
|
+
}
|
|
464
|
+
this.selectionChanged();
|
|
465
|
+
}
|
|
466
|
+
selectionChanged() {
|
|
467
|
+
const options = this.getAllOptions();
|
|
468
|
+
this.selectedOptions = options.filter((element) => element.selected);
|
|
469
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
470
|
+
if (this.multiple) {
|
|
471
|
+
this.value = this.selectedOptions.map((element) => element.value);
|
|
472
|
+
if (this.placeholder && this.value.length === 0) {
|
|
473
|
+
this.displayLabel = "";
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
const optionsSelected = this.selectedOptions.length;
|
|
477
|
+
if (optionsSelected === 0) {
|
|
478
|
+
this.displayLabel = "No options selected";
|
|
479
|
+
}
|
|
480
|
+
else if (optionsSelected === 1) {
|
|
481
|
+
this.displayLabel = "One option selected";
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
this.displayLabel = `${optionsSelected} options selected`;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
else {
|
|
489
|
+
const selectedOption = this.selectedOptions[0];
|
|
490
|
+
this.value = selectedOption?.value ?? "";
|
|
491
|
+
this.displayLabel = selectedOption?.getTextLabel?.() ?? "";
|
|
492
|
+
}
|
|
493
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
494
|
+
this.updateComplete.then(() => {
|
|
495
|
+
this.formControlController.updateValidity();
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
/** @internal This is an internal property. */
|
|
499
|
+
get tags() {
|
|
500
|
+
return this.selectedOptions.map((option, index) => {
|
|
501
|
+
if (index < this.maxOptionsVisible || this.maxOptionsVisible <= 0) {
|
|
502
|
+
const tag = this.getTag(option, index);
|
|
503
|
+
return html `
|
|
504
|
+
<div
|
|
505
|
+
@pc-remove=${(event) => this.handleTagRemove(event, option)}
|
|
506
|
+
>
|
|
507
|
+
${typeof tag === "string" ? unsafeHTML(tag) : tag}
|
|
508
|
+
</div>
|
|
509
|
+
`;
|
|
510
|
+
}
|
|
511
|
+
else if (index === this.maxOptionsVisible) {
|
|
512
|
+
return html `
|
|
513
|
+
<pc-tag size=${this.size}>
|
|
514
|
+
+${this.selectedOptions.length - index}
|
|
515
|
+
</pc-tag>
|
|
516
|
+
`;
|
|
517
|
+
}
|
|
518
|
+
return html ``;
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
handleInvalid(event) {
|
|
522
|
+
this.formControlController.setValidity(false);
|
|
523
|
+
this.formControlController.emitInvalidEvent(event);
|
|
524
|
+
}
|
|
525
|
+
handleDisabledChange() {
|
|
526
|
+
if (this.disabled) {
|
|
527
|
+
this.open = false;
|
|
528
|
+
this.handleOpenChange();
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
532
|
+
super.attributeChangedCallback(name, oldValue, newValue);
|
|
533
|
+
/** This is a backwards compatibility call. In the next major version, we should make a clean separation between “value”, the attribute mapping to the “defaultValue” property, and “value”, the non‐reflecting property. */
|
|
534
|
+
if (name === "value") {
|
|
535
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
536
|
+
this.value = this.defaultValue;
|
|
537
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
handleValueChange() {
|
|
541
|
+
if (!this.valueHasChanged) {
|
|
542
|
+
const cachedValueHasChanged = this.valueHasChanged;
|
|
543
|
+
this.value = this.defaultValue;
|
|
544
|
+
this.valueHasChanged = cachedValueHasChanged;
|
|
545
|
+
}
|
|
546
|
+
const allOptions = this.getAllOptions();
|
|
547
|
+
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
548
|
+
this.setSelectedOptions(allOptions.filter((element) => value.includes(element.value)));
|
|
549
|
+
}
|
|
550
|
+
async handleOpenChange() {
|
|
551
|
+
if (this.open && !this.disabled) {
|
|
552
|
+
this.setCurrentOption(this.selectedOptions[0] || this.getFirstOption());
|
|
553
|
+
emit(this, "pc-show");
|
|
554
|
+
this.addOpenListeners();
|
|
555
|
+
await stopAnimations(this);
|
|
556
|
+
this.listbox.hidden = false;
|
|
557
|
+
this.popup.active = true;
|
|
558
|
+
requestAnimationFrame(() => {
|
|
559
|
+
this.setCurrentOption(this.currentOption);
|
|
560
|
+
});
|
|
561
|
+
const { keyframes, options } = getAnimation(this, "select.show", {
|
|
562
|
+
dir: document.documentElement.dir || "ltr",
|
|
563
|
+
});
|
|
564
|
+
await animateTo(this.popup.popup, keyframes, options);
|
|
565
|
+
if (this.currentOption) {
|
|
566
|
+
scrollIntoView(this.currentOption, this.listbox, "vertical", "auto");
|
|
567
|
+
}
|
|
568
|
+
emit(this, "pc-after-show");
|
|
569
|
+
}
|
|
570
|
+
else {
|
|
571
|
+
emit(this, "pc-hide");
|
|
572
|
+
this.removeOpenListeners();
|
|
573
|
+
await stopAnimations(this);
|
|
574
|
+
const { keyframes, options } = getAnimation(this, "select.hide", {
|
|
575
|
+
dir: document.documentElement.dir || "ltr",
|
|
576
|
+
});
|
|
577
|
+
await animateTo(this.popup.popup, keyframes, options);
|
|
578
|
+
this.listbox.hidden = true;
|
|
579
|
+
this.popup.active = false;
|
|
580
|
+
emit(this, "pc-after-hide");
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
/** Shows the listbox. */
|
|
584
|
+
async show() {
|
|
585
|
+
if (this.open || this.disabled) {
|
|
586
|
+
this.open = false;
|
|
587
|
+
return undefined;
|
|
588
|
+
}
|
|
589
|
+
this.open = true;
|
|
590
|
+
return waitForEvent(this, "pc-after-show");
|
|
591
|
+
}
|
|
592
|
+
/** Hides the listbox. */
|
|
593
|
+
async hide() {
|
|
594
|
+
if (!this.open || this.disabled) {
|
|
595
|
+
this.open = false;
|
|
596
|
+
return undefined;
|
|
597
|
+
}
|
|
598
|
+
this.open = false;
|
|
599
|
+
return waitForEvent(this, "pc-after-hide");
|
|
600
|
+
}
|
|
601
|
+
/** Checks for validity but does not show a validation message. Returns `true` when valid and `false` when invalid. */
|
|
602
|
+
checkValidity() {
|
|
603
|
+
return this.valueInput.checkValidity();
|
|
604
|
+
}
|
|
605
|
+
/** Gets the associated form, if one exists. */
|
|
606
|
+
getForm() {
|
|
607
|
+
return this.formControlController.getForm();
|
|
608
|
+
}
|
|
609
|
+
/** Checks for validity and shows the browser’s validation message if the control is invalid. */
|
|
610
|
+
reportValidity() {
|
|
611
|
+
return this.valueInput.reportValidity();
|
|
612
|
+
}
|
|
613
|
+
/** Sets a custom validation message. Pass an empty string to restore validity. */
|
|
614
|
+
setCustomValidity(message) {
|
|
615
|
+
this.valueInput.setCustomValidity(message);
|
|
616
|
+
this.formControlController.updateValidity();
|
|
617
|
+
}
|
|
618
|
+
/** Focuses the control. */
|
|
619
|
+
focus(options) {
|
|
620
|
+
this.displayInput.focus(options);
|
|
621
|
+
}
|
|
622
|
+
/** Unfocuses the select (i.e. blurs it). */
|
|
623
|
+
blur() {
|
|
624
|
+
this.displayInput.blur();
|
|
625
|
+
}
|
|
626
|
+
render() {
|
|
627
|
+
const hasLabelSlot = this.hasSlotController.test("label");
|
|
628
|
+
const hasHintSlot = this.hasSlotController.test("hint");
|
|
629
|
+
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
630
|
+
const hasHint = this.hint ? true : !!hasHintSlot;
|
|
631
|
+
const hasClearIcon = this.clearable && !this.disabled && this.value.length > 0;
|
|
632
|
+
const isPlaceholderVisible = this.placeholder && this.value && this.value.length <= 0;
|
|
633
|
+
return html `
|
|
634
|
+
<div
|
|
635
|
+
part="form-control"
|
|
636
|
+
class=${classMap({
|
|
637
|
+
"form-control": true,
|
|
638
|
+
"form-control-small": this.size === "small",
|
|
639
|
+
"form-control-medium": this.size === "medium",
|
|
640
|
+
"form-control-large": this.size === "large",
|
|
641
|
+
"form-control-has-label": hasLabel,
|
|
642
|
+
"form-control-has-hint": hasHint,
|
|
643
|
+
})}
|
|
644
|
+
>
|
|
645
|
+
<label
|
|
646
|
+
part="label"
|
|
647
|
+
class="label"
|
|
648
|
+
id="label"
|
|
649
|
+
@click=${this.handleLabelClick}
|
|
650
|
+
aria-hidden=${hasLabel ? "false" : "true"}
|
|
651
|
+
>
|
|
652
|
+
<slot name="label">${this.label}</slot>
|
|
653
|
+
</label>
|
|
654
|
+
|
|
655
|
+
<div part="input" class="form-control-input">
|
|
656
|
+
<pc-popup
|
|
657
|
+
class=${classMap({
|
|
658
|
+
"select": true,
|
|
659
|
+
"select-standard": this.filled === false,
|
|
660
|
+
"select-filled": this.filled === true,
|
|
661
|
+
"select-pill": this.pill === true,
|
|
662
|
+
"select-open": this.open === true,
|
|
663
|
+
"select-disabled": this.disabled === true,
|
|
664
|
+
"select-multiple": this.multiple === true,
|
|
665
|
+
"select-focused": this.hasFocus === true,
|
|
666
|
+
"select-placeholder-visible": isPlaceholderVisible === true,
|
|
667
|
+
"select-top": this.placement === "top",
|
|
668
|
+
"select-bottom": this.placement === "bottom",
|
|
669
|
+
"select-small": this.size === "small",
|
|
670
|
+
"select-medium": this.size === "medium",
|
|
671
|
+
"select-large": this.size === "large",
|
|
672
|
+
})}
|
|
673
|
+
placement=${this.placement}
|
|
674
|
+
strategy=${this.hoist ? "fixed" : "absolute"}
|
|
675
|
+
sync="width"
|
|
676
|
+
auto-size="vertical"
|
|
677
|
+
auto-size-padding="10"
|
|
678
|
+
shift
|
|
679
|
+
flip
|
|
680
|
+
>
|
|
681
|
+
<div
|
|
682
|
+
part="combobox"
|
|
683
|
+
class="select-combobox"
|
|
684
|
+
slot="anchor"
|
|
685
|
+
@mousedown=${this.handleComboboxMouseDown}
|
|
686
|
+
@keydown=${this.handleComboboxKeyDown}
|
|
687
|
+
>
|
|
688
|
+
<slot
|
|
689
|
+
class="prefix"
|
|
690
|
+
part="prefix"
|
|
691
|
+
name="prefix"
|
|
692
|
+
></slot>
|
|
693
|
+
|
|
694
|
+
<input
|
|
695
|
+
part="display-input"
|
|
696
|
+
class="select-input"
|
|
697
|
+
type="text"
|
|
698
|
+
role="combobox"
|
|
699
|
+
placeholder=${this.placeholder}
|
|
700
|
+
.disabled=${this.disabled}
|
|
701
|
+
.value=${this.displayLabel}
|
|
702
|
+
autocomplete="off"
|
|
703
|
+
spellcheck="false"
|
|
704
|
+
autocapitalize="off"
|
|
705
|
+
aria-controls="listbox"
|
|
706
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
707
|
+
aria-haspopup="listbox"
|
|
708
|
+
aria-labelledby="label"
|
|
709
|
+
aria-disabled=${this.disabled
|
|
710
|
+
? "true"
|
|
711
|
+
: "false"}
|
|
712
|
+
aria-describedby="hint"
|
|
713
|
+
tabindex="0"
|
|
714
|
+
readonly
|
|
715
|
+
@focus=${this.handleFocus}
|
|
716
|
+
@blur=${this.handleBlur}
|
|
717
|
+
/>
|
|
718
|
+
|
|
719
|
+
${this.multiple
|
|
720
|
+
? html `
|
|
721
|
+
<div part="tags" class="select-tags">
|
|
722
|
+
${this.tags}
|
|
723
|
+
</div>
|
|
724
|
+
`
|
|
725
|
+
: ""}
|
|
726
|
+
|
|
727
|
+
<input
|
|
728
|
+
class="select-value-input"
|
|
729
|
+
type="text"
|
|
730
|
+
?disabled=${this.disabled}
|
|
731
|
+
?required=${this.required}
|
|
732
|
+
.value=${Array.isArray(this.value)
|
|
733
|
+
? this.value.join(", ")
|
|
734
|
+
: this.value}
|
|
735
|
+
tabindex="-1"
|
|
736
|
+
aria-hidden="true"
|
|
737
|
+
@focus=${() => this.focus()}
|
|
738
|
+
@invalid=${this.handleInvalid}
|
|
739
|
+
/>
|
|
740
|
+
|
|
741
|
+
${hasClearIcon
|
|
742
|
+
? html `
|
|
743
|
+
<button
|
|
744
|
+
part="clear-button"
|
|
745
|
+
class="clear-select-button"
|
|
746
|
+
type="button"
|
|
747
|
+
aria-label="Clear selection"
|
|
748
|
+
@click=${this.handleClearClick}
|
|
749
|
+
@mousedown=${this
|
|
750
|
+
.handleClearMouseDown}
|
|
751
|
+
tabindex="-1"
|
|
752
|
+
>
|
|
753
|
+
<slot name="clear-icon">
|
|
754
|
+
<pc-icon
|
|
755
|
+
library="system"
|
|
756
|
+
icon-style="regular"
|
|
757
|
+
name="circle-xmark"
|
|
758
|
+
></pc-icon>
|
|
759
|
+
</slot>
|
|
760
|
+
</button>
|
|
761
|
+
`
|
|
762
|
+
: ""}
|
|
763
|
+
|
|
764
|
+
<slot
|
|
765
|
+
class="suffix"
|
|
766
|
+
part="suffix"
|
|
767
|
+
name="suffix"
|
|
768
|
+
></slot>
|
|
769
|
+
|
|
770
|
+
<slot
|
|
771
|
+
class="expand-icon"
|
|
772
|
+
part="expand-icon"
|
|
773
|
+
name="expand-icon"
|
|
774
|
+
>
|
|
775
|
+
<pc-icon
|
|
776
|
+
library="system"
|
|
777
|
+
icon-style="solid"
|
|
778
|
+
name="chevron-down"
|
|
779
|
+
></pc-icon>
|
|
780
|
+
</slot>
|
|
781
|
+
</div>
|
|
782
|
+
|
|
783
|
+
<div
|
|
784
|
+
part="listbox"
|
|
785
|
+
class="select-listbox"
|
|
786
|
+
id="listbox"
|
|
787
|
+
role="listbox"
|
|
788
|
+
aria-expanded=${this.open ? "true" : "false"}
|
|
789
|
+
aria-multiselectable=${this.multiple
|
|
790
|
+
? "true"
|
|
791
|
+
: "false"}
|
|
792
|
+
aria-labelledby="label"
|
|
793
|
+
tabindex="-1"
|
|
794
|
+
@mouseup=${this.handleOptionClick}
|
|
795
|
+
@slotchange=${this.handleDefaultSlotChange}
|
|
796
|
+
>
|
|
797
|
+
<slot></slot>
|
|
798
|
+
</div>
|
|
799
|
+
</pc-popup>
|
|
800
|
+
|
|
801
|
+
<div
|
|
802
|
+
part="hint"
|
|
803
|
+
class="hint"
|
|
804
|
+
id="hint"
|
|
805
|
+
aria-hidden=${hasHint ? "false" : "true"}
|
|
806
|
+
>
|
|
807
|
+
<slot name="hint">${this.hint}</slot>
|
|
808
|
+
</div>
|
|
809
|
+
</div>
|
|
810
|
+
</div>
|
|
811
|
+
`;
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
PcSelect.styles = styles;
|
|
815
|
+
/** @internal This is an internal property. */
|
|
816
|
+
PcSelect.dependencies = {
|
|
817
|
+
"pc-icon": PcIcon,
|
|
818
|
+
"pc-popup": PcPopup,
|
|
819
|
+
"pc-tag": PcTag,
|
|
820
|
+
};
|
|
821
|
+
__decorate([
|
|
822
|
+
query(".select"),
|
|
823
|
+
__metadata("design:type", PcPopup)
|
|
824
|
+
], PcSelect.prototype, "popup", void 0);
|
|
825
|
+
__decorate([
|
|
826
|
+
query(".select-combobox"),
|
|
827
|
+
__metadata("design:type", HTMLSlotElement)
|
|
828
|
+
], PcSelect.prototype, "combobox", void 0);
|
|
829
|
+
__decorate([
|
|
830
|
+
query(".select-input"),
|
|
831
|
+
__metadata("design:type", HTMLInputElement)
|
|
832
|
+
], PcSelect.prototype, "displayInput", void 0);
|
|
833
|
+
__decorate([
|
|
834
|
+
query(".select-value-input"),
|
|
835
|
+
__metadata("design:type", HTMLInputElement)
|
|
836
|
+
], PcSelect.prototype, "valueInput", void 0);
|
|
837
|
+
__decorate([
|
|
838
|
+
query(".select-listbox"),
|
|
839
|
+
__metadata("design:type", HTMLSlotElement)
|
|
840
|
+
], PcSelect.prototype, "listbox", void 0);
|
|
841
|
+
__decorate([
|
|
842
|
+
state(),
|
|
843
|
+
__metadata("design:type", Object)
|
|
844
|
+
], PcSelect.prototype, "hasFocus", void 0);
|
|
845
|
+
__decorate([
|
|
846
|
+
state(),
|
|
847
|
+
__metadata("design:type", Object)
|
|
848
|
+
], PcSelect.prototype, "displayLabel", void 0);
|
|
849
|
+
__decorate([
|
|
850
|
+
state(),
|
|
851
|
+
__metadata("design:type", Function)
|
|
852
|
+
], PcSelect.prototype, "currentOption", void 0);
|
|
853
|
+
__decorate([
|
|
854
|
+
state(),
|
|
855
|
+
__metadata("design:type", Array)
|
|
856
|
+
], PcSelect.prototype, "selectedOptions", void 0);
|
|
857
|
+
__decorate([
|
|
858
|
+
state(),
|
|
859
|
+
__metadata("design:type", Boolean)
|
|
860
|
+
], PcSelect.prototype, "valueHasChanged", void 0);
|
|
861
|
+
__decorate([
|
|
862
|
+
property(),
|
|
863
|
+
__metadata("design:type", Object)
|
|
864
|
+
], PcSelect.prototype, "name", void 0);
|
|
865
|
+
__decorate([
|
|
866
|
+
property({ attribute: "value" }),
|
|
867
|
+
__metadata("design:type", Object)
|
|
868
|
+
], PcSelect.prototype, "defaultValue", void 0);
|
|
869
|
+
__decorate([
|
|
870
|
+
property({ reflect: true }),
|
|
871
|
+
__metadata("design:type", String)
|
|
872
|
+
], PcSelect.prototype, "size", void 0);
|
|
873
|
+
__decorate([
|
|
874
|
+
property(),
|
|
875
|
+
__metadata("design:type", Object)
|
|
876
|
+
], PcSelect.prototype, "placeholder", void 0);
|
|
877
|
+
__decorate([
|
|
878
|
+
property({ type: Boolean, reflect: true }),
|
|
879
|
+
__metadata("design:type", Object)
|
|
880
|
+
], PcSelect.prototype, "multiple", void 0);
|
|
881
|
+
__decorate([
|
|
882
|
+
property({ attribute: "max-options-visible", type: Number }),
|
|
883
|
+
__metadata("design:type", Object)
|
|
884
|
+
], PcSelect.prototype, "maxOptionsVisible", void 0);
|
|
885
|
+
__decorate([
|
|
886
|
+
property({ type: Boolean, reflect: true }),
|
|
887
|
+
__metadata("design:type", Object)
|
|
888
|
+
], PcSelect.prototype, "disabled", void 0);
|
|
889
|
+
__decorate([
|
|
890
|
+
property({ type: Boolean }),
|
|
891
|
+
__metadata("design:type", Object)
|
|
892
|
+
], PcSelect.prototype, "clearable", void 0);
|
|
893
|
+
__decorate([
|
|
894
|
+
property({ type: Boolean, reflect: true }),
|
|
895
|
+
__metadata("design:type", Object)
|
|
896
|
+
], PcSelect.prototype, "open", void 0);
|
|
897
|
+
__decorate([
|
|
898
|
+
property({ type: Boolean }),
|
|
899
|
+
__metadata("design:type", Object)
|
|
900
|
+
], PcSelect.prototype, "hoist", void 0);
|
|
901
|
+
__decorate([
|
|
902
|
+
property({ type: Boolean, reflect: true }),
|
|
903
|
+
__metadata("design:type", Object)
|
|
904
|
+
], PcSelect.prototype, "filled", void 0);
|
|
905
|
+
__decorate([
|
|
906
|
+
property({ type: Boolean, reflect: true }),
|
|
907
|
+
__metadata("design:type", Object)
|
|
908
|
+
], PcSelect.prototype, "pill", void 0);
|
|
909
|
+
__decorate([
|
|
910
|
+
property(),
|
|
911
|
+
__metadata("design:type", Object)
|
|
912
|
+
], PcSelect.prototype, "label", void 0);
|
|
913
|
+
__decorate([
|
|
914
|
+
property({ reflect: true }),
|
|
915
|
+
__metadata("design:type", String)
|
|
916
|
+
], PcSelect.prototype, "placement", void 0);
|
|
917
|
+
__decorate([
|
|
918
|
+
property(),
|
|
919
|
+
__metadata("design:type", Object)
|
|
920
|
+
], PcSelect.prototype, "hint", void 0);
|
|
921
|
+
__decorate([
|
|
922
|
+
property({ reflect: true }),
|
|
923
|
+
__metadata("design:type", Object)
|
|
924
|
+
], PcSelect.prototype, "form", void 0);
|
|
925
|
+
__decorate([
|
|
926
|
+
property({ type: Boolean, reflect: true }),
|
|
927
|
+
__metadata("design:type", Object)
|
|
928
|
+
], PcSelect.prototype, "required", void 0);
|
|
929
|
+
__decorate([
|
|
930
|
+
property(),
|
|
931
|
+
__metadata("design:type", Function)
|
|
932
|
+
], PcSelect.prototype, "getTag", void 0);
|
|
933
|
+
__decorate([
|
|
934
|
+
state(),
|
|
935
|
+
__metadata("design:type", Object),
|
|
936
|
+
__metadata("design:paramtypes", [Object])
|
|
937
|
+
], PcSelect.prototype, "value", null);
|
|
938
|
+
__decorate([
|
|
939
|
+
watch("disabled", { waitUntilFirstUpdate: true }),
|
|
940
|
+
__metadata("design:type", Function),
|
|
941
|
+
__metadata("design:paramtypes", []),
|
|
942
|
+
__metadata("design:returntype", void 0)
|
|
943
|
+
], PcSelect.prototype, "handleDisabledChange", null);
|
|
944
|
+
__decorate([
|
|
945
|
+
watch(["defaultValue", "value"], { waitUntilFirstUpdate: true }),
|
|
946
|
+
__metadata("design:type", Function),
|
|
947
|
+
__metadata("design:paramtypes", []),
|
|
948
|
+
__metadata("design:returntype", void 0)
|
|
949
|
+
], PcSelect.prototype, "handleValueChange", null);
|
|
950
|
+
__decorate([
|
|
951
|
+
watch("open", { waitUntilFirstUpdate: true }),
|
|
952
|
+
__metadata("design:type", Function),
|
|
953
|
+
__metadata("design:paramtypes", []),
|
|
954
|
+
__metadata("design:returntype", Promise)
|
|
955
|
+
], PcSelect.prototype, "handleOpenChange", null);
|
|
956
|
+
PcSelect = __decorate([
|
|
957
|
+
customElement("pc-select")
|
|
958
|
+
], PcSelect);
|
|
959
|
+
|
|
960
|
+
export { PcSelect };
|