ngx-tethys 19.0.13 → 19.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -2
- package/action/action.component.d.ts +12 -20
- package/action/actions.component.d.ts +5 -7
- package/affix/affix.component.d.ts +7 -10
- package/alert/alert.component.d.ts +1 -1
- package/anchor/anchor-link.component.d.ts +8 -8
- package/anchor/anchor.component.d.ts +15 -21
- package/arrow-switcher/arrow-switcher.component.d.ts +15 -22
- package/autocomplete/autocomplete.component.d.ts +10 -17
- package/autocomplete/autocomplete.trigger.directive.d.ts +10 -18
- package/avatar/avatar-list/avatar-list.component.d.ts +8 -14
- package/avatar/avatar.component.d.ts +25 -39
- package/back-top/back-top.component.d.ts +9 -12
- package/badge/badge.component.d.ts +19 -59
- package/breadcrumb/breadcrumb.component.d.ts +15 -20
- package/button/button-icon.component.d.ts +3 -2
- package/button/button.component.d.ts +3 -2
- package/calendar/calendar-header.component.d.ts +9 -8
- package/calendar/calendar.component.d.ts +16 -16
- package/card/card.component.d.ts +5 -11
- package/card/content.component.d.ts +3 -8
- package/card/header.component.d.ts +7 -8
- package/carousel/carousel.component.d.ts +22 -27
- package/cascader/cascader-li.component.d.ts +13 -21
- package/cascader/cascader-search-option.component.d.ts +8 -16
- package/cascader/cascader.component.d.ts +58 -80
- package/checkbox/checkbox.component.d.ts +2 -5
- package/collapse/collapse-item.component.d.ts +12 -19
- package/collapse/collapse.component.d.ts +6 -12
- package/collapse/collapse.token.d.ts +3 -3
- package/color-picker/color-picker-custom-panel.component.d.ts +5 -5
- package/color-picker/color-picker-panel.component.d.ts +7 -11
- package/color-picker/color-picker.component.d.ts +19 -35
- package/color-picker/parts/alpha/alpha.component.d.ts +8 -8
- package/color-picker/parts/hue/hue.component.d.ts +6 -6
- package/color-picker/parts/indicator/indicator.component.d.ts +4 -3
- package/color-picker/parts/inputs/inputs.component.d.ts +9 -9
- package/color-picker/parts/saturation/saturation.component.d.ts +9 -9
- package/comment/comment.component.d.ts +4 -5
- package/copy/copy.directive.d.ts +8 -9
- package/date-picker/abstract-picker.component.d.ts +8 -7
- package/date-picker/lib/calendar/calendar-footer.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-range/date-range.component.d.ts +2 -2
- package/dialog/body/dialog-body.component.d.ts +2 -6
- package/dialog/confirm/confirm.component.d.ts +2 -2
- package/dialog/footer/dialog-footer.component.d.ts +6 -9
- package/dialog/header/dialog-header.component.d.ts +9 -11
- package/divider/divider.component.d.ts +12 -16
- package/dot/dot.component.d.ts +5 -13
- package/drag-drop/drag-handle.directive.d.ts +2 -1
- package/drag-drop/drag.directive.d.ts +2 -1
- package/drag-drop/drop-container.directive.d.ts +2 -1
- package/dropdown/dropdown-menu-item.directive.d.ts +3 -2
- package/dropdown/dropdown-menu.component.d.ts +2 -1
- package/dropdown/dropdown.directive.d.ts +2 -1
- package/empty/empty.component.d.ts +21 -27
- package/fesm2022/ngx-tethys-action.mjs +54 -91
- package/fesm2022/ngx-tethys-action.mjs.map +1 -1
- package/fesm2022/ngx-tethys-affix.mjs +29 -26
- package/fesm2022/ngx-tethys-affix.mjs.map +1 -1
- package/fesm2022/ngx-tethys-anchor.mjs +91 -118
- package/fesm2022/ngx-tethys-anchor.mjs.map +1 -1
- package/fesm2022/ngx-tethys-arrow-switcher.mjs +51 -77
- package/fesm2022/ngx-tethys-arrow-switcher.mjs.map +1 -1
- package/fesm2022/ngx-tethys-autocomplete.mjs +69 -103
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-avatar.mjs +117 -162
- package/fesm2022/ngx-tethys-avatar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-back-top.mjs +33 -46
- package/fesm2022/ngx-tethys-back-top.mjs.map +1 -1
- package/fesm2022/ngx-tethys-badge.mjs +104 -208
- package/fesm2022/ngx-tethys-badge.mjs.map +1 -1
- package/fesm2022/ngx-tethys-breadcrumb.mjs +66 -70
- package/fesm2022/ngx-tethys-breadcrumb.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +85 -87
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-card.mjs +72 -77
- package/fesm2022/ngx-tethys-card.mjs.map +1 -1
- package/fesm2022/ngx-tethys-carousel.mjs +82 -99
- package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +313 -468
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs +10 -17
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-collapse.mjs +66 -71
- package/fesm2022/ngx-tethys-collapse.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +187 -246
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-comment.mjs +16 -10
- package/fesm2022/ngx-tethys-comment.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +25 -28
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dialog.mjs +81 -82
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-divider.mjs +49 -58
- package/fesm2022/ngx-tethys-divider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dot.mjs +45 -68
- package/fesm2022/ngx-tethys-dot.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +107 -95
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +161 -200
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-fullscreen.mjs +21 -23
- package/fesm2022/ngx-tethys-fullscreen.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +160 -152
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +25 -25
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input-number.mjs +101 -114
- package/fesm2022/ngx-tethys-input-number.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input.mjs +268 -271
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +1 -1
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-loading.mjs +17 -35
- package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
- package/fesm2022/ngx-tethys-mention.mjs +52 -74
- package/fesm2022/ngx-tethys-mention.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +106 -179
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-nav.mjs +169 -201
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +230 -294
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-popover.mjs +67 -70
- package/fesm2022/ngx-tethys-popover.mjs.map +1 -1
- package/fesm2022/ngx-tethys-progress.mjs +196 -244
- package/fesm2022/ngx-tethys-progress.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +102 -105
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +34 -38
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-result.mjs +46 -28
- package/fesm2022/ngx-tethys-result.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +339 -342
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-slider.mjs +75 -108
- package/fesm2022/ngx-tethys-slider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-space.mjs +26 -46
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-statistic.mjs +114 -151
- package/fesm2022/ngx-tethys-statistic.mjs.map +1 -1
- package/fesm2022/ngx-tethys-stepper.mjs +74 -107
- package/fesm2022/ngx-tethys-stepper.mjs.map +1 -1
- package/fesm2022/ngx-tethys-switch.mjs +80 -140
- package/fesm2022/ngx-tethys-switch.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +1 -1
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +69 -87
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +42 -64
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys-timeline.mjs +104 -129
- package/fesm2022/ngx-tethys-timeline.mjs.map +1 -1
- package/fesm2022/ngx-tethys-typography.mjs +36 -33
- package/fesm2022/ngx-tethys-typography.mjs.map +1 -1
- package/fesm2022/ngx-tethys-upload.mjs +91 -130
- package/fesm2022/ngx-tethys-upload.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-watermark.mjs +36 -40
- 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/form/form-group-error/form-group-error.component.d.ts +2 -3
- package/form/form-group-label.directive.d.ts +2 -1
- package/form/form-group.component.d.ts +17 -24
- package/form/form-submit.directive.d.ts +2 -2
- package/form/form.directive.d.ts +6 -8
- package/form/from-group-footer/form-group-footer.component.d.ts +2 -2
- package/form/validator/confirm-validator.directive.d.ts +2 -2
- package/form/validator/unique-validator.directive.d.ts +2 -2
- package/fullscreen/fullscreen.component.d.ts +7 -7
- package/grid/flex.d.ts +14 -19
- package/grid/thy-col.directive.d.ts +6 -9
- package/grid/thy-grid-item.component.d.ts +3 -4
- package/grid/thy-grid.component.d.ts +11 -12
- package/grid/thy-row.directive.d.ts +12 -12
- package/icon/icon.component.d.ts +3 -2
- package/image/image.directive.d.ts +3 -2
- package/input/input-count.component.d.ts +4 -5
- package/input/input-group.component.d.ts +20 -20
- package/input/input-search.component.d.ts +15 -20
- package/input/input.component.d.ts +20 -21
- package/input/input.directive.d.ts +4 -6
- package/input-number/input-number.component.d.ts +21 -29
- package/layout/header.component.d.ts +4 -9
- package/layout/sidebar-header.component.d.ts +2 -1
- package/layout/sidebar.component.d.ts +8 -7
- package/list/list.component.d.ts +2 -1
- package/list/selection/selection-list.d.ts +4 -3
- package/loading/loading.component.d.ts +4 -10
- package/mention/mention.directive.d.ts +6 -7
- package/mention/suggestions/suggestions.component.d.ts +8 -9
- package/menu/group/menu-group.component.d.ts +16 -33
- package/menu/item/action/menu-item-action.component.d.ts +7 -8
- package/menu/item/icon/menu-item-icon.component.d.ts +2 -2
- package/menu/item/menu-item.component.d.ts +4 -4
- package/menu/item/name/menu-item-name.component.d.ts +2 -3
- package/menu/menu.component.d.ts +3 -7
- package/nav/icon-nav/icon-nav-link.directive.d.ts +3 -7
- package/nav/icon-nav/icon-nav.component.d.ts +3 -8
- package/nav/nav-ink-bar.directive.d.ts +4 -6
- package/nav/nav-item.directive.d.ts +7 -10
- package/nav/nav.component.d.ts +20 -48
- package/package.json +1 -1
- package/pagination/pagination.component.d.ts +48 -109
- package/popover/header/popover-header.component.d.ts +7 -6
- package/popover/popover.directive.d.ts +11 -18
- package/progress/progress-circle.component.d.ts +32 -21
- package/progress/progress-strip.component.d.ts +10 -14
- package/progress/progress.component.d.ts +15 -23
- package/property/examples/single/single.component.scss +6 -0
- package/property/properties.component.d.ts +6 -13
- package/property/property-item.component.d.ts +21 -26
- package/property/styles/properties.scss +124 -52
- package/property-operation/property-operation.component.d.ts +6 -5
- package/radio/button/radio-button.component.d.ts +2 -2
- package/radio/group/radio-group.component.d.ts +8 -7
- package/radio/radio.component.d.ts +2 -2
- package/radio/radio.token.d.ts +2 -2
- package/rate/rate-item.component.d.ts +2 -1
- package/rate/rate.component.d.ts +4 -3
- package/resizable/resizable.directive.d.ts +4 -9
- package/resizable/resize-handle.component.d.ts +2 -1
- package/resizable/resize-handles.component.d.ts +2 -1
- package/result/result.component.d.ts +9 -10
- 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.component.d.ts +2 -1
- package/select/custom-select/custom-select.component.d.ts +11 -10
- package/select/native-select/native-select.component.d.ts +2 -1
- package/shared/base-form-check.component.d.ts +3 -2
- package/shared/directives/thy-autofocus.directive.d.ts +3 -2
- package/shared/directives/thy-scroll.directive.d.ts +2 -1
- package/shared/directives/thy-show.d.ts +2 -1
- package/shared/option/group/option-group.component.d.ts +2 -1
- package/shared/option/list-option/list-option.component.d.ts +2 -7
- package/shared/option/option.component.d.ts +2 -1
- package/shared/select/select-control/select-control.component.d.ts +7 -6
- package/skeleton/skeleton-circle.component.d.ts +16 -19
- package/skeleton/skeleton-rectangle.component.d.ts +20 -23
- package/skeleton/skeleton.component.d.ts +5 -6
- package/skeleton/stylized/bullet-list.component.d.ts +11 -13
- package/skeleton/stylized/list.component.d.ts +10 -12
- package/skeleton/stylized/paragraph.component.d.ts +12 -14
- package/slide/slide-body/slide-body-section.component.d.ts +2 -1
- package/slider/slider.component.d.ts +17 -24
- package/space/space.component.d.ts +8 -8
- package/statistic/statistic.component.d.ts +35 -40
- package/stepper/step-header.component.d.ts +6 -10
- package/stepper/step.component.d.ts +6 -6
- package/stepper/stepper.component.d.ts +15 -20
- package/switch/switch.component.d.ts +24 -35
- package/table/table-column.component.d.ts +6 -5
- package/table/table-skeleton.component.d.ts +3 -10
- package/table/table.component.d.ts +11 -10
- package/tabs/tab-content.component.d.ts +4 -4
- package/tabs/tab.component.d.ts +4 -5
- package/tabs/tabs.component.d.ts +13 -15
- package/tag/tag.component.d.ts +10 -16
- package/time-picker/time-picker-panel.component.d.ts +3 -2
- package/time-picker/time-picker.component.d.ts +6 -5
- package/timeline/timeline-item.component.d.ts +9 -13
- package/timeline/timeline.component.d.ts +13 -17
- package/tooltip/tooltip.directive.d.ts +3 -2
- package/tree/tree-node.component.d.ts +6 -15
- package/tree/tree.component.d.ts +8 -7
- package/tree-select/tree-select.component.d.ts +8 -7
- package/typography/bg-color.directive.d.ts +3 -3
- package/typography/text/text.component.d.ts +2 -2
- package/typography/text-color.directive.d.ts +3 -3
- package/upload/file-drop.directive.d.ts +9 -11
- package/upload/file-select-base.d.ts +6 -10
- package/upload/file-select.component.d.ts +10 -20
- package/util/helpers/helpers.d.ts +2 -1
- package/vote/vote.component.d.ts +4 -3
- package/watermark/watermark.directive.d.ts +7 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { input, forwardRef, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { NgClass, CommonModule } from '@angular/common';
|
|
4
4
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
5
5
|
import { ThyFormCheckBaseComponent } from 'ngx-tethys/shared';
|
|
@@ -13,24 +13,20 @@ import { coerceBooleanProperty } from 'ngx-tethys/util';
|
|
|
13
13
|
class ThyCheckbox extends ThyFormCheckBaseComponent {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
set thyIndeterminate(value) {
|
|
24
|
-
this.isIndeterminate = value;
|
|
16
|
+
/**
|
|
17
|
+
* 设置 indeterminate 状态,只负责样式控制
|
|
18
|
+
* @description.en-us Set the indeterminate state, responsible only for style control
|
|
19
|
+
*/
|
|
20
|
+
this.thyIndeterminate = input(false, { transform: coerceBooleanProperty });
|
|
25
21
|
}
|
|
26
22
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThyCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThyCheckbox, isStandalone: true, selector: "thy-checkbox,[thy-checkbox],[thyCheckbox]", inputs: { thyIndeterminate:
|
|
23
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThyCheckbox, isStandalone: true, selector: "thy-checkbox,[thy-checkbox],[thyCheckbox]", inputs: { thyIndeterminate: { classPropertyName: "thyIndeterminate", publicName: "thyIndeterminate", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.tabindex": "-1", "class.disabled": "_disabled" }, classAttribute: "thy-checkbox" }, providers: [
|
|
28
24
|
{
|
|
29
25
|
provide: NG_VALUE_ACCESSOR,
|
|
30
26
|
useExisting: forwardRef(() => ThyCheckbox),
|
|
31
27
|
multi: true
|
|
32
28
|
}
|
|
33
|
-
], usesInheritance: true, ngImport: i0, template: "<input\n class=\"form-check-input\"\n [ngClass]=\"{ 'form-check-indeterminate':
|
|
29
|
+
], usesInheritance: true, ngImport: i0, template: "<input\n class=\"form-check-input\"\n [ngClass]=\"{ 'form-check-indeterminate': thyIndeterminate(), '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
30
|
}
|
|
35
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThyCheckbox, decorators: [{
|
|
36
32
|
type: Component,
|
|
@@ -44,11 +40,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
44
40
|
'[attr.tabindex]': '-1',
|
|
45
41
|
class: 'thy-checkbox',
|
|
46
42
|
'[class.disabled]': '_disabled'
|
|
47
|
-
}, imports: [NgClass], template: "<input\n class=\"form-check-input\"\n [ngClass]=\"{ 'form-check-indeterminate':
|
|
48
|
-
}]
|
|
49
|
-
type: Input,
|
|
50
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
51
|
-
}] } });
|
|
43
|
+
}, imports: [NgClass], template: "<input\n class=\"form-check-input\"\n [ngClass]=\"{ 'form-check-indeterminate': thyIndeterminate(), '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" }]
|
|
44
|
+
}] });
|
|
52
45
|
|
|
53
46
|
class ThyCheckboxModule {
|
|
54
47
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-tethys-checkbox.mjs","sources":["../../../src/checkbox/checkbox.component.ts","../../../src/checkbox/checkbox.component.html","../../../src/checkbox/module.ts","../../../src/checkbox/index.ts","../../../src/checkbox/ngx-tethys-checkbox.ts"],"sourcesContent":["import { Component, forwardRef,
|
|
1
|
+
{"version":3,"file":"ngx-tethys-checkbox.mjs","sources":["../../../src/checkbox/checkbox.component.ts","../../../src/checkbox/checkbox.component.html","../../../src/checkbox/module.ts","../../../src/checkbox/index.ts","../../../src/checkbox/ngx-tethys-checkbox.ts"],"sourcesContent":["import { Component, forwardRef, input } from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { ThyFormCheckBaseComponent } from 'ngx-tethys/shared';\nimport { NgClass } from '@angular/common';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\n/**\n * 多选框组件\n * @name thy-checkbox,[thy-checkbox],[thyCheckbox]\n * @order 10\n */\n@Component({\n selector: 'thy-checkbox,[thy-checkbox],[thyCheckbox]',\n templateUrl: './checkbox.component.html',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => ThyCheckbox),\n multi: true\n }\n ],\n host: {\n '[attr.tabindex]': '-1',\n class: 'thy-checkbox',\n '[class.disabled]': '_disabled'\n },\n imports: [NgClass]\n})\nexport class ThyCheckbox extends ThyFormCheckBaseComponent {\n /**\n * 设置 indeterminate 状态,只负责样式控制\n * @description.en-us Set the indeterminate state, responsible only for style control\n */\n readonly thyIndeterminate = input(false, { transform: coerceBooleanProperty });\n}\n","<input\n class=\"form-check-input\"\n [ngClass]=\"{ 'form-check-indeterminate': thyIndeterminate(), '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","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { ThyCheckbox } from './checkbox.component';\n\n@NgModule({\n imports: [CommonModule, FormsModule, ThyCheckbox],\n exports: [ThyCheckbox]\n})\nexport class ThyCheckboxModule {}\n","export * from './module';\nexport * from './checkbox.component';\n// export * from './checkbox-group.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;;;;AAIG;AAkBG,MAAO,WAAY,SAAQ,yBAAyB,CAAA;AAjB1D,IAAA,WAAA,GAAA;;AAkBI;;;AAGG;QACM,IAAgB,CAAA,gBAAA,GAAG,KAAK,CAAC,KAAK,EAA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ACV;qBACJ,EACK,IAAA,EAAA;AACF,wBAAA,iBAAiB,EAAE,IAAI;AACvB,wBAAA,KAAK,EAAE,cAAc;AACrB,wBAAA,kBAAkB,EAAE;qBACvB,EACQ,OAAA,EAAA,CAAC,OAAO,CAAC,EAAA,QAAA,EAAA,6YAAA,EAAA;;;MEjBT,iBAAiB,CAAA;8GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAjB,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,YAHhB,YAAY,EAAE,WAAW,EAAE,WAAW,aACtC,WAAW,CAAA,EAAA,CAAA,CAAA;+GAEZ,iBAAiB,EAAA,OAAA,EAAA,CAHhB,YAAY,EAAE,WAAW,CAAA,EAAA,CAAA,CAAA;;2FAG1B,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;oBACjD,OAAO,EAAE,CAAC,WAAW;AACxB,iBAAA;;;ACND;;ACFA;;AAEG;;;;"}
|
|
@@ -3,10 +3,10 @@ import { ThyInputModule } from 'ngx-tethys/input';
|
|
|
3
3
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
4
4
|
import { NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { InjectionToken, inject, ChangeDetectorRef,
|
|
6
|
+
import { InjectionToken, inject, ChangeDetectorRef, input, model, computed, TemplateRef, output, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
7
7
|
import { FormsModule } from '@angular/forms';
|
|
8
8
|
import { collapseMotion } from 'ngx-tethys/core';
|
|
9
|
-
import {
|
|
9
|
+
import { coerceBooleanProperty, isString } from 'ngx-tethys/util';
|
|
10
10
|
|
|
11
11
|
const THY_COLLAPSE_COMPONENT = new InjectionToken('THY_COLLAPSE_COMPONENT');
|
|
12
12
|
|
|
@@ -20,33 +20,49 @@ class ThyCollapseItem {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
this.cdr = inject(ChangeDetectorRef);
|
|
22
22
|
this.thyCollapseComponent = inject(THY_COLLAPSE_COMPONENT, { host: true });
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
/**
|
|
24
|
+
* 标题
|
|
25
|
+
*/
|
|
26
|
+
this.thyTitle = input();
|
|
25
27
|
/**
|
|
26
28
|
* 是否处于激活展开状态
|
|
27
29
|
*/
|
|
28
|
-
this.thyActive = false;
|
|
30
|
+
this.thyActive = model(false);
|
|
31
|
+
/**
|
|
32
|
+
* 是否禁用当前面板
|
|
33
|
+
*/
|
|
34
|
+
this.thyDisabled = input(false, { transform: coerceBooleanProperty });
|
|
35
|
+
/**
|
|
36
|
+
* 自定义面板头
|
|
37
|
+
*/
|
|
38
|
+
this.thyHeaderTemplate = input();
|
|
39
|
+
/**
|
|
40
|
+
* 自定义箭头(展开收起)图标,设置为 false 表示隐藏图标
|
|
41
|
+
*/
|
|
42
|
+
this.thyArrowIcon = model(DEFAULT_ARROW_ICON);
|
|
43
|
+
this.arrowIconTemplate = computed(() => {
|
|
44
|
+
const arrowIcon = this.thyArrowIcon();
|
|
45
|
+
return arrowIcon instanceof TemplateRef ? arrowIcon : null;
|
|
46
|
+
});
|
|
47
|
+
this.arrowIcon = computed(() => {
|
|
48
|
+
const arrowIcon = this.thyArrowIcon();
|
|
49
|
+
return isString(arrowIcon) ? arrowIcon : DEFAULT_ARROW_ICON;
|
|
50
|
+
});
|
|
51
|
+
this.showArrow = computed(() => {
|
|
52
|
+
const arrowIcon = this.thyArrowIcon();
|
|
53
|
+
if (!(arrowIcon instanceof TemplateRef) && !isString(arrowIcon)) {
|
|
54
|
+
return this.thyArrowIcon();
|
|
55
|
+
}
|
|
56
|
+
return true;
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* 额外附加模板
|
|
60
|
+
*/
|
|
61
|
+
this.thyExtra = input();
|
|
29
62
|
/**
|
|
30
63
|
* 展开收起事件
|
|
31
64
|
*/
|
|
32
|
-
this.thyActiveChange =
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* 自定义箭头(展开收起)图标,设置为 false 表示隐藏图标
|
|
36
|
-
* @type {string | TemplateRef<SafeAny> | false}
|
|
37
|
-
*/
|
|
38
|
-
set thyArrowIcon(value) {
|
|
39
|
-
if (value instanceof TemplateRef) {
|
|
40
|
-
this.arrowIconTemplate = value;
|
|
41
|
-
}
|
|
42
|
-
else if (isString(value)) {
|
|
43
|
-
this.arrowIcon = value;
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.showArrow = value;
|
|
47
|
-
this.arrowIconTemplate = null;
|
|
48
|
-
this.arrowIcon = DEFAULT_ARROW_ICON;
|
|
49
|
-
}
|
|
65
|
+
this.thyActiveChange = output();
|
|
50
66
|
}
|
|
51
67
|
ngOnInit() {
|
|
52
68
|
this.thyCollapseComponent.addPanel(this);
|
|
@@ -55,7 +71,7 @@ class ThyCollapseItem {
|
|
|
55
71
|
this.cdr.markForCheck();
|
|
56
72
|
}
|
|
57
73
|
activeChange(event) {
|
|
58
|
-
if (!this.thyDisabled) {
|
|
74
|
+
if (!this.thyDisabled()) {
|
|
59
75
|
this.thyCollapseComponent.click(this, event);
|
|
60
76
|
}
|
|
61
77
|
}
|
|
@@ -63,33 +79,17 @@ class ThyCollapseItem {
|
|
|
63
79
|
this.thyCollapseComponent.removePanel(this);
|
|
64
80
|
}
|
|
65
81
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThyCollapseItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
66
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThyCollapseItem, isStandalone: true, selector: "thy-collapse-panel, thy-collapse-item", inputs: { thyTitle: "thyTitle", thyActive:
|
|
82
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.8", type: ThyCollapseItem, isStandalone: true, selector: "thy-collapse-panel, thy-collapse-item", inputs: { thyTitle: { classPropertyName: "thyTitle", publicName: "thyTitle", isSignal: true, isRequired: false, transformFunction: null }, thyActive: { classPropertyName: "thyActive", publicName: "thyActive", isSignal: true, isRequired: false, transformFunction: null }, thyDisabled: { classPropertyName: "thyDisabled", publicName: "thyDisabled", isSignal: true, isRequired: false, transformFunction: null }, thyHeaderTemplate: { classPropertyName: "thyHeaderTemplate", publicName: "thyHeaderTemplate", isSignal: true, isRequired: false, transformFunction: null }, thyArrowIcon: { classPropertyName: "thyArrowIcon", publicName: "thyArrowIcon", isSignal: true, isRequired: false, transformFunction: null }, thyExtra: { classPropertyName: "thyExtra", publicName: "thyExtra", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { thyActive: "thyActiveChange", thyArrowIcon: "thyArrowIconChange", thyActiveChange: "thyActiveChange" }, host: { properties: { "class.thy-collapse-item": "true", "class.thy-collapse-no-arrow": "!showArrow()", "class.thy-collapse-item-active": "thyActive()", "class.thy-collapse-item-disabled": "thyDisabled()" } }, exportAs: ["ThyCollapseComponent"], ngImport: i0, template: "<div class=\"thy-collapse-header\" (click)=\"activeChange($event)\">\n @if (showArrow()) {\n @if (arrowIconTemplate()) {\n <ng-template [ngTemplateOutlet]=\"arrowIconTemplate()\"></ng-template>\n } @else {\n <thy-icon [thyIconName]=\"arrowIcon() || 'angle-right'\" class=\"thy-collapse-icon\" [thyIconRotate]=\"thyActive() ? -90 : 0\"></thy-icon>\n }\n }\n\n @if (thyHeaderTemplate()) {\n <ng-template [ngTemplateOutlet]=\"thyHeaderTemplate()\"></ng-template>\n } @else {\n <ng-container>\n <span class=\"d-flex thy-collapse-title\"> {{ thyTitle() }}</span></ng-container\n >\n }\n\n @if (thyExtra()) {\n <div class=\"thy-collapse-extra\">\n <ng-template [ngTemplateOutlet]=\"thyExtra()\"></ng-template>\n </div>\n }\n</div>\n<div class=\"thy-collapse-content\" [@collapseMotion]=\"thyActive() ? 'expanded' : 'hidden'\">\n <div class=\"thy-collapse-content-box\">\n <ng-content></ng-content>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ThyIcon, selector: "thy-icon, [thy-icon]", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }], animations: [collapseMotion], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
67
83
|
}
|
|
68
84
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThyCollapseItem, decorators: [{
|
|
69
85
|
type: Component,
|
|
70
86
|
args: [{ selector: 'thy-collapse-panel, thy-collapse-item', exportAs: 'ThyCollapseComponent', animations: [collapseMotion], host: {
|
|
71
87
|
'[class.thy-collapse-item]': 'true',
|
|
72
|
-
'[class.thy-collapse-no-arrow]': '!showArrow',
|
|
73
|
-
'[class.thy-collapse-item-active]': 'thyActive',
|
|
74
|
-
'[class.thy-collapse-item-disabled]': 'thyDisabled'
|
|
75
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, ThyIcon], template: "<div class=\"thy-collapse-header\" (click)=\"activeChange($event)\">\n @if (showArrow) {\n @if (arrowIconTemplate) {\n <ng-template [ngTemplateOutlet]=\"arrowIconTemplate\"></ng-template>\n } @else {\n <thy-icon [thyIconName]=\"arrowIcon || 'angle-right'\" class=\"thy-collapse-icon\" [thyIconRotate]=\"thyActive ? -90 : 0\"></thy-icon>\n }\n }\n\n @if (thyHeaderTemplate) {\n <ng-template [ngTemplateOutlet]=\"thyHeaderTemplate\"></ng-template>\n } @else {\n <ng-container>\n <span class=\"d-flex thy-collapse-title\"> {{ thyTitle }}</span></ng-container\n
|
|
76
|
-
}]
|
|
77
|
-
type: Input
|
|
78
|
-
}], thyActive: [{
|
|
79
|
-
type: Input,
|
|
80
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
81
|
-
}], thyDisabled: [{
|
|
82
|
-
type: Input,
|
|
83
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
84
|
-
}], thyHeaderTemplate: [{
|
|
85
|
-
type: Input
|
|
86
|
-
}], thyArrowIcon: [{
|
|
87
|
-
type: Input
|
|
88
|
-
}], thyExtra: [{
|
|
89
|
-
type: Input
|
|
90
|
-
}], thyActiveChange: [{
|
|
91
|
-
type: Output
|
|
92
|
-
}] } });
|
|
88
|
+
'[class.thy-collapse-no-arrow]': '!showArrow()',
|
|
89
|
+
'[class.thy-collapse-item-active]': 'thyActive()',
|
|
90
|
+
'[class.thy-collapse-item-disabled]': 'thyDisabled()'
|
|
91
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, ThyIcon], template: "<div class=\"thy-collapse-header\" (click)=\"activeChange($event)\">\n @if (showArrow()) {\n @if (arrowIconTemplate()) {\n <ng-template [ngTemplateOutlet]=\"arrowIconTemplate()\"></ng-template>\n } @else {\n <thy-icon [thyIconName]=\"arrowIcon() || 'angle-right'\" class=\"thy-collapse-icon\" [thyIconRotate]=\"thyActive() ? -90 : 0\"></thy-icon>\n }\n }\n\n @if (thyHeaderTemplate()) {\n <ng-template [ngTemplateOutlet]=\"thyHeaderTemplate()\"></ng-template>\n } @else {\n <ng-container>\n <span class=\"d-flex thy-collapse-title\"> {{ thyTitle() }}</span></ng-container\n >\n }\n\n @if (thyExtra()) {\n <div class=\"thy-collapse-extra\">\n <ng-template [ngTemplateOutlet]=\"thyExtra()\"></ng-template>\n </div>\n }\n</div>\n<div class=\"thy-collapse-content\" [@collapseMotion]=\"thyActive() ? 'expanded' : 'hidden'\">\n <div class=\"thy-collapse-content-box\">\n <ng-content></ng-content>\n </div>\n</div>\n" }]
|
|
92
|
+
}] });
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* 折叠面板组件
|
|
@@ -101,15 +101,17 @@ class ThyCollapse {
|
|
|
101
101
|
/**
|
|
102
102
|
* 折叠面板主题,支持 `divided` | `bordered` | `ghost`
|
|
103
103
|
*/
|
|
104
|
-
this.thyTheme = 'divided';
|
|
104
|
+
this.thyTheme = input('divided');
|
|
105
|
+
/**
|
|
106
|
+
* 是否为手风琴模式,手风琴模式下,只能展开一个面板
|
|
107
|
+
*/
|
|
108
|
+
this.thyAccordion = input(false, { transform: coerceBooleanProperty });
|
|
105
109
|
/**
|
|
106
|
-
*
|
|
107
|
-
* @type left | right
|
|
110
|
+
* 展开收起图标的位置,支持 `left` | `right`
|
|
108
111
|
*/
|
|
109
|
-
this.thyArrowIconPosition = 'left';
|
|
112
|
+
this.thyArrowIconPosition = input('left');
|
|
110
113
|
this.listOfCollapsePanelComponent = [];
|
|
111
114
|
}
|
|
112
|
-
ngOnInit() { }
|
|
113
115
|
addPanel(value) {
|
|
114
116
|
this.listOfCollapsePanelComponent.push(value);
|
|
115
117
|
}
|
|
@@ -117,22 +119,22 @@ class ThyCollapse {
|
|
|
117
119
|
this.listOfCollapsePanelComponent.splice(this.listOfCollapsePanelComponent.indexOf(value), 1);
|
|
118
120
|
}
|
|
119
121
|
click(collapseItem, event) {
|
|
120
|
-
if (this.thyAccordion && !collapseItem.thyActive) {
|
|
122
|
+
if (this.thyAccordion() && !collapseItem.thyActive()) {
|
|
121
123
|
this.listOfCollapsePanelComponent
|
|
122
124
|
.filter(item => item !== collapseItem)
|
|
123
125
|
.forEach(item => {
|
|
124
|
-
if (item.thyActive) {
|
|
125
|
-
item.thyActive
|
|
126
|
-
item.thyActiveChange.emit({ active: collapseItem.thyActive, event });
|
|
126
|
+
if (item.thyActive()) {
|
|
127
|
+
item.thyActive.set(false);
|
|
128
|
+
item.thyActiveChange.emit({ active: collapseItem.thyActive(), event });
|
|
127
129
|
item.markForCheck();
|
|
128
130
|
}
|
|
129
131
|
});
|
|
130
132
|
}
|
|
131
|
-
collapseItem.thyActive
|
|
132
|
-
collapseItem.thyActiveChange.emit({ active: collapseItem.thyActive, event });
|
|
133
|
+
collapseItem.thyActive.set(!collapseItem.thyActive());
|
|
134
|
+
collapseItem.thyActiveChange.emit({ active: collapseItem.thyActive(), event });
|
|
133
135
|
}
|
|
134
136
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThyCollapse, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
135
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
137
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.8", type: ThyCollapse, isStandalone: true, selector: "thy-collapse", inputs: { thyTheme: { classPropertyName: "thyTheme", publicName: "thyTheme", isSignal: true, isRequired: false, transformFunction: null }, thyAccordion: { classPropertyName: "thyAccordion", publicName: "thyAccordion", isSignal: true, isRequired: false, transformFunction: null }, thyArrowIconPosition: { classPropertyName: "thyArrowIconPosition", publicName: "thyArrowIconPosition", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.thy-collapse-divided": "thyTheme() === 'divided'", "class.thy-collapse-bordered": "thyTheme() === 'bordered'", "class.thy-collapse-ghost": "thyTheme() === 'ghost'", "class.thy-collapse-icon-position-right": "thyArrowIconPosition() === 'right'", "class.thy-collapse-icon-position-left": "thyArrowIconPosition() === 'left'" }, classAttribute: "thy-collapse" }, providers: [
|
|
136
138
|
{
|
|
137
139
|
provide: THY_COLLAPSE_COMPONENT,
|
|
138
140
|
useExisting: ThyCollapse
|
|
@@ -154,11 +156,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
154
156
|
`,
|
|
155
157
|
host: {
|
|
156
158
|
class: 'thy-collapse',
|
|
157
|
-
'[class.thy-collapse-divided]': `thyTheme === 'divided'`,
|
|
158
|
-
'[class.thy-collapse-bordered]': `thyTheme === 'bordered'`,
|
|
159
|
-
'[class.thy-collapse-ghost]': `thyTheme === 'ghost'`,
|
|
160
|
-
'[class.thy-collapse-icon-position-right]': `thyArrowIconPosition === 'right'`,
|
|
161
|
-
'[class.thy-collapse-icon-position-left]': `thyArrowIconPosition === 'left'`
|
|
159
|
+
'[class.thy-collapse-divided]': `thyTheme() === 'divided'`,
|
|
160
|
+
'[class.thy-collapse-bordered]': `thyTheme() === 'bordered'`,
|
|
161
|
+
'[class.thy-collapse-ghost]': `thyTheme() === 'ghost'`,
|
|
162
|
+
'[class.thy-collapse-icon-position-right]': `thyArrowIconPosition() === 'right'`,
|
|
163
|
+
'[class.thy-collapse-icon-position-left]': `thyArrowIconPosition() === 'left'`
|
|
162
164
|
},
|
|
163
165
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
164
166
|
providers: [
|
|
@@ -168,14 +170,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
168
170
|
}
|
|
169
171
|
]
|
|
170
172
|
}]
|
|
171
|
-
}]
|
|
172
|
-
type: Input
|
|
173
|
-
}], thyAccordion: [{
|
|
174
|
-
type: Input,
|
|
175
|
-
args: [{ transform: coerceBooleanProperty }]
|
|
176
|
-
}], thyArrowIconPosition: [{
|
|
177
|
-
type: Input
|
|
178
|
-
}] } });
|
|
173
|
+
}] });
|
|
179
174
|
|
|
180
175
|
class ThyCollapseModule {
|
|
181
176
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: ThyCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-tethys-collapse.mjs","sources":["../../../src/collapse/collapse.token.ts","../../../src/collapse/collapse-item.component.ts","../../../src/collapse/collapse-item.component.html","../../../src/collapse/collapse.component.ts","../../../src/collapse/module.ts","../../../src/collapse/ngx-tethys-collapse.ts"],"sourcesContent":["import { EventEmitter, InjectionToken } from '@angular/core';\n\nexport interface IThyCollapseItemComponent {\n thyActive: boolean;\n thyActiveChange: EventEmitter<{ active: boolean; event: Event }>;\n markForCheck: () => void;\n}\n\nexport interface IThyCollapseComponent {\n addPanel: (value: IThyCollapseItemComponent) => void;\n removePanel: (value: IThyCollapseItemComponent) => void;\n click: (collapseItem: IThyCollapseItemComponent, event: Event) => void;\n}\n\nexport const THY_COLLAPSE_COMPONENT = new InjectionToken<IThyCollapseComponent>('THY_COLLAPSE_COMPONENT');\n","import { collapseMotion } from 'ngx-tethys/core';\n\nimport {\n ChangeDetectorRef,\n Component,\n EventEmitter,\n ChangeDetectionStrategy,\n Input,\n OnDestroy,\n OnInit,\n Output,\n TemplateRef,\n inject\n} from '@angular/core';\n\nimport { IThyCollapseItemComponent, THY_COLLAPSE_COMPONENT } from './collapse.token';\nimport { SafeAny } from 'ngx-tethys/types';\nimport { coerceBooleanProperty, isString } from 'ngx-tethys/util';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgTemplateOutlet } from '@angular/common';\n\nconst DEFAULT_ARROW_ICON = 'angle-right';\n\n/**\n * 折叠面板项组件\n * @name thy-collapse-panel,thy-collapse-item\n * @order 20\n */\n@Component({\n selector: 'thy-collapse-panel, thy-collapse-item',\n templateUrl: './collapse-item.component.html',\n exportAs: 'ThyCollapseComponent',\n animations: [collapseMotion],\n host: {\n '[class.thy-collapse-item]': 'true',\n '[class.thy-collapse-no-arrow]': '!showArrow',\n '[class.thy-collapse-item-active]': 'thyActive',\n '[class.thy-collapse-item-disabled]': 'thyDisabled'\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet, ThyIcon]\n})\nexport class ThyCollapseItem implements IThyCollapseItemComponent, OnInit, OnDestroy {\n private cdr = inject(ChangeDetectorRef);\n private thyCollapseComponent = inject(THY_COLLAPSE_COMPONENT, { host: true })!;\n\n public showArrow: boolean = true;\n\n public arrowIconTemplate: TemplateRef<SafeAny>;\n\n public arrowIcon: string = DEFAULT_ARROW_ICON;\n\n /**\n * 标题\n */\n @Input() thyTitle: string;\n\n /**\n * 是否处于激活展开状态\n */\n @Input({ transform: coerceBooleanProperty }) thyActive: boolean = false;\n\n /**\n * 是否禁用当前面板\n * @default false\n */\n @Input({ transform: coerceBooleanProperty }) thyDisabled: boolean;\n\n /**\n * 自定义面板头\n * @type TemplateRef\n */\n @Input() thyHeaderTemplate: TemplateRef<SafeAny>;\n\n /**\n * 自定义箭头(展开收起)图标,设置为 false 表示隐藏图标\n * @type {string | TemplateRef<SafeAny> | false}\n */\n @Input()\n set thyArrowIcon(value: string | TemplateRef<SafeAny> | boolean) {\n if (value instanceof TemplateRef) {\n this.arrowIconTemplate = value as TemplateRef<SafeAny>;\n } else if (isString(value)) {\n this.arrowIcon = value as string;\n } else {\n this.showArrow = value;\n this.arrowIconTemplate = null;\n this.arrowIcon = DEFAULT_ARROW_ICON;\n }\n }\n\n /**\n * 额外附加模板\n * @type TemplateRef\n */\n @Input() thyExtra: TemplateRef<SafeAny>;\n\n /**\n * 展开收起事件\n */\n @Output() thyActiveChange = new EventEmitter<{ active: boolean; event: Event }>();\n\n ngOnInit() {\n this.thyCollapseComponent.addPanel(this);\n }\n\n markForCheck(): void {\n this.cdr.markForCheck();\n }\n\n activeChange(event: Event) {\n if (!this.thyDisabled) {\n this.thyCollapseComponent.click(this, event);\n }\n }\n\n ngOnDestroy(): void {\n this.thyCollapseComponent.removePanel(this);\n }\n}\n","<div class=\"thy-collapse-header\" (click)=\"activeChange($event)\">\n @if (showArrow) {\n @if (arrowIconTemplate) {\n <ng-template [ngTemplateOutlet]=\"arrowIconTemplate\"></ng-template>\n } @else {\n <thy-icon [thyIconName]=\"arrowIcon || 'angle-right'\" class=\"thy-collapse-icon\" [thyIconRotate]=\"thyActive ? -90 : 0\"></thy-icon>\n }\n }\n\n @if (thyHeaderTemplate) {\n <ng-template [ngTemplateOutlet]=\"thyHeaderTemplate\"></ng-template>\n } @else {\n <ng-container>\n <span class=\"d-flex thy-collapse-title\"> {{ thyTitle }}</span></ng-container\n >\n }\n\n @if (thyExtra) {\n <div class=\"thy-collapse-extra\">\n <ng-template [ngTemplateOutlet]=\"thyExtra\"></ng-template>\n </div>\n }\n </div>\n <div class=\"thy-collapse-content\" [@collapseMotion]=\"thyActive ? 'expanded' : 'hidden'\">\n <div class=\"thy-collapse-content-box\">\n <ng-content></ng-content>\n </div>\n </div>\n","import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';\n\nimport { IThyCollapseItemComponent, IThyCollapseComponent, THY_COLLAPSE_COMPONENT } from './collapse.token';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyCollapseTheme = 'divided' | 'bordered' | 'ghost';\n\nexport type ThyCollapsedIconPosition = 'left' | 'right';\n\n/**\n * 折叠面板组件\n * @name thy-collapse\n * @order 10\n */\n@Component({\n selector: 'thy-collapse',\n template: `\n <ng-container>\n <ng-content></ng-content>\n </ng-container>\n `,\n host: {\n class: 'thy-collapse',\n '[class.thy-collapse-divided]': `thyTheme === 'divided'`,\n '[class.thy-collapse-bordered]': `thyTheme === 'bordered'`,\n '[class.thy-collapse-ghost]': `thyTheme === 'ghost'`,\n '[class.thy-collapse-icon-position-right]': `thyArrowIconPosition === 'right'`,\n '[class.thy-collapse-icon-position-left]': `thyArrowIconPosition === 'left'`\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: THY_COLLAPSE_COMPONENT,\n useExisting: ThyCollapse\n }\n ]\n})\nexport class ThyCollapse implements IThyCollapseComponent, OnInit {\n /**\n * 折叠面板主题,支持 `divided` | `bordered` | `ghost`\n */\n @Input() thyTheme: ThyCollapseTheme = 'divided';\n\n /**\n * 是否为手风琴模式,手风琴模式下,只能展开一个面板\n * @default false\n */\n @Input({ transform: coerceBooleanProperty }) thyAccordion: boolean;\n\n /**\n * 展开收起图标的位置\n * @type left | right\n */\n @Input() thyArrowIconPosition: ThyCollapsedIconPosition = 'left';\n\n private listOfCollapsePanelComponent: IThyCollapseItemComponent[] = [];\n\n constructor() {}\n\n ngOnInit() {}\n\n addPanel(value: IThyCollapseItemComponent): void {\n this.listOfCollapsePanelComponent.push(value);\n }\n\n removePanel(value: IThyCollapseItemComponent): void {\n this.listOfCollapsePanelComponent.splice(this.listOfCollapsePanelComponent.indexOf(value), 1);\n }\n\n click(collapseItem: IThyCollapseItemComponent, event: Event): void {\n if (this.thyAccordion && !collapseItem.thyActive) {\n this.listOfCollapsePanelComponent\n .filter(item => item !== collapseItem)\n .forEach(item => {\n if (item.thyActive) {\n item.thyActive = false;\n item.thyActiveChange.emit({ active: collapseItem.thyActive, event });\n item.markForCheck();\n }\n });\n }\n collapseItem.thyActive = !collapseItem.thyActive;\n collapseItem.thyActiveChange.emit({ active: collapseItem.thyActive, event });\n }\n}\n","import { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyInputModule } from 'ngx-tethys/input';\n\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { ThyCollapseItem } from './collapse-item.component';\nimport { ThyCollapse } from './collapse.component';\n\n@NgModule({\n imports: [CommonModule, FormsModule, OverlayModule, ThyInputModule, ThyIconModule, ThyCollapse, ThyCollapseItem],\n exports: [ThyCollapse, ThyCollapseItem]\n})\nexport class ThyCollapseModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAcO,MAAM,sBAAsB,GAAG,IAAI,cAAc,CAAwB,wBAAwB,CAAC;;AC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AAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAHhB,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,CACrG,EAAA,OAAA,EAAA,CAAA,WAAW,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA;+GAE7B,iBAAiB,EAAA,OAAA,EAAA,CAHhB,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAe,eAAe,CAAA,EAAA,CAAA,CAAA;;2FAGtG,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,CAAC;AAChH,oBAAA,OAAO,EAAE,CAAC,WAAW,EAAE,eAAe;AACzC,iBAAA;;;ACdD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-tethys-collapse.mjs","sources":["../../../src/collapse/collapse.token.ts","../../../src/collapse/collapse-item.component.ts","../../../src/collapse/collapse-item.component.html","../../../src/collapse/collapse.component.ts","../../../src/collapse/module.ts","../../../src/collapse/ngx-tethys-collapse.ts"],"sourcesContent":["import { InjectionToken, ModelSignal, OutputEmitterRef } from '@angular/core';\n\nexport interface IThyCollapseItemComponent {\n thyActive: ModelSignal<boolean>;\n thyActiveChange: OutputEmitterRef<{ active: boolean; event: Event }>;\n markForCheck: () => void;\n}\n\nexport interface IThyCollapseComponent {\n addPanel: (value: IThyCollapseItemComponent) => void;\n removePanel: (value: IThyCollapseItemComponent) => void;\n click: (collapseItem: IThyCollapseItemComponent, event: Event) => void;\n}\n\nexport const THY_COLLAPSE_COMPONENT = new InjectionToken<IThyCollapseComponent>('THY_COLLAPSE_COMPONENT');\n","import { collapseMotion } from 'ngx-tethys/core';\n\nimport {\n ChangeDetectorRef,\n Component,\n ChangeDetectionStrategy,\n OnDestroy,\n OnInit,\n TemplateRef,\n inject,\n input,\n output,\n computed,\n model\n} from '@angular/core';\n\nimport { IThyCollapseItemComponent, THY_COLLAPSE_COMPONENT } from './collapse.token';\nimport { SafeAny } from 'ngx-tethys/types';\nimport { coerceBooleanProperty, isString } from 'ngx-tethys/util';\nimport { ThyIcon } from 'ngx-tethys/icon';\nimport { NgTemplateOutlet } from '@angular/common';\n\nconst DEFAULT_ARROW_ICON = 'angle-right';\n\n/**\n * 折叠面板项组件\n * @name thy-collapse-panel,thy-collapse-item\n * @order 20\n */\n@Component({\n selector: 'thy-collapse-panel, thy-collapse-item',\n templateUrl: './collapse-item.component.html',\n exportAs: 'ThyCollapseComponent',\n animations: [collapseMotion],\n host: {\n '[class.thy-collapse-item]': 'true',\n '[class.thy-collapse-no-arrow]': '!showArrow()',\n '[class.thy-collapse-item-active]': 'thyActive()',\n '[class.thy-collapse-item-disabled]': 'thyDisabled()'\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet, ThyIcon]\n})\nexport class ThyCollapseItem implements IThyCollapseItemComponent, OnInit, OnDestroy {\n private cdr = inject(ChangeDetectorRef);\n private thyCollapseComponent = inject(THY_COLLAPSE_COMPONENT, { host: true })!;\n\n /**\n * 标题\n */\n readonly thyTitle = input<string>();\n\n /**\n * 是否处于激活展开状态\n */\n thyActive = model<boolean>(false);\n\n /**\n * 是否禁用当前面板\n */\n readonly thyDisabled = input(false, { transform: coerceBooleanProperty });\n\n /**\n * 自定义面板头\n */\n readonly thyHeaderTemplate = input<TemplateRef<SafeAny>>();\n\n /**\n * 自定义箭头(展开收起)图标,设置为 false 表示隐藏图标\n */\n thyArrowIcon = model<string | TemplateRef<SafeAny> | boolean>(DEFAULT_ARROW_ICON);\n\n readonly arrowIconTemplate = computed(() => {\n const arrowIcon = this.thyArrowIcon();\n return arrowIcon instanceof TemplateRef ? arrowIcon : null;\n });\n\n readonly arrowIcon = computed(() => {\n const arrowIcon = this.thyArrowIcon();\n return isString(arrowIcon) ? arrowIcon : DEFAULT_ARROW_ICON;\n });\n\n readonly showArrow = computed(() => {\n const arrowIcon = this.thyArrowIcon();\n if (!(arrowIcon instanceof TemplateRef) && !isString(arrowIcon)) {\n return this.thyArrowIcon();\n }\n return true;\n });\n\n /**\n * 额外附加模板\n */\n readonly thyExtra = input<TemplateRef<SafeAny>>();\n\n /**\n * 展开收起事件\n */\n readonly thyActiveChange = output<{ active: boolean; event: Event }>();\n\n ngOnInit() {\n this.thyCollapseComponent.addPanel(this);\n }\n\n markForCheck(): void {\n this.cdr.markForCheck();\n }\n\n activeChange(event: Event) {\n if (!this.thyDisabled()) {\n this.thyCollapseComponent.click(this, event);\n }\n }\n\n ngOnDestroy(): void {\n this.thyCollapseComponent.removePanel(this);\n }\n}\n","<div class=\"thy-collapse-header\" (click)=\"activeChange($event)\">\n @if (showArrow()) {\n @if (arrowIconTemplate()) {\n <ng-template [ngTemplateOutlet]=\"arrowIconTemplate()\"></ng-template>\n } @else {\n <thy-icon [thyIconName]=\"arrowIcon() || 'angle-right'\" class=\"thy-collapse-icon\" [thyIconRotate]=\"thyActive() ? -90 : 0\"></thy-icon>\n }\n }\n\n @if (thyHeaderTemplate()) {\n <ng-template [ngTemplateOutlet]=\"thyHeaderTemplate()\"></ng-template>\n } @else {\n <ng-container>\n <span class=\"d-flex thy-collapse-title\"> {{ thyTitle() }}</span></ng-container\n >\n }\n\n @if (thyExtra()) {\n <div class=\"thy-collapse-extra\">\n <ng-template [ngTemplateOutlet]=\"thyExtra()\"></ng-template>\n </div>\n }\n</div>\n<div class=\"thy-collapse-content\" [@collapseMotion]=\"thyActive() ? 'expanded' : 'hidden'\">\n <div class=\"thy-collapse-content-box\">\n <ng-content></ng-content>\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport { IThyCollapseItemComponent, IThyCollapseComponent, THY_COLLAPSE_COMPONENT } from './collapse.token';\nimport { coerceBooleanProperty } from 'ngx-tethys/util';\n\nexport type ThyCollapseTheme = 'divided' | 'bordered' | 'ghost';\n\nexport type ThyCollapsedIconPosition = 'left' | 'right';\n\n/**\n * 折叠面板组件\n * @name thy-collapse\n * @order 10\n */\n@Component({\n selector: 'thy-collapse',\n template: `\n <ng-container>\n <ng-content></ng-content>\n </ng-container>\n `,\n host: {\n class: 'thy-collapse',\n '[class.thy-collapse-divided]': `thyTheme() === 'divided'`,\n '[class.thy-collapse-bordered]': `thyTheme() === 'bordered'`,\n '[class.thy-collapse-ghost]': `thyTheme() === 'ghost'`,\n '[class.thy-collapse-icon-position-right]': `thyArrowIconPosition() === 'right'`,\n '[class.thy-collapse-icon-position-left]': `thyArrowIconPosition() === 'left'`\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: THY_COLLAPSE_COMPONENT,\n useExisting: ThyCollapse\n }\n ]\n})\nexport class ThyCollapse implements IThyCollapseComponent {\n /**\n * 折叠面板主题,支持 `divided` | `bordered` | `ghost`\n */\n readonly thyTheme = input<ThyCollapseTheme>('divided');\n\n /**\n * 是否为手风琴模式,手风琴模式下,只能展开一个面板\n */\n readonly thyAccordion = input(false, { transform: coerceBooleanProperty });\n\n /**\n * 展开收起图标的位置,支持 `left` | `right`\n */\n readonly thyArrowIconPosition = input<ThyCollapsedIconPosition>('left');\n\n private listOfCollapsePanelComponent: IThyCollapseItemComponent[] = [];\n\n addPanel(value: IThyCollapseItemComponent): void {\n this.listOfCollapsePanelComponent.push(value);\n }\n\n removePanel(value: IThyCollapseItemComponent): void {\n this.listOfCollapsePanelComponent.splice(this.listOfCollapsePanelComponent.indexOf(value), 1);\n }\n\n click(collapseItem: IThyCollapseItemComponent, event: Event): void {\n if (this.thyAccordion() && !collapseItem.thyActive()) {\n this.listOfCollapsePanelComponent\n .filter(item => item !== collapseItem)\n .forEach(item => {\n if (item.thyActive()) {\n item.thyActive.set(false);\n item.thyActiveChange.emit({ active: collapseItem.thyActive(), event });\n item.markForCheck();\n }\n });\n }\n collapseItem.thyActive.set(!collapseItem.thyActive());\n collapseItem.thyActiveChange.emit({ active: collapseItem.thyActive(), event });\n }\n}\n","import { ThyIconModule } from 'ngx-tethys/icon';\nimport { ThyInputModule } from 'ngx-tethys/input';\n\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { ThyCollapseItem } from './collapse-item.component';\nimport { ThyCollapse } from './collapse.component';\n\n@NgModule({\n imports: [CommonModule, FormsModule, OverlayModule, ThyInputModule, ThyIconModule, ThyCollapse, ThyCollapseItem],\n exports: [ThyCollapse, ThyCollapseItem]\n})\nexport class ThyCollapseModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAcO,MAAM,sBAAsB,GAAG,IAAI,cAAc,CAAwB,wBAAwB,CAAC;;ACQzG,MAAM,kBAAkB,GAAG,aAAa;AAExC;;;;AAIG;MAeU,eAAe,CAAA;AAd5B,IAAA,WAAA,GAAA;AAeY,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;QAC/B,IAAoB,CAAA,oBAAA,GAAG,MAAM,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAE;AAE9E;;AAEG;QACM,IAAQ,CAAA,QAAA,GAAG,KAAK,EAAU;AAEnC;;AAEG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK,CAAU,KAAK,CAAC;AAEjC;;AAEG;QACM,IAAW,CAAA,WAAA,GAAG,KAAK,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC;AAEzE;;AAEG;QACM,IAAiB,CAAA,iBAAA,GAAG,KAAK,EAAwB;AAE1D;;AAEG;AACH,QAAA,I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