ngx-tethys 19.0.12 → 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 +21 -0
- package/action/action.component.d.ts +2 -2
- 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 +1 -1
- package/avatar/avatar.component.d.ts +5 -5
- 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-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.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-loading.mjs +17 -35
- package/fesm2022/ngx-tethys-loading.mjs.map +1 -1
- package/fesm2022/ngx-tethys-mention.mjs +3 -3
- 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 +2 -2
- 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
package/list/list.component.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "ngx-tethys/util";
|
|
2
3
|
/**
|
|
3
4
|
* 列表组件
|
|
4
5
|
* @name thy-list
|
|
@@ -15,5 +16,5 @@ export declare class ThyList {
|
|
|
15
16
|
constructor();
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyList, never>;
|
|
17
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyList, "thy-list", never, { "thyDivided": { "alias": "thyDivided"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
18
|
-
static ngAcceptInputType_thyDivided:
|
|
19
|
+
static ngAcceptInputType_thyDivided: i1.ThyBooleanInput;
|
|
19
20
|
}
|
|
@@ -5,6 +5,7 @@ import { ControlValueAccessor } from '@angular/forms';
|
|
|
5
5
|
import { ThyListLayout } from 'ngx-tethys/shared';
|
|
6
6
|
import { ThySelectionListChange } from './selection.interface';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "ngx-tethys/util";
|
|
8
9
|
export type ThyListSize = 'sm' | 'md' | 'lg';
|
|
9
10
|
/**
|
|
10
11
|
* @name thy-selection-list,[thy-selection-list]
|
|
@@ -122,7 +123,7 @@ export declare class ThySelectionList implements OnInit, OnDestroy, AfterContent
|
|
|
122
123
|
ngOnDestroy(): void;
|
|
123
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySelectionList, never>;
|
|
124
125
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThySelectionList, "thy-selection-list,[thy-selection-list]", never, { "thyMultiple": { "alias": "thyMultiple"; "required": false; }; "thyBindKeyEventContainer": { "alias": "thyBindKeyEventContainer"; "required": false; }; "thyScrollContainer": { "alias": "thyScrollContainer"; "required": false; }; "thyBeforeKeydown": { "alias": "thyBeforeKeydown"; "required": false; }; "thyUniqueKey": { "alias": "thyUniqueKey"; "required": false; }; "thyCompareWith": { "alias": "thyCompareWith"; "required": false; }; "thyLayout": { "alias": "thyLayout"; "required": false; }; "thyAutoActiveFirstItem": { "alias": "thyAutoActiveFirstItem"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thySpaceKeyEnabled": { "alias": "thySpaceKeyEnabled"; "required": false; }; }, { "thySelectionChange": "thySelectionChange"; }, ["options"], ["*"], true, never>;
|
|
125
|
-
static ngAcceptInputType_thyMultiple:
|
|
126
|
-
static ngAcceptInputType_thyAutoActiveFirstItem:
|
|
127
|
-
static ngAcceptInputType_thySpaceKeyEnabled:
|
|
126
|
+
static ngAcceptInputType_thyMultiple: i1.ThyBooleanInput;
|
|
127
|
+
static ngAcceptInputType_thyAutoActiveFirstItem: i1.ThyBooleanInput;
|
|
128
|
+
static ngAcceptInputType_thySpaceKeyEnabled: i1.ThyBooleanInput;
|
|
128
129
|
}
|
|
@@ -5,26 +5,20 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* @order 10
|
|
6
6
|
*/
|
|
7
7
|
export declare class ThyLoading {
|
|
8
|
-
private changeDetectorRef;
|
|
9
|
-
isDone: boolean;
|
|
10
|
-
tip: string;
|
|
11
|
-
isMask: boolean;
|
|
12
8
|
/**
|
|
13
9
|
* 数据是否加载完成
|
|
14
10
|
* @default false
|
|
15
11
|
*/
|
|
16
|
-
|
|
12
|
+
readonly thyDone: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
17
13
|
/**
|
|
18
14
|
* 自定义加载提示文案
|
|
19
15
|
*/
|
|
20
|
-
|
|
16
|
+
readonly thyTip: import("@angular/core").InputSignal<string>;
|
|
21
17
|
/**
|
|
22
18
|
* 加载时是否启用嵌套遮罩模式,不传或传 false,没有遮罩层,加载完成出现内容
|
|
23
19
|
*/
|
|
24
|
-
|
|
20
|
+
readonly thyIsMask: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
25
21
|
loadingClassName: boolean;
|
|
26
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyLoading, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyLoading, "thy-loading", never, { "thyDone": { "alias": "thyDone"; "required": false; }; "thyTip": { "alias": "thyTip"; "required": false; }; "thyIsMask": { "alias": "thyIsMask"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
28
|
-
static ngAcceptInputType_thyDone: boolean | string | number;
|
|
29
|
-
static ngAcceptInputType_thyIsMask: boolean | string | number;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyLoading, "thy-loading", never, { "thyDone": { "alias": "thyDone"; "required": false; "isSignal": true; }; "thyTip": { "alias": "thyTip"; "required": false; "isSignal": true; }; "thyIsMask": { "alias": "thyIsMask"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
30
24
|
}
|
|
@@ -25,7 +25,7 @@ export declare class ThyMentionDirective implements OnInit, OnDestroy {
|
|
|
25
25
|
/**
|
|
26
26
|
* 选择后的回调函数
|
|
27
27
|
*/
|
|
28
|
-
readonly
|
|
28
|
+
readonly thySelectSuggestion: import("@angular/core").OutputEmitterRef<MentionSuggestionSelectEvent<any>>;
|
|
29
29
|
get isOpened(): boolean;
|
|
30
30
|
mentions: import("@angular/core").Signal<(Partial<Mention<unknown>> & Mention<any>)[]>;
|
|
31
31
|
private destroy$;
|
|
@@ -39,5 +39,5 @@ export declare class ThyMentionDirective implements OnInit, OnDestroy {
|
|
|
39
39
|
private openSuggestions;
|
|
40
40
|
private closeSuggestions;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyMentionDirective, never>;
|
|
42
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyMentionDirective, "[thyMention]", never, { "thyMention": { "alias": "thyMention"; "required": false; "isSignal": true; }; "thyPopoverConfig": { "alias": "thyPopoverConfig"; "required": false; "isSignal": true; }; }, { "
|
|
42
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyMentionDirective, "[thyMention]", never, { "thyMention": { "alias": "thyMention"; "required": false; "isSignal": true; }; "thyPopoverConfig": { "alias": "thyPopoverConfig"; "required": false; "isSignal": true; }; }, { "thySelectSuggestion": "thySelectSuggestion"; }, never, never, true, never>;
|
|
43
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
-
import { ElementRef,
|
|
2
|
+
import { ElementRef, ModelSignal, OnInit, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* 菜单分组组件
|
|
@@ -8,71 +8,54 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class ThyMenuGroup implements OnInit {
|
|
10
10
|
private popover;
|
|
11
|
-
_actionMenu: ComponentType<any> | TemplateRef<any>;
|
|
12
|
-
rightIconClass: string;
|
|
13
|
-
iconClass: string;
|
|
14
11
|
groupHeaderPaddingLeft: number;
|
|
15
|
-
_thyMenuGroup: ElementRef
|
|
16
|
-
headerContentTemplateRef: TemplateRef<any
|
|
17
|
-
isThyMenuGroup: boolean;
|
|
18
|
-
showIcon: boolean;
|
|
19
|
-
isCollapsed: boolean;
|
|
12
|
+
readonly _thyMenuGroup: import("@angular/core").Signal<ElementRef<any>>;
|
|
13
|
+
readonly headerContentTemplateRef: import("@angular/core").Signal<TemplateRef<any>>;
|
|
20
14
|
/**
|
|
21
15
|
* 分组标题
|
|
22
16
|
*/
|
|
23
|
-
thyTitle: string
|
|
24
|
-
/**
|
|
25
|
-
* 已废弃,请使用 thyCollapsed
|
|
26
|
-
* @deprecated
|
|
27
|
-
*/
|
|
28
|
-
set thyExpand(value: boolean);
|
|
17
|
+
readonly thyTitle: import("@angular/core").InputSignal<string>;
|
|
29
18
|
/**
|
|
30
19
|
* 是否处于收起状态
|
|
31
|
-
* @default false
|
|
32
20
|
*/
|
|
33
|
-
|
|
21
|
+
readonly thyCollapsed: ModelSignal<boolean>;
|
|
34
22
|
/**
|
|
35
23
|
* 是否支持展开收起
|
|
36
24
|
*/
|
|
37
|
-
thyCollapsible: boolean
|
|
25
|
+
readonly thyCollapsible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
38
26
|
/**
|
|
39
27
|
* 是否显示 Icon
|
|
40
28
|
*/
|
|
41
|
-
|
|
29
|
+
readonly thyShowIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
42
30
|
/**
|
|
43
31
|
* 图标
|
|
44
32
|
*/
|
|
45
|
-
|
|
33
|
+
readonly thyIcon: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
46
34
|
/**
|
|
47
35
|
* 操作图标
|
|
48
36
|
*/
|
|
49
|
-
|
|
37
|
+
readonly thyActionIcon: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
50
38
|
/**
|
|
51
39
|
*是否显示操作
|
|
52
40
|
*/
|
|
53
|
-
thyShowAction: boolean
|
|
41
|
+
readonly thyShowAction: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
54
42
|
/**
|
|
55
43
|
* 操作阻止冒泡事件
|
|
56
44
|
*/
|
|
57
|
-
thyActionStopPropagation: boolean
|
|
45
|
+
readonly thyActionStopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
58
46
|
/**
|
|
59
47
|
* Action 点击事件
|
|
60
48
|
*/
|
|
61
|
-
thyOnActionClick:
|
|
62
|
-
thyCollapsedChange:
|
|
49
|
+
readonly thyOnActionClick: import("@angular/core").OutputEmitterRef<Event>;
|
|
50
|
+
readonly thyCollapsedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
63
51
|
/**
|
|
64
52
|
* 设置 Action 菜单
|
|
65
53
|
*/
|
|
66
|
-
|
|
54
|
+
readonly thyActionMenu: import("@angular/core").InputSignal<TemplateRef<any> | ComponentType<any>>;
|
|
55
|
+
constructor();
|
|
67
56
|
ngOnInit(): void;
|
|
68
57
|
collapseGroup(): void;
|
|
69
58
|
onActionClick(event: Event): void;
|
|
70
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuGroup, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuGroup, "thy-menu-group,[thy-menu-group],[thyMenuGroup]", never, { "thyTitle": { "alias": "thyTitle"; "required": false;
|
|
72
|
-
static ngAcceptInputType_thyExpand: boolean | string | number;
|
|
73
|
-
static ngAcceptInputType_thyCollapsed: boolean | string | number;
|
|
74
|
-
static ngAcceptInputType_thyCollapsible: boolean | string | number;
|
|
75
|
-
static ngAcceptInputType_thyShowIcon: boolean | string | number;
|
|
76
|
-
static ngAcceptInputType_thyShowAction: boolean | string | number;
|
|
77
|
-
static ngAcceptInputType_thyActionStopPropagation: boolean | string | number;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuGroup, "thy-menu-group,[thy-menu-group],[thyMenuGroup]", never, { "thyTitle": { "alias": "thyTitle"; "required": false; "isSignal": true; }; "thyCollapsed": { "alias": "thyCollapsed"; "required": false; "isSignal": true; }; "thyCollapsible": { "alias": "thyCollapsible"; "required": false; "isSignal": true; }; "thyShowIcon": { "alias": "thyShowIcon"; "required": false; "isSignal": true; }; "thyIcon": { "alias": "thyIcon"; "required": false; "isSignal": true; }; "thyActionIcon": { "alias": "thyActionIcon"; "required": false; "isSignal": true; }; "thyShowAction": { "alias": "thyShowAction"; "required": false; "isSignal": true; }; "thyActionStopPropagation": { "alias": "thyActionStopPropagation"; "required": false; "isSignal": true; }; "thyActionMenu": { "alias": "thyActionMenu"; "required": false; "isSignal": true; }; }, { "thyCollapsed": "thyCollapsedChange"; "thyOnActionClick": "thyOnActionClick"; "thyCollapsedChange": "thyCollapsedChange"; }, ["headerContentTemplateRef"], ["*"], true, never>;
|
|
78
61
|
}
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import { ThyPopoverConfig } from 'ngx-tethys/popover';
|
|
2
2
|
import { ComponentType } from '@angular/cdk/portal';
|
|
3
|
-
import { OnDestroy, TemplateRef } from '@angular/core';
|
|
3
|
+
import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* 菜单项操作组件
|
|
7
7
|
* @name thy-menu-item-action,[thy-menu-item-action],[thyMenuItemAction]
|
|
8
8
|
* @order 25
|
|
9
9
|
*/
|
|
10
|
-
export declare class ThyMenuItemAction implements OnDestroy {
|
|
10
|
+
export declare class ThyMenuItemAction implements OnInit, OnDestroy {
|
|
11
11
|
private popover;
|
|
12
12
|
private renderer;
|
|
13
13
|
private elementRef;
|
|
14
14
|
_boundEvent: boolean;
|
|
15
|
-
_actionMenu: ComponentType<any> | TemplateRef<any>;
|
|
16
15
|
/**
|
|
17
16
|
* 设置 Action 菜单
|
|
18
17
|
*/
|
|
19
|
-
|
|
18
|
+
readonly thyActionMenu: import("@angular/core").InputSignal<TemplateRef<any> | ComponentType<any>>;
|
|
20
19
|
/**
|
|
21
20
|
* 是否阻止事件冒泡
|
|
22
21
|
*/
|
|
23
|
-
thyStopPropagation: boolean
|
|
22
|
+
readonly thyStopPropagation: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
24
23
|
/**
|
|
25
24
|
* 弹出框的参数
|
|
26
25
|
* @default { placement: "bottomLeft", insideClosable: true }
|
|
27
26
|
*/
|
|
28
|
-
thyPopoverOptions: ThyPopoverConfig
|
|
27
|
+
readonly thyPopoverOptions: import("@angular/core").InputSignal<ThyPopoverConfig<unknown>>;
|
|
29
28
|
private bindClickEvent;
|
|
30
29
|
private removeClickListenerFn;
|
|
30
|
+
ngOnInit(): void;
|
|
31
31
|
ngOnDestroy(): void;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuItemAction, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemAction, "thy-menu-item-action,[thy-menu-item-action],[thyMenuItemAction]", never, { "thyActionMenu": { "alias": "thyActionMenu"; "required": false; }; "thyStopPropagation": { "alias": "thyStopPropagation"; "required": false; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
34
|
-
static ngAcceptInputType_thyStopPropagation: boolean | string | number;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemAction, "thy-menu-item-action,[thy-menu-item-action],[thyMenuItemAction]", never, { "thyActionMenu": { "alias": "thyActionMenu"; "required": false; "isSignal": true; }; "thyStopPropagation": { "alias": "thyStopPropagation"; "required": false; "isSignal": true; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
35
34
|
}
|
|
@@ -9,10 +9,10 @@ export declare class ThyMenuItemIcon implements OnInit {
|
|
|
9
9
|
/**
|
|
10
10
|
* 设置图标颜色
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
readonly thyColor: import("@angular/core").InputSignal<string>;
|
|
13
13
|
private hostRenderer;
|
|
14
14
|
constructor();
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuItemIcon, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemIcon, "thy-menu-item-icon,[thy-menu-item-icon],[thyMenuItemIcon]", never, { "thyColor": { "alias": "thyColor"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemIcon, "thy-menu-item-icon,[thy-menu-item-icon],[thyMenuItemIcon]", never, { "thyColor": { "alias": "thyColor"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
18
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* 菜单项组件
|
|
@@ -7,14 +7,14 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class ThyMenuItem implements OnInit, AfterViewInit {
|
|
9
9
|
private renderer;
|
|
10
|
-
content: ElementRef<
|
|
10
|
+
readonly content: import("@angular/core").Signal<ElementRef<any>>;
|
|
11
11
|
/**
|
|
12
12
|
* 菜单项的图标
|
|
13
13
|
*/
|
|
14
|
-
thyIcon: string
|
|
14
|
+
readonly thyIcon: import("@angular/core").InputSignal<string>;
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
ngAfterViewInit(): void;
|
|
17
17
|
private wrapSpanForText;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuItem, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItem, "thy-menu-item,[thy-menu-item],[thyMenuItem]", never, { "thyIcon": { "alias": "thyIcon"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItem, "thy-menu-item,[thy-menu-item],[thyMenuItem]", never, { "thyIcon": { "alias": "thyIcon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
20
20
|
}
|
|
@@ -9,10 +9,9 @@ export declare class ThyMenuItemName implements OnInit {
|
|
|
9
9
|
/**
|
|
10
10
|
* 是否 ellipsis
|
|
11
11
|
*/
|
|
12
|
-
thyOverflowEllipsis: boolean
|
|
12
|
+
readonly thyOverflowEllipsis: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
13
|
constructor();
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenuItemName, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemName, "thy-menu-item-name,[thy-menu-item-name],[thyMenuItemName]", never, { "thyOverflowEllipsis": { "alias": "thyOverflowEllipsis"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
17
|
-
static ngAcceptInputType_thyOverflowEllipsis: boolean | string | number;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenuItemName, "thy-menu-item-name,[thy-menu-item-name],[thyMenuItemName]", never, { "thyOverflowEllipsis": { "alias": "thyOverflowEllipsis"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
18
17
|
}
|
package/menu/menu.component.d.ts
CHANGED
|
@@ -7,21 +7,17 @@ export type ThyMenuTheme = 'compact' | 'loose' | 'dark';
|
|
|
7
7
|
* @order 5
|
|
8
8
|
*/
|
|
9
9
|
export declare class ThyMenu implements OnInit {
|
|
10
|
-
theme: ThyMenuTheme;
|
|
11
10
|
/**
|
|
12
11
|
* 主题
|
|
13
12
|
* @type compact | loose
|
|
14
|
-
* @default compact
|
|
15
13
|
*/
|
|
16
|
-
|
|
14
|
+
readonly thyTheme: import("@angular/core").InputSignalWithTransform<ThyMenuTheme, ThyMenuTheme>;
|
|
17
15
|
/**
|
|
18
16
|
* 是否收起
|
|
19
|
-
* @default false
|
|
20
17
|
*/
|
|
21
|
-
thyCollapsed: boolean
|
|
18
|
+
readonly thyCollapsed: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
22
19
|
constructor();
|
|
23
20
|
ngOnInit(): void;
|
|
24
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyMenu, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenu, "thy-menu,[thy-menu],[thyMenu]", never, { "thyTheme": { "alias": "thyTheme"; "required": false; }; "thyCollapsed": { "alias": "thyCollapsed"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
26
|
-
static ngAcceptInputType_thyCollapsed: boolean | string | number;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyMenu, "thy-menu,[thy-menu],[thyMenu]", never, { "thyTheme": { "alias": "thyTheme"; "required": false; "isSignal": true; }; "thyCollapsed": { "alias": "thyCollapsed"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
27
23
|
}
|
|
@@ -3,12 +3,8 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
* @private
|
|
4
4
|
*/
|
|
5
5
|
export declare class ThyIconNavLink {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
icon: string;
|
|
9
|
-
set thyIconNavLinkIcon(icon: string);
|
|
10
|
-
set thyIconNavLinkActive(active: boolean);
|
|
6
|
+
readonly thyIconNavLinkIcon: import("@angular/core").InputSignal<string>;
|
|
7
|
+
readonly thyIconNavLinkActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyIconNavLink, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyIconNavLink, "[thyIconNavLink]", never, { "thyIconNavLinkIcon": { "alias": "thyIconNavLinkIcon"; "required": false; }; "thyIconNavLinkActive": { "alias": "thyIconNavLinkActive"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
-
static ngAcceptInputType_thyIconNavLinkActive: boolean | string | number;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyIconNavLink, "[thyIconNavLink]", never, { "thyIconNavLinkIcon": { "alias": "thyIconNavLinkIcon"; "required": false; "isSignal": true; }; "thyIconNavLinkActive": { "alias": "thyIconNavLinkActive"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
14
10
|
}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
type IconNavTypes = 'primary' | 'secondary' | 'individual' | '';
|
|
4
3
|
/**
|
|
5
4
|
* @private
|
|
6
5
|
*/
|
|
7
|
-
export declare class ThyIconNav
|
|
8
|
-
private changeDetectorRef;
|
|
9
|
-
private initialized;
|
|
6
|
+
export declare class ThyIconNav {
|
|
10
7
|
private hostRenderer;
|
|
11
|
-
type: IconNavTypes;
|
|
12
8
|
isIconNav: boolean;
|
|
13
|
-
|
|
9
|
+
readonly thyType: import("@angular/core").InputSignal<IconNavTypes>;
|
|
14
10
|
private updateClasses;
|
|
15
11
|
constructor();
|
|
16
|
-
ngOnInit(): void;
|
|
17
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyIconNav, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyIconNav, "thy-icon-nav", never, { "thyType": { "alias": "thyType"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyIconNav, "thy-icon-nav", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
19
14
|
}
|
|
20
15
|
export {};
|
|
@@ -6,9 +6,9 @@ export declare class ThyNavInkBarDirective {
|
|
|
6
6
|
private elementRef;
|
|
7
7
|
private ngZone;
|
|
8
8
|
animationMode?: "NoopAnimations" | "BrowserAnimations";
|
|
9
|
-
isVertical: boolean
|
|
10
|
-
showInkBar: boolean
|
|
11
|
-
|
|
9
|
+
readonly isVertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
10
|
+
readonly showInkBar: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
|
+
readonly animated: import("@angular/core").Signal<boolean>;
|
|
12
12
|
alignToElement(element: HTMLElement): void;
|
|
13
13
|
private setStyles;
|
|
14
14
|
private getLeftPosition;
|
|
@@ -18,7 +18,5 @@ export declare class ThyNavInkBarDirective {
|
|
|
18
18
|
private show;
|
|
19
19
|
hide(): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyNavInkBarDirective, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyNavInkBarDirective, "thy-nav-ink-bar, [thyNavInkBar]", never, { "isVertical": { "alias": "isVertical"; "required": false; }; "showInkBar": { "alias": "showInkBar"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
|
-
static ngAcceptInputType_isVertical: boolean | string | number;
|
|
23
|
-
static ngAcceptInputType_showInkBar: boolean | string | number;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyNavInkBarDirective, "thy-nav-ink-bar, [thyNavInkBar]", never, { "isVertical": { "alias": "isVertical"; "required": false; "isSignal": true; }; "showInkBar": { "alias": "showInkBar"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
2
|
import { RouterLinkActive } from '@angular/router';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export type ThyNavLink = '' | 'active';
|
|
@@ -19,26 +19,26 @@ export declare class ThyNavItemDirective implements AfterViewInit {
|
|
|
19
19
|
* 是否激活状态
|
|
20
20
|
* @default false
|
|
21
21
|
*/
|
|
22
|
-
thyNavItemActive: boolean
|
|
22
|
+
readonly thyNavItemActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23
23
|
/**
|
|
24
24
|
* 已经废弃,请使用 thyNavItemActive
|
|
25
25
|
* @deprecated please use thyNavItemActive
|
|
26
26
|
* @default false
|
|
27
27
|
*/
|
|
28
|
-
thyNavLinkActive: boolean
|
|
28
|
+
readonly thyNavLinkActive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
29
29
|
/**
|
|
30
30
|
* 是否禁用
|
|
31
31
|
* @default false
|
|
32
32
|
*/
|
|
33
|
-
thyNavItemDisabled: boolean
|
|
33
|
+
readonly thyNavItemDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
34
34
|
/**
|
|
35
35
|
* @private
|
|
36
36
|
*/
|
|
37
|
-
links:
|
|
37
|
+
readonly links: import("@angular/core").Signal<readonly any[]>;
|
|
38
38
|
/**
|
|
39
39
|
* @private
|
|
40
40
|
*/
|
|
41
|
-
routers:
|
|
41
|
+
readonly routers: import("@angular/core").Signal<readonly RouterLinkActive[]>;
|
|
42
42
|
offset: {
|
|
43
43
|
width: number;
|
|
44
44
|
height: number;
|
|
@@ -56,8 +56,5 @@ export declare class ThyNavItemDirective implements AfterViewInit {
|
|
|
56
56
|
addClass(className: string): void;
|
|
57
57
|
removeClass(className: string): void;
|
|
58
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyNavItemDirective, never>;
|
|
59
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyNavItemDirective, "[thyNavLink],[thyNavItem]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "thyNavItemActive": { "alias": "thyNavItemActive"; "required": false; }; "thyNavLinkActive": { "alias": "thyNavLinkActive"; "required": false; }; "thyNavItemDisabled": { "alias": "thyNavItemDisabled"; "required": false; }; }, {}, ["links", "routers"], never, true, never>;
|
|
60
|
-
static ngAcceptInputType_thyNavItemActive: boolean | string | number;
|
|
61
|
-
static ngAcceptInputType_thyNavLinkActive: boolean | string | number;
|
|
62
|
-
static ngAcceptInputType_thyNavItemDisabled: boolean | string | number;
|
|
59
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyNavItemDirective, "[thyNavLink],[thyNavItem]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "thyNavItemActive": { "alias": "thyNavItemActive"; "required": false; "isSignal": true; }; "thyNavLinkActive": { "alias": "thyNavLinkActive"; "required": false; "isSignal": true; }; "thyNavItemDisabled": { "alias": "thyNavItemDisabled"; "required": false; "isSignal": true; }; }, {}, ["links", "routers"], never, true, never>;
|
|
63
60
|
}
|
package/nav/nav.component.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, Signal, SimpleChanges, TemplateRef, WritableSignal } from '@angular/core';
|
|
1
2
|
import { ThyPopoverConfig } from 'ngx-tethys/popover';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { AfterContentChecked, AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, Signal, SimpleChanges, TemplateRef, WritableSignal } from '@angular/core';
|
|
4
4
|
import { RouterLinkActive } from '@angular/router';
|
|
5
|
+
import { ThyNavLocale } from 'ngx-tethys/i18n';
|
|
5
6
|
import { ThyNavInkBarDirective } from './nav-ink-bar.directive';
|
|
6
7
|
import { ThyNavItemDirective } from './nav-item.directive';
|
|
7
|
-
import { ThyNavLocale } from 'ngx-tethys/i18n';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export type ThyNavType = 'pulled' | 'tabs' | 'pills' | 'lite' | 'card' | 'primary' | 'secondary' | 'thirdly' | 'secondary-divider';
|
|
10
10
|
export type ThyNavSize = 'lg' | 'md' | 'sm';
|
|
@@ -20,10 +20,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
20
20
|
private changeDetectorRef;
|
|
21
21
|
private popover;
|
|
22
22
|
private readonly destroyRef;
|
|
23
|
-
type: ThyNavType;
|
|
24
|
-
private size;
|
|
25
23
|
initialized: boolean;
|
|
26
|
-
horizontal: ThyNavHorizontal;
|
|
27
24
|
wrapperOffset: {
|
|
28
25
|
height: number;
|
|
29
26
|
width: number;
|
|
@@ -42,33 +39,33 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
42
39
|
* @type pulled | tabs | pills | lite | primary | secondary | thirdly | secondary-divider
|
|
43
40
|
* @default pulled
|
|
44
41
|
*/
|
|
45
|
-
|
|
42
|
+
readonly thyType: import("@angular/core").InputSignal<ThyNavType>;
|
|
46
43
|
/**
|
|
47
44
|
* 导航大小
|
|
48
45
|
* @type lg | md | sm
|
|
49
46
|
* @default md
|
|
50
47
|
*/
|
|
51
|
-
|
|
48
|
+
readonly thySize: import("@angular/core").InputSignal<ThyNavSize>;
|
|
52
49
|
/**
|
|
53
50
|
* 水平排列
|
|
54
51
|
* @type '' | 'start' | 'center' | 'end'
|
|
55
52
|
* @default false
|
|
56
53
|
*/
|
|
57
|
-
|
|
54
|
+
readonly thyHorizontal: import("@angular/core").InputSignal<ThyNavHorizontal>;
|
|
58
55
|
/**
|
|
59
56
|
* 是否垂直排列
|
|
60
57
|
* @default false
|
|
61
58
|
*/
|
|
62
|
-
thyVertical: boolean
|
|
59
|
+
readonly thyVertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
63
60
|
/**
|
|
64
61
|
* 是否是填充模式
|
|
65
62
|
*/
|
|
66
|
-
thyFill: boolean
|
|
63
|
+
readonly thyFill: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
67
64
|
/**
|
|
68
65
|
* 是否响应式,自动计算宽度存放 thyNavItem,并添加更多弹框
|
|
69
66
|
* @default false
|
|
70
67
|
*/
|
|
71
|
-
thyResponsive: boolean
|
|
68
|
+
readonly thyResponsive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
72
69
|
/**
|
|
73
70
|
* 支持暂停自适应计算
|
|
74
71
|
*/
|
|
@@ -77,7 +74,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
77
74
|
* 更多操作的菜单点击内部是否可关闭
|
|
78
75
|
* @deprecated please use thyPopoverOptions
|
|
79
76
|
*/
|
|
80
|
-
thyInsideClosable: boolean
|
|
77
|
+
readonly thyInsideClosable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
81
78
|
/**
|
|
82
79
|
* 更多菜单弹出框的参数,底层使用 Popover 组件
|
|
83
80
|
* @type ThyPopoverConfig
|
|
@@ -87,7 +84,7 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
87
84
|
* 右侧额外区域模板
|
|
88
85
|
* @type TemplateRef
|
|
89
86
|
*/
|
|
90
|
-
thyExtra: TemplateRef<unknown
|
|
87
|
+
readonly thyExtra: import("@angular/core").InputSignal<TemplateRef<unknown>>;
|
|
91
88
|
/**
|
|
92
89
|
* @private
|
|
93
90
|
*/
|
|
@@ -96,30 +93,33 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
96
93
|
/**
|
|
97
94
|
* @private
|
|
98
95
|
*/
|
|
99
|
-
routers:
|
|
96
|
+
readonly routers: Signal<readonly RouterLinkActive[]>;
|
|
100
97
|
/**
|
|
101
98
|
* 响应式模式下更多操作模板
|
|
102
99
|
* @type TemplateRef
|
|
103
100
|
*/
|
|
104
|
-
moreOperation: TemplateRef<unknown
|
|
101
|
+
readonly moreOperation: Signal<TemplateRef<unknown>>;
|
|
105
102
|
/**
|
|
106
103
|
* 响应式模式下更多弹框模板
|
|
107
104
|
* @type TemplateRef
|
|
108
105
|
*/
|
|
109
|
-
morePopover: TemplateRef<unknown
|
|
106
|
+
readonly morePopover: Signal<TemplateRef<unknown>>;
|
|
110
107
|
/**
|
|
111
108
|
* 右侧额外区域模板,支持 thyExtra 传参和 <ng-template #extra></ng-template> 模板
|
|
112
109
|
* @name extra
|
|
113
110
|
* @type TemplateRef
|
|
114
111
|
*/
|
|
115
|
-
extra: TemplateRef<unknown
|
|
116
|
-
defaultMoreOperation: ElementRef<HTMLAnchorElement
|
|
117
|
-
inkBar: ThyNavInkBarDirective
|
|
112
|
+
readonly extra: Signal<TemplateRef<unknown>>;
|
|
113
|
+
readonly defaultMoreOperation: Signal<ElementRef<HTMLAnchorElement>>;
|
|
114
|
+
readonly inkBar: Signal<ThyNavInkBarDirective>;
|
|
115
|
+
readonly horizontal: Signal<string>;
|
|
118
116
|
get showInkBar(): boolean;
|
|
119
117
|
private updateClasses;
|
|
120
118
|
private curActiveIndex;
|
|
121
119
|
private prevActiveIndex;
|
|
122
120
|
private navSubscription;
|
|
121
|
+
readonly type: Signal<ThyNavType>;
|
|
122
|
+
constructor();
|
|
123
123
|
ngOnInit(): void;
|
|
124
124
|
ngAfterViewInit(): void;
|
|
125
125
|
ngAfterContentInit(): void;
|
|
@@ -138,33 +138,5 @@ export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit,
|
|
|
138
138
|
ngOnChanges(changes: SimpleChanges): void;
|
|
139
139
|
ngOnDestroy(): void;
|
|
140
140
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyNav, never>;
|
|
141
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyNav, "thy-nav", never, { "thyType": { "alias": "thyType"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; "thyHorizontal": { "alias": "thyHorizontal"; "required": false; }; "thyVertical": { "alias": "thyVertical"; "required": false; }; "thyFill": { "alias": "thyFill"; "required": false; }; "thyResponsive": { "alias": "thyResponsive"; "required": false; }; "thyPauseReCalculate": { "alias": "thyPauseReCalculate"; "required": false; "isSignal": true; }; "thyInsideClosable": { "alias": "thyInsideClosable"; "required": false; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; "isSignal": true; }; "thyExtra": { "alias": "thyExtra"; "required": false; }; }, {}, ["moreOperation", "morePopover", "extra", "links"
|
|
142
|
-
static ngAcceptInputType_thyVertical: boolean | string |
|
|
143
|
-
/**
|
|
144
|
-
* 导航组件
|
|
145
|
-
* @name thy-nav
|
|
146
|
-
* @order 10
|
|
147
|
-
*/
|
|
148
|
-
number;
|
|
149
|
-
static ngAcceptInputType_thyFill: boolean | string |
|
|
150
|
-
/**
|
|
151
|
-
* 导航组件
|
|
152
|
-
* @name thy-nav
|
|
153
|
-
* @order 10
|
|
154
|
-
*/
|
|
155
|
-
number;
|
|
156
|
-
static ngAcceptInputType_thyResponsive: boolean | string |
|
|
157
|
-
/**
|
|
158
|
-
* 导航组件
|
|
159
|
-
* @name thy-nav
|
|
160
|
-
* @order 10
|
|
161
|
-
*/
|
|
162
|
-
number;
|
|
163
|
-
static ngAcceptInputType_thyInsideClosable: boolean | string |
|
|
164
|
-
/**
|
|
165
|
-
* 导航组件
|
|
166
|
-
* @name thy-nav
|
|
167
|
-
* @order 10
|
|
168
|
-
*/
|
|
169
|
-
number;
|
|
141
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyNav, "thy-nav", never, { "thyType": { "alias": "thyType"; "required": false; "isSignal": true; }; "thySize": { "alias": "thySize"; "required": false; "isSignal": true; }; "thyHorizontal": { "alias": "thyHorizontal"; "required": false; "isSignal": true; }; "thyVertical": { "alias": "thyVertical"; "required": false; "isSignal": true; }; "thyFill": { "alias": "thyFill"; "required": false; "isSignal": true; }; "thyResponsive": { "alias": "thyResponsive"; "required": false; "isSignal": true; }; "thyPauseReCalculate": { "alias": "thyPauseReCalculate"; "required": false; "isSignal": true; }; "thyInsideClosable": { "alias": "thyInsideClosable"; "required": false; "isSignal": true; }; "thyPopoverOptions": { "alias": "thyPopoverOptions"; "required": false; "isSignal": true; }; "thyExtra": { "alias": "thyExtra"; "required": false; "isSignal": true; }; }, {}, ["routers", "moreOperation", "morePopover", "extra", "links"], ["*"], true, never>;
|
|
170
142
|
}
|