ngx-tethys 18.2.0-next.0 → 18.2.0-next.2
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 +56 -0
- package/autocomplete/autocomplete.component.d.ts +4 -2
- package/calendar/calendar-header.component.d.ts +2 -0
- package/cascader/cascader.component.d.ts +3 -1
- package/color-picker/color-picker-panel.component.d.ts +3 -1
- package/copy/copy.directive.d.ts +1 -0
- package/core/overlay/abstract-overlay-ref.d.ts +4 -0
- package/core/overlay/abstract-overlay.service.d.ts +1 -1
- package/core/theme/store.d.ts +2 -1
- package/core/theme/theme.d.ts +2 -0
- package/date-picker/abstract-picker.component.d.ts +3 -1
- package/date-picker/date-helper.service.d.ts +3 -0
- package/date-picker/date-picker.config.d.ts +7 -1
- package/date-picker/lib/calendar/calendar-footer.component.d.ts +3 -1
- package/date-picker/lib/calendar/calendar-header.component.d.ts +3 -1
- package/date-picker/lib/calendar/calendar-table.component.d.ts +3 -1
- package/date-picker/lib/date-carousel/date-carousel.component.d.ts +4 -1
- package/date-picker/lib/popups/date-popup.component.d.ts +3 -1
- package/date-picker/lib/popups/inner-popup.component.d.ts +3 -1
- package/date-range/date-range.component.d.ts +2 -0
- package/date-range/optional-dates/optional-dates.component.d.ts +1 -0
- package/dialog/confirm/confirm.component.d.ts +1 -0
- package/dialog/confirm.config.d.ts +14 -7
- package/dialog/dialog-ref.d.ts +10 -2
- package/dialog/dialog.service.d.ts +6 -0
- package/empty/empty.component.d.ts +14 -9
- package/empty/empty.config.d.ts +3 -0
- package/esm2022/autocomplete/autocomplete.component.mjs +9 -5
- package/esm2022/calendar/calendar-header.component.mjs +9 -5
- package/esm2022/cascader/cascader.component.mjs +9 -6
- package/esm2022/checkbox/checkbox.component.mjs +1 -1
- package/esm2022/color-picker/color-picker-panel.component.mjs +5 -3
- package/esm2022/copy/copy.directive.mjs +7 -5
- package/esm2022/core/overlay/abstract-overlay-ref.mjs +2 -2
- package/esm2022/core/overlay/abstract-overlay.service.mjs +2 -2
- package/esm2022/core/theme/store.mjs +7 -7
- package/esm2022/core/theme/theme.mjs +9 -2
- package/esm2022/date-picker/abstract-picker.component.mjs +4 -2
- package/esm2022/date-picker/base-picker.component.mjs +2 -2
- package/esm2022/date-picker/date-helper.service.mjs +4 -2
- package/esm2022/date-picker/date-picker.component.mjs +1 -1
- package/esm2022/date-picker/date-picker.config.mjs +55 -2
- package/esm2022/date-picker/date-picker.directive.mjs +1 -1
- package/esm2022/date-picker/date-picker.service.mjs +3 -3
- package/esm2022/date-picker/lib/calendar/calendar-footer.component.mjs +5 -3
- package/esm2022/date-picker/lib/calendar/calendar-header.component.mjs +3 -1
- package/esm2022/date-picker/lib/calendar/calendar-table.component.mjs +3 -1
- package/esm2022/date-picker/lib/date/date-header.component.mjs +6 -5
- package/esm2022/date-picker/lib/date/date-table.component.mjs +4 -4
- package/esm2022/date-picker/lib/date-carousel/date-carousel.component.mjs +9 -4
- package/esm2022/date-picker/lib/decade/decade-header.component.mjs +3 -3
- package/esm2022/date-picker/lib/month/month-header.component.mjs +4 -4
- package/esm2022/date-picker/lib/month/month-table.component.mjs +3 -2
- package/esm2022/date-picker/lib/popups/date-popup.component.mjs +5 -3
- package/esm2022/date-picker/lib/popups/inner-popup.component.mjs +5 -3
- package/esm2022/date-picker/lib/year/year-header.component.mjs +3 -3
- package/esm2022/date-picker/month-picker.component.mjs +1 -1
- package/esm2022/date-picker/quarter-picker.component.mjs +1 -1
- package/esm2022/date-picker/range-picker.component.mjs +1 -1
- package/esm2022/date-picker/range-picker.directive.mjs +1 -1
- package/esm2022/date-picker/week-picker.component.mjs +1 -1
- package/esm2022/date-picker/year-picker.component.mjs +1 -1
- package/esm2022/date-range/date-range.component.mjs +7 -4
- package/esm2022/date-range/optional-dates/optional-dates.component.mjs +4 -2
- package/esm2022/dialog/confirm/confirm.component.mjs +14 -3
- package/esm2022/dialog/confirm.config.mjs +17 -2
- package/esm2022/dialog/dialog-ref.mjs +9 -6
- package/esm2022/dialog/dialog.service.mjs +27 -3
- package/esm2022/empty/empty.component.mjs +7 -2
- package/esm2022/empty/empty.config.mjs +4 -1
- package/esm2022/form/form-validator-loader.mjs +17 -15
- package/esm2022/guider/guider-hint/guider-hint.component.mjs +5 -3
- package/esm2022/i18n/i18n.mjs +9 -0
- package/esm2022/i18n/i18n.service.mjs +45 -0
- package/esm2022/i18n/i18n.token.mjs +10 -0
- package/esm2022/i18n/index.mjs +10 -0
- package/esm2022/i18n/locale.mjs +14 -0
- package/esm2022/i18n/locales/de-de.mjs +130 -0
- package/esm2022/i18n/locales/en-us.mjs +151 -0
- package/esm2022/i18n/locales/ja-jp.mjs +130 -0
- package/esm2022/i18n/locales/zh-hans.mjs +130 -0
- package/esm2022/i18n/locales/zh-hant.mjs +130 -0
- package/esm2022/i18n/ngx-tethys-i18n.mjs +5 -0
- package/esm2022/nav/nav.component.mjs +5 -3
- package/esm2022/pagination/pagination.component.mjs +22 -5
- package/esm2022/pagination/pagination.module.mjs +26 -5
- package/esm2022/pagination/pagination.pipe.mjs +25 -1
- package/esm2022/property/property-item.component.mjs +3 -3
- package/esm2022/radio/button/radio-button.component.mjs +1 -1
- package/esm2022/radio/radio.component.mjs +1 -1
- package/esm2022/select/custom-select/custom-select.component.mjs +13 -6
- package/esm2022/strength/strength.component.mjs +21 -20
- package/esm2022/time-picker/time-picker-panel.component.mjs +5 -3
- package/esm2022/time-picker/time-picker.component.mjs +4 -2
- package/esm2022/tooltip/tooltip-ref.mjs +4 -1
- package/esm2022/transfer/transfer-list.component.mjs +5 -3
- package/esm2022/tree-select/tree-select.component.mjs +9 -6
- package/esm2022/version.mjs +2 -2
- package/fesm2022/ngx-tethys-autocomplete.mjs +8 -5
- package/fesm2022/ngx-tethys-autocomplete.mjs.map +1 -1
- package/fesm2022/ngx-tethys-calendar.mjs +8 -5
- package/fesm2022/ngx-tethys-calendar.mjs.map +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +8 -5
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-tethys-color-picker.mjs +4 -2
- package/fesm2022/ngx-tethys-color-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-copy.mjs +6 -4
- package/fesm2022/ngx-tethys-copy.mjs.map +1 -1
- package/fesm2022/ngx-tethys-core.mjs +14 -7
- package/fesm2022/ngx-tethys-core.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +95 -30
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-range.mjs +8 -4
- package/fesm2022/ngx-tethys-date-range.mjs.map +1 -1
- package/fesm2022/ngx-tethys-dialog.mjs +61 -10
- package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
- package/fesm2022/ngx-tethys-empty.mjs +9 -1
- package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
- package/fesm2022/ngx-tethys-form.mjs +16 -14
- package/fesm2022/ngx-tethys-form.mjs.map +1 -1
- package/fesm2022/ngx-tethys-guider.mjs +4 -2
- package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
- package/fesm2022/ngx-tethys-i18n.mjs +747 -0
- package/fesm2022/ngx-tethys-i18n.mjs.map +1 -0
- package/fesm2022/ngx-tethys-nav.mjs +4 -2
- package/fesm2022/ngx-tethys-nav.mjs.map +1 -1
- package/fesm2022/ngx-tethys-pagination.mjs +69 -7
- package/fesm2022/ngx-tethys-pagination.mjs.map +1 -1
- package/fesm2022/ngx-tethys-property.mjs +2 -2
- package/fesm2022/ngx-tethys-property.mjs.map +1 -1
- package/fesm2022/ngx-tethys-radio.mjs.map +1 -1
- package/fesm2022/ngx-tethys-select.mjs +12 -5
- package/fesm2022/ngx-tethys-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys-strength.mjs +20 -19
- package/fesm2022/ngx-tethys-strength.mjs.map +1 -1
- package/fesm2022/ngx-tethys-time-picker.mjs +6 -3
- package/fesm2022/ngx-tethys-time-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tooltip.mjs +3 -0
- package/fesm2022/ngx-tethys-tooltip.mjs.map +1 -1
- package/fesm2022/ngx-tethys-transfer.mjs +4 -2
- package/fesm2022/ngx-tethys-transfer.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tree-select.mjs +8 -5
- package/fesm2022/ngx-tethys-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/form/form-validator-loader.d.ts +2 -0
- package/guider/guider-hint/guider-hint.component.d.ts +3 -1
- package/i18n/i18n.d.ts +154 -0
- package/i18n/i18n.service.d.ts +19 -0
- package/i18n/i18n.token.d.ts +8 -0
- package/i18n/index.d.ts +9 -0
- package/i18n/locale.d.ts +4 -0
- package/i18n/locales/de-de.d.ts +130 -0
- package/i18n/locales/en-us.d.ts +151 -0
- package/i18n/locales/ja-jp.d.ts +130 -0
- package/i18n/locales/zh-hans.d.ts +130 -0
- package/i18n/locales/zh-hant.d.ts +130 -0
- package/nav/nav.component.d.ts +3 -1
- package/package.json +7 -1
- package/pagination/pagination.component.d.ts +4 -1
- package/pagination/pagination.module.d.ts +1 -1
- package/pagination/pagination.pipe.d.ts +6 -0
- package/radio/radio.component.d.ts +0 -2
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/select/custom-select/custom-select.component.d.ts +3 -1
- package/strength/strength.component.d.ts +21 -2
- package/styles/modules/cdk/drag-drop.scss +1 -1
- package/time-picker/time-picker-panel.component.d.ts +3 -1
- package/time-picker/time-picker.component.d.ts +3 -1
- package/transfer/transfer-list.component.d.ts +3 -1
- package/tree-select/tree-select.component.d.ts +3 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ThyTranslate } from 'ngx-tethys/core';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
2
|
+
import { OnInit, Signal } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { ThyStrengthLocale } from 'ngx-tethys/i18n';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
declare enum ThyStrengthEnum {
|
|
6
7
|
highest = 4,
|
|
@@ -18,7 +19,25 @@ export declare class ThyStrength implements OnInit, ControlValueAccessor {
|
|
|
18
19
|
styleClass: boolean;
|
|
19
20
|
strengthTitle: string;
|
|
20
21
|
strength: ThyStrengthEnum;
|
|
21
|
-
|
|
22
|
+
locale: Signal<ThyStrengthLocale>;
|
|
23
|
+
strengthMap: {
|
|
24
|
+
4: {
|
|
25
|
+
level: string;
|
|
26
|
+
text: string;
|
|
27
|
+
};
|
|
28
|
+
3: {
|
|
29
|
+
level: string;
|
|
30
|
+
text: string;
|
|
31
|
+
};
|
|
32
|
+
2: {
|
|
33
|
+
level: string;
|
|
34
|
+
text: string;
|
|
35
|
+
};
|
|
36
|
+
1: {
|
|
37
|
+
level: string;
|
|
38
|
+
text: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
22
41
|
/**
|
|
23
42
|
* 组件标题,描述程度所指类型
|
|
24
43
|
*/
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
|
|
53
53
|
// 拖入 cdkDropList 时要显示的元素,不是真正的元素。
|
|
54
54
|
.thy-sortable-ghost,
|
|
55
|
-
.cdk-drag-placeholder:not(.thy-tree-node) {
|
|
55
|
+
.cdk-drag-placeholder:not(.thy-tree-node):not(.thy-customize-drag-placeholder) {
|
|
56
56
|
color: transparent !important;
|
|
57
57
|
background: variables.$gray-200 !important;
|
|
58
58
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit, Signal } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { ThyTimePickerLocale } from 'ngx-tethys/i18n';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* 时间选择面板组件
|
|
@@ -8,6 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
8
9
|
export declare class ThyTimePanel implements OnInit, OnDestroy, ControlValueAccessor {
|
|
9
10
|
private cdr;
|
|
10
11
|
private ngZone;
|
|
12
|
+
locale: Signal<ThyTimePickerLocale>;
|
|
11
13
|
hourListRef: ElementRef<HTMLElement>;
|
|
12
14
|
minuteListRef: ElementRef<HTMLElement>;
|
|
13
15
|
secondListRef: ElementRef<HTMLElement>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
2
|
-
import { AfterViewInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnInit, Signal } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import { ThyPlacement } from 'ngx-tethys/core';
|
|
5
|
+
import { ThyTimePickerLocale } from 'ngx-tethys/i18n';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export type TimePickerSize = 'xs' | 'sm' | 'md' | 'lg' | 'default';
|
|
7
8
|
/**
|
|
@@ -11,6 +12,7 @@ export type TimePickerSize = 'xs' | 'sm' | 'md' | 'lg' | 'default';
|
|
|
11
12
|
export declare class ThyTimePicker implements OnInit, AfterViewInit, ControlValueAccessor {
|
|
12
13
|
private cdr;
|
|
13
14
|
private elementRef;
|
|
15
|
+
locale: Signal<ThyTimePickerLocale>;
|
|
14
16
|
cdkConnectedOverlay: CdkConnectedOverlay;
|
|
15
17
|
origin: CdkOverlayOrigin;
|
|
16
18
|
inputRef: ElementRef<HTMLInputElement>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { DoCheck, EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { DoCheck, EventEmitter, OnInit, Signal, TemplateRef } from '@angular/core';
|
|
3
3
|
import { InnerTransferDragEvent, ThyTransferItem, ThyTransferSelectEvent } from './transfer.interface';
|
|
4
|
+
import { ThyTransferLocale } from 'ngx-tethys/i18n';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* @private
|
|
@@ -12,6 +13,7 @@ export declare class ThyTransferList implements OnInit, DoCheck {
|
|
|
12
13
|
private _diff;
|
|
13
14
|
private _lockDiff;
|
|
14
15
|
private _unlockDiff;
|
|
16
|
+
locale: Signal<ThyTransferLocale>;
|
|
15
17
|
title: string;
|
|
16
18
|
items: ThyTransferItem[];
|
|
17
19
|
draggable: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TabIndexDisabledControlValueAccessorMixin } from 'ngx-tethys/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
4
|
-
import { ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
4
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef, Signal } from '@angular/core';
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
6
6
|
import { ThyTreeSelectNode, ThyTreeSelectType } from './tree-select.class';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -38,6 +38,7 @@ export declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorM
|
|
|
38
38
|
};
|
|
39
39
|
private initialled;
|
|
40
40
|
private destroy$;
|
|
41
|
+
private locale;
|
|
41
42
|
valueIsObject: boolean;
|
|
42
43
|
originTreeNodes: ThyTreeSelectNode[];
|
|
43
44
|
thyTreeSelectTriggerDisplayRef: TemplateRef<any>;
|
|
@@ -188,6 +189,7 @@ export declare class ThyTreeSelect extends TabIndexDisabledControlValueAccessorM
|
|
|
188
189
|
*/
|
|
189
190
|
export declare class ThyTreeSelectNodes implements OnInit {
|
|
190
191
|
parent: ThyTreeSelect;
|
|
192
|
+
emptyIcon: Signal<string>;
|
|
191
193
|
class: string;
|
|
192
194
|
nodeList: ThyTreeSelectNode[];
|
|
193
195
|
set treeNodes(value: ThyTreeSelectNode[]);
|