ngx-tethys 17.0.2 → 17.0.4
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 +23 -0
- package/autocomplete/autocomplete.component.d.ts +2 -5
- package/cascader/cascader.component.d.ts +9 -1
- package/cascader/cascader.service.d.ts +3 -0
- package/drag-drop/drag.directive.d.ts +1 -4
- package/drag-drop/drop-container.directive.d.ts +4 -5
- package/dropdown/dropdown-submenu.component.d.ts +3 -6
- package/esm2022/autocomplete/autocomplete.component.mjs +7 -14
- package/esm2022/button/button-group.component.mjs +2 -2
- package/esm2022/cascader/cascader.component.mjs +27 -5
- package/esm2022/cascader/cascader.service.mjs +33 -3
- package/esm2022/core/behaviors/disabled.mjs +2 -2
- package/esm2022/date-picker/abstract-picker.directive.mjs +3 -3
- package/esm2022/date-picker/base-picker.component.mjs +3 -2
- package/esm2022/drag-drop/drag.directive.mjs +3 -7
- package/esm2022/drag-drop/drop-container.directive.mjs +9 -7
- package/esm2022/dropdown/dropdown-submenu.component.mjs +7 -12
- package/esm2022/form/form.directive.mjs +3 -2
- package/esm2022/grid/thy-grid-item.component.mjs +7 -11
- package/esm2022/image/preview/image-preview.component.mjs +9 -13
- package/esm2022/input/input-count.component.mjs +9 -10
- package/esm2022/input/input-group.component.mjs +9 -9
- package/esm2022/nav/nav-item.directive.mjs +7 -13
- package/esm2022/nav/nav.component.mjs +8 -13
- package/esm2022/radio/button/radio-button.component.mjs +2 -2
- package/esm2022/radio/group/radio-group.component.mjs +6 -1
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/resizable/resizable.directive.mjs +11 -14
- package/esm2022/resizable/resize-handle.component.mjs +8 -13
- package/esm2022/shared/directives/thy-drag-drop.directive.mjs +8 -8
- package/esm2022/space/space.component.mjs +7 -9
- package/esm2022/table/table-column.component.mjs +3 -2
- package/esm2022/table/table.component.mjs +11 -12
- package/esm2022/tabs/tabs.component.mjs +8 -10
- package/esm2022/time-picker/time-picker.utils.mjs +8 -8
- package/esm2022/util/helpers/helpers.mjs +10 -1
- package/esm2022/version.mjs +2 -2
- package/esm2022/watermark/watermark.directive.mjs +9 -14
- package/fesm2022/ngx-tethys-autocomplete.mjs +8 -14
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-button.mjs +2 -1
- package/fesm2022/ngx-tethys-button.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +58 -6
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-core.mjs +2 -2
- package/fesm2022/ngx-tethys-core.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +2 -2
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-drag-drop.mjs +9 -10
- package/fesm2022/ngx-tethys-drag-drop.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +8 -11
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +2 -1
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-grid.mjs +6 -10
- package/fesm2022/ngx-tethys-grid.mjs.map +1 -1
- package/fesm2022/ngx-tethys-image.mjs +10 -12
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-input.mjs +13 -14
- package/fesm2022/ngx-tethys-input.mjs.map +1 -1
- package/fesm2022/ngx-tethys-nav.mjs +11 -21
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs +6 -1
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-resizable.mjs +15 -22
- package/fesm2022/ngx-tethys-resizable.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +8 -7
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-space.mjs +7 -8
- package/fesm2022/ngx-tethys-space.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +12 -12
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tabs.mjs +7 -9
- package/fesm2022/ngx-tethys-tabs.mjs.map +1 -1
- package/fesm2022/ngx-tethys-time-picker.mjs +8 -7
- package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-util.mjs +9 -0
- package/fesm2022/ngx-tethys-util.mjs.map +1 -1
- package/fesm2022/ngx-tethys-watermark.mjs +8 -13
- package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/grid/thy-grid-item.component.d.ts +3 -6
- package/image/preview/image-preview.component.d.ts +3 -6
- package/input/input-count.component.d.ts +2 -4
- package/input/input-group.component.d.ts +3 -4
- package/nav/nav-item.directive.d.ts +3 -6
- package/nav/nav.component.d.ts +3 -6
- package/package.json +1 -1
- package/resizable/resizable.directive.d.ts +2 -4
- package/resizable/resize-handle.component.d.ts +3 -6
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/shared/directives/thy-drag-drop.directive.d.ts +2 -4
- package/space/space.component.d.ts +2 -4
- package/table/table.component.d.ts +3 -3
- package/tabs/tabs.component.d.ts +2 -4
- package/util/helpers/helpers.d.ts +12 -0
- package/watermark/watermark.directive.d.ts +3 -6
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { OnInit, ChangeDetectorRef, ElementRef, NgZone,
|
|
1
|
+
import { OnInit, ChangeDetectorRef, ElementRef, NgZone, EventEmitter } from '@angular/core';
|
|
2
2
|
import { InternalImageInfo, ThyImageInfo, ThyImagePreviewMode, ThyImagePreviewOperation, ThyImagePreviewOptions } from '../image.class';
|
|
3
|
-
import { MixinBase } from 'ngx-tethys/core';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
import { ThyDialog } from 'ngx-tethys/dialog';
|
|
6
5
|
import { ThyFullscreen } from 'ngx-tethys/fullscreen';
|
|
@@ -8,13 +7,12 @@ import { ThyCopyEvent } from 'ngx-tethys/copy';
|
|
|
8
7
|
import { ThyNotifyService } from 'ngx-tethys/notify';
|
|
9
8
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
|
-
declare const ThyImagePreview_base: import("ngx-tethys/core").Constructor<import("ngx-tethys/core").ThyUnsubscribe> & typeof MixinBase;
|
|
12
10
|
/**
|
|
13
11
|
* 图片预览组件
|
|
14
12
|
* @name thy-image-preview
|
|
15
13
|
* @order 20
|
|
16
14
|
*/
|
|
17
|
-
export declare class ThyImagePreview
|
|
15
|
+
export declare class ThyImagePreview implements OnInit {
|
|
18
16
|
thyDialog: ThyDialog;
|
|
19
17
|
thyFullscreen: ThyFullscreen;
|
|
20
18
|
private cdr;
|
|
@@ -23,6 +21,7 @@ export declare class ThyImagePreview extends ThyImagePreview_base implements OnI
|
|
|
23
21
|
private host;
|
|
24
22
|
private sanitizer;
|
|
25
23
|
downloadClicked: EventEmitter<ThyImageInfo>;
|
|
24
|
+
private readonly destroyRef;
|
|
26
25
|
images: InternalImageInfo[];
|
|
27
26
|
previewIndex: number;
|
|
28
27
|
previewConfig: ThyImagePreviewOptions;
|
|
@@ -70,8 +69,6 @@ export declare class ThyImagePreview extends ThyImagePreview_base implements OnI
|
|
|
70
69
|
private reset;
|
|
71
70
|
private updatePreviewImageTransform;
|
|
72
71
|
private updatePreviewImageWrapperTransform;
|
|
73
|
-
ngOnDestroy(): void;
|
|
74
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyImagePreview, never>;
|
|
75
73
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyImagePreview, "thy-image-preview", ["thyImagePreview"], {}, { "downloadClicked": "downloadClicked"; }, never, never, true, never>;
|
|
76
74
|
}
|
|
77
|
-
export {};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { OnInit, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { ThyInputDirective } from './input.directive';
|
|
3
|
-
import { MixinBase } from 'ngx-tethys/core';
|
|
4
3
|
import { Subject } from 'rxjs';
|
|
5
4
|
import { ThyInputGroup } from './input-group.component';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
declare const _Base: import("ngx-tethys/core").Constructor<import("ngx-tethys/core").ThyUnsubscribe> & typeof MixinBase;
|
|
8
6
|
/**
|
|
9
7
|
* 输入框输入文字展示
|
|
10
8
|
* @name thy-input-count
|
|
11
9
|
* @order 40
|
|
12
10
|
*/
|
|
13
|
-
export declare class ThyInputCount
|
|
11
|
+
export declare class ThyInputCount implements OnInit {
|
|
14
12
|
private changeDetectorRef;
|
|
15
13
|
private inputGroup;
|
|
14
|
+
private readonly destroyRef;
|
|
16
15
|
private hasInput;
|
|
17
16
|
/**
|
|
18
17
|
* 输入框组件,如果不传默认会读取外层 thy-input-group 下的 thyInput 指令
|
|
@@ -28,4 +27,3 @@ export declare class ThyInputCount extends _Base implements OnInit {
|
|
|
28
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyInputCount, [null, { optional: true; }]>;
|
|
29
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyInputCount, "thy-input-count", never, { "thyInput": { "alias": "thyInput"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
29
|
}
|
|
31
|
-
export {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { TemplateRef, AfterContentChecked, OnInit, OnDestroy, ChangeDetectorRef, NgZone } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ThyTranslate } from 'ngx-tethys/core';
|
|
3
3
|
import { ThyInputDirective } from './input.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export type InputGroupSize = 'sm' | 'lg' | 'md' | '';
|
|
6
|
-
declare const ThyInputGroup_base: import("ngx-tethys/core").Constructor<import("ngx-tethys/core").ThyUnsubscribe> & typeof MixinBase;
|
|
7
6
|
/**
|
|
8
7
|
* 输入框分组
|
|
9
8
|
* @name thy-input-group
|
|
10
9
|
* @order 20
|
|
11
10
|
*/
|
|
12
|
-
export declare class ThyInputGroup
|
|
11
|
+
export declare class ThyInputGroup implements OnInit, AfterContentChecked, OnDestroy {
|
|
13
12
|
private thyTranslate;
|
|
14
13
|
private ngZone;
|
|
15
14
|
private cdr;
|
|
16
15
|
private hostRenderer;
|
|
17
16
|
private hostFocusControl;
|
|
17
|
+
private readonly destroyRef;
|
|
18
18
|
appendText: string;
|
|
19
19
|
prependText: string;
|
|
20
20
|
isTextareaSuffix: boolean;
|
|
@@ -71,4 +71,3 @@ export declare class ThyInputGroup extends ThyInputGroup_base implements OnInit,
|
|
|
71
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyInputGroup, never>;
|
|
72
72
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyInputGroup, "thy-input-group", never, { "thyAppendText": { "alias": "thyAppendText"; "required": false; }; "thyAppendTextTranslateKey": { "alias": "thyAppendTextTranslateKey"; "required": false; }; "thyPrependText": { "alias": "thyPrependText"; "required": false; }; "thyPrependTextTranslateKey": { "alias": "thyPrependTextTranslateKey"; "required": false; }; "thySize": { "alias": "thySize"; "required": false; }; }, {}, ["appendTemplate", "prependTemplate", "prefixTemplate", "suffixTemplate", "inputDirective"], ["*"], true, never>;
|
|
73
73
|
}
|
|
74
|
-
export {};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AfterViewInit, ElementRef, NgZone, OnDestroy, QueryList } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, NgZone, QueryList } from '@angular/core';
|
|
3
2
|
import { RouterLinkActive } from '@angular/router';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export type ThyNavLink = '' | 'active';
|
|
6
|
-
declare const _MixinBase: Constructor<ThyUnsubscribe> & typeof MixinBase;
|
|
7
5
|
/**
|
|
8
6
|
* 导航项
|
|
9
7
|
* @name thyNavItem
|
|
10
8
|
* @order 20
|
|
11
9
|
*/
|
|
12
|
-
export declare class ThyNavItemDirective
|
|
10
|
+
export declare class ThyNavItemDirective implements AfterViewInit {
|
|
13
11
|
elementRef: ElementRef;
|
|
14
12
|
private routerLinkActive;
|
|
15
13
|
private ngZone;
|
|
@@ -46,16 +44,15 @@ export declare class ThyNavItemDirective extends _MixinBase implements AfterView
|
|
|
46
44
|
content: HTMLElement;
|
|
47
45
|
isActive: boolean;
|
|
48
46
|
private hostRenderer;
|
|
47
|
+
private readonly destroyRef;
|
|
49
48
|
constructor(elementRef: ElementRef, routerLinkActive: RouterLinkActive, ngZone: NgZone);
|
|
50
49
|
ngAfterViewInit(): void;
|
|
51
50
|
setOffset(): void;
|
|
52
51
|
linkIsActive(): boolean;
|
|
53
52
|
setNavLinkHidden(value: boolean): void;
|
|
54
|
-
ngOnDestroy(): void;
|
|
55
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyNavItemDirective, [null, { optional: true; }, null]>;
|
|
56
54
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyNavItemDirective, "[thyNavLink],[thyNavItem]", never, { "thyNavItemActive": { "alias": "thyNavItemActive"; "required": false; }; "thyNavLinkActive": { "alias": "thyNavLinkActive"; "required": false; }; "thyNavItemDisabled": { "alias": "thyNavItemDisabled"; "required": false; }; }, {}, ["links", "routers"], never, true, never>;
|
|
57
55
|
static ngAcceptInputType_thyNavItemActive: unknown;
|
|
58
56
|
static ngAcceptInputType_thyNavLinkActive: unknown;
|
|
59
57
|
static ngAcceptInputType_thyNavItemDisabled: unknown;
|
|
60
58
|
}
|
|
61
|
-
export {};
|
package/nav/nav.component.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { Constructor, MixinBase, ThyUnsubscribe } from 'ngx-tethys/core';
|
|
2
1
|
import { ThyPopover } from 'ngx-tethys/popover';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnChanges,
|
|
3
|
+
import { AfterContentChecked, AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
5
4
|
import { RouterLinkActive } from '@angular/router';
|
|
6
5
|
import { ThyNavInkBarDirective } from './nav-ink-bar.directive';
|
|
7
6
|
import { ThyNavItemDirective } from './nav-item.directive';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
|
-
declare const _MixinBase: Constructor<ThyUnsubscribe> & typeof MixinBase;
|
|
10
8
|
export type ThyNavType = 'pulled' | 'tabs' | 'pills' | 'lite' | 'primary' | 'secondary' | 'thirdly' | 'secondary-divider';
|
|
11
9
|
export type ThyNavSize = 'lg' | 'md' | 'sm';
|
|
12
10
|
export type ThyNavHorizontal = '' | 'start' | 'center' | 'end';
|
|
@@ -15,11 +13,12 @@ export type ThyNavHorizontal = '' | 'start' | 'center' | 'end';
|
|
|
15
13
|
* @name thy-nav
|
|
16
14
|
* @order 10
|
|
17
15
|
*/
|
|
18
|
-
export declare class ThyNav
|
|
16
|
+
export declare class ThyNav implements OnInit, AfterViewInit, AfterContentInit, AfterContentChecked, OnChanges {
|
|
19
17
|
private elementRef;
|
|
20
18
|
private ngZone;
|
|
21
19
|
private changeDetectorRef;
|
|
22
20
|
private popover;
|
|
21
|
+
private readonly destroyRef;
|
|
23
22
|
private type;
|
|
24
23
|
private size;
|
|
25
24
|
initialized: boolean;
|
|
@@ -122,7 +121,6 @@ export declare class ThyNav extends _MixinBase implements OnInit, AfterViewInit,
|
|
|
122
121
|
navItemClick(item: ThyNavItemDirective): void;
|
|
123
122
|
private alignInkBarToSelectedTab;
|
|
124
123
|
ngOnChanges(changes: SimpleChanges): void;
|
|
125
|
-
ngOnDestroy(): void;
|
|
126
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyNav, never>;
|
|
127
125
|
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; }; "thyInsideClosable": { "alias": "thyInsideClosable"; "required": false; }; "thyExtra": { "alias": "thyExtra"; "required": false; }; }, {}, ["moreOperation", "morePopover", "extra", "links", "routers"], ["*"], true, never>;
|
|
128
126
|
static ngAcceptInputType_thyVertical: unknown;
|
|
@@ -130,4 +128,3 @@ export declare class ThyNav extends _MixinBase implements OnInit, AfterViewInit,
|
|
|
130
128
|
static ngAcceptInputType_thyResponsive: unknown;
|
|
131
129
|
static ngAcceptInputType_thyInsideClosable: unknown;
|
|
132
130
|
}
|
|
133
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, ElementRef, Renderer2, NgZone, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { Constructor, ThyUnsubscribe, MixinBase } from 'ngx-tethys/core';
|
|
3
2
|
import { ThyResizableService } from './resizable.service';
|
|
4
3
|
import { Platform } from '@angular/cdk/platform';
|
|
5
4
|
import { ThyResizeEvent } from './interface';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
declare const _MixinBase: Constructor<ThyUnsubscribe> & typeof MixinBase;
|
|
8
6
|
/**
|
|
9
7
|
* 调整尺寸
|
|
10
8
|
* @name thyResizable
|
|
11
9
|
*/
|
|
12
|
-
export declare class ThyResizableDirective
|
|
10
|
+
export declare class ThyResizableDirective implements AfterViewInit, OnDestroy {
|
|
13
11
|
private elementRef;
|
|
14
12
|
private renderer;
|
|
15
13
|
private platform;
|
|
@@ -80,6 +78,7 @@ export declare class ThyResizableDirective extends _MixinBase implements AfterVi
|
|
|
80
78
|
private sizeCache;
|
|
81
79
|
private ghostElement;
|
|
82
80
|
private currentHandleEvent;
|
|
81
|
+
private readonly destroyRef;
|
|
83
82
|
constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2, platform: Platform, ngZone: NgZone, thyResizableService: ThyResizableService, changeDetectorRef: ChangeDetectorRef);
|
|
84
83
|
ngAfterViewInit(): void;
|
|
85
84
|
setCursor(): void;
|
|
@@ -103,4 +102,3 @@ export declare class ThyResizableDirective extends _MixinBase implements AfterVi
|
|
|
103
102
|
static ngAcceptInputType_thyPreview: unknown;
|
|
104
103
|
static ngAcceptInputType_thyDisabled: unknown;
|
|
105
104
|
}
|
|
106
|
-
export {};
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { OnInit,
|
|
1
|
+
import { OnInit, NgZone, EventEmitter, ElementRef } from '@angular/core';
|
|
2
2
|
import { ThyResizeDirection } from './interface';
|
|
3
3
|
import { ThyResizableService } from './resizable.service';
|
|
4
|
-
import { Constructor, ThyUnsubscribe, MixinBase } from 'ngx-tethys/core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class ThyResizeHandleMouseDownEvent {
|
|
7
6
|
direction: ThyResizeDirection;
|
|
8
7
|
mouseEvent: MouseEvent | TouchEvent;
|
|
9
8
|
constructor(direction: ThyResizeDirection, mouseEvent: MouseEvent | TouchEvent);
|
|
10
9
|
}
|
|
11
|
-
declare const _MixinBase: Constructor<ThyUnsubscribe> & typeof MixinBase;
|
|
12
10
|
/**
|
|
13
11
|
* 定义调整手柄及方向
|
|
14
12
|
* @name thy-resize-handle
|
|
15
13
|
*/
|
|
16
|
-
export declare class ThyResizeHandle
|
|
14
|
+
export declare class ThyResizeHandle implements OnInit {
|
|
17
15
|
private ngZone;
|
|
18
16
|
private thyResizableService;
|
|
19
17
|
private host;
|
|
@@ -31,11 +29,10 @@ export declare class ThyResizeHandle extends _MixinBase implements OnInit, OnDes
|
|
|
31
29
|
*/
|
|
32
30
|
readonly thyMouseDown: EventEmitter<ThyResizeHandleMouseDownEvent>;
|
|
33
31
|
private hostRenderer;
|
|
32
|
+
private readonly destroyRef;
|
|
34
33
|
constructor(ngZone: NgZone, thyResizableService: ThyResizableService, host: ElementRef<HTMLElement>);
|
|
35
34
|
ngOnInit(): void;
|
|
36
|
-
ngOnDestroy(): void;
|
|
37
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyResizeHandle, never>;
|
|
38
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThyResizeHandle, "thy-resize-handle, [thy-resize-handle]", ["thyResizeHandle"], { "thyDirection": { "alias": "thyDirection"; "required": false; }; "thyLine": { "alias": "thyLine"; "required": false; }; }, { "thyMouseDown": "thyMouseDown"; }, never, ["*"], true, never>;
|
|
39
37
|
static ngAcceptInputType_thyLine: unknown;
|
|
40
38
|
}
|
|
41
|
-
export {};
|
package/schematics/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "17.0.
|
|
1
|
+
export declare const VERSION = "17.0.4";
|
package/schematics/version.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { AfterContentInit, QueryList, OnDestroy } from '@angular/core';
|
|
2
2
|
import { CdkDrag } from '@angular/cdk/drag-drop';
|
|
3
|
-
import { Constructor, MixinBase, ThyUnsubscribe } from 'ngx-tethys/core';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
declare const _MixinBase: Constructor<ThyUnsubscribe> & typeof MixinBase;
|
|
6
4
|
/**
|
|
7
5
|
* @private
|
|
8
6
|
*/
|
|
9
|
-
export declare class ThyDragDropDirective
|
|
7
|
+
export declare class ThyDragDropDirective implements AfterContentInit, OnDestroy {
|
|
10
8
|
draggables: QueryList<CdkDrag>;
|
|
9
|
+
private ngUnsubscribe$;
|
|
11
10
|
constructor();
|
|
12
11
|
ngAfterContentInit(): void;
|
|
13
12
|
ngOnDestroy(): void;
|
|
14
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyDragDropDirective, never>;
|
|
15
14
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyDragDropDirective, "[thyDragDrop]", never, {}, {}, ["draggables"], never, true, never>;
|
|
16
15
|
}
|
|
17
|
-
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Constructor, MixinBase, ThyUnsubscribe } from 'ngx-tethys/core';
|
|
2
1
|
import { AfterContentInit, ChangeDetectorRef, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
3
2
|
import { ThySpacingSize } from 'ngx-tethys/core';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
@@ -13,14 +12,14 @@ export declare class ThySpaceItemDirective implements OnInit {
|
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThySpaceItemDirective, never>;
|
|
14
13
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ThySpaceItemDirective, "[thySpaceItem]", never, {}, {}, never, never, true, never>;
|
|
15
14
|
}
|
|
16
|
-
declare const _MixinBase: Constructor<ThyUnsubscribe> & typeof MixinBase;
|
|
17
15
|
/**
|
|
18
16
|
* 间距组件
|
|
19
17
|
* @name thy-space
|
|
20
18
|
* @order 10
|
|
21
19
|
*/
|
|
22
|
-
export declare class ThySpace
|
|
20
|
+
export declare class ThySpace implements OnInit, AfterContentInit {
|
|
23
21
|
private cdr;
|
|
22
|
+
private readonly destroyRef;
|
|
24
23
|
space: number;
|
|
25
24
|
private hostRenderer;
|
|
26
25
|
/**
|
|
@@ -44,4 +43,3 @@ export declare class ThySpace extends _MixinBase implements OnInit, AfterContent
|
|
|
44
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThySpace, "thy-space", never, { "thySize": { "alias": "thySize"; "required": false; }; "thyVertical": { "alias": "thyVertical"; "required": false; }; "thyAlign": { "alias": "thyAlign"; "required": false; }; }, {}, ["items"], ["*"], true, never>;
|
|
45
44
|
static ngAcceptInputType_thyVertical: unknown;
|
|
46
45
|
}
|
|
47
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UpdateHostClassService } from 'ngx-tethys/core';
|
|
2
2
|
import { Dictionary, SafeAny } from 'ngx-tethys/types';
|
|
3
3
|
import { CdkDrag, CdkDragDrop, CdkDragEnd, CdkDragStart, CdkDropList } from '@angular/cdk/drag-drop';
|
|
4
4
|
import { ViewportRuler } from '@angular/cdk/overlay';
|
|
@@ -20,13 +20,12 @@ interface ThyTableGroup<T = unknown> {
|
|
|
20
20
|
children?: object[];
|
|
21
21
|
origin?: T;
|
|
22
22
|
}
|
|
23
|
-
declare const _MixinBase: Constructor<ThyUnsubscribe> & typeof MixinBase;
|
|
24
23
|
/**
|
|
25
24
|
* 表格组件
|
|
26
25
|
* @name thy-table
|
|
27
26
|
* @order 10
|
|
28
27
|
*/
|
|
29
|
-
export declare class ThyTable
|
|
28
|
+
export declare class ThyTable implements OnInit, OnChanges, AfterViewInit, OnDestroy, IThyTableColumnParentComponent {
|
|
30
29
|
elementRef: ElementRef;
|
|
31
30
|
private _differs;
|
|
32
31
|
private viewportRuler;
|
|
@@ -36,6 +35,7 @@ export declare class ThyTable extends _MixinBase implements OnInit, OnChanges, A
|
|
|
36
35
|
private ngZone;
|
|
37
36
|
private renderer;
|
|
38
37
|
private cdr;
|
|
38
|
+
private readonly destroyRef;
|
|
39
39
|
customType: {
|
|
40
40
|
index: string;
|
|
41
41
|
checkbox: string;
|
package/tabs/tabs.component.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
|
-
import { Constructor, MixinBase, ThyUnsubscribe } from 'ngx-tethys/core';
|
|
3
2
|
import { ThyTab } from './tab.component';
|
|
4
3
|
import { ThyActiveTabInfo, ThyTabActiveEvent } from './types';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export type ThyTabsSize = 'lg' | 'md' | 'sm';
|
|
7
6
|
export type ThyTabsType = 'pulled' | 'tabs' | 'pills' | 'lite';
|
|
8
7
|
export type ThyTabsPosition = 'top' | 'left';
|
|
9
|
-
declare const _MixinBase: Constructor<ThyUnsubscribe> & typeof MixinBase;
|
|
10
8
|
/**
|
|
11
9
|
* 选项卡切换组件
|
|
12
10
|
* @name thy-tabs
|
|
13
11
|
*/
|
|
14
|
-
export declare class ThyTabs
|
|
12
|
+
export declare class ThyTabs implements OnInit, OnChanges, AfterContentInit {
|
|
15
13
|
private cd;
|
|
16
14
|
private el;
|
|
17
15
|
tabs: QueryList<ThyTab>;
|
|
16
|
+
private readonly destroyRef;
|
|
18
17
|
/**
|
|
19
18
|
* 标签类型
|
|
20
19
|
* @type 'pulled' | 'tabs' | 'pills' | 'lite'
|
|
@@ -66,4 +65,3 @@ export declare class ThyTabs extends _MixinBase implements OnInit, OnChanges, Af
|
|
|
66
65
|
static ngAcceptInputType_thyAnimated: unknown;
|
|
67
66
|
static ngAcceptInputType_thyResponsive: unknown;
|
|
68
67
|
}
|
|
69
|
-
export {};
|
|
@@ -29,10 +29,22 @@ export declare function generateRandomStr(): string;
|
|
|
29
29
|
export declare function isTemplateRef<C = any>(value: any): value is TemplateRef<C>;
|
|
30
30
|
export declare function isHTMLElement(value: any): value is HTMLElement;
|
|
31
31
|
export declare function isElementRef(value: any): value is ElementRef;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Please use Angular cdk's coerceBooleanProperty instead
|
|
34
|
+
*/
|
|
32
35
|
export declare function coerceBooleanProperty(value: boolean | string | number): boolean;
|
|
33
36
|
export type FunctionProp<T> = (...args: any[]) => T;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Please use Angular cdk's coerceNumberProperty instead
|
|
39
|
+
*/
|
|
34
40
|
export declare function coerceNumberValue(value: number | string): number;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Please use Angular cdk's coerceNumberProperty instead
|
|
43
|
+
*/
|
|
35
44
|
export declare function coerceNumberValue<D>(value: number | string, fallback: D): number | D;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Please use Angular cdk's coerceCssPixelValue instead
|
|
47
|
+
*/
|
|
36
48
|
export declare function coerceCssPixelValue(value: number | string): string;
|
|
37
49
|
export declare function valueFunctionProp<T>(prop: FunctionProp<T>, ...args: any[]): T;
|
|
38
50
|
export declare function shallowEqual(objA?: Record<string, any>, objB?: Record<string, any>): boolean;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ElementRef,
|
|
2
|
-
import { Constructor, MixinBase, ThyUnsubscribe } from 'ngx-tethys/core';
|
|
1
|
+
import { ElementRef, OnInit, SimpleChanges, OnChanges } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
declare const _MixinBase: Constructor<ThyUnsubscribe> & typeof MixinBase;
|
|
5
3
|
export interface ThyCanvasConfigType {
|
|
6
4
|
degree?: number;
|
|
7
5
|
color?: string;
|
|
@@ -13,7 +11,7 @@ export interface ThyCanvasConfigType {
|
|
|
13
11
|
* 水印指令
|
|
14
12
|
* @name thyWatermark
|
|
15
13
|
*/
|
|
16
|
-
export declare class ThyWatermarkDirective
|
|
14
|
+
export declare class ThyWatermarkDirective implements OnInit, OnChanges {
|
|
17
15
|
private el;
|
|
18
16
|
/**
|
|
19
17
|
* 是否禁用,默认为 false
|
|
@@ -32,6 +30,7 @@ export declare class ThyWatermarkDirective extends _MixinBase implements OnInit,
|
|
|
32
30
|
private observer;
|
|
33
31
|
private canvas;
|
|
34
32
|
private wmDiv;
|
|
33
|
+
private readonly destroyRef;
|
|
35
34
|
constructor(el: ElementRef);
|
|
36
35
|
ngOnInit(): void;
|
|
37
36
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -40,9 +39,7 @@ export declare class ThyWatermarkDirective extends _MixinBase implements OnInit,
|
|
|
40
39
|
createCanvas(): HTMLCanvasElement;
|
|
41
40
|
private createWatermark;
|
|
42
41
|
private observeAttributes;
|
|
43
|
-
ngOnDestroy(): void;
|
|
44
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyWatermarkDirective, never>;
|
|
45
43
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ThyWatermarkDirective, "[thyWatermark]", never, { "thyDisabled": { "alias": "thyDisabled"; "required": false; }; "thyWatermark": { "alias": "thyWatermark"; "required": false; }; "thyCanvasConfig": { "alias": "thyCanvasConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
46
44
|
static ngAcceptInputType_thyDisabled: unknown;
|
|
47
45
|
}
|
|
48
|
-
export {};
|