ngx-tethys 21.0.8 → 21.0.9
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 +14 -0
- package/action/styles/action.scss +6 -1
- package/alert/styles/alert.scss +6 -1
- package/alert/styles/mixin.scss +2 -2
- package/cascader/styles/cascader.scss +2 -2
- package/cascader/styles/theme.scss +1 -1
- package/dropdown/styles/dropdown.scss +1 -1
- package/fesm2022/ngx-tethys-date-picker.mjs +6 -1
- package/fesm2022/ngx-tethys-date-picker.mjs.map +1 -1
- package/fesm2022/ngx-tethys-layout.mjs +9 -5
- package/fesm2022/ngx-tethys-layout.mjs.map +1 -1
- package/fesm2022/ngx-tethys-menu.mjs +30 -8
- package/fesm2022/ngx-tethys-menu.mjs.map +1 -1
- package/fesm2022/ngx-tethys-shared.mjs +1 -1
- package/fesm2022/ngx-tethys-shared.mjs.map +1 -1
- package/fesm2022/ngx-tethys-tag.mjs +20 -8
- package/fesm2022/ngx-tethys-tag.mjs.map +1 -1
- package/fesm2022/ngx-tethys.mjs +1 -1
- package/fesm2022/ngx-tethys.mjs.map +1 -1
- package/menu/styles/menu.scss +2 -2
- package/nav/styles/icon-nav.scss +3 -3
- package/nav/styles/mixin.scss +9 -3
- package/package.json +1 -1
- package/schematics/version.d.ts +1 -1
- package/schematics/version.js +1 -1
- package/shared/option/styles/option.mixin.scss +4 -4
- package/shared/select/styles/select.mixin.scss +1 -1
- package/styles/themes/bright-purple.scss +1 -1
- package/styles/themes/bright-yellow.scss +1 -1
- package/styles/themes/brown-black.scss +1 -1
- package/styles/themes/olivine.scss +1 -1
- package/styles/themes/pink.scss +1 -1
- package/styles/themes/purple.scss +1 -1
- package/styles/themes/qq-blue.scss +1 -1
- package/styles/themes/sky-blue.scss +1 -1
- package/styles/themes/watermelon.scss +1 -1
- package/styles/variables.scss +24 -4
- package/tag/styles/mixin.scss +4 -1
- package/tag/styles/tag.scss +8 -1
- package/time-picker/styles/variables.scss +1 -1
- package/tree/styles/theme.scss +1 -1
- package/tree/styles/tree.scss +1 -1
- package/types/ngx-tethys-date-picker.d.ts +1 -0
- package/types/ngx-tethys-menu.d.ts +9 -5
- package/types/ngx-tethys-tag.d.ts +14 -5
- package/vote/styles/vote.scss +8 -8
- /package/tag/examples/{theme/theme.component.scss → appearance/appearance.component.scss} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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
|
+
## [21.0.9](github.com/atinc/ngx-tethys/compare/21.0.8...21.0.9) (2026-08-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **date-picker:** sync mustShowTime when show time picker in directive #TINFR-3806 ([#3843](/github.com/atinc/ngx-tethys/issues/3843)) ([5d8b7f7](github.com/atinc/ngx-tethys/commits/5d8b7f7ed1ecc3e53e037bc65a83eba3f2a3923c)), closes [#TINFR-3806](github.com/atinc/ngx-tethys/issues/TINFR-3806)
|
|
11
|
+
* **layout:** fix sidebar style error ([615e9e8](github.com/atinc/ngx-tethys/commits/615e9e8db7b4bd7684fd87e2991e21308ab974eb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **tag:** add subtle to thyAppearance #TINFR-3835 ([#3850](/github.com/atinc/ngx-tethys/issues/3850)) ([83b5a0a](github.com/atinc/ngx-tethys/commits/83b5a0a12e7c5e6f810363237d5bf761fd05dca2)), closes [#TINFR-3835](github.com/atinc/ngx-tethys/issues/TINFR-3835)
|
|
17
|
+
* **tag:** add thyAppearance instead of thyTheme #TINFR-3826 ([#3846](/github.com/atinc/ngx-tethys/issues/3846)) ([f81aa8e](github.com/atinc/ngx-tethys/commits/f81aa8ed227b277ce610a018b7af659c55f2c9b2)), closes [#TINFR-3826](github.com/atinc/ngx-tethys/issues/TINFR-3826)
|
|
18
|
+
|
|
5
19
|
## [21.0.8](github.com/atinc/ngx-tethys/compare/21.0.7...21.0.8) (2026-08-14)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use '../../styles/mixins/hover.scss';
|
|
2
3
|
@use '../../styles/bootstrap/functions-variables';
|
|
3
4
|
@use '../../styles/variables.scss';
|
|
@@ -68,8 +69,12 @@
|
|
|
68
69
|
@each $color, $value in functions-variables.$theme-colors {
|
|
69
70
|
// 默认就是 Primary 无需设置样式,避免覆写 $action-hover-bg-color 颜色失效
|
|
70
71
|
@if $color != 'primary' {
|
|
72
|
+
$subtle: map.get(variables.$theme-colors-subtle, $color);
|
|
73
|
+
@if not $subtle {
|
|
74
|
+
$subtle: rgba($value, 0.1);
|
|
75
|
+
}
|
|
71
76
|
.action-#{$color} {
|
|
72
|
-
@include action-mixin.action-variant(variables.$action-color, $value,
|
|
77
|
+
@include action-mixin.action-variant(variables.$action-color, $value, $subtle);
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
80
|
}
|
package/alert/styles/alert.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:map";
|
|
1
2
|
@use "../../styles/bootstrap/functions";
|
|
2
3
|
@use "../../styles/bootstrap/functions-variables";
|
|
3
4
|
@use "../../styles/bootstrap/mixins/border-radius";
|
|
@@ -101,7 +102,11 @@
|
|
|
101
102
|
|
|
102
103
|
@each $color, $value in functions-variables.$theme-colors {
|
|
103
104
|
.thy-alert-fill-#{$color} {
|
|
104
|
-
|
|
105
|
+
$subtle: map.get(variables.$theme-colors-subtle, $color);
|
|
106
|
+
@if not $subtle {
|
|
107
|
+
$subtle: rgba($value, 0.1);
|
|
108
|
+
}
|
|
109
|
+
@include mixin.thy-alert-variant(functions.theme-color($color), $subtle);
|
|
105
110
|
}
|
|
106
111
|
|
|
107
112
|
.thy-alert-bordered-#{$color} {
|
package/alert/styles/mixin.scss
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
@mixin thy-alert-variant($color) {
|
|
13
|
+
@mixin thy-alert-variant($color, $subtle: rgba($color, 0.1)) {
|
|
14
14
|
color: variables.$gray-700;
|
|
15
|
-
@include gradients.gradient-bg(
|
|
15
|
+
@include gradients.gradient-bg($subtle);
|
|
16
16
|
border-color: $color;
|
|
17
17
|
@include thy-alert-inner($color);
|
|
18
18
|
}
|
|
@@ -89,7 +89,7 @@ $cascader-menu-min-width: 122px;
|
|
|
89
89
|
&-active:not(&-disabled) {
|
|
90
90
|
&,
|
|
91
91
|
&:hover {
|
|
92
|
-
background:
|
|
92
|
+
background: variables.$primary-subtle;
|
|
93
93
|
color: variables.$primary;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -160,7 +160,7 @@ $cascader-menu-min-width: 122px;
|
|
|
160
160
|
background-color: variables.$dropdown-menu-item-hover-bg;
|
|
161
161
|
}
|
|
162
162
|
&.active:not(.multiple) {
|
|
163
|
-
background:
|
|
163
|
+
background: variables.$primary-subtle;
|
|
164
164
|
color: variables.$primary;
|
|
165
165
|
}
|
|
166
166
|
// 覆盖 thyFlexibleText 默认样式使其垂直居中
|
|
@@ -3660,6 +3660,7 @@ class PickerDirective extends AbstractPickerComponent {
|
|
|
3660
3660
|
}, this.thyPopoverOptions()));
|
|
3661
3661
|
if (popoverRef) {
|
|
3662
3662
|
const componentInstance = popoverRef.componentInstance;
|
|
3663
|
+
this.datePopupRef = popoverRef.containerInstance.portalOutlet.attachedRef;
|
|
3663
3664
|
if (this.valueChangeSubscription) {
|
|
3664
3665
|
this.valueChangeSubscription.unsubscribe();
|
|
3665
3666
|
}
|
|
@@ -3690,7 +3691,10 @@ class PickerDirective extends AbstractPickerComponent {
|
|
|
3690
3691
|
popoverRef
|
|
3691
3692
|
.afterClosed()
|
|
3692
3693
|
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
3693
|
-
.subscribe(() =>
|
|
3694
|
+
.subscribe(() => {
|
|
3695
|
+
this.datePopupRef = undefined;
|
|
3696
|
+
this.thyOpenChange.emit(false);
|
|
3697
|
+
});
|
|
3694
3698
|
}
|
|
3695
3699
|
}
|
|
3696
3700
|
closeOverlay() {
|
|
@@ -3729,6 +3733,7 @@ class PickerDirective extends AbstractPickerComponent {
|
|
|
3729
3733
|
}
|
|
3730
3734
|
onShowTimePickerChange(show) {
|
|
3731
3735
|
this.withTime = show;
|
|
3736
|
+
this.datePopupRef?.setInput('mustShowTime', show);
|
|
3732
3737
|
}
|
|
3733
3738
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PickerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3734
3739
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.14", type: PickerDirective, isStandalone: true, inputs: { thyDateRender: { classPropertyName: "thyDateRender", publicName: "thyDateRender", isSignal: true, isRequired: false, transformFunction: null }, thyPlacement: { classPropertyName: "thyPlacement", publicName: "thyPlacement", isSignal: true, isRequired: false, transformFunction: null }, thyOffset: { classPropertyName: "thyOffset", publicName: "thyOffset", isSignal: true, isRequired: false, transformFunction: null }, thyHasBackdrop: { classPropertyName: "thyHasBackdrop", publicName: "thyHasBackdrop", isSignal: true, isRequired: false, transformFunction: null }, thyPopoverOptions: { classPropertyName: "thyPopoverOptions", publicName: "thyPopoverOptions", isSignal: true, isRequired: false, transformFunction: null }, thyStopPropagation: { classPropertyName: "thyStopPropagation", publicName: "thyStopPropagation", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { thyOnPanelChange: "thyOnPanelChange", thyOnCalendarChange: "thyOnCalendarChange" }, usesInheritance: true, ngImport: i0 }); }
|