igniteui-webcomponents 6.1.0 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/components/accordion/accordion.js +3 -3
- package/components/accordion/accordion.js.map +1 -1
- package/components/avatar/avatar.d.ts +8 -9
- package/components/avatar/avatar.js +29 -32
- package/components/avatar/avatar.js.map +1 -1
- package/components/badge/badge.d.ts +3 -3
- package/components/badge/badge.js +15 -18
- package/components/badge/badge.js.map +1 -1
- package/components/banner/banner.d.ts +2 -3
- package/components/banner/banner.js +14 -13
- package/components/banner/banner.js.map +1 -1
- package/components/button/button-base.d.ts +4 -11
- package/components/button/button-base.js +14 -15
- package/components/button/button-base.js.map +1 -1
- package/components/button/button.d.ts +1 -0
- package/components/button/button.js +9 -12
- package/components/button/button.js.map +1 -1
- package/components/button/icon-button.d.ts +3 -2
- package/components/button/icon-button.js +10 -13
- package/components/button/icon-button.js.map +1 -1
- package/components/button-group/button-group.js +8 -11
- package/components/button-group/button-group.js.map +1 -1
- package/components/button-group/toggle-button.d.ts +1 -6
- package/components/button-group/toggle-button.js +9 -11
- package/components/button-group/toggle-button.js.map +1 -1
- package/components/calendar/calendar.js +7 -10
- package/components/calendar/calendar.js.map +1 -1
- package/components/calendar/days-view/days-view.js +6 -6
- package/components/calendar/days-view/days-view.js.map +1 -1
- package/components/calendar/months-view/months-view.js +8 -8
- package/components/calendar/months-view/months-view.js.map +1 -1
- package/components/calendar/years-view/years-view.js +8 -8
- package/components/calendar/years-view/years-view.js.map +1 -1
- package/components/card/card.actions.d.ts +1 -0
- package/components/card/card.actions.js +10 -13
- package/components/card/card.actions.js.map +1 -1
- package/components/card/card.content.d.ts +1 -0
- package/components/card/card.content.js +9 -15
- package/components/card/card.content.js.map +1 -1
- package/components/card/card.d.ts +1 -0
- package/components/card/card.header.d.ts +1 -0
- package/components/card/card.header.js +9 -15
- package/components/card/card.header.js.map +1 -1
- package/components/card/card.js +11 -14
- package/components/card/card.js.map +1 -1
- package/components/card/card.media.js +1 -1
- package/components/card/card.media.js.map +1 -1
- package/components/carousel/carousel-indicator-container.d.ts +1 -0
- package/components/carousel/carousel-indicator-container.js +9 -18
- package/components/carousel/carousel-indicator-container.js.map +1 -1
- package/components/carousel/carousel-indicator.d.ts +5 -7
- package/components/carousel/carousel-indicator.js +19 -19
- package/components/carousel/carousel-indicator.js.map +1 -1
- package/components/carousel/carousel-slide.d.ts +2 -3
- package/components/carousel/carousel-slide.js +17 -11
- package/components/carousel/carousel-slide.js.map +1 -1
- package/components/carousel/carousel.d.ts +0 -1
- package/components/carousel/carousel.js +22 -21
- package/components/carousel/carousel.js.map +1 -1
- package/components/checkbox/checkbox-base.js.map +1 -1
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/checkbox/checkbox.js +11 -15
- package/components/checkbox/checkbox.js.map +1 -1
- package/components/checkbox/switch.d.ts +1 -0
- package/components/checkbox/switch.js +10 -19
- package/components/checkbox/switch.js.map +1 -1
- package/components/checkbox/validators.js.map +1 -1
- package/components/chip/chip.js +7 -10
- package/components/chip/chip.js.map +1 -1
- package/components/combo/combo-header.d.ts +1 -0
- package/components/combo/combo-header.js +9 -15
- package/components/combo/combo-header.js.map +1 -1
- package/components/combo/combo-item.d.ts +4 -5
- package/components/combo/combo-item.js +22 -23
- package/components/combo/combo-item.js.map +1 -1
- package/components/combo/combo.d.ts +1 -1
- package/components/combo/combo.js +16 -16
- package/components/combo/combo.js.map +1 -1
- package/components/common/abort-handler.d.ts +39 -0
- package/components/common/abort-handler.js +19 -0
- package/components/common/abort-handler.js.map +1 -0
- package/components/common/controllers/drag.d.ts +3 -2
- package/components/common/controllers/drag.js +7 -6
- package/components/common/controllers/drag.js.map +1 -1
- package/components/common/controllers/focus-ring.d.ts +1 -0
- package/components/common/controllers/focus-ring.js +5 -4
- package/components/common/controllers/focus-ring.js.map +1 -1
- package/components/common/controllers/gestures.d.ts +6 -2
- package/components/common/controllers/gestures.js +15 -11
- package/components/common/controllers/gestures.js.map +1 -1
- package/components/common/controllers/internals.d.ts +33 -0
- package/components/common/controllers/internals.js +25 -0
- package/components/common/controllers/internals.js.map +1 -0
- package/components/common/controllers/key-bindings.d.ts +1 -0
- package/components/common/controllers/key-bindings.js +6 -4
- package/components/common/controllers/key-bindings.js.map +1 -1
- package/components/common/controllers/mutation-observer.d.ts +25 -15
- package/components/common/controllers/mutation-observer.js +23 -12
- package/components/common/controllers/mutation-observer.js.map +1 -1
- package/components/common/controllers/resize-observer.js.map +1 -1
- package/components/common/controllers/root-click.d.ts +58 -13
- package/components/common/controllers/root-click.js +47 -35
- package/components/common/controllers/root-click.js.map +1 -1
- package/components/common/decorators/shadow-options.d.ts +10 -0
- package/components/common/decorators/shadow-options.js +10 -0
- package/components/common/decorators/shadow-options.js.map +1 -0
- package/components/common/definitions/defineAllComponents.js +12 -12
- package/components/common/definitions/defineAllComponents.js.map +1 -1
- package/components/common/mixins/alert.d.ts +1 -2
- package/components/common/mixins/alert.js +13 -9
- package/components/common/mixins/alert.js.map +1 -1
- package/components/common/mixins/combo-box.d.ts +2 -1
- package/components/common/mixins/combo-box.js +0 -2
- package/components/common/mixins/combo-box.js.map +1 -1
- package/components/common/mixins/forms/associated.js +2 -2
- package/components/common/mixins/forms/associated.js.map +1 -1
- package/components/common/mixins/option.d.ts +1 -2
- package/components/common/mixins/option.js +13 -11
- package/components/common/mixins/option.js.map +1 -1
- package/components/common/part-map.js +1 -1
- package/components/common/part-map.js.map +1 -1
- package/components/common/util.d.ts +9 -0
- package/components/common/util.js +9 -1
- package/components/common/util.js.map +1 -1
- package/components/date-picker/date-picker.d.ts +2 -7
- package/components/date-picker/date-picker.js +18 -19
- package/components/date-picker/date-picker.js.map +1 -1
- package/components/date-picker/validators.js.map +1 -1
- package/components/date-range-picker/date-range-picker.d.ts +3 -8
- package/components/date-range-picker/date-range-picker.js +16 -17
- package/components/date-range-picker/date-range-picker.js.map +1 -1
- package/components/date-range-picker/predefined-ranges-area.d.ts +1 -0
- package/components/date-range-picker/predefined-ranges-area.js +10 -13
- package/components/date-range-picker/predefined-ranges-area.js.map +1 -1
- package/components/date-time-input/date-time-input.js.map +1 -1
- package/components/date-time-input/validators.js.map +1 -1
- package/components/dialog/dialog.d.ts +1 -0
- package/components/dialog/dialog.js +13 -13
- package/components/dialog/dialog.js.map +1 -1
- package/components/divider/divider.d.ts +5 -2
- package/components/divider/divider.js +17 -18
- package/components/divider/divider.js.map +1 -1
- package/components/dropdown/dropdown-group.d.ts +0 -1
- package/components/dropdown/dropdown-group.js +13 -12
- package/components/dropdown/dropdown-group.js.map +1 -1
- package/components/dropdown/dropdown-header.d.ts +1 -0
- package/components/dropdown/dropdown-header.js +9 -15
- package/components/dropdown/dropdown-header.js.map +1 -1
- package/components/dropdown/dropdown-item.d.ts +1 -0
- package/components/dropdown/dropdown-item.js +8 -14
- package/components/dropdown/dropdown-item.js.map +1 -1
- package/components/dropdown/dropdown.d.ts +2 -1
- package/components/dropdown/dropdown.js +7 -4
- package/components/dropdown/dropdown.js.map +1 -1
- package/components/dropdown/themes/item.js +7 -0
- package/components/dropdown/themes/item.js.map +1 -1
- package/components/dropdown/themes/shared/item/dropdown-item.bootstrap.css.d.ts +1 -0
- package/components/dropdown/themes/shared/item/dropdown-item.bootstrap.css.js +3 -0
- package/components/dropdown/themes/shared/item/dropdown-item.bootstrap.css.js.map +1 -0
- package/components/expansion-panel/expansion-panel.js +8 -11
- package/components/expansion-panel/expansion-panel.js.map +1 -1
- package/components/file-input/file-input.d.ts +1 -1
- package/components/file-input/file-input.js +18 -21
- package/components/file-input/file-input.js.map +1 -1
- package/components/file-input/themes/shared/file-input.material.css.js +1 -1
- package/components/file-input/themes/shared/file-input.material.css.js.map +1 -1
- package/components/file-input/validators.js.map +1 -1
- package/components/focus-trap/focus-trap.js +4 -4
- package/components/focus-trap/focus-trap.js.map +1 -1
- package/components/icon/icon.d.ts +2 -1
- package/components/icon/icon.js +18 -15
- package/components/icon/icon.js.map +1 -1
- package/components/input/input-base.d.ts +2 -8
- package/components/input/input-base.js +8 -11
- package/components/input/input-base.js.map +1 -1
- package/components/input/input.js.map +1 -1
- package/components/input/themes/shared/input.material.css.js +1 -1
- package/components/input/themes/shared/input.material.css.js.map +1 -1
- package/components/input/validators.js.map +1 -1
- package/components/list/list-header.d.ts +0 -1
- package/components/list/list-header.js +10 -17
- package/components/list/list-header.js.map +1 -1
- package/components/list/list-item.d.ts +0 -1
- package/components/list/list-item.js +13 -12
- package/components/list/list-item.js.map +1 -1
- package/components/list/list.d.ts +0 -1
- package/components/list/list.js +12 -17
- package/components/list/list.js.map +1 -1
- package/components/mask-input/mask-input.js.map +1 -1
- package/components/mask-input/validators.js.map +1 -1
- package/components/nav-drawer/nav-drawer-header-item.d.ts +1 -0
- package/components/nav-drawer/nav-drawer-header-item.js +9 -15
- package/components/nav-drawer/nav-drawer-header-item.js.map +1 -1
- package/components/nav-drawer/nav-drawer-item.d.ts +1 -0
- package/components/nav-drawer/nav-drawer-item.js +10 -13
- package/components/nav-drawer/nav-drawer-item.js.map +1 -1
- package/components/nav-drawer/nav-drawer.d.ts +1 -0
- package/components/nav-drawer/nav-drawer.js +10 -13
- package/components/nav-drawer/nav-drawer.js.map +1 -1
- package/components/navbar/navbar.d.ts +1 -0
- package/components/navbar/navbar.js +9 -15
- package/components/navbar/navbar.js.map +1 -1
- package/components/popover/popover.js +1 -1
- package/components/popover/popover.js.map +1 -1
- package/components/progress/base.d.ts +1 -2
- package/components/progress/base.js +28 -26
- package/components/progress/base.js.map +1 -1
- package/components/progress/circular-progress.d.ts +1 -0
- package/components/progress/circular-progress.js +10 -13
- package/components/progress/circular-progress.js.map +1 -1
- package/components/progress/linear-progress.d.ts +1 -0
- package/components/progress/linear-progress.js +9 -12
- package/components/progress/linear-progress.js.map +1 -1
- package/components/radio/radio.js +8 -11
- package/components/radio/radio.js.map +1 -1
- package/components/radio/utils.js.map +1 -1
- package/components/radio-group/radio-group.d.ts +1 -1
- package/components/radio-group/radio-group.js +15 -17
- package/components/radio-group/radio-group.js.map +1 -1
- package/components/rating/rating-symbol.js +1 -1
- package/components/rating/rating-symbol.js.map +1 -1
- package/components/rating/rating.js +7 -10
- package/components/rating/rating.js.map +1 -1
- package/components/resize-container/resize-container.js +7 -10
- package/components/resize-container/resize-container.js.map +1 -1
- package/components/resize-container/resize-controller.d.ts +3 -2
- package/components/resize-container/resize-controller.js +6 -4
- package/components/resize-container/resize-controller.js.map +1 -1
- package/components/ripple/ripple.js +3 -2
- package/components/ripple/ripple.js.map +1 -1
- package/components/select/select-group.d.ts +1 -1
- package/components/select/select-group.js +15 -14
- package/components/select/select-group.js.map +1 -1
- package/components/select/select-header.d.ts +1 -0
- package/components/select/select-header.js +9 -15
- package/components/select/select-header.js.map +1 -1
- package/components/select/select-item.d.ts +1 -0
- package/components/select/select-item.js +9 -9
- package/components/select/select-item.js.map +1 -1
- package/components/select/select.d.ts +1 -0
- package/components/select/select.js +11 -8
- package/components/select/select.js.map +1 -1
- package/components/select/validators.js.map +1 -1
- package/components/slider/slider-base.js +8 -8
- package/components/slider/slider-base.js.map +1 -1
- package/components/slider/slider-label.js +1 -1
- package/components/slider/slider-label.js.map +1 -1
- package/components/slider/slider.js.map +1 -1
- package/components/snackbar/snackbar.d.ts +1 -0
- package/components/snackbar/snackbar.js +9 -12
- package/components/snackbar/snackbar.js.map +1 -1
- package/components/stepper/step.d.ts +1 -0
- package/components/stepper/step.js +10 -13
- package/components/stepper/step.js.map +1 -1
- package/components/stepper/stepper.js +10 -13
- package/components/stepper/stepper.js.map +1 -1
- package/components/tabs/tab.d.ts +1 -0
- package/components/tabs/tab.js +12 -15
- package/components/tabs/tab.js.map +1 -1
- package/components/tabs/tabs.js +10 -13
- package/components/tabs/tabs.js.map +1 -1
- package/components/textarea/textarea.d.ts +2 -8
- package/components/textarea/textarea.js +11 -14
- package/components/textarea/textarea.js.map +1 -1
- package/components/textarea/themes/shared/textarea.material.css.js +1 -1
- package/components/textarea/themes/shared/textarea.material.css.js.map +1 -1
- package/components/textarea/validators.js.map +1 -1
- package/components/tile-manager/position.d.ts +1 -1
- package/components/tile-manager/position.js.map +1 -1
- package/components/tile-manager/themes/container.js.map +1 -1
- package/components/tile-manager/tile-manager.d.ts +0 -1
- package/components/tile-manager/tile-manager.js +5 -7
- package/components/tile-manager/tile-manager.js.map +1 -1
- package/components/tile-manager/tile.d.ts +1 -0
- package/components/tile-manager/tile.js +54 -57
- package/components/tile-manager/tile.js.map +1 -1
- package/components/toast/toast.d.ts +1 -0
- package/components/toast/toast.js +8 -17
- package/components/toast/toast.js.map +1 -1
- package/components/tooltip/controller.d.ts +2 -4
- package/components/tooltip/controller.js +11 -20
- package/components/tooltip/controller.js.map +1 -1
- package/components/tooltip/themes/themes.js +1 -1
- package/components/tooltip/themes/themes.js.map +1 -1
- package/components/tooltip/tooltip.js +17 -16
- package/components/tooltip/tooltip.js.map +1 -1
- package/components/tree/tree-item.d.ts +1 -0
- package/components/tree/tree-item.js +30 -33
- package/components/tree/tree-item.js.map +1 -1
- package/components/tree/tree.d.ts +1 -1
- package/components/tree/tree.js +6 -5
- package/components/tree/tree.js.map +1 -1
- package/components/tree/tree.navigation.d.ts +1 -1
- package/components/tree/tree.navigation.js.map +1 -1
- package/components/tree/tree.selection.d.ts +1 -1
- package/components/tree/tree.selection.js.map +1 -1
- package/components/validation-container/themes/themes.js.map +1 -1
- package/components/validation-container/validation-container.d.ts +2 -1
- package/components/validation-container/validation-container.js +13 -16
- package/components/validation-container/validation-container.js.map +1 -1
- package/custom-elements.json +1641 -1753
- package/igniteui-webcomponents.html-data.json +1 -1
- package/package.json +1 -1
- package/theming/config.d.ts +3 -3
- package/theming/config.js +14 -18
- package/theming/config.js.map +1 -1
- package/theming/theming-controller.d.ts +17 -13
- package/theming/theming-controller.js +29 -23
- package/theming/theming-controller.js.map +1 -1
- package/theming/theming-event.d.ts +1 -0
- package/theming/theming-event.js.map +1 -1
- package/theming/types.d.ts +3 -14
- package/theming/types.js.map +1 -1
- package/theming/utils.js +24 -23
- package/theming/utils.js.map +1 -1
- package/web-types.json +1 -1
- package/theming/theming-decorator.d.ts +0 -43
- package/theming/theming-decorator.js +0 -25
- package/theming/theming-decorator.js.map +0 -1
|
@@ -4,20 +4,20 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
import { LitElement, html } from 'lit';
|
|
7
|
+
import { html, LitElement } from 'lit';
|
|
9
8
|
import { property } from 'lit/decorators.js';
|
|
10
|
-
import {
|
|
9
|
+
import { addThemingController } from '../../theming/theming-controller.js';
|
|
11
10
|
import { registerComponent } from '../common/definitions/register.js';
|
|
12
11
|
import { all } from './themes/actions.js';
|
|
13
12
|
import { styles } from './themes/card.actions.base.css.js';
|
|
14
|
-
|
|
13
|
+
class IgcCardActionsComponent extends LitElement {
|
|
14
|
+
static register() {
|
|
15
|
+
registerComponent(IgcCardActionsComponent);
|
|
16
|
+
}
|
|
15
17
|
constructor() {
|
|
16
|
-
super(
|
|
18
|
+
super();
|
|
17
19
|
this.orientation = 'horizontal';
|
|
18
|
-
|
|
19
|
-
static register() {
|
|
20
|
-
registerComponent(IgcCardActionsComponent_1);
|
|
20
|
+
addThemingController(this, all);
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
23
|
return html `
|
|
@@ -26,14 +26,11 @@ let IgcCardActionsComponent = IgcCardActionsComponent_1 = class IgcCardActionsCo
|
|
|
26
26
|
<slot name="end"></slot>
|
|
27
27
|
`;
|
|
28
28
|
}
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
IgcCardActionsComponent.tagName = 'igc-card-actions';
|
|
31
31
|
IgcCardActionsComponent.styles = styles;
|
|
32
|
+
export default IgcCardActionsComponent;
|
|
32
33
|
__decorate([
|
|
33
34
|
property({ reflect: true })
|
|
34
35
|
], IgcCardActionsComponent.prototype, "orientation", void 0);
|
|
35
|
-
IgcCardActionsComponent = IgcCardActionsComponent_1 = __decorate([
|
|
36
|
-
themes(all)
|
|
37
|
-
], IgcCardActionsComponent);
|
|
38
|
-
export default IgcCardActionsComponent;
|
|
39
36
|
//# sourceMappingURL=card.actions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.actions.js","sourceRoot":"","sources":["../../../src/components/card/card.actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card.actions.js","sourceRoot":"","sources":["../../../src/components/card/card.actions.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAS3D,MAAqB,uBAAwB,SAAQ,UAAU;IAKtD,MAAM,CAAC,QAAQ;QACpB,iBAAiB,CAAC,uBAAuB,CAAC,CAAC;IAC7C,CAAC;IAED;QACE,KAAK,EAAE,CAAC;QASH,gBAAW,GAAuB,YAAY,CAAC;QARpD,oBAAoB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;IASkB,MAAM;QACvB,OAAO,IAAI,CAAA;;;;KAIV,CAAC;IACJ,CAAC;;AA1BsB,+BAAO,GAAG,kBAAkB,AAArB,CAAsB;AAC7B,8BAAM,GAAG,MAAM,AAAT,CAAU;eAFpB,uBAAuB;AAmBnC;IADN,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4DAC0B","sourcesContent":["import { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport { addThemingController } from '../../theming/theming-controller.js';\nimport { registerComponent } from '../common/definitions/register.js';\nimport type { ContentOrientation } from '../types.js';\nimport { all } from './themes/actions.js';\nimport { styles } from './themes/card.actions.base.css.js';\n\n/** A container for card action items like buttons\n * @element igc-card-actions\n *\n * @slot start - Renders items at the beginning of actions area\n * @slot - Renders items at the middle of actions area\n * @slot end - Renders items at the end of actions area\n */\nexport default class IgcCardActionsComponent extends LitElement {\n public static readonly tagName = 'igc-card-actions';\n public static override styles = styles;\n\n /* blazorSuppress */\n public static register(): void {\n registerComponent(IgcCardActionsComponent);\n }\n\n constructor() {\n super();\n addThemingController(this, all);\n }\n\n /**\n * The orientation of the actions.\n * @attr\n */\n @property({ reflect: true })\n public orientation: ContentOrientation = 'horizontal';\n\n protected override render() {\n return html`\n <slot name=\"start\"></slot>\n <slot></slot>\n <slot name=\"end\"></slot>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-card-actions': IgcCardActionsComponent;\n }\n}\n"]}
|
|
@@ -8,6 +8,7 @@ export default class IgcCardContentComponent extends LitElement {
|
|
|
8
8
|
static readonly tagName = "igc-card-content";
|
|
9
9
|
static styles: import("lit").CSSResult[];
|
|
10
10
|
static register(): void;
|
|
11
|
+
constructor();
|
|
11
12
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
12
13
|
}
|
|
13
14
|
declare global {
|
|
@@ -1,28 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var IgcCardContentComponent_1;
|
|
8
|
-
import { LitElement, html } from 'lit';
|
|
9
|
-
import { themes } from '../../theming/theming-decorator.js';
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import { addThemingController } from '../../theming/theming-controller.js';
|
|
10
3
|
import { registerComponent } from '../common/definitions/register.js';
|
|
11
4
|
import { styles } from './themes/card.content.base.css.js';
|
|
12
5
|
import { all } from './themes/content.js';
|
|
13
6
|
import { styles as shared } from './themes/shared/content/card.content.common.css.js';
|
|
14
|
-
|
|
7
|
+
class IgcCardContentComponent extends LitElement {
|
|
15
8
|
static register() {
|
|
16
|
-
registerComponent(
|
|
9
|
+
registerComponent(IgcCardContentComponent);
|
|
10
|
+
}
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
addThemingController(this, all);
|
|
17
14
|
}
|
|
18
15
|
render() {
|
|
19
16
|
return html ` <slot></slot> `;
|
|
20
17
|
}
|
|
21
|
-
}
|
|
18
|
+
}
|
|
22
19
|
IgcCardContentComponent.tagName = 'igc-card-content';
|
|
23
20
|
IgcCardContentComponent.styles = [styles, shared];
|
|
24
|
-
IgcCardContentComponent = IgcCardContentComponent_1 = __decorate([
|
|
25
|
-
themes(all)
|
|
26
|
-
], IgcCardContentComponent);
|
|
27
21
|
export default IgcCardContentComponent;
|
|
28
22
|
//# sourceMappingURL=card.content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.content.js","sourceRoot":"","sources":["../../../src/components/card/card.content.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card.content.js","sourceRoot":"","sources":["../../../src/components/card/card.content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAOtF,MAAqB,uBAAwB,SAAQ,UAAU;IAKtD,MAAM,CAAC,QAAQ;QACpB,iBAAiB,CAAC,uBAAuB,CAAC,CAAC;IAC7C,CAAC;IAED;QACE,KAAK,EAAE,CAAC;QACR,oBAAoB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA,iBAAiB,CAAC;IAC/B,CAAC;;AAfsB,+BAAO,GAAG,kBAAkB,CAAC;AAC7B,8BAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;eAF9B,uBAAuB","sourcesContent":["import { html, LitElement } from 'lit';\n\nimport { addThemingController } from '../../theming/theming-controller.js';\nimport { registerComponent } from '../common/definitions/register.js';\nimport { styles } from './themes/card.content.base.css.js';\nimport { all } from './themes/content.js';\nimport { styles as shared } from './themes/shared/content/card.content.common.css.js';\n\n/** A container for card's text content\n * @element igc-card-content\n *\n * @slot - Renders the card text content\n */\nexport default class IgcCardContentComponent extends LitElement {\n public static readonly tagName = 'igc-card-content';\n public static override styles = [styles, shared];\n\n /* blazorSuppress */\n public static register(): void {\n registerComponent(IgcCardContentComponent);\n }\n\n constructor() {\n super();\n addThemingController(this, all);\n }\n\n protected override render() {\n return html` <slot></slot> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-card-content': IgcCardContentComponent;\n }\n}\n"]}
|
|
@@ -13,6 +13,7 @@ export default class IgcCardHeaderComponent extends LitElement {
|
|
|
13
13
|
static readonly tagName = "igc-card-header";
|
|
14
14
|
static styles: import("lit").CSSResult[];
|
|
15
15
|
static register(): void;
|
|
16
|
+
constructor();
|
|
16
17
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
17
18
|
}
|
|
18
19
|
declare global {
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var IgcCardHeaderComponent_1;
|
|
8
|
-
import { LitElement, html } from 'lit';
|
|
9
|
-
import { themes } from '../../theming/theming-decorator.js';
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import { addThemingController } from '../../theming/theming-controller.js';
|
|
10
3
|
import { registerComponent } from '../common/definitions/register.js';
|
|
11
4
|
import { styles } from './themes/card.header.base.css.js';
|
|
12
5
|
import { all } from './themes/header.js';
|
|
13
6
|
import { styles as shared } from './themes/shared/header/card.header.common.css.js';
|
|
14
|
-
|
|
7
|
+
class IgcCardHeaderComponent extends LitElement {
|
|
15
8
|
static register() {
|
|
16
|
-
registerComponent(
|
|
9
|
+
registerComponent(IgcCardHeaderComponent);
|
|
10
|
+
}
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
addThemingController(this, all);
|
|
17
14
|
}
|
|
18
15
|
render() {
|
|
19
16
|
return html `
|
|
@@ -29,11 +26,8 @@ let IgcCardHeaderComponent = IgcCardHeaderComponent_1 = class IgcCardHeaderCompo
|
|
|
29
26
|
</section>
|
|
30
27
|
`;
|
|
31
28
|
}
|
|
32
|
-
}
|
|
29
|
+
}
|
|
33
30
|
IgcCardHeaderComponent.tagName = 'igc-card-header';
|
|
34
31
|
IgcCardHeaderComponent.styles = [styles, shared];
|
|
35
|
-
IgcCardHeaderComponent = IgcCardHeaderComponent_1 = __decorate([
|
|
36
|
-
themes(all)
|
|
37
|
-
], IgcCardHeaderComponent);
|
|
38
32
|
export default IgcCardHeaderComponent;
|
|
39
33
|
//# sourceMappingURL=card.header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.header.js","sourceRoot":"","sources":["../../../src/components/card/card.header.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card.header.js","sourceRoot":"","sources":["../../../src/components/card/card.header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AACzC,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,kDAAkD,CAAC;AAYpF,MAAqB,sBAAuB,SAAQ,UAAU;IAKrD,MAAM,CAAC,QAAQ;QACpB,iBAAiB,CAAC,sBAAsB,CAAC,CAAC;IAC5C,CAAC;IAED;QACE,KAAK,EAAE,CAAC;QACR,oBAAoB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA;;;;;;;;;;;KAWV,CAAC;IACJ,CAAC;;AA1BsB,8BAAO,GAAG,iBAAiB,CAAC;AAC5B,6BAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;eAF9B,sBAAsB","sourcesContent":["import { html, LitElement } from 'lit';\n\nimport { addThemingController } from '../../theming/theming-controller.js';\nimport { registerComponent } from '../common/definitions/register.js';\nimport { styles } from './themes/card.header.base.css.js';\nimport { all } from './themes/header.js';\nimport { styles as shared } from './themes/shared/header/card.header.common.css.js';\n\n/** A container for card's header\n * @element igc-card-header\n *\n * @slot thumbnail - Renders header media like icon\n * @slot title - Renders the card title\n * @slot subtitle - Renders the card subtitle\n * @slot - Renders content next to the card title\n *\n * @csspart header - The card header container\n */\nexport default class IgcCardHeaderComponent extends LitElement {\n public static readonly tagName = 'igc-card-header';\n public static override styles = [styles, shared];\n\n /* blazorSuppress */\n public static register(): void {\n registerComponent(IgcCardHeaderComponent);\n }\n\n constructor() {\n super();\n addThemingController(this, all);\n }\n\n protected override render() {\n return html`\n <section>\n <slot name=\"thumbnail\"></slot>\n </section>\n <section>\n <header part=\"header\">\n <slot part=\"title\" name=\"title\"></slot>\n <slot part=\"subtitle\" name=\"subtitle\"></slot>\n </header>\n <slot></slot>\n </section>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-card-header': IgcCardHeaderComponent;\n }\n}\n"]}
|
package/components/card/card.js
CHANGED
|
@@ -4,10 +4,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
import { LitElement, html } from 'lit';
|
|
7
|
+
import { html, LitElement } from 'lit';
|
|
9
8
|
import { property } from 'lit/decorators.js';
|
|
10
|
-
import {
|
|
9
|
+
import { addThemingController } from '../../theming/theming-controller.js';
|
|
11
10
|
import { registerComponent } from '../common/definitions/register.js';
|
|
12
11
|
import IgcCardActionsComponent from './card.actions.js';
|
|
13
12
|
import IgcCardContentComponent from './card.content.js';
|
|
@@ -16,25 +15,23 @@ import IgcCardMediaComponent from './card.media.js';
|
|
|
16
15
|
import { styles } from './themes/container.base.css.js';
|
|
17
16
|
import { all } from './themes/container.js';
|
|
18
17
|
import { styles as shared } from './themes/shared/container/card.common.css.js';
|
|
19
|
-
|
|
18
|
+
class IgcCardComponent extends LitElement {
|
|
19
|
+
static register() {
|
|
20
|
+
registerComponent(IgcCardComponent, IgcCardActionsComponent, IgcCardContentComponent, IgcCardHeaderComponent, IgcCardMediaComponent);
|
|
21
|
+
}
|
|
20
22
|
constructor() {
|
|
21
|
-
super(
|
|
23
|
+
super();
|
|
22
24
|
this.elevated = false;
|
|
23
|
-
|
|
24
|
-
static register() {
|
|
25
|
-
registerComponent(IgcCardComponent_1, IgcCardActionsComponent, IgcCardContentComponent, IgcCardHeaderComponent, IgcCardMediaComponent);
|
|
25
|
+
addThemingController(this, all);
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return html
|
|
28
|
+
return html `<slot></slot>`;
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
}
|
|
31
31
|
IgcCardComponent.tagName = 'igc-card';
|
|
32
32
|
IgcCardComponent.styles = [styles, shared];
|
|
33
|
+
export default IgcCardComponent;
|
|
33
34
|
__decorate([
|
|
34
35
|
property({ type: Boolean, reflect: true })
|
|
35
36
|
], IgcCardComponent.prototype, "elevated", void 0);
|
|
36
|
-
IgcCardComponent = IgcCardComponent_1 = __decorate([
|
|
37
|
-
themes(all)
|
|
38
|
-
], IgcCardComponent);
|
|
39
|
-
export default IgcCardComponent;
|
|
40
37
|
//# sourceMappingURL=card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/card/card.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../../src/components/card/card.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,uBAAuB,MAAM,mBAAmB,CAAC;AACxD,OAAO,uBAAuB,MAAM,mBAAmB,CAAC;AACxD,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AACtD,OAAO,qBAAqB,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,8CAA8C,CAAC;AAOhF,MAAqB,gBAAiB,SAAQ,UAAU;IAK/C,MAAM,CAAC,QAAQ;QACpB,iBAAiB,CACf,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,CACtB,CAAC;IACJ,CAAC;IASD;QACE,KAAK,EAAE,CAAC;QAHH,aAAQ,GAAG,KAAK,CAAC;QAItB,oBAAoB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AA5BsB,wBAAO,GAAG,UAAU,AAAb,CAAc;AACrB,uBAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,AAAnB,CAAoB;eAF9B,gBAAgB;AAoB5B;IADN,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDACnB","sourcesContent":["import { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport { addThemingController } from '../../theming/theming-controller.js';\nimport { registerComponent } from '../common/definitions/register.js';\nimport IgcCardActionsComponent from './card.actions.js';\nimport IgcCardContentComponent from './card.content.js';\nimport IgcCardHeaderComponent from './card.header.js';\nimport IgcCardMediaComponent from './card.media.js';\nimport { styles } from './themes/container.base.css.js';\nimport { all } from './themes/container.js';\nimport { styles as shared } from './themes/shared/container/card.common.css.js';\n\n/** A container which wraps different elements related to a single subject\n * @element igc-card\n *\n * @slot - Renders card content\n */\nexport default class IgcCardComponent extends LitElement {\n public static readonly tagName = 'igc-card';\n public static override styles = [styles, shared];\n\n /* blazorSuppress */\n public static register(): void {\n registerComponent(\n IgcCardComponent,\n IgcCardActionsComponent,\n IgcCardContentComponent,\n IgcCardHeaderComponent,\n IgcCardMediaComponent\n );\n }\n\n /**\n * Sets card elevated style, otherwise card looks outlined.\n * @attr\n */\n @property({ type: Boolean, reflect: true })\n public elevated = false;\n\n constructor() {\n super();\n addThemingController(this, all);\n }\n\n protected override render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-card': IgcCardComponent;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.media.js","sourceRoot":"","sources":["../../../src/components/card/card.media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"card.media.js","sourceRoot":"","sources":["../../../src/components/card/card.media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAOzD,MAAqB,qBAAsB,SAAQ,UAAU;IAKpD,MAAM,CAAC,QAAQ;QACpB,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;IAC3C,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA,iBAAiB,CAAC;IAC/B,CAAC;;AAVsB,6BAAO,GAAG,gBAAgB,CAAC;AAC3B,4BAAM,GAAG,MAAM,CAAC;eAFpB,qBAAqB","sourcesContent":["import { html, LitElement } from 'lit';\n\nimport { registerComponent } from '../common/definitions/register.js';\nimport { styles } from './themes/card.media.base.css.js';\n\n/** A container for card's media - could be an image, gif, video\n * @element igc-card-media\n *\n * @slot - Renders the card media content\n */\nexport default class IgcCardMediaComponent extends LitElement {\n public static readonly tagName = 'igc-card-media';\n public static override styles = styles;\n\n /* blazorSuppress */\n public static register() {\n registerComponent(IgcCardMediaComponent);\n }\n\n protected override render() {\n return html` <slot></slot> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-card-media': IgcCardMediaComponent;\n }\n}\n"]}
|
|
@@ -11,6 +11,7 @@ export default class IgcCarouselIndicatorContainerComponent extends LitElement {
|
|
|
11
11
|
static styles: import("lit").CSSResult[];
|
|
12
12
|
static register(): void;
|
|
13
13
|
private readonly _focusRingManager;
|
|
14
|
+
constructor();
|
|
14
15
|
private _handleFocusOut;
|
|
15
16
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
16
17
|
}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var IgcCarouselIndicatorContainerComponent_1;
|
|
8
|
-
import { LitElement, html } from 'lit';
|
|
9
|
-
import { themes } from '../../theming/theming-decorator.js';
|
|
1
|
+
import { html, LitElement } from 'lit';
|
|
2
|
+
import { addThemingController } from '../../theming/theming-controller.js';
|
|
10
3
|
import { addKeyboardFocusRing } from '../common/controllers/focus-ring.js';
|
|
11
4
|
import { registerComponent } from '../common/definitions/register.js';
|
|
12
5
|
import { partMap } from '../common/part-map.js';
|
|
@@ -14,13 +7,14 @@ import IgcCarouselIndicatorComponent from './carousel-indicator.js';
|
|
|
14
7
|
import { styles } from './themes/carousel-indicator-container.base.css.js';
|
|
15
8
|
import { all } from './themes/indicator-container.js';
|
|
16
9
|
import { styles as shared } from './themes/shared/indicator-container/indicator-container.common.css.js';
|
|
17
|
-
|
|
10
|
+
class IgcCarouselIndicatorContainerComponent extends LitElement {
|
|
11
|
+
static register() {
|
|
12
|
+
registerComponent(IgcCarouselIndicatorContainerComponent);
|
|
13
|
+
}
|
|
18
14
|
constructor() {
|
|
19
|
-
super(
|
|
15
|
+
super();
|
|
20
16
|
this._focusRingManager = addKeyboardFocusRing(this);
|
|
21
|
-
|
|
22
|
-
static register() {
|
|
23
|
-
registerComponent(IgcCarouselIndicatorContainerComponent_1);
|
|
17
|
+
addThemingController(this, all);
|
|
24
18
|
}
|
|
25
19
|
_handleFocusOut(event) {
|
|
26
20
|
const target = event.relatedTarget;
|
|
@@ -41,11 +35,8 @@ let IgcCarouselIndicatorContainerComponent = IgcCarouselIndicatorContainerCompon
|
|
|
41
35
|
</div>
|
|
42
36
|
`;
|
|
43
37
|
}
|
|
44
|
-
}
|
|
38
|
+
}
|
|
45
39
|
IgcCarouselIndicatorContainerComponent.tagName = 'igc-carousel-indicator-container';
|
|
46
40
|
IgcCarouselIndicatorContainerComponent.styles = [styles, shared];
|
|
47
|
-
IgcCarouselIndicatorContainerComponent = IgcCarouselIndicatorContainerComponent_1 = __decorate([
|
|
48
|
-
themes(all)
|
|
49
|
-
], IgcCarouselIndicatorContainerComponent);
|
|
50
41
|
export default IgcCarouselIndicatorContainerComponent;
|
|
51
42
|
//# sourceMappingURL=carousel-indicator-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-indicator-container.js","sourceRoot":"","sources":["../../../src/components/carousel/carousel-indicator-container.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carousel-indicator-container.js","sourceRoot":"","sources":["../../../src/components/carousel/carousel-indicator-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,6BAA6B,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,uEAAuE,CAAC;AAUzG,MAAqB,sCAAuC,SAAQ,UAAU;IAKrE,MAAM,CAAC,QAAQ;QACpB,iBAAiB,CAAC,sCAAsC,CAAC,CAAC;IAC5D,CAAC;IAID;QACE,KAAK,EAAE,CAAC;QAHO,sBAAiB,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAI9D,oBAAoB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;IAEO,eAAe,CAAC,KAAiB;QACvC,MAAM,MAAM,GAAG,KAAK,CAAC,aAAwB,CAAC;QAE9C,IAAI,MAAM,EAAE,OAAO,CAAC,6BAA6B,CAAC,OAAO,CAAC,EAAE,CAAC;YAG3D,KAAK,CAAC,eAAe,EAAE,CAAC;QAC1B,CAAC;IACH,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA;;eAEA,OAAO,CAAC;YACb,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO;SACxC,CAAC;oBACU,IAAI,CAAC,eAAe;;;;KAInC,CAAC;IACJ,CAAC;;AArCsB,8CAAO,GAAG,kCAAkC,AAArC,CAAsC;AAC7C,6CAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,AAAnB,CAAoB;eAF9B,sCAAsC","sourcesContent":["import { html, LitElement } from 'lit';\nimport { addThemingController } from '../../theming/theming-controller.js';\nimport { addKeyboardFocusRing } from '../common/controllers/focus-ring.js';\nimport { registerComponent } from '../common/definitions/register.js';\nimport { partMap } from '../common/part-map.js';\nimport IgcCarouselIndicatorComponent from './carousel-indicator.js';\nimport { styles } from './themes/carousel-indicator-container.base.css.js';\nimport { all } from './themes/indicator-container.js';\nimport { styles as shared } from './themes/shared/indicator-container/indicator-container.common.css.js';\n\n/* blazorSuppress */\n/**\n * @element igc-carousel-indicator-container\n *\n * @slot - Default slot for the carousel indicator container.\n *\n * @csspart base - The wrapping container of all carousel indicators.\n */\nexport default class IgcCarouselIndicatorContainerComponent extends LitElement {\n public static readonly tagName = 'igc-carousel-indicator-container';\n public static override styles = [styles, shared];\n\n /* blazorSuppress */\n public static register(): void {\n registerComponent(IgcCarouselIndicatorContainerComponent);\n }\n\n private readonly _focusRingManager = addKeyboardFocusRing(this);\n\n constructor() {\n super();\n addThemingController(this, all);\n }\n\n private _handleFocusOut(event: FocusEvent): void {\n const target = event.relatedTarget as Element;\n\n if (target?.matches(IgcCarouselIndicatorComponent.tagName)) {\n // Stop the event from hitting the _focusRingManager handler redrawing\n // the keyboard focus styles\n event.stopPropagation();\n }\n }\n\n protected override render() {\n return html`\n <div\n part=${partMap({\n base: true,\n focused: this._focusRingManager.focused,\n })}\n @focusout=${this._handleFocusOut}\n >\n <slot></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-carousel-indicator-container': IgcCarouselIndicatorContainerComponent;\n }\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, type PropertyValues } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Used when a custom indicator needs to be passed to the `igc-carousel` component.
|
|
4
4
|
*
|
|
@@ -15,16 +15,14 @@ export default class IgcCarouselIndicatorComponent extends LitElement {
|
|
|
15
15
|
static readonly tagName = "igc-carousel-indicator";
|
|
16
16
|
static styles: import("lit").CSSResult;
|
|
17
17
|
static register(): void;
|
|
18
|
-
private
|
|
19
|
-
private _internals;
|
|
18
|
+
private readonly _internals;
|
|
20
19
|
private _carousel?;
|
|
21
20
|
protected get _labelFormat(): string;
|
|
22
|
-
|
|
23
|
-
get active(): boolean;
|
|
21
|
+
active: boolean;
|
|
24
22
|
index: number;
|
|
25
|
-
|
|
23
|
+
/** @internal */
|
|
26
24
|
connectedCallback(): void;
|
|
27
|
-
protected willUpdate(): void;
|
|
25
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
28
26
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
29
27
|
}
|
|
30
28
|
declare global {
|
|
@@ -5,42 +5,42 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { consume } from '@lit/context';
|
|
8
|
-
import {
|
|
8
|
+
import { html, LitElement } from 'lit';
|
|
9
9
|
import { property } from 'lit/decorators.js';
|
|
10
10
|
import { styleMap } from 'lit/directives/style-map.js';
|
|
11
11
|
import { carouselContext } from '../common/context.js';
|
|
12
|
+
import { addInternalsController } from '../common/controllers/internals.js';
|
|
12
13
|
import { registerComponent } from '../common/definitions/register.js';
|
|
13
14
|
import { formatString } from '../common/util.js';
|
|
14
15
|
import { styles } from './themes/carousel-indicator.base.css.js';
|
|
15
16
|
class IgcCarouselIndicatorComponent extends LitElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this._internals = addInternalsController(this, {
|
|
20
|
+
initialARIA: { role: 'tab' },
|
|
21
|
+
});
|
|
22
|
+
this.active = false;
|
|
23
|
+
this.index = 0;
|
|
24
|
+
}
|
|
16
25
|
static register() {
|
|
17
26
|
registerComponent(IgcCarouselIndicatorComponent);
|
|
18
27
|
}
|
|
19
28
|
get _labelFormat() {
|
|
20
29
|
return this._carousel ? this._carousel.indicatorsLabelFormat : '';
|
|
21
30
|
}
|
|
22
|
-
set active(value) {
|
|
23
|
-
this._active = Boolean(value);
|
|
24
|
-
this.tabIndex = this._active ? 0 : -1;
|
|
25
|
-
this._internals.ariaSelected = this._active.toString();
|
|
26
|
-
}
|
|
27
|
-
get active() {
|
|
28
|
-
return this._active;
|
|
29
|
-
}
|
|
30
|
-
constructor() {
|
|
31
|
-
super();
|
|
32
|
-
this._active = false;
|
|
33
|
-
this.index = 0;
|
|
34
|
-
this._internals = this.attachInternals();
|
|
35
|
-
this._internals.role = 'tab';
|
|
36
|
-
}
|
|
37
31
|
connectedCallback() {
|
|
38
32
|
super.connectedCallback();
|
|
39
33
|
this.role = 'tab';
|
|
40
34
|
this.slot = this.slot || 'indicator';
|
|
41
35
|
}
|
|
42
|
-
willUpdate() {
|
|
43
|
-
|
|
36
|
+
willUpdate(changedProperties) {
|
|
37
|
+
if (changedProperties.has('active')) {
|
|
38
|
+
this.tabIndex = this.active ? 0 : -1;
|
|
39
|
+
this._internals.setARIA({ ariaSelected: this.active.toString() });
|
|
40
|
+
}
|
|
41
|
+
this._internals.setARIA({
|
|
42
|
+
ariaLabel: formatString(this._labelFormat, this.index + 1),
|
|
43
|
+
});
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
const forward = this.active ? 'visible' : 'hidden';
|
|
@@ -66,7 +66,7 @@ __decorate([
|
|
|
66
66
|
], IgcCarouselIndicatorComponent.prototype, "_carousel", void 0);
|
|
67
67
|
__decorate([
|
|
68
68
|
property({ attribute: false })
|
|
69
|
-
], IgcCarouselIndicatorComponent.prototype, "active",
|
|
69
|
+
], IgcCarouselIndicatorComponent.prototype, "active", void 0);
|
|
70
70
|
__decorate([
|
|
71
71
|
property({ attribute: false })
|
|
72
72
|
], IgcCarouselIndicatorComponent.prototype, "index", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-indicator.js","sourceRoot":"","sources":["../../../src/components/carousel/carousel-indicator.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"carousel-indicator.js","sourceRoot":"","sources":["../../../src/components/carousel/carousel-indicator.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AAcjE,MAAqB,6BAA8B,SAAQ,UAAU;IAArE;;QASmB,eAAU,GAAG,sBAAsB,CAAC,IAAI,EAAE;YACzD,WAAW,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;SAC7B,CAAC,CAAC;QAWI,WAAM,GAAG,KAAK,CAAC;QAIf,UAAK,GAAG,CAAC,CAAC;IAoCnB,CAAC;IAzDQ,MAAM,CAAC,QAAQ;QACpB,iBAAiB,CAAC,6BAA6B,CAAC,CAAC;IACnD,CAAC;IASD,IAAc,YAAY;QACxB,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,CAAC;IACpE,CAAC;IAWe,iBAAiB;QAC/B,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,WAAW,CAAC;IACvC,CAAC;IAEkB,UAAU,CAAC,iBAAuC;QACnE,IAAI,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;YACpC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACrC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACpE,CAAC;QAED,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YACtB,SAAS,EAAE,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;SAC3D,CAAC,CAAC;IACL,CAAC;IAEkB,MAAM;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;QACnD,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;QAEpD,OAAO,IAAI,CAAA;;;gBAGC,QAAQ,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC;;;;2CAIP,QAAQ,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;;;KAGvE,CAAC;IACJ,CAAC;;AA5DsB,qCAAO,GAAG,wBAAwB,AAA3B,CAA4B;AACnC,oCAAM,GAAG,MAAM,AAAT,CAAU;eAFpB,6BAA6B;AAcxC;IADP,OAAO,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;gEACd;AAQlC;IADN,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;6DACT;AAIf;IADN,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;4DACd","sourcesContent":["import { consume } from '@lit/context';\nimport { html, LitElement, type PropertyValues } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { carouselContext } from '../common/context.js';\nimport { addInternalsController } from '../common/controllers/internals.js';\nimport { registerComponent } from '../common/definitions/register.js';\nimport { formatString } from '../common/util.js';\nimport type IgcCarouselComponent from './carousel.js';\nimport { styles } from './themes/carousel-indicator.base.css.js';\n\n/**\n * Used when a custom indicator needs to be passed to the `igc-carousel` component.\n *\n * @element igc-carousel-indicator\n *\n * @slot - Default slot for projected inactive indicator.\n * @slot active - Default slot for projected active indicator.\n *\n * @csspart indicator - The wrapping container of the carousel dot indicator.\n * @csspart inactive - The wrapping container of the inactive dot indicator.\n * @csspart active - The wrapping container of the active dot indicator.\n */\nexport default class IgcCarouselIndicatorComponent extends LitElement {\n public static readonly tagName = 'igc-carousel-indicator';\n public static override styles = styles;\n\n /* blazorSuppress */\n public static register(): void {\n registerComponent(IgcCarouselIndicatorComponent);\n }\n\n private readonly _internals = addInternalsController(this, {\n initialARIA: { role: 'tab' },\n });\n\n @consume({ context: carouselContext, subscribe: true })\n private _carousel?: IgcCarouselComponent;\n\n protected get _labelFormat(): string {\n return this._carousel ? this._carousel.indicatorsLabelFormat : '';\n }\n\n /* blazorSuppress */\n @property({ attribute: false })\n public active = false;\n\n /* blazorSuppress */\n @property({ attribute: false })\n public index = 0;\n\n /** @internal */\n public override connectedCallback(): void {\n super.connectedCallback();\n this.role = 'tab';\n this.slot = this.slot || 'indicator';\n }\n\n protected override willUpdate(changedProperties: PropertyValues<this>): void {\n if (changedProperties.has('active')) {\n this.tabIndex = this.active ? 0 : -1;\n this._internals.setARIA({ ariaSelected: this.active.toString() });\n }\n\n this._internals.setARIA({\n ariaLabel: formatString(this._labelFormat, this.index + 1),\n });\n }\n\n protected override render() {\n const forward = this.active ? 'visible' : 'hidden';\n const backward = this.active ? 'hidden' : 'visible';\n\n return html`\n <div\n part=\"indicator inactive\"\n style=${styleMap({ visibility: backward })}\n >\n <slot></slot>\n </div>\n <div part=\"indicator active\" style=${styleMap({ visibility: forward })}>\n <slot name=\"active\"></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-carousel-indicator': IgcCarouselIndicatorComponent;\n }\n}\n"]}
|
|
@@ -11,8 +11,8 @@ export default class IgcCarouselSlideComponent extends LitElement {
|
|
|
11
11
|
static readonly tagName = "igc-carousel-slide";
|
|
12
12
|
static register(): void;
|
|
13
13
|
private static readonly increment;
|
|
14
|
-
private _internals;
|
|
15
|
-
private _animationPlayer;
|
|
14
|
+
private readonly _internals;
|
|
15
|
+
private readonly _animationPlayer;
|
|
16
16
|
private _carousel?;
|
|
17
17
|
protected get _index(): number;
|
|
18
18
|
protected get _total(): number;
|
|
@@ -29,7 +29,6 @@ export default class IgcCarouselSlideComponent extends LitElement {
|
|
|
29
29
|
* @deprecated since 5.4.0. Use Carousel's `select` method instead.
|
|
30
30
|
*/
|
|
31
31
|
toggleAnimation(type: 'in' | 'out', direction?: 'normal' | 'reverse'): Promise<boolean>;
|
|
32
|
-
constructor();
|
|
33
32
|
protected willUpdate(): void;
|
|
34
33
|
connectedCallback(): void;
|
|
35
34
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
@@ -5,16 +5,29 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { consume } from '@lit/context';
|
|
8
|
-
import {
|
|
8
|
+
import { html, LitElement } from 'lit';
|
|
9
9
|
import { property } from 'lit/decorators.js';
|
|
10
10
|
import { EaseInOut } from '../../animations/easings.js';
|
|
11
11
|
import { addAnimationController } from '../../animations/player.js';
|
|
12
12
|
import { carouselContext } from '../common/context.js';
|
|
13
|
+
import { addInternalsController } from '../common/controllers/internals.js';
|
|
13
14
|
import { registerComponent } from '../common/definitions/register.js';
|
|
14
15
|
import { createCounter, formatString } from '../common/util.js';
|
|
15
16
|
import { animations } from './animations.js';
|
|
16
17
|
import { styles } from './themes/carousel-slide.base.css.js';
|
|
17
18
|
class IgcCarouselSlideComponent extends LitElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this._internals = addInternalsController(this, {
|
|
22
|
+
initialARIA: {
|
|
23
|
+
role: 'tabpanel',
|
|
24
|
+
ariaRoleDescription: 'slide',
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
this._animationPlayer = addAnimationController(this);
|
|
28
|
+
this.active = false;
|
|
29
|
+
this.previous = false;
|
|
30
|
+
}
|
|
18
31
|
static register() {
|
|
19
32
|
registerComponent(IgcCarouselSlideComponent);
|
|
20
33
|
}
|
|
@@ -47,17 +60,10 @@ class IgcCarouselSlideComponent extends LitElement {
|
|
|
47
60
|
]);
|
|
48
61
|
return event.type === 'finish';
|
|
49
62
|
}
|
|
50
|
-
constructor() {
|
|
51
|
-
super();
|
|
52
|
-
this._animationPlayer = addAnimationController(this);
|
|
53
|
-
this.active = false;
|
|
54
|
-
this.previous = false;
|
|
55
|
-
this._internals = this.attachInternals();
|
|
56
|
-
this._internals.role = 'tabpanel';
|
|
57
|
-
this._internals.ariaRoleDescription = 'slide';
|
|
58
|
-
}
|
|
59
63
|
willUpdate() {
|
|
60
|
-
this._internals.
|
|
64
|
+
this._internals.setARIA({
|
|
65
|
+
ariaLabel: formatString(this._labelFormat, this._index + 1, this._total),
|
|
66
|
+
});
|
|
61
67
|
}
|
|
62
68
|
connectedCallback() {
|
|
63
69
|
super.connectedCallback();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel-slide.js","sourceRoot":"","sources":["../../../src/components/carousel/carousel-slide.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"carousel-slide.js","sourceRoot":"","sources":["../../../src/components/carousel/carousel-slide.ts"],"names":[],"mappings":"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","sourcesContent":["import { consume } from '@lit/context';\nimport { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { EaseInOut } from '../../animations/easings.js';\nimport { addAnimationController } from '../../animations/player.js';\nimport { carouselContext } from '../common/context.js';\nimport { addInternalsController } from '../common/controllers/internals.js';\nimport { registerComponent } from '../common/definitions/register.js';\nimport { createCounter, formatString } from '../common/util.js';\nimport { animations } from './animations.js';\nimport type IgcCarouselComponent from './carousel.js';\nimport { styles } from './themes/carousel-slide.base.css.js';\n\n/**\n * A single content container within a set of containers used in the context of an `igc-carousel`.\n *\n * @element igc-carousel-slide\n *\n * @slot Default slot for the carousel slide.\n */\nexport default class IgcCarouselSlideComponent extends LitElement {\n public static override styles = styles;\n public static readonly tagName = 'igc-carousel-slide';\n\n /* blazorSuppress */\n public static register(): void {\n registerComponent(IgcCarouselSlideComponent);\n }\n\n private static readonly increment = createCounter();\n\n private readonly _internals = addInternalsController(this, {\n initialARIA: {\n role: 'tabpanel',\n ariaRoleDescription: 'slide',\n },\n });\n\n private readonly _animationPlayer = addAnimationController(this);\n\n @consume({ context: carouselContext, subscribe: true })\n private _carousel?: IgcCarouselComponent;\n\n protected get _index() {\n return this._carousel ? this._carousel.slides.indexOf(this) : 0;\n }\n\n protected get _total() {\n return this._carousel ? this._carousel.slides.length : 0;\n }\n\n protected get _animation() {\n const animation = this._carousel?.animationType ?? 'slide';\n\n if (animation === 'slide') {\n return this._carousel?.vertical ? 'slideVer' : 'slideHor';\n }\n\n return animation;\n }\n\n protected get _labelFormat() {\n return this._carousel ? this._carousel.slidesLabelFormat : '';\n }\n\n /**\n * The current active slide for the carousel component.\n * @attr\n */\n @property({ type: Boolean, reflect: true })\n public active = false;\n\n /* blazorSuppress */\n @property({ type: Boolean, reflect: true })\n public previous = false;\n\n /**\n * @hidden @internal\n * @deprecated since 5.4.0. Use Carousel's `select` method instead.\n */\n public async toggleAnimation(\n type: 'in' | 'out',\n direction: 'normal' | 'reverse' = 'normal'\n ) {\n const animation = animations.get(this._animation)!.get(type)!;\n\n const options: KeyframeAnimationOptions = {\n duration: 320,\n easing: EaseInOut.Quad,\n direction,\n };\n\n const [_, event] = await Promise.all([\n this._animationPlayer.stopAll(),\n this._animationPlayer.play(animation(options)),\n ]);\n\n return event.type === 'finish';\n }\n\n protected override willUpdate(): void {\n this._internals.setARIA({\n ariaLabel: formatString(this._labelFormat, this._index + 1, this._total),\n });\n }\n\n public override connectedCallback(): void {\n super.connectedCallback();\n\n this.id =\n this.id || `igc-carousel-slide-${IgcCarouselSlideComponent.increment()}`;\n }\n\n protected override render() {\n return html` <slot></slot> `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-carousel-slide': IgcCarouselSlideComponent;\n }\n}\n"]}
|
|
@@ -35,7 +35,6 @@ export default class IgcCarouselComponent extends IgcCarouselComponent_base {
|
|
|
35
35
|
static register(): void;
|
|
36
36
|
private static readonly increment;
|
|
37
37
|
private readonly _carouselId;
|
|
38
|
-
private readonly _internals;
|
|
39
38
|
private _lastInterval;
|
|
40
39
|
private _hasKeyboardInteractionOnIndicators;
|
|
41
40
|
private _hasMouseStop;
|