@delon/abc 19.1.0 → 20.0.0-beta.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/auto-focus/index.d.ts +19 -2
- package/cell/index.d.ts +316 -6
- package/cell/style/index.less +1 -1
- package/count-down/index.d.ts +26 -5
- package/date-picker/index.d.ts +51 -5
- package/down-file/index.d.ts +34 -5
- package/ellipsis/index.d.ts +55 -5
- package/error-collect/index.d.ts +35 -5
- package/exception/index.d.ts +45 -5
- package/fesm2022/auto-focus.mjs +7 -7
- package/fesm2022/cell.mjs +14 -15
- package/fesm2022/cell.mjs.map +1 -1
- package/fesm2022/chart-observer-size.mjs +11 -11
- package/fesm2022/count-down.mjs +8 -9
- package/fesm2022/count-down.mjs.map +1 -1
- package/fesm2022/date-picker.mjs +16 -15
- package/fesm2022/date-picker.mjs.map +1 -1
- package/fesm2022/down-file.mjs +8 -8
- package/fesm2022/ellipsis.mjs +9 -9
- package/fesm2022/ellipsis.mjs.map +1 -1
- package/fesm2022/error-collect.mjs +15 -15
- package/fesm2022/error-collect.mjs.map +1 -1
- package/fesm2022/exception.mjs +94 -78
- package/fesm2022/exception.mjs.map +1 -1
- package/fesm2022/footer-toolbar.mjs +44 -22
- package/fesm2022/footer-toolbar.mjs.map +1 -1
- package/fesm2022/full-content.mjs +25 -38
- package/fesm2022/full-content.mjs.map +1 -1
- package/fesm2022/global-footer.mjs +79 -60
- package/fesm2022/global-footer.mjs.map +1 -1
- package/fesm2022/hotkey.mjs +8 -8
- package/fesm2022/loading.mjs +12 -12
- package/fesm2022/loading.mjs.map +1 -1
- package/fesm2022/lodop.mjs +12 -11
- package/fesm2022/lodop.mjs.map +1 -1
- package/fesm2022/media.mjs +12 -13
- package/fesm2022/media.mjs.map +1 -1
- package/fesm2022/notice-icon.mjs +19 -29
- package/fesm2022/notice-icon.mjs.map +1 -1
- package/fesm2022/onboarding.mjs +14 -14
- package/fesm2022/onboarding.mjs.map +1 -1
- package/fesm2022/page-header.mjs +22 -27
- package/fesm2022/page-header.mjs.map +1 -1
- package/fesm2022/pdf.mjs +13 -13
- package/fesm2022/pdf.mjs.map +1 -1
- package/fesm2022/quick-menu.mjs +9 -9
- package/fesm2022/quick-menu.mjs.map +1 -1
- package/fesm2022/reuse-tab.mjs +32 -38
- package/fesm2022/reuse-tab.mjs.map +1 -1
- package/fesm2022/se.mjs +20 -21
- package/fesm2022/se.mjs.map +1 -1
- package/fesm2022/sg.mjs +17 -18
- package/fesm2022/sg.mjs.map +1 -1
- package/fesm2022/st.mjs +84 -87
- package/fesm2022/st.mjs.map +1 -1
- package/fesm2022/sv.mjs +23 -25
- package/fesm2022/sv.mjs.map +1 -1
- package/fesm2022/tag-select.mjs +13 -29
- package/fesm2022/tag-select.mjs.map +1 -1
- package/fesm2022/xlsx.mjs +16 -15
- package/fesm2022/xlsx.mjs.map +1 -1
- package/fesm2022/zip.mjs +8 -7
- package/fesm2022/zip.mjs.map +1 -1
- package/footer-toolbar/index.d.ts +23 -5
- package/footer-toolbar/style/index.less +1 -1
- package/full-content/index.d.ts +55 -5
- package/global-footer/index.d.ts +44 -5
- package/hotkey/index.d.ts +25 -5
- package/index.d.ts +2 -5
- package/index.less +0 -2
- package/loading/index.d.ts +93 -5
- package/lodop/index.d.ts +277 -5
- package/media/index.d.ts +61 -5
- package/notice-icon/index.d.ts +90 -5
- package/notice-icon/style/index.less +2 -2
- package/observers/index.d.ts +34 -5
- package/onboarding/index.d.ts +212 -5
- package/package.json +5 -13
- package/page-header/index.d.ts +83 -5
- package/page-header/style/index.less +1 -1
- package/pdf/index.d.ts +142 -5
- package/quick-menu/index.d.ts +38 -5
- package/quick-menu/style/index.less +2 -2
- package/reuse-tab/index.d.ts +512 -3
- package/se/index.d.ts +129 -5
- package/sg/index.d.ts +44 -5
- package/st/index.d.ts +1708 -3
- package/st/style/index.less +1 -1
- package/sv/index.d.ts +96 -5
- package/sv/style/index.less +1 -1
- package/tag-select/index.d.ts +27 -5
- package/theme-dark.less +0 -4
- package/theme-default.less +0 -8
- package/xlsx/index.d.ts +71 -5
- package/zip/index.d.ts +65 -5
- package/auto-focus/auto-focus.directive.d.ts +0 -10
- package/auto-focus/auto-focus.module.d.ts +0 -7
- package/avatar-list/avatar-list-item.component.d.ts +0 -9
- package/avatar-list/avatar-list.component.d.ts +0 -29
- package/avatar-list/avatar-list.module.d.ts +0 -14
- package/avatar-list/index.d.ts +0 -5
- package/avatar-list/public_api.d.ts +0 -3
- package/avatar-list/style/index.less +0 -53
- package/avatar-list/style/rtl.less +0 -3
- package/cell/cell-host.directive.d.ts +0 -10
- package/cell/cell.component.d.ts +0 -30
- package/cell/cell.module.d.ts +0 -17
- package/cell/cell.service.d.ts +0 -19
- package/cell/cell.types.d.ts +0 -234
- package/cell/provide.d.ts +0 -10
- package/count-down/count-down.component.d.ts +0 -15
- package/count-down/count-down.module.d.ts +0 -9
- package/count-down/public_api.d.ts +0 -2
- package/date-picker/date-picker.module.d.ts +0 -11
- package/date-picker/public_api.d.ts +0 -3
- package/date-picker/range-shortcut.component.d.ts +0 -10
- package/date-picker/range.directive.d.ts +0 -30
- package/down-file/down-file.directive.d.ts +0 -23
- package/down-file/down-file.module.d.ts +0 -9
- package/down-file/public_api.d.ts +0 -2
- package/ellipsis/ellipsis.component.d.ts +0 -43
- package/ellipsis/ellipsis.module.d.ts +0 -10
- package/ellipsis/public_api.d.ts +0 -2
- package/error-collect/error-collect.component.d.ts +0 -23
- package/error-collect/error-collect.module.d.ts +0 -9
- package/error-collect/public_api.d.ts +0 -2
- package/exception/exception.component.d.ts +0 -36
- package/exception/exception.module.d.ts +0 -12
- package/exception/public_api.d.ts +0 -2
- package/fesm2022/avatar-list.mjs +0 -132
- package/fesm2022/avatar-list.mjs.map +0 -1
- package/fesm2022/result.mjs +0 -84
- package/fesm2022/result.mjs.map +0 -1
- package/footer-toolbar/footer-toolbar.component.d.ts +0 -14
- package/footer-toolbar/footer-toolbar.module.d.ts +0 -10
- package/footer-toolbar/public_api.d.ts +0 -2
- package/full-content/full-content-toggle.directive.d.ts +0 -7
- package/full-content/full-content.component.d.ts +0 -32
- package/full-content/full-content.module.d.ts +0 -9
- package/full-content/full-content.service.d.ts +0 -10
- package/full-content/public_api.d.ts +0 -4
- package/global-footer/global-footer-item.component.d.ts +0 -10
- package/global-footer/global-footer.component.d.ts +0 -22
- package/global-footer/global-footer.module.d.ts +0 -10
- package/global-footer/global-footer.types.d.ts +0 -7
- package/global-footer/public_api.d.ts +0 -4
- package/hotkey/hotkey.directive.d.ts +0 -16
- package/hotkey/hotkey.module.d.ts +0 -7
- package/hotkey/public_api.d.ts +0 -2
- package/loading/loading.component.d.ts +0 -11
- package/loading/loading.module.d.ts +0 -12
- package/loading/loading.service.d.ts +0 -34
- package/loading/loading.types.d.ts +0 -35
- package/loading/public_api.d.ts +0 -4
- package/lodop/lodop.module.d.ts +0 -6
- package/lodop/lodop.service.d.ts +0 -74
- package/lodop/lodop.types.d.ts +0 -193
- package/lodop/public_api.d.ts +0 -3
- package/media/media.component.d.ts +0 -33
- package/media/media.module.d.ts +0 -8
- package/media/media.service.d.ts +0 -17
- package/media/public_api.d.ts +0 -3
- package/notice-icon/notice-icon-tab.component.d.ts +0 -13
- package/notice-icon/notice-icon.component.d.ts +0 -25
- package/notice-icon/notice-icon.module.d.ts +0 -18
- package/notice-icon/notice-icon.types.d.ts +0 -36
- package/notice-icon/public_api.d.ts +0 -4
- package/observers/observer-size.d.ts +0 -31
- package/observers/public-api.d.ts +0 -1
- package/onboarding/onboarding.component.d.ts +0 -35
- package/onboarding/onboarding.module.d.ts +0 -13
- package/onboarding/onboarding.service.d.ts +0 -58
- package/onboarding/onboarding.storage.d.ts +0 -11
- package/onboarding/onboarding.types.d.ts +0 -95
- package/onboarding/public_api.d.ts +0 -5
- package/page-header/page-header.component.d.ts +0 -70
- package/page-header/page-header.module.d.ts +0 -14
- package/page-header/public_api.d.ts +0 -2
- package/pdf/pdf.component.d.ts +0 -101
- package/pdf/pdf.config.d.ts +0 -2
- package/pdf/pdf.module.d.ts +0 -9
- package/pdf/pdf.types.d.ts +0 -29
- package/pdf/public_api.d.ts +0 -4
- package/public_api.d.ts +0 -2
- package/quick-menu/public_api.d.ts +0 -2
- package/quick-menu/quick-menu.component.d.ts +0 -26
- package/quick-menu/quick-menu.module.d.ts +0 -10
- package/result/index.d.ts +0 -5
- package/result/public_api.d.ts +0 -2
- package/result/result.component.d.ts +0 -21
- package/result/result.module.d.ts +0 -13
- package/result/style/index.less +0 -66
- package/result/style/rtl.less +0 -3
- package/reuse-tab/lifecycle_hooks.d.ts +0 -16
- package/reuse-tab/provide.d.ts +0 -28
- package/reuse-tab/public_api.d.ts +0 -14
- package/reuse-tab/reuse-tab-context-menu.component.d.ts +0 -21
- package/reuse-tab/reuse-tab-context.component.d.ts +0 -11
- package/reuse-tab/reuse-tab-context.directive.d.ts +0 -10
- package/reuse-tab/reuse-tab-context.service.d.ts +0 -14
- package/reuse-tab/reuse-tab.cache.d.ts +0 -16
- package/reuse-tab/reuse-tab.component.d.ts +0 -79
- package/reuse-tab/reuse-tab.interfaces.d.ts +0 -110
- package/reuse-tab/reuse-tab.module.d.ts +0 -17
- package/reuse-tab/reuse-tab.service.d.ts +0 -192
- package/reuse-tab/reuse-tab.state.d.ts +0 -14
- package/reuse-tab/reuse-tab.strategy.d.ts +0 -10
- package/se/public_api.d.ts +0 -4
- package/se/se-container.component.d.ts +0 -49
- package/se/se.component.d.ts +0 -60
- package/se/se.module.d.ts +0 -12
- package/se/se.types.d.ts +0 -9
- package/sg/public_api.d.ts +0 -3
- package/sg/sg-container.component.d.ts +0 -15
- package/sg/sg.component.d.ts +0 -19
- package/sg/sg.module.d.ts +0 -9
- package/st/provide.d.ts +0 -10
- package/st/public_api.d.ts +0 -12
- package/st/st-column-source.d.ts +0 -47
- package/st/st-data-source.d.ts +0 -77
- package/st/st-export.d.ts +0 -11
- package/st/st-filter.component.d.ts +0 -23
- package/st/st-row.directive.d.ts +0 -20
- package/st/st-widget-host.directive.d.ts +0 -12
- package/st/st-widget.d.ts +0 -11
- package/st/st.component.d.ts +0 -295
- package/st/st.config.d.ts +0 -2
- package/st/st.interfaces.d.ts +0 -1193
- package/st/st.module.d.ts +0 -9
- package/st/st.types.d.ts +0 -77
- package/sv/public_api.d.ts +0 -4
- package/sv/sv-container.component.d.ts +0 -39
- package/sv/sv-value.component.d.ts +0 -10
- package/sv/sv.component.d.ts +0 -34
- package/sv/sv.module.d.ts +0 -14
- package/tag-select/public_api.d.ts +0 -2
- package/tag-select/tag-select.component.d.ts +0 -21
- package/tag-select/tag-select.module.d.ts +0 -10
- package/xlsx/public_api.d.ts +0 -4
- package/xlsx/xlsx.directive.d.ts +0 -9
- package/xlsx/xlsx.module.d.ts +0 -7
- package/xlsx/xlsx.service.d.ts +0 -27
- package/xlsx/xlsx.types.d.ts +0 -27
- package/zip/public_api.d.ts +0 -2
- package/zip/zip.service.d.ts +0 -34
- package/zip/zip.types.d.ts +0 -28
package/fesm2022/avatar-list.mjs
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, inject, ChangeDetectorRef, DestroyRef, numberAttribute, ContentChildren, NgModule } from '@angular/core';
|
|
3
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
4
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
|
-
import { NzAvatarComponent, NzAvatarModule } from 'ng-zorro-antd/avatar';
|
|
6
|
-
import { NzTooltipDirective, NzToolTipModule } from 'ng-zorro-antd/tooltip';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
|
|
9
|
-
class AvatarListItemComponent {
|
|
10
|
-
src;
|
|
11
|
-
text;
|
|
12
|
-
icon;
|
|
13
|
-
tips;
|
|
14
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.1", type: AvatarListItemComponent, isStandalone: true, selector: "avatar-list-item, [avatar-list-item]", inputs: { src: "src", text: "text", icon: "icon", tips: "tips" }, exportAs: ["avatarListItem"], ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
16
|
-
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListItemComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{
|
|
20
|
-
selector: 'avatar-list-item, [avatar-list-item]',
|
|
21
|
-
exportAs: 'avatarListItem',
|
|
22
|
-
template: `<ng-content />`,
|
|
23
|
-
preserveWhitespaces: false,
|
|
24
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
25
|
-
encapsulation: ViewEncapsulation.None
|
|
26
|
-
}]
|
|
27
|
-
}], propDecorators: { src: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}], text: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}], icon: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], tips: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}] } });
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated Will be removed in v20, Please use `nz-avatar-group` instead.
|
|
39
|
-
*/
|
|
40
|
-
class AvatarListComponent {
|
|
41
|
-
cdr = inject(ChangeDetectorRef);
|
|
42
|
-
directionality = inject(Directionality);
|
|
43
|
-
destroy$ = inject(DestroyRef);
|
|
44
|
-
inited = false;
|
|
45
|
-
_items;
|
|
46
|
-
items = [];
|
|
47
|
-
exceedCount = 0;
|
|
48
|
-
dir = 'ltr';
|
|
49
|
-
cls = '';
|
|
50
|
-
avatarSize = 'default';
|
|
51
|
-
set size(value) {
|
|
52
|
-
this.cls = `avatar-list__item${value === 'default' ? '' : ` avatar-list__${value}`}`;
|
|
53
|
-
switch (value) {
|
|
54
|
-
case 'large':
|
|
55
|
-
case 'small':
|
|
56
|
-
case 'default':
|
|
57
|
-
this.avatarSize = value;
|
|
58
|
-
break;
|
|
59
|
-
default:
|
|
60
|
-
this.avatarSize = 'small';
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
maxLength = 0;
|
|
65
|
-
excessItemsStyle = null;
|
|
66
|
-
gen() {
|
|
67
|
-
const { _items } = this;
|
|
68
|
-
const maxLength = this.maxLength > 0 ? this.maxLength : _items.length;
|
|
69
|
-
const numOfChildren = _items.length;
|
|
70
|
-
const numToShow = maxLength > 0 && maxLength >= numOfChildren ? numOfChildren : maxLength;
|
|
71
|
-
this.items = _items.toArray().slice(0, numToShow);
|
|
72
|
-
this.exceedCount = numToShow < numOfChildren ? numOfChildren - maxLength : 0;
|
|
73
|
-
this.cdr.detectChanges();
|
|
74
|
-
}
|
|
75
|
-
ngAfterViewInit() {
|
|
76
|
-
this.dir = this.directionality.value;
|
|
77
|
-
this.directionality.change.pipe(takeUntilDestroyed(this.destroy$)).subscribe(direction => {
|
|
78
|
-
this.dir = direction;
|
|
79
|
-
this.cdr.detectChanges();
|
|
80
|
-
});
|
|
81
|
-
this.gen();
|
|
82
|
-
this.inited = true;
|
|
83
|
-
}
|
|
84
|
-
ngOnChanges() {
|
|
85
|
-
if (this.inited) {
|
|
86
|
-
this.gen();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.1", type: AvatarListComponent, isStandalone: true, selector: "avatar-list", inputs: { size: "size", maxLength: ["maxLength", "maxLength", numberAttribute], excessItemsStyle: "excessItemsStyle" }, host: { properties: { "class.avatar-list": "true", "class.avatar-list-rtl": "dir === 'rtl'" } }, queries: [{ propertyName: "_items", predicate: AvatarListItemComponent }], exportAs: ["avatarList"], usesOnChanges: true, ngImport: i0, template: "<ul class=\"avatar-list__wrap\">\n @for (i of items; track $index) {\n <li [class]=\"cls\">\n @if (i.tips) {\n <nz-avatar\n nz-tooltip\n [nzTooltipTitle]=\"i.tips\"\n [nzSrc]=\"i.src\"\n [nzText]=\"i.text\"\n [nzIcon]=\"i.icon\"\n [nzSize]=\"avatarSize\"\n />\n } @else {\n <nz-avatar [nzSrc]=\"i.src\" [nzText]=\"i.text\" [nzIcon]=\"i.icon\" [nzSize]=\"avatarSize\" />\n }\n </li>\n }\n @if (exceedCount > 0) {\n <li [class]=\"cls\">\n <nz-avatar [nzSize]=\"avatarSize\" style=\"cursor: auto\" [style]=\"excessItemsStyle\" [nzText]=\"'+' + exceedCount\" />\n </li>\n }\n</ul>\n", dependencies: [{ kind: "component", type: NzAvatarComponent, selector: "nz-avatar", inputs: ["nzShape", "nzSize", "nzGap", "nzText", "nzSrc", "nzSrcSet", "nzAlt", "nzIcon"], outputs: ["nzError"], exportAs: ["nzAvatar"] }, { kind: "directive", type: NzTooltipDirective, selector: "[nz-tooltip]", inputs: ["nzTooltipTitle", "nzTooltipTitleContext", "nz-tooltip", "nzTooltipTrigger", "nzTooltipPlacement", "nzTooltipOrigin", "nzTooltipVisible", "nzTooltipMouseEnterDelay", "nzTooltipMouseLeaveDelay", "nzTooltipOverlayClassName", "nzTooltipOverlayStyle", "nzTooltipArrowPointAtCenter", "cdkConnectedOverlayPush", "nzTooltipColor"], outputs: ["nzTooltipVisibleChange"], exportAs: ["nzTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
91
|
-
}
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListComponent, decorators: [{
|
|
93
|
-
type: Component,
|
|
94
|
-
args: [{ selector: 'avatar-list', exportAs: 'avatarList', host: {
|
|
95
|
-
'[class.avatar-list]': 'true',
|
|
96
|
-
'[class.avatar-list-rtl]': `dir === 'rtl'`
|
|
97
|
-
}, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NzAvatarComponent, NzTooltipDirective], template: "<ul class=\"avatar-list__wrap\">\n @for (i of items; track $index) {\n <li [class]=\"cls\">\n @if (i.tips) {\n <nz-avatar\n nz-tooltip\n [nzTooltipTitle]=\"i.tips\"\n [nzSrc]=\"i.src\"\n [nzText]=\"i.text\"\n [nzIcon]=\"i.icon\"\n [nzSize]=\"avatarSize\"\n />\n } @else {\n <nz-avatar [nzSrc]=\"i.src\" [nzText]=\"i.text\" [nzIcon]=\"i.icon\" [nzSize]=\"avatarSize\" />\n }\n </li>\n }\n @if (exceedCount > 0) {\n <li [class]=\"cls\">\n <nz-avatar [nzSize]=\"avatarSize\" style=\"cursor: auto\" [style]=\"excessItemsStyle\" [nzText]=\"'+' + exceedCount\" />\n </li>\n }\n</ul>\n" }]
|
|
98
|
-
}], propDecorators: { _items: [{
|
|
99
|
-
type: ContentChildren,
|
|
100
|
-
args: [AvatarListItemComponent, { descendants: false }]
|
|
101
|
-
}], size: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}], maxLength: [{
|
|
104
|
-
type: Input,
|
|
105
|
-
args: [{ transform: numberAttribute }]
|
|
106
|
-
}], excessItemsStyle: [{
|
|
107
|
-
type: Input
|
|
108
|
-
}] } });
|
|
109
|
-
|
|
110
|
-
const COMPONENTS = [AvatarListComponent, AvatarListItemComponent];
|
|
111
|
-
/**
|
|
112
|
-
* @deprecated Will be removed in v20, Please use `nz-avatar-group` instead.
|
|
113
|
-
*/
|
|
114
|
-
class AvatarListModule {
|
|
115
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
116
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: AvatarListModule, imports: [CommonModule, NzAvatarModule, NzToolTipModule, AvatarListComponent, AvatarListItemComponent], exports: [AvatarListComponent, AvatarListItemComponent] });
|
|
117
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListModule, imports: [CommonModule, NzAvatarModule, NzToolTipModule, AvatarListComponent] });
|
|
118
|
-
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AvatarListModule, decorators: [{
|
|
120
|
-
type: NgModule,
|
|
121
|
-
args: [{
|
|
122
|
-
imports: [CommonModule, NzAvatarModule, NzToolTipModule, ...COMPONENTS],
|
|
123
|
-
exports: COMPONENTS
|
|
124
|
-
}]
|
|
125
|
-
}] });
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Generated bundle index. Do not edit.
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
|
-
export { AvatarListComponent, AvatarListItemComponent, AvatarListModule };
|
|
132
|
-
//# sourceMappingURL=avatar-list.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-list.mjs","sources":["../../../../packages/abc/avatar-list/avatar-list-item.component.ts","../../../../packages/abc/avatar-list/avatar-list.component.ts","../../../../packages/abc/avatar-list/avatar-list.component.html","../../../../packages/abc/avatar-list/avatar-list.module.ts","../../../../packages/abc/avatar-list/avatar-list.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'avatar-list-item, [avatar-list-item]',\n exportAs: 'avatarListItem',\n template: `<ng-content />`,\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None\n})\nexport class AvatarListItemComponent {\n @Input() src?: string;\n @Input() text?: string;\n @Input() icon?: string;\n @Input() tips?: string;\n}\n","import { Direction, Directionality } from '@angular/cdk/bidi';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n DestroyRef,\n Input,\n OnChanges,\n QueryList,\n ViewEncapsulation,\n inject,\n numberAttribute\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { NzAvatarComponent } from 'ng-zorro-antd/avatar';\nimport type { NgStyleInterface, NzSizeLDSType } from 'ng-zorro-antd/core/types';\nimport { NzTooltipDirective } from 'ng-zorro-antd/tooltip';\n\nimport { AvatarListItemComponent } from './avatar-list-item.component';\n\n/**\n * @deprecated Will be removed in v20, Please use `nz-avatar-group` instead.\n */\n@Component({\n selector: 'avatar-list',\n exportAs: 'avatarList',\n templateUrl: './avatar-list.component.html',\n host: {\n '[class.avatar-list]': 'true',\n '[class.avatar-list-rtl]': `dir === 'rtl'`\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NzAvatarComponent, NzTooltipDirective]\n})\nexport class AvatarListComponent implements AfterViewInit, OnChanges {\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly directionality = inject(Directionality);\n private readonly destroy$ = inject(DestroyRef);\n\n private inited = false;\n @ContentChildren(AvatarListItemComponent, { descendants: false })\n private readonly _items!: QueryList<AvatarListItemComponent>;\n\n items: AvatarListItemComponent[] = [];\n exceedCount = 0;\n dir?: Direction = 'ltr';\n\n cls = '';\n avatarSize: NzSizeLDSType = 'default';\n @Input()\n set size(value: 'large' | 'small' | 'mini' | 'default') {\n this.cls = `avatar-list__item${value === 'default' ? '' : ` avatar-list__${value}`}`;\n switch (value) {\n case 'large':\n case 'small':\n case 'default':\n this.avatarSize = value;\n break;\n default:\n this.avatarSize = 'small';\n break;\n }\n }\n @Input({ transform: numberAttribute }) maxLength = 0;\n @Input() excessItemsStyle: NgStyleInterface | null = null;\n\n private gen(): void {\n const { _items } = this;\n const maxLength = this.maxLength > 0 ? this.maxLength : _items.length;\n const numOfChildren = _items.length;\n const numToShow = maxLength > 0 && maxLength >= numOfChildren ? numOfChildren : maxLength;\n this.items = _items.toArray().slice(0, numToShow);\n this.exceedCount = numToShow < numOfChildren ? numOfChildren - maxLength : 0;\n this.cdr.detectChanges();\n }\n\n ngAfterViewInit(): void {\n this.dir = this.directionality.value;\n this.directionality.change.pipe(takeUntilDestroyed(this.destroy$)).subscribe(direction => {\n this.dir = direction;\n this.cdr.detectChanges();\n });\n this.gen();\n this.inited = true;\n }\n\n ngOnChanges(): void {\n if (this.inited) {\n this.gen();\n }\n }\n}\n","<ul class=\"avatar-list__wrap\">\n @for (i of items; track $index) {\n <li [class]=\"cls\">\n @if (i.tips) {\n <nz-avatar\n nz-tooltip\n [nzTooltipTitle]=\"i.tips\"\n [nzSrc]=\"i.src\"\n [nzText]=\"i.text\"\n [nzIcon]=\"i.icon\"\n [nzSize]=\"avatarSize\"\n />\n } @else {\n <nz-avatar [nzSrc]=\"i.src\" [nzText]=\"i.text\" [nzIcon]=\"i.icon\" [nzSize]=\"avatarSize\" />\n }\n </li>\n }\n @if (exceedCount > 0) {\n <li [class]=\"cls\">\n <nz-avatar [nzSize]=\"avatarSize\" style=\"cursor: auto\" [style]=\"excessItemsStyle\" [nzText]=\"'+' + exceedCount\" />\n </li>\n }\n</ul>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzAvatarModule } from 'ng-zorro-antd/avatar';\nimport { NzToolTipModule } from 'ng-zorro-antd/tooltip';\n\nimport { AvatarListItemComponent } from './avatar-list-item.component';\nimport { AvatarListComponent } from './avatar-list.component';\n\nconst COMPONENTS = [AvatarListComponent, AvatarListItemComponent];\n\n/**\n * @deprecated Will be removed in v20, Please use `nz-avatar-group` instead.\n */\n@NgModule({\n imports: [CommonModule, NzAvatarModule, NzToolTipModule, ...COMPONENTS],\n exports: COMPONENTS\n})\nexport class AvatarListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;MAUa,uBAAuB,CAAA;AACzB,IAAA,GAAG;AACH,IAAA,IAAI;AACJ,IAAA,IAAI;AACJ,IAAA,IAAI;uGAJF,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,uBAAuB,gMALxB,CAAgB,cAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAKf,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBARnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sCAAsC;AAChD,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,QAAQ,EAAE,CAAgB,cAAA,CAAA;AAC1B,oBAAA,mBAAmB,EAAE,KAAK;oBAC1B,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC;AAClC,iBAAA;8BAEU,GAAG,EAAA,CAAA;sBAAX;gBACQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,IAAI,EAAA,CAAA;sBAAZ;;;ACSH;;AAEG;MAcU,mBAAmB,CAAA;AACb,IAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC/B,IAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,IAAA,QA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gB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAHjB,OAAA,EAAA,CAAA,YAAY,EAAE,cAAc,EAAE,eAAe,EANrC,mBAAmB,EAAE,uBAAuB,CAA5C,EAAA,OAAA,EAAA,CAAA,mBAAmB,EAAE,uBAAuB,CAAA,EAAA,CAAA;AASnD,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAHjB,YAAY,EAAE,cAAc,EAAE,eAAe,EANrC,mBAAmB,CAAA,EAAA,CAAA;;2FAS1B,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC;AACvE,oBAAA,OAAO,EAAE;AACV,iBAAA;;;ACjBD;;AAEG;;;;"}
|
package/fesm2022/result.mjs
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, ChangeDetectorRef, DestroyRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, NgModule } from '@angular/core';
|
|
4
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
|
-
import { NzStringTemplateOutletDirective, NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
|
6
|
-
import { NzIconDirective, NzIconModule } from 'ng-zorro-antd/icon';
|
|
7
|
-
import { CommonModule } from '@angular/common';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Will be removed in v20, Please use `nz-result` instead.
|
|
11
|
-
*/
|
|
12
|
-
class ResultComponent {
|
|
13
|
-
cdr = inject(ChangeDetectorRef);
|
|
14
|
-
directionality = inject(Directionality);
|
|
15
|
-
destroy$ = inject(DestroyRef);
|
|
16
|
-
_type = '';
|
|
17
|
-
_icon = '';
|
|
18
|
-
set type(value) {
|
|
19
|
-
this._type = value;
|
|
20
|
-
switch (value) {
|
|
21
|
-
case 'success':
|
|
22
|
-
this._icon = 'check-circle';
|
|
23
|
-
break;
|
|
24
|
-
case 'error':
|
|
25
|
-
this._icon = 'close-circle';
|
|
26
|
-
break;
|
|
27
|
-
default:
|
|
28
|
-
this._icon = value;
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
title;
|
|
33
|
-
description;
|
|
34
|
-
extra;
|
|
35
|
-
dir = 'ltr';
|
|
36
|
-
ngOnInit() {
|
|
37
|
-
this.dir = this.directionality.value;
|
|
38
|
-
this.directionality.change.pipe(takeUntilDestroyed(this.destroy$)).subscribe(direction => {
|
|
39
|
-
this.dir = direction;
|
|
40
|
-
this.cdr.detectChanges();
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ResultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.1", type: ResultComponent, isStandalone: true, selector: "result", inputs: { type: "type", title: "title", description: "description", extra: "extra" }, host: { properties: { "class.result": "true", "class.result-rtl": "dir === 'rtl'" } }, exportAs: ["result"], ngImport: i0, template: "<div class=\"result__icon\">\n <nz-icon [nzType]=\"_icon\" class=\"result__icon-{{ _type }}\" />\n</div>\n<div class=\"result__title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n</div>\n@if (description) {\n <div class=\"result__desc\">\n <ng-container *nzStringTemplateOutlet=\"description\">{{ description }}</ng-container>\n </div>\n}\n@if (extra) {\n <div class=\"result__extra\">\n <ng-container *nzStringTemplateOutlet=\"extra\">{{ extra }}</ng-container>\n </div>\n}\n<div class=\"result__actions\">\n <ng-content />\n</div>\n", dependencies: [{ kind: "directive", type: NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
45
|
-
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ResultComponent, decorators: [{
|
|
47
|
-
type: Component,
|
|
48
|
-
args: [{ selector: 'result', exportAs: 'result', host: {
|
|
49
|
-
'[class.result]': 'true',
|
|
50
|
-
'[class.result-rtl]': `dir === 'rtl'`
|
|
51
|
-
}, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [NzIconDirective, NzStringTemplateOutletDirective], template: "<div class=\"result__icon\">\n <nz-icon [nzType]=\"_icon\" class=\"result__icon-{{ _type }}\" />\n</div>\n<div class=\"result__title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n</div>\n@if (description) {\n <div class=\"result__desc\">\n <ng-container *nzStringTemplateOutlet=\"description\">{{ description }}</ng-container>\n </div>\n}\n@if (extra) {\n <div class=\"result__extra\">\n <ng-container *nzStringTemplateOutlet=\"extra\">{{ extra }}</ng-container>\n </div>\n}\n<div class=\"result__actions\">\n <ng-content />\n</div>\n" }]
|
|
52
|
-
}], propDecorators: { type: [{
|
|
53
|
-
type: Input
|
|
54
|
-
}], title: [{
|
|
55
|
-
type: Input
|
|
56
|
-
}], description: [{
|
|
57
|
-
type: Input
|
|
58
|
-
}], extra: [{
|
|
59
|
-
type: Input
|
|
60
|
-
}] } });
|
|
61
|
-
|
|
62
|
-
const COMPONENTS = [ResultComponent];
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated Will be removed in v20, Please use `nz-result` instead.
|
|
65
|
-
*/
|
|
66
|
-
class ResultModule {
|
|
67
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ResultModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
68
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: ResultModule, imports: [CommonModule, NzIconModule, NzOutletModule, ResultComponent], exports: [ResultComponent] });
|
|
69
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ResultModule, imports: [CommonModule, NzIconModule, NzOutletModule] });
|
|
70
|
-
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ResultModule, decorators: [{
|
|
72
|
-
type: NgModule,
|
|
73
|
-
args: [{
|
|
74
|
-
imports: [CommonModule, NzIconModule, NzOutletModule, ...COMPONENTS],
|
|
75
|
-
exports: COMPONENTS
|
|
76
|
-
}]
|
|
77
|
-
}] });
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Generated bundle index. Do not edit.
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
export { ResultComponent, ResultModule };
|
|
84
|
-
//# sourceMappingURL=result.mjs.map
|
package/fesm2022/result.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"result.mjs","sources":["../../../../packages/abc/result/result.component.ts","../../../../packages/abc/result/result.component.html","../../../../packages/abc/result/result.module.ts","../../../../packages/abc/result/result.ts"],"sourcesContent":["import { Direction, Directionality } from '@angular/cdk/bidi';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n Input,\n OnInit,\n TemplateRef,\n ViewEncapsulation,\n inject\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet';\nimport { NzIconDirective } from 'ng-zorro-antd/icon';\n\n/**\n * @deprecated Will be removed in v20, Please use `nz-result` instead.\n */\n@Component({\n selector: 'result',\n exportAs: 'result',\n templateUrl: './result.component.html',\n host: {\n '[class.result]': 'true',\n '[class.result-rtl]': `dir === 'rtl'`\n },\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [NzIconDirective, NzStringTemplateOutletDirective]\n})\nexport class ResultComponent implements OnInit {\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly directionality = inject(Directionality);\n private readonly destroy$ = inject(DestroyRef);\n\n _type = '';\n _icon = '';\n @Input()\n set type(value: string) {\n this._type = value;\n switch (value) {\n case 'success':\n this._icon = 'check-circle';\n break;\n case 'error':\n this._icon = 'close-circle';\n break;\n default:\n this._icon = value;\n break;\n }\n }\n\n @Input() title?: string | TemplateRef<void>;\n @Input() description?: string | TemplateRef<void>;\n @Input() extra?: string | TemplateRef<void>;\n dir?: Direction = 'ltr';\n\n ngOnInit(): void {\n this.dir = this.directionality.value;\n this.directionality.change.pipe(takeUntilDestroyed(this.destroy$)).subscribe(direction => {\n this.dir = direction;\n this.cdr.detectChanges();\n });\n }\n}\n","<div class=\"result__icon\">\n <nz-icon [nzType]=\"_icon\" class=\"result__icon-{{ _type }}\" />\n</div>\n<div class=\"result__title\">\n <ng-container *nzStringTemplateOutlet=\"title\">{{ title }}</ng-container>\n</div>\n@if (description) {\n <div class=\"result__desc\">\n <ng-container *nzStringTemplateOutlet=\"description\">{{ description }}</ng-container>\n </div>\n}\n@if (extra) {\n <div class=\"result__extra\">\n <ng-container *nzStringTemplateOutlet=\"extra\">{{ extra }}</ng-container>\n </div>\n}\n<div class=\"result__actions\">\n <ng-content />\n</div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NzOutletModule } from 'ng-zorro-antd/core/outlet';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\nimport { ResultComponent } from './result.component';\n\nconst COMPONENTS = [ResultComponent];\n\n/**\n * @deprecated Will be removed in v20, Please use `nz-result` instead.\n */\n@NgModule({\n imports: [CommonModule, NzIconModule, NzOutletModule, ...COMPONENTS],\n exports: COMPONENTS\n})\nexport class ResultModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAiBA;;AAEG;MAcU,eAAe,CAAA;AACT,IAAA,GAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAC/B,IAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,IAAA,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC;IAE9C,KAAK,GAAG,EAAE;IACV,KAAK,GAAG,EAAE;IACV,IACI,IAAI,CAAC,KAAa,EAAA;AACpB,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK;QAClB,QAAQ,KAAK;AACX,YAAA,KAAK,SAAS;AACZ,gBAAA,IAAI,CAAC,KAAK,GAAG,cAAc;gBAC3B;AACF,YAAA,KAAK,OAAO;AACV,gBAAA,IAAI,CAAC,KAAK,GAAG,cAAc;gBAC3B;AACF,YAAA;AACE,gBAAA,IAAI,CAAC,KAAK,GAAG,KAAK;gBAClB;;;AAIG,IAAA,KAAK;AACL,IAAA,WAAW;AACX,IAAA,KAAK;IACd,GAAG,GAAe,KAAK;IAEvB,QAAQ,GAAA;QACN,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,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 @@
|
|
|
1
|
-
import { OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FooterToolbarComponent implements OnInit, OnDestroy {
|
|
4
|
-
private readonly el;
|
|
5
|
-
private readonly renderer;
|
|
6
|
-
private readonly bodyCls;
|
|
7
|
-
errorCollect: boolean;
|
|
8
|
-
extra?: string | TemplateRef<void>;
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
ngOnDestroy(): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FooterToolbarComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FooterToolbarComponent, "footer-toolbar", ["footerToolbar"], { "errorCollect": { "alias": "errorCollect"; "required": false; }; "extra": { "alias": "extra"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
13
|
-
static ngAcceptInputType_errorCollect: unknown;
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "@delon/abc/error-collect";
|
|
4
|
-
import * as i3 from "ng-zorro-antd/core/outlet";
|
|
5
|
-
import * as i4 from "./footer-toolbar.component";
|
|
6
|
-
export declare class FooterToolbarModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FooterToolbarModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FooterToolbarModule, never, [typeof i1.CommonModule, typeof i2.ErrorCollectModule, typeof i3.NzOutletModule, typeof i4.FooterToolbarComponent], [typeof i4.FooterToolbarComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FooterToolbarModule>;
|
|
10
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class FullContentToggleDirective {
|
|
3
|
-
private readonly parent;
|
|
4
|
-
_click(): void;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FullContentToggleDirective, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FullContentToggleDirective, "[full-toggle]", ["fullToggle"], {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FullContentComponent implements AfterViewInit, OnInit, OnChanges, OnDestroy {
|
|
4
|
-
private readonly destroy$;
|
|
5
|
-
private readonly el;
|
|
6
|
-
private readonly cdr;
|
|
7
|
-
private readonly srv;
|
|
8
|
-
private readonly router;
|
|
9
|
-
private readonly doc;
|
|
10
|
-
private bodyEl;
|
|
11
|
-
private inited;
|
|
12
|
-
private id;
|
|
13
|
-
_height: number;
|
|
14
|
-
fullscreen?: boolean;
|
|
15
|
-
hideTitle: boolean;
|
|
16
|
-
padding: number;
|
|
17
|
-
readonly fullscreenChange: EventEmitter<boolean>;
|
|
18
|
-
private updateCls;
|
|
19
|
-
private update;
|
|
20
|
-
private updateHeight;
|
|
21
|
-
private removeInBody;
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
toggle(): void;
|
|
24
|
-
ngAfterViewInit(): void;
|
|
25
|
-
ngOnChanges(): void;
|
|
26
|
-
ngOnDestroy(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FullContentComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FullContentComponent, "full-content", ["fullContent"], { "fullscreen": { "alias": "fullscreen"; "required": false; }; "hideTitle": { "alias": "hideTitle"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; }, { "fullscreenChange": "fullscreenChange"; }, never, ["*"], true, never>;
|
|
29
|
-
static ngAcceptInputType_fullscreen: unknown;
|
|
30
|
-
static ngAcceptInputType_hideTitle: unknown;
|
|
31
|
-
static ngAcceptInputType_padding: unknown;
|
|
32
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "./full-content.component";
|
|
4
|
-
import * as i3 from "./full-content-toggle.directive";
|
|
5
|
-
export declare class FullContentModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FullContentModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FullContentModule, never, [typeof i1.CommonModule, typeof i2.FullContentComponent, typeof i3.FullContentToggleDirective], [typeof i2.FullContentComponent, typeof i3.FullContentToggleDirective]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FullContentModule>;
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FullContentService {
|
|
4
|
-
private _change;
|
|
5
|
-
/** 切换全屏工作区状态 */
|
|
6
|
-
toggle(): void;
|
|
7
|
-
get change(): Observable<boolean | null>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FullContentService, never>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FullContentService>;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class GlobalFooterItemComponent {
|
|
4
|
-
host: TemplateRef<void>;
|
|
5
|
-
href?: string;
|
|
6
|
-
blankTarget?: boolean;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalFooterItemComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GlobalFooterItemComponent, "global-footer-item", ["globalFooterItem"], { "href": { "alias": "href"; "required": false; }; "blankTarget": { "alias": "blankTarget"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
9
|
-
static ngAcceptInputType_blankTarget: unknown;
|
|
10
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Direction } from '@angular/cdk/bidi';
|
|
2
|
-
import { OnInit, QueryList } from '@angular/core';
|
|
3
|
-
import { GlobalFooterItemComponent } from './global-footer-item.component';
|
|
4
|
-
import { GlobalFooterLink } from './global-footer.types';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class GlobalFooterComponent implements OnInit {
|
|
7
|
-
private readonly router;
|
|
8
|
-
private readonly win;
|
|
9
|
-
private readonly dom;
|
|
10
|
-
private readonly directionality;
|
|
11
|
-
private readonly cdr;
|
|
12
|
-
private readonly destroy$;
|
|
13
|
-
private _links;
|
|
14
|
-
dir?: Direction;
|
|
15
|
-
set links(val: GlobalFooterLink[]);
|
|
16
|
-
get links(): GlobalFooterLink[];
|
|
17
|
-
readonly items: QueryList<GlobalFooterItemComponent>;
|
|
18
|
-
to(item: GlobalFooterLink | GlobalFooterItemComponent): void;
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalFooterComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GlobalFooterComponent, "global-footer", ["globalFooter"], { "links": { "alias": "links"; "required": false; }; }, {}, ["items"], ["*"], true, never>;
|
|
22
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "@angular/router";
|
|
4
|
-
import * as i3 from "./global-footer.component";
|
|
5
|
-
import * as i4 from "./global-footer-item.component";
|
|
6
|
-
export declare class GlobalFooterModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GlobalFooterModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GlobalFooterModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.GlobalFooterComponent, typeof i4.GlobalFooterItemComponent], [typeof i3.GlobalFooterComponent, typeof i4.GlobalFooterItemComponent]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<GlobalFooterModule>;
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class HotkeyDirective implements OnDestroy {
|
|
4
|
-
private readonly el;
|
|
5
|
-
private readonly ngZone;
|
|
6
|
-
private readonly platform;
|
|
7
|
-
/**
|
|
8
|
-
* Specify [hotkey format](https://github.com/github/hotkey#hotkey-string-format), you can get the code through [Hotkey Code](https://github.github.com/hotkey/hotkey_mapper.html)
|
|
9
|
-
*
|
|
10
|
-
* 指定[热键格式](https://github.com/github/hotkey#hotkey-string-format),可以通过 [Hotkey Code](https://github.github.com/hotkey/hotkey_mapper.html) 来获取代码。
|
|
11
|
-
*/
|
|
12
|
-
set hotkey(key: string);
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HotkeyDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HotkeyDirective, "[hotkey]", never, { "hotkey": { "alias": "hotkey"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./hotkey.directive";
|
|
3
|
-
export declare class HotkeyModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HotkeyModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HotkeyModule, never, [typeof i1.HotkeyDirective], [typeof i1.HotkeyDirective]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<HotkeyModule>;
|
|
7
|
-
}
|
package/hotkey/public_api.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Direction } from '@angular/cdk/bidi';
|
|
2
|
-
import { LoadingCustom, LoadingIcon, LoadingShowOptions } from './loading.types';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class LoadingDefaultComponent {
|
|
5
|
-
options: LoadingShowOptions;
|
|
6
|
-
dir?: Direction;
|
|
7
|
-
get icon(): LoadingIcon;
|
|
8
|
-
get custom(): LoadingCustom;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingDefaultComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingDefaultComponent, "loading-default", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "@angular/cdk/overlay";
|
|
4
|
-
import * as i3 from "@angular/cdk/portal";
|
|
5
|
-
import * as i4 from "ng-zorro-antd/icon";
|
|
6
|
-
import * as i5 from "ng-zorro-antd/spin";
|
|
7
|
-
import * as i6 from "./loading.component";
|
|
8
|
-
export declare class LoadingModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LoadingModule, never, [typeof i1.CommonModule, typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.NzIconModule, typeof i5.NzSpinModule, typeof i6.LoadingDefaultComponent], [typeof i6.LoadingDefaultComponent]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LoadingModule>;
|
|
12
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { LoadingDefaultComponent } from './loading.component';
|
|
3
|
-
import { LoadingShowOptions } from './loading.types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LoadingService implements OnDestroy {
|
|
6
|
-
private readonly overlay;
|
|
7
|
-
private readonly configSrv;
|
|
8
|
-
private readonly directionality;
|
|
9
|
-
private _overlayRef?;
|
|
10
|
-
private compRef;
|
|
11
|
-
private opt;
|
|
12
|
-
private cog;
|
|
13
|
-
private n$;
|
|
14
|
-
private loading$;
|
|
15
|
-
get instance(): LoadingDefaultComponent | null;
|
|
16
|
-
constructor();
|
|
17
|
-
private create;
|
|
18
|
-
/**
|
|
19
|
-
* Open a new loading indicator
|
|
20
|
-
*
|
|
21
|
-
* 打开一个新加载指示符
|
|
22
|
-
*/
|
|
23
|
-
open(options?: LoadingShowOptions): void;
|
|
24
|
-
private _close;
|
|
25
|
-
/**
|
|
26
|
-
* Turn off a loading indicator
|
|
27
|
-
*
|
|
28
|
-
* 关闭一个加载指示符
|
|
29
|
-
*/
|
|
30
|
-
close(): void;
|
|
31
|
-
ngOnDestroy(): void;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingService, never>;
|
|
33
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingService>;
|
|
34
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
2
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
3
|
-
export type LoadingType = 'text' | 'icon' | 'spin' | 'custom';
|
|
4
|
-
export interface LoadingIcon {
|
|
5
|
-
type?: string;
|
|
6
|
-
theme?: 'fill' | 'outline' | 'twotone';
|
|
7
|
-
spin?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface LoadingCustom {
|
|
10
|
-
html?: string | SafeHtml;
|
|
11
|
-
style?: Record<string, NzSafeAny>;
|
|
12
|
-
[key: string]: NzSafeAny;
|
|
13
|
-
}
|
|
14
|
-
export interface LoadingShowOptions {
|
|
15
|
-
/**
|
|
16
|
-
* Display type of loading indicator
|
|
17
|
-
*/
|
|
18
|
-
type?: LoadingType;
|
|
19
|
-
/**
|
|
20
|
-
* Customized description content
|
|
21
|
-
*/
|
|
22
|
-
text?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Custom icon
|
|
25
|
-
*/
|
|
26
|
-
icon?: LoadingIcon;
|
|
27
|
-
/**
|
|
28
|
-
* Custom loading indicator
|
|
29
|
-
*/
|
|
30
|
-
custom?: LoadingCustom;
|
|
31
|
-
/**
|
|
32
|
-
* Specifies a delay in milliseconds for loading state (prevent flush), unit: milliseconds
|
|
33
|
-
*/
|
|
34
|
-
delay?: number;
|
|
35
|
-
}
|
package/loading/public_api.d.ts
DELETED
package/lodop/lodop.module.d.ts
DELETED