ng-alain 18.0.2 → 18.1.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 (78) hide show
  1. package/application/files/src/assets/color.less +212 -211
  2. package/application/files/src/assets/style.compact.css +1 -1
  3. package/application/files/src/assets/style.dark.css +1 -1
  4. package/application/files/src/styles/theme.less +1 -1
  5. package/application/files/src/styles.less +7 -7
  6. package/application/index.js +7 -7
  7. package/application/index.js.map +1 -1
  8. package/application/index.ts +6 -6
  9. package/core/lang.config.js +3 -3
  10. package/core/lang.config.js.map +1 -1
  11. package/curd/index.js +1 -1
  12. package/curd/index.js.map +1 -1
  13. package/edit/index.js +1 -1
  14. package/edit/index.js.map +1 -1
  15. package/empty/index.js +1 -1
  16. package/empty/index.js.map +1 -1
  17. package/list/index.js +1 -1
  18. package/list/index.js.map +1 -1
  19. package/module/index.js +1 -1
  20. package/module/index.js.map +1 -1
  21. package/ng-add/index.js +1 -1
  22. package/ng-add/index.js.map +1 -1
  23. package/ng-update/index.js +2 -3
  24. package/ng-update/index.js.map +1 -1
  25. package/ng-update/upgrade-rules/V18/index.js +1 -2
  26. package/ng-update/upgrade-rules/V18/index.js.map +1 -1
  27. package/ng-update/upgrade-rules/V18/remove-ng-less-javascript-enabled-patch.js +1 -2
  28. package/ng-update/upgrade-rules/V18/remove-ng-less-javascript-enabled-patch.js.map +1 -1
  29. package/package.json +2 -2
  30. package/plugin/index.js +1 -1
  31. package/plugin/index.js.map +1 -1
  32. package/plugin/plugin.asdf.js +1 -2
  33. package/plugin/plugin.asdf.js.map +1 -1
  34. package/plugin/plugin.code-style.js +1 -2
  35. package/plugin/plugin.code-style.js.map +1 -1
  36. package/plugin/plugin.default-language.js +1 -2
  37. package/plugin/plugin.default-language.js.map +1 -1
  38. package/plugin/plugin.docker.js +1 -2
  39. package/plugin/plugin.docker.js.map +1 -1
  40. package/plugin/plugin.icon.js +1 -2
  41. package/plugin/plugin.icon.js.map +1 -1
  42. package/plugin/plugin.rtl.js +1 -2
  43. package/plugin/plugin.rtl.js.map +1 -1
  44. package/plugin/plugin.sts.js +1 -2
  45. package/plugin/plugin.sts.js.map +1 -1
  46. package/sta/index.js +1 -1
  47. package/sta/index.js.map +1 -1
  48. package/tpl/index.js +1 -1
  49. package/tpl/index.js.map +1 -1
  50. package/utils/alain.js +4 -5
  51. package/utils/alain.js.map +1 -1
  52. package/utils/ast.js +7 -7
  53. package/utils/ast.js.map +1 -1
  54. package/utils/file.js +8 -9
  55. package/utils/file.js.map +1 -1
  56. package/utils/html.js +7 -8
  57. package/utils/html.js.map +1 -1
  58. package/utils/json.js +3 -4
  59. package/utils/json.js.map +1 -1
  60. package/utils/lib-versions.js +2 -2
  61. package/utils/lib-versions.ts +2 -2
  62. package/utils/log.js +5 -6
  63. package/utils/log.js.map +1 -1
  64. package/utils/node.js +1 -2
  65. package/utils/node.js.map +1 -1
  66. package/utils/package.js +5 -5
  67. package/utils/package.js.map +1 -1
  68. package/utils/standalone.js +1 -2
  69. package/utils/standalone.js.map +1 -1
  70. package/utils/testing.js +6 -6
  71. package/utils/testing.js.map +1 -1
  72. package/utils/versions.js +13 -14
  73. package/utils/versions.js.map +1 -1
  74. package/utils/versions.ts +11 -11
  75. package/utils/workspace.js +16 -16
  76. package/utils/workspace.js.map +1 -1
  77. package/view/index.js +1 -1
  78. package/view/index.js.map +1 -1
@@ -119,6 +119,7 @@ a.ant-typography, .ant-typography a {color: @primary-color;}
119
119
  .ant-cron-expression-input-group-focus {border-color: @primary-color;}
120
120
  .ant-cron-expression-label-foucs {color: @primary-color;}
121
121
  .ant-color-picker-trigger:hover {border-color: @primary-color;}
122
+ .ant-hashCode-primary {background-color: @primary-color;}
122
123
  .setting-drawer__handle {background: @primary-color;}
123
124
  .theme-btn-active {color: @primary-color;}
124
125
  .theme-btn .ant-avatar:hover {color: @primary-color;}
@@ -142,6 +143,185 @@ a.ant-typography, .ant-typography a {color: @primary-color;}
142
143
  .sidebar-nav__item-link:hover {color: @primary-color;}
143
144
  .sidebar-nav__selected {border-left-color: @primary-color;}
144
145
  .sidebar-nav__selected > .sidebar-nav__item-link {color: @primary-color;}
146
+ .size(@width; @height) {width: @width;height: @height;}
147
+ .square(@size) {.size(@size; @size);}
148
+ .placeholder(@color: @input-placeholder-color) {&::-moz-placeholder {opacity: 1;
149
+ }
150
+ &::placeholder {color: @color;user-select: none;
151
+ }
152
+ &:placeholder-shown {text-overflow: ellipsis;}
153
+ }
154
+ .clearfix() {&::before {display: table;content: '';}
155
+ &::after {display: table;clear: both;content: '';}
156
+ }
157
+ .iconfont-mixin() {display: inline-block;color: @icon-color;font-style: normal;line-height: 0;text-align: center;text-transform: none;vertical-align: -0.125em;
158
+ text-rendering: optimizelegibility;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;> * {line-height: 1;}
159
+ svg {display: inline-block;}
160
+ &::before {display: none;
161
+ }
162
+ & &-icon {display: block;}
163
+ }
164
+ .typography-paragraph() {margin-bottom: 1em;}
165
+ .typography-title(@fontSize; @fontWeight; @lineHeight; @headingColor; @headingMarginBottom;) {margin-bottom: @headingMarginBottom;color: @headingColor;font-weight: @fontWeight;font-size: @fontSize;line-height: @lineHeight;}
166
+ .typography-title-1() {.typography-title(
167
+ @heading-1-size,
168
+ @typography-title-font-weight,
169
+ 1.23,
170
+ @heading-color,
171
+ @typography-title-margin-bottom
172
+ );}
173
+ .typography-title-2() {.typography-title(
174
+ @heading-2-size,
175
+ @typography-title-font-weight,
176
+ 1.35,
177
+ @heading-color,
178
+ @typography-title-margin-bottom
179
+ );}
180
+ .typography-title-3() {.typography-title(
181
+ @heading-3-size,
182
+ @typography-title-font-weight,
183
+ 1.35,
184
+ @heading-color,
185
+ @typography-title-margin-bottom
186
+ );}
187
+ .typography-title-4() {.typography-title(
188
+ @heading-4-size,
189
+ @typography-title-font-weight,
190
+ 1.4,
191
+ @heading-color,
192
+ @typography-title-margin-bottom
193
+ );}
194
+ .typography-title-5() {.typography-title(
195
+ @heading-5-size,
196
+ @typography-title-font-weight,
197
+ 1.5,
198
+ @heading-color,
199
+ @typography-title-margin-bottom
200
+ );}
201
+ .popover-customize-bg(@containerClass, @background: @popover-background, @prefix: @ant-prefix)
202
+ when
203
+ (@theme = dark) {@picker-prefix-cls: ~'@{prefix}-picker';@slider-prefix-cls: ~'@{prefix}-slider';@anchor-prefix-cls: ~'@{prefix}-anchor';@collapse-prefix-cls: ~'@{prefix}-collapse';@tab-prefix-cls: ~'@{prefix}-tabs';@timeline-prefix-cls: ~'@{prefix}-timeline';@tree-prefix-cls: ~'@{prefix}-tree';@card-prefix-cls: ~'@{prefix}-card';@badge-prefix-cls: ~'@{prefix}-badge';@transfer-prefix-cls: ~'@{prefix}-transfer';@calendar-prefix-cls: ~'@{prefix}-picker-calendar';@calendar-picker-prefix-cls: ~'@{prefix}-picker';@table-prefix-cls: ~'@{prefix}-table';@popover-border: @border-width-base @border-style-base @popover-customize-border-color;.@{containerClass} {.@{picker-prefix-cls}-clear,
204
+ .@{slider-prefix-cls}-handle,
205
+ .@{anchor-prefix-cls}-wrapper,
206
+ .@{collapse-prefix-cls}-content,
207
+ .@{timeline-prefix-cls}-item-head,
208
+ .@{card-prefix-cls} {background-color: @background;}
209
+ .@{transfer-prefix-cls} {&-list {&-header {background: @background;border-bottom: @popover-border;}
210
+ &-content-item:not(.@{transfer-prefix-cls}-list-content-item-disabled):hover {background-color: @item-hover-bg;}
211
+ }
212
+ }
213
+ tr.@{table-prefix-cls}-expanded-row {&,
214
+ &:hover {> td {background: #272727;}
215
+ }
216
+ }
217
+ .@{table-prefix-cls}.@{table-prefix-cls}-small {thead {> tr {> th {background-color: @background;border-bottom: @popover-border;}
218
+ }
219
+ }
220
+ }
221
+ .@{table-prefix-cls} {background-color: @background;.@{table-prefix-cls}-row-expand-icon {border: @popover-border;}
222
+ tfoot {> tr {> th,
223
+ > td {border-bottom: @popover-border;}
224
+ }
225
+ }
226
+ thead {> tr {> th {background-color: #272727;border-bottom: @popover-border;}
227
+ }
228
+ }
229
+ tbody {> tr {> td {border-bottom: @popover-border;&.@{table-prefix-cls}-cell-fix-left,
230
+ &.@{table-prefix-cls}-cell-fix-right {background-color: @background;}
231
+ }
232
+ &.@{table-prefix-cls}-row:hover {> td {background: @table-header-sort-active-bg;}
233
+ }
234
+ }
235
+ }
236
+ &.@{table-prefix-cls}-bordered {.@{table-prefix-cls}-title {border: @popover-border;}
237
+ thead > tr > th,
238
+ tbody > tr > td,
239
+ tfoot > tr > th,
240
+ tfoot > tr > td {border-right: @popover-border;}
241
+ .@{table-prefix-cls}-cell-fix-right-first::after {border-right: @popover-border;}
242
+ table > {thead {> tr:not(:last-child) > th {border-bottom: @border-width-base @border-style-base @border-color-split;}
243
+ }
244
+ }
245
+ .@{table-prefix-cls}-container {border: @popover-border;}
246
+ .@{table-prefix-cls}-expanded-row-fixed {&::after {border-right: @popover-border;}
247
+ }
248
+ .@{table-prefix-cls}-footer {border: @popover-border;}
249
+ }
250
+ .@{table-prefix-cls}-filter-trigger-container-open {background-color: #525252;}
251
+ }
252
+ .@{calendar-prefix-cls}-full {background-color: @background;.@{calendar-picker-prefix-cls}-panel {background-color: @background;.@{calendar-prefix-cls}-date {border-top: 2px solid @popover-customize-border-color;}
253
+ }
254
+ }
255
+ .@{tab-prefix-cls} {&.@{tab-prefix-cls}-card .@{tab-prefix-cls}-card-bar .@{tab-prefix-cls}-tab-active {background-color: @background;border-bottom: @border-width-base solid @background;}
256
+ }
257
+ .@{badge-prefix-cls} {&-count {box-shadow: 0 0 0 1px @background;}
258
+ }
259
+ .@{tree-prefix-cls} {&-show-line {.@{tree-prefix-cls}-switcher {background: @background;}
260
+ }
261
+ }
262
+ }
263
+ }
264
+ .box(@position: absolute) {position: @position;top: 0;right: 0;bottom: 0;left: 0;}
265
+ .box(@position: absolute) {position: @position;top: 0;right: 0;bottom: 0;left: 0;}
266
+ .modal-mask() {pointer-events: none;&.@{ant-prefix}-zoom-enter,
267
+ &.@{ant-prefix}-zoom-appear {transform: none;
268
+ opacity: 0;animation-duration: @animation-duration-slow;user-select: none;
269
+ }
270
+ &-mask {.box(fixed);z-index: @zindex-modal-mask;height: 100%;background-color: @modal-mask-bg;&-hidden {display: none;}
271
+ }
272
+ &-wrap {.box(fixed);overflow: auto;outline: 0;-webkit-overflow-scrolling: touch;}
273
+ }
274
+ .motion-common(@duration: @animation-duration-base) {animation-duration: @duration;animation-fill-mode: both;}
275
+ .motion-common-leave(@duration: @animation-duration-base) {animation-duration: @duration;animation-fill-mode: both;}
276
+ .make-motion(@className, @keyframeName, @duration: @animation-duration-base) {.@{className}-enter,
277
+ .@{className}-appear {.motion-common(@duration);animation-play-state: paused;}
278
+ .@{className}-leave {.motion-common-leave(@duration);animation-play-state: paused;}
279
+ .@{className}-enter.@{className}-enter-active,
280
+ .@{className}-appear.@{className}-appear-active {animation-name: ~'@{keyframeName}In';animation-play-state: running;}
281
+ .@{className}-leave.@{className}-leave-active {animation-name: ~'@{keyframeName}Out';animation-play-state: running;pointer-events: none;}
282
+ }
283
+ .reset-component() {box-sizing: border-box;margin: 0;padding: 0;color: @text-color;font-size: @font-size-base;font-variant: @font-variant-base;line-height: @line-height-base;list-style: none;font-feature-settings: @font-feature-settings-base;}
284
+ .operation-unit() {color: @link-color;text-decoration: none;outline: none;cursor: pointer;transition: color 0.3s;&:focus,
285
+ &:hover {color: @link-hover-color;}
286
+ &:active {color: @link-active-color;}
287
+ }
288
+ .roundedArrow(@width, @outer-radius, @bg-color: var(--antd-arrow-background-color)) {@corner-height: unit(((@outer-radius) * (1 - 1 / sqrt(2))));@width-without-unit: unit(@width);@outer-radius-without-unit: unit(@outer-radius);@inner-radius-without-unit: unit(@arrow-border-radius);@a-x: @width-without-unit - @corner-height;@a-y: 2 * @width-without-unit + @corner-height;@b-x: @a-x + @outer-radius-without-unit * (1 / sqrt(2));@b-y: 2 * @width-without-unit;@c-x: 2 * @width-without-unit - @inner-radius-without-unit;@c-y: 2 * @width-without-unit;@d-x: 2 * @width-without-unit;@d-y: 2 * @width-without-unit - @inner-radius-without-unit;@e-x: 2 * @width-without-unit;@e-y: @f-y + @outer-radius-without-unit * (1 / sqrt(2));@f-x: 2 * @width-without-unit + @corner-height;@f-y: @width-without-unit - @corner-height;@g-x: @f-x - 1;@g-y: @f-y;@h-x: @a-x;@h-y: @a-y - 1;border-radius: 0 0 @arrow-border-radius;pointer-events: none;&::before {position: absolute;top: -@width;left: -@width;width: @width * 3;height: @width * 3;background: @bg-color;background-repeat: no-repeat;background-position: ceil(-@width + 1px) ceil(-@width + 1px);content: '';clip-path: path(
289
+ 'M @{a-x} @{a-y} A @{outer-radius-without-unit} @{outer-radius-without-unit} 0 0 1 @{b-x} @{b-y} L @{c-x} @{c-y} A @{inner-radius-without-unit} @{inner-radius-without-unit} 0 0 0 @{d-x} @{d-y} L @{e-x} @{e-y} A @{outer-radius-without-unit} @{outer-radius-without-unit} 0 0 1 @{f-x} @{f-y} L @{g-x} @{g-y} L @{h-x} @{h-y} Z'
290
+ );}
291
+ }
292
+ .freakMixin() {@functions: ~`(function() {function toColorList(list) {list = list.slice(1, list.length - 1).split(',');var ret = [];for (var i = 0, c = list.length; i < c; i++) {ret.push(list[i].trim().split(' '));}
293
+ return ret;}
294
+ var catchColors;function _initColor(list) {if (!catchColors) catchColors = toColorList(list);}
295
+ this.getColor = function(list, name, position) {_initColor(list);var ret = '';for (var i = 0, c = catchColors.length; i < c; i++) {if (catchColors[i][0] === name) {ret = catchColors[i][position - 1];break;}
296
+ }
297
+ return ret;}
298
+ this.genComment = function(value, ...comments) {return '';}
299
+ this.genCommentColor = function(color, ...comments) {var imgColor = ' ![Color](https://dummyimage.com/20x20/' + color.substring(1) + '/fff.png&text=+)';return '';}
300
+ this.genCommentTypeColor = function(type, color) {var comments = [];switch (type) {case 'text':
301
+ comments = ['Set the text color to {0}', '设置文本颜色为 {0}'];break;case 'background':
302
+ comments = ['Set the background light color to {0}', '设置背景颜色为 {0}'];break;case 'hoverBackground':
303
+ comments = ['Set the hover background color to {0}', '设置悬停时背景颜色为 {0}'];break;}
304
+ if (comments.length === 0) return '';var imgColor = ' ![Color](https://dummyimage.com/20x20/' + color.substring(1) + '/fff.png&text=+)';return '';}
305
+ })()`;}
306
+ .freakMixin();
307
+ .color-yiq(@color) {.yiq-mixin (@v) when (@v >= 150) {color: #111;}
308
+ .yiq-mixin (@v) when (default()) {color: #fff;}
309
+ @r: red(@color);@g: green(@color);@b: blue(@color);@yiq: (((@r * 299) + (@g * 587) + (@b * 114)) / 1000);.yiq-mixin(@yiq);}
310
+ .for(@adList, @adCode) {& {.loop(@adI:1) when (@adI =< length(@adList)) {@adIndex: @adI - 1;@adItem: extract(@adList, @adI);@adCode();.loop(@adI + 1);}
311
+ .loop();}
312
+ }
313
+ .for-each(@adList, @adCode) {& {.loop(@adI:1) when (@adI =< length(@adList)) {@adIndex: @adI - 1;@adItem: extract(@adList, @adI);@adKey: extract(@adItem, 1);@adValue: extract(@adItem, 2);@adCode();.loop(@adI + 1);}
314
+ .loop();}
315
+ }
316
+ .text-truncate() {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
317
+ .textOverflow() {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;word-break: break-all;}
318
+ .textOverflowMulti(@line: 3, @bg: #fff) {position: relative;max-height: @line * 1.5em;margin-right: -1em;padding-right: 1em;overflow: hidden;line-height: 1.5em;text-align: justify;&::before {position: absolute;right: 14px;bottom: 0;padding: 0 1px;background: @bg;content: '...';}
319
+ &::after {position: absolute;right: 14px;width: 1em;height: 1em;margin-top: 0.2em;background: white;content: '';}
320
+ }
321
+ .router-ant() {.router-ant-mixin(@enabled) when(@enabled=true) {router-outlet + * {display: block;animation-name: @router-animation-name;
322
+ animation-duration: @router-animation-duration;}
323
+ }
324
+ .router-ant-mixin(@router-animation-enabled);}
145
325
  .bezierEasingMixin() {
146
326
  @functions: ~`(function() {var NEWTON_ITERATIONS = 4;var NEWTON_MIN_SLOPE = 0.001;var SUBDIVISION_PRECISION = 0.0000001;var SUBDIVISION_MAX_ITERATIONS = 10;var kSplineTableSize = 11;var kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);var float32ArraySupported = typeof Float32Array === 'function';function A (aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1; }
147
327
  function B (aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1; }
@@ -1549,198 +1729,20 @@ this.tinycolor = tinycolor;})()`;}
1549
1729
  @segmented-selected-bg: @white;
1550
1730
  @segmented-label-color: fade(@black, 65%);
1551
1731
  @segmented-label-hover-color: #262626;
1552
- .size(@width; @height) {width: @width;height: @height;}
1553
- .square(@size) {.size(@size; @size);}
1554
- .placeholder(@color: @input-placeholder-color) {&::-moz-placeholder {opacity: 1;
1555
- }
1556
- &::placeholder {color: @color;user-select: none;
1557
- }
1558
- &:placeholder-shown {text-overflow: ellipsis;}
1559
- }
1560
- .clearfix() {&::before {display: table;content: '';}
1561
- &::after {display: table;clear: both;content: '';}
1562
- }
1563
- .iconfont-mixin() {display: inline-block;color: @icon-color;font-style: normal;line-height: 0;text-align: center;text-transform: none;vertical-align: -0.125em;
1564
- text-rendering: optimizelegibility;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;> * {line-height: 1;}
1565
- svg {display: inline-block;}
1566
- &::before {display: none;
1567
- }
1568
- & &-icon {display: block;}
1569
- }
1570
- .typography-paragraph() {margin-bottom: 1em;}
1571
- .typography-title(@fontSize; @fontWeight; @lineHeight; @headingColor; @headingMarginBottom;) {margin-bottom: @headingMarginBottom;color: @headingColor;font-weight: @fontWeight;font-size: @fontSize;line-height: @lineHeight;}
1572
- .typography-title-1() {.typography-title(
1573
- @heading-1-size,
1574
- @typography-title-font-weight,
1575
- 1.23,
1576
- @heading-color,
1577
- @typography-title-margin-bottom
1578
- );}
1579
- .typography-title-2() {.typography-title(
1580
- @heading-2-size,
1581
- @typography-title-font-weight,
1582
- 1.35,
1583
- @heading-color,
1584
- @typography-title-margin-bottom
1585
- );}
1586
- .typography-title-3() {.typography-title(
1587
- @heading-3-size,
1588
- @typography-title-font-weight,
1589
- 1.35,
1590
- @heading-color,
1591
- @typography-title-margin-bottom
1592
- );}
1593
- .typography-title-4() {.typography-title(
1594
- @heading-4-size,
1595
- @typography-title-font-weight,
1596
- 1.4,
1597
- @heading-color,
1598
- @typography-title-margin-bottom
1599
- );}
1600
- .typography-title-5() {.typography-title(
1601
- @heading-5-size,
1602
- @typography-title-font-weight,
1603
- 1.5,
1604
- @heading-color,
1605
- @typography-title-margin-bottom
1606
- );}
1607
- .popover-customize-bg(@containerClass, @background: @popover-background, @prefix: @ant-prefix)
1608
- when
1609
- (@theme = dark) {@picker-prefix-cls: ~'@{prefix}-picker';@slider-prefix-cls: ~'@{prefix}-slider';@anchor-prefix-cls: ~'@{prefix}-anchor';@collapse-prefix-cls: ~'@{prefix}-collapse';@tab-prefix-cls: ~'@{prefix}-tabs';@timeline-prefix-cls: ~'@{prefix}-timeline';@tree-prefix-cls: ~'@{prefix}-tree';@card-prefix-cls: ~'@{prefix}-card';@badge-prefix-cls: ~'@{prefix}-badge';@transfer-prefix-cls: ~'@{prefix}-transfer';@calendar-prefix-cls: ~'@{prefix}-picker-calendar';@calendar-picker-prefix-cls: ~'@{prefix}-picker';@table-prefix-cls: ~'@{prefix}-table';@popover-border: @border-width-base @border-style-base @popover-customize-border-color;.@{containerClass} {.@{picker-prefix-cls}-clear,
1610
- .@{slider-prefix-cls}-handle,
1611
- .@{anchor-prefix-cls}-wrapper,
1612
- .@{collapse-prefix-cls}-content,
1613
- .@{timeline-prefix-cls}-item-head,
1614
- .@{card-prefix-cls} {background-color: @background;}
1615
- .@{transfer-prefix-cls} {&-list {&-header {background: @background;border-bottom: @popover-border;}
1616
- &-content-item:not(.@{transfer-prefix-cls}-list-content-item-disabled):hover {background-color: @item-hover-bg;}
1617
- }
1618
- }
1619
- tr.@{table-prefix-cls}-expanded-row {&,
1620
- &:hover {> td {background: #272727;}
1621
- }
1622
- }
1623
- .@{table-prefix-cls}.@{table-prefix-cls}-small {thead {> tr {> th {background-color: @background;border-bottom: @popover-border;}
1624
- }
1625
- }
1626
- }
1627
- .@{table-prefix-cls} {background-color: @background;.@{table-prefix-cls}-row-expand-icon {border: @popover-border;}
1628
- tfoot {> tr {> th,
1629
- > td {border-bottom: @popover-border;}
1630
- }
1631
- }
1632
- thead {> tr {> th {background-color: #272727;border-bottom: @popover-border;}
1633
- }
1634
- }
1635
- tbody {> tr {> td {border-bottom: @popover-border;&.@{table-prefix-cls}-cell-fix-left,
1636
- &.@{table-prefix-cls}-cell-fix-right {background-color: @background;}
1637
- }
1638
- &.@{table-prefix-cls}-row:hover {> td {background: @table-header-sort-active-bg;}
1639
- }
1640
- }
1641
- }
1642
- &.@{table-prefix-cls}-bordered {.@{table-prefix-cls}-title {border: @popover-border;}
1643
- thead > tr > th,
1644
- tbody > tr > td,
1645
- tfoot > tr > th,
1646
- tfoot > tr > td {border-right: @popover-border;}
1647
- .@{table-prefix-cls}-cell-fix-right-first::after {border-right: @popover-border;}
1648
- table > {thead {> tr:not(:last-child) > th {border-bottom: @border-width-base @border-style-base @border-color-split;}
1649
- }
1650
- }
1651
- .@{table-prefix-cls}-container {border: @popover-border;}
1652
- .@{table-prefix-cls}-expanded-row-fixed {&::after {border-right: @popover-border;}
1653
- }
1654
- .@{table-prefix-cls}-footer {border: @popover-border;}
1655
- }
1656
- .@{table-prefix-cls}-filter-trigger-container-open {background-color: #525252;}
1657
- }
1658
- .@{calendar-prefix-cls}-full {background-color: @background;.@{calendar-picker-prefix-cls}-panel {background-color: @background;.@{calendar-prefix-cls}-date {border-top: 2px solid @popover-customize-border-color;}
1659
- }
1660
- }
1661
- .@{tab-prefix-cls} {&.@{tab-prefix-cls}-card .@{tab-prefix-cls}-card-bar .@{tab-prefix-cls}-tab-active {background-color: @background;border-bottom: @border-width-base solid @background;}
1662
- }
1663
- .@{badge-prefix-cls} {&-count {box-shadow: 0 0 0 1px @background;}
1664
- }
1665
- .@{tree-prefix-cls} {&-show-line {.@{tree-prefix-cls}-switcher {background: @background;}
1666
- }
1667
- }
1668
- }
1669
- }
1670
- .box(@position: absolute) {position: @position;top: 0;right: 0;bottom: 0;left: 0;}
1671
- .box(@position: absolute) {position: @position;top: 0;right: 0;bottom: 0;left: 0;}
1672
- .modal-mask() {pointer-events: none;&.@{ant-prefix}-zoom-enter,
1673
- &.@{ant-prefix}-zoom-appear {transform: none;
1674
- opacity: 0;animation-duration: @animation-duration-slow;user-select: none;
1675
- }
1676
- &-mask {.box(fixed);z-index: @zindex-modal-mask;height: 100%;background-color: @modal-mask-bg;&-hidden {display: none;}
1677
- }
1678
- &-wrap {.box(fixed);overflow: auto;outline: 0;-webkit-overflow-scrolling: touch;}
1679
- }
1680
- .motion-common(@duration: @animation-duration-base) {animation-duration: @duration;animation-fill-mode: both;}
1681
- .motion-common-leave(@duration: @animation-duration-base) {animation-duration: @duration;animation-fill-mode: both;}
1682
- .make-motion(@className, @keyframeName, @duration: @animation-duration-base) {.@{className}-enter,
1683
- .@{className}-appear {.motion-common(@duration);animation-play-state: paused;}
1684
- .@{className}-leave {.motion-common-leave(@duration);animation-play-state: paused;}
1685
- .@{className}-enter.@{className}-enter-active,
1686
- .@{className}-appear.@{className}-appear-active {animation-name: ~'@{keyframeName}In';animation-play-state: running;}
1687
- .@{className}-leave.@{className}-leave-active {animation-name: ~'@{keyframeName}Out';animation-play-state: running;pointer-events: none;}
1688
- }
1689
- .reset-component() {box-sizing: border-box;margin: 0;padding: 0;color: @text-color;font-size: @font-size-base;font-variant: @font-variant-base;line-height: @line-height-base;list-style: none;font-feature-settings: @font-feature-settings-base;}
1690
- .operation-unit() {color: @link-color;text-decoration: none;outline: none;cursor: pointer;transition: color 0.3s;&:focus,
1691
- &:hover {color: @link-hover-color;}
1692
- &:active {color: @link-active-color;}
1693
- }
1694
- .roundedArrow(@width, @outer-radius, @bg-color: var(--antd-arrow-background-color)) {@corner-height: unit(((@outer-radius) * (1 - 1 / sqrt(2))));@width-without-unit: unit(@width);@outer-radius-without-unit: unit(@outer-radius);@inner-radius-without-unit: unit(@arrow-border-radius);@a-x: @width-without-unit - @corner-height;@a-y: 2 * @width-without-unit + @corner-height;@b-x: @a-x + @outer-radius-without-unit * (1 / sqrt(2));@b-y: 2 * @width-without-unit;@c-x: 2 * @width-without-unit - @inner-radius-without-unit;@c-y: 2 * @width-without-unit;@d-x: 2 * @width-without-unit;@d-y: 2 * @width-without-unit - @inner-radius-without-unit;@e-x: 2 * @width-without-unit;@e-y: @f-y + @outer-radius-without-unit * (1 / sqrt(2));@f-x: 2 * @width-without-unit + @corner-height;@f-y: @width-without-unit - @corner-height;@g-x: @f-x - 1;@g-y: @f-y;@h-x: @a-x;@h-y: @a-y - 1;border-radius: 0 0 @arrow-border-radius;pointer-events: none;&::before {position: absolute;top: -@width;left: -@width;width: @width * 3;height: @width * 3;background: @bg-color;background-repeat: no-repeat;background-position: ceil(-@width + 1px) ceil(-@width + 1px);content: '';clip-path: path(
1695
- 'M @{a-x} @{a-y} A @{outer-radius-without-unit} @{outer-radius-without-unit} 0 0 1 @{b-x} @{b-y} L @{c-x} @{c-y} A @{inner-radius-without-unit} @{inner-radius-without-unit} 0 0 0 @{d-x} @{d-y} L @{e-x} @{e-y} A @{outer-radius-without-unit} @{outer-radius-without-unit} 0 0 1 @{f-x} @{f-y} L @{g-x} @{g-y} L @{h-x} @{h-y} Z'
1696
- );}
1697
- }
1698
- .freakMixin() {@functions: ~`(function() {function toColorList(list) {list = list.slice(1, list.length - 1).split(',');var ret = [];for (var i = 0, c = list.length; i < c; i++) {ret.push(list[i].trim().split(' '));}
1699
- return ret;}
1700
- var catchColors;function _initColor(list) {if (!catchColors) catchColors = toColorList(list);}
1701
- this.getColor = function(list, name, position) {_initColor(list);var ret = '';for (var i = 0, c = catchColors.length; i < c; i++) {if (catchColors[i][0] === name) {ret = catchColors[i][position - 1];break;}
1702
- }
1703
- return ret;}
1704
- this.genComment = function(value, ...comments) {return '';}
1705
- this.genCommentColor = function(color, ...comments) {var imgColor = ' ![Color](https://dummyimage.com/20x20/' + color.substring(1) + '/fff.png&text=+)';return '';}
1706
- this.genCommentTypeColor = function(type, color) {var comments = [];switch (type) {case 'text':
1707
- comments = ['Set the text color to {0}', '设置文本颜色为 {0}'];break;case 'background':
1708
- comments = ['Set the background light color to {0}', '设置背景颜色为 {0}'];break;case 'hoverBackground':
1709
- comments = ['Set the hover background color to {0}', '设置悬停时背景颜色为 {0}'];break;}
1710
- if (comments.length === 0) return '';var imgColor = ' ![Color](https://dummyimage.com/20x20/' + color.substring(1) + '/fff.png&text=+)';return '';}
1711
- })()`;}
1712
- .freakMixin();
1713
- .color-yiq(@color) {.yiq-mixin (@v) when (@v >= 150) {color: #111;}
1714
- .yiq-mixin (@v) when (default()) {color: #fff;}
1715
- @r: red(@color);@g: green(@color);@b: blue(@color);@yiq: (((@r * 299) + (@g * 587) + (@b * 114)) / 1000);.yiq-mixin(@yiq);}
1716
- .for(@adList, @adCode) {& {.loop(@adI:1) when (@adI =< length(@adList)) {@adIndex: @adI - 1;@adItem: extract(@adList, @adI);@adCode();.loop(@adI + 1);}
1717
- .loop();}
1718
- }
1719
- .for-each(@adList, @adCode) {& {.loop(@adI:1) when (@adI =< length(@adList)) {@adIndex: @adI - 1;@adItem: extract(@adList, @adI);@adKey: extract(@adItem, 1);@adValue: extract(@adItem, 2);@adCode();.loop(@adI + 1);}
1720
- .loop();}
1721
- }
1722
- .text-truncate() {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}
1723
- .textOverflow() {overflow: hidden;white-space: nowrap;text-overflow: ellipsis;word-break: break-all;}
1724
- .textOverflowMulti(@line: 3, @bg: #fff) {position: relative;max-height: @line * 1.5em;margin-right: -1em;padding-right: 1em;overflow: hidden;line-height: 1.5em;text-align: justify;&::before {position: absolute;right: 14px;bottom: 0;padding: 0 1px;background: @bg;content: '...';}
1725
- &::after {position: absolute;right: 14px;width: 1em;height: 1em;margin-top: 0.2em;background: white;content: '';}
1726
- }
1727
- .router-ant() {.router-ant-mixin(@enabled) when(@enabled=true) {router-outlet + * {display: block;animation-name: @router-animation-name;
1728
- animation-duration: @router-animation-duration;}
1729
- }
1730
- .router-ant-mixin(@router-animation-enabled);}
1731
1732
  @root-entry-name: default;
1732
- @white: #fff;
1733
- @black: #000;
1734
1733
  @grey-1: #ffffff;
1735
1734
  @grey-2: #fafafa;
1736
1735
  @grey-3: #f5f5f5;
1737
- @grey-4: #e8e8e8;
1736
+ @grey-4: #f0f0f0;
1738
1737
  @grey-5: #d9d9d9;
1739
1738
  @grey-6: #bfbfbf;
1740
1739
  @grey-7: #8c8c8c;
1741
1740
  @grey-8: #595959;
1742
- @grey-9: #262626;
1743
- @grey-10: #000000;
1741
+ @grey-9: #434343;
1742
+ @grey-10: #262626;
1743
+ @grey-11: #1f1f1f;
1744
+ @grey-12: #141414;
1745
+ @grey-13: #000000;
1744
1746
  @color-light-index: 5;
1745
1747
  @color-basic-index: 6;
1746
1748
  @color-dark-index: 7;
@@ -1831,13 +1833,11 @@ this.tinycolor = tinycolor;})()`;}
1831
1833
  @border-radius-md: @border-radius-base;
1832
1834
  @border-radius-lg: @border-radius-base + 2px;
1833
1835
  @muted-color: @grey-7;
1834
- @white: #fff;
1835
- @black: #000;
1836
1836
  @scrollbar-enabled: true;
1837
1837
  @scrollbar-width: 6px;
1838
1838
  @scrollbar-height: 6px;
1839
- @scrollbar-track-color: rgba(0, 0, 0, 0.3);
1840
- @scrollbar-thumb-color: #6e6e6e;
1839
+ @scrollbar-track-color: fade(@black, 30%);
1840
+ @scrollbar-thumb-color: transparent;
1841
1841
  @scrollbar-table-enabled: false;
1842
1842
  @font-size-large: @font-size-base + 8;
1843
1843
  @font-size-small: @font-size-base;
@@ -1848,8 +1848,8 @@ this.tinycolor = tinycolor;})()`;}
1848
1848
  @h5-font-size: @font-size-base + 2;
1849
1849
  @h6-font-size: @font-size-base;
1850
1850
  @enable-all-colors: false;
1851
- @code-border-color: #eee;
1852
- @code-bg: #f7f7f7;
1851
+ @code-border-color: @border-color-base;
1852
+ @code-bg: @tag-default-bg;
1853
1853
  @drawer-xl: 1200px;
1854
1854
  @drawer-lg: 900px;
1855
1855
  @drawer-md: 600px;
@@ -1877,19 +1877,19 @@ this.tinycolor = tinycolor;})()`;}
1877
1877
  @nz-table-rep-max-width: @mobile-max;
1878
1878
  @nz-table-rep-min-width: @nz-table-rep-max-width + 1;
1879
1879
  @nz-table-rep-header-background: @border-color-split;
1880
- @nz-table-rep-even-background: #f9f9f9;
1880
+ @nz-table-rep-even-background: @item-hover-bg;
1881
1881
  @nz-table-rep-padding-vertical: (@table-padding-vertical / 2);
1882
1882
  @nz-table-rep-padding-horizontal: (@table-padding-horizontal / 2);
1883
1883
  @nz-table-rep-column-name-width: 100px;
1884
1884
  @nz-table-rep-column-name-text-align: right;
1885
1885
  @nz-table-rep-column-name-padding-right: 8px;
1886
- @nz-table-rep-column-name-color: rgba(0, 0, 0, 0.5);
1886
+ @nz-table-rep-column-name-color: fade(@black, 50%);
1887
1887
  @forced-turn-off-nz-modal-animation-enabled: false;
1888
1888
  @sf-title-text-align: left;
1889
- @sf-optional-color: rgba(0, 0, 0, 0.35);
1889
+ @sf-optional-color: fade(@black, 35%);
1890
1890
  @sf-optional-margin: 2px;
1891
1891
  @sf-inline-ant-select-min-width: 100px;
1892
- @sf-widget-array-type-card-remove-bg: rgba(0, 0, 0, 0.26);
1892
+ @sf-widget-array-type-card-remove-bg: fade(@black, 26%);
1893
1893
  @yn-yes-color: @blue-6;
1894
1894
  @yn-no-color: @grey-7;
1895
1895
  @setting-drawer-enabled: true;
@@ -1919,7 +1919,8 @@ this.tinycolor = tinycolor;})()`;}
1919
1919
  @hafl-float-size: sm @layout-gutter * 8, md @layout-gutter * 10, lg @layout-gutter * 12;
1920
1920
  @masonry-enabled: true;
1921
1921
  @masonry-column-gap: @layout-gutter * 2;
1922
- @alain-default-prefix: ~'.alain-default';
1922
+ @alain-default-name: 'alain-default';
1923
+ @alain-default-prefix: ~'.@{alain-default-name}';
1923
1924
  @alain-default-zindex: @zindex-base;
1924
1925
  @alain-default-ease: cubic-bezier(0.25, 0, 0.15, 1);
1925
1926
  @alain-default-header-hg: 64px;
@@ -1932,7 +1933,7 @@ this.tinycolor = tinycolor;})()`;}
1932
1933
  @alain-default-header-nav-bg-hover: rgba(255, 255, 255, 0.2);
1933
1934
  @alain-default-header-top-menu-item-padding: 0 16px;
1934
1935
  @alain-default-aside-wd: 200px;
1935
- @alain-default-aside-bg: #fff;
1936
+ @alain-default-aside-bg: ~'var(--@{alain-default-name}-aside-bg, #fff)';
1936
1937
  @alain-default-aside-scrollbar-width: 0;
1937
1938
  @alain-default-aside-scrollbar-height: 0;
1938
1939
  @alain-default-aside-scrollbar-track-color: transparent;
@@ -1946,7 +1947,7 @@ this.tinycolor = tinycolor;})()`;}
1946
1947
  @alain-default-aside-nav-text-hover-color: @primary-color;
1947
1948
  @alain-default-aside-nav-group-text-color: @text-color-secondary;
1948
1949
  @alain-default-aside-nav-selected-text-color: @primary-color;
1949
- @alain-default-aside-nav-selected-bg: #fcfcfc;
1950
+ @alain-default-aside-nav-selected-bg: ~'var(--@{alain-default-name}-aside-nav-selected-bg, #fcfcfc)';
1950
1951
  @alain-default-aside-nav-depth1-padding-left: @layout-gutter * 3;
1951
1952
  @alain-default-aside-nav-depth2-padding-left: @layout-gutter * 4;
1952
1953
  @alain-default-aside-nav-depth3-padding-left: @layout-gutter * 5;
@@ -1956,25 +1957,26 @@ this.tinycolor = tinycolor;})()`;}
1956
1957
  @alain-default-aside-collapsed-nav-fs: 24px;
1957
1958
  @alain-default-aside-collapsed-nav-img-wh: 24px;
1958
1959
  @alain-default-aside-collapsed-padding: (@layout-gutter * 2) 0;
1959
- @alain-default-content-heading-bg: #fafbfc;
1960
- @alain-default-content-heading-border: #efe3e5;
1960
+ @alain-default-content-heading-bg: ~'var(--@{alain-default-name}-heading-bg, #fafbfc)';
1961
+ @alain-default-content-heading-border: ~'var(--@{alain-default-name}-heading-border, #efe3e5)';
1961
1962
  @alain-default-content-padding: @layout-gutter * 3;
1962
- @alain-default-content-bg: #f5f7fa;
1963
+ @alain-default-content-bg: ~'var(--@{alain-default-name}-content-bg, #f5f7fa)';
1963
1964
  @alain-default-widget-app-icons-enabled: true;
1964
1965
  @alain-default-aside-user-enabled: true;
1965
- @alain-blank-prefix: ~'.alain-blank';
1966
+ @alain-blank-name: 'alain-blank';
1967
+ @alain-blank-prefix: ~'.@{alain-blank-name}';
1966
1968
  @alain-blank-zindex: @zindex-base;
1967
1969
  @alain-blank-bg: #f5f7fa;
1968
1970
  @alain-blank-content-padding-vertical: 0;
1969
1971
  @alain-blank-content-padding-horizontal: @layout-gutter * 2;
1970
- @st-btn-disabled-color: rgba(0, 0, 0, 0.25);
1971
- @st-title-optional-color: rgba(0, 0, 0, 0.35);
1972
+ @st-btn-disabled-color: fade(@black, 25%);
1973
+ @st-title-optional-color: fade(@black, 35%);
1972
1974
  @st-resizable-handle-width: 1px;
1973
1975
  @st-resizable-handle-height: 60%;
1974
1976
  @st-resizable-handle-color: @border-color-base;
1975
1977
  @st-no-column-height: 100px;
1976
- @sv-label-color: rgba(0, 0, 0, 0.5);
1977
- @sv-label-optional-color: rgba(0, 0, 0, 0.35);
1978
+ @sv-label-color: fade(@black, 50%);
1979
+ @sv-label-optional-color: fade(@black, 35%);
1978
1980
  @sv-detail-color: @text-color;
1979
1981
  @sv-type-primary-color: @primary-color;
1980
1982
  @sv-type-success-color: @success-color;
@@ -1993,13 +1995,13 @@ this.tinycolor = tinycolor;})()`;}
1993
1995
  @sv-value-mulit-padding: 8px;
1994
1996
  @sv-value-mulit-content: '/';
1995
1997
  @sv-value-mulit-content-width: 6px;
1996
- @se-label-optional-color: rgba(0, 0, 0, 0.35);
1998
+ @se-label-optional-color: fade(@black, 35%);
1997
1999
  @se-compact-bottom: @layout-gutter;
1998
2000
  @se-optional-margin: 2px;
1999
2001
  @avatar-list-mini-wh: 20px;
2000
2002
  @error-collect-color: #f5222d;
2001
2003
  @footer-toolbar-height: 56px;
2002
- @footer-toolbar-box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.03);
2004
+ @footer-toolbar-box-shadow: 0 -1px 2px fade(@black, 3%);
2003
2005
  @footer-toolbar-bg: #fff;
2004
2006
  @footer-toolbar-border-top: 1px solid @border-color-split;
2005
2007
  @footer-toolbar-padding: 0 24px;
@@ -2018,12 +2020,11 @@ this.tinycolor = tinycolor;})()`;}
2018
2020
  @reuse-tab-border-color: #d9d9d9;
2019
2021
  @down-file-not-support-behavior: 'hidden';
2020
2022
  @loading-zindex: 9999;
2021
- @loading-backdrop-bg: rgba(0, 0, 0, 0.15);
2023
+ @loading-backdrop-bg: fade(@black, 15%);
2022
2024
  @loading-icon-color: @primary-color;
2023
2025
  @loading-text-color: @primary-color;
2024
- @onboarding-mask-opacity: 0.5;
2025
- @onboarding-mask-background-color: #000;
2026
- @onboarding-light-background-color: rgba(255, 255, 255, 0.9);
2026
+ @onboarding-mask-background-color: fade(@black, 50%);
2027
+ @onboarding-light-background-color: fade(@white, 90%);
2027
2028
  @onboarding-light-ant: 2500ms cubic-bezier(0.55, 0.05, 0.6, 0.2) 0s infinite normal none running onboardingAnt;
2028
2029
  @onboarding-light-ant-color: rgb(255, 255, 255);
2029
2030
  @onboarding-changing-ant: all 0.3s ease-out;