igniteui-webcomponents 4.3.1 → 4.4.0
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/CHANGELOG.md +49 -0
- package/animations/presets/fade/index.d.ts +2 -2
- package/animations/presets/fade/index.js +4 -6
- package/animations/presets/fade/index.js.map +1 -1
- package/animations/presets/grow/index.d.ts +2 -2
- package/animations/presets/grow/index.js +8 -10
- package/animations/presets/grow/index.js.map +1 -1
- package/animations/presets/index.d.ts +1 -0
- package/animations/presets/index.js +1 -0
- package/animations/presets/index.js.map +1 -1
- package/animations/presets/slide/index.d.ts +3 -0
- package/animations/presets/slide/index.js +16 -0
- package/animations/presets/slide/index.js.map +1 -0
- package/components/avatar/avatar.js +5 -2
- package/components/avatar/avatar.js.map +1 -1
- package/components/avatar/themes/{light/avatar.base.css.js → avatar.base.css.js} +2 -20
- package/components/avatar/themes/avatar.base.css.js.map +1 -0
- package/components/avatar/themes/dark/{avatar.base.bootstrap.css.js → avatar.bootstrap.css.js} +1 -1
- package/components/avatar/themes/dark/avatar.bootstrap.css.js.map +1 -0
- package/components/avatar/themes/dark/avatar.fluent.css.d.ts +1 -0
- package/components/avatar/themes/dark/avatar.fluent.css.js +3 -0
- package/components/avatar/themes/dark/avatar.fluent.css.js.map +1 -0
- package/components/avatar/themes/dark/avatar.indigo.css.d.ts +1 -0
- package/components/avatar/themes/dark/avatar.indigo.css.js +3 -0
- package/components/avatar/themes/dark/avatar.indigo.css.js.map +1 -0
- package/components/avatar/themes/dark/avatar.material.css.d.ts +1 -0
- package/components/avatar/themes/dark/avatar.material.css.js +3 -0
- package/components/avatar/themes/dark/avatar.material.css.js.map +1 -0
- package/components/avatar/themes/light/avatar.bootstrap.css.js +17 -3
- package/components/avatar/themes/light/avatar.bootstrap.css.js.map +1 -1
- package/components/avatar/themes/light/avatar.fluent.css.d.ts +1 -0
- package/components/avatar/themes/light/avatar.fluent.css.js +27 -0
- package/components/avatar/themes/light/avatar.fluent.css.js.map +1 -0
- package/components/avatar/themes/light/avatar.indigo.css.d.ts +1 -0
- package/components/avatar/themes/light/avatar.indigo.css.js +27 -0
- package/components/avatar/themes/light/avatar.indigo.css.js.map +1 -0
- package/components/avatar/themes/light/avatar.material.css.d.ts +1 -0
- package/components/avatar/themes/light/avatar.material.css.js +27 -0
- package/components/avatar/themes/light/avatar.material.css.js.map +1 -0
- package/components/button/button-base.d.ts +14 -6
- package/components/button/button-base.js +51 -18
- package/components/button/button-base.js.map +1 -1
- package/components/button/themes/button/light/button.base.css.js +4 -4
- package/components/button/themes/button/light/button.base.css.js.map +1 -1
- package/components/button/themes/button/light/button.bootstrap.css.js +64 -32
- package/components/button/themes/button/light/button.bootstrap.css.js.map +1 -1
- package/components/button/themes/button/light/button.fluent.css.js +75 -40
- package/components/button/themes/button/light/button.fluent.css.js.map +1 -1
- package/components/button/themes/button/light/button.indigo.css.js +86 -42
- package/components/button/themes/button/light/button.indigo.css.js.map +1 -1
- package/components/button/themes/button/light/button.material.css.js +88 -38
- package/components/button/themes/button/light/button.material.css.js.map +1 -1
- package/components/button/themes/icon-button/light/icon-button.base.css.js +2 -1
- package/components/button/themes/icon-button/light/icon-button.base.css.js.map +1 -1
- package/components/button/themes/icon-button/light/icon-button.bootstrap.css.js +12 -7
- package/components/button/themes/icon-button/light/icon-button.bootstrap.css.js.map +1 -1
- package/components/button/themes/icon-button/light/icon-button.fluent.css.js +4 -3
- package/components/button/themes/icon-button/light/icon-button.fluent.css.js.map +1 -1
- package/components/button/themes/icon-button/light/icon-button.indigo.css.js +6 -4
- package/components/button/themes/icon-button/light/icon-button.indigo.css.js.map +1 -1
- package/components/button/themes/icon-button/light/icon-button.material.css.js +7 -4
- package/components/button/themes/icon-button/light/icon-button.material.css.js.map +1 -1
- package/components/calendar/themes/bootstrap/days-view.bootstrap.css.js +2 -2
- package/components/calendar/themes/bootstrap/days-view.bootstrap.css.js.map +1 -1
- package/components/calendar/themes/bootstrap/year-month-view.bootstrap.css.js +2 -2
- package/components/calendar/themes/bootstrap/year-month-view.bootstrap.css.js.map +1 -1
- package/components/calendar/themes/calendar.base.css.js +1 -0
- package/components/calendar/themes/calendar.base.css.js.map +1 -1
- package/components/calendar/themes/fluent/calendar.fluent.css.js +2 -1
- package/components/calendar/themes/fluent/calendar.fluent.css.js.map +1 -1
- package/components/checkbox/checkbox-base.d.ts +8 -35
- package/components/checkbox/checkbox-base.js +28 -41
- package/components/checkbox/checkbox-base.js.map +1 -1
- package/components/checkbox/checkbox.d.ts +0 -1
- package/components/checkbox/checkbox.js +5 -16
- package/components/checkbox/checkbox.js.map +1 -1
- package/components/checkbox/switch.d.ts +0 -2
- package/components/checkbox/switch.js +4 -16
- package/components/checkbox/switch.js.map +1 -1
- package/components/checkbox/themes/light/checkbox.base.css.js +2 -1
- package/components/checkbox/themes/light/checkbox.base.css.js.map +1 -1
- package/components/checkbox/themes/light/checkbox.bootstrap.css.js +26 -9
- package/components/checkbox/themes/light/checkbox.bootstrap.css.js.map +1 -1
- package/components/checkbox/themes/light/checkbox.fluent.css.js +31 -15
- package/components/checkbox/themes/light/checkbox.fluent.css.js.map +1 -1
- package/components/checkbox/themes/light/checkbox.indigo.css.js +31 -13
- package/components/checkbox/themes/light/checkbox.indigo.css.js.map +1 -1
- package/components/checkbox/themes/light/checkbox.material.css.js +24 -12
- package/components/checkbox/themes/light/checkbox.material.css.js.map +1 -1
- package/components/checkbox/themes/light/switch.base.css.js +2 -1
- package/components/checkbox/themes/light/switch.base.css.js.map +1 -1
- package/components/checkbox/themes/light/switch.bootstrap.css.js +12 -4
- package/components/checkbox/themes/light/switch.bootstrap.css.js.map +1 -1
- package/components/checkbox/themes/light/switch.fluent.css.js +33 -15
- package/components/checkbox/themes/light/switch.fluent.css.js.map +1 -1
- package/components/checkbox/themes/light/switch.indigo.css.js +26 -11
- package/components/checkbox/themes/light/switch.indigo.css.js.map +1 -1
- package/components/checkbox/themes/light/switch.material.css.js +14 -7
- package/components/checkbox/themes/light/switch.material.css.js.map +1 -1
- package/components/chip/themes/chip.base.css.js +0 -2
- package/components/chip/themes/chip.base.css.js.map +1 -1
- package/components/chip/themes/chip.bootstrap.css.js +2 -2
- package/components/chip/themes/chip.bootstrap.css.js.map +1 -1
- package/components/chip/themes/chip.fluent.css.js +2 -2
- package/components/chip/themes/chip.fluent.css.js.map +1 -1
- package/components/chip/themes/chip.indigo.css.js +2 -2
- package/components/chip/themes/chip.indigo.css.js.map +1 -1
- package/components/chip/themes/chip.material.css.js +2 -2
- package/components/chip/themes/chip.material.css.js.map +1 -1
- package/components/combo/combo.d.ts +7 -32
- package/components/combo/combo.js +57 -49
- package/components/combo/combo.js.map +1 -1
- package/components/combo/controllers/selection.js +1 -3
- package/components/combo/controllers/selection.js.map +1 -1
- package/components/combo/themes/light/combo.bootstrap.css.js +27 -24
- package/components/combo/themes/light/combo.bootstrap.css.js.map +1 -1
- package/components/combo/themes/light/combo.fluent.css.js +27 -24
- package/components/combo/themes/light/combo.fluent.css.js.map +1 -1
- package/components/combo/themes/light/combo.indigo.css.js +26 -23
- package/components/combo/themes/light/combo.indigo.css.js.map +1 -1
- package/components/combo/themes/light/combo.material.css.js +32 -23
- package/components/combo/themes/light/combo.material.css.js.map +1 -1
- package/components/combo/themes/light/item/combo-item.base.css.js +0 -1
- package/components/combo/themes/light/item/combo-item.base.css.js.map +1 -1
- package/components/common/localization/validation-en.d.ts +10 -0
- package/components/common/localization/validation-en.js +10 -0
- package/components/common/localization/validation-en.js.map +1 -0
- package/components/common/mixins/form-associated-required.d.ts +16 -0
- package/components/common/mixins/form-associated-required.js +29 -0
- package/components/common/mixins/form-associated-required.js.map +1 -0
- package/components/common/mixins/form-associated.d.ts +92 -0
- package/components/common/mixins/form-associated.js +151 -0
- package/components/common/mixins/form-associated.js.map +1 -0
- package/components/common/util.d.ts +38 -0
- package/components/common/util.js +34 -0
- package/components/common/util.js.map +1 -1
- package/components/common/validators.d.ts +45 -0
- package/components/common/validators.js +54 -0
- package/components/common/validators.js.map +1 -0
- package/components/date-time-input/date-time-input.d.ts +30 -11
- package/components/date-time-input/date-time-input.js +147 -135
- package/components/date-time-input/date-time-input.js.map +1 -1
- package/components/date-time-input/date-util.d.ts +1 -0
- package/components/date-time-input/date-util.js +6 -3
- package/components/date-time-input/date-util.js.map +1 -1
- package/components/dialog/dialog.js +1 -1
- package/components/dialog/dialog.js.map +1 -1
- package/components/dialog/themes/light/dialog.base.css.js +1 -1
- package/components/dialog/themes/light/dialog.base.css.js.map +1 -1
- package/components/dropdown/dropdown-item.js +2 -6
- package/components/dropdown/dropdown-item.js.map +1 -1
- package/components/dropdown/themes/light/dropdown.bootstrap.css.js +1 -1
- package/components/dropdown/themes/light/dropdown.bootstrap.css.js.map +1 -1
- package/components/dropdown/themes/light/dropdown.fluent.css.js +1 -1
- package/components/dropdown/themes/light/dropdown.fluent.css.js.map +1 -1
- package/components/dropdown/themes/light/dropdown.indigo.css.js +1 -1
- package/components/dropdown/themes/light/dropdown.indigo.css.js.map +1 -1
- package/components/dropdown/themes/light/dropdown.material.css.js +1 -1
- package/components/dropdown/themes/light/dropdown.material.css.js.map +1 -1
- package/components/dropdown/themes/light/group/dropdown-group.bootstrap.css.js +1 -1
- package/components/dropdown/themes/light/group/dropdown-group.bootstrap.css.js.map +1 -1
- package/components/dropdown/themes/light/group/dropdown-group.fluent.css.js +1 -1
- package/components/dropdown/themes/light/group/dropdown-group.fluent.css.js.map +1 -1
- package/components/dropdown/themes/light/group/dropdown-group.indigo.css.js +1 -1
- package/components/dropdown/themes/light/group/dropdown-group.indigo.css.js.map +1 -1
- package/components/dropdown/themes/light/group/dropdown-group.material.css.js +1 -1
- package/components/dropdown/themes/light/group/dropdown-group.material.css.js.map +1 -1
- package/components/dropdown/themes/light/header/dropdown-header.bootstrap.css.js +1 -1
- package/components/dropdown/themes/light/header/dropdown-header.bootstrap.css.js.map +1 -1
- package/components/dropdown/themes/light/header/dropdown-header.fluent.css.js +1 -1
- package/components/dropdown/themes/light/header/dropdown-header.fluent.css.js.map +1 -1
- package/components/dropdown/themes/light/header/dropdown-header.indigo.css.js +1 -1
- package/components/dropdown/themes/light/header/dropdown-header.indigo.css.js.map +1 -1
- package/components/dropdown/themes/light/header/dropdown-header.material.css.js +1 -1
- package/components/dropdown/themes/light/header/dropdown-header.material.css.js.map +1 -1
- package/components/dropdown/themes/light/item/dropdown-item.bootstrap.css.js +1 -1
- package/components/dropdown/themes/light/item/dropdown-item.bootstrap.css.js.map +1 -1
- package/components/dropdown/themes/light/item/dropdown-item.fluent.css.js +1 -1
- package/components/dropdown/themes/light/item/dropdown-item.fluent.css.js.map +1 -1
- package/components/dropdown/themes/light/item/dropdown-item.indigo.css.js +1 -1
- package/components/dropdown/themes/light/item/dropdown-item.indigo.css.js.map +1 -1
- package/components/dropdown/themes/light/item/dropdown-item.material.css.js +1 -1
- package/components/dropdown/themes/light/item/dropdown-item.material.css.js.map +1 -1
- package/components/expansion-panel/expansion-panel.js +1 -1
- package/components/expansion-panel/expansion-panel.js.map +1 -1
- package/components/form/form.d.ts +3 -0
- package/components/form/form.js.map +1 -1
- package/components/icon/icon.base.css.js +0 -8
- package/components/icon/icon.base.css.js.map +1 -1
- package/components/icon/light/icon.bootstrap.css.js +7 -1
- package/components/icon/light/icon.bootstrap.css.js.map +1 -1
- package/components/icon/light/icon.fluent.css.js +7 -1
- package/components/icon/light/icon.fluent.css.js.map +1 -1
- package/components/icon/light/icon.indigo.css.js +7 -1
- package/components/icon/light/icon.indigo.css.js.map +1 -1
- package/components/icon/light/icon.material.css.js +7 -1
- package/components/icon/light/icon.material.css.js.map +1 -1
- package/components/input/input-base.d.ts +10 -20
- package/components/input/input-base.js +19 -20
- package/components/input/input-base.js.map +1 -1
- package/components/input/input.d.ts +24 -15
- package/components/input/input.js +106 -48
- package/components/input/input.js.map +1 -1
- package/components/input/themes/light/input.base.css.js +0 -3
- package/components/input/themes/light/input.base.css.js.map +1 -1
- package/components/input/themes/light/input.bootstrap.css.js +7 -17
- package/components/input/themes/light/input.bootstrap.css.js.map +1 -1
- package/components/input/themes/light/input.fluent.css.js +6 -19
- package/components/input/themes/light/input.fluent.css.js.map +1 -1
- package/components/input/themes/light/input.indigo.css.js +16 -1
- package/components/input/themes/light/input.indigo.css.js.map +1 -1
- package/components/input/themes/light/input.material.css.js +30 -11
- package/components/input/themes/light/input.material.css.js.map +1 -1
- package/components/list/themes/light/list-header.base.css.js +0 -32
- package/components/list/themes/light/list-header.base.css.js.map +1 -1
- package/components/list/themes/light/list-item.base.css.js +1 -33
- package/components/list/themes/light/list-item.base.css.js.map +1 -1
- package/components/list/themes/light/list-item.bootstrap.css.js +1 -1
- package/components/list/themes/light/list-item.bootstrap.css.js.map +1 -1
- package/components/list/themes/light/list-item.fluent.css.js +1 -1
- package/components/list/themes/light/list-item.fluent.css.js.map +1 -1
- package/components/list/themes/light/list-item.indigo.css.js +1 -1
- package/components/list/themes/light/list-item.indigo.css.js.map +1 -1
- package/components/list/themes/light/list.base.css.js +1 -1
- package/components/list/themes/light/list.base.css.js.map +1 -1
- package/components/list/themes/light/list.bootstrap.css.js +1 -1
- package/components/list/themes/light/list.bootstrap.css.js.map +1 -1
- package/components/mask-input/mask-input-base.d.ts +2 -9
- package/components/mask-input/mask-input-base.js +7 -12
- package/components/mask-input/mask-input-base.js.map +1 -1
- package/components/mask-input/mask-input.d.ts +5 -6
- package/components/mask-input/mask-input.js +42 -51
- package/components/mask-input/mask-input.js.map +1 -1
- package/components/mask-input/mask-parser.js +1 -0
- package/components/mask-input/mask-parser.js.map +1 -1
- package/components/nav-drawer/themes/light/indigo/nav-drawer-item.indigo.css.js +2 -2
- package/components/nav-drawer/themes/light/indigo/nav-drawer-item.indigo.css.js.map +1 -1
- package/components/nav-drawer/themes/light/indigo/nav-drawer.indigo.css.js +2 -2
- package/components/nav-drawer/themes/light/indigo/nav-drawer.indigo.css.js.map +1 -1
- package/components/nav-drawer/themes/light/nav-drawer-header-item.base.css.js +0 -32
- package/components/nav-drawer/themes/light/nav-drawer-header-item.base.css.js.map +1 -1
- package/components/nav-drawer/themes/light/nav-drawer-item.base.css.js +1 -34
- package/components/nav-drawer/themes/light/nav-drawer-item.base.css.js.map +1 -1
- package/components/nav-drawer/themes/light/nav-drawer.base.css.js +1 -1
- package/components/nav-drawer/themes/light/nav-drawer.base.css.js.map +1 -1
- package/components/navbar/themes/light/navbar.bootstrap.css.js +0 -32
- package/components/navbar/themes/light/navbar.bootstrap.css.js.map +1 -1
- package/components/navbar/themes/light/navbar.fluent.css.js +0 -32
- package/components/navbar/themes/light/navbar.fluent.css.js.map +1 -1
- package/components/navbar/themes/light/navbar.indigo.css.js +0 -32
- package/components/navbar/themes/light/navbar.indigo.css.js.map +1 -1
- package/components/navbar/themes/light/navbar.material.css.js +0 -32
- package/components/navbar/themes/light/navbar.material.css.js.map +1 -1
- package/components/progress/themes/linear/linear.progress.base.css.js +1 -0
- package/components/progress/themes/linear/linear.progress.base.css.js.map +1 -1
- package/components/progress/themes/linear/linear.progress.indigo.css.js +0 -32
- package/components/progress/themes/linear/linear.progress.indigo.css.js.map +1 -1
- package/components/radio/radio.d.ts +13 -37
- package/components/radio/radio.js +135 -97
- package/components/radio/radio.js.map +1 -1
- package/components/radio/themes/light/radio.bootstrap.css.js +8 -36
- package/components/radio/themes/light/radio.bootstrap.css.js.map +1 -1
- package/components/radio/themes/light/radio.fluent.css.js +0 -32
- package/components/radio/themes/light/radio.fluent.css.js.map +1 -1
- package/components/radio/themes/light/radio.indigo.css.js +11 -37
- package/components/radio/themes/light/radio.indigo.css.js.map +1 -1
- package/components/radio/themes/light/radio.material.css.js +1 -33
- package/components/radio/themes/light/radio.material.css.js.map +1 -1
- package/components/radio-group/radio-group.d.ts +0 -4
- package/components/radio-group/radio-group.js +3 -54
- package/components/radio-group/radio-group.js.map +1 -1
- package/components/rating/dark/rating.fluent.css.d.ts +1 -0
- package/components/rating/dark/rating.fluent.css.js +3 -0
- package/components/rating/dark/rating.fluent.css.js.map +1 -0
- package/components/rating/rating-symbol.base.css.js +1 -1
- package/components/rating/rating-symbol.base.css.js.map +1 -1
- package/components/rating/rating.base.css.js +8 -4
- package/components/rating/rating.base.css.js.map +1 -1
- package/components/rating/rating.d.ts +10 -11
- package/components/rating/rating.fluent.css.js +13 -7
- package/components/rating/rating.fluent.css.js.map +1 -1
- package/components/rating/rating.js +19 -15
- package/components/rating/rating.js.map +1 -1
- package/components/select/select-item.d.ts +0 -2
- package/components/select/select-item.js +0 -3
- package/components/select/select-item.js.map +1 -1
- package/components/select/select.d.ts +7 -34
- package/components/select/select.js +27 -37
- package/components/select/select.js.map +1 -1
- package/components/select/themes/light/select.base.css.js +1 -0
- package/components/select/themes/light/select.base.css.js.map +1 -1
- package/components/select/themes/light/select.bootstrap.css.js +5 -37
- package/components/select/themes/light/select.bootstrap.css.js.map +1 -1
- package/components/select/themes/light/select.fluent.css.js +5 -37
- package/components/select/themes/light/select.fluent.css.js.map +1 -1
- package/components/select/themes/light/select.indigo.css.js +4 -36
- package/components/select/themes/light/select.indigo.css.js.map +1 -1
- package/components/select/themes/light/select.material.css.js +14 -46
- package/components/select/themes/light/select.material.css.js.map +1 -1
- package/components/slider/slider.d.ts +4 -12
- package/components/slider/slider.js +16 -25
- package/components/slider/slider.js.map +1 -1
- package/components/slider/themes/light/slider.base.css.js +17 -8
- package/components/slider/themes/light/slider.base.css.js.map +1 -1
- package/components/slider/themes/light/slider.fluent.css.js +6 -3
- package/components/slider/themes/light/slider.fluent.css.js.map +1 -1
- package/components/slider/themes/light/slider.indigo.css.js +4 -1
- package/components/slider/themes/light/slider.indigo.css.js.map +1 -1
- package/components/snackbar/snackbar.js +1 -1
- package/components/snackbar/snackbar.js.map +1 -1
- package/components/stepper/animations.d.ts +2 -0
- package/components/stepper/animations.js +22 -0
- package/components/stepper/animations.js.map +1 -0
- package/components/stepper/step.d.ts +17 -8
- package/components/stepper/step.js +29 -0
- package/components/stepper/step.js.map +1 -1
- package/components/stepper/stepper.d.ts +19 -3
- package/components/stepper/stepper.js +58 -7
- package/components/stepper/stepper.js.map +1 -1
- package/components/stepper/themes/step/light/step.base.css.js +44 -165
- package/components/stepper/themes/step/light/step.base.css.js.map +1 -1
- package/components/stepper/themes/step/light/step.bootstrap.css.js +116 -19
- package/components/stepper/themes/step/light/step.bootstrap.css.js.map +1 -1
- package/components/stepper/themes/step/light/step.fluent.css.js +112 -12
- package/components/stepper/themes/step/light/step.fluent.css.js.map +1 -1
- package/components/stepper/themes/step/light/step.indigo.css.js +112 -25
- package/components/stepper/themes/step/light/step.indigo.css.js.map +1 -1
- package/components/stepper/themes/step/light/step.material.css.js +112 -4
- package/components/stepper/themes/step/light/step.material.css.js.map +1 -1
- package/components/stepper/themes/stepper/stepper.base.css.js +2 -0
- package/components/stepper/themes/stepper/stepper.base.css.js.map +1 -1
- package/components/toast/toast.js +1 -1
- package/components/toast/toast.js.map +1 -1
- package/components/tree/themes/light/tree-item.base.css.js +0 -3
- package/components/tree/themes/light/tree-item.base.css.js.map +1 -1
- package/components/tree/themes/light/tree-item.bootstrap.css.js +60 -3
- package/components/tree/themes/light/tree-item.bootstrap.css.js.map +1 -1
- package/components/tree/themes/light/tree-item.fluent.css.js +58 -1
- package/components/tree/themes/light/tree-item.fluent.css.js.map +1 -1
- package/components/tree/themes/light/tree-item.indigo.css.js +58 -1
- package/components/tree/themes/light/tree-item.indigo.css.js.map +1 -1
- package/components/tree/themes/light/tree-item.material.css.d.ts +1 -0
- package/components/tree/themes/light/tree-item.material.css.js +58 -0
- package/components/tree/themes/light/tree-item.material.css.js.map +1 -0
- package/components/tree/tree-item.js +8 -6
- package/components/tree/tree-item.js.map +1 -1
- package/components/tree/tree.d.ts +0 -6
- package/components/tree/tree.js +0 -4
- package/components/tree/tree.js.map +1 -1
- package/components/tree/tree.navigation.js +3 -2
- package/components/tree/tree.navigation.js.map +1 -1
- package/custom-elements.json +798 -525
- package/package.json +3 -3
- package/themes/dark/bootstrap.css +274 -61
- package/themes/dark/fluent.css +291 -60
- package/themes/dark/indigo.css +508 -3
- package/themes/dark/material.css +244 -54
- package/themes/light/bootstrap.css +5 -2
- package/themes/light/fluent.css +5 -2
- package/themes/light/indigo.css +229 -2
- package/themes/light/material.css +5 -2
- package/vscode-html-custom-data.json +239 -286
- package/components/avatar/themes/dark/avatar.base.bootstrap.css.js.map +0 -1
- package/components/avatar/themes/light/avatar.base.css.js.map +0 -1
- package/components/common/types.d.ts +0 -1
- package/components/common/types.js +0 -2
- package/components/common/types.js.map +0 -1
- /package/components/avatar/themes/{light/avatar.base.css.d.ts → avatar.base.css.d.ts} +0 -0
- /package/components/avatar/themes/dark/{avatar.base.bootstrap.css.d.ts → avatar.bootstrap.css.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.material.css.js","sourceRoot":"","sources":["../../../../src/components/chip/themes/chip.material.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyQvB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host {\n --is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);\n --is-medium: min(\n clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),\n clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)\n );\n --is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n scrollbar-width: var(--ig-scrollbar-size);\n scrollbar-color: var(--ig-scrollbar-thumb-background) var(--ig-scrollbar-track-background);\n}\n:host *,\n:host *::before,\n:host *::after {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n:host ::-webkit-scrollbar {\n width: var(--ig-scrollbar-size);\n height: var(--ig-scrollbar-size);\n background: var(--ig-scrollbar-track-background);\n}\n:host ::-webkit-scrollbar-thumb {\n background: var(--ig-scrollbar-thumb-background);\n}\n\n:host([hidden]),\n[hidden] {\n display: none !important;\n}\n:host {\n --size: max(var(--is-large, 1) * max(2rem, -1 * 2rem), var(--is-medium, 1) * max(1.5rem, -1 * 1.5rem), var(--is-small, 1) * max(1.25rem, -1 * 1.25rem));\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n vertical-align: top;\n}\n\n:host([size=small]) {\n --component-size: var(--ig-size, var(--ig-size-small));\n}\n:host([size=small]) [part=prefix] {\n -webkit-margin-end: 0.1875rem;\n margin-inline-end: 0.1875rem;\n}\n:host([size=small]) [part=suffix] {\n -webkit-margin-start: 0.1875rem;\n margin-inline-start: 0.1875rem;\n}\n\n:host([size=medium]) {\n --component-size: var(--ig-size, var(--ig-size-medium));\n}\n:host([size=medium]) [part=prefix] {\n -webkit-margin-end: 0.375rem;\n margin-inline-end: 0.375rem;\n}\n:host([size=medium]) [part=suffix] {\n -webkit-margin-start: 0.375rem;\n margin-inline-start: 0.375rem;\n}\n\n:host([size=large]) {\n --component-size: var(--ig-size, var(--ig-size-large));\n}\n:host([size=large]) [part=prefix] {\n -webkit-margin-end: 0.5rem;\n margin-inline-end: 0.5rem;\n}\n:host([size=large]) [part=suffix] {\n -webkit-margin-start: 0.5rem;\n margin-inline-start: 0.5rem;\n}\n:host([size=large]) igc-icon[size=large] {\n --size: 1.25rem;\n}\n\n:host button {\n font-family: var(--ig-body-2-font-family, var(--ig-font-family));\n font-size: var(--ig-body-2-font-size);\n font-weight: var(--ig-body-2-font-weight);\n font-style: var(--ig-body-2-font-style);\n line-height: var(--ig-body-2-line-height);\n letter-spacing: var(--ig-body-2-letter-spacing);\n text-transform: var(--ig-body-2-text-transform);\n margin-top: var(--ig-body-2-margin-top);\n margin-bottom: var(--ig-body-2-margin-bottom);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n font-family: var(--ig-font-family);\n border-style: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n cursor: pointer;\n height: var(--size);\n padding: max(var(--is-large, 1) * max(12px, -1 * 12px) * var(--ig-spacing-large, var(--ig-spacing, --ig-spacing)), var(--is-medium, 1) * max(6px, -1 * 6px) * var(--ig-spacing-medium, var(--ig-spacing, --ig-spacing)), var(--is-small, 1) * max(2px, -1 * 2px) * var(--ig-spacing-small, var(--ig-spacing, --ig-spacing)));\n}\n:host button[disabled] {\n pointer-events: none;\n color: hsla(var(--ig-gray-500), var(--ig-gray-a));\n}\n\n:host([variant=primary]) button,\n:host([selected][variant=primary]) button:not([disabled]) {\n background: hsla(var(--ig-primary-500), var(--ig-primary-a));\n color: var(--ig-primary-500-contrast);\n}\n:host([variant=primary]) button:hover,\n:host([selected][variant=primary]) button:not([disabled]):hover {\n background: hsla(var(--ig-primary-600), var(--ig-primary-a));\n color: var(--ig-primary-600-contrast);\n}\n:host([variant=primary]) button:focus,\n:host([selected][variant=primary]) button:not([disabled]):focus {\n background: hsla(var(--ig-primary-800), var(--ig-primary-a));\n color: var(--ig-primary-800-contrast);\n}\n\n:host([variant=info]) button,\n:host([selected][variant=info]) button:not([disabled]) {\n background: hsla(var(--ig-info-500), var(--ig-info-a));\n color: var(--ig-info-500-contrast);\n}\n:host([variant=info]) button:hover,\n:host([selected][variant=info]) button:not([disabled]):hover {\n background: hsla(var(--ig-info-600), var(--ig-info-a));\n color: var(--ig-info-600-contrast);\n}\n:host([variant=info]) button:focus,\n:host([selected][variant=info]) button:not([disabled]):focus {\n background: hsla(var(--ig-info-800), var(--ig-info-a));\n color: var(--ig-info-800-contrast);\n}\n\n:host([variant=success]) button,\n:host([selected][variant=success]) button:not([disabled]) {\n background: hsla(var(--ig-success-500), var(--ig-success-a));\n color: var(--ig-success-500-contrast);\n}\n:host([variant=success]) button:hover,\n:host([selected][variant=success]) button:not([disabled]):hover {\n background: hsla(var(--ig-success-600), var(--ig-success-a));\n color: var(--ig-success-600-contrast);\n}\n:host([variant=success]) button:focus,\n:host([selected][variant=success]) button:not([disabled]):focus {\n background: hsla(var(--ig-success-800), var(--ig-success-a));\n color: var(--ig-success-800-contrast);\n}\n\n:host([variant=warning]) button,\n:host([selected][variant=warning]) button:not([disabled]) {\n background: hsla(var(--ig-warn-500), var(--ig-warn-a));\n color: var(--ig-warn-500-contrast);\n}\n:host([variant=warning]) button:hover,\n:host([selected][variant=warning]) button:not([disabled]):hover {\n background: hsla(var(--ig-warn-600), var(--ig-warn-a));\n color: var(--ig-warn-600-contrast);\n}\n:host([variant=warning]) button:focus,\n:host([selected][variant=warning]) button:not([disabled]):focus {\n background: hsla(var(--ig-warn-800), var(--ig-warn-a));\n color: var(--ig-warn-800-contrast);\n}\n\n:host([variant=danger]) button,\n:host([selected][variant=danger]) button:not([disabled]) {\n background: hsla(var(--ig-error-500), var(--ig-error-a));\n color: var(--ig-error-500-contrast);\n}\n:host([variant=danger]) button:hover,\n:host([selected][variant=danger]) button:not([disabled]):hover {\n background: hsla(var(--ig-error-600), var(--ig-error-a));\n color: var(--ig-error-600-contrast);\n}\n:host([variant=danger]) button:focus,\n:host([selected][variant=danger]) button:not([disabled]):focus {\n background: hsla(var(--ig-error-800), var(--ig-error-a));\n color: var(--ig-error-800-contrast);\n}\n\n[part=prefix],\n[part=suffix] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n::slotted(*) {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n\n:host([variant=primary]) button[disabled],\n:host([variant=info]) button[disabled],\n:host([variant=success]) button[disabled],\n:host([variant=warning]) button[disabled],\n:host([variant=danger]) button[disabled] {\n color: hsla(var(--ig-gray-500), var(--ig-gray-a));\n}\n:host {\n --ghost-elevation: var(--ig-chip-ghost-elevation, var(--ig-elevation-8));\n --remove-icon-color: var(--ig-chip-remove-icon-color, 'currentColor');\n --focus-outline-color: var(--ig-chip-focus-outline-color, transparent);\n --focus-selected-outline-color: var(--ig-chip-focus-selected-outline-color, transparent);\n --remove-icon-color-focus: var(--ig-chip-remove-icon-color-focus, 'currentColor');\n --text-color: var(--ig-chip-text-color, var(--ig-gray-300-contrast));\n --background: var(--ig-chip-background, hsla(var(--ig-gray-300), var(--ig-gray-a)));\n --border-color: var(--ig-chip-border-color, transparent);\n --ghost-background: var(--ig-chip-ghost-background, hsla(var(--ig-gray-400), var(--ig-gray-a)));\n --hover-text-color: var(--ig-chip-hover-text-color, var(--ig-gray-400-contrast));\n --hover-background: var(--ig-chip-hover-background, hsla(var(--ig-gray-400), var(--ig-gray-a)));\n --hover-border-color: var(--ig-chip-hover-border-color, transparent);\n --focus-text-color: var(--ig-chip-focus-text-color, var(--ig-gray-500-contrast));\n --focus-background: var(--ig-chip-focus-background, hsla(var(--ig-gray-500), var(--ig-gray-a)));\n --focus-border-color: var(--ig-chip-focus-border-color, transparent);\n --selected-text-color: var(--ig-chip-selected-text-color, var(--ig-gray-300-contrast));\n --selected-background: var(--ig-chip-selected-background, hsla(var(--ig-gray-300), var(--ig-gray-a)));\n --selected-border-color: var(--ig-chip-selected-border-color, transparent);\n --hover-selected-text-color: var(--ig-chip-hover-selected-text-color, var(--ig-gray-400-contrast));\n --hover-selected-background: var(--ig-chip-hover-selected-background, hsla(var(--ig-gray-400), var(--ig-gray-a)));\n --hover-selected-border-color: var(--ig-chip-hover-selected-border-color, transparent);\n --focus-selected-text-color: var(--ig-chip-focus-selected-text-color, var(--ig-gray-500-contrast));\n --focus-selected-background: var(--ig-chip-focus-selected-background, hsla(var(--ig-gray-500), var(--ig-gray-a)));\n --focus-selected-border-color: var(--ig-chip-focus-selected-border-color, transparent);\n --border-radius: var(--ig-chip-border-radius, clamp(0rem, calc(var(--ig-radius-factor, 1) * 1rem), 1rem));\n --disabled-text-color: var(--ig-chip-disabled-text-color, hsla(var(--ig-gray-500), var(--ig-gray-a)));\n --disabled-background: var(--ig-chip-disabled-background, hsla(var(--ig-gray-200), var(--ig-gray-a)));\n --disabled-border-color: var(--ig-chip-disabled-border-color, hsla(var(--ig-gray-200), var(--ig-gray-a)));\n --size: var(--ig-chip-size, max(var(--is-large, 1) * max(2rem, -1 * 2rem), var(--is-medium, 1) * max(1.5rem, -1 * 1.5rem), var(--is-small, 1) * max(1.25rem, -1 * 1.25rem)));\n}\n\n:host button {\n border-radius: var(--border-radius);\n background: hsla(var(--ig-gray-300), var(--ig-gray-a));\n color: var(--ig-gray-300-contrast);\n outline: none;\n}\n:host button:hover {\n background: hsla(var(--ig-gray-400), var(--ig-gray-a));\n color: var(--ig-gray-400-contrast);\n}\n:host button:focus {\n background: hsla(var(--ig-gray-500), var(--ig-gray-a));\n color: var(--ig-gray-500-contrast);\n}\n:host button[disabled] {\n background: hsla(var(--ig-gray-200), var(--ig-gray-a));\n}`;\n"]}
|
|
1
|
+
{"version":3,"file":"chip.material.css.js","sourceRoot":"","sources":["../../../../src/components/chip/themes/chip.material.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyQvB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host {\n --is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);\n --is-medium: min(\n clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1),\n clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1)\n );\n --is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);\n position: relative;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n scrollbar-width: var(--ig-scrollbar-size);\n scrollbar-color: var(--ig-scrollbar-thumb-background) var(--ig-scrollbar-track-background);\n}\n:host *,\n:host *::before,\n:host *::after {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n:host ::-webkit-scrollbar {\n width: var(--ig-scrollbar-size);\n height: var(--ig-scrollbar-size);\n background: var(--ig-scrollbar-track-background);\n}\n:host ::-webkit-scrollbar-thumb {\n background: var(--ig-scrollbar-thumb-background);\n}\n\n:host([hidden]),\n[hidden] {\n display: none !important;\n}\n:host {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n vertical-align: top;\n}\n\n:host([size=small]) {\n --component-size: var(--ig-size, var(--ig-size-small));\n}\n:host([size=small]) [part=prefix] {\n -webkit-margin-end: 0.1875rem;\n margin-inline-end: 0.1875rem;\n}\n:host([size=small]) [part=suffix] {\n -webkit-margin-start: 0.1875rem;\n margin-inline-start: 0.1875rem;\n}\n\n:host([size=medium]) {\n --component-size: var(--ig-size, var(--ig-size-medium));\n}\n:host([size=medium]) [part=prefix] {\n -webkit-margin-end: 0.375rem;\n margin-inline-end: 0.375rem;\n}\n:host([size=medium]) [part=suffix] {\n -webkit-margin-start: 0.375rem;\n margin-inline-start: 0.375rem;\n}\n\n:host([size=large]) {\n --component-size: var(--ig-size, var(--ig-size-large));\n}\n:host([size=large]) [part=prefix] {\n -webkit-margin-end: 0.5rem;\n margin-inline-end: 0.5rem;\n}\n:host([size=large]) [part=suffix] {\n -webkit-margin-start: 0.5rem;\n margin-inline-start: 0.5rem;\n}\n:host([size=large]) igc-icon[size=large] {\n --size: 1.25rem;\n}\n\n:host button {\n font-family: var(--ig-body-2-font-family, var(--ig-font-family));\n font-size: var(--ig-body-2-font-size);\n font-weight: var(--ig-body-2-font-weight);\n font-style: var(--ig-body-2-font-style);\n line-height: var(--ig-body-2-line-height);\n letter-spacing: var(--ig-body-2-letter-spacing);\n text-transform: var(--ig-body-2-text-transform);\n margin-top: var(--ig-body-2-margin-top);\n margin-bottom: var(--ig-body-2-margin-bottom);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n font-family: var(--ig-font-family);\n border-style: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n cursor: pointer;\n padding: max(var(--is-large, 1) * max(12px, -1 * 12px) * var(--ig-spacing-large, var(--ig-spacing, --ig-spacing)), var(--is-medium, 1) * max(6px, -1 * 6px) * var(--ig-spacing-medium, var(--ig-spacing, --ig-spacing)), var(--is-small, 1) * max(2px, -1 * 2px) * var(--ig-spacing-small, var(--ig-spacing, --ig-spacing)));\n}\n:host button[disabled] {\n pointer-events: none;\n color: hsla(var(--ig-gray-500), var(--ig-gray-a));\n}\n\n:host([variant=primary]) button,\n:host([selected][variant=primary]) button:not([disabled]) {\n background: hsla(var(--ig-primary-500), var(--ig-primary-a));\n color: var(--ig-primary-500-contrast);\n}\n:host([variant=primary]) button:hover,\n:host([selected][variant=primary]) button:not([disabled]):hover {\n background: hsla(var(--ig-primary-600), var(--ig-primary-a));\n color: var(--ig-primary-600-contrast);\n}\n:host([variant=primary]) button:focus,\n:host([selected][variant=primary]) button:not([disabled]):focus {\n background: hsla(var(--ig-primary-800), var(--ig-primary-a));\n color: var(--ig-primary-800-contrast);\n}\n\n:host([variant=info]) button,\n:host([selected][variant=info]) button:not([disabled]) {\n background: hsla(var(--ig-info-500), var(--ig-info-a));\n color: var(--ig-info-500-contrast);\n}\n:host([variant=info]) button:hover,\n:host([selected][variant=info]) button:not([disabled]):hover {\n background: hsla(var(--ig-info-600), var(--ig-info-a));\n color: var(--ig-info-600-contrast);\n}\n:host([variant=info]) button:focus,\n:host([selected][variant=info]) button:not([disabled]):focus {\n background: hsla(var(--ig-info-800), var(--ig-info-a));\n color: var(--ig-info-800-contrast);\n}\n\n:host([variant=success]) button,\n:host([selected][variant=success]) button:not([disabled]) {\n background: hsla(var(--ig-success-500), var(--ig-success-a));\n color: var(--ig-success-500-contrast);\n}\n:host([variant=success]) button:hover,\n:host([selected][variant=success]) button:not([disabled]):hover {\n background: hsla(var(--ig-success-600), var(--ig-success-a));\n color: var(--ig-success-600-contrast);\n}\n:host([variant=success]) button:focus,\n:host([selected][variant=success]) button:not([disabled]):focus {\n background: hsla(var(--ig-success-800), var(--ig-success-a));\n color: var(--ig-success-800-contrast);\n}\n\n:host([variant=warning]) button,\n:host([selected][variant=warning]) button:not([disabled]) {\n background: hsla(var(--ig-warn-500), var(--ig-warn-a));\n color: var(--ig-warn-500-contrast);\n}\n:host([variant=warning]) button:hover,\n:host([selected][variant=warning]) button:not([disabled]):hover {\n background: hsla(var(--ig-warn-600), var(--ig-warn-a));\n color: var(--ig-warn-600-contrast);\n}\n:host([variant=warning]) button:focus,\n:host([selected][variant=warning]) button:not([disabled]):focus {\n background: hsla(var(--ig-warn-800), var(--ig-warn-a));\n color: var(--ig-warn-800-contrast);\n}\n\n:host([variant=danger]) button,\n:host([selected][variant=danger]) button:not([disabled]) {\n background: hsla(var(--ig-error-500), var(--ig-error-a));\n color: var(--ig-error-500-contrast);\n}\n:host([variant=danger]) button:hover,\n:host([selected][variant=danger]) button:not([disabled]):hover {\n background: hsla(var(--ig-error-600), var(--ig-error-a));\n color: var(--ig-error-600-contrast);\n}\n:host([variant=danger]) button:focus,\n:host([selected][variant=danger]) button:not([disabled]):focus {\n background: hsla(var(--ig-error-800), var(--ig-error-a));\n color: var(--ig-error-800-contrast);\n}\n\n[part=prefix],\n[part=suffix] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n::slotted(*) {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n\n:host([variant=primary]) button[disabled],\n:host([variant=info]) button[disabled],\n:host([variant=success]) button[disabled],\n:host([variant=warning]) button[disabled],\n:host([variant=danger]) button[disabled] {\n color: hsla(var(--ig-gray-500), var(--ig-gray-a));\n}\n\n:host {\n --ghost-elevation: var(--ig-chip-ghost-elevation, var(--ig-elevation-8));\n --remove-icon-color: var(--ig-chip-remove-icon-color, 'currentColor');\n --focus-outline-color: var(--ig-chip-focus-outline-color, transparent);\n --focus-selected-outline-color: var(--ig-chip-focus-selected-outline-color, transparent);\n --remove-icon-color-focus: var(--ig-chip-remove-icon-color-focus, 'currentColor');\n --text-color: var(--ig-chip-text-color, var(--ig-gray-300-contrast));\n --background: var(--ig-chip-background, hsla(var(--ig-gray-300), var(--ig-gray-a)));\n --border-color: var(--ig-chip-border-color, transparent);\n --ghost-background: var(--ig-chip-ghost-background, hsla(var(--ig-gray-400), var(--ig-gray-a)));\n --hover-text-color: var(--ig-chip-hover-text-color, var(--ig-gray-400-contrast));\n --hover-background: var(--ig-chip-hover-background, hsla(var(--ig-gray-400), var(--ig-gray-a)));\n --hover-border-color: var(--ig-chip-hover-border-color, transparent);\n --focus-text-color: var(--ig-chip-focus-text-color, var(--ig-gray-500-contrast));\n --focus-background: var(--ig-chip-focus-background, hsla(var(--ig-gray-500), var(--ig-gray-a)));\n --focus-border-color: var(--ig-chip-focus-border-color, transparent);\n --selected-text-color: var(--ig-chip-selected-text-color, var(--ig-gray-300-contrast));\n --selected-background: var(--ig-chip-selected-background, hsla(var(--ig-gray-300), var(--ig-gray-a)));\n --selected-border-color: var(--ig-chip-selected-border-color, transparent);\n --hover-selected-text-color: var(--ig-chip-hover-selected-text-color, var(--ig-gray-400-contrast));\n --hover-selected-background: var(--ig-chip-hover-selected-background, hsla(var(--ig-gray-400), var(--ig-gray-a)));\n --hover-selected-border-color: var(--ig-chip-hover-selected-border-color, transparent);\n --focus-selected-text-color: var(--ig-chip-focus-selected-text-color, var(--ig-gray-500-contrast));\n --focus-selected-background: var(--ig-chip-focus-selected-background, hsla(var(--ig-gray-500), var(--ig-gray-a)));\n --focus-selected-border-color: var(--ig-chip-focus-selected-border-color, transparent);\n --border-radius: var(--ig-chip-border-radius, clamp(0rem, calc(var(--ig-radius-factor, 1) * 1rem), 1rem));\n --disabled-text-color: var(--ig-chip-disabled-text-color, hsla(var(--ig-gray-500), var(--ig-gray-a)));\n --disabled-background: var(--ig-chip-disabled-background, hsla(var(--ig-gray-200), var(--ig-gray-a)));\n --disabled-border-color: var(--ig-chip-disabled-border-color, hsla(var(--ig-gray-200), var(--ig-gray-a)));\n --size: var(--ig-chip-size, max(var(--is-large, 1) * max(2rem, -1 * 2rem), var(--is-medium, 1) * max(1.5rem, -1 * 1.5rem), var(--is-small, 1) * max(1.25rem, -1 * 1.25rem)));\n}\n\n:host button {\n border-radius: var(--border-radius);\n background: hsla(var(--ig-gray-300), var(--ig-gray-a));\n color: var(--ig-gray-300-contrast);\n outline: none;\n height: var(--size);\n}\n:host button:hover {\n background: hsla(var(--ig-gray-400), var(--ig-gray-a));\n color: var(--ig-gray-400-contrast);\n}\n:host button:focus {\n background: hsla(var(--ig-gray-500), var(--ig-gray-a));\n color: var(--ig-gray-500-contrast);\n}\n:host button[disabled] {\n background: hsla(var(--ig-gray-200), var(--ig-gray-a));\n}`;\n"]}
|
|
@@ -8,7 +8,8 @@ import { DataController } from './controllers/data.js';
|
|
|
8
8
|
import { IgcToggleComponent } from '../toggle/types.js';
|
|
9
9
|
import type { Keys, ComboRecord, GroupingDirection, FilteringOptions, IgcComboEventMap, ComboItemTemplate, ComboRenderFunction, Item, ComboValue } from './types.js';
|
|
10
10
|
import { Constructor } from '../common/mixins/constructor.js';
|
|
11
|
-
|
|
11
|
+
import type { Validator } from '../common/validators.js';
|
|
12
|
+
declare const IgcComboComponent_base: Constructor<import("../common/mixins/form-associated-required.js").FormRequiredInterface & import("../common/mixins/form-associated.js").FormAssociatedElementInterface> & import("../common/mixins/constructor.js").AbstractConstructor<import("../common/mixins/event-emitter.js").EventEmitterInterface<IgcComboEventMap>> & Constructor<LitElement>;
|
|
12
13
|
/**
|
|
13
14
|
* @element igc-combo
|
|
14
15
|
*
|
|
@@ -57,6 +58,7 @@ export default class IgcComboComponent<T extends object = any> extends IgcComboC
|
|
|
57
58
|
private _value;
|
|
58
59
|
private _displayValue;
|
|
59
60
|
private _filteringOptions;
|
|
61
|
+
protected validators: Validator<this>[];
|
|
60
62
|
protected navigationController: NavigationController<T>;
|
|
61
63
|
protected selectionController: SelectionController<T>;
|
|
62
64
|
protected dataController: DataController<T>;
|
|
@@ -70,26 +72,6 @@ export default class IgcComboComponent<T extends object = any> extends IgcComboC
|
|
|
70
72
|
private list;
|
|
71
73
|
/** The data source used to generate the list of options. */
|
|
72
74
|
data: Array<T>;
|
|
73
|
-
/**
|
|
74
|
-
* The name attribute of the control.
|
|
75
|
-
* @attr name
|
|
76
|
-
*/
|
|
77
|
-
name: string;
|
|
78
|
-
/**
|
|
79
|
-
* The disabled attribute of the control.
|
|
80
|
-
* @attr disabled
|
|
81
|
-
*/
|
|
82
|
-
disabled: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* The required attribute of the control.
|
|
85
|
-
* @attr required
|
|
86
|
-
*/
|
|
87
|
-
required: boolean;
|
|
88
|
-
/**
|
|
89
|
-
* The invalid attribute of the control.
|
|
90
|
-
* @attr invalid
|
|
91
|
-
*/
|
|
92
|
-
invalid: boolean;
|
|
93
75
|
/**
|
|
94
76
|
* The outlined attribute of the control.
|
|
95
77
|
* @attr outlined
|
|
@@ -125,11 +107,6 @@ export default class IgcComboComponent<T extends object = any> extends IgcComboC
|
|
|
125
107
|
* @attr placeholder-search
|
|
126
108
|
*/
|
|
127
109
|
placeholderSearch: string;
|
|
128
|
-
/**
|
|
129
|
-
* The direction attribute of the control.
|
|
130
|
-
* @attr dir
|
|
131
|
-
*/
|
|
132
|
-
dir: 'ltr' | 'rtl' | 'auto';
|
|
133
110
|
/**
|
|
134
111
|
* Sets the open state of the component.
|
|
135
112
|
* @attr open
|
|
@@ -207,7 +184,8 @@ export default class IgcComboComponent<T extends object = any> extends IgcComboC
|
|
|
207
184
|
constructor();
|
|
208
185
|
protected getUpdateComplete(): Promise<boolean>;
|
|
209
186
|
protected resetSearchTerm(): void;
|
|
210
|
-
protected resetState():
|
|
187
|
+
protected resetState(): void;
|
|
188
|
+
protected requiredChange(): Promise<void>;
|
|
211
189
|
protected selectItems(): void;
|
|
212
190
|
/**
|
|
213
191
|
* Sets the value (selected items). The passed value must be a valid JSON array.
|
|
@@ -241,12 +219,9 @@ export default class IgcComboComponent<T extends object = any> extends IgcComboC
|
|
|
241
219
|
* represented by the value key, when provided.
|
|
242
220
|
*/
|
|
243
221
|
get value(): ComboValue<T>[];
|
|
222
|
+
protected setFormValue(): void;
|
|
244
223
|
protected updateValue(): Promise<void>;
|
|
245
|
-
|
|
246
|
-
/** Checks the validity of the control. */
|
|
247
|
-
reportValidity(): boolean;
|
|
248
|
-
/** A wrapper around the reportValidity method to comply with the native input API. */
|
|
249
|
-
checkValidity(): boolean;
|
|
224
|
+
connectedCallback(): void;
|
|
250
225
|
/** Sets focus on the component. */
|
|
251
226
|
focus(options?: FocusOptions): void;
|
|
252
227
|
/** Removes focus from the component. */
|
|
@@ -25,12 +25,15 @@ import { SelectionController } from './controllers/selection.js';
|
|
|
25
25
|
import { IgcToggleController } from '../toggle/toggle.controller.js';
|
|
26
26
|
import { DataController } from './controllers/data.js';
|
|
27
27
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
28
|
+
import { live } from 'lit/directives/live.js';
|
|
28
29
|
import { partNameMap } from '../common/util.js';
|
|
29
30
|
import { EventEmitterMixin } from '../common/mixins/event-emitter.js';
|
|
30
31
|
import { blazorAdditionalDependencies } from '../common/decorators/blazorAdditionalDependencies.js';
|
|
31
32
|
import { blazorIndirectRender } from '../common/decorators/blazorIndirectRender.js';
|
|
33
|
+
import { FormAssociatedRequiredMixin } from '../common/mixins/form-associated-required.js';
|
|
34
|
+
import messages from '../common/localization/validation-en.js';
|
|
32
35
|
defineComponents(IgcIconComponent, IgcComboListComponent, IgcComboItemComponent, IgcComboHeaderComponent, IgcInputComponent);
|
|
33
|
-
let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitElement) {
|
|
36
|
+
let IgcComboComponent = class IgcComboComponent extends FormAssociatedRequiredMixin(EventEmitterMixin(LitElement)) {
|
|
34
37
|
get filteringOptions() {
|
|
35
38
|
return this._filteringOptions;
|
|
36
39
|
}
|
|
@@ -71,18 +74,23 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
71
74
|
caseSensitive: false,
|
|
72
75
|
matchDiacritics: false,
|
|
73
76
|
};
|
|
77
|
+
this.validators = [
|
|
78
|
+
{
|
|
79
|
+
key: 'valueMissing',
|
|
80
|
+
message: messages.required,
|
|
81
|
+
isValid: () => this.required
|
|
82
|
+
? Array.isArray(this.value) && this.value.length > 0
|
|
83
|
+
: true,
|
|
84
|
+
},
|
|
85
|
+
];
|
|
74
86
|
this.navigationController = new NavigationController(this);
|
|
75
87
|
this.selectionController = new SelectionController(this);
|
|
76
88
|
this.dataController = new DataController(this);
|
|
77
89
|
this.data = [];
|
|
78
|
-
this.disabled = false;
|
|
79
|
-
this.required = false;
|
|
80
|
-
this.invalid = false;
|
|
81
90
|
this.outlined = false;
|
|
82
91
|
this.singleSelect = false;
|
|
83
92
|
this.autofocusList = false;
|
|
84
93
|
this.placeholderSearch = 'Search';
|
|
85
|
-
this.dir = 'auto';
|
|
86
94
|
this.open = false;
|
|
87
95
|
this.flip = true;
|
|
88
96
|
this.displayKey = this.valueKey;
|
|
@@ -91,13 +99,8 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
91
99
|
this.caseSensitiveIcon = false;
|
|
92
100
|
this.disableFiltering = false;
|
|
93
101
|
this.itemTemplate = ({ item }) => {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
if (this.displayKey) {
|
|
98
|
-
return html `${item[this.displayKey]}`;
|
|
99
|
-
}
|
|
100
|
-
return html `${String(item)}`;
|
|
102
|
+
const template = this.displayKey ? `${item[this.displayKey]}` : `${item}`;
|
|
103
|
+
return html `${template}`;
|
|
101
104
|
};
|
|
102
105
|
this.groupHeaderTemplate = ({ item }) => {
|
|
103
106
|
return html `${this.groupKey && item[this.groupKey]}`;
|
|
@@ -148,9 +151,10 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
148
151
|
this.addEventListener('blur', () => {
|
|
149
152
|
const { selected } = this.selectionController;
|
|
150
153
|
if (selected.size === 0) {
|
|
151
|
-
this.
|
|
154
|
+
this._displayValue = '';
|
|
152
155
|
this.resetSearchTerm();
|
|
153
156
|
}
|
|
157
|
+
this.invalid = !this.checkValidity();
|
|
154
158
|
this.emitEvent('igcBlur');
|
|
155
159
|
});
|
|
156
160
|
this.addEventListener('keydown', this.navigationController.navigateHost.bind(this.navigationController));
|
|
@@ -163,13 +167,17 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
163
167
|
resetSearchTerm() {
|
|
164
168
|
this.dataController.searchTerm = '';
|
|
165
169
|
}
|
|
166
|
-
|
|
167
|
-
await this.updateComplete;
|
|
170
|
+
resetState() {
|
|
168
171
|
this.selectionController.selected.clear();
|
|
169
172
|
this.updateValue();
|
|
170
173
|
this.resetSearchTerm();
|
|
171
174
|
this.navigationController.active = -1;
|
|
172
175
|
}
|
|
176
|
+
async requiredChange() {
|
|
177
|
+
await this.updateComplete;
|
|
178
|
+
this.updateValidity();
|
|
179
|
+
this.invalid = !this.checkValidity();
|
|
180
|
+
}
|
|
173
181
|
selectItems() {
|
|
174
182
|
if (!this._value || this.value.length === 0) {
|
|
175
183
|
this.selectionController.deselect([]);
|
|
@@ -178,9 +186,7 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
178
186
|
this.selectionController.deselect([]);
|
|
179
187
|
this.selectionController.select(this._value);
|
|
180
188
|
}
|
|
181
|
-
|
|
182
|
-
this.updateValue();
|
|
183
|
-
}
|
|
189
|
+
this.updateValue();
|
|
184
190
|
}
|
|
185
191
|
set value(items) {
|
|
186
192
|
const oldValue = this._value;
|
|
@@ -190,25 +196,40 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
190
196
|
get value() {
|
|
191
197
|
return this._value;
|
|
192
198
|
}
|
|
199
|
+
setFormValue() {
|
|
200
|
+
if (!this.name) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
const items = this._value;
|
|
204
|
+
if (items.length < 1) {
|
|
205
|
+
return super.setFormValue(null);
|
|
206
|
+
}
|
|
207
|
+
const data = new FormData();
|
|
208
|
+
if (this.singleSelect) {
|
|
209
|
+
data.set(this.name, `${items[0]}`);
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
for (const item of items) {
|
|
213
|
+
data.append(this.name, `${item}`);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
super.setFormValue(data);
|
|
217
|
+
}
|
|
193
218
|
async updateValue() {
|
|
194
219
|
const selected = Array.from(this.selectionController.selected);
|
|
195
220
|
this._value = this.selectionController.getValue(selected, this.valueKey);
|
|
196
221
|
this._displayValue = this.selectionController
|
|
197
222
|
.getValue(selected, this.displayKey)
|
|
198
223
|
.join(', ');
|
|
224
|
+
this.setFormValue();
|
|
225
|
+
this.updateValidity();
|
|
226
|
+
this.setInvalidState();
|
|
199
227
|
await this.updateComplete;
|
|
200
|
-
this.target.value = this._displayValue;
|
|
201
228
|
this.list.requestUpdate();
|
|
202
229
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
reportValidity() {
|
|
207
|
-
this.invalid = this.required && this.value.length === 0;
|
|
208
|
-
return !this.invalid;
|
|
209
|
-
}
|
|
210
|
-
checkValidity() {
|
|
211
|
-
return this.reportValidity();
|
|
230
|
+
connectedCallback() {
|
|
231
|
+
super.connectedCallback();
|
|
232
|
+
this.updateValidity();
|
|
212
233
|
}
|
|
213
234
|
focus(options) {
|
|
214
235
|
this.target.focus(options);
|
|
@@ -411,7 +432,6 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
411
432
|
}}
|
|
412
433
|
placeholder=${ifDefined(this.placeholder)}
|
|
413
434
|
label=${ifDefined(this.label)}
|
|
414
|
-
dir=${this.dir}
|
|
415
435
|
@igcChange=${(e) => e.stopPropagation()}
|
|
416
436
|
@igcFocus=${(e) => {
|
|
417
437
|
e.stopPropagation();
|
|
@@ -422,9 +442,10 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
422
442
|
@igcBlur=${(e) => e.stopPropagation()}
|
|
423
443
|
@igcInput=${this.handleMainInput}
|
|
424
444
|
@keydown=${this.handleMainInputKeydown}
|
|
445
|
+
.value=${this._displayValue}
|
|
425
446
|
.disabled=${this.disabled}
|
|
426
447
|
.required=${this.required}
|
|
427
|
-
.invalid=${this.invalid}
|
|
448
|
+
.invalid=${live(this.invalid)}
|
|
428
449
|
.outlined=${this.outlined}
|
|
429
450
|
.autofocus=${this.autofocus}
|
|
430
451
|
?readonly=${!this.singleSelect}
|
|
@@ -453,7 +474,6 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
453
474
|
@igcBlur=${(e) => e.stopPropagation()}
|
|
454
475
|
@igcInput=${this.handleSearchInput}
|
|
455
476
|
@keydown=${this.handleSearchInputKeydown}
|
|
456
|
-
dir=${this.dir}
|
|
457
477
|
>
|
|
458
478
|
<igc-icon
|
|
459
479
|
slot=${this.caseSensitiveIcon && 'suffix'}
|
|
@@ -516,6 +536,9 @@ let IgcComboComponent = class IgcComboComponent extends EventEmitterMixin(LitEle
|
|
|
516
536
|
};
|
|
517
537
|
IgcComboComponent.tagName = 'igc-combo';
|
|
518
538
|
IgcComboComponent.styles = styles;
|
|
539
|
+
__decorate([
|
|
540
|
+
state()
|
|
541
|
+
], IgcComboComponent.prototype, "_displayValue", void 0);
|
|
519
542
|
__decorate([
|
|
520
543
|
queryAssignedElements({ slot: 'helper-text' })
|
|
521
544
|
], IgcComboComponent.prototype, "helperText", void 0);
|
|
@@ -537,18 +560,6 @@ __decorate([
|
|
|
537
560
|
__decorate([
|
|
538
561
|
property({ attribute: false })
|
|
539
562
|
], IgcComboComponent.prototype, "data", void 0);
|
|
540
|
-
__decorate([
|
|
541
|
-
property()
|
|
542
|
-
], IgcComboComponent.prototype, "name", void 0);
|
|
543
|
-
__decorate([
|
|
544
|
-
property({ reflect: true, type: Boolean })
|
|
545
|
-
], IgcComboComponent.prototype, "disabled", void 0);
|
|
546
|
-
__decorate([
|
|
547
|
-
property({ reflect: true, type: Boolean })
|
|
548
|
-
], IgcComboComponent.prototype, "required", void 0);
|
|
549
|
-
__decorate([
|
|
550
|
-
property({ reflect: true, type: Boolean })
|
|
551
|
-
], IgcComboComponent.prototype, "invalid", void 0);
|
|
552
563
|
__decorate([
|
|
553
564
|
property({ reflect: true, type: Boolean })
|
|
554
565
|
], IgcComboComponent.prototype, "outlined", void 0);
|
|
@@ -570,9 +581,6 @@ __decorate([
|
|
|
570
581
|
__decorate([
|
|
571
582
|
property({ attribute: 'placeholder-search', type: String })
|
|
572
583
|
], IgcComboComponent.prototype, "placeholderSearch", void 0);
|
|
573
|
-
__decorate([
|
|
574
|
-
property({ reflect: true })
|
|
575
|
-
], IgcComboComponent.prototype, "dir", void 0);
|
|
576
584
|
__decorate([
|
|
577
585
|
property({ type: Boolean })
|
|
578
586
|
], IgcComboComponent.prototype, "open", void 0);
|
|
@@ -629,15 +637,15 @@ __decorate([
|
|
|
629
637
|
__decorate([
|
|
630
638
|
watch('singleSelect', { waitUntilFirstUpdate: true })
|
|
631
639
|
], IgcComboComponent.prototype, "resetState", null);
|
|
640
|
+
__decorate([
|
|
641
|
+
watch('required', { waitUntilFirstUpdate: true })
|
|
642
|
+
], IgcComboComponent.prototype, "requiredChange", null);
|
|
632
643
|
__decorate([
|
|
633
644
|
watch('value')
|
|
634
645
|
], IgcComboComponent.prototype, "selectItems", null);
|
|
635
646
|
__decorate([
|
|
636
647
|
property({ attribute: true, type: Array })
|
|
637
648
|
], IgcComboComponent.prototype, "value", null);
|
|
638
|
-
__decorate([
|
|
639
|
-
watch('value')
|
|
640
|
-
], IgcComboComponent.prototype, "validate", null);
|
|
641
649
|
IgcComboComponent = __decorate([
|
|
642
650
|
themes({ material, bootstrap, fluent, indigo }, true),
|
|
643
651
|
blazorAdditionalDependencies('IgcIconComponent, IgcInputComponent'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combo.js","sourceRoot":"","sources":["../../../src/components/combo/combo.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OA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cAAc,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;mDAQrD;AAGS;IADT,KAAK,CAAC,OAAO,CAAC;oDAYd;AA0CD;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;8CAG1C;AAgBS;IADT,KAAK,CAAC,OAAO,CAAC;iDAGd;AAxZkB,iBAAiB;IAJrC,MAAM,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC;IACrD,4BAA4B,CAAC,qCAAqC,CAAC;IACnE,oBAAoB;GAEA,iBAAiB,CAq2BrC;eAr2BoB,iBAAiB","sourcesContent":["import { html, LitElement, TemplateResult } from 'lit';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { themes, themeSymbol } from '../../theming/theming-decorator.js';\nimport { styles } from './themes/light/combo.base.css.js';\nimport { styles as bootstrap } from './themes/light/combo.bootstrap.css.js';\nimport { styles as material } from './themes/light/combo.material.css.js';\nimport { styles as fluent } from './themes/light/combo.fluent.css.js';\nimport { styles as indigo } from './themes/light/combo.indigo.css.js';\nimport {\n property,\n query,\n queryAssignedElements,\n state,\n} from 'lit/decorators.js';\nimport { watch } from '../common/decorators/watch.js';\nimport { defineComponents } from '../common/definitions/defineComponents.js';\nimport IgcComboListComponent from './combo-list.js';\nimport IgcComboItemComponent from './combo-item.js';\nimport IgcComboHeaderComponent from './combo-header.js';\nimport IgcInputComponent from '../input/input.js';\nimport IgcIconComponent from '../icon/icon.js';\nimport { NavigationController } from './controllers/navigation.js';\nimport { SelectionController } from './controllers/selection.js';\nimport { IgcToggleController } from '../toggle/toggle.controller.js';\nimport { DataController } from './controllers/data.js';\nimport { IgcToggleComponent } from '../toggle/types.js';\nimport type {\n Keys,\n ComboRecord,\n GroupingDirection,\n FilteringOptions,\n IgcComboEventMap,\n ComboItemTemplate,\n ComboRenderFunction,\n Item,\n ComboValue,\n} from './types.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { partNameMap } from '../common/util.js';\nimport { EventEmitterMixin } from '../common/mixins/event-emitter.js';\nimport { Constructor } from '../common/mixins/constructor.js';\nimport type { Theme } from '../../theming/types.js';\nimport { blazorAdditionalDependencies } from '../common/decorators/blazorAdditionalDependencies.js';\nimport { blazorIndirectRender } from '../common/decorators/blazorIndirectRender.js';\n\ndefineComponents(\n IgcIconComponent,\n IgcComboListComponent,\n IgcComboItemComponent,\n IgcComboHeaderComponent,\n IgcInputComponent\n);\n\n/* blazorSupportsVisualChildren */\n/**\n * @element igc-combo\n *\n * @slot prefix - Renders content before the input.\n * @slot suffix - Renders content after input.\n * @slot header - Renders a container before the list of options.\n * @slot footer - Renders a container after the list of options.\n * @slot helper-text - Renders content below the input.\n * @slot toggle-icon - Renders content inside the suffix container.\n * @slot clear-icon - Renders content inside the suffix container.\n *\n * @fires igcFocus - Emitted when the select gains focus.\n * @fires igcBlur - Emitted when the select loses focus.\n * @fires igcChange - Emitted when the control's selection has changed.\n * @fires igcOpening - Emitted just before the list of options is opened.\n * @fires igcOpened - Emitted after the list of options is opened.\n * @fires igcClosing - Emitter just before the list of options is closed.\n * @fires igcClosed - Emitted after the list of options is closed.\n *\n * @csspart label - The encapsulated text label.\n * @csspart input - The main input field.\n * @csspart native-input - The native input of the main input field.\n * @csspart prefix - The prefix wrapper.\n * @csspart suffix - The suffix wrapper.\n * @csspart toggle-icon - The toggle icon wrapper.\n * @csspart clear-icon - The clear icon wrapper.\n * @csspart case-icon - The case icon wrapper.\n * @csspart helper-text - The helper text wrapper.\n * @csspart search-input - The search input field.\n * @csspart list-wrapper - The list of options wrapper.\n * @csspart list - The list of options box.\n * @csspart item - Represents each item in the list of options.\n * @csspart group-header - Represents each header in the list of options.\n * @csspart active - Appended to the item parts list when the item is active.\n * @csspart selected - Appended to the item parts list when the item is selected.\n * @csspart checkbox - Represents each checkbox of each list item.\n * @csspart checkbox-indicator - Represents the checkbox indicator of each list item.\n * @csspart checked - Appended to checkbox parts list when checkbox is checked.\n * @csspart header - The container holding the header content.\n * @csspart footer - The container holding the footer content.\n * @csspart empty - The container holding the empty content.\n */\n@themes({ material, bootstrap, fluent, indigo }, true)\n@blazorAdditionalDependencies('IgcIconComponent, IgcInputComponent')\n@blazorIndirectRender\n// TODO: pressing arrow down should scroll to the selected item\nexport default class IgcComboComponent<T extends object = any>\n extends EventEmitterMixin<IgcComboEventMap, Constructor<LitElement>>(\n LitElement\n )\n implements Partial<IgcToggleComponent>\n{\n public static readonly tagName = 'igc-combo';\n public static styles = styles;\n private _value: ComboValue<T>[] = [];\n private _displayValue = '';\n private _filteringOptions: FilteringOptions<T> = {\n filterKey: this.displayKey,\n caseSensitive: false,\n matchDiacritics: false,\n };\n\n protected navigationController = new NavigationController<T>(this);\n protected selectionController = new SelectionController<T>(this);\n protected dataController = new DataController<T>(this);\n protected toggleController!: IgcToggleController;\n private declare readonly [themeSymbol]: Theme;\n\n @queryAssignedElements({ slot: 'helper-text' })\n protected helperText!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'suffix' })\n protected inputSuffix!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'prefix' })\n protected inputPrefix!: Array<HTMLElement>;\n\n @query('[part=\"search-input\"]')\n protected input!: IgcInputComponent;\n\n @query('igc-input#target')\n private target!: IgcInputComponent;\n\n @query('igc-combo-list')\n private list!: IgcComboListComponent;\n\n /** The data source used to generate the list of options. */\n /* treatAsRef */\n @property({ attribute: false })\n public data: Array<T> = [];\n\n /**\n * The name attribute of the control.\n * @attr name\n */\n @property()\n public name!: string;\n\n /**\n * The disabled attribute of the control.\n * @attr disabled\n */\n @property({ reflect: true, type: Boolean })\n public disabled = false;\n\n /**\n * The required attribute of the control.\n * @attr required\n */\n @property({ reflect: true, type: Boolean })\n public required = false;\n\n /**\n * The invalid attribute of the control.\n * @attr invalid\n */\n @property({ reflect: true, type: Boolean })\n public invalid = false;\n\n /**\n * The outlined attribute of the control.\n * @attr outlined\n */\n @property({ reflect: true, type: Boolean })\n public outlined = false;\n\n /**\n * Enables single selection mode and moves item filtering to the main input.\n * @attr single-select\n */\n @property({ attribute: 'single-select', reflect: true, type: Boolean })\n public singleSelect = false;\n\n /**\n * The autofocus attribute of the control.\n * @attr autofocus\n */\n @property({ type: Boolean })\n public override autofocus!: boolean;\n\n /**\n * Focuses the list of options when the menu opens.\n * @attr autofocus-list\n */\n @property({ attribute: 'autofocus-list', type: Boolean })\n public autofocusList = false;\n\n /**\n * The label attribute of the control.\n * @attr label\n */\n @property({ type: String })\n public label!: string;\n\n /**\n * The placeholder attribute of the control.\n * @attr placeholder\n */\n @property({ type: String })\n public placeholder!: string;\n\n /**\n * The placeholder attribute of the search input.\n * @attr placeholder-search\n */\n @property({ attribute: 'placeholder-search', type: String })\n public placeholderSearch = 'Search';\n\n /**\n * The direction attribute of the control.\n * @attr dir\n */\n @property({ reflect: true })\n public override dir: 'ltr' | 'rtl' | 'auto' = 'auto';\n\n /**\n * Sets the open state of the component.\n * @attr open\n */\n @property({ type: Boolean })\n public open = false;\n\n /** @hidden @internal */\n @property({ type: Boolean })\n public flip = true;\n\n /**\n * The key in the data source used when selecting items.\n * @attr value-key\n */\n @property({ attribute: 'value-key', reflect: false })\n public valueKey?: Keys<T>;\n\n /**\n * The key in the data source used to display items in the list.\n * @attr display-key\n */\n @property({ attribute: 'display-key', reflect: false })\n public displayKey?: Keys<T> = this.valueKey;\n\n /**\n * The key in the data source used to group items in the list.\n * @attr group-key\n */\n @property({ attribute: 'group-key', reflect: false })\n public groupKey?: Keys<T> = this.displayKey;\n\n /**\n * Sorts the items in each group by ascending or descending order.\n * @attr group-sorting\n * @type {\"asc\" | \"desc\"}\n */\n @property({ attribute: 'group-sorting', reflect: false })\n public groupSorting: GroupingDirection = 'asc';\n\n /**\n * An object that configures the filtering of the combo.\n * @attr filtering-options\n * @type {FilteringOptions<T>}\n * @param filterKey - The key in the data source used when filtering the list of options.\n * @param caseSensitive - Determines whether the filtering operation should be case sensitive.\n * @param matchDiacritics -If true, the filter distinguishes between accented letters and their base letters.\n */\n @property({ attribute: 'filtering-options', type: Object })\n public get filteringOptions(): FilteringOptions<T> {\n return this._filteringOptions;\n }\n\n public set filteringOptions(value: Partial<FilteringOptions<T>>) {\n this._filteringOptions = { ...this._filteringOptions, ...value };\n this.requestUpdate('pipeline');\n }\n\n /**\n * Enables the case sensitive search icon in the filtering input.\n * @attr case-sensitive-icon\n */\n @property({ type: Boolean, attribute: 'case-sensitive-icon', reflect: false })\n public caseSensitiveIcon = false;\n\n /**\n * Disables the filtering of the list of options.\n * @attr disable-filtering\n */\n @property({ type: Boolean, attribute: 'disable-filtering', reflect: false })\n public disableFiltering = false;\n\n /* blazorSuppress */\n /**\n * The template used for the content of each combo item.\n * @type {ComboItemTemplate<T>}\n */\n @property({ attribute: false })\n public itemTemplate: ComboItemTemplate<T> = ({ item }) => {\n if (typeof item !== 'object' || item === null) {\n return String(item) as any;\n }\n\n if (this.displayKey) {\n return html`${item[this.displayKey]}`;\n }\n\n return html`${String(item)}`;\n };\n\n /* blazorSuppress */\n /**\n * The template used for the content of each combo group header.\n * @type {ComboItemTemplate<T>}\n */\n @property({ attribute: false })\n public groupHeaderTemplate: ComboItemTemplate<T> = ({ item }) => {\n return html`${this.groupKey && item[this.groupKey]}`;\n };\n\n /**\n * Sets the component's positioning strategy.\n * @hidden @internal @private\n */\n public positionStrategy: 'absolute' | 'fixed' = 'fixed';\n\n /**\n * Whether the dropdown's width should be the same as the target's one.\n * @hidden @internal @private\n */\n public sameWidth = true;\n\n @state()\n protected dataState: Array<ComboRecord<T>> = [];\n\n @watch('data')\n protected dataChanged() {\n this.dataState = structuredClone(this.data) as ComboRecord<T>[];\n\n if (this.hasUpdated) {\n this.pipeline();\n }\n }\n\n @watch('valueKey')\n protected updateDisplayKey() {\n this.displayKey = this.displayKey ?? this.valueKey;\n }\n\n @watch('displayKey')\n protected updateFilterKey() {\n if (!this.filteringOptions.filterKey) {\n this.filteringOptions = { filterKey: this.displayKey };\n }\n }\n\n @watch('groupKey')\n @watch('groupSorting')\n @watch('pipeline')\n protected async pipeline() {\n this.dataState = await this.dataController.apply([...this.data]);\n }\n\n @watch('open')\n protected toggleDirectiveChange() {\n if (!this.target) return;\n this.toggleController.target = this.target;\n this.target.setAttribute('aria-expanded', this.open ? 'true' : 'false');\n }\n\n constructor() {\n super();\n\n this.toggleController = new IgcToggleController(this, {\n target: this.target,\n closeCallback: async () => {\n if (!this.handleClosing()) return;\n this.open = false;\n\n await this.updateComplete;\n this.emitEvent('igcClosed');\n },\n });\n\n this.addEventListener('focus', () => {\n this.emitEvent('igcFocus');\n });\n\n this.addEventListener('blur', () => {\n const { selected } = this.selectionController;\n\n if (selected.size === 0) {\n this.target.value = '';\n this.resetSearchTerm();\n }\n\n this.emitEvent('igcBlur');\n });\n\n this.addEventListener(\n 'keydown',\n this.navigationController.navigateHost.bind(this.navigationController)\n );\n }\n\n protected override async getUpdateComplete() {\n const result = await super.getUpdateComplete();\n await this.toggleController.rendered;\n return result;\n }\n\n protected resetSearchTerm() {\n this.dataController.searchTerm = '';\n }\n\n @watch('singleSelect', { waitUntilFirstUpdate: true })\n protected async resetState() {\n await this.updateComplete;\n\n this.selectionController.selected.clear();\n this.updateValue();\n this.resetSearchTerm();\n this.navigationController.active = -1;\n }\n\n @watch('value')\n protected selectItems() {\n if (!this._value || this.value.length === 0) {\n this.selectionController.deselect([]);\n } else {\n this.selectionController.deselect([]);\n this.selectionController.select(this._value as Item<T>[]);\n }\n\n if (!this.singleSelect) {\n this.updateValue();\n }\n }\n\n /**\n * Sets the value (selected items). The passed value must be a valid JSON array.\n * If the data source is an array of complex objects, the `valueKey` attribute must be set.\n * Note that when `displayKey` is not explicitly set, it will fall back to the value of `valueKey`.\n *\n * @attr value\n *\n * @example\n * ```tsx\n * <igc-combo\n * .data=${[\n * {\n * id: 'BG01',\n * name: 'Sofia'\n * },\n * {\n * id: 'BG02',\n * name: 'Plovdiv'\n * }\n * ]}\n * display-key='name'\n * value-key='id'\n * value='[\"BG01\", \"BG02\"]'>\n * </igc-combo>\n * ```\n */\n /* blazorPrimitiveValue */\n /* blazorByValueArray */\n /* @tsTwoWayProperty (true, \"Change\", \"Detail.NewValue\", false) */\n public set value(items: ComboValue<T>[]) {\n const oldValue = this._value;\n this._value = items;\n this.requestUpdate('value', oldValue);\n }\n\n /**\n * Returns the current selection as a list of commma separated values,\n * represented by the value key, when provided.\n */\n @property({ attribute: true, type: Array })\n public get value() {\n return this._value;\n }\n\n protected async updateValue() {\n const selected = Array.from(this.selectionController.selected);\n\n this._value = this.selectionController.getValue(selected, this.valueKey!);\n this._displayValue = this.selectionController\n .getValue(selected, this.displayKey!)\n .join(', ');\n\n await this.updateComplete;\n this.target.value = this._displayValue;\n this.list.requestUpdate();\n }\n\n @watch('value')\n protected validate() {\n this.updateComplete.then(() => this.reportValidity());\n }\n\n /** Checks the validity of the control. */\n public reportValidity() {\n this.invalid = this.required && this.value.length === 0;\n return !this.invalid;\n }\n\n /** A wrapper around the reportValidity method to comply with the native input API. */\n public checkValidity() {\n return this.reportValidity();\n }\n\n /* alternateName: focusComponent */\n /** Sets focus on the component. */\n public override focus(options?: FocusOptions) {\n this.target.focus(options);\n }\n\n /* alternateName: blurComponent */\n /** Removes focus from the component. */\n public override blur() {\n this.target.blur();\n super.blur();\n }\n\n protected normalizeSelection(items: Item<T> | Item<T>[] = []): Item<T>[] {\n return Array.isArray(items) ? items : [items];\n }\n\n /**\n * Returns the current selection as an array of objects as provided in the `data` source.\n */\n public get selection(): Array<T> {\n return Array.from(this.selectionController.selected.values());\n }\n\n /**\n * Selects option(s) in the list by either reference or valueKey.\n * If not argument is provided all items will be selected.\n * @param { Item<T> | Items<T> } items - One or more items to be selected. Multiple items should be passed as an array.\n * When valueKey is specified, the corresponding value should be used in place of the item reference.\n * @example\n * ```typescript\n * const combo<IgcComboComponent<T>> = document.querySelector('igc-combo');\n *\n * // Select one item at a time by reference when valueKey is not specified.\n * combo.select(combo.data[0]);\n *\n * // Select multiple items at a time by reference when valueKey is not specified.\n * combo.select([combo.data[0], combo.data[1]]);\n *\n * // Select one item at a time when valueKey is specified.\n * combo.select('BG01');\n *\n * // Select multiple items at a time when valueKey is specified.\n * combo.select(['BG01', 'BG02']);\n * ```\n */\n public select(items?: Item<T> | Item<T>[]) {\n const _items = this.normalizeSelection(items);\n this.selectionController.select(_items, false);\n this.updateValue();\n }\n\n /**\n * Deselects option(s) in the list by either reference or valueKey.\n * If not argument is provided all items will be deselected.\n * @param { Item<T> | Items<T> } items - One or more items to be deselected. Multiple items should be passed as an array.\n * When valueKey is specified, the corresponding value should be used in place of the item reference.\n * @example\n * ```typescript\n * const combo<IgcComboComponent<T>> = document.querySelector('igc-combo');\n *\n * // Deselect one item at a time by reference when valueKey is not specified.\n * combo.deselect(combo.data[0]);\n *\n * // Deselect multiple items at a time by reference when valueKey is not specified.\n * combo.deselect([combo.data[0], combo.data[1]]);\n *\n * // Deselect one item at a time when valueKey is specified.\n * combo.deselect('BG01');\n *\n * // Deselect multiple items at a time when valueKey is specified.\n * combo.deselect(['BG01', 'BG02']);\n * ```\n */\n public deselect(items?: Item<T> | Item<T>[]) {\n const _items = this.normalizeSelection(items);\n this.selectionController.deselect(_items, false);\n this.updateValue();\n }\n\n protected async handleMainInput(e: CustomEvent) {\n this._show();\n this.dataController.searchTerm = e.detail;\n\n // wait for the dataState to update after filtering\n await this.updateComplete;\n\n const matchIndex = this.dataState.findIndex((i) => !i.header);\n this.navigationController.active = e.detail.length > 0 ? matchIndex : -1;\n\n // update the list after changing the active item\n this.list.requestUpdate();\n\n // clear the selection upon typing\n this.clearSingleSelection();\n }\n\n protected handleSearchInput(e: CustomEvent) {\n this.dataController.searchTerm = e.detail;\n }\n\n protected handleOpening() {\n const args = { cancelable: true };\n return this.emitEvent('igcOpening', args);\n }\n\n protected handleClosing(): boolean {\n const args = { cancelable: true };\n return this.emitEvent('igcClosing', args);\n }\n\n protected async _show(emit = true) {\n if (this.open) return;\n if (emit && !this.handleOpening()) return;\n this.open = true;\n\n await this.updateComplete;\n emit && this.emitEvent('igcOpened');\n\n if (!this.singleSelect) {\n this.list.focus();\n }\n\n if (!this.autofocusList) {\n this.input.focus();\n }\n }\n\n /** Shows the list of options. */\n public show() {\n this._show(false);\n }\n\n protected async _hide(emit = true) {\n if (!this.open) return;\n if (emit && !this.handleClosing()) return;\n this.open = false;\n\n await this.updateComplete;\n emit && this.emitEvent('igcClosed');\n this.navigationController.active = -1;\n }\n\n /** Hides the list of options. */\n public hide() {\n this._hide(false);\n }\n\n /** @hidden @internal */\n public _toggle(emit = true) {\n this.open ? this._hide(emit) : this._show(emit);\n }\n\n /** Toggles the list of options. */\n public toggle() {\n this._toggle(false);\n }\n\n protected itemRenderer: ComboRenderFunction<T> = (\n item: ComboRecord<T>,\n index: number\n ): TemplateResult => {\n const record = item;\n const dataItem = this.data.at(record.dataIndex);\n const active = this.navigationController.active === index;\n const selected = this.selectionController.selected.has(dataItem!);\n const headerTemplate = html`<igc-combo-header part=\"group-header\"\n >${this.groupHeaderTemplate({ item: record.value })}</igc-combo-header\n >`;\n\n const itemParts = partNameMap({\n item: true,\n selected,\n active,\n });\n\n const itemTemplate = html`<igc-combo-item\n part=\"${itemParts}\"\n exportparts=\"checkbox, checkbox-indicator, checked\"\n @click=${this.itemClickHandler.bind(this)}\n .index=${index}\n .active=${active}\n ?selected=${selected}\n ?hide-checkbox=${this.singleSelect}\n >${this.itemTemplate({ item: record.value })}</igc-combo-item\n >`;\n\n return html`${this.groupKey && record.header\n ? headerTemplate\n : itemTemplate}`;\n };\n\n protected listKeydownHandler(event: KeyboardEvent) {\n const target = event\n .composedPath()\n .find(\n (el) => el instanceof IgcComboListComponent\n ) as IgcComboListComponent;\n\n if (target) {\n this.navigationController.navigateList(event, target);\n }\n }\n\n protected itemClickHandler(event: MouseEvent) {\n const input = this.singleSelect ? this.target : this.input;\n\n const target = event\n .composedPath()\n .find(\n (el) => el instanceof IgcComboItemComponent\n ) as IgcComboItemComponent;\n\n this.toggleSelect(target.index);\n input.focus();\n\n if (this.singleSelect) {\n this._hide();\n }\n }\n\n protected toggleSelect(index: number) {\n const { dataIndex } = this.dataState.at(index)!;\n\n this.selectionController.changeSelection(dataIndex);\n this.navigationController.active = index;\n this.updateValue();\n }\n\n protected navigateTo(item: T) {\n this.navigationController.navigateTo(item, this.list);\n }\n\n protected clearSingleSelection() {\n const { selected } = this.selectionController;\n const selection = selected.values().next().value;\n\n if (selection) {\n const item = this.valueKey ? selection[this.valueKey] : selection;\n this.selectionController.deselect([item], selected.size > 0);\n this._value = [];\n }\n }\n\n protected handleClearIconClick(e: MouseEvent) {\n e.stopPropagation();\n\n if (this.singleSelect) {\n this.resetSearchTerm();\n this.clearSingleSelection();\n } else {\n this.selectionController.deselect([], true);\n }\n\n this.updateValue();\n this.navigationController.active = -1;\n }\n\n protected handleMainInputKeydown(e: KeyboardEvent) {\n this.navigationController.navigateMainInput(e, this.list);\n }\n\n protected handleSearchInputKeydown(e: KeyboardEvent) {\n this.navigationController.navigateSearchInput(e, this.list);\n }\n\n protected toggleCaseSensitivity() {\n this.filteringOptions = {\n caseSensitive: !this.filteringOptions.caseSensitive,\n };\n }\n\n protected get hasPrefixes() {\n return this.inputPrefix.length > 0;\n }\n\n protected get hasSuffixes() {\n return this.inputSuffix.length > 0;\n }\n\n private renderToggleIcon() {\n const openIcon =\n this[themeSymbol] === 'material' ? 'keyboard_arrow_up' : 'arrow_drop_up';\n const closeIcon =\n this[themeSymbol] === 'material'\n ? 'keyboard_arrow_down'\n : 'arrow_drop_down';\n\n return html`\n <span\n slot=\"suffix\"\n part=\"${partNameMap({\n 'toggle-icon': true,\n filled: this.value.length > 0,\n })}\"\n >\n <slot name=\"toggle-icon\">\n <igc-icon\n name=${this.open ? openIcon : closeIcon}\n collection=\"internal\"\n aria-hidden=\"true\"\n ></igc-icon>\n </slot>\n </span>\n `;\n }\n\n private renderClearIcon() {\n const { selected } = this.selectionController;\n const icon = this[themeSymbol] === 'material' ? 'chip_cancel' : 'clear';\n\n return html`<span\n slot=\"suffix\"\n part=\"clear-icon\"\n @click=${this.handleClearIconClick}\n ?hidden=${selected.size === 0}\n >\n <slot name=\"clear-icon\">\n <igc-icon\n name=\"${icon}\"\n collection=\"internal\"\n aria-hidden=\"true\"\n ></igc-icon>\n </slot>\n </span>`;\n }\n\n private renderMainInput() {\n return html`<igc-input\n id=\"target\"\n role=\"combobox\"\n aria-controls=\"dropdown\"\n aria-describedby=\"helper-text\"\n aria-disabled=${this.disabled}\n exportparts=\"container: input, input: native-input, label, prefix, suffix\"\n @click=${(e: MouseEvent) => {\n e.preventDefault();\n this._toggle(true);\n }}\n placeholder=${ifDefined(this.placeholder)}\n label=${ifDefined(this.label)}\n dir=${this.dir}\n @igcChange=${(e: Event) => e.stopPropagation()}\n @igcFocus=${(e: Event) => {\n e.stopPropagation();\n\n requestAnimationFrame(() => {\n this.target.select();\n });\n }}\n @igcBlur=${(e: Event) => e.stopPropagation()}\n @igcInput=${this.handleMainInput}\n @keydown=${this.handleMainInputKeydown}\n .disabled=${this.disabled}\n .required=${this.required}\n .invalid=${this.invalid}\n .outlined=${this.outlined}\n .autofocus=${this.autofocus}\n ?readonly=${!this.singleSelect}\n >\n <span slot=${this.hasPrefixes && 'prefix'}>\n <slot name=\"prefix\"></slot>\n </span>\n ${this.renderClearIcon()}\n <span slot=${this.hasSuffixes && 'suffix'}>\n <slot name=\"suffix\"></slot>\n </span>\n ${this.renderToggleIcon()}\n </igc-input>`;\n }\n\n private renderSearchInput() {\n return html`<div\n part=\"filter-input\"\n ?hidden=${this.disableFiltering || this.singleSelect}\n >\n <igc-input\n part=\"search-input\"\n placeholder=${this.placeholderSearch}\n exportparts=\"input: search-input\"\n @igcFocus=${(e: Event) => e.stopPropagation()}\n @igcBlur=${(e: Event) => e.stopPropagation()}\n @igcInput=${this.handleSearchInput}\n @keydown=${this.handleSearchInputKeydown}\n dir=${this.dir}\n >\n <igc-icon\n slot=${this.caseSensitiveIcon && 'suffix'}\n name=\"case_sensitive\"\n collection=\"internal\"\n part=${partNameMap({\n 'case-icon': true,\n active: this.filteringOptions.caseSensitive ?? false,\n })}\n @click=${this.toggleCaseSensitivity}\n ></igc-icon>\n </igc-input>\n </div>`;\n }\n\n private renderEmptyTemplate() {\n return html`<div part=\"empty\" ?hidden=${this.dataState.length > 0}>\n <slot name=\"empty\">The list is empty</slot>\n </div>`;\n }\n\n private renderList() {\n return html`<div\n @keydown=${this.listKeydownHandler}\n part=\"list-wrapper\"\n style=${styleMap({ position: this.positionStrategy })}\n ${this.toggleController.toggleDirective}\n >\n ${this.renderSearchInput()}\n <div part=\"header\">\n <slot name=\"header\"></slot>\n </div>\n <igc-combo-list\n id=\"dropdown\"\n part=\"list\"\n aria-label=\"${this.label}\"\n .items=${this.dataState}\n .renderItem=${this.itemRenderer}\n ?hidden=${this.dataState.length === 0}\n >\n </igc-combo-list>\n ${this.renderEmptyTemplate()}\n <div part=\"footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>`;\n }\n\n private renderHelperText() {\n return html`<div\n id=\"helper-text\"\n part=\"helper-text\"\n ?hidden=\"${this.helperText.length === 0}\"\n >\n <slot name=\"helper-text\"></slot>\n </div>`;\n }\n\n protected override render() {\n return html`\n ${this.renderMainInput()}${this.renderList()}${this.renderHelperText()}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-combo': IgcComboComponent<object>;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"combo.js","sourceRoot":"","sources":["../../../src/components/combo/combo.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EA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AE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;2DAC5C;AAQzB;IADN,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;uDAI7B;AAQK;IADN,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;8DAG7B;AAeQ;IADT,KAAK,EAAE;oDACwC;AAGtC;IADT,KAAK,CAAC,MAAM,CAAC;oDAOb;AAGS;IADT,KAAK,CAAC,UAAU,CAAC;yDAGjB;AAGS;IADT,KAAK,CAAC,YAAY,CAAC;wDAKnB;AAKe;IAHf,KAAK,CAAC,UAAU,CAAC;IACjB,KAAK,CAAC,cAAc,CAAC;IACrB,KAAK,CAAC,UAAU,CAAC;iDAGjB;AAGS;IADT,KAAK,CAAC,MAAM,CAAC;8DAKb;AAiDS;IADT,KAAK,CAAC,cAAc,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;mDAMrD;AAGwB;IADxB,KAAK,CAAC,UAAU,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;uDAOjD;AAGS;IADT,KAAK,CAAC,OAAO,CAAC;oDAUd;AA0CD;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;8CAG1C;AAjXkB,iBAAiB;IAHrC,MAAM,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC;IACrD,4BAA4B,CAAC,qCAAqC,CAAC;IACnE,oBAAoB;GACA,iBAAiB,CA+1BrC;eA/1BoB,iBAAiB","sourcesContent":["import { html, LitElement, TemplateResult } from 'lit';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { themes, themeSymbol } from '../../theming/theming-decorator.js';\nimport { styles } from './themes/light/combo.base.css.js';\nimport { styles as bootstrap } from './themes/light/combo.bootstrap.css.js';\nimport { styles as material } from './themes/light/combo.material.css.js';\nimport { styles as fluent } from './themes/light/combo.fluent.css.js';\nimport { styles as indigo } from './themes/light/combo.indigo.css.js';\nimport {\n property,\n query,\n queryAssignedElements,\n state,\n} from 'lit/decorators.js';\nimport { watch } from '../common/decorators/watch.js';\nimport { defineComponents } from '../common/definitions/defineComponents.js';\nimport IgcComboListComponent from './combo-list.js';\nimport IgcComboItemComponent from './combo-item.js';\nimport IgcComboHeaderComponent from './combo-header.js';\nimport IgcInputComponent from '../input/input.js';\nimport IgcIconComponent from '../icon/icon.js';\nimport { NavigationController } from './controllers/navigation.js';\nimport { SelectionController } from './controllers/selection.js';\nimport { IgcToggleController } from '../toggle/toggle.controller.js';\nimport { DataController } from './controllers/data.js';\nimport { IgcToggleComponent } from '../toggle/types.js';\nimport type {\n Keys,\n ComboRecord,\n GroupingDirection,\n FilteringOptions,\n IgcComboEventMap,\n ComboItemTemplate,\n ComboRenderFunction,\n Item,\n ComboValue,\n} from './types.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { partNameMap } from '../common/util.js';\nimport { EventEmitterMixin } from '../common/mixins/event-emitter.js';\nimport { Constructor } from '../common/mixins/constructor.js';\nimport type { Theme } from '../../theming/types.js';\nimport { blazorAdditionalDependencies } from '../common/decorators/blazorAdditionalDependencies.js';\nimport { blazorIndirectRender } from '../common/decorators/blazorIndirectRender.js';\nimport { FormAssociatedRequiredMixin } from '../common/mixins/form-associated-required.js';\nimport messages from '../common/localization/validation-en.js';\nimport type { Validator } from '../common/validators.js';\n\ndefineComponents(\n IgcIconComponent,\n IgcComboListComponent,\n IgcComboItemComponent,\n IgcComboHeaderComponent,\n IgcInputComponent\n);\n\n/* blazorSupportsVisualChildren */\n/**\n * @element igc-combo\n *\n * @slot prefix - Renders content before the input.\n * @slot suffix - Renders content after input.\n * @slot header - Renders a container before the list of options.\n * @slot footer - Renders a container after the list of options.\n * @slot helper-text - Renders content below the input.\n * @slot toggle-icon - Renders content inside the suffix container.\n * @slot clear-icon - Renders content inside the suffix container.\n *\n * @fires igcFocus - Emitted when the select gains focus.\n * @fires igcBlur - Emitted when the select loses focus.\n * @fires igcChange - Emitted when the control's selection has changed.\n * @fires igcOpening - Emitted just before the list of options is opened.\n * @fires igcOpened - Emitted after the list of options is opened.\n * @fires igcClosing - Emitter just before the list of options is closed.\n * @fires igcClosed - Emitted after the list of options is closed.\n *\n * @csspart label - The encapsulated text label.\n * @csspart input - The main input field.\n * @csspart native-input - The native input of the main input field.\n * @csspart prefix - The prefix wrapper.\n * @csspart suffix - The suffix wrapper.\n * @csspart toggle-icon - The toggle icon wrapper.\n * @csspart clear-icon - The clear icon wrapper.\n * @csspart case-icon - The case icon wrapper.\n * @csspart helper-text - The helper text wrapper.\n * @csspart search-input - The search input field.\n * @csspart list-wrapper - The list of options wrapper.\n * @csspart list - The list of options box.\n * @csspart item - Represents each item in the list of options.\n * @csspart group-header - Represents each header in the list of options.\n * @csspart active - Appended to the item parts list when the item is active.\n * @csspart selected - Appended to the item parts list when the item is selected.\n * @csspart checkbox - Represents each checkbox of each list item.\n * @csspart checkbox-indicator - Represents the checkbox indicator of each list item.\n * @csspart checked - Appended to checkbox parts list when checkbox is checked.\n * @csspart header - The container holding the header content.\n * @csspart footer - The container holding the footer content.\n * @csspart empty - The container holding the empty content.\n */\n@themes({ material, bootstrap, fluent, indigo }, true)\n@blazorAdditionalDependencies('IgcIconComponent, IgcInputComponent')\n@blazorIndirectRender\nexport default class IgcComboComponent<T extends object = any>\n extends FormAssociatedRequiredMixin(\n EventEmitterMixin<IgcComboEventMap, Constructor<LitElement>>(LitElement)\n )\n implements Partial<IgcToggleComponent>\n{\n public static readonly tagName = 'igc-combo';\n public static styles = styles;\n\n private _value: ComboValue<T>[] = [];\n\n @state()\n private _displayValue = '';\n\n private _filteringOptions: FilteringOptions<T> = {\n filterKey: this.displayKey,\n caseSensitive: false,\n matchDiacritics: false,\n };\n\n protected override validators: Validator<this>[] = [\n {\n key: 'valueMissing',\n message: messages.required,\n isValid: () =>\n this.required\n ? Array.isArray(this.value) && this.value.length > 0\n : true,\n },\n ];\n\n protected navigationController = new NavigationController<T>(this);\n protected selectionController = new SelectionController<T>(this);\n protected dataController = new DataController<T>(this);\n protected toggleController!: IgcToggleController;\n private declare readonly [themeSymbol]: Theme;\n\n @queryAssignedElements({ slot: 'helper-text' })\n protected helperText!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'suffix' })\n protected inputSuffix!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'prefix' })\n protected inputPrefix!: Array<HTMLElement>;\n\n @query('[part=\"search-input\"]')\n protected input!: IgcInputComponent;\n\n @query('igc-input#target')\n private target!: IgcInputComponent;\n\n @query('igc-combo-list')\n private list!: IgcComboListComponent;\n\n /** The data source used to generate the list of options. */\n /* treatAsRef */\n @property({ attribute: false })\n public data: Array<T> = [];\n\n /**\n * The outlined attribute of the control.\n * @attr outlined\n */\n @property({ reflect: true, type: Boolean })\n public outlined = false;\n\n /**\n * Enables single selection mode and moves item filtering to the main input.\n * @attr single-select\n */\n @property({ attribute: 'single-select', reflect: true, type: Boolean })\n public singleSelect = false;\n\n /**\n * The autofocus attribute of the control.\n * @attr autofocus\n */\n @property({ type: Boolean })\n public override autofocus!: boolean;\n\n /**\n * Focuses the list of options when the menu opens.\n * @attr autofocus-list\n */\n @property({ attribute: 'autofocus-list', type: Boolean })\n public autofocusList = false;\n\n /**\n * The label attribute of the control.\n * @attr label\n */\n @property({ type: String })\n public label!: string;\n\n /**\n * The placeholder attribute of the control.\n * @attr placeholder\n */\n @property({ type: String })\n public placeholder!: string;\n\n /**\n * The placeholder attribute of the search input.\n * @attr placeholder-search\n */\n @property({ attribute: 'placeholder-search', type: String })\n public placeholderSearch = 'Search';\n\n /**\n * Sets the open state of the component.\n * @attr open\n */\n @property({ type: Boolean })\n public open = false;\n\n /** @hidden @internal */\n @property({ type: Boolean })\n public flip = true;\n\n /**\n * The key in the data source used when selecting items.\n * @attr value-key\n */\n @property({ attribute: 'value-key', reflect: false })\n public valueKey?: Keys<T>;\n\n /**\n * The key in the data source used to display items in the list.\n * @attr display-key\n */\n @property({ attribute: 'display-key', reflect: false })\n public displayKey?: Keys<T> = this.valueKey;\n\n /**\n * The key in the data source used to group items in the list.\n * @attr group-key\n */\n @property({ attribute: 'group-key', reflect: false })\n public groupKey?: Keys<T> = this.displayKey;\n\n /**\n * Sorts the items in each group by ascending or descending order.\n * @attr group-sorting\n * @type {\"asc\" | \"desc\"}\n */\n @property({ attribute: 'group-sorting', reflect: false })\n public groupSorting: GroupingDirection = 'asc';\n\n /**\n * An object that configures the filtering of the combo.\n * @attr filtering-options\n * @type {FilteringOptions<T>}\n * @param filterKey - The key in the data source used when filtering the list of options.\n * @param caseSensitive - Determines whether the filtering operation should be case sensitive.\n * @param matchDiacritics -If true, the filter distinguishes between accented letters and their base letters.\n */\n @property({ attribute: 'filtering-options', type: Object })\n public get filteringOptions(): FilteringOptions<T> {\n return this._filteringOptions;\n }\n\n public set filteringOptions(value: Partial<FilteringOptions<T>>) {\n this._filteringOptions = { ...this._filteringOptions, ...value };\n this.requestUpdate('pipeline');\n }\n\n /**\n * Enables the case sensitive search icon in the filtering input.\n * @attr case-sensitive-icon\n */\n @property({ type: Boolean, attribute: 'case-sensitive-icon', reflect: false })\n public caseSensitiveIcon = false;\n\n /**\n * Disables the filtering of the list of options.\n * @attr disable-filtering\n */\n @property({ type: Boolean, attribute: 'disable-filtering', reflect: false })\n public disableFiltering = false;\n\n /* blazorSuppress */\n /**\n * The template used for the content of each combo item.\n * @type {ComboItemTemplate<T>}\n */\n @property({ attribute: false })\n public itemTemplate: ComboItemTemplate<T> = ({ item }) => {\n const template = this.displayKey ? `${item[this.displayKey]}` : `${item}`;\n return html`${template}`;\n };\n\n /* blazorSuppress */\n /**\n * The template used for the content of each combo group header.\n * @type {ComboItemTemplate<T>}\n */\n @property({ attribute: false })\n public groupHeaderTemplate: ComboItemTemplate<T> = ({ item }) => {\n return html`${this.groupKey && item[this.groupKey]}`;\n };\n\n /**\n * Sets the component's positioning strategy.\n * @hidden @internal @private\n */\n public positionStrategy: 'absolute' | 'fixed' = 'fixed';\n\n /**\n * Whether the dropdown's width should be the same as the target's one.\n * @hidden @internal @private\n */\n public sameWidth = true;\n\n @state()\n protected dataState: Array<ComboRecord<T>> = [];\n\n @watch('data')\n protected dataChanged() {\n this.dataState = structuredClone(this.data) as ComboRecord<T>[];\n\n if (this.hasUpdated) {\n this.pipeline();\n }\n }\n\n @watch('valueKey')\n protected updateDisplayKey() {\n this.displayKey = this.displayKey ?? this.valueKey;\n }\n\n @watch('displayKey')\n protected updateFilterKey() {\n if (!this.filteringOptions.filterKey) {\n this.filteringOptions = { filterKey: this.displayKey };\n }\n }\n\n @watch('groupKey')\n @watch('groupSorting')\n @watch('pipeline')\n protected async pipeline() {\n this.dataState = await this.dataController.apply([...this.data]);\n }\n\n @watch('open')\n protected toggleDirectiveChange() {\n if (!this.target) return;\n this.toggleController.target = this.target;\n this.target.setAttribute('aria-expanded', this.open ? 'true' : 'false');\n }\n\n constructor() {\n super();\n\n this.toggleController = new IgcToggleController(this, {\n target: this.target,\n closeCallback: async () => {\n if (!this.handleClosing()) return;\n this.open = false;\n\n await this.updateComplete;\n this.emitEvent('igcClosed');\n },\n });\n\n this.addEventListener('focus', () => {\n this.emitEvent('igcFocus');\n });\n\n this.addEventListener('blur', () => {\n const { selected } = this.selectionController;\n\n if (selected.size === 0) {\n this._displayValue = '';\n this.resetSearchTerm();\n }\n\n this.invalid = !this.checkValidity();\n this.emitEvent('igcBlur');\n });\n\n this.addEventListener(\n 'keydown',\n this.navigationController.navigateHost.bind(this.navigationController)\n );\n }\n\n protected override async getUpdateComplete() {\n const result = await super.getUpdateComplete();\n await this.toggleController.rendered;\n return result;\n }\n\n protected resetSearchTerm() {\n this.dataController.searchTerm = '';\n }\n\n @watch('singleSelect', { waitUntilFirstUpdate: true })\n protected resetState() {\n this.selectionController.selected.clear();\n this.updateValue();\n this.resetSearchTerm();\n this.navigationController.active = -1;\n }\n\n @watch('required', { waitUntilFirstUpdate: true })\n protected override async requiredChange() {\n // Wait for the underlying igc-input to update\n await this.updateComplete;\n\n this.updateValidity();\n this.invalid = !this.checkValidity();\n }\n\n @watch('value')\n protected selectItems() {\n if (!this._value || this.value.length === 0) {\n this.selectionController.deselect([]);\n } else {\n this.selectionController.deselect([]);\n this.selectionController.select(this._value as Item<T>[]);\n }\n\n this.updateValue();\n }\n\n /**\n * Sets the value (selected items). The passed value must be a valid JSON array.\n * If the data source is an array of complex objects, the `valueKey` attribute must be set.\n * Note that when `displayKey` is not explicitly set, it will fall back to the value of `valueKey`.\n *\n * @attr value\n *\n * @example\n * ```tsx\n * <igc-combo\n * .data=${[\n * {\n * id: 'BG01',\n * name: 'Sofia'\n * },\n * {\n * id: 'BG02',\n * name: 'Plovdiv'\n * }\n * ]}\n * display-key='name'\n * value-key='id'\n * value='[\"BG01\", \"BG02\"]'>\n * </igc-combo>\n * ```\n */\n /* blazorPrimitiveValue */\n /* blazorByValueArray */\n /* @tsTwoWayProperty (true, \"Change\", \"Detail.NewValue\", false) */\n public set value(items: ComboValue<T>[]) {\n const oldValue = this._value;\n this._value = items;\n this.requestUpdate('value', oldValue);\n }\n\n /**\n * Returns the current selection as a list of commma separated values,\n * represented by the value key, when provided.\n */\n @property({ attribute: true, type: Array })\n public get value() {\n return this._value;\n }\n\n protected override setFormValue(): void {\n if (!this.name) {\n return;\n }\n\n const items = this._value;\n\n if (items.length < 1) {\n return super.setFormValue(null);\n }\n\n const data = new FormData();\n\n if (this.singleSelect) {\n data.set(this.name, `${items[0]}`);\n } else {\n for (const item of items) {\n data.append(this.name, `${item}`);\n }\n }\n\n super.setFormValue(data);\n }\n\n protected async updateValue() {\n const selected = Array.from(this.selectionController.selected);\n\n this._value = this.selectionController.getValue(selected, this.valueKey!);\n this._displayValue = this.selectionController\n .getValue(selected, this.displayKey!)\n .join(', ');\n\n this.setFormValue();\n this.updateValidity();\n this.setInvalidState();\n\n await this.updateComplete;\n this.list.requestUpdate();\n }\n\n public override connectedCallback() {\n super.connectedCallback();\n this.updateValidity();\n }\n\n /* alternateName: focusComponent */\n /** Sets focus on the component. */\n public override focus(options?: FocusOptions) {\n this.target.focus(options);\n }\n\n /* alternateName: blurComponent */\n /** Removes focus from the component. */\n public override blur() {\n this.target.blur();\n super.blur();\n }\n\n protected normalizeSelection(items: Item<T> | Item<T>[] = []): Item<T>[] {\n return Array.isArray(items) ? items : [items];\n }\n\n /**\n * Returns the current selection as an array of objects as provided in the `data` source.\n */\n public get selection(): Array<T> {\n return Array.from(this.selectionController.selected.values());\n }\n\n /**\n * Selects option(s) in the list by either reference or valueKey.\n * If not argument is provided all items will be selected.\n * @param { Item<T> | Items<T> } items - One or more items to be selected. Multiple items should be passed as an array.\n * When valueKey is specified, the corresponding value should be used in place of the item reference.\n * @example\n * ```typescript\n * const combo<IgcComboComponent<T>> = document.querySelector('igc-combo');\n *\n * // Select one item at a time by reference when valueKey is not specified.\n * combo.select(combo.data[0]);\n *\n * // Select multiple items at a time by reference when valueKey is not specified.\n * combo.select([combo.data[0], combo.data[1]]);\n *\n * // Select one item at a time when valueKey is specified.\n * combo.select('BG01');\n *\n * // Select multiple items at a time when valueKey is specified.\n * combo.select(['BG01', 'BG02']);\n * ```\n */\n public select(items?: Item<T> | Item<T>[]) {\n const _items = this.normalizeSelection(items);\n this.selectionController.select(_items, false);\n this.updateValue();\n }\n\n /**\n * Deselects option(s) in the list by either reference or valueKey.\n * If not argument is provided all items will be deselected.\n * @param { Item<T> | Items<T> } items - One or more items to be deselected. Multiple items should be passed as an array.\n * When valueKey is specified, the corresponding value should be used in place of the item reference.\n * @example\n * ```typescript\n * const combo<IgcComboComponent<T>> = document.querySelector('igc-combo');\n *\n * // Deselect one item at a time by reference when valueKey is not specified.\n * combo.deselect(combo.data[0]);\n *\n * // Deselect multiple items at a time by reference when valueKey is not specified.\n * combo.deselect([combo.data[0], combo.data[1]]);\n *\n * // Deselect one item at a time when valueKey is specified.\n * combo.deselect('BG01');\n *\n * // Deselect multiple items at a time when valueKey is specified.\n * combo.deselect(['BG01', 'BG02']);\n * ```\n */\n public deselect(items?: Item<T> | Item<T>[]) {\n const _items = this.normalizeSelection(items);\n this.selectionController.deselect(_items, false);\n this.updateValue();\n }\n\n protected async handleMainInput(e: CustomEvent) {\n this._show();\n this.dataController.searchTerm = e.detail;\n\n // wait for the dataState to update after filtering\n await this.updateComplete;\n\n const matchIndex = this.dataState.findIndex((i) => !i.header);\n this.navigationController.active = e.detail.length > 0 ? matchIndex : -1;\n\n // update the list after changing the active item\n this.list.requestUpdate();\n\n // clear the selection upon typing\n this.clearSingleSelection();\n }\n\n protected handleSearchInput(e: CustomEvent) {\n this.dataController.searchTerm = e.detail;\n }\n\n protected handleOpening() {\n const args = { cancelable: true };\n return this.emitEvent('igcOpening', args);\n }\n\n protected handleClosing(): boolean {\n const args = { cancelable: true };\n return this.emitEvent('igcClosing', args);\n }\n\n protected async _show(emit = true) {\n if (this.open) return;\n if (emit && !this.handleOpening()) return;\n this.open = true;\n\n await this.updateComplete;\n emit && this.emitEvent('igcOpened');\n\n if (!this.singleSelect) {\n this.list.focus();\n }\n\n if (!this.autofocusList) {\n this.input.focus();\n }\n }\n\n /** Shows the list of options. */\n public show() {\n this._show(false);\n }\n\n protected async _hide(emit = true) {\n if (!this.open) return;\n if (emit && !this.handleClosing()) return;\n this.open = false;\n\n await this.updateComplete;\n emit && this.emitEvent('igcClosed');\n this.navigationController.active = -1;\n }\n\n /** Hides the list of options. */\n public hide() {\n this._hide(false);\n }\n\n /** @hidden @internal */\n public _toggle(emit = true) {\n this.open ? this._hide(emit) : this._show(emit);\n }\n\n /** Toggles the list of options. */\n public toggle() {\n this._toggle(false);\n }\n\n protected itemRenderer: ComboRenderFunction<T> = (\n item: ComboRecord<T>,\n index: number\n ): TemplateResult => {\n const record = item;\n const dataItem = this.data.at(record.dataIndex);\n const active = this.navigationController.active === index;\n const selected = this.selectionController.selected.has(dataItem!);\n const headerTemplate = html`<igc-combo-header part=\"group-header\"\n >${this.groupHeaderTemplate({ item: record.value })}</igc-combo-header\n >`;\n\n const itemParts = partNameMap({\n item: true,\n selected,\n active,\n });\n\n const itemTemplate = html`<igc-combo-item\n part=\"${itemParts}\"\n exportparts=\"checkbox, checkbox-indicator, checked\"\n @click=${this.itemClickHandler.bind(this)}\n .index=${index}\n .active=${active}\n ?selected=${selected}\n ?hide-checkbox=${this.singleSelect}\n >${this.itemTemplate({ item: record.value })}</igc-combo-item\n >`;\n\n return html`${this.groupKey && record.header\n ? headerTemplate\n : itemTemplate}`;\n };\n\n protected listKeydownHandler(event: KeyboardEvent) {\n const target = event\n .composedPath()\n .find(\n (el) => el instanceof IgcComboListComponent\n ) as IgcComboListComponent;\n\n if (target) {\n this.navigationController.navigateList(event, target);\n }\n }\n\n protected itemClickHandler(event: MouseEvent) {\n const input = this.singleSelect ? this.target : this.input;\n\n const target = event\n .composedPath()\n .find(\n (el) => el instanceof IgcComboItemComponent\n ) as IgcComboItemComponent;\n\n this.toggleSelect(target.index);\n input.focus();\n\n if (this.singleSelect) {\n this._hide();\n }\n }\n\n protected toggleSelect(index: number) {\n const { dataIndex } = this.dataState.at(index)!;\n\n this.selectionController.changeSelection(dataIndex);\n this.navigationController.active = index;\n this.updateValue();\n }\n\n protected navigateTo(item: T) {\n this.navigationController.navigateTo(item, this.list);\n }\n\n protected clearSingleSelection() {\n const { selected } = this.selectionController;\n const selection = selected.values().next().value;\n\n if (selection) {\n const item = this.valueKey ? selection[this.valueKey] : selection;\n this.selectionController.deselect([item], selected.size > 0);\n this._value = [];\n }\n }\n\n protected handleClearIconClick(e: MouseEvent) {\n e.stopPropagation();\n\n if (this.singleSelect) {\n this.resetSearchTerm();\n this.clearSingleSelection();\n } else {\n this.selectionController.deselect([], true);\n }\n\n this.updateValue();\n this.navigationController.active = -1;\n }\n\n protected handleMainInputKeydown(e: KeyboardEvent) {\n this.navigationController.navigateMainInput(e, this.list);\n }\n\n protected handleSearchInputKeydown(e: KeyboardEvent) {\n this.navigationController.navigateSearchInput(e, this.list);\n }\n\n protected toggleCaseSensitivity() {\n this.filteringOptions = {\n caseSensitive: !this.filteringOptions.caseSensitive,\n };\n }\n\n protected get hasPrefixes() {\n return this.inputPrefix.length > 0;\n }\n\n protected get hasSuffixes() {\n return this.inputSuffix.length > 0;\n }\n\n private renderToggleIcon() {\n const openIcon =\n this[themeSymbol] === 'material' ? 'keyboard_arrow_up' : 'arrow_drop_up';\n const closeIcon =\n this[themeSymbol] === 'material'\n ? 'keyboard_arrow_down'\n : 'arrow_drop_down';\n\n return html`\n <span\n slot=\"suffix\"\n part=\"${partNameMap({\n 'toggle-icon': true,\n filled: this.value.length > 0,\n })}\"\n >\n <slot name=\"toggle-icon\">\n <igc-icon\n name=${this.open ? openIcon : closeIcon}\n collection=\"internal\"\n aria-hidden=\"true\"\n ></igc-icon>\n </slot>\n </span>\n `;\n }\n\n private renderClearIcon() {\n const { selected } = this.selectionController;\n const icon = this[themeSymbol] === 'material' ? 'chip_cancel' : 'clear';\n\n return html`<span\n slot=\"suffix\"\n part=\"clear-icon\"\n @click=${this.handleClearIconClick}\n ?hidden=${selected.size === 0}\n >\n <slot name=\"clear-icon\">\n <igc-icon\n name=\"${icon}\"\n collection=\"internal\"\n aria-hidden=\"true\"\n ></igc-icon>\n </slot>\n </span>`;\n }\n\n private renderMainInput() {\n return html`<igc-input\n id=\"target\"\n role=\"combobox\"\n aria-controls=\"dropdown\"\n aria-describedby=\"helper-text\"\n aria-disabled=${this.disabled}\n exportparts=\"container: input, input: native-input, label, prefix, suffix\"\n @click=${(e: MouseEvent) => {\n e.preventDefault();\n this._toggle(true);\n }}\n placeholder=${ifDefined(this.placeholder)}\n label=${ifDefined(this.label)}\n @igcChange=${(e: Event) => e.stopPropagation()}\n @igcFocus=${(e: Event) => {\n e.stopPropagation();\n\n requestAnimationFrame(() => {\n this.target.select();\n });\n }}\n @igcBlur=${(e: Event) => e.stopPropagation()}\n @igcInput=${this.handleMainInput}\n @keydown=${this.handleMainInputKeydown}\n .value=${this._displayValue}\n .disabled=${this.disabled}\n .required=${this.required}\n .invalid=${live(this.invalid)}\n .outlined=${this.outlined}\n .autofocus=${this.autofocus}\n ?readonly=${!this.singleSelect}\n >\n <span slot=${this.hasPrefixes && 'prefix'}>\n <slot name=\"prefix\"></slot>\n </span>\n ${this.renderClearIcon()}\n <span slot=${this.hasSuffixes && 'suffix'}>\n <slot name=\"suffix\"></slot>\n </span>\n ${this.renderToggleIcon()}\n </igc-input>`;\n }\n\n private renderSearchInput() {\n return html`<div\n part=\"filter-input\"\n ?hidden=${this.disableFiltering || this.singleSelect}\n >\n <igc-input\n part=\"search-input\"\n placeholder=${this.placeholderSearch}\n exportparts=\"input: search-input\"\n @igcFocus=${(e: Event) => e.stopPropagation()}\n @igcBlur=${(e: Event) => e.stopPropagation()}\n @igcInput=${this.handleSearchInput}\n @keydown=${this.handleSearchInputKeydown}\n >\n <igc-icon\n slot=${this.caseSensitiveIcon && 'suffix'}\n name=\"case_sensitive\"\n collection=\"internal\"\n part=${partNameMap({\n 'case-icon': true,\n active: this.filteringOptions.caseSensitive ?? false,\n })}\n @click=${this.toggleCaseSensitivity}\n ></igc-icon>\n </igc-input>\n </div>`;\n }\n\n private renderEmptyTemplate() {\n return html`<div part=\"empty\" ?hidden=${this.dataState.length > 0}>\n <slot name=\"empty\">The list is empty</slot>\n </div>`;\n }\n\n private renderList() {\n return html`<div\n @keydown=${this.listKeydownHandler}\n part=\"list-wrapper\"\n style=${styleMap({ position: this.positionStrategy })}\n ${this.toggleController.toggleDirective}\n >\n ${this.renderSearchInput()}\n <div part=\"header\">\n <slot name=\"header\"></slot>\n </div>\n <igc-combo-list\n id=\"dropdown\"\n part=\"list\"\n aria-label=\"${this.label}\"\n .items=${this.dataState}\n .renderItem=${this.itemRenderer}\n ?hidden=${this.dataState.length === 0}\n >\n </igc-combo-list>\n ${this.renderEmptyTemplate()}\n <div part=\"footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>`;\n }\n\n private renderHelperText() {\n return html`<div\n id=\"helper-text\"\n part=\"helper-text\"\n ?hidden=\"${this.helperText.length === 0}\"\n >\n <slot name=\"helper-text\"></slot>\n </div>`;\n }\n\n protected override render() {\n return html`\n ${this.renderMainInput()}${this.renderList()}${this.renderHelperText()}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-combo': IgcComboComponent<object>;\n }\n}\n"]}
|
|
@@ -9,7 +9,6 @@ export class SelectionController {
|
|
|
9
9
|
return items.map((item) => { var _a; return (_a = item[key]) !== null && _a !== void 0 ? _a : item; });
|
|
10
10
|
}
|
|
11
11
|
handleChange(detail) {
|
|
12
|
-
this.host.requestUpdate('value');
|
|
13
12
|
return this.host.emitEvent('igcChange', { cancelable: true, detail });
|
|
14
13
|
}
|
|
15
14
|
getItemsByValueKey(keys) {
|
|
@@ -92,7 +91,6 @@ export class SelectionController {
|
|
|
92
91
|
this.host.requestUpdate();
|
|
93
92
|
}
|
|
94
93
|
async deselect(items, emit = false) {
|
|
95
|
-
const { singleSelect } = this.host;
|
|
96
94
|
if (!items || items.length === 0) {
|
|
97
95
|
if (emit &&
|
|
98
96
|
!this.handleChange({
|
|
@@ -102,7 +100,7 @@ export class SelectionController {
|
|
|
102
100
|
})) {
|
|
103
101
|
return;
|
|
104
102
|
}
|
|
105
|
-
|
|
103
|
+
this.deselectAll();
|
|
106
104
|
return;
|
|
107
105
|
}
|
|
108
106
|
const _items = this.host.singleSelect ? items.slice(0, 1) : items;
|