ngx-tethys 19.0.4 → 19.0.6
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 +21 -0
- package/anchor/anchor-link.component.d.ts +2 -1
- package/anchor/anchor.component.d.ts +2 -1
- package/anchor/anchor.token.d.ts +9 -0
- package/calendar/calendar-header.component.d.ts +3 -2
- package/carousel/carousel.component.d.ts +2 -1
- package/carousel/carousel.token.d.ts +7 -0
- package/carousel/engine/carousel-base.d.ts +3 -3
- package/carousel/engine/carousel-fade.d.ts +2 -2
- package/carousel/engine/carousel-noop.d.ts +2 -2
- package/carousel/engine/carousel-slide.d.ts +2 -2
- package/collapse/collapse-item.component.d.ts +2 -1
- package/collapse/collapse.component.d.ts +5 -5
- package/collapse/collapse.token.d.ts +15 -0
- package/color-picker/color-picker.component.d.ts +15 -3
- package/core/theme/enum.d.ts +5 -0
- package/core/theme/index.d.ts +1 -0
- package/core/theme/store.d.ts +1 -1
- package/core/theme/theme.d.ts +0 -5
- package/date-picker/abstract-picker.component.d.ts +6 -1
- package/date-picker/base-picker.component.d.ts +1 -1
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +2 -1
- package/date-picker/lib/calendar/calendar-table.component.d.ts +4 -3
- package/date-picker/lib/popups/date-popup.component.d.ts +2 -1
- package/date-picker/lib/popups/inner-popup.component.d.ts +2 -1
- package/date-picker/picker.component.d.ts +2 -1
- package/date-picker/picker.util.d.ts +5 -5
- package/date-picker/standard-types.d.ts +7 -2
- package/drag-drop/drag-drop.service.d.ts +2 -2
- package/drag-drop/{drop-container.class.d.ts → drag-drop.token.d.ts} +12 -7
- package/drag-drop/drag-handle.directive.d.ts +2 -1
- package/drag-drop/drag-ref.d.ts +3 -5
- package/drag-drop/drag.directive.d.ts +3 -3
- package/drag-drop/drop-container.directive.d.ts +1 -1
- package/drag-drop/index.d.ts +1 -1
- package/fesm2022/ngx-tethys-action.mjs +11 -12
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +8 -9
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-alert.mjs +11 -12
- package/fesm2022/ngx-tethys-alert.mjs.map +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +26 -13
- package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +7 -7
- package/fesm2022/ngx-tethys-autocomplete.mjs +17 -18
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-avatar.mjs +25 -28
- package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-back-top.mjs +7 -7
- package/fesm2022/ngx-tethys-badge.mjs +7 -7
- package/fesm2022/ngx-tethys-breadcrumb.mjs +10 -10
- package/fesm2022/ngx-tethys-button.mjs +14 -15
- package/fesm2022/ngx-tethys-button.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +18 -20
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-card.mjs +15 -17
- package/fesm2022/ngx-tethys-card.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +28 -17
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +16 -16
- package/fesm2022/ngx-tethys-checkbox.mjs +7 -7
- package/fesm2022/ngx-tethys-collapse.mjs +97 -85
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +34 -36
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-comment.mjs +15 -17
- package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +8 -9
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-core.mjs +21 -22
- package/fesm2022/ngx-tethys-core.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +232 -248
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-range.mjs +10 -10
- package/fesm2022/ngx-tethys-dialog.mjs +22 -23
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +7 -7
- package/fesm2022/ngx-tethys-dot.mjs +8 -9
- package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
- package/fesm2022/ngx-tethys-drag-drop.mjs +23 -30
- package/fesm2022/ngx-tethys-drag-drop.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +58 -70
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +10 -10
- package/fesm2022/ngx-tethys-flexible-text.mjs +8 -8
- package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +47 -54
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-fullscreen.mjs +15 -16
- package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +46 -51
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-guider.mjs +55 -61
- package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +51 -54
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-icon.mjs +11 -12
- package/fesm2022/ngx-tethys-icon.mjs.map +1 -1
- package/fesm2022/ngx-tethys-image.mjs +32 -21
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs +7 -7
- package/fesm2022/ngx-tethys-input.mjs +21 -23
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-layout.mjs +73 -88
- package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +19 -22
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-loading.mjs +7 -7
- package/fesm2022/ngx-tethys-mention.mjs +11 -12
- package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +30 -30
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-message.mjs +24 -24
- package/fesm2022/ngx-tethys-message.mjs.map +1 -1
- package/fesm2022/ngx-tethys-nav.mjs +26 -29
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-notify.mjs +17 -17
- package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +15 -17
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-popover.mjs +21 -23
- package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +13 -13
- package/fesm2022/ngx-tethys-property-operation.mjs +11 -11
- package/fesm2022/ngx-tethys-property-operation.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +11 -11
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +125 -115
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-rate.mjs +10 -10
- package/fesm2022/ngx-tethys-resizable.mjs +18 -18
- package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs +7 -7
- package/fesm2022/ngx-tethys-segment.mjs +10 -10
- package/fesm2022/ngx-tethys-segment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-select.mjs +10 -10
- package/fesm2022/ngx-tethys-shared.mjs +81 -109
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +23 -24
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slide.mjs +36 -41
- package/fesm2022/ngx-tethys-slide.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slider.mjs +7 -7
- package/fesm2022/ngx-tethys-space.mjs +11 -12
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-statistic.mjs +7 -7
- package/fesm2022/ngx-tethys-stepper.mjs +22 -24
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-strength.mjs +8 -8
- package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
- package/fesm2022/ngx-tethys-switch.mjs +7 -7
- package/fesm2022/ngx-tethys-table.mjs +22 -25
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +14 -15
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +12 -13
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys-time-picker.mjs +58 -56
- package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs +13 -13
- package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tooltip.mjs +14 -15
- package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
- package/fesm2022/ngx-tethys-transfer.mjs +10 -10
- package/fesm2022/ngx-tethys-tree-select.mjs +10 -10
- package/fesm2022/ngx-tethys-tree.mjs +17 -21
- package/fesm2022/ngx-tethys-tree.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +15 -17
- package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
- package/fesm2022/ngx-tethys-upload.mjs +18 -19
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs +418 -396
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-vote.mjs +7 -7
- package/fesm2022/ngx-tethys-watermark.mjs +8 -9
- package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/grid/grid.type.d.ts +5 -0
- package/grid/index.d.ts +1 -0
- package/grid/thy-grid-item.component.d.ts +1 -1
- package/grid/thy-grid.component.d.ts +1 -11
- package/guider/guider-manager.d.ts +2 -1
- package/guider/guider-ref.d.ts +6 -6
- package/guider/guider-step-ref.d.ts +3 -4
- package/guider/guider.interface.d.ts +26 -0
- package/i18n/i18n.service.d.ts +1 -1
- package/i18n/index.d.ts +2 -5
- package/i18n/locale.d.ts +1 -7
- package/i18n/locales/index.d.ts +5 -0
- package/i18n/util.d.ts +3 -0
- package/icon/index.d.ts +1 -1
- package/image/image-group.component.d.ts +4 -4
- package/image/image.directive.d.ts +2 -1
- package/image/image.token.d.ts +17 -0
- package/layout/header.component.d.ts +6 -18
- package/list/selection/selection-list.d.ts +2 -1
- package/list/selection/selection.interface.d.ts +2 -3
- package/message/abstract/abstract-message-queue.service.d.ts +2 -2
- package/message/abstract/abstract-message-ref.d.ts +6 -2
- package/package.json +2 -1
- package/popover/popover.directive.d.ts +6 -2
- package/radio/group/radio-group.component.d.ts +2 -1
- package/radio/radio.component.d.ts +3 -3
- package/radio/radio.token.d.ts +12 -0
- package/resizable/interface.d.ts +5 -0
- package/resizable/resizable.directive.d.ts +9 -3
- package/resizable/resizable.service.d.ts +1 -1
- package/resizable/resize-handle.component.d.ts +1 -6
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/segment/segment-item.component.d.ts +2 -1
- package/segment/segment.token.d.ts +10 -4
- package/shared/index.d.ts +1 -0
- package/shared/option/list-option/list-option.component.d.ts +10 -5
- package/shared/option/option.component.d.ts +1 -3
- package/shared/option/option.token.d.ts +11 -11
- package/shared/shared.type.d.ts +1 -0
- package/table/index.d.ts +1 -0
- package/table/styles/table.scss +9 -1
- package/table/table-column.component.d.ts +5 -30
- package/table/table-skeleton.component.d.ts +11 -3
- package/table/table.component.d.ts +1 -3
- package/table/table.type.d.ts +3 -0
- package/tag/tag.component.d.ts +2 -4
- package/time-picker/inner/inner-time-picker.component.d.ts +3 -1
- package/time-picker/inner/inner-time-picker.store.d.ts +5 -5
- package/time-picker/time-picker.utils.d.ts +5 -5
- package/timeline/index.d.ts +1 -0
- package/timeline/timeline-item.component.d.ts +1 -1
- package/timeline/timeline.component.d.ts +1 -1
- package/timeline/timeline.type.d.ts +1 -0
- package/tooltip/tooltip.directive.d.ts +2 -10
- package/tree/index.d.ts +0 -1
- package/tree/tree-abstract.d.ts +1 -1
- package/tree/tree-node.component.d.ts +17 -8
- package/tree/tree.class.d.ts +40 -1
- package/tree/tree.component.d.ts +1 -1
- package/tree/tree.pipe.d.ts +1 -1
- package/tree/tree.service.d.ts +3 -9
- package/util/helpers/helpers.d.ts +1 -0
- package/tree/tree-node.class.d.ts +0 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Renderer2, ElementRef, Directive, NgZone, Injectable, ChangeDetectorRef, EventEmitter, numberAttribute, Output, Input, ViewChild, ContentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
2
|
+
import { inject, Renderer2, ElementRef, Directive, NgZone, Injectable, InjectionToken, ChangeDetectorRef, EventEmitter, numberAttribute, Output, Input, ViewChild, ContentChildren, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { DOCUMENT, NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
4
4
|
import { Platform } from '@angular/cdk/platform';
|
|
5
5
|
import { ThyDot, ThyDotModule } from 'ngx-tethys/dot';
|
|
@@ -31,15 +31,14 @@ class ThyCarouselItemDirective {
|
|
|
31
31
|
this.el = elementRef.nativeElement;
|
|
32
32
|
this.renderer.addClass(elementRef.nativeElement, 'thy-carousel-item');
|
|
33
33
|
}
|
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
35
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCarouselItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
35
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ThyCarouselItemDirective, isStandalone: true, selector: "[thyCarouselItem],[thy-carousel-item]", exportAs: ["thyCarouseItem"], ngImport: i0 }); }
|
|
36
36
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCarouselItemDirective, decorators: [{
|
|
38
38
|
type: Directive,
|
|
39
39
|
args: [{
|
|
40
40
|
selector: '[thyCarouselItem],[thy-carousel-item]',
|
|
41
|
-
exportAs: 'thyCarouseItem'
|
|
42
|
-
standalone: true
|
|
41
|
+
exportAs: 'thyCarouseItem'
|
|
43
42
|
}]
|
|
44
43
|
}], ctorParameters: () => [] });
|
|
45
44
|
|
|
@@ -102,10 +101,10 @@ class ThyCarouselService {
|
|
|
102
101
|
});
|
|
103
102
|
});
|
|
104
103
|
}
|
|
105
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
106
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCarouselService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
105
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCarouselService, providedIn: 'root' }); }
|
|
107
106
|
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCarouselService, decorators: [{
|
|
109
108
|
type: Injectable,
|
|
110
109
|
args: [{
|
|
111
110
|
providedIn: 'root'
|
|
@@ -285,6 +284,8 @@ class ThyCarouselFadeEngine extends ThyCarouselBaseEngine {
|
|
|
285
284
|
correctionOffset() { }
|
|
286
285
|
}
|
|
287
286
|
|
|
287
|
+
const THY_CAROUSEL_COMPONENT = new InjectionToken('THY_CAROUSEL_COMPONENT');
|
|
288
|
+
|
|
288
289
|
/**
|
|
289
290
|
* 走马灯组件
|
|
290
291
|
* @name thy-carousel
|
|
@@ -516,14 +517,24 @@ class ThyCarousel {
|
|
|
516
517
|
this._destroy$.next();
|
|
517
518
|
this._destroy$.complete();
|
|
518
519
|
}
|
|
519
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
520
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
520
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCarousel, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
521
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: ThyCarousel, isStandalone: true, selector: "thy-carousel", inputs: { thyAutoPlay: ["thyAutoPlay", "thyAutoPlay", coerceBooleanProperty], thyAutoPlayInterval: ["thyAutoPlayInterval", "thyAutoPlayInterval", numberAttribute], thyEffect: "thyEffect", thyIndicators: ["thyIndicators", "thyIndicators", coerceBooleanProperty], thyIndicatorRender: "thyIndicatorRender", thyControls: ["thyControls", "thyControls", coerceBooleanProperty], thyControlPrev: "thyControlPrev", thyControlNext: "thyControlNext", thyTouchable: ["thyTouchable", "thyTouchable", coerceBooleanProperty], thyTrigger: "thyTrigger", thyPause: "thyPause" }, outputs: { thyBeforeChange: "thyBeforeChange", thyAfterChange: "thyAfterChange" }, host: { classAttribute: "thy-carousel" }, providers: [
|
|
522
|
+
{
|
|
523
|
+
provide: THY_CAROUSEL_COMPONENT,
|
|
524
|
+
useExisting: ThyCarousel
|
|
525
|
+
}
|
|
526
|
+
], queries: [{ propertyName: "carouselItems", predicate: ThyCarouselItemDirective }], viewQueries: [{ propertyName: "carouselWrapper", first: true, predicate: ["carouselWrapper"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"thy-carousel thy-carousel-initialized thy-carousel-point-events\">\n <div #carouselWrapper class=\"thy-carousel-wrapper\" (mousedown)=\"onDrag($event)\" (touchstart)=\"onDrag($event)\">\n <ng-content></ng-content>\n </div>\n @if (thyControls && carouselItems.length > 1) {\n <div class=\"thy-carousel-control-pre-wrapper\" (click)=\"pre()\">\n <ng-container *ngTemplateOutlet=\"thyControlPrev || defaultControlPrev\"></ng-container>\n </div>\n <div class=\"thy-carousel-control-next-wrapper\" (click)=\"next()\">\n <ng-container *ngTemplateOutlet=\"thyControlNext || defaultControlNext\"></ng-container>\n </div>\n }\n @if (thyIndicators) {\n <div class=\"thy-carousel-indicators\">\n @for (content of carouselItems; track $index; let i = $index) {\n <span\n class=\"thy-carousel-indicator\"\n (mouseenter)=\"indicatorHandleTrigger(i)\"\n (mouseleave)=\"indicatorHandleLeave()\"\n (click)=\"indicatorHandleClick(i)\">\n <ng-template\n [ngTemplateOutlet]=\"thyIndicatorRender || defaultIndicatorRender\"\n [ngTemplateOutletContext]=\"{ $implicit: i === activeIndex }\"></ng-template>\n </span>\n }\n </div>\n }\n</div>\n\n<ng-template #defaultIndicatorRender let-active>\n <thy-dot [class.active]=\"active\"></thy-dot>\n</ng-template>\n\n<ng-template #defaultControlPrev>\n <div class=\"thy-carousel-control thy-carousel-control-pre\">\n <thy-icon thyIconName=\"angle-left-bold\"></thy-icon>\n </div>\n</ng-template>\n\n<ng-template #defaultControlNext>\n <div class=\"thy-carousel-control thy-carousel-control-next\">\n <thy-icon thyIconName=\"angle-right-bold\"></thy-icon>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ThyDot, selector: "thy-dot,[thy-dot],[thyDot]", inputs: ["thyColor", "thySize", "thyTheme", "thyShape"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
521
527
|
}
|
|
522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCarousel, decorators: [{
|
|
523
529
|
type: Component,
|
|
524
530
|
args: [{ selector: 'thy-carousel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: {
|
|
525
531
|
class: 'thy-carousel'
|
|
526
|
-
}, imports: [NgTemplateOutlet, ThyDot, ThyIcon],
|
|
532
|
+
}, imports: [NgTemplateOutlet, ThyDot, ThyIcon], providers: [
|
|
533
|
+
{
|
|
534
|
+
provide: THY_CAROUSEL_COMPONENT,
|
|
535
|
+
useExisting: ThyCarousel
|
|
536
|
+
}
|
|
537
|
+
], template: "<div class=\"thy-carousel thy-carousel-initialized thy-carousel-point-events\">\n <div #carouselWrapper class=\"thy-carousel-wrapper\" (mousedown)=\"onDrag($event)\" (touchstart)=\"onDrag($event)\">\n <ng-content></ng-content>\n </div>\n @if (thyControls && carouselItems.length > 1) {\n <div class=\"thy-carousel-control-pre-wrapper\" (click)=\"pre()\">\n <ng-container *ngTemplateOutlet=\"thyControlPrev || defaultControlPrev\"></ng-container>\n </div>\n <div class=\"thy-carousel-control-next-wrapper\" (click)=\"next()\">\n <ng-container *ngTemplateOutlet=\"thyControlNext || defaultControlNext\"></ng-container>\n </div>\n }\n @if (thyIndicators) {\n <div class=\"thy-carousel-indicators\">\n @for (content of carouselItems; track $index; let i = $index) {\n <span\n class=\"thy-carousel-indicator\"\n (mouseenter)=\"indicatorHandleTrigger(i)\"\n (mouseleave)=\"indicatorHandleLeave()\"\n (click)=\"indicatorHandleClick(i)\">\n <ng-template\n [ngTemplateOutlet]=\"thyIndicatorRender || defaultIndicatorRender\"\n [ngTemplateOutletContext]=\"{ $implicit: i === activeIndex }\"></ng-template>\n </span>\n }\n </div>\n }\n</div>\n\n<ng-template #defaultIndicatorRender let-active>\n <thy-dot [class.active]=\"active\"></thy-dot>\n</ng-template>\n\n<ng-template #defaultControlPrev>\n <div class=\"thy-carousel-control thy-carousel-control-pre\">\n <thy-icon thyIconName=\"angle-left-bold\"></thy-icon>\n </div>\n</ng-template>\n\n<ng-template #defaultControlNext>\n <div class=\"thy-carousel-control thy-carousel-control-next\">\n <thy-icon thyIconName=\"angle-right-bold\"></thy-icon>\n </div>\n</ng-template>\n" }]
|
|
527
538
|
}], propDecorators: { carouselItems: [{
|
|
528
539
|
type: ContentChildren,
|
|
529
540
|
args: [ThyCarouselItemDirective]
|
|
@@ -565,11 +576,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
|
565
576
|
|
|
566
577
|
const COMPONENTS = [ThyCarousel, ThyCarouselItemDirective];
|
|
567
578
|
class ThyCarouselModule {
|
|
568
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
569
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
570
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
579
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
580
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: ThyCarouselModule, imports: [CommonModule, ThyDotModule, ThyIconModule, ThyCarousel, ThyCarouselItemDirective], exports: [ThyCarousel, ThyCarouselItemDirective] }); }
|
|
581
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCarouselModule, imports: [CommonModule, ThyDotModule, ThyIconModule, ThyCarousel] }); }
|
|
571
582
|
}
|
|
572
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCarouselModule, decorators: [{
|
|
573
584
|
type: NgModule,
|
|
574
585
|
args: [{
|
|
575
586
|
exports: [...COMPONENTS],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-tethys-carousel.mjs","sources":["../../../src/carousel/carousel-item.directive.ts","../../../src/carousel/carousel.service.ts","../../../src/carousel/engine/carousel-base.ts","../../../src/carousel/engine/carousel-noop.ts","../../../src/carousel/engine/carousel-slide.ts","../../../src/carousel/engine/carousel-fade.ts","../../../src/carousel/carousel.component.ts","../../../src/carousel/carousel.component.html","../../../src/carousel/module.ts","../../../src/carousel/ngx-tethys-carousel.ts"],"sourcesContent":["import { Directive, ElementRef, Renderer2, inject } from '@angular/core';\n\n/**\n * @private\n */\n@Directive({\n selector: '[thyCarouselItem],[thy-carousel-item]',\n exportAs: 'thyCarouseItem',\n standalone: true\n})\nexport class ThyCarouselItemDirective {\n private renderer = inject(Renderer2);\n\n private _active = false;\n\n readonly el: HTMLElement;\n\n set isActive(value: boolean) {\n this._active = value;\n if (this.isActive) {\n this.renderer.addClass(this.el, 'thy-carousel-item-active');\n } else {\n this.renderer.removeClass(this.el, 'thy-carousel-item-active');\n }\n }\n\n get isActive(): boolean {\n return this._active;\n }\n\n constructor() {\n const elementRef = inject(ElementRef);\n\n this.el = elementRef.nativeElement;\n this.renderer.addClass(elementRef.nativeElement, 'thy-carousel-item');\n }\n}\n","import { Injectable, NgZone, inject } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { Observable, Subject } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { ThyDistanceVector } from './typings';\n\n/**\n * @internal\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class ThyCarouselService {\n private ngZone = inject(NgZone);\n\n private listeners = new Map<string, (event: MouseEvent | TouchEvent) => void>();\n private document: Document;\n\n documentDraggingOutside$ = new Subject<MouseEvent | Touch>();\n\n constructor() {\n const document = inject(DOCUMENT);\n\n this.document = document;\n }\n\n private clearListeners(): void {\n this.listeners.forEach((handler, name) => {\n this.document.removeEventListener(name, handler as EventListener);\n });\n this.listeners.clear();\n }\n\n private getEventPotions(event: MouseEvent | TouchEvent): MouseEvent | Touch {\n if (event instanceof MouseEvent) {\n return event;\n } else {\n return event.touches[0] || event.changedTouches[0];\n }\n }\n\n registerDrag(event: MouseEvent | TouchEvent): Observable<ThyDistanceVector> {\n if (this.documentDraggingOutside$) {\n this.documentDraggingOutside$.complete();\n }\n\n const startPoint = this.getEventPotions(event);\n\n this.documentDraggingOutside$ = new Subject<MouseEvent | Touch>();\n\n this.registerHandler(event);\n\n return this.documentDraggingOutside$.pipe(\n map(e => {\n return {\n x: e.pageX - startPoint!.pageX,\n y: e.pageY - startPoint!.pageY\n };\n })\n );\n }\n\n registerHandler(event: MouseEvent | TouchEvent) {\n this.clearListeners();\n const _isTouchEvent = event instanceof MouseEvent;\n const moveEvent = _isTouchEvent ? 'mousemove' : 'touchmove';\n const upEvent = _isTouchEvent ? 'mouseup' : 'touchend';\n const moveEventHandler = (e: MouseEvent | TouchEvent) => {\n this.documentDraggingOutside$.next(e instanceof MouseEvent ? e : e.touches[0] || e.changedTouches[0]);\n };\n const upEventHandler = () => {\n this.documentDraggingOutside$.complete();\n this.clearListeners();\n };\n this.listeners.set(moveEvent, moveEventHandler);\n this.listeners.set(upEvent, upEventHandler);\n this.ngZone.runOutsideAngular(() => {\n this.listeners.forEach((handler, name) => {\n this.document.addEventListener(name, handler as EventListener);\n });\n });\n }\n}\n","import { ChangeDetectorRef, Renderer2, QueryList } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\nimport { Observable } from 'rxjs';\nimport { ThyCarouselItemDirective } from '../carousel-item.directive';\nimport { ThyCarousel } from '../carousel.component';\nimport { ThyDistanceVector, ThyCarouselEngine } from '../typings';\n\nexport abstract class ThyCarouselBaseEngine implements ThyCarouselEngine {\n protected contentWidth: number;\n protected contentHeight: number;\n protected readonly carouselComponent: ThyCarousel;\n protected wrapperEl: HTMLElement;\n protected playTime: number;\n protected length: number;\n protected contents: ThyCarouselItemDirective[];\n\n protected get maxIndex(): number {\n return this.length - 1;\n }\n\n protected get firstEl(): HTMLElement {\n return this.contents[0].el;\n }\n\n protected get lastEl(): HTMLElement {\n return this.contents[this.maxIndex].el;\n }\n\n protected constructor(\n thyCarouselComponent: ThyCarousel,\n protected cdr: ChangeDetectorRef,\n protected renderer: Renderer2,\n protected platform: Platform\n ) {\n this.carouselComponent = thyCarouselComponent;\n }\n\n initializeContents(contents: QueryList<ThyCarouselItemDirective> | null) {\n const carousel = this.carouselComponent!;\n const { wrapperEl, playTime } = carousel;\n this.wrapperEl = wrapperEl;\n this.playTime = playTime;\n const { width, height } = wrapperEl.getBoundingClientRect();\n this.contentHeight = height;\n this.contentWidth = width;\n\n this.contents = contents?.toArray();\n this.length = this.contents.length;\n if (this.platform.isBrowser && this.contents.length) {\n this.renderer.setStyle(this.wrapperEl, 'transform', 'translate3d(0, 0, 0)');\n this.renderer.setStyle(this.wrapperEl, `height`, `${this.contentHeight}px`);\n }\n this.contents.forEach(content => {\n content.el.removeAttribute('style');\n });\n }\n\n abstract dragging(pointerVector: ThyDistanceVector, rect: DOMRect): void;\n\n abstract initializeCarouselContents(contents: QueryList<ThyCarouselItemDirective> | null): void;\n\n abstract switch(to: number, from: number): Observable<void>;\n\n correctionOffset(): void {\n const carousel = this.carouselComponent!;\n const { wrapperEl } = carousel;\n const { width, height } = wrapperEl.getBoundingClientRect();\n this.contentWidth = width;\n this.contentHeight = height;\n }\n}\n","import { ChangeDetectorRef, QueryList, Renderer2 } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\nimport { Observable, Subject } from 'rxjs';\nimport { ThyCarousel } from '../carousel.component';\nimport { ThyDistanceVector } from '../typings';\nimport { ThyCarouselItemDirective } from '../carousel-item.directive';\nimport { ThyCarouselBaseEngine } from '../engine/carousel-base';\n\nexport class ThyCarouselNoopEngine extends ThyCarouselBaseEngine {\n constructor(thyCarouselComponent: ThyCarousel, cdr: ChangeDetectorRef, renderer: Renderer2, platform: Platform) {\n super(thyCarouselComponent, cdr, renderer, platform);\n }\n\n dragging(pointerVector: ThyDistanceVector, rect: DOMRect): void {}\n\n initializeCarouselContents(contents: QueryList<ThyCarouselItemDirective> | null): void {\n this.initializeContents(contents);\n }\n\n switch(to: number, from: number): Observable<void> {\n const switch$ = new Subject<void>();\n this.renderer.setStyle(\n this.wrapperEl,\n `transform`,\n `translate3d(${(-(to + this.length) % this.length) * this.contentWidth}px,0 , 0)`\n );\n setTimeout(() => {\n switch$.next();\n }, 0);\n setTimeout(() => {\n switch$.complete();\n }, 0);\n return switch$.asObservable();\n }\n\n correctionOffset(): void {\n super.correctionOffset();\n const { activeIndex } = this.carouselComponent!;\n this.renderer.setStyle(this.wrapperEl, `transform`, `translate3d(${-activeIndex * this.contentWidth}px,0 , 0)`);\n }\n}\n","import { ChangeDetectorRef, QueryList, Renderer2 } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\nimport { Observable, Subject } from 'rxjs';\nimport { ThyCarousel } from '../carousel.component';\nimport { ThyDistanceVector } from '../typings';\nimport { ThyCarouselItemDirective } from '../carousel-item.directive';\nimport { ThyCarouselBaseEngine } from '../engine/carousel-base';\n\nexport class ThyCarouselSlideEngine extends ThyCarouselBaseEngine {\n constructor(thyCarouselComponent: ThyCarousel, cdr: ChangeDetectorRef, renderer: Renderer2, platform: Platform) {\n super(thyCarouselComponent, cdr, renderer, platform);\n }\n\n private prepareHorizontalContext(activeIndex: number): void {\n if (activeIndex >= this.maxIndex) {\n this.renderer.setStyle(this.firstEl, 'left', `${this.length * this.contentWidth}px`);\n this.renderer.setStyle(this.lastEl, 'left', null);\n } else if (activeIndex <= 0) {\n this.renderer.setStyle(this.firstEl, 'left', null);\n this.renderer.setStyle(this.lastEl, 'left', `${-this.length * this.contentWidth}px`);\n } else {\n this.resetContext();\n }\n }\n\n private resetContext() {\n this.renderer.setStyle(this.lastEl, 'left', null);\n this.renderer.setStyle(this.firstEl, 'left', null);\n }\n\n initializeCarouselContents(contents: QueryList<ThyCarouselItemDirective> | null): void {\n this.initializeContents(contents);\n }\n\n dragging(pointerVector: ThyDistanceVector, rect: DOMRect): void {\n const { x } = pointerVector;\n const { width, height } = rect;\n this.contentWidth = width;\n this.contentHeight = height;\n const activeIndex = this.carouselComponent!.activeIndex;\n if (this.length > 1) {\n this.prepareHorizontalContext(activeIndex);\n }\n this.renderer.setStyle(this.wrapperEl, 'transform', `translate3d(${-activeIndex * this.contentWidth + x}px,0 , 0)`);\n }\n\n switch(to: number, from: number): Observable<void> {\n const switch$ = new Subject<void>();\n if (Math.abs(from - to) === 1 || from === to) {\n this.prepareHorizontalContext(to);\n }\n this.renderer.setStyle(this.wrapperEl, `transition-duration`, `${this.playTime}ms`);\n this.renderer.setStyle(this.wrapperEl, `transform`, `translate3d(${-to * this.contentWidth}px,0 , 0)`);\n setTimeout(() => {\n switch$.next();\n }, 0);\n setTimeout(() => {\n this.resetContext();\n this.renderer.setStyle(this.wrapperEl, `transition-duration`, `0s`);\n this.renderer.setStyle(\n this.wrapperEl,\n `transform`,\n `translate3d(${-((to + this.length) % this.length) * this.contentWidth}px,0 , 0)`\n );\n switch$.complete();\n }, this.playTime);\n return switch$.asObservable();\n }\n\n correctionOffset(): void {\n super.correctionOffset();\n const { activeIndex } = this.carouselComponent!;\n this.renderer.setStyle(this.wrapperEl, `transform`, `translate3d(${-activeIndex * this.contentWidth}px,0 , 0)`);\n }\n}\n","import { ChangeDetectorRef, QueryList, Renderer2 } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\nimport { Observable, Subject } from 'rxjs';\nimport { ThyCarousel } from '../carousel.component';\nimport { ThyDistanceVector } from '../typings';\nimport { ThyCarouselItemDirective } from '../carousel-item.directive';\nimport { ThyCarouselBaseEngine } from '../engine/carousel-base';\n\nexport class ThyCarouselFadeEngine extends ThyCarouselBaseEngine {\n contentsEl: HTMLElement[];\n constructor(thyCarouselComponent: ThyCarousel, cdr: ChangeDetectorRef, renderer: Renderer2, platform: Platform) {\n super(thyCarouselComponent, cdr, renderer, platform);\n }\n\n dragging(pointerVector: ThyDistanceVector, rect: DOMRect): void {\n const { x } = pointerVector;\n const { width } = rect;\n const activeIndex = this.carouselComponent!.activeIndex;\n const currentContent = this.contentsEl[activeIndex];\n this.renderer.setStyle(currentContent, 'opacity', `${1 - Math.abs(x) / width}`);\n }\n\n initializeCarouselContents(contents: QueryList<ThyCarouselItemDirective> | null): void {\n this.initializeContents(contents);\n this.contentsEl = [];\n contents.forEach((content, index) => {\n this.contentsEl.push(content.el);\n this.renderer.setStyle(content.el, 'opacity', this.carouselComponent!.activeIndex === index ? '1' : '0');\n this.renderer.setStyle(content.el, 'position', 'absolute');\n this.renderer.setStyle(content.el, 'left', '0');\n this.renderer.setStyle(content.el, `transition-property`, 'opacity');\n this.renderer.setStyle(content.el, `transition-timing-function`, 'ease');\n });\n }\n\n switch(to: number, from: number): Observable<void> {\n const switch$ = new Subject<void>();\n const currentEl = this.contentsEl[from];\n const nextEl = this.contentsEl[(to + this.length) % this.length];\n this.renderer.setStyle(currentEl, `transition-duration`, `${this.playTime}ms`);\n this.renderer.setStyle(nextEl, `transition-duration`, `${this.playTime}ms`);\n this.renderer.setStyle(currentEl, 'opacity', '0');\n this.renderer.setStyle(nextEl, 'opacity', '1');\n setTimeout(() => {\n switch$.next();\n }, 0);\n setTimeout(() => {\n this.renderer.setStyle(currentEl, `transition-duration`, `0s`);\n this.renderer.setStyle(nextEl, `transition-duration`, `0s`);\n switch$.complete();\n }, this.playTime);\n return switch$.asObservable();\n }\n\n correctionOffset(): void {}\n}\n","import { Platform } from '@angular/cdk/platform';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterContentInit,\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n NgZone,\n numberAttribute,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n QueryList,\n Renderer2,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ThyDot } from 'ngx-tethys/dot';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { coerceBooleanProperty, isNumber, TinyDate } from 'ngx-tethys/util';\nimport { fromEvent, Subject } from 'rxjs';\nimport { debounceTime, takeUntil } from 'rxjs/operators';\nimport { ThyCarouselItemDirective } from './carousel-item.directive';\nimport { ThyCarouselService } from './carousel.service';\nimport { ThyCarouselFadeEngine, ThyCarouselNoopEngine, ThyCarouselSlideEngine } from './engine';\nimport {\n ThyCarouselEffect,\n ThyCarouselEngine,\n ThyCarouselPause,\n ThyCarouselSwitchData,\n ThyCarouselTrigger,\n ThyDistanceVector\n} from './typings';\n\n/**\n * 走马灯组件\n * @name thy-carousel\n */\n@Component({\n selector: 'thy-carousel',\n templateUrl: './carousel.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n preserveWhitespaces: false,\n host: {\n class: 'thy-carousel'\n },\n imports: [NgTemplateOutlet, ThyDot, ThyIcon]\n})\nexport class ThyCarousel implements OnInit, AfterViewInit, AfterContentInit, OnChanges, OnDestroy {\n protected renderer = inject(Renderer2);\n private cdr = inject(ChangeDetectorRef);\n private ngZone = inject(NgZone);\n private readonly carouselService = inject(ThyCarouselService);\n private readonly platform = inject(Platform);\n\n /**\n * @private\n */\n @ContentChildren(ThyCarouselItemDirective) carouselItems!: QueryList<ThyCarouselItemDirective>;\n\n /**\n * @private\n */\n @ViewChild('carouselWrapper', { static: true }) carouselWrapper: ElementRef<HTMLElement>;\n\n /**\n * 是否自动切换,默认 false\n */\n @Input({ transform: coerceBooleanProperty }) thyAutoPlay: boolean = false;\n\n /**\n * 自动切换时间间隔(毫秒)\n */\n @Input({ transform: numberAttribute }) thyAutoPlayInterval: number = 3000;\n\n /**\n * 切换动画样式\n * @type slide | fade | noop\n */\n @Input() thyEffect: ThyCarouselEffect = 'slide';\n\n /**\n * 是否显示切换指示器\n */\n @Input({ transform: coerceBooleanProperty }) thyIndicators = true;\n\n /**\n * 指示器 Item 的渲染模板\n */\n @Input() thyIndicatorRender?: TemplateRef<{ $implicit: boolean }>;\n\n /**\n * 是否显示左右切换\n */\n @Input({ transform: coerceBooleanProperty }) thyControls = true;\n\n /**\n * 上一个控制器渲染模板\n */\n @Input() thyControlPrev?: TemplateRef<any>;\n\n /**\n * 下一个控制器渲染模板\n */\n @Input() thyControlNext?: TemplateRef<any>;\n\n /**\n * 是否支持手势滑动\n */\n @Input({ transform: coerceBooleanProperty }) thyTouchable = true;\n\n /**\n * 指示点切换的触发条件\n * @type click | hover\n */\n @Input() thyTrigger: ThyCarouselTrigger = 'click';\n\n /**\n * 鼠标移动到指示器时是否暂停播放\n * @type false | hover\n */\n @Input() thyPause: ThyCarouselPause = 'hover';\n\n /**\n * 触发切换帧之前,返回 `{from: number, to: number}`\n */\n @Output() readonly thyBeforeChange = new EventEmitter<ThyCarouselSwitchData>();\n\n /**\n * 切换帧之后的回调,返回当前帧索引\n */\n @Output() readonly thyAfterChange = new EventEmitter<number>();\n\n private isDragging = false;\n\n private isTransitioning = false;\n\n private pointerVector: ThyDistanceVector = { x: 0, y: 0 };\n\n private engine: ThyCarouselEngine;\n\n private _trigger$ = new Subject<number | null>();\n\n private _destroy$ = new Subject<void>();\n\n wrapperDomRect: DOMRect;\n\n activeIndex = 0;\n\n wrapperEl: HTMLElement;\n\n transitionTimer: any = null;\n\n playTime: number = 400;\n\n isPause: boolean = false;\n\n private moveTo(index: number): void {\n if (this.carouselItems && this.carouselItems.length && !this.isTransitioning) {\n this.setInitialValue();\n const len = this.carouselItems.length;\n const from = this.activeIndex;\n const to = (index + len) % len;\n this.thyBeforeChange.emit({ from, to });\n this.isTransitioning = true;\n this.engine?.switch(index, this.activeIndex).subscribe(\n () => {\n this.activeIndex = to;\n this.markContentActive(this.activeIndex);\n this.scheduleNextTransition();\n this.thyAfterChange.emit(this.activeIndex);\n },\n () => {},\n () => {\n this.isTransitioning = false;\n }\n );\n this.cdr.markForCheck();\n }\n }\n\n private switchEngine(): void {\n switch (this.thyEffect) {\n case 'slide':\n this.engine = new ThyCarouselSlideEngine(this, this.cdr, this.renderer, this.platform);\n break;\n case 'fade':\n this.engine = new ThyCarouselFadeEngine(this, this.cdr, this.renderer, this.platform);\n break;\n default:\n this.engine = new ThyCarouselNoopEngine(this, this.cdr, this.renderer, this.platform);\n }\n }\n\n private markContentActive(index: number) {\n this.activeIndex = index;\n this.carouselItems.forEach((carouselContent: ThyCarouselItemDirective, i: number) => {\n carouselContent.isActive = index === i;\n });\n this.cdr.detectChanges();\n }\n\n private setInitialValue(): void {\n if (this.engine) {\n this.engine.initializeCarouselContents(this.carouselItems);\n }\n }\n\n private scheduleNextTransition(): void {\n this.clearScheduledTransition();\n if (this.thyAutoPlay && !this.isPause) {\n this.transitionTimer = setTimeout(() => {\n this.moveTo(this.activeIndex + 1);\n }, this.thyAutoPlayInterval);\n }\n }\n\n private clearScheduledTransition(): void {\n if (this.transitionTimer) {\n clearTimeout(this.transitionTimer);\n this.transitionTimer = null;\n }\n }\n\n onDrag(event: TouchEvent | MouseEvent): void {\n if (!this.isDragging && !this.isTransitioning && this.thyTouchable) {\n const mouseDownTime = new TinyDate().getTime();\n let mouseUpTime: number;\n this.clearScheduledTransition();\n this.wrapperDomRect = this.wrapperEl.getBoundingClientRect();\n this.carouselService.registerDrag(event).subscribe(\n pointerVector => {\n this.renderer.setStyle(this.wrapperEl, 'cursor', 'grabbing');\n this.pointerVector = pointerVector;\n this.isDragging = true;\n this.engine?.dragging(this.pointerVector, this.wrapperDomRect);\n },\n () => {},\n () => {\n if (this.isDragging) {\n mouseUpTime = new TinyDate().getTime();\n const holdDownTime = mouseUpTime - mouseDownTime;\n // Fast enough to switch to the next frame\n // or\n // If the pointerVector is more than one third switch to the next frame\n if (\n Math.abs(this.pointerVector.x) > this.wrapperDomRect.width / 3 ||\n Math.abs(this.pointerVector.x) / holdDownTime >= 1\n ) {\n this.moveTo(this.pointerVector.x > 0 ? this.activeIndex - 1 : this.activeIndex + 1);\n } else {\n this.moveTo(this.activeIndex);\n }\n }\n this.isDragging = false;\n this.renderer.setStyle(this.wrapperEl, 'cursor', 'grab');\n }\n );\n }\n }\n\n indicatorHandleClick(index: number): void {\n if (this.thyTrigger === 'click') {\n this.moveTo(index);\n }\n }\n\n indicatorHandleTrigger(index: number): void {\n if (this.thyPause === 'hover') {\n this.isPause = true;\n this.clearScheduledTransition();\n }\n if (this.thyTrigger === 'hover') {\n this._trigger$.next(index);\n }\n }\n\n indicatorHandleLeave() {\n if (this.thyPause === 'hover') {\n this.isPause = false;\n this.scheduleNextTransition();\n }\n }\n\n next(): void {\n this.moveTo(this.activeIndex + 1);\n }\n\n pre(): void {\n this.moveTo(this.activeIndex - 1);\n }\n\n ngOnInit(): void {\n this.wrapperEl = this.carouselWrapper!.nativeElement;\n this.ngZone.runOutsideAngular(() => {\n fromEvent(window, 'resize')\n .pipe(takeUntil(this._destroy$), debounceTime(100))\n .subscribe(() => {\n this.engine?.correctionOffset();\n });\n });\n }\n ngOnChanges(changes: SimpleChanges) {\n const { thyEffect, thyTouchable } = changes;\n if (thyEffect && !thyEffect.isFirstChange()) {\n this.switchEngine();\n this.markContentActive(0);\n this.setInitialValue();\n }\n\n if (thyTouchable && !thyTouchable.isFirstChange()) {\n this.renderer.setStyle(this.wrapperEl, 'cursor', thyTouchable.currentValue ? 'grab' : 'default');\n }\n\n if (!this.thyAutoPlay || !this.thyAutoPlayInterval) {\n this.clearScheduledTransition();\n } else {\n this.scheduleNextTransition();\n }\n }\n\n ngAfterViewInit(): void {\n this.carouselItems.changes.subscribe(() => {\n this.markContentActive(0);\n this.setInitialValue();\n });\n this.switchEngine();\n this.markContentActive(0);\n this.setInitialValue();\n\n if (!this.thyTouchable) {\n this.renderer.setStyle(this.wrapperEl, 'cursor', 'default');\n }\n }\n\n ngAfterContentInit() {\n this._trigger$.pipe(takeUntil(this._destroy$), debounceTime(this.playTime)).subscribe(index => {\n if (isNumber(index)) {\n this.moveTo(index);\n }\n });\n }\n\n ngOnDestroy() {\n this.clearScheduledTransition();\n this._trigger$.next(null);\n this._trigger$.complete();\n this._destroy$.next();\n this._destroy$.complete();\n }\n}\n","<div class=\"thy-carousel thy-carousel-initialized thy-carousel-point-events\">\n <div #carouselWrapper class=\"thy-carousel-wrapper\" (mousedown)=\"onDrag($event)\" (touchstart)=\"onDrag($event)\">\n <ng-content></ng-content>\n </div>\n @if (thyControls && carouselItems.length > 1) {\n <div class=\"thy-carousel-control-pre-wrapper\" (click)=\"pre()\">\n <ng-container *ngTemplateOutlet=\"thyControlPrev || defaultControlPrev\"></ng-container>\n </div>\n <div class=\"thy-carousel-control-next-wrapper\" (click)=\"next()\">\n <ng-container *ngTemplateOutlet=\"thyControlNext || defaultControlNext\"></ng-container>\n </div>\n }\n @if (thyIndicators) {\n <div class=\"thy-carousel-indicators\">\n @for (content of carouselItems; track $index; let i = $index) {\n <span\n class=\"thy-carousel-indicator\"\n (mouseenter)=\"indicatorHandleTrigger(i)\"\n (mouseleave)=\"indicatorHandleLeave()\"\n (click)=\"indicatorHandleClick(i)\">\n <ng-template\n [ngTemplateOutlet]=\"thyIndicatorRender || defaultIndicatorRender\"\n [ngTemplateOutletContext]=\"{ $implicit: i === activeIndex }\"></ng-template>\n </span>\n }\n </div>\n }\n</div>\n\n<ng-template #defaultIndicatorRender let-active>\n <thy-dot [class.active]=\"active\"></thy-dot>\n</ng-template>\n\n<ng-template #defaultControlPrev>\n <div class=\"thy-carousel-control thy-carousel-control-pre\">\n <thy-icon thyIconName=\"angle-left-bold\"></thy-icon>\n </div>\n</ng-template>\n\n<ng-template #defaultControlNext>\n <div class=\"thy-carousel-control thy-carousel-control-next\">\n <thy-icon thyIconName=\"angle-right-bold\"></thy-icon>\n </div>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyCarousel } from './carousel.component';\nimport { ThyCarouselItemDirective } from './carousel-item.directive';\nimport { ThyDotModule } from 'ngx-tethys/dot';\nimport { ThyIconModule } from 'ngx-tethys/icon';\n\nconst COMPONENTS = [ThyCarousel, ThyCarouselItemDirective];\n\n@NgModule({\n exports: [...COMPONENTS],\n imports: [CommonModule, ThyDotModule, ThyIconModule, ...COMPONENTS]\n})\nexport class ThyCarouselModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAEA;;AAEG;MAMU,wBAAwB,CAAA;IAOjC,IAAI,QAAQ,CAAC,KAAc,EAAA;AACvB,QAAA,IAA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AA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAFhB,OAAA,EAAA,CAAA,YAAY,EAAE,YAAY,EAAE,aAAa,EAJnC,WAAW,EAAE,wBAAwB,CAArC,EAAA,OAAA,EAAA,CAAA,WAAW,EAAE,wBAAwB,CAAA,EAAA,CAAA,CAAA;AAM5C,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAFhB,YAAY,EAAE,YAAY,EAAE,aAAa,EAJnC,WAAW,CAAA,EAAA,CAAA,CAAA;;2FAMlB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;oBACxB,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,UAAU;AACrE,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-tethys-carousel.mjs","sources":["../../../src/carousel/carousel-item.directive.ts","../../../src/carousel/carousel.service.ts","../../../src/carousel/engine/carousel-base.ts","../../../src/carousel/engine/carousel-noop.ts","../../../src/carousel/engine/carousel-slide.ts","../../../src/carousel/engine/carousel-fade.ts","../../../src/carousel/carousel.token.ts","../../../src/carousel/carousel.component.ts","../../../src/carousel/carousel.component.html","../../../src/carousel/module.ts","../../../src/carousel/ngx-tethys-carousel.ts"],"sourcesContent":["import { Directive, ElementRef, Renderer2, inject } from '@angular/core';\n\n/**\n * @private\n */\n@Directive({\n selector: '[thyCarouselItem],[thy-carousel-item]',\n exportAs: 'thyCarouseItem'\n})\nexport class ThyCarouselItemDirective {\n private renderer = inject(Renderer2);\n\n private _active = false;\n\n readonly el: HTMLElement;\n\n set isActive(value: boolean) {\n this._active = value;\n if (this.isActive) {\n this.renderer.addClass(this.el, 'thy-carousel-item-active');\n } else {\n this.renderer.removeClass(this.el, 'thy-carousel-item-active');\n }\n }\n\n get isActive(): boolean {\n return this._active;\n }\n\n constructor() {\n const elementRef = inject(ElementRef);\n\n this.el = elementRef.nativeElement;\n this.renderer.addClass(elementRef.nativeElement, 'thy-carousel-item');\n }\n}\n","import { Injectable, NgZone, inject } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { Observable, Subject } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { ThyDistanceVector } from './typings';\n\n/**\n * @internal\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class ThyCarouselService {\n private ngZone = inject(NgZone);\n\n private listeners = new Map<string, (event: MouseEvent | TouchEvent) => void>();\n private document: Document;\n\n documentDraggingOutside$ = new Subject<MouseEvent | Touch>();\n\n constructor() {\n const document = inject(DOCUMENT);\n\n this.document = document;\n }\n\n private clearListeners(): void {\n this.listeners.forEach((handler, name) => {\n this.document.removeEventListener(name, handler as EventListener);\n });\n this.listeners.clear();\n }\n\n private getEventPotions(event: MouseEvent | TouchEvent): MouseEvent | Touch {\n if (event instanceof MouseEvent) {\n return event;\n } else {\n return event.touches[0] || event.changedTouches[0];\n }\n }\n\n registerDrag(event: MouseEvent | TouchEvent): Observable<ThyDistanceVector> {\n if (this.documentDraggingOutside$) {\n this.documentDraggingOutside$.complete();\n }\n\n const startPoint = this.getEventPotions(event);\n\n this.documentDraggingOutside$ = new Subject<MouseEvent | Touch>();\n\n this.registerHandler(event);\n\n return this.documentDraggingOutside$.pipe(\n map(e => {\n return {\n x: e.pageX - startPoint!.pageX,\n y: e.pageY - startPoint!.pageY\n };\n })\n );\n }\n\n registerHandler(event: MouseEvent | TouchEvent) {\n this.clearListeners();\n const _isTouchEvent = event instanceof MouseEvent;\n const moveEvent = _isTouchEvent ? 'mousemove' : 'touchmove';\n const upEvent = _isTouchEvent ? 'mouseup' : 'touchend';\n const moveEventHandler = (e: MouseEvent | TouchEvent) => {\n this.documentDraggingOutside$.next(e instanceof MouseEvent ? e : e.touches[0] || e.changedTouches[0]);\n };\n const upEventHandler = () => {\n this.documentDraggingOutside$.complete();\n this.clearListeners();\n };\n this.listeners.set(moveEvent, moveEventHandler);\n this.listeners.set(upEvent, upEventHandler);\n this.ngZone.runOutsideAngular(() => {\n this.listeners.forEach((handler, name) => {\n this.document.addEventListener(name, handler as EventListener);\n });\n });\n }\n}\n","import { ChangeDetectorRef, Renderer2, QueryList } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\nimport { Observable } from 'rxjs';\nimport { ThyCarouselItemDirective } from '../carousel-item.directive';\nimport { IThyCarouselComponent } from '../carousel.token';\nimport { ThyDistanceVector, ThyCarouselEngine } from '../typings';\n\nexport abstract class ThyCarouselBaseEngine implements ThyCarouselEngine {\n protected contentWidth: number;\n protected contentHeight: number;\n protected readonly carouselComponent: IThyCarouselComponent;\n protected wrapperEl: HTMLElement;\n protected playTime: number;\n protected length: number;\n protected contents: ThyCarouselItemDirective[];\n\n protected get maxIndex(): number {\n return this.length - 1;\n }\n\n protected get firstEl(): HTMLElement {\n return this.contents[0].el;\n }\n\n protected get lastEl(): HTMLElement {\n return this.contents[this.maxIndex].el;\n }\n\n protected constructor(\n thyCarouselComponent: IThyCarouselComponent,\n protected cdr: ChangeDetectorRef,\n protected renderer: Renderer2,\n protected platform: Platform\n ) {\n this.carouselComponent = thyCarouselComponent;\n }\n\n initializeContents(contents: QueryList<ThyCarouselItemDirective> | null) {\n const carousel = this.carouselComponent!;\n const { wrapperEl, playTime } = carousel;\n this.wrapperEl = wrapperEl;\n this.playTime = playTime;\n const { width, height } = wrapperEl.getBoundingClientRect();\n this.contentHeight = height;\n this.contentWidth = width;\n\n this.contents = contents?.toArray();\n this.length = this.contents.length;\n if (this.platform.isBrowser && this.contents.length) {\n this.renderer.setStyle(this.wrapperEl, 'transform', 'translate3d(0, 0, 0)');\n this.renderer.setStyle(this.wrapperEl, `height`, `${this.contentHeight}px`);\n }\n this.contents.forEach(content => {\n content.el.removeAttribute('style');\n });\n }\n\n abstract dragging(pointerVector: ThyDistanceVector, rect: DOMRect): void;\n\n abstract initializeCarouselContents(contents: QueryList<ThyCarouselItemDirective> | null): void;\n\n abstract switch(to: number, from: number): Observable<void>;\n\n correctionOffset(): void {\n const carousel = this.carouselComponent!;\n const { wrapperEl } = carousel;\n const { width, height } = wrapperEl.getBoundingClientRect();\n this.contentWidth = width;\n this.contentHeight = height;\n }\n}\n","import { ChangeDetectorRef, QueryList, Renderer2 } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\nimport { Observable, Subject } from 'rxjs';\nimport { IThyCarouselComponent } from '../carousel.token';\nimport { ThyDistanceVector } from '../typings';\nimport { ThyCarouselItemDirective } from '../carousel-item.directive';\nimport { ThyCarouselBaseEngine } from '../engine/carousel-base';\n\nexport class ThyCarouselNoopEngine extends ThyCarouselBaseEngine {\n constructor(thyCarouselComponent: IThyCarouselComponent, cdr: ChangeDetectorRef, renderer: Renderer2, platform: Platform) {\n super(thyCarouselComponent, cdr, renderer, platform);\n }\n\n dragging(pointerVector: ThyDistanceVector, rect: DOMRect): void {}\n\n initializeCarouselContents(contents: QueryList<ThyCarouselItemDirective> | null): void {\n this.initializeContents(contents);\n }\n\n switch(to: number, from: number): Observable<void> {\n const switch$ = new Subject<void>();\n this.renderer.setStyle(\n this.wrapperEl,\n `transform`,\n `translate3d(${(-(to + this.length) % this.length) * this.contentWidth}px,0 , 0)`\n );\n setTimeout(() => {\n switch$.next();\n }, 0);\n setTimeout(() => {\n switch$.complete();\n }, 0);\n return switch$.asObservable();\n }\n\n correctionOffset(): void {\n super.correctionOffset();\n const { activeIndex } = this.carouselComponent!;\n this.renderer.setStyle(this.wrapperEl, `transform`, `translate3d(${-activeIndex * this.contentWidth}px,0 , 0)`);\n }\n}\n","import { ChangeDetectorRef, QueryList, Renderer2 } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\nimport { Observable, Subject } from 'rxjs';\nimport { IThyCarouselComponent } from '../carousel.token';\nimport { ThyDistanceVector } from '../typings';\nimport { ThyCarouselItemDirective } from '../carousel-item.directive';\nimport { ThyCarouselBaseEngine } from '../engine/carousel-base';\n\nexport class ThyCarouselSlideEngine extends ThyCarouselBaseEngine {\n constructor(thyCarouselComponent: IThyCarouselComponent, cdr: ChangeDetectorRef, renderer: Renderer2, platform: Platform) {\n super(thyCarouselComponent, cdr, renderer, platform);\n }\n\n private prepareHorizontalContext(activeIndex: number): void {\n if (activeIndex >= this.maxIndex) {\n this.renderer.setStyle(this.firstEl, 'left', `${this.length * this.contentWidth}px`);\n this.renderer.setStyle(this.lastEl, 'left', null);\n } else if (activeIndex <= 0) {\n this.renderer.setStyle(this.firstEl, 'left', null);\n this.renderer.setStyle(this.lastEl, 'left', `${-this.length * this.contentWidth}px`);\n } else {\n this.resetContext();\n }\n }\n\n private resetContext() {\n this.renderer.setStyle(this.lastEl, 'left', null);\n this.renderer.setStyle(this.firstEl, 'left', null);\n }\n\n initializeCarouselContents(contents: QueryList<ThyCarouselItemDirective> | null): void {\n this.initializeContents(contents);\n }\n\n dragging(pointerVector: ThyDistanceVector, rect: DOMRect): void {\n const { x } = pointerVector;\n const { width, height } = rect;\n this.contentWidth = width;\n this.contentHeight = height;\n const activeIndex = this.carouselComponent!.activeIndex;\n if (this.length > 1) {\n this.prepareHorizontalContext(activeIndex);\n }\n this.renderer.setStyle(this.wrapperEl, 'transform', `translate3d(${-activeIndex * this.contentWidth + x}px,0 , 0)`);\n }\n\n switch(to: number, from: number): Observable<void> {\n const switch$ = new Subject<void>();\n if (Math.abs(from - to) === 1 || from === to) {\n this.prepareHorizontalContext(to);\n }\n this.renderer.setStyle(this.wrapperEl, `transition-duration`, `${this.playTime}ms`);\n this.renderer.setStyle(this.wrapperEl, `transform`, `translate3d(${-to * this.contentWidth}px,0 , 0)`);\n setTimeout(() => {\n switch$.next();\n }, 0);\n setTimeout(() => {\n this.resetContext();\n this.renderer.setStyle(this.wrapperEl, `transition-duration`, `0s`);\n this.renderer.setStyle(\n this.wrapperEl,\n `transform`,\n `translate3d(${-((to + this.length) % this.length) * this.contentWidth}px,0 , 0)`\n );\n switch$.complete();\n }, this.playTime);\n return switch$.asObservable();\n }\n\n correctionOffset(): void {\n super.correctionOffset();\n const { activeIndex } = this.carouselComponent!;\n this.renderer.setStyle(this.wrapperEl, `transform`, `translate3d(${-activeIndex * this.contentWidth}px,0 , 0)`);\n }\n}\n","import { ChangeDetectorRef, QueryList, Renderer2 } from '@angular/core';\nimport { Platform } from '@angular/cdk/platform';\nimport { Observable, Subject } from 'rxjs';\nimport { IThyCarouselComponent } from '../carousel.token';\nimport { ThyDistanceVector } from '../typings';\nimport { ThyCarouselItemDirective } from '../carousel-item.directive';\nimport { ThyCarouselBaseEngine } from '../engine/carousel-base';\n\nexport class ThyCarouselFadeEngine extends ThyCarouselBaseEngine {\n contentsEl: HTMLElement[];\n\n constructor(thyCarouselComponent: IThyCarouselComponent, cdr: ChangeDetectorRef, renderer: Renderer2, platform: Platform) {\n super(thyCarouselComponent, cdr, renderer, platform);\n }\n\n dragging(pointerVector: ThyDistanceVector, rect: DOMRect): void {\n const { x } = pointerVector;\n const { width } = rect;\n const activeIndex = this.carouselComponent!.activeIndex;\n const currentContent = this.contentsEl[activeIndex];\n this.renderer.setStyle(currentContent, 'opacity', `${1 - Math.abs(x) / width}`);\n }\n\n initializeCarouselContents(contents: QueryList<ThyCarouselItemDirective> | null): void {\n this.initializeContents(contents);\n this.contentsEl = [];\n contents.forEach((content, index) => {\n this.contentsEl.push(content.el);\n this.renderer.setStyle(content.el, 'opacity', this.carouselComponent!.activeIndex === index ? '1' : '0');\n this.renderer.setStyle(content.el, 'position', 'absolute');\n this.renderer.setStyle(content.el, 'left', '0');\n this.renderer.setStyle(content.el, `transition-property`, 'opacity');\n this.renderer.setStyle(content.el, `transition-timing-function`, 'ease');\n });\n }\n\n switch(to: number, from: number): Observable<void> {\n const switch$ = new Subject<void>();\n const currentEl = this.contentsEl[from];\n const nextEl = this.contentsEl[(to + this.length) % this.length];\n this.renderer.setStyle(currentEl, `transition-duration`, `${this.playTime}ms`);\n this.renderer.setStyle(nextEl, `transition-duration`, `${this.playTime}ms`);\n this.renderer.setStyle(currentEl, 'opacity', '0');\n this.renderer.setStyle(nextEl, 'opacity', '1');\n setTimeout(() => {\n switch$.next();\n }, 0);\n setTimeout(() => {\n this.renderer.setStyle(currentEl, `transition-duration`, `0s`);\n this.renderer.setStyle(nextEl, `transition-duration`, `0s`);\n switch$.complete();\n }, this.playTime);\n return switch$.asObservable();\n }\n\n correctionOffset(): void {}\n}\n","import { InjectionToken } from '@angular/core';\n\nexport interface IThyCarouselComponent {\n wrapperEl: HTMLElement;\n playTime: number;\n activeIndex: number;\n}\n\nexport const THY_CAROUSEL_COMPONENT = new InjectionToken<IThyCarouselComponent>('THY_CAROUSEL_COMPONENT');\n","import { Platform } from '@angular/cdk/platform';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n AfterContentInit,\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n NgZone,\n numberAttribute,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n QueryList,\n Renderer2,\n SimpleChanges,\n TemplateRef,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ThyDot } from 'ngx-tethys/dot';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { coerceBooleanProperty, isNumber, TinyDate } from 'ngx-tethys/util';\nimport { fromEvent, Subject } from 'rxjs';\nimport { debounceTime, takeUntil } from 'rxjs/operators';\nimport { ThyCarouselItemDirective } from './carousel-item.directive';\nimport { ThyCarouselService } from './carousel.service';\nimport { ThyCarouselFadeEngine, ThyCarouselNoopEngine, ThyCarouselSlideEngine } from './engine';\nimport {\n ThyCarouselEffect,\n ThyCarouselEngine,\n ThyCarouselPause,\n ThyCarouselSwitchData,\n ThyCarouselTrigger,\n ThyDistanceVector\n} from './typings';\nimport { IThyCarouselComponent, THY_CAROUSEL_COMPONENT } from './carousel.token';\n\n/**\n * 走马灯组件\n * @name thy-carousel\n */\n@Component({\n selector: 'thy-carousel',\n templateUrl: './carousel.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n preserveWhitespaces: false,\n host: {\n class: 'thy-carousel'\n },\n imports: [NgTemplateOutlet, ThyDot, ThyIcon],\n providers: [\n {\n provide: THY_CAROUSEL_COMPONENT,\n useExisting: ThyCarousel\n }\n ]\n})\nexport class ThyCarousel implements IThyCarouselComponent, OnInit, AfterViewInit, AfterContentInit, OnChanges, OnDestroy {\n protected renderer = inject(Renderer2);\n private cdr = inject(ChangeDetectorRef);\n private ngZone = inject(NgZone);\n private readonly carouselService = inject(ThyCarouselService);\n private readonly platform = inject(Platform);\n\n /**\n * @private\n */\n @ContentChildren(ThyCarouselItemDirective) carouselItems!: QueryList<ThyCarouselItemDirective>;\n\n /**\n * @private\n */\n @ViewChild('carouselWrapper', { static: true }) carouselWrapper: ElementRef<HTMLElement>;\n\n /**\n * 是否自动切换,默认 false\n */\n @Input({ transform: coerceBooleanProperty }) thyAutoPlay: boolean = false;\n\n /**\n * 自动切换时间间隔(毫秒)\n */\n @Input({ transform: numberAttribute }) thyAutoPlayInterval: number = 3000;\n\n /**\n * 切换动画样式\n * @type slide | fade | noop\n */\n @Input() thyEffect: ThyCarouselEffect = 'slide';\n\n /**\n * 是否显示切换指示器\n */\n @Input({ transform: coerceBooleanProperty }) thyIndicators = true;\n\n /**\n * 指示器 Item 的渲染模板\n */\n @Input() thyIndicatorRender?: TemplateRef<{ $implicit: boolean }>;\n\n /**\n * 是否显示左右切换\n */\n @Input({ transform: coerceBooleanProperty }) thyControls = true;\n\n /**\n * 上一个控制器渲染模板\n */\n @Input() thyControlPrev?: TemplateRef<any>;\n\n /**\n * 下一个控制器渲染模板\n */\n @Input() thyControlNext?: TemplateRef<any>;\n\n /**\n * 是否支持手势滑动\n */\n @Input({ transform: coerceBooleanProperty }) thyTouchable = true;\n\n /**\n * 指示点切换的触发条件\n * @type click | hover\n */\n @Input() thyTrigger: ThyCarouselTrigger = 'click';\n\n /**\n * 鼠标移动到指示器时是否暂停播放\n * @type false | hover\n */\n @Input() thyPause: ThyCarouselPause = 'hover';\n\n /**\n * 触发切换帧之前,返回 `{from: number, to: number}`\n */\n @Output() readonly thyBeforeChange = new EventEmitter<ThyCarouselSwitchData>();\n\n /**\n * 切换帧之后的回调,返回当前帧索引\n */\n @Output() readonly thyAfterChange = new EventEmitter<number>();\n\n private isDragging = false;\n\n private isTransitioning = false;\n\n private pointerVector: ThyDistanceVector = { x: 0, y: 0 };\n\n private engine: ThyCarouselEngine;\n\n private _trigger$ = new Subject<number | null>();\n\n private _destroy$ = new Subject<void>();\n\n wrapperDomRect: DOMRect;\n\n activeIndex: number = 0;\n\n wrapperEl: HTMLElement;\n\n transitionTimer: any = null;\n\n playTime: number = 400;\n\n isPause: boolean = false;\n\n private moveTo(index: number): void {\n if (this.carouselItems && this.carouselItems.length && !this.isTransitioning) {\n this.setInitialValue();\n const len = this.carouselItems.length;\n const from = this.activeIndex;\n const to = (index + len) % len;\n this.thyBeforeChange.emit({ from, to });\n this.isTransitioning = true;\n this.engine?.switch(index, this.activeIndex).subscribe(\n () => {\n this.activeIndex = to;\n this.markContentActive(this.activeIndex);\n this.scheduleNextTransition();\n this.thyAfterChange.emit(this.activeIndex);\n },\n () => {},\n () => {\n this.isTransitioning = false;\n }\n );\n this.cdr.markForCheck();\n }\n }\n\n private switchEngine(): void {\n switch (this.thyEffect) {\n case 'slide':\n this.engine = new ThyCarouselSlideEngine(this, this.cdr, this.renderer, this.platform);\n break;\n case 'fade':\n this.engine = new ThyCarouselFadeEngine(this, this.cdr, this.renderer, this.platform);\n break;\n default:\n this.engine = new ThyCarouselNoopEngine(this, this.cdr, this.renderer, this.platform);\n }\n }\n\n private markContentActive(index: number) {\n this.activeIndex = index;\n this.carouselItems.forEach((carouselContent: ThyCarouselItemDirective, i: number) => {\n carouselContent.isActive = index === i;\n });\n this.cdr.detectChanges();\n }\n\n private setInitialValue(): void {\n if (this.engine) {\n this.engine.initializeCarouselContents(this.carouselItems);\n }\n }\n\n private scheduleNextTransition(): void {\n this.clearScheduledTransition();\n if (this.thyAutoPlay && !this.isPause) {\n this.transitionTimer = setTimeout(() => {\n this.moveTo(this.activeIndex + 1);\n }, this.thyAutoPlayInterval);\n }\n }\n\n private clearScheduledTransition(): void {\n if (this.transitionTimer) {\n clearTimeout(this.transitionTimer);\n this.transitionTimer = null;\n }\n }\n\n onDrag(event: TouchEvent | MouseEvent): void {\n if (!this.isDragging && !this.isTransitioning && this.thyTouchable) {\n const mouseDownTime = new TinyDate().getTime();\n let mouseUpTime: number;\n this.clearScheduledTransition();\n this.wrapperDomRect = this.wrapperEl.getBoundingClientRect();\n this.carouselService.registerDrag(event).subscribe(\n pointerVector => {\n this.renderer.setStyle(this.wrapperEl, 'cursor', 'grabbing');\n this.pointerVector = pointerVector;\n this.isDragging = true;\n this.engine?.dragging(this.pointerVector, this.wrapperDomRect);\n },\n () => {},\n () => {\n if (this.isDragging) {\n mouseUpTime = new TinyDate().getTime();\n const holdDownTime = mouseUpTime - mouseDownTime;\n // Fast enough to switch to the next frame\n // or\n // If the pointerVector is more than one third switch to the next frame\n if (\n Math.abs(this.pointerVector.x) > this.wrapperDomRect.width / 3 ||\n Math.abs(this.pointerVector.x) / holdDownTime >= 1\n ) {\n this.moveTo(this.pointerVector.x > 0 ? this.activeIndex - 1 : this.activeIndex + 1);\n } else {\n this.moveTo(this.activeIndex);\n }\n }\n this.isDragging = false;\n this.renderer.setStyle(this.wrapperEl, 'cursor', 'grab');\n }\n );\n }\n }\n\n indicatorHandleClick(index: number): void {\n if (this.thyTrigger === 'click') {\n this.moveTo(index);\n }\n }\n\n indicatorHandleTrigger(index: number): void {\n if (this.thyPause === 'hover') {\n this.isPause = true;\n this.clearScheduledTransition();\n }\n if (this.thyTrigger === 'hover') {\n this._trigger$.next(index);\n }\n }\n\n indicatorHandleLeave() {\n if (this.thyPause === 'hover') {\n this.isPause = false;\n this.scheduleNextTransition();\n }\n }\n\n next(): void {\n this.moveTo(this.activeIndex + 1);\n }\n\n pre(): void {\n this.moveTo(this.activeIndex - 1);\n }\n\n ngOnInit(): void {\n this.wrapperEl = this.carouselWrapper!.nativeElement;\n this.ngZone.runOutsideAngular(() => {\n fromEvent(window, 'resize')\n .pipe(takeUntil(this._destroy$), debounceTime(100))\n .subscribe(() => {\n this.engine?.correctionOffset();\n });\n });\n }\n ngOnChanges(changes: SimpleChanges) {\n const { thyEffect, thyTouchable } = changes;\n if (thyEffect && !thyEffect.isFirstChange()) {\n this.switchEngine();\n this.markContentActive(0);\n this.setInitialValue();\n }\n\n if (thyTouchable && !thyTouchable.isFirstChange()) {\n this.renderer.setStyle(this.wrapperEl, 'cursor', thyTouchable.currentValue ? 'grab' : 'default');\n }\n\n if (!this.thyAutoPlay || !this.thyAutoPlayInterval) {\n this.clearScheduledTransition();\n } else {\n this.scheduleNextTransition();\n }\n }\n\n ngAfterViewInit(): void {\n this.carouselItems.changes.subscribe(() => {\n this.markContentActive(0);\n this.setInitialValue();\n });\n this.switchEngine();\n this.markContentActive(0);\n this.setInitialValue();\n\n if (!this.thyTouchable) {\n this.renderer.setStyle(this.wrapperEl, 'cursor', 'default');\n }\n }\n\n ngAfterContentInit() {\n this._trigger$.pipe(takeUntil(this._destroy$), debounceTime(this.playTime)).subscribe(index => {\n if (isNumber(index)) {\n this.moveTo(index);\n }\n });\n }\n\n ngOnDestroy() {\n this.clearScheduledTransition();\n this._trigger$.next(null);\n this._trigger$.complete();\n this._destroy$.next();\n this._destroy$.complete();\n }\n}\n","<div class=\"thy-carousel thy-carousel-initialized thy-carousel-point-events\">\n <div #carouselWrapper class=\"thy-carousel-wrapper\" (mousedown)=\"onDrag($event)\" (touchstart)=\"onDrag($event)\">\n <ng-content></ng-content>\n </div>\n @if (thyControls && carouselItems.length > 1) {\n <div class=\"thy-carousel-control-pre-wrapper\" (click)=\"pre()\">\n <ng-container *ngTemplateOutlet=\"thyControlPrev || defaultControlPrev\"></ng-container>\n </div>\n <div class=\"thy-carousel-control-next-wrapper\" (click)=\"next()\">\n <ng-container *ngTemplateOutlet=\"thyControlNext || defaultControlNext\"></ng-container>\n </div>\n }\n @if (thyIndicators) {\n <div class=\"thy-carousel-indicators\">\n @for (content of carouselItems; track $index; let i = $index) {\n <span\n class=\"thy-carousel-indicator\"\n (mouseenter)=\"indicatorHandleTrigger(i)\"\n (mouseleave)=\"indicatorHandleLeave()\"\n (click)=\"indicatorHandleClick(i)\">\n <ng-template\n [ngTemplateOutlet]=\"thyIndicatorRender || defaultIndicatorRender\"\n [ngTemplateOutletContext]=\"{ $implicit: i === activeIndex }\"></ng-template>\n </span>\n }\n </div>\n }\n</div>\n\n<ng-template #defaultIndicatorRender let-active>\n <thy-dot [class.active]=\"active\"></thy-dot>\n</ng-template>\n\n<ng-template #defaultControlPrev>\n <div class=\"thy-carousel-control thy-carousel-control-pre\">\n <thy-icon thyIconName=\"angle-left-bold\"></thy-icon>\n </div>\n</ng-template>\n\n<ng-template #defaultControlNext>\n <div class=\"thy-carousel-control thy-carousel-control-next\">\n <thy-icon thyIconName=\"angle-right-bold\"></thy-icon>\n </div>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ThyCarousel } from './carousel.component';\nimport { ThyCarouselItemDirective } from './carousel-item.directive';\nimport { ThyDotModule } from 'ngx-tethys/dot';\nimport { ThyIconModule } from 'ngx-tethys/icon';\n\nconst COMPONENTS = [ThyCarousel, ThyCarouselItemDirective];\n\n@NgModule({\n exports: [...COMPONENTS],\n imports: [CommonModule, ThyDotModule, ThyIconModule, ...COMPONENTS]\n})\nexport class Th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AAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -46,10 +46,10 @@ class ThyCascaderOptionComponent {
|
|
|
46
46
|
toggleOption(value) {
|
|
47
47
|
this.toggleSelectChange.emit(value);
|
|
48
48
|
}
|
|
49
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
50
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
50
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: ThyCascaderOptionComponent, isStandalone: true, selector: "[thy-cascader-option]", inputs: { option: "option", multiple: ["multiple", "multiple", coerceBooleanProperty], isOnlySelectLeaf: ["isOnlySelectLeaf", "isOnlySelectLeaf", coerceBooleanProperty], optionRender: "optionRender", active: ["active", "active", coerceBooleanProperty], halfSelected: ["halfSelected", "halfSelected", coerceBooleanProperty], selected: ["selected", "selected", coerceBooleanProperty], labelProperty: "labelProperty" }, outputs: { toggleSelectChange: "toggleSelectChange" }, host: { properties: { "class": "this.class", "class.thy-cascader-menu-item": "this.item", "class.thy-cascader-menu-item-active": "this.active", "class.thy-cascader-menu-item-disabled": "this.disabled", "class.thy-cascader-menu-item-expand": "this.expand" } }, ngImport: i0, template: "@if (!option.readonly) {\n <div thyStopPropagation>\n @if (multiple) {\n <label class=\"mr-2\" thyCheckbox [disabled]=\"option.disabled\" [name]=\"option.value || option._id\"\n [thyIndeterminate]=\"halfSelected\" [(ngModel)]=\"selected\" (ngModelChange)=\"toggleOption($event)\"></label>\n }\n @if (!multiple && !isOnlySelectLeaf) {\n <label class=\"mr-2\" thyRadio [disabled]=\"option.disabled\"\n [name]=\"option.value || option._id\" [(ngModel)]=\"selected\" (ngModelChange)=\"toggleOption($event)\"></label>\n }\n </div>\n}\n\n\n@if (!optionRender) {\n <span thyFlexibleText [thyTooltipContent]=\"option[labelProperty] || ''\"> {{ option[labelProperty] || '' }}</span>\n} @else {\n <ng-template [ngTemplateOutlet]=\"optionRender\" [ngTemplateOutletContext]=\"{ option }\"></ng-template>\n}\n\n@if (!option.isLeaf || (option.children && option.children.length) || option.loading) {\n <span\n class=\"wtf wtf-angle-right thy-cascader-menu-item-expand-icon\">\n </span>\n}\n", dependencies: [{ kind: "component", type: ThyFlexibleText, selector: "thy-flexible-text,[thyFlexibleText]", inputs: ["thyTooltipTrigger", "thyContainerClass", "thyTooltipContent", "thyTooltipPlacement", "thyTooltipOffset"], exportAs: ["thyFlexibleText"] }, { kind: "component", type: ThyCheckbox, selector: "thy-checkbox,[thy-checkbox],[thyCheckbox]", inputs: ["thyIndeterminate"] }, { kind: "component", type: ThyRadio, selector: "[thy-radio],[thyRadio]", inputs: ["thyValue"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: ThyStopPropagationDirective, selector: "[thyStopPropagation]", inputs: ["thyStopPropagation"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
51
51
|
}
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderOptionComponent, decorators: [{
|
|
53
53
|
type: Component,
|
|
54
54
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, selector: '[thy-cascader-option]', imports: [ThyFlexibleText, ThyCheckbox, ThyRadio, FormsModule, ThyStopPropagationDirective, NgTemplateOutlet], template: "@if (!option.readonly) {\n <div thyStopPropagation>\n @if (multiple) {\n <label class=\"mr-2\" thyCheckbox [disabled]=\"option.disabled\" [name]=\"option.value || option._id\"\n [thyIndeterminate]=\"halfSelected\" [(ngModel)]=\"selected\" (ngModelChange)=\"toggleOption($event)\"></label>\n }\n @if (!multiple && !isOnlySelectLeaf) {\n <label class=\"mr-2\" thyRadio [disabled]=\"option.disabled\"\n [name]=\"option.value || option._id\" [(ngModel)]=\"selected\" (ngModelChange)=\"toggleOption($event)\"></label>\n }\n </div>\n}\n\n\n@if (!optionRender) {\n <span thyFlexibleText [thyTooltipContent]=\"option[labelProperty] || ''\"> {{ option[labelProperty] || '' }}</span>\n} @else {\n <ng-template [ngTemplateOutlet]=\"optionRender\" [ngTemplateOutletContext]=\"{ option }\"></ng-template>\n}\n\n@if (!option.isLeaf || (option.children && option.children.length) || option.loading) {\n <span\n class=\"wtf wtf-angle-right thy-cascader-menu-item-expand-icon\">\n </span>\n}\n" }]
|
|
55
55
|
}], ctorParameters: () => [], propDecorators: { option: [{
|
|
@@ -120,10 +120,10 @@ class ThyCascaderSearchOptionComponent {
|
|
|
120
120
|
toggleOption(value) {
|
|
121
121
|
this.toggleSelectChange.emit(this.option);
|
|
122
122
|
}
|
|
123
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
124
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
123
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderSearchOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
124
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: ThyCascaderSearchOptionComponent, isStandalone: true, selector: "[thy-cascader-search-option]", inputs: { option: "option", multiple: ["multiple", "multiple", coerceBooleanProperty], isOnlySelectLeaf: ["isOnlySelectLeaf", "isOnlySelectLeaf", coerceBooleanProperty], active: ["active", "active", coerceBooleanProperty], optionRender: "optionRender" }, outputs: { toggleSelectChange: "toggleSelectChange" }, host: { listeners: { "click": "toggleClick($event)" }, properties: { "class.multiple": "this.multiple", "class": "this.className", "class.active": "this.active" } }, ngImport: i0, template: "@if (multiple) {\n <label\n class=\"mr-1\"\n thyCheckbox\n [disabled]=\"option.thyRowValue[option.thyRowValue.length - 1].disabled\"\n [ngModel]=\"active\"\n (click)=\"clickCheckbox($event)\"\n (ngModelChange)=\"toggleOption($event)\"\n [thyLabelText]=\"''\"></label>\n}\n\n<thy-breadcrumb thySeparator=\"slash\">\n @for (label of option.labelList; track $index; let i = $index) {\n <thy-breadcrumb-item [ngClass]=\"{ 'text-muted': !(option.thyRowValue[i].isLeaf && isOnlySelectLeaf) }\">\n @if (!optionRender) {\n <span class=\"option-label-item\" thyFlexibleText [thyTooltipContent]=\"label\">{{ label }}</span>\n } @else {\n <ng-template [ngTemplateOutlet]=\"optionRender\" [ngTemplateOutletContext]=\"{ option: option.thyRowValue[i] }\"> </ng-template>\n }\n </thy-breadcrumb-item>\n }\n</thy-breadcrumb>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ThyFlexibleText, selector: "thy-flexible-text,[thyFlexibleText]", inputs: ["thyTooltipTrigger", "thyContainerClass", "thyTooltipContent", "thyTooltipPlacement", "thyTooltipOffset"], exportAs: ["thyFlexibleText"] }, { kind: "component", type: ThyCheckbox, selector: "thy-checkbox,[thy-checkbox],[thyCheckbox]", inputs: ["thyIndeterminate"] }, { kind: "component", type: ThyBreadcrumb, selector: "thy-breadcrumb", inputs: ["thyIcon", "thySeparator", "thyItems", "thyMaxCount", "thyExpandable"], exportAs: ["ThyBreadcrumb"] }, { kind: "component", type: ThyBreadcrumbItem, selector: "thy-breadcrumb-item,[thyBreadcrumbItem]", exportAs: ["ThyBreadcrumbItem"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
125
125
|
}
|
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderSearchOptionComponent, decorators: [{
|
|
127
127
|
type: Component,
|
|
128
128
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, selector: '[thy-cascader-search-option]', imports: [NgClass, ThyFlexibleText, ThyCheckbox, ThyBreadcrumb, ThyBreadcrumbItem, FormsModule, NgTemplateOutlet], template: "@if (multiple) {\n <label\n class=\"mr-1\"\n thyCheckbox\n [disabled]=\"option.thyRowValue[option.thyRowValue.length - 1].disabled\"\n [ngModel]=\"active\"\n (click)=\"clickCheckbox($event)\"\n (ngModelChange)=\"toggleOption($event)\"\n [thyLabelText]=\"''\"></label>\n}\n\n<thy-breadcrumb thySeparator=\"slash\">\n @for (label of option.labelList; track $index; let i = $index) {\n <thy-breadcrumb-item [ngClass]=\"{ 'text-muted': !(option.thyRowValue[i].isLeaf && isOnlySelectLeaf) }\">\n @if (!optionRender) {\n <span class=\"option-label-item\" thyFlexibleText [thyTooltipContent]=\"label\">{{ label }}</span>\n } @else {\n <ng-template [ngTemplateOutlet]=\"optionRender\" [ngTemplateOutletContext]=\"{ option: option.thyRowValue[i] }\"> </ng-template>\n }\n </thy-breadcrumb-item>\n }\n</thy-breadcrumb>\n" }]
|
|
129
129
|
}], ctorParameters: () => [], propDecorators: { option: [{
|
|
@@ -700,10 +700,10 @@ class ThyCascaderService {
|
|
|
700
700
|
}
|
|
701
701
|
return array1.every((element, index) => element === array2[index]);
|
|
702
702
|
}
|
|
703
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
704
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
703
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
704
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderService }); }
|
|
705
705
|
}
|
|
706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderService, decorators: [{
|
|
707
707
|
type: Injectable
|
|
708
708
|
}] });
|
|
709
709
|
|
|
@@ -1316,8 +1316,8 @@ class ThyCascader extends TabIndexDisabledControlValueAccessorMixin {
|
|
|
1316
1316
|
this.destroy$.next();
|
|
1317
1317
|
this.destroy$.complete();
|
|
1318
1318
|
}
|
|
1319
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1320
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
1319
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1320
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: ThyCascader, isStandalone: true, selector: "thy-cascader,[thy-cascader]", inputs: { thyValueProperty: "thyValueProperty", thyLabelProperty: "thyLabelProperty", thyPlaceholder: "thyPlaceholder", thySize: "thySize", thyOptions: "thyOptions", thyCustomOptions: "thyCustomOptions", thyChangeOn: "thyChangeOn", thyChangeOnSelect: ["thyChangeOnSelect", "thyChangeOnSelect", coerceBooleanProperty], thyShowInput: ["thyShowInput", "thyShowInput", coerceBooleanProperty], thyOptionRender: "thyOptionRender", thyLabelRender: "thyLabelRender", thyLoadData: "thyLoadData", thyTriggerAction: "thyTriggerAction", thyExpandTriggerAction: "thyExpandTriggerAction", thyMenuStyle: "thyMenuStyle", thySearchListStyle: "thySearchListStyle", thyMenuClassName: "thyMenuClassName", thyColumnClassName: "thyColumnClassName", thyDisabled: ["thyDisabled", "thyDisabled", coerceBooleanProperty], thyEmptyStateText: "thyEmptyStateText", thyMultiple: ["thyMultiple", "thyMultiple", coerceBooleanProperty], thyMaxTagCount: ["thyMaxTagCount", "thyMaxTagCount", numberAttribute], thyIsOnlySelectLeaf: ["thyIsOnlySelectLeaf", "thyIsOnlySelectLeaf", coerceBooleanProperty], thyAutoExpand: ["thyAutoExpand", "thyAutoExpand", coerceBooleanProperty], thyShowSearch: ["thyShowSearch", "thyShowSearch", coerceBooleanProperty], thyPreset: "thyPreset", thyHasBackdrop: ["thyHasBackdrop", "thyHasBackdrop", coerceBooleanProperty] }, outputs: { thyChange: "thyChange", thySelectionChange: "thySelectionChange", thySelect: "thySelect", thyDeselect: "thyDeselect", thyClear: "thyClear", thyExpandStatusChange: "thyExpandStatusChange" }, host: { listeners: { "focus": "onFocus($event)", "blur": "onBlur($event)", "click": "toggleClick($event)", "mouseenter": "toggleMouseEnter($event)", "mouseleave": "toggleMouseLeave($event)" }, properties: { "attr.tabindex": "tabIndex" } }, providers: [
|
|
1321
1321
|
{
|
|
1322
1322
|
provide: NG_VALUE_ACCESSOR,
|
|
1323
1323
|
useExisting: forwardRef(() => ThyCascader),
|
|
@@ -1326,7 +1326,7 @@ class ThyCascader extends TabIndexDisabledControlValueAccessorMixin {
|
|
|
1326
1326
|
ThyCascaderService
|
|
1327
1327
|
], viewQueries: [{ propertyName: "cdkConnectedOverlay", first: true, predicate: CdkConnectedOverlay, descendants: true, static: true }, { propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, read: ElementRef, static: true }, { propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "menu", first: true, predicate: ["menu"], descendants: true }, { propertyName: "cascaderOptions", predicate: ["cascaderOptions"], descendants: true, read: ElementRef }, { propertyName: "cascaderOptionContainers", predicate: ["cascaderOptionContainers"], descendants: true, read: ElementRef }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div cdkOverlayOrigin #origin=\"cdkOverlayOrigin\" #trigger>\n @if (thyShowInput) {\n <div\n thySelectControl\n [thyShowSearch]=\"thyShowSearch\"\n [thySize]=\"thySize\"\n [thyAllowClear]=\"true\"\n [thySelectedOptions]=\"selected\"\n [thyMaxTagCount]=\"thyMaxTagCount\"\n (thyOnRemove)=\"removeSelectedItem($event)\"\n (thyOnClear)=\"clearSelection($event)\"\n (thyOnBlur)=\"onBlur($event)\"\n (thyOnSearch)=\"searchFilter($event)\"\n [thyDisabled]=\"disabled\"\n [thyIsMultiple]=\"thyMultiple\"\n [thyPanelOpened]=\"menuVisible\"\n [thyPlaceholder]=\"thyPlaceholder\"\n [customDisplayTemplate]=\"customDisplayTemplate\"\n [thyPreset]=\"thyPreset\">\n <ng-template #customDisplayTemplate let-value>\n @if (!isLabelRenderTemplate) {\n <span [ngClass]=\"labelCls\">{{ value.labelText }}</span>\n } @else {\n <span [ngClass]=\"labelCls\">\n <ng-template [ngTemplateOutlet]=\"thyLabelRender\" [ngTemplateOutletContext]=\"value.labelRenderContext\"></ng-template>\n </span>\n }\n </ng-template>\n </div>\n }\n</div>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayHasBackdrop]=\"thyHasBackdrop\"\n cdkConnectedOverlayBackdropClass=\"thy-cascader-backdrop\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"menuMinWidth\"\n cdkConnectedOverlayTransformOriginOn=\".thy-cascader-menus\"\n (backdropClick)=\"closeMenu()\"\n (detach)=\"closeMenu()\"\n (attach)=\"attached()\"\n (positionChange)=\"positionChange($event)\"\n [cdkConnectedOverlayOpen]=\"menuVisible\">\n <div\n [attr.tabindex]=\"-1\"\n #menu\n [ngClass]=\"menuCls\"\n [ngStyle]=\"thyMenuStyle\"\n (mouseleave)=\"toggleMouseLeave($event)\"\n [@scaleYMotion]=\"'enter'\">\n @if (!isShowSearchPanel) {\n @if (columns.length > 0) {\n @for (options of columns; track $index; let i = $index; let isFirst = $first) {\n <ul #cascaderOptionContainers [ngClass]=\"menuColumnCls\">\n @if (thyCustomOptions && thyCustomOptions.length > 0 && isFirst) {\n @for (customOpt of thyCustomOptions; track trackByFn($index, customOpt)) {\n <li\n #cascaderOptions\n thy-cascader-option\n [option]=\"customOpt\"\n [multiple]=\"thyMultiple\"\n [isOnlySelectLeaf]=\"thyIsOnlySelectLeaf\"\n [labelProperty]=\"thyLabelProperty\"\n [active]=\"isActivatedOption(customOpt, 0)\"\n [halfSelected]=\"isHalfSelectedOption(customOpt, 0)\"\n [selected]=\"isSelectedOption(customOpt, 0)\"\n (toggleSelectChange)=\"clickCustomOption(customOpt, 0, $event)\"\n (click)=\"clickCustomOption(customOpt, 0, $event)\"\n (mouseover)=\"mouseoverOption(customOpt, 0, $event)\"></li>\n }\n <thy-divider class=\"my-1 mx-4\"></thy-divider>\n }\n @for (option of options; track trackByFn($index, option)) {\n <li\n #cascaderOptions\n thy-cascader-option\n [option]=\"option\"\n [multiple]=\"thyMultiple\"\n [isOnlySelectLeaf]=\"thyIsOnlySelectLeaf\"\n [labelProperty]=\"thyLabelProperty\"\n [active]=\"isActivatedOption(option, i)\"\n [halfSelected]=\"isHalfSelectedOption(option, i)\"\n [selected]=\"isSelectedOption(option, i)\"\n [optionRender]=\"thyOptionRender\"\n (toggleSelectChange)=\"clickOption(option, i, $event)\"\n (click)=\"clickOption(option, i, $event)\"\n (mouseover)=\"mouseoverOption(option, i, $event)\"></li>\n }\n </ul>\n }\n } @else {\n <div class=\"thy-cascader-empty-container\" [ngStyle]=\"{ 'width.px': triggerRect?.width }\">\n <thy-empty class=\"thy-select-empty-content\" thySize=\"sm\" [thyMessage]=\"emptyStateText\" [thyIconName]=\"emptyIcon()\"></thy-empty>\n </div>\n }\n }\n @if (isShowSearchPanel) {\n @if (searchResultList.length) {\n <ul class=\"thy-cascader-search-list py-3\" [ngStyle]=\"thySearchListStyle\">\n @for (item of searchResultList; track $index) {\n <li\n thy-cascader-search-option\n [multiple]=\"thyMultiple\"\n [isOnlySelectLeaf]=\"thyIsOnlySelectLeaf\"\n [option]=\"item\"\n [active]=\"item.selected\"\n [optionRender]=\"thyOptionRender\"\n (toggleSelectChange)=\"selectSearchResult($event)\"></li>\n }\n </ul>\n } @else {\n <div class=\"thy-cascader-empty-container\" [ngStyle]=\"{ 'width.px': triggerRect?.width }\">\n <thy-empty class=\"thy-select-empty-content\" thySize=\"sm\" [thyMessage]=\"emptyStateText\" [thyIconName]=\"emptyIcon()\"></thy-empty>\n </div>\n }\n }\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: ThySelectControl, selector: "thy-select-control,[thySelectControl]", inputs: ["thyPanelOpened", "thyIsMultiple", "thyShowSearch", "thySelectedOptions", "thyDisabled", "customDisplayTemplate", "thyAllowClear", "thyPlaceholder", "thySize", "thyMaxTagCount", "thyBorderless", "thyPreset"], outputs: ["thyOnSearch", "thyOnRemove", "thyOnClear", "thyOnBlur"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ThyCascaderOptionComponent, selector: "[thy-cascader-option]", inputs: ["option", "multiple", "isOnlySelectLeaf", "optionRender", "active", "halfSelected", "selected", "labelProperty"], outputs: ["toggleSelectChange"] }, { kind: "component", type: ThyCascaderSearchOptionComponent, selector: "[thy-cascader-search-option]", inputs: ["option", "multiple", "isOnlySelectLeaf", "active", "optionRender"], outputs: ["toggleSelectChange"] }, { kind: "component", type: ThyEmpty, selector: "thy-empty", inputs: ["thyMessage", "thyTranslationKey", "thyTranslationValues", "thyEntityName", "thyEntityNameTranslateKey", "thyIconName", "thySize", "thyMarginTop", "thyTopAuto", "thyContainer", "thyImageUrl", "thyImageLoading", "thyImageFetchPriority", "thyDescription"] }, { kind: "component", type: ThyDivider, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }], animations: [scaleYMotion] }); }
|
|
1328
1328
|
}
|
|
1329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascader, decorators: [{
|
|
1330
1330
|
type: Component,
|
|
1331
1331
|
args: [{ selector: 'thy-cascader,[thy-cascader]', providers: [
|
|
1332
1332
|
{
|
|
@@ -1456,8 +1456,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
|
1456
1456
|
}] } });
|
|
1457
1457
|
|
|
1458
1458
|
class ThyCascaderModule {
|
|
1459
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1460
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
1459
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1460
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderModule, imports: [CommonModule,
|
|
1461
1461
|
FormsModule,
|
|
1462
1462
|
OverlayModule,
|
|
1463
1463
|
ThyInputModule,
|
|
@@ -1469,7 +1469,7 @@ class ThyCascaderModule {
|
|
|
1469
1469
|
ThyCascader,
|
|
1470
1470
|
ThyCascaderOptionComponent,
|
|
1471
1471
|
ThyCascaderSearchOptionComponent], exports: [ThyCascader] }); }
|
|
1472
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
1472
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderModule, imports: [CommonModule,
|
|
1473
1473
|
FormsModule,
|
|
1474
1474
|
OverlayModule,
|
|
1475
1475
|
ThyInputModule,
|
|
@@ -1482,7 +1482,7 @@ class ThyCascaderModule {
|
|
|
1482
1482
|
ThyCascaderOptionComponent,
|
|
1483
1483
|
ThyCascaderSearchOptionComponent] }); }
|
|
1484
1484
|
}
|
|
1485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCascaderModule, decorators: [{
|
|
1486
1486
|
type: NgModule,
|
|
1487
1487
|
args: [{
|
|
1488
1488
|
imports: [
|
|
@@ -23,8 +23,8 @@ class ThyCheckbox extends ThyFormCheckBaseComponent {
|
|
|
23
23
|
set thyIndeterminate(value) {
|
|
24
24
|
this.isIndeterminate = value;
|
|
25
25
|
}
|
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: ThyCheckbox, isStandalone: true, selector: "thy-checkbox,[thy-checkbox],[thyCheckbox]", inputs: { thyIndeterminate: ["thyIndeterminate", "thyIndeterminate", coerceBooleanProperty] }, host: { properties: { "attr.tabindex": "-1", "class.disabled": "_disabled" }, classAttribute: "thy-checkbox" }, providers: [
|
|
28
28
|
{
|
|
29
29
|
provide: NG_VALUE_ACCESSOR,
|
|
30
30
|
useExisting: forwardRef(() => ThyCheckbox),
|
|
@@ -32,7 +32,7 @@ class ThyCheckbox extends ThyFormCheckBaseComponent {
|
|
|
32
32
|
}
|
|
33
33
|
], usesInheritance: true, ngImport: i0, template: "<input\n class=\"form-check-input\"\n [ngClass]=\"{ 'form-check-indeterminate': isIndeterminate, 'form-check-no-label-text': !_labelText }\"\n [checked]=\"_innerValue\"\n (change)=\"change()\"\n type=\"checkbox\"\n [attr.tabindex]=\"tabIndex\"\n [disabled]=\"_disabled\" />\n@if (_labelText) {\n <span class=\"form-check-label\">{{ _labelText }}</span>\n}\n<ng-content></ng-content>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
34
34
|
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCheckbox, decorators: [{
|
|
36
36
|
type: Component,
|
|
37
37
|
args: [{ selector: 'thy-checkbox,[thy-checkbox],[thyCheckbox]', providers: [
|
|
38
38
|
{
|
|
@@ -51,11 +51,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImpor
|
|
|
51
51
|
}] } });
|
|
52
52
|
|
|
53
53
|
class ThyCheckboxModule {
|
|
54
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
55
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
56
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
54
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
55
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.6", ngImport: i0, type: ThyCheckboxModule, imports: [CommonModule, FormsModule, ThyCheckbox], exports: [ThyCheckbox] }); }
|
|
56
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCheckboxModule, imports: [CommonModule, FormsModule] }); }
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ThyCheckboxModule, decorators: [{
|
|
59
59
|
type: NgModule,
|
|
60
60
|
args: [{
|
|
61
61
|
imports: [CommonModule, FormsModule, ThyCheckbox],
|