ux4g-components-angular 1.4.1 → 1.5.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/README.md +134 -0
- package/dist/accessibility-bar/README.md +134 -0
- package/dist/accordion/README.md +134 -0
- package/dist/alert/README.md +134 -0
- package/dist/avatar/README.md +134 -0
- package/dist/badge/README.md +134 -0
- package/dist/breadcrumb/README.md +134 -0
- package/dist/button/README.md +134 -0
- package/dist/card/README.md +134 -0
- package/dist/carousel/README.md +134 -0
- package/dist/checkbox/README.md +134 -0
- package/dist/chip/README.md +134 -0
- package/dist/chip-group/README.md +134 -0
- package/dist/combobox/README.md +134 -0
- package/dist/date-time-picker/README.md +134 -0
- package/dist/divider/README.md +134 -0
- package/dist/draft-status-banner/README.md +134 -0
- package/dist/drawer/README.md +134 -0
- package/dist/dropdown/README.md +134 -0
- package/dist/empty-state/README.md +134 -0
- package/dist/feedback/README.md +134 -0
- package/dist/file-upload/README.md +134 -0
- package/dist/footer/README.md +134 -0
- package/dist/form-field-group/README.md +134 -0
- package/dist/icon-button/README.md +134 -0
- package/dist/image/README.md +134 -0
- package/dist/input/README.md +134 -0
- package/dist/journey-timeline/README.md +134 -0
- package/dist/link/README.md +134 -0
- package/dist/list/README.md +134 -0
- package/dist/mega-menu/README.md +134 -0
- package/dist/modal/README.md +134 -0
- package/dist/native/accordion/README.md +1541 -0
- package/dist/native/accordion/fesm2022/ux4g-components-angular-native-accordion.mjs +85 -0
- package/dist/native/accordion/fesm2022/ux4g-components-angular-native-accordion.mjs.map +1 -0
- package/dist/native/accordion/index.d.ts +6 -0
- package/dist/native/accordion/public-api.d.ts +3 -0
- package/dist/native/accordion/public-api.d.ts.map +1 -0
- package/dist/native/accordion/ux4g-components-angular-native-accordion.d.ts.map +1 -0
- package/dist/native/accordion/ux4g-native-accordion.component.d.ts +31 -0
- package/dist/native/accordion/ux4g-native-accordion.component.d.ts.map +1 -0
- package/dist/native/accordion/ux4g-native-accordion.module.d.ts +12 -0
- package/dist/native/accordion/ux4g-native-accordion.module.d.ts.map +1 -0
- package/dist/native/avatar/README.md +1541 -0
- package/dist/native/avatar/fesm2022/ux4g-components-angular-native-avatar.mjs +81 -0
- package/dist/native/avatar/fesm2022/ux4g-components-angular-native-avatar.mjs.map +1 -0
- package/dist/native/avatar/index.d.ts +6 -0
- package/dist/native/avatar/public-api.d.ts +3 -0
- package/dist/native/avatar/public-api.d.ts.map +1 -0
- package/dist/native/avatar/ux4g-components-angular-native-avatar.d.ts.map +1 -0
- package/dist/native/avatar/ux4g-native-avatar.component.d.ts +34 -0
- package/dist/native/avatar/ux4g-native-avatar.component.d.ts.map +1 -0
- package/dist/native/avatar/ux4g-native-avatar.module.d.ts +8 -0
- package/dist/native/avatar/ux4g-native-avatar.module.d.ts.map +1 -0
- package/dist/native/carousel/README.md +1541 -0
- package/dist/native/carousel/fesm2022/ux4g-components-angular-native-carousel.mjs +91 -0
- package/dist/native/carousel/fesm2022/ux4g-components-angular-native-carousel.mjs.map +1 -0
- package/dist/native/carousel/index.d.ts +6 -0
- package/dist/native/carousel/public-api.d.ts +3 -0
- package/dist/native/carousel/public-api.d.ts.map +1 -0
- package/dist/native/carousel/ux4g-components-angular-native-carousel.d.ts.map +1 -0
- package/dist/native/carousel/ux4g-native-carousel.component.d.ts +34 -0
- package/dist/native/carousel/ux4g-native-carousel.component.d.ts.map +1 -0
- package/dist/native/carousel/ux4g-native-carousel.module.d.ts +8 -0
- package/dist/native/carousel/ux4g-native-carousel.module.d.ts.map +1 -0
- package/dist/native/chip/README.md +1541 -0
- package/dist/native/chip/fesm2022/ux4g-components-angular-native-chip.mjs +99 -0
- package/dist/native/chip/fesm2022/ux4g-components-angular-native-chip.mjs.map +1 -0
- package/dist/native/chip/index.d.ts +6 -0
- package/dist/native/chip/public-api.d.ts +3 -0
- package/dist/native/chip/public-api.d.ts.map +1 -0
- package/dist/native/chip/ux4g-components-angular-native-chip.d.ts.map +1 -0
- package/dist/native/chip/ux4g-native-chip.component.d.ts +34 -0
- package/dist/native/chip/ux4g-native-chip.component.d.ts.map +1 -0
- package/dist/native/chip/ux4g-native-chip.module.d.ts +8 -0
- package/dist/native/chip/ux4g-native-chip.module.d.ts.map +1 -0
- package/dist/native/combobox/README.md +1541 -0
- package/dist/native/combobox/fesm2022/ux4g-components-angular-native-combobox.mjs +107 -0
- package/dist/native/combobox/fesm2022/ux4g-components-angular-native-combobox.mjs.map +1 -0
- package/dist/native/combobox/index.d.ts +6 -0
- package/dist/native/combobox/public-api.d.ts +3 -0
- package/dist/native/combobox/public-api.d.ts.map +1 -0
- package/dist/native/combobox/ux4g-components-angular-native-combobox.d.ts.map +1 -0
- package/dist/native/combobox/ux4g-native-combobox.component.d.ts +30 -0
- package/dist/native/combobox/ux4g-native-combobox.component.d.ts.map +1 -0
- package/dist/native/combobox/ux4g-native-combobox.module.d.ts +8 -0
- package/dist/native/combobox/ux4g-native-combobox.module.d.ts.map +1 -0
- package/dist/native/date-picker/README.md +1541 -0
- package/dist/native/date-picker/fesm2022/ux4g-components-angular-native-date-picker.mjs +181 -0
- package/dist/native/date-picker/fesm2022/ux4g-components-angular-native-date-picker.mjs.map +1 -0
- package/dist/native/date-picker/index.d.ts +6 -0
- package/dist/native/date-picker/public-api.d.ts +3 -0
- package/dist/native/date-picker/public-api.d.ts.map +1 -0
- package/dist/native/date-picker/ux4g-components-angular-native-date-picker.d.ts.map +1 -0
- package/dist/native/date-picker/ux4g-native-date-picker.component.d.ts +39 -0
- package/dist/native/date-picker/ux4g-native-date-picker.component.d.ts.map +1 -0
- package/dist/native/date-picker/ux4g-native-date-picker.module.d.ts +12 -0
- package/dist/native/date-picker/ux4g-native-date-picker.module.d.ts.map +1 -0
- package/dist/native/drawer/README.md +1541 -0
- package/dist/native/drawer/fesm2022/ux4g-components-angular-native-drawer.mjs +159 -0
- package/dist/native/drawer/fesm2022/ux4g-components-angular-native-drawer.mjs.map +1 -0
- package/dist/native/drawer/index.d.ts +6 -0
- package/dist/native/drawer/public-api.d.ts +3 -0
- package/dist/native/drawer/public-api.d.ts.map +1 -0
- package/dist/native/drawer/ux4g-components-angular-native-drawer.d.ts.map +1 -0
- package/dist/native/drawer/ux4g-native-drawer.component.d.ts +37 -0
- package/dist/native/drawer/ux4g-native-drawer.component.d.ts.map +1 -0
- package/dist/native/drawer/ux4g-native-drawer.module.d.ts +12 -0
- package/dist/native/drawer/ux4g-native-drawer.module.d.ts.map +1 -0
- package/dist/native/dropdown/README.md +1541 -0
- package/dist/native/dropdown/fesm2022/ux4g-components-angular-native-dropdown.mjs +108 -0
- package/dist/native/dropdown/fesm2022/ux4g-components-angular-native-dropdown.mjs.map +1 -0
- package/dist/native/dropdown/index.d.ts +6 -0
- package/dist/native/dropdown/public-api.d.ts +3 -0
- package/dist/native/dropdown/public-api.d.ts.map +1 -0
- package/dist/native/dropdown/ux4g-components-angular-native-dropdown.d.ts.map +1 -0
- package/dist/native/dropdown/ux4g-native-dropdown.component.d.ts +32 -0
- package/dist/native/dropdown/ux4g-native-dropdown.component.d.ts.map +1 -0
- package/dist/native/dropdown/ux4g-native-dropdown.module.d.ts +8 -0
- package/dist/native/dropdown/ux4g-native-dropdown.module.d.ts.map +1 -0
- package/dist/native/file-upload/README.md +1541 -0
- package/dist/native/file-upload/fesm2022/ux4g-components-angular-native-file-upload.mjs +193 -0
- package/dist/native/file-upload/fesm2022/ux4g-components-angular-native-file-upload.mjs.map +1 -0
- package/dist/native/file-upload/index.d.ts +6 -0
- package/dist/native/file-upload/public-api.d.ts +3 -0
- package/dist/native/file-upload/public-api.d.ts.map +1 -0
- package/dist/native/file-upload/ux4g-components-angular-native-file-upload.d.ts.map +1 -0
- package/dist/native/file-upload/ux4g-native-file-upload.component.d.ts +40 -0
- package/dist/native/file-upload/ux4g-native-file-upload.component.d.ts.map +1 -0
- package/dist/native/file-upload/ux4g-native-file-upload.module.d.ts +8 -0
- package/dist/native/file-upload/ux4g-native-file-upload.module.d.ts.map +1 -0
- package/dist/native/modal/README.md +1541 -0
- package/dist/native/modal/fesm2022/ux4g-components-angular-native-modal.mjs +219 -0
- package/dist/native/modal/fesm2022/ux4g-components-angular-native-modal.mjs.map +1 -0
- package/dist/native/modal/index.d.ts +6 -0
- package/dist/native/modal/public-api.d.ts +3 -0
- package/dist/native/modal/public-api.d.ts.map +1 -0
- package/dist/native/modal/ux4g-components-angular-native-modal.d.ts.map +1 -0
- package/dist/native/modal/ux4g-native-modal.component.d.ts +42 -0
- package/dist/native/modal/ux4g-native-modal.component.d.ts.map +1 -0
- package/dist/native/modal/ux4g-native-modal.module.d.ts +12 -0
- package/dist/native/modal/ux4g-native-modal.module.d.ts.map +1 -0
- package/dist/native/otp/README.md +1541 -0
- package/dist/native/otp/fesm2022/ux4g-components-angular-native-otp.mjs +176 -0
- package/dist/native/otp/fesm2022/ux4g-components-angular-native-otp.mjs.map +1 -0
- package/dist/native/otp/index.d.ts +6 -0
- package/dist/native/otp/public-api.d.ts +3 -0
- package/dist/native/otp/public-api.d.ts.map +1 -0
- package/dist/native/otp/ux4g-components-angular-native-otp.d.ts.map +1 -0
- package/dist/native/otp/ux4g-native-otp.component.d.ts +32 -0
- package/dist/native/otp/ux4g-native-otp.component.d.ts.map +1 -0
- package/dist/native/otp/ux4g-native-otp.module.d.ts +8 -0
- package/dist/native/otp/ux4g-native-otp.module.d.ts.map +1 -0
- package/dist/native/popover/README.md +1541 -0
- package/dist/native/popover/fesm2022/ux4g-components-angular-native-popover.mjs +75 -0
- package/dist/native/popover/fesm2022/ux4g-components-angular-native-popover.mjs.map +1 -0
- package/dist/native/popover/index.d.ts +6 -0
- package/dist/native/popover/public-api.d.ts +3 -0
- package/dist/native/popover/public-api.d.ts.map +1 -0
- package/dist/native/popover/ux4g-components-angular-native-popover.d.ts.map +1 -0
- package/dist/native/popover/ux4g-native-popover.component.d.ts +29 -0
- package/dist/native/popover/ux4g-native-popover.component.d.ts.map +1 -0
- package/dist/native/popover/ux4g-native-popover.module.d.ts +8 -0
- package/dist/native/popover/ux4g-native-popover.module.d.ts.map +1 -0
- package/dist/native/progress/README.md +1541 -0
- package/dist/native/progress/fesm2022/ux4g-components-angular-native-progress.mjs +79 -0
- package/dist/native/progress/fesm2022/ux4g-components-angular-native-progress.mjs.map +1 -0
- package/dist/native/progress/index.d.ts +6 -0
- package/dist/native/progress/public-api.d.ts +3 -0
- package/dist/native/progress/public-api.d.ts.map +1 -0
- package/dist/native/progress/ux4g-components-angular-native-progress.d.ts.map +1 -0
- package/dist/native/progress/ux4g-native-progress.component.d.ts +29 -0
- package/dist/native/progress/ux4g-native-progress.component.d.ts.map +1 -0
- package/dist/native/progress/ux4g-native-progress.module.d.ts +8 -0
- package/dist/native/progress/ux4g-native-progress.module.d.ts.map +1 -0
- package/dist/native/search/README.md +1541 -0
- package/dist/native/search/fesm2022/ux4g-components-angular-native-search.mjs +148 -0
- package/dist/native/search/fesm2022/ux4g-components-angular-native-search.mjs.map +1 -0
- package/dist/native/search/index.d.ts +6 -0
- package/dist/native/search/public-api.d.ts +3 -0
- package/dist/native/search/public-api.d.ts.map +1 -0
- package/dist/native/search/ux4g-components-angular-native-search.d.ts.map +1 -0
- package/dist/native/search/ux4g-native-search.component.d.ts +46 -0
- package/dist/native/search/ux4g-native-search.component.d.ts.map +1 -0
- package/dist/native/search/ux4g-native-search.module.d.ts +8 -0
- package/dist/native/search/ux4g-native-search.module.d.ts.map +1 -0
- package/dist/native/shared/README.md +1541 -0
- package/dist/native/shared/base-native.component.d.ts +38 -0
- package/dist/native/shared/base-native.component.d.ts.map +1 -0
- package/dist/native/shared/fesm2022/ux4g-components-angular-native-shared.mjs +113 -0
- package/dist/native/shared/fesm2022/ux4g-components-angular-native-shared.mjs.map +1 -0
- package/dist/native/shared/index.d.ts +6 -0
- package/dist/native/shared/public-api.d.ts +3 -0
- package/dist/native/shared/public-api.d.ts.map +1 -0
- package/dist/native/shared/render-descriptor.d.ts +8 -0
- package/dist/native/shared/render-descriptor.d.ts.map +1 -0
- package/dist/native/shared/ux4g-components-angular-native-shared.d.ts.map +1 -0
- package/dist/native/stepper/README.md +1541 -0
- package/dist/native/stepper/fesm2022/ux4g-components-angular-native-stepper.mjs +92 -0
- package/dist/native/stepper/fesm2022/ux4g-components-angular-native-stepper.mjs.map +1 -0
- package/dist/native/stepper/index.d.ts +6 -0
- package/dist/native/stepper/public-api.d.ts +3 -0
- package/dist/native/stepper/public-api.d.ts.map +1 -0
- package/dist/native/stepper/ux4g-components-angular-native-stepper.d.ts.map +1 -0
- package/dist/native/stepper/ux4g-native-stepper.component.d.ts +35 -0
- package/dist/native/stepper/ux4g-native-stepper.component.d.ts.map +1 -0
- package/dist/native/stepper/ux4g-native-stepper.module.d.ts +8 -0
- package/dist/native/stepper/ux4g-native-stepper.module.d.ts.map +1 -0
- package/dist/native/table/README.md +1541 -0
- package/dist/native/table/fesm2022/ux4g-components-angular-native-table.mjs +91 -0
- package/dist/native/table/fesm2022/ux4g-components-angular-native-table.mjs.map +1 -0
- package/dist/native/table/index.d.ts +6 -0
- package/dist/native/table/public-api.d.ts +3 -0
- package/dist/native/table/public-api.d.ts.map +1 -0
- package/dist/native/table/ux4g-components-angular-native-table.d.ts.map +1 -0
- package/dist/native/table/ux4g-native-table.component.d.ts +32 -0
- package/dist/native/table/ux4g-native-table.component.d.ts.map +1 -0
- package/dist/native/table/ux4g-native-table.module.d.ts +12 -0
- package/dist/native/table/ux4g-native-table.module.d.ts.map +1 -0
- package/dist/native/tabs/README.md +1541 -0
- package/dist/native/tabs/fesm2022/ux4g-components-angular-native-tabs.mjs +190 -0
- package/dist/native/tabs/fesm2022/ux4g-components-angular-native-tabs.mjs.map +1 -0
- package/dist/native/tabs/index.d.ts +6 -0
- package/dist/native/tabs/public-api.d.ts +3 -0
- package/dist/native/tabs/public-api.d.ts.map +1 -0
- package/dist/native/tabs/ux4g-components-angular-native-tabs.d.ts.map +1 -0
- package/dist/native/tabs/ux4g-native-tabs.component.d.ts +43 -0
- package/dist/native/tabs/ux4g-native-tabs.component.d.ts.map +1 -0
- package/dist/native/tabs/ux4g-native-tabs.module.d.ts +12 -0
- package/dist/native/tabs/ux4g-native-tabs.module.d.ts.map +1 -0
- package/dist/native/time-picker/README.md +1541 -0
- package/dist/native/time-picker/fesm2022/ux4g-components-angular-native-time-picker.mjs +104 -0
- package/dist/native/time-picker/fesm2022/ux4g-components-angular-native-time-picker.mjs.map +1 -0
- package/dist/native/time-picker/index.d.ts +6 -0
- package/dist/native/time-picker/public-api.d.ts +3 -0
- package/dist/native/time-picker/public-api.d.ts.map +1 -0
- package/dist/native/time-picker/ux4g-components-angular-native-time-picker.d.ts.map +1 -0
- package/dist/native/time-picker/ux4g-native-time-picker.component.d.ts +27 -0
- package/dist/native/time-picker/ux4g-native-time-picker.component.d.ts.map +1 -0
- package/dist/native/time-picker/ux4g-native-time-picker.module.d.ts +8 -0
- package/dist/native/time-picker/ux4g-native-time-picker.module.d.ts.map +1 -0
- package/dist/native/tooltip/README.md +1541 -0
- package/dist/native/tooltip/fesm2022/ux4g-components-angular-native-tooltip.mjs +80 -0
- package/dist/native/tooltip/fesm2022/ux4g-components-angular-native-tooltip.mjs.map +1 -0
- package/dist/native/tooltip/index.d.ts +6 -0
- package/dist/native/tooltip/public-api.d.ts +3 -0
- package/dist/native/tooltip/public-api.d.ts.map +1 -0
- package/dist/native/tooltip/ux4g-components-angular-native-tooltip.d.ts.map +1 -0
- package/dist/native/tooltip/ux4g-native-tooltip.component.d.ts +31 -0
- package/dist/native/tooltip/ux4g-native-tooltip.component.d.ts.map +1 -0
- package/dist/native/tooltip/ux4g-native-tooltip.module.d.ts +8 -0
- package/dist/native/tooltip/ux4g-native-tooltip.module.d.ts.map +1 -0
- package/dist/navbar/README.md +134 -0
- package/dist/otp-input/README.md +134 -0
- package/dist/pagination/README.md +134 -0
- package/dist/popover/README.md +134 -0
- package/dist/progress-indicator/README.md +134 -0
- package/dist/radio/README.md +134 -0
- package/dist/result-list-row/README.md +134 -0
- package/dist/search/README.md +134 -0
- package/dist/sla-progress-indicator/README.md +134 -0
- package/dist/slider/README.md +134 -0
- package/dist/slot-grid/README.md +134 -0
- package/dist/social-links/README.md +134 -0
- package/dist/spinner/README.md +134 -0
- package/dist/status-pipeline/README.md +134 -0
- package/dist/stepper/README.md +134 -0
- package/dist/switch/README.md +134 -0
- package/dist/tab/README.md +134 -0
- package/dist/table/README.md +134 -0
- package/dist/tag/README.md +134 -0
- package/dist/tooltip/README.md +134 -0
- package/package.json +176 -3
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Input, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
3
|
+
import { generateCarouselDOM } from 'ux4g-components-web/dom-generators';
|
|
4
|
+
import { BaseNativeComponent, renderDescriptorToDOM } from '@ux4g-native-shared';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Angular Native Carousel component.
|
|
8
|
+
* Generates the complete UX4G carousel DOM structure internally using the shared DOM Generator.
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* ```html
|
|
12
|
+
* <ux4g-native-carousel
|
|
13
|
+
* [slides]="slides"
|
|
14
|
+
* [activeIndex]="currentIndex"
|
|
15
|
+
* [showIndicators]="true"
|
|
16
|
+
* [showNavigation]="true"
|
|
17
|
+
* (slideChange)="onSlideChange($event)">
|
|
18
|
+
* </ux4g-native-carousel>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
class UX4GNativeCarouselComponent extends BaseNativeComponent {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.slides = [];
|
|
25
|
+
this.activeIndex = 0;
|
|
26
|
+
this.showIndicators = true;
|
|
27
|
+
this.showNavigation = true;
|
|
28
|
+
this.slideChange = new EventEmitter();
|
|
29
|
+
}
|
|
30
|
+
ngOnChanges(_changes) {
|
|
31
|
+
this.renderComponent();
|
|
32
|
+
}
|
|
33
|
+
renderComponent() {
|
|
34
|
+
super.renderComponent();
|
|
35
|
+
if (!this.slides || this.slides.length === 0) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const props = {
|
|
39
|
+
slides: this.slides,
|
|
40
|
+
activeIndex: this.activeIndex,
|
|
41
|
+
showIndicators: this.showIndicators,
|
|
42
|
+
showNavigation: this.showNavigation,
|
|
43
|
+
};
|
|
44
|
+
const descriptor = generateCarouselDOM(props);
|
|
45
|
+
renderDescriptorToDOM(this.renderer, descriptor, this.elementRef.nativeElement);
|
|
46
|
+
}
|
|
47
|
+
ngOnDestroy() {
|
|
48
|
+
// Cleanup handled by base class
|
|
49
|
+
}
|
|
50
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeCarouselComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
51
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: UX4GNativeCarouselComponent, isStandalone: true, selector: "ux4g-native-carousel", inputs: { slides: "slides", activeIndex: "activeIndex", showIndicators: "showIndicators", showNavigation: "showNavigation" }, outputs: { slideChange: "slideChange" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, encapsulation: i0.ViewEncapsulation.None }); }
|
|
52
|
+
}
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeCarouselComponent, decorators: [{
|
|
54
|
+
type: Component,
|
|
55
|
+
args: [{
|
|
56
|
+
selector: 'ux4g-native-carousel',
|
|
57
|
+
standalone: true,
|
|
58
|
+
template: '',
|
|
59
|
+
encapsulation: ViewEncapsulation.None,
|
|
60
|
+
}]
|
|
61
|
+
}], propDecorators: { slides: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}], activeIndex: [{
|
|
64
|
+
type: Input
|
|
65
|
+
}], showIndicators: [{
|
|
66
|
+
type: Input
|
|
67
|
+
}], showNavigation: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}], slideChange: [{
|
|
70
|
+
type: Output
|
|
71
|
+
}] } });
|
|
72
|
+
|
|
73
|
+
class UX4GNativeCarouselModule {
|
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
75
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeCarouselModule, imports: [UX4GNativeCarouselComponent], exports: [UX4GNativeCarouselComponent] }); }
|
|
76
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeCarouselModule }); }
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: UX4GNativeCarouselModule, decorators: [{
|
|
79
|
+
type: NgModule,
|
|
80
|
+
args: [{
|
|
81
|
+
imports: [UX4GNativeCarouselComponent],
|
|
82
|
+
exports: [UX4GNativeCarouselComponent],
|
|
83
|
+
}]
|
|
84
|
+
}] });
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Generated bundle index. Do not edit.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
export { UX4GNativeCarouselComponent, UX4GNativeCarouselModule };
|
|
91
|
+
//# sourceMappingURL=ux4g-components-angular-native-carousel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ux4g-components-angular-native-carousel.mjs","sources":["../../../../src/native/carousel/ux4g-native-carousel.component.ts","../../../../src/native/carousel/ux4g-native-carousel.module.ts","../../../../src/native/carousel/ux4g-components-angular-native-carousel.ts"],"sourcesContent":["import {\r\n Component,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n ViewEncapsulation,\r\n OnChanges,\r\n SimpleChanges,\r\n} from '@angular/core';\r\nimport { generateCarouselDOM, CarouselGeneratorProps } from 'ux4g-components-web/dom-generators';\r\nimport { BaseNativeComponent, renderDescriptorToDOM } from '@ux4g-native-shared';\r\n\r\n/**\r\n * Angular Native Carousel component.\r\n * Generates the complete UX4G carousel DOM structure internally using the shared DOM Generator.\r\n *\r\n * Usage:\r\n * ```html\r\n * <ux4g-native-carousel\r\n * [slides]=\"slides\"\r\n * [activeIndex]=\"currentIndex\"\r\n * [showIndicators]=\"true\"\r\n * [showNavigation]=\"true\"\r\n * (slideChange)=\"onSlideChange($event)\">\r\n * </ux4g-native-carousel>\r\n * ```\r\n */\r\n@Component({\r\n selector: 'ux4g-native-carousel',\r\n standalone: true,\r\n template: '',\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class UX4GNativeCarouselComponent extends BaseNativeComponent implements OnChanges {\r\n @Input() slides: Array<{ content: string; label?: string }> = [];\r\n @Input() activeIndex: number = 0;\r\n @Input() showIndicators: boolean = true;\r\n @Input() showNavigation: boolean = true;\r\n\r\n @Output() slideChange = new EventEmitter<number>();\r\n\r\n ngOnChanges(_changes: SimpleChanges): void {\r\n this.renderComponent();\r\n }\r\n\r\n protected override renderComponent(): void {\r\n super.renderComponent();\r\n\r\n if (!this.slides || this.slides.length === 0) {\r\n return;\r\n }\r\n\r\n const props: CarouselGeneratorProps = {\r\n slides: this.slides,\r\n activeIndex: this.activeIndex,\r\n showIndicators: this.showIndicators,\r\n showNavigation: this.showNavigation,\r\n };\r\n\r\n const descriptor = generateCarouselDOM(props);\r\n renderDescriptorToDOM(this.renderer, descriptor, this.elementRef.nativeElement);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n // Cleanup handled by base class\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { UX4GNativeCarouselComponent } from './ux4g-native-carousel.component';\r\n\r\n@NgModule({\r\n imports: [UX4GNativeCarouselComponent],\r\n exports: [UX4GNativeCarouselComponent],\r\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AAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ux4g-components-angular-native-carousel.d.ts","sourceRoot":"","sources":["../../../src/native/carousel/ux4g-components-angular-native-carousel.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BaseNativeComponent } from '@ux4g-native-shared';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Angular Native Carousel component.
|
|
6
|
+
* Generates the complete UX4G carousel DOM structure internally using the shared DOM Generator.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* ```html
|
|
10
|
+
* <ux4g-native-carousel
|
|
11
|
+
* [slides]="slides"
|
|
12
|
+
* [activeIndex]="currentIndex"
|
|
13
|
+
* [showIndicators]="true"
|
|
14
|
+
* [showNavigation]="true"
|
|
15
|
+
* (slideChange)="onSlideChange($event)">
|
|
16
|
+
* </ux4g-native-carousel>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class UX4GNativeCarouselComponent extends BaseNativeComponent implements OnChanges {
|
|
20
|
+
slides: Array<{
|
|
21
|
+
content: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
}>;
|
|
24
|
+
activeIndex: number;
|
|
25
|
+
showIndicators: boolean;
|
|
26
|
+
showNavigation: boolean;
|
|
27
|
+
slideChange: EventEmitter<number>;
|
|
28
|
+
ngOnChanges(_changes: SimpleChanges): void;
|
|
29
|
+
protected renderComponent(): void;
|
|
30
|
+
ngOnDestroy(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UX4GNativeCarouselComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UX4GNativeCarouselComponent, "ux4g-native-carousel", never, { "slides": { "alias": "slides"; "required": false; }; "activeIndex": { "alias": "activeIndex"; "required": false; }; "showIndicators": { "alias": "showIndicators"; "required": false; }; "showNavigation": { "alias": "showNavigation"; "required": false; }; }, { "slideChange": "slideChange"; }, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=ux4g-native-carousel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ux4g-native-carousel.component.d.ts","sourceRoot":"","sources":["../../../src/native/carousel/ux4g-native-carousel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EAEZ,SAAS,EACT,aAAa,EACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,mBAAmB,EAAyB,MAAM,qBAAqB,CAAC;;AAEjF;;;;;;;;;;;;;;GAcG;AACH,qBAMa,2BAA4B,SAAQ,mBAAoB,YAAW,SAAS;IAC9E,MAAM,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAM;IACxD,WAAW,EAAE,MAAM,CAAK;IACxB,cAAc,EAAE,OAAO,CAAQ;IAC/B,cAAc,EAAE,OAAO,CAAQ;IAE9B,WAAW,uBAA8B;IAEnD,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;cAIvB,eAAe,IAAI,IAAI;IAkB1C,WAAW,IAAI,IAAI;yCA9BR,2BAA2B;2CAA3B,2BAA2B;CAiCvC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ux4g-native-carousel.component";
|
|
3
|
+
export declare class UX4GNativeCarouselModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UX4GNativeCarouselModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UX4GNativeCarouselModule, never, [typeof i1.UX4GNativeCarouselComponent], [typeof i1.UX4GNativeCarouselComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UX4GNativeCarouselModule>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=ux4g-native-carousel.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ux4g-native-carousel.module.d.ts","sourceRoot":"","sources":["../../../src/native/carousel/ux4g-native-carousel.module.ts"],"names":[],"mappings":";;AAGA,qBAIa,wBAAwB;yCAAxB,wBAAwB;0CAAxB,wBAAwB;0CAAxB,wBAAwB;CAAG"}
|