ngx-tethys 19.1.9-0 → 19.1.10
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 +16 -2
- package/cascader/styles/cascader.scss +1 -1
- package/date-picker/abstract-picker.component.d.ts +0 -1
- package/date-picker/lib/popups/date-popup.component.d.ts +1 -0
- package/date-picker/picker.util.d.ts +1 -1
- package/fesm2022/ngx-tethys-cascader.mjs +9 -2
- package/fesm2022/ngx-tethys-cascader.mjs.map +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +22 -17
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-message.mjs +2 -2
- package/fesm2022/ngx-tethys-message.mjs.map +1 -1
- package/fesm2022/ngx-tethys-notify.mjs +2 -2
- package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,12 +2,26 @@
|
|
|
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.
|
|
5
|
+
## [19.1.10](https://github.com/atinc/ngx-tethys/compare/19.1.9...19.1.10) (2025-10-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* withTime 为0或只选日期时,选择日期优化为选中为当天0点 #TINFR-2955 [@wumeimin](https://github.com/wumeimin) [@wangkai](https://github.com/wangkai) ([#3586](https://github.com/atinc/ngx-tethys/issues/3586)) ([5fd3f37](https://github.com/atinc/ngx-tethys/commit/5fd3f37bf0b4b4e3e9710e3eaea3da6c63cb0b0b)), closes [#TINFR-2955](https://github.com/atinc/ngx-tethys/issues/TINFR-2955)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [19.1.9](https://github.com/atinc/ngx-tethys/compare/19.1.8...19.1.9) (2025-10-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **cascader:** adjust cascader option style and search logic #TINFR-2948 ([ea5e834](https://github.com/atinc/ngx-tethys/commit/ea5e834771cc1d230c87782b34c126f45a1a43d3)), closes [#TINFR-2948](https://github.com/atinc/ngx-tethys/issues/TINFR-2948)
|
|
6
20
|
|
|
7
21
|
|
|
8
22
|
### Reverts
|
|
9
23
|
|
|
10
|
-
* Revert "fix(tree-select): fix valueIsObject #TINFR-2935 (#3577)" (#3587) ([
|
|
24
|
+
* Revert "fix(tree-select): fix valueIsObject #TINFR-2935 (#3577)" (#3587) ([6bce791](https://github.com/atinc/ngx-tethys/commit/6bce791370befc270b1a6b6e39cddb7800cca2e7)), closes [#TINFR-2935](https://github.com/atinc/ngx-tethys/issues/TINFR-2935) [#3577](https://github.com/atinc/ngx-tethys/issues/3577) [#3587](https://github.com/atinc/ngx-tethys/issues/3587)
|
|
11
25
|
|
|
12
26
|
|
|
13
27
|
|
|
@@ -142,7 +142,6 @@ export declare abstract class AbstractPickerComponent extends TabIndexDisabledCo
|
|
|
142
142
|
flexibleDateGranularity: ThyDateGranularity;
|
|
143
143
|
protected isCustomPlaceHolder: boolean;
|
|
144
144
|
private onlyEmitDate;
|
|
145
|
-
protected originWithTime: boolean;
|
|
146
145
|
protected innerValue: ThyCompatibleDate;
|
|
147
146
|
get realOpenState(): boolean;
|
|
148
147
|
get isShowDatePopup(): boolean;
|
|
@@ -62,6 +62,7 @@ export declare class DatePopup implements OnInit, OnChanges {
|
|
|
62
62
|
ngOnChanges(changes: SimpleChanges): void;
|
|
63
63
|
initShortcutPresets(): void;
|
|
64
64
|
updateActiveDate(): void;
|
|
65
|
+
private getDefaultPickerValue;
|
|
65
66
|
initPanelMode(): void;
|
|
66
67
|
initDisabledDate(): void;
|
|
67
68
|
onShowTimePickerChange(show: boolean): void;
|
|
@@ -12,7 +12,7 @@ export declare function transformDateValue(value: ThyCompatibleDate | Compatible
|
|
|
12
12
|
export declare function getFlexibleAdvancedReadableValue(tinyDates: TinyDate[], flexibleDateGranularity: ThyDateGranularity, separator: string, locale: Signal<ThyI18nLocale>): string;
|
|
13
13
|
export declare function convertDate(date: Date | number | TinyDate): Date;
|
|
14
14
|
export declare function hasValue(value: CompatibleValue): boolean;
|
|
15
|
-
export declare function makeValue(value: ThyCompatibleDate | null, isRange
|
|
15
|
+
export declare function makeValue(value: ThyCompatibleDate | null, isRange: boolean, withTime: boolean, timeZone?: string): CompatibleValue;
|
|
16
16
|
export declare function dateAddAmount(value: TinyDate, amount: number, mode: ThyPanelMode): TinyDate;
|
|
17
17
|
export declare function isAfterMoreThanOneMonth(rightDate: TinyDate, leftDate: TinyDate): boolean;
|
|
18
18
|
export declare function isAfterMoreThanLessOneYear(rightDate: TinyDate, leftDate: TinyDate): boolean;
|
|
@@ -345,9 +345,16 @@ class ThyCascaderService {
|
|
|
345
345
|
}
|
|
346
346
|
setSearchResultList(listOfOption, searchText) {
|
|
347
347
|
this.searchResultList = [];
|
|
348
|
+
const lowerSearchText = searchText.toLowerCase();
|
|
348
349
|
listOfOption.forEach(item => {
|
|
349
|
-
if (!item.disabled && item.isLeaf
|
|
350
|
-
|
|
350
|
+
if (!item.disabled && item.isLeaf) {
|
|
351
|
+
const joinedLabel = item.labelList.join();
|
|
352
|
+
const joinedLabelWithSlash = item.labelList.join('/');
|
|
353
|
+
if (joinedLabel.toLowerCase().includes(lowerSearchText) ||
|
|
354
|
+
(joinedLabelWithSlash.toLowerCase().includes(lowerSearchText) && searchText !== '/')) {
|
|
355
|
+
// 由于 joinedLabelWithSlash 额外添加了 '/' ,所以这里跳过对 '/' 字符对判断
|
|
356
|
+
this.searchResultList.push(item);
|
|
357
|
+
}
|
|
351
358
|
}
|
|
352
359
|
});
|
|
353
360
|
}
|