ngx-tethys 18.1.0 → 18.2.0-next.0

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.
Files changed (155) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/alert/styles/mixin.scss +1 -1
  3. package/anchor/style/anchor.scss +4 -2
  4. package/avatar/styles/avatar.scss +1 -1
  5. package/back-top/styles/back-top.scss +3 -3
  6. package/button/styles/button-group.scss +9 -9
  7. package/button/styles/button.scss +2 -6
  8. package/button/styles/mixin.scss +6 -53
  9. package/calendar/styles/calendar.scss +3 -11
  10. package/card/styles/card.scss +3 -3
  11. package/carousel/styles/carousel.scss +10 -10
  12. package/cascader/styles/cascader.scss +3 -2
  13. package/collapse/styles/collapse.scss +4 -2
  14. package/color-picker/styles/alpha.scss +1 -1
  15. package/color-picker/styles/color-picker-panel.scss +1 -1
  16. package/color-picker/styles/hue.scss +1 -1
  17. package/color-picker/styles/saturation.scss +1 -1
  18. package/comment/styles/mixin.scss +1 -1
  19. package/core/index.d.ts +1 -0
  20. package/core/overlay/abstract-overlay.config.d.ts +5 -0
  21. package/core/theme/index.d.ts +2 -0
  22. package/core/theme/store.d.ts +11 -0
  23. package/core/theme/theme.d.ts +5 -0
  24. package/date-picker/styles/calendar.scss +1 -1
  25. package/date-picker/styles/decade-panel.scss +1 -1
  26. package/date-picker/styles/picker.scss +1 -1
  27. package/date-picker/styles/range-picker.scss +3 -3
  28. package/date-picker/styles/year-panel.scss +2 -2
  29. package/dialog/styles/dialog.scss +6 -6
  30. package/drag-drop/drag-content.directive.d.ts +1 -0
  31. package/drag-drop/drag-drop.service.d.ts +1 -0
  32. package/drag-drop/drag-handle.directive.d.ts +1 -0
  33. package/drag-drop/drag.directive.d.ts +1 -0
  34. package/drag-drop/drop-container.directive.d.ts +2 -5
  35. package/drag-drop/module.d.ts +4 -0
  36. package/dropdown/styles/dropdown.scss +3 -3
  37. package/empty/styles/empty.scss +22 -2
  38. package/esm2022/carousel/carousel.component.mjs +3 -3
  39. package/esm2022/core/index.mjs +2 -1
  40. package/esm2022/core/overlay/abstract-overlay.config.mjs +1 -1
  41. package/esm2022/core/overlay/abstract-overlay.service.mjs +2 -2
  42. package/esm2022/core/theme/index.mjs +3 -0
  43. package/esm2022/core/theme/store.mjs +42 -0
  44. package/esm2022/core/theme/theme.mjs +2 -0
  45. package/esm2022/dialog/dialog-container.component.mjs +2 -2
  46. package/esm2022/drag-drop/drag-content.directive.mjs +2 -1
  47. package/esm2022/drag-drop/drag-drop.service.mjs +2 -1
  48. package/esm2022/drag-drop/drag-handle.directive.mjs +2 -1
  49. package/esm2022/drag-drop/drag.directive.mjs +2 -1
  50. package/esm2022/drag-drop/drop-container.directive.mjs +2 -1
  51. package/esm2022/drag-drop/module.mjs +9 -2
  52. package/esm2022/empty/svgs.mjs +103 -8
  53. package/esm2022/guider/guider-hint/guider-hint.component.mjs +3 -3
  54. package/esm2022/notify/notify.component.mjs +3 -3
  55. package/esm2022/result/result.component.mjs +3 -3
  56. package/esm2022/table/table-skeleton.component.mjs +3 -3
  57. package/esm2022/version.mjs +2 -2
  58. package/esm2022/watermark/config.mjs +2 -2
  59. package/esm2022/watermark/watermark.directive.mjs +18 -10
  60. package/fesm2022/ngx-tethys-carousel.mjs +2 -2
  61. package/fesm2022/ngx-tethys-carousel.mjs.map +1 -1
  62. package/fesm2022/ngx-tethys-core.mjs +43 -3
  63. package/fesm2022/ngx-tethys-core.mjs.map +1 -1
  64. package/fesm2022/ngx-tethys-dialog.mjs +1 -1
  65. package/fesm2022/ngx-tethys-dialog.mjs.map +1 -1
  66. package/fesm2022/ngx-tethys-drag-drop.mjs +13 -2
  67. package/fesm2022/ngx-tethys-drag-drop.mjs.map +1 -1
  68. package/fesm2022/ngx-tethys-empty.mjs +102 -7
  69. package/fesm2022/ngx-tethys-empty.mjs.map +1 -1
  70. package/fesm2022/ngx-tethys-guider.mjs +2 -2
  71. package/fesm2022/ngx-tethys-guider.mjs.map +1 -1
  72. package/fesm2022/ngx-tethys-notify.mjs +2 -2
  73. package/fesm2022/ngx-tethys-notify.mjs.map +1 -1
  74. package/fesm2022/ngx-tethys-result.mjs +2 -2
  75. package/fesm2022/ngx-tethys-result.mjs.map +1 -1
  76. package/fesm2022/ngx-tethys-table.mjs +2 -2
  77. package/fesm2022/ngx-tethys-table.mjs.map +1 -1
  78. package/fesm2022/ngx-tethys-watermark.mjs +18 -10
  79. package/fesm2022/ngx-tethys-watermark.mjs.map +1 -1
  80. package/fesm2022/ngx-tethys.mjs +1 -1
  81. package/fesm2022/ngx-tethys.mjs.map +1 -1
  82. package/form/styles/form-check.scss +1 -1
  83. package/form/styles/forms.scss +2 -3
  84. package/form/styles/mixin.scss +6 -5
  85. package/guider/styles/guider-tip.scss +2 -1
  86. package/icon/examples/all/all.component.scss +3 -1
  87. package/image/styles/image.scss +15 -11
  88. package/input/styles/input-group.scss +1 -1
  89. package/input/styles/input.scss +2 -2
  90. package/layout/examples/sidebar/sidebar.component.scss +1 -1
  91. package/layout/styles/layout.scss +3 -3
  92. package/menu/examples/theme/theme.component.scss +0 -8
  93. package/menu/styles/theme.scss +4 -4
  94. package/message/styles/message.scss +1 -1
  95. package/nav/examples/basic/basic.component.scss +1 -1
  96. package/nav/examples/extra/extra.component.scss +1 -1
  97. package/nav/examples/fill/fill.component.scss +1 -1
  98. package/nav/examples/lite/lite.component.scss +1 -1
  99. package/nav/examples/pills/pills.component.scss +1 -1
  100. package/nav/examples/responsive/responsive.component.scss +1 -1
  101. package/nav/examples/size/size.component.scss +1 -1
  102. package/nav/examples/tabs/tabs.component.scss +1 -1
  103. package/nav/examples/type/type.component.scss +1 -1
  104. package/nav/examples/vertical/vertical.component.scss +1 -1
  105. package/notify/styles/notify.scss +4 -4
  106. package/package.json +1 -1
  107. package/pagination/styles/pagination.scss +2 -2
  108. package/popover/styles.scss +3 -3
  109. package/property/styles/properties.scss +1 -1
  110. package/resizable/examples/line/line.component.scss +3 -1
  111. package/resizable/examples/style.scss +7 -5
  112. package/result/styles/result.scss +25 -1
  113. package/schematics/version.d.ts +1 -1
  114. package/schematics/version.js +1 -1
  115. package/segment/styles/mixin.scss +2 -3
  116. package/segment/styles/segment.scss +1 -1
  117. package/select/styles/select.scss +1 -1
  118. package/shared/option/styles/option.mixin.scss +1 -1
  119. package/shared/select/styles/select.mixin.scss +2 -2
  120. package/slide/examples/drawer-container/drawer-container.component.scss +1 -1
  121. package/slide/examples/layout/layout.component.scss +4 -2
  122. package/slide/styles/slide.scss +3 -2
  123. package/slider/slider.scss +2 -2
  124. package/stepper/examples/basic/basic.component.scss +3 -1
  125. package/stepper/examples/icon/icon.component.scss +3 -1
  126. package/stepper/styles/stepper.scss +7 -3
  127. package/styles/bootstrap/_variables.scss +14 -876
  128. package/styles/bootstrap/utilities/_background.scss +27 -5
  129. package/styles/bootstrap/utilities/_text.scss +29 -31
  130. package/styles/index.scss +2 -1
  131. package/styles/mixins/background-variant.scss +2 -10
  132. package/styles/mixins/utilities.scss +2 -11
  133. package/styles/modules/cdk/drag-drop.scss +6 -8
  134. package/styles/modules/close.scss +1 -1
  135. package/styles/modules/reboot.scss +1 -1
  136. package/styles/modules/tables.scss +1 -1
  137. package/styles/modules/utils.scss +0 -17
  138. package/styles/theme/dark.scss +70 -0
  139. package/styles/theme/default.scss +70 -0
  140. package/styles/theme/index.scss +2 -0
  141. package/styles/variables.scss +114 -76
  142. package/switch/styles/mixin.scss +0 -13
  143. package/table/styles/table.scss +7 -19
  144. package/tabs/styles/tabs.scss +1 -1
  145. package/tag/styles/mixin.scss +7 -42
  146. package/tag/styles/tag.scss +2 -2
  147. package/time-picker/styles/time-panel.scss +1 -1
  148. package/timeline/styles/timeline.scss +2 -2
  149. package/tooltip/styles.scss +4 -4
  150. package/transfer/styles/transfer.scss +2 -2
  151. package/tree/styles/tree.scss +3 -5
  152. package/watermark/config.d.ts +1 -1
  153. package/watermark/watermark.directive.d.ts +23 -2
  154. package/carousel/styles/index.scss +0 -1
  155. package/carousel/styles/variables.scss +0 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
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
+ # [18.2.0-next.0](https://github.com/atinc/ngx-tethys/compare/18.1.0...18.2.0-next.0) (2024-11-14)
6
+
7
+
8
+ ### Features
9
+
10
+ * **core:** support projectableNodes for ThyAbstractOverlayConfig and rename ThyStealthViewDirective to ThyStealthView #TINFR-651 ([#3230](https://github.com/atinc/ngx-tethys/issues/3230)) ([f838b96](https://github.com/atinc/ngx-tethys/commit/f838b967ae2066790617f1ace6729d4ea4025369)), closes [#TINFR-651](https://github.com/atinc/ngx-tethys/issues/TINFR-651)
11
+ * **drag-drop:** mark drag-drop as deprecated #TINFR-438 ([#3231](https://github.com/atinc/ngx-tethys/issues/3231)) ([7497858](https://github.com/atinc/ngx-tethys/commit/7497858e449a5d217c3117432db3648f27766e52)), closes [#TINFR-438](https://github.com/atinc/ngx-tethys/issues/TINFR-438)
12
+ * support dark theme for all components #TINFR-950 ([#3238](https://github.com/atinc/ngx-tethys/issues/3238)) ([0f325bb](https://github.com/atinc/ngx-tethys/commit/0f325bb330ffc5586c5c99bdaf98011cb1ced61a)), closes [#TINFR-950](https://github.com/atinc/ngx-tethys/issues/TINFR-950)
13
+
14
+
15
+
5
16
  # [18.1.0](https://github.com/atinc/ngx-tethys/compare/18.1.0-next.1...18.1.0) (2024-10-31)
6
17
 
7
18
 
@@ -19,7 +19,7 @@
19
19
 
20
20
  @mixin thy-alert-bordered-variant($color) {
21
21
  color: variables.$gray-600;
22
- background: variables.$white;
22
+ background: variables.$bg-default;
23
23
  border-color: variables.$gray-200 variables.$gray-200 variables.$gray-200 $color;
24
24
  border-left-width: 2px;
25
25
  @include thy-alert-inner($color);
@@ -10,7 +10,7 @@ $anchor-border-width: 2px;
10
10
  margin-block-start: -4px;
11
11
  padding-block-start: 4px;
12
12
  overflow: auto;
13
- background-color: variables.$white;
13
+ background-color: variables.$bg-default;
14
14
 
15
15
  &:not(&-horizontal) {
16
16
  .thy-anchor {
@@ -69,7 +69,9 @@ $anchor-border-width: 2px;
69
69
  position: absolute;
70
70
  bottom: 0;
71
71
  border-top: $anchor-border-width solid variables.$primary;
72
- transition: left 0.2s ease-in-out, width 0.2s ease-in-out;
72
+ transition:
73
+ left 0.2s ease-in-out,
74
+ width 0.2s ease-in-out;
73
75
  }
74
76
  }
75
77
  &-link {
@@ -49,7 +49,7 @@
49
49
  justify-content: center;
50
50
  align-items: center;
51
51
  &-icon {
52
- color: variables.$gray-100;
52
+ color: variables.$avatar-disabled-color;
53
53
  }
54
54
  }
55
55
  }
@@ -20,15 +20,15 @@ $back-top-width: 36px;
20
20
  width: $back-top-width;
21
21
  height: $back-top-width;
22
22
  overflow: hidden;
23
- background-color: variables.$white;
23
+ background-color: variables.$bg-float;
24
24
  border-radius: 50%;
25
25
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
26
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
26
+ box-shadow: variables.$float-btn-box-shadow;
27
27
  display: flex;
28
28
  align-items: center;
29
29
  justify-content: center;
30
30
  &:hover {
31
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
31
+ box-shadow: variables.$float-btn-hover-box-shadow;
32
32
  }
33
33
  }
34
34
  }
@@ -1,11 +1,11 @@
1
- @use "../../styles/bootstrap/mixins/border-radius";
2
- @use "../../styles/mixins/hover";
3
- @use "../../styles/bootstrap/functions-variables";
4
- @use "../../styles/bootstrap/variables" as bootstrap-variables;
5
- @use "../../styles/mixins/shadow";
6
- @use "../../styles/variables";
7
- @use "./button.scss";
8
- @use "mixin";
1
+ @use '../../styles/bootstrap/mixins/border-radius';
2
+ @use '../../styles/mixins/hover';
3
+ @use '../../styles/bootstrap/functions-variables';
4
+ @use '../../styles/bootstrap/variables' as bootstrap-variables;
5
+ @use '../../styles/mixins/shadow';
6
+ @use '../../styles/variables';
7
+ @use './button.scss';
8
+ @use 'mixin';
9
9
  // stylelint-disable selector-no-qualifying-type
10
10
 
11
11
  // Make the div behave like a button
@@ -162,7 +162,7 @@
162
162
  // The clickable button for toggling the menu
163
163
  // Set the same inset shadow as the :active state
164
164
  .btn-group.show .dropdown-toggle {
165
- @include shadow.box-shadow(bootstrap-variables.$btn-active-box-shadow);
165
+ @include shadow.box-shadow(variables.$btn-active-box-shadow);
166
166
 
167
167
  // Show no shadow for `.btn-link` since it has no other button styles.
168
168
  &.btn-link {
@@ -52,7 +52,7 @@
52
52
 
53
53
  &:focus,
54
54
  &.focus {
55
- outline: 0; // box-shadow: $btn-focus-box-shadow;
55
+ outline: 0;
56
56
  }
57
57
 
58
58
  // Disabled comes first so active can properly restyle
@@ -73,10 +73,6 @@
73
73
  &:not(:disabled):not(.disabled):active,
74
74
  &:not(:disabled):not(.disabled).active {
75
75
  background-image: none;
76
- // @include box-shadow($btn-active-box-shadow);
77
- // &:focus {
78
- // @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
79
- // }
80
76
  }
81
77
 
82
78
  &:not(:disabled):not(.disabled).loading {
@@ -206,7 +202,7 @@ fieldset:disabled a.btn {
206
202
  &.focus {
207
203
  text-decoration: variables.$link-hover-decoration;
208
204
  border-color: transparent;
209
- box-shadow: none;
205
+ box-shadow: variables.$box-shadow-none;
210
206
  }
211
207
 
212
208
  &.disabled,
@@ -1,9 +1,9 @@
1
- @use "sass:color";
2
- @use "../../styles/bootstrap/mixins/gradients";
3
- @use "../../styles/mixins/hover";
4
- @use "../../styles/bootstrap/variables" as bootstrap-variables;
5
- @use "../../styles/mixins/shadow";
6
- @use "../../styles/variables";
1
+ @use 'sass:color';
2
+ @use '../../styles/bootstrap/mixins/gradients';
3
+ @use '../../styles/mixins/hover';
4
+ @use '../../styles/bootstrap/variables' as bootstrap-variables;
5
+ @use '../../styles/mixins/shadow';
6
+ @use '../../styles/variables';
7
7
 
8
8
  // Button variants
9
9
  //
@@ -19,27 +19,15 @@
19
19
  $active-background: color.adjust($background, $lightness: -10%),
20
20
  $active-border: color.adjust($border, $lightness: -12.5%)
21
21
  ) {
22
- // color: color-yiq($background);
23
22
  color: $color;
24
23
  @include gradients.gradient-bg($background);
25
24
  border-color: $border;
26
25
  @include hover.hover {
27
- // color: color-yiq($hover-background);
28
26
  color: $hover-color;
29
27
  @include gradients.gradient-bg($hover-background);
30
28
  border-color: $hover-border;
31
29
  @include shadow.box-shadow(variables.$btn-box-shadow);
32
30
  }
33
- &:focus,
34
- &.focus {
35
- // Avoid using mixin so we can pass custom focus shadow properly
36
- // @if $enable-shadows {
37
- // box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
38
- // }
39
- // @else {
40
- // box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
41
- // }
42
- } // Disabled comes first so active can properly restyle
43
31
  &.disabled,
44
32
  &:disabled {
45
33
  &:hover {
@@ -47,25 +35,6 @@
47
35
  }
48
36
  @include button-disabled(variables.$btn-disabled-border-color);
49
37
  }
50
- &:not(:disabled):not(.disabled):active,
51
- &:not(:disabled):not(.disabled).active,
52
- .show > &.dropdown-toggle {
53
- // color: color-yiq($active-background);
54
- // background-color: $active-background;
55
- // @if $enable-gradients {
56
- // background-image: none; // Remove the gradient for the pressed/active state
57
- // }
58
- // border-color: $active-border;
59
- &:focus {
60
- // Avoid using mixin so we can pass custom focus shadow properly
61
- // @if $enable-shadows {
62
- // box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
63
- // }
64
- // @else {
65
- // box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
66
- // }
67
- }
68
- }
69
38
  }
70
39
 
71
40
  @mixin button-outline-variant($color, $border-color, $hover-color, $hover-background, $hover-border, $active-background, $active-border) {
@@ -78,10 +47,6 @@
78
47
  background-color: $hover-background;
79
48
  border-color: $hover-border;
80
49
  }
81
- &:focus,
82
- &.focus {
83
- // box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
84
- }
85
50
  &.disabled,
86
51
  &:disabled {
87
52
  &:hover {
@@ -95,15 +60,6 @@
95
60
  color: $hover-color;
96
61
  background-color: $active-background;
97
62
  border-color: $active-border;
98
- &:focus {
99
- // Avoid using mixin so we can pass custom focus shadow properly
100
- // @if $enable-shadows and $btn-active-box-shadow !=none {
101
- // box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($color, .5);
102
- // }
103
- // @else {
104
- // box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
105
- // }
106
- }
107
63
  }
108
64
  }
109
65
 
@@ -131,7 +87,6 @@
131
87
 
132
88
  @mixin button-hover-box-shadow($color) {
133
89
  &:hover {
134
- // lighten($primary-active-theme, 15%)
135
90
  @include shadow.box-shadow(0px 2px 5px 1px rgba($color, 0.6));
136
91
  }
137
92
  }
@@ -141,8 +96,6 @@
141
96
  color: variables.$btn-disabled-color;
142
97
  background-color: variables.$btn-disabled-bg-color;
143
98
  border-color: $color;
144
- // border-color: $btn-disabled-border-color;
145
- // border: none;
146
99
  }
147
100
 
148
101
  @include shadow.box-shadow(none);
@@ -1,4 +1,4 @@
1
- @use "../../styles/variables";
1
+ @use '../../styles/variables';
2
2
 
3
3
  $calendar-full-prefix-cls: 'thy-calendar-full';
4
4
 
@@ -24,8 +24,8 @@ $calendar-full-prefix-cls: 'thy-calendar-full';
24
24
  position: absolute;
25
25
  top: 0;
26
26
  left: 0;
27
- box-shadow: 0 0 20px 0 rgba(variables.$black, 0.12);
28
- background: variables.$white;
27
+ box-shadow: variables.$calendar-active-box-shadow;
28
+ background: variables.$bg-default;
29
29
  width: 100%;
30
30
  min-height: 100%;
31
31
  z-index: 2;
@@ -52,14 +52,6 @@ $calendar-full-prefix-cls: 'thy-calendar-full';
52
52
  font-weight: 400;
53
53
  }
54
54
 
55
- .#{$calendar-full-prefix-cls}-selected-day {
56
- // background: $gray-80;
57
- // border-color: $primary;
58
- }
59
-
60
- .#{$calendar-full-prefix-cls}-date-value-text {
61
- }
62
-
63
55
  .#{$calendar-full-prefix-cls}-today {
64
56
  .#{$calendar-full-prefix-cls}-date-value-today-text {
65
57
  width: 24px;
@@ -1,10 +1,10 @@
1
- @use "../../styles/variables";
2
- @use "mixin";
1
+ @use '../../styles/variables';
2
+ @use 'mixin';
3
3
 
4
4
  .thy-card {
5
5
  display: flex;
6
6
  flex-direction: column;
7
- background: variables.$white;
7
+ background: variables.$bg-default;
8
8
  border-radius: variables.$card-border-radius;
9
9
 
10
10
  .thy-card-header {
@@ -1,11 +1,11 @@
1
1
  @use '../../styles/variables';
2
- @use './variables' as vars;
3
2
 
4
- #{vars.$carousel-prefix-cls} {
3
+ $carousel-prefix-cls: 'thy-carousel';
4
+
5
+ #{$carousel-prefix-cls} {
5
6
  margin-left: auto;
6
7
  margin-right: auto;
7
8
  position: relative;
8
- //overflow: hidden;
9
9
  padding: 0;
10
10
  z-index: 1;
11
11
  .thy-carousel-initialized {
@@ -62,16 +62,16 @@
62
62
  cursor: variables.$hand-cursor;
63
63
  &:hover {
64
64
  thy-dot {
65
- opacity: 1;
65
+ border-color: variables.$white;
66
66
  }
67
67
  }
68
68
  thy-dot {
69
69
  transition: 0.3s opacity;
70
- color: variables.$white;
71
- opacity: 0.5;
70
+ border-color: variables.$carousel-dot-bg-color;
71
+
72
72
  &:hover,
73
73
  &.active {
74
- opacity: 1;
74
+ border-color: variables.$white;
75
75
  }
76
76
  }
77
77
  }
@@ -82,13 +82,13 @@
82
82
  transform: translateY(-50%);
83
83
  z-index: 200;
84
84
  cursor: variables.$hand-cursor;
85
- color: variables.$gray-70;
85
+ color: variables.$white;
86
86
  user-select: none;
87
87
  overflow: hidden;
88
88
  width: 32px;
89
89
  height: 32px;
90
90
  transition: 0.3s background;
91
- background: rgba(vars.$carousel-control-default-bg, 0.3);
91
+ background: variables.$carousel-control-bg-color;
92
92
  border-radius: 50%;
93
93
  thy-icon {
94
94
  position: absolute;
@@ -99,7 +99,7 @@
99
99
  font-size: 22px;
100
100
  }
101
101
  &:hover {
102
- background: rgba(vars.$carousel-control-default-bg, 0.6);
102
+ background: variables.$carousel-control-hover-bg-color;
103
103
  }
104
104
  &-pre {
105
105
  left: 12px;
@@ -21,11 +21,12 @@ $cascader-menu-min-width: 122px;
21
21
  }
22
22
  &-menus {
23
23
  font-size: 14px;
24
- background: variables.$white;
24
+ background: variables.$bg-panel;
25
25
  position: relative;
26
26
  z-index: 1050;
27
27
  border-radius: 4px;
28
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
28
+ border: 1px solid variables.$gray-200;
29
+ box-shadow: variables.$box-shadow;
29
30
  white-space: nowrap;
30
31
  margin-top: 4px;
31
32
  margin-bottom: 4px;
@@ -20,7 +20,9 @@ $thy-collapse-prefix-cls: 'thy-collapse';
20
20
  align-items: center;
21
21
  position: relative;
22
22
  cursor: variables.$hand-cursor;
23
- transition: all 0.3s, visibility 0s;
23
+ transition:
24
+ all 0.3s,
25
+ visibility 0s;
24
26
  .#{$thy-collapse-prefix-cls}-title {
25
27
  flex: 1;
26
28
  font-size: variables.$collapse-header-font-size;
@@ -43,7 +45,7 @@ $thy-collapse-prefix-cls: 'thy-collapse';
43
45
  }
44
46
  .#{$thy-collapse-prefix-cls}-content {
45
47
  border-top: 1px solid variables.$gray-200;
46
- background-color: variables.$white;
48
+ background-color: variables.$bg-default;
47
49
  &-box {
48
50
  padding: 0px variables.$collapse-spacing-x (variables.$collapse-spacing-y + 4) variables.$collapse-spacing-x;
49
51
  }
@@ -23,7 +23,7 @@
23
23
  transform: translateX(-4px);
24
24
  z-index: 2;
25
25
  border: 2px solid variables.$white;
26
- box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
26
+ box-shadow: variables.$color-picker-pointer-box-shadow;
27
27
  }
28
28
  .gradient-color {
29
29
  position: absolute;
@@ -23,7 +23,7 @@
23
23
  .color-block {
24
24
  width: 18px;
25
25
  height: 18px;
26
- background-color: variables.$white;
26
+ background-color: variables.$bg-default;
27
27
  border: 1px solid rgba(238, 238, 238, 1);
28
28
  border-radius: 2px;
29
29
  position: relative;
@@ -40,6 +40,6 @@
40
40
  transform: translateX(-4px);
41
41
  z-index: 2;
42
42
  border: 2px solid variables.$white;
43
- box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
43
+ box-shadow: variables.$color-picker-pointer-box-shadow;
44
44
  }
45
45
  }
@@ -31,7 +31,7 @@
31
31
  left: 90%;
32
32
  margin: -7px 0 0 -7px;
33
33
  border: 3px solid variables.$white;
34
- box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
34
+ box-shadow: variables.$color-picker-pointer-box-shadow;
35
35
  }
36
36
  }
37
37
  }
@@ -13,7 +13,7 @@
13
13
  border: variables.$comment-actions-border;
14
14
  border-radius: variables.$comment-actions-border-radius;
15
15
  box-shadow: variables.$box-shadow;
16
- background-color: variables.$white;
16
+ background-color: variables.$bg-panel;
17
17
  cursor: variables.$hand-cursor;
18
18
  display: inline-flex;
19
19
  visibility: hidden;
package/core/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './event-dispatchers/index';
5
5
  export * from './request-animation';
6
6
  export * from './scroll';
7
7
  export * from './animation';
8
+ export * from './theme';
8
9
  export * from './overlay/index';
9
10
  export * from './update-host-class.service';
10
11
  export * from './translate';
@@ -115,6 +115,11 @@ export declare class ThyAbstractOverlayConfig<TData = unknown> {
115
115
  * @default true
116
116
  */
117
117
  canPush?: boolean;
118
+ /**
119
+ * Projectable nodes of thy abstract overlay config, only for component
120
+ * @type Node[][]
121
+ */
122
+ projectableNodes?: Node[][];
118
123
  }
119
124
  export interface ThyAbstractOverlayOptions {
120
125
  /** component name, e.g. dialog | popover | slide */
@@ -0,0 +1,2 @@
1
+ export * from './theme';
2
+ export * from './store';
@@ -0,0 +1,11 @@
1
+ import { ThyTheme } from './theme';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ThyThemeStore {
4
+ readonly theme: import("@angular/core").WritableSignal<ThyTheme>;
5
+ constructor();
6
+ setTheme(theme: ThyTheme): void;
7
+ normalizeColor(color: string | string[]): string;
8
+ isDark(): boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<ThyThemeStore, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<ThyThemeStore>;
11
+ }
@@ -0,0 +1,5 @@
1
+ export declare const enum ThyTheme {
2
+ light = "light",
3
+ dark = "dark",
4
+ system = "system"
5
+ }
@@ -9,7 +9,7 @@
9
9
  line-height: variables.$line-height-base;
10
10
  text-align: left;
11
11
  list-style: none;
12
- background-color: variables.$white;
12
+ background-color: variables.$bg-panel;
13
13
  background-clip: padding-box;
14
14
  border: style.$border-width-base style.$border-style-base variables.$border-color;
15
15
  border-radius: variables.$border-radius-lg;
@@ -11,7 +11,7 @@
11
11
  z-index: style.$zindex-picker-panel;
12
12
  display: flex;
13
13
  flex-direction: column;
14
- background: variables.$white;
14
+ background: variables.$bg-default;
15
15
  border-radius: variables.$border-radius-lg;
16
16
  outline: none;
17
17
  }
@@ -182,5 +182,5 @@
182
182
  }
183
183
 
184
184
  .thy-popover-container .#{style.$calendar-prefix-cls} {
185
- box-shadow: none;
185
+ box-shadow: variables.$box-shadow-none;
186
186
  }
@@ -120,10 +120,10 @@ $input-box-height: 34px;
120
120
  padding-left: 0;
121
121
  line-height: bootstrap-variables.$input-height-sm;
122
122
  border: 0;
123
- box-shadow: none;
123
+ box-shadow: variables.$box-shadow-none;
124
124
 
125
125
  &:focus {
126
- box-shadow: none;
126
+ box-shadow: variables.$box-shadow-none;
127
127
  }
128
128
  }
129
129
 
@@ -213,7 +213,7 @@ $input-box-height: 34px;
213
213
  &-combobox {
214
214
  display: inline-block;
215
215
  height: 100%;
216
- background-color: variables.$white;
216
+ background-color: variables.$bg-default;
217
217
  border-top: style.$border-width-base style.$border-style-base style.$border-color-split;
218
218
  }
219
219
  &-select {
@@ -9,12 +9,12 @@
9
9
  bottom: 0;
10
10
  left: 0;
11
11
  z-index: style.$zindex-picker-panel;
12
- background: variables.$white;
12
+ background: variables.$bg-default;
13
13
  border-radius: variables.$border-radius-lg;
14
14
  outline: none;
15
15
  display: flex;
16
16
  flex-direction: column;
17
- background: variables.$white;
17
+ background: variables.$bg-default;
18
18
  }
19
19
 
20
20
  .#{style.$calendar-prefix-cls}-year-panel-hidden {
@@ -1,8 +1,8 @@
1
- @use "../../styles/bootstrap/mixins/border-radius";
2
- @use "../../styles/bootstrap/mixins/breakpoints";
3
- @use "../../styles/bootstrap/mixins/text-truncate";
4
- @use "../../styles/variables";
5
- @use "../../styles/modules/utils.scss";
1
+ @use '../../styles/bootstrap/mixins/border-radius';
2
+ @use '../../styles/bootstrap/mixins/breakpoints';
3
+ @use '../../styles/bootstrap/mixins/text-truncate';
4
+ @use '../../styles/variables';
5
+ @use '../../styles/modules/utils.scss';
6
6
 
7
7
  .thy-dialog-content-sidebar-header {
8
8
  min-height: variables.$dialog-header-height;
@@ -26,7 +26,7 @@
26
26
  // isn't set, we have to inherit the min and max values explicitly.
27
27
  min-height: inherit;
28
28
  max-height: inherit;
29
- background: variables.$white;
29
+ background: variables.$bg-default;
30
30
  box-shadow: variables.$dialog-box-shadow;
31
31
 
32
32
  .thy-layout {
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
4
4
  * 自定义拖拽时可经过,拖拽结束时可放置的区域内容
5
5
  * @name thy-drag-content,[thyDragContent]
6
6
  * @order 25
7
+ * @deprecated please use @angular/cdk/drag-drop
7
8
  */
8
9
  export declare class ThyDragContentDirective {
9
10
  element: ElementRef<HTMLElement>;
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
4
4
  /**
5
5
  * 自定义可放置区域内容
6
6
  * @order 40
7
+ * @deprecated please use @angular/cdk/drag-drop
7
8
  */
8
9
  export declare class ThyDragDropService<T = any> {
9
10
  /**
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
4
4
  * 自定义可拖拽区域内容
5
5
  * @name thy-drag-handle,[thyDragHandle]
6
6
  * @order 20
7
+ * @deprecated please use @angular/cdk/drag-drop
7
8
  */
8
9
  export declare class ThyDragHandleDirective {
9
10
  element: ElementRef<HTMLElement>;
@@ -6,6 +6,7 @@ import * as i0 from "@angular/core";
6
6
  * 拖拽项
7
7
  * @name thy-drag,[thyDrag]
8
8
  * @order 10
9
+ * @deprecated please use @angular/cdk/drag-drop
9
10
  */
10
11
  export declare class ThyDragDirective<T = any> implements OnDestroy {
11
12
  container: IThyDropContainerDirective<any>;
@@ -6,6 +6,7 @@ import * as i0 from "@angular/core";
6
6
  /**
7
7
  * @name thy-drop-container,[thyDropContainer]
8
8
  * @order 30
9
+ * @deprecated please use @angular/cdk/drag-drop
9
10
  */
10
11
  export declare class ThyDropContainerDirective<T = any> implements OnInit, AfterContentInit, IThyDropContainerDirective, OnDestroy {
11
12
  private ngZone;
@@ -64,9 +65,5 @@ export declare class ThyDropContainerDirective<T = any> implements OnInit, After
64
65
  ngOnDestroy(): void;
65
66
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDropContainerDirective<any>, never>;
66
67
  static ɵdir: i0.ɵɵDirectiveDeclaration<ThyDropContainerDirective<any>, "thy-drop-container,[thyDropContainer]", never, { "dragContainer": { "alias": "thyDropContainer"; "required": false; }; "data": { "alias": "thyDropContainerData"; "required": false; }; "disabled": { "alias": "thyDropContainerDisabled"; "required": false; }; "beforeStart": { "alias": "thyBeforeDragStart"; "required": false; }; "beforeOver": { "alias": "thyBeforeDragOver"; "required": false; }; "beforeDrop": { "alias": "thyBeforeDragDrop"; "required": false; }; }, { "started": "thyDragStarted"; "ended": "thyDragEnded"; "overed": "thyDragOvered"; "dropped": "thyDragDropped"; }, ["draggables"], never, true, never>;
67
- static ngAcceptInputType_disabled: boolean /**
68
- * dragend 触发时调用
69
- */ | /**
70
- * dragend 触发时调用
71
- */ string | number;
68
+ static ngAcceptInputType_disabled: boolean | string | number;
72
69
  }
@@ -3,7 +3,11 @@ import * as i1 from "./drop-container.directive";
3
3
  import * as i2 from "./drag.directive";
4
4
  import * as i3 from "./drag-handle.directive";
5
5
  import * as i4 from "./drag-content.directive";
6
+ /**
7
+ * @deprecated please use @angular/cdk/drag-drop
8
+ */
6
9
  export declare class ThyDragDropModule {
10
+ constructor();
7
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ThyDragDropModule, never>;
8
12
  static ɵmod: i0.ɵɵNgModuleDeclaration<ThyDragDropModule, never, [typeof i1.ThyDropContainerDirective, typeof i2.ThyDragDirective, typeof i3.ThyDragHandleDirective, typeof i4.ThyDragContentDirective], [typeof i1.ThyDropContainerDirective, typeof i2.ThyDragDirective, typeof i3.ThyDragHandleDirective, typeof i4.ThyDragContentDirective]>;
9
13
  static ɵinj: i0.ɵɵInjectorDeclaration<ThyDragDropModule>;