ngx-tethys 19.1.0-next.6 → 19.1.0-next.7
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 +10 -0
- package/color-picker/coordinates.directive.d.ts +1 -2
- package/date-picker/abstract-picker.component.d.ts +1 -1
- package/date-picker/base-picker.component.d.ts +1 -0
- package/date-picker/picker.component.d.ts +4 -5
- package/dropdown/dropdown-menu.component.d.ts +1 -1
- package/dropdown/dropdown.directive.d.ts +2 -2
- package/fesm2022/ngx-tethys-color-picker.mjs +4 -6
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +2 -2
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +32 -32
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dropdown.mjs +7 -10
- package/fesm2022/ngx-tethys-dropdown.mjs.map +1 -1
- package/fesm2022/ngx-tethys-flexible-text.mjs +4 -5
- package/fesm2022/ngx-tethys-flexible-text.mjs.map +1 -1
- package/fesm2022/ngx-tethys-image.mjs +5 -7
- package/fesm2022/ngx-tethys-image.mjs.map +1 -1
- package/fesm2022/ngx-tethys-list.mjs +140 -160
- package/fesm2022/ngx-tethys-list.mjs.map +1 -1
- package/fesm2022/ngx-tethys-message.mjs +1 -2
- package/fesm2022/ngx-tethys-message.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +25 -56
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-skeleton.mjs +1 -2
- package/fesm2022/ngx-tethys-skeleton.mjs.map +1 -1
- package/fesm2022/ngx-tethys-table.mjs +1 -2
- package/fesm2022/ngx-tethys-table.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tooltip.mjs +109 -93
- package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/image/preview/image-preview.component.d.ts +2 -2
- package/list/selection/selection-list.d.ts +33 -46
- package/package.json +54 -54
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/shared/directives/thy-contextmenu.directive.d.ts +2 -2
- package/shared/directives/thy-ctrl-enter.directive.d.ts +2 -2
- package/shared/directives/thy-enter.directive.d.ts +2 -2
- package/shared/directives/thy-show.d.ts +2 -2
- package/shared/option/list-option/list-option.component.d.ts +5 -5
- package/shared/option/option.token.d.ts +4 -3
- package/table/table-column.component.d.ts +15 -5
- package/tooltip/tooltip.directive.d.ts +20 -22
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
# [19.1.0-next.7](https://github.com/atinc/ngx-tethys/compare/19.1.0-next.6...19.1.0-next.7) (2025-08-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **date-picker:** rename open to opened and add open method #TINFR-1463 ([#3532](https://github.com/atinc/ngx-tethys/issues/3532)) ([67ba3f5](https://github.com/atinc/ngx-tethys/commit/67ba3f55e68781181c28992c1c4c421d603fb3f6)), closes [#TINFR-1463](https://github.com/atinc/ngx-tethys/issues/TINFR-1463)
|
|
11
|
+
* migrate tooltip signal and related component ([#3518](https://github.com/atinc/ngx-tethys/issues/3518)) ([58189df](https://github.com/atinc/ngx-tethys/commit/58189df326aee2d2c0e449d53ebe6b46c08a3a10))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
5
15
|
# [19.1.0-next.6](https://github.com/atinc/ngx-tethys/compare/19.1.0-next.5...19.1.0-next.6) (2025-08-14)
|
|
6
16
|
|
|
7
17
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* @internal
|
|
6
5
|
*/
|
|
7
6
|
export declare class ThyCoordinatesDirective implements OnInit, OnDestroy {
|
|
8
7
|
el: ElementRef<any>;
|
|
9
|
-
coordinatesChange:
|
|
8
|
+
readonly coordinatesChange: import("@angular/core").OutputEmitterRef<{
|
|
10
9
|
x: number;
|
|
11
10
|
y: number;
|
|
12
11
|
left: number;
|
|
@@ -33,8 +33,8 @@ export declare abstract class AbstractPickerComponent extends TabIndexDisabledCo
|
|
|
33
33
|
* 是否自动获取焦点
|
|
34
34
|
*/
|
|
35
35
|
readonly thyAutoFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
36
|
-
readonly open: import("@angular/core").WritableSignal<any>;
|
|
37
36
|
readonly thyOpen: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
37
|
+
readonly opened: import("@angular/core").WritableSignal<boolean>;
|
|
38
38
|
readonly thyDisabledDate: import("@angular/core").InputSignal<DisabledDateFn>;
|
|
39
39
|
/**
|
|
40
40
|
* 最小值
|
|
@@ -31,6 +31,7 @@ export declare class BasePicker extends AbstractPickerComponent implements OnIni
|
|
|
31
31
|
thyClickDispatcher: ThyClickDispatcher;
|
|
32
32
|
platformId: Object;
|
|
33
33
|
ngZone: NgZone;
|
|
34
|
+
open(): void;
|
|
34
35
|
ngOnInit(): void;
|
|
35
36
|
onValueChange(value: CompatibleValue | RangeAdvancedValue): void;
|
|
36
37
|
onInputValueChange(formatDate: string | null | Array<null>): void;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ThyPlacement } from 'ngx-tethys/core';
|
|
2
2
|
import { TinyDate } from 'ngx-tethys/util';
|
|
3
3
|
import { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedOverlayPositionChange, ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
4
|
-
import { AfterViewInit, ElementRef
|
|
4
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
5
5
|
import { CompatibleValue, RangePartType } from './inner-types';
|
|
6
6
|
import { ThyDateGranularity } from './standard-types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* @private
|
|
10
10
|
*/
|
|
11
|
-
export declare class ThyPicker implements
|
|
11
|
+
export declare class ThyPicker implements AfterViewInit {
|
|
12
12
|
private changeDetector;
|
|
13
13
|
private dateHelper;
|
|
14
14
|
private i18n;
|
|
15
15
|
readonly isRange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
|
-
readonly
|
|
16
|
+
readonly opened: import("@angular/core").InputSignal<boolean>;
|
|
17
17
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
18
|
readonly placeholder: import("@angular/core").InputSignal<string | string[]>;
|
|
19
19
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -50,7 +50,6 @@ export declare class ThyPicker implements OnChanges, AfterViewInit {
|
|
|
50
50
|
get realOpenState(): boolean;
|
|
51
51
|
get readonlyState(): boolean;
|
|
52
52
|
constructor();
|
|
53
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
54
53
|
ngAfterViewInit(): void;
|
|
55
54
|
focus(): void;
|
|
56
55
|
onBlur(event: FocusEvent): void;
|
|
@@ -73,5 +72,5 @@ export declare class ThyPicker implements OnChanges, AfterViewInit {
|
|
|
73
72
|
getPlaceholder(): string;
|
|
74
73
|
private updateReadableDate;
|
|
75
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThyPicker, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThyPicker, "thy-picker", ["thyPicker"], { "isRange": { "alias": "isRange"; "required": false; "isSignal": true; }; "
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThyPicker, "thy-picker", ["thyPicker"], { "isRange": { "alias": "isRange"; "required": false; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "flexible": { "alias": "flexible"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "separator": { "alias": "separator"; "required": false; "isSignal": true; }; "timeZone": { "alias": "timeZone"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "flexibleDateGranularity": { "alias": "flexibleDateGranularity"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "blur": "blur"; "valueChange": "valueChange"; "openChange": "openChange"; "inputChange": "inputChange"; }, never, ["*"], true, never>;
|
|
77
76
|
}
|
|
@@ -20,7 +20,7 @@ export declare class ThyDropdownMenuComponent {
|
|
|
20
20
|
/**
|
|
21
21
|
* 设置菜单宽度
|
|
22
22
|
*/
|
|
23
|
-
readonly thyWidth: import("@angular/core").InputSignalWithTransform<string,
|
|
23
|
+
readonly thyWidth: import("@angular/core").InputSignalWithTransform<string, string | number>;
|
|
24
24
|
/**
|
|
25
25
|
* 是否直接渲染 dropdown-menu 中的元素
|
|
26
26
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, OverlayRef } from '@angular/cdk/overlay';
|
|
2
|
-
import {
|
|
2
|
+
import { OnInit, Signal, TemplateRef } from '@angular/core';
|
|
3
3
|
import { ThyOverlayDirectiveBase, ThyPlacement } from 'ngx-tethys/core';
|
|
4
4
|
import { ThyPopoverConfig } from 'ngx-tethys/popover';
|
|
5
5
|
import { SafeAny } from 'ngx-tethys/types';
|
|
@@ -65,7 +65,7 @@ export declare class ThyDropdownDirective extends ThyOverlayDirectiveBase implem
|
|
|
65
65
|
/**
|
|
66
66
|
* 菜单 Active 事件,打开菜单返回 true,关闭返回 false
|
|
67
67
|
*/
|
|
68
|
-
thyActiveChange:
|
|
68
|
+
readonly thyActiveChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
69
69
|
constructor();
|
|
70
70
|
ngOnInit(): void;
|
|
71
71
|
createOverlay(): OverlayRef;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef,
|
|
2
|
+
import { inject, ElementRef, output, HostListener, Directive, Renderer2, input, viewChild, effect, HostBinding, ChangeDetectionStrategy, Component, ViewChild, computed, signal, model, ViewContainerRef, NgZone, numberAttribute, forwardRef, Input, NgModule } from '@angular/core';
|
|
3
3
|
import { Subject, fromEvent } from 'rxjs';
|
|
4
4
|
import { distinctUntilChanged, takeUntil } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
@@ -490,7 +490,7 @@ class ThyColor {
|
|
|
490
490
|
class ThyCoordinatesDirective {
|
|
491
491
|
constructor() {
|
|
492
492
|
this.el = inject(ElementRef);
|
|
493
|
-
this.coordinatesChange =
|
|
493
|
+
this.coordinatesChange = output();
|
|
494
494
|
this.mousechange = new Subject();
|
|
495
495
|
this.mouseListening = false;
|
|
496
496
|
}
|
|
@@ -518,7 +518,7 @@ class ThyCoordinatesDirective {
|
|
|
518
518
|
const containerHeight = this.el.nativeElement.clientHeight;
|
|
519
519
|
const left = x - (this.el.nativeElement.getBoundingClientRect().left + window.pageXOffset);
|
|
520
520
|
const top = y - (this.el.nativeElement.getBoundingClientRect().top + window.pageYOffset);
|
|
521
|
-
this.coordinatesChange.
|
|
521
|
+
this.coordinatesChange.emit({
|
|
522
522
|
x,
|
|
523
523
|
y,
|
|
524
524
|
top,
|
|
@@ -539,9 +539,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImpor
|
|
|
539
539
|
args: [{
|
|
540
540
|
selector: '[thyColorCoordinates]'
|
|
541
541
|
}]
|
|
542
|
-
}], propDecorators: {
|
|
543
|
-
type: Output
|
|
544
|
-
}], mousedown: [{
|
|
542
|
+
}], propDecorators: { mousedown: [{
|
|
545
543
|
type: HostListener,
|
|
546
544
|
args: ['mousedown', ['$event', '$event.pageX', '$event.pageY']]
|
|
547
545
|
}], mousemove: [{
|