@kdcloudjs/kdesign 1.7.34 → 1.7.35

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 (36) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/kdesign-complete.less +59 -51
  3. package/dist/kdesign.css +36 -19
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +50 -50
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +5 -5
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/color-picker/color-picker-panel.js +15 -6
  11. package/es/color-picker/color-picker.js +17 -3
  12. package/es/color-picker/interface.d.ts +5 -0
  13. package/es/color-picker/style/index.css +30 -13
  14. package/es/color-picker/style/index.less +49 -43
  15. package/es/locale/locale.d.ts +2 -0
  16. package/es/locale/zh-CN.d.ts +2 -0
  17. package/es/locale/zh-CN.js +3 -1
  18. package/es/select/select.js +12 -4
  19. package/es/select/style/index.css +5 -5
  20. package/es/select/style/index.less +10 -8
  21. package/lib/color-picker/color-picker-panel.js +16 -7
  22. package/lib/color-picker/color-picker.js +17 -3
  23. package/lib/color-picker/interface.d.ts +5 -0
  24. package/lib/color-picker/style/index.css +30 -13
  25. package/lib/color-picker/style/index.less +49 -43
  26. package/lib/locale/locale.d.ts +2 -0
  27. package/lib/locale/zh-CN.d.ts +2 -0
  28. package/lib/locale/zh-CN.js +3 -1
  29. package/lib/select/select.js +12 -4
  30. package/lib/select/style/index.css +5 -5
  31. package/lib/select/style/index.less +10 -8
  32. package/package.json +1 -1
  33. package/es/color-picker/utils/hooks/useOnClickOutside.d.ts +0 -2
  34. package/es/color-picker/utils/hooks/useOnClickOutside.js +0 -16
  35. package/lib/color-picker/utils/hooks/useOnClickOutside.d.ts +0 -2
  36. package/lib/color-picker/utils/hooks/useOnClickOutside.js +0 -23
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## [1.7.34](https://github.com/kdcloudone/kdesign/compare/v1.7.33...v1.7.34) (2023-10-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [date-picker]表单校验问题 fix [#619](https://github.com/kdcloudone/kdesign/issues/619) ([e963693](https://github.com/kdcloudone/kdesign/commit/e9636937e7c954a0f5324d25a368eb1ba1eb2fd2))
7
+ * [date-picker]修复safari组件异常问题 fix [#609](https://github.com/kdcloudone/kdesign/issues/609) ([3c6e54a](https://github.com/kdcloudone/kdesign/commit/3c6e54a4f3b00cfe5ad61817f945dd0f29551c4d))
8
+ * [upload]ie兼容性问题处理 fix [#620](https://github.com/kdcloudone/kdesign/issues/620) ([602b961](https://github.com/kdcloudone/kdesign/commit/602b9612c3fca3466f6bdfe640197148533bb6a0))
9
+
10
+
11
+
1
12
  ## [1.7.33](https://github.com/kdcloudone/kdesign/compare/v1.7.32...v1.7.33) (2023-10-07)
2
13
 
3
14
 
@@ -3105,6 +3105,7 @@
3105
3105
 
3106
3106
  .@{color-picker-prefix-cls}-container {
3107
3107
  position: relative;
3108
+ width: @color-picker-input-sizing-width;
3108
3109
 
3109
3110
  .@{color-picker-prefix-cls}-input {
3110
3111
  width: @color-picker-input-sizing-width;
@@ -3151,6 +3152,7 @@
3151
3152
  }
3152
3153
 
3153
3154
  .@{color-picker-prefix-cls}-pop {
3155
+ width: @color-picker-panel-sizing-width;
3154
3156
 
3155
3157
  &.topLeft.hidden,
3156
3158
  &.bottomLeft.hidden,
@@ -3301,61 +3303,65 @@
3301
3303
  }
3302
3304
  }
3303
3305
 
3304
- &-input {
3305
- display: inline-block;
3306
- position: relative;
3307
- margin-top: 12px;
3308
- font-size: @color-picker-panel-select-font-size;
3306
+ &-container {
3307
+ display: flex;
3308
+ flex-wrap: nowrap;
3309
+ margin-top: 10px;
3309
3310
 
3310
- &-no-recommend {
3311
- margin-bottom: 0;
3312
- }
3311
+ &-input {
3312
+ flex: 1 1 auto;
3313
+ display: inline-block;
3314
+ position: relative;
3315
+ font-size: @color-picker-panel-select-font-size;
3313
3316
 
3314
- .@{kd-prefix}-select {
3317
+ .@{kd-prefix}-select-dropdown-panel {
3318
+ margin: 0 !important;
3315
3319
 
3316
- &.bottomLeft,
3317
- &.topLeft {
3318
- position: absolute;
3319
- width: 60px !important;
3320
- background: #FFFFFF;
3321
- right: 0;
3322
- left: unset !important;
3323
- box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.20);
3324
- border-radius: 2px;
3325
- }
3320
+ &.bottomLeft,
3321
+ &.topLeft {
3322
+ position: absolute;
3323
+ width: 60px !important;
3324
+ min-width: unset !important;
3325
+ background: #FFFFFF;
3326
+ right: 0;
3327
+ left: unset !important;
3328
+ box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.20);
3329
+ border-radius: 2px;
3330
+ }
3326
3331
 
3327
- .@{kd-prefix}-select-dropdown {
3328
- .@{kd-prefix}-select-item-option {
3329
- display: flex;
3330
- justify-content: center;
3331
- min-width: unset;
3332
+ .@{kd-prefix}-select-dropdown {
3333
+ .@{kd-prefix}-select-item-option {
3334
+ display: flex;
3335
+ justify-content: center;
3336
+ min-width: unset;
3337
+ }
3332
3338
  }
3333
3339
  }
3334
- }
3335
3340
 
3336
- .@{kd-prefix}-select-bordered {
3337
- border-radius: 2px;
3338
- width: @color-picker-panel-select-sizing-width;
3339
- height: @color-picker-panel-select-sizing-height;
3340
- min-height: 28px;
3341
- margin-top: -2px;
3341
+ .@{kd-prefix}-select-bordered {
3342
+ border-radius: 2px;
3343
+ width: @color-picker-panel-select-sizing-width;
3344
+ height: @color-picker-panel-select-sizing-height;
3345
+ min-height: 28px;
3346
+ padding: 0 28px 0 0;
3342
3347
 
3343
- .@{kd-prefix}-select-placeholder {
3344
- left: 8px;
3348
+ .@{kd-prefix}-select-placeholder {
3349
+ left: 8px;
3350
+ }
3345
3351
  }
3346
- }
3347
3352
 
3348
- .active-option {
3349
- background-color: @color-picker-panel-option-color-background;
3353
+ .active-option {
3354
+ background-color: @color-picker-panel-option-color-background;
3355
+ }
3350
3356
  }
3351
- }
3352
3357
 
3353
- &-transparent {
3354
- width: 60px;
3355
- height: 28px;
3356
- margin-left: 8px;
3357
- text-align: center;
3358
- font-size: @color-picker-panel-alpha-font-size;
3358
+ &-transparent {
3359
+ flex: 0 0 60px;
3360
+ height: 28px;
3361
+ margin-left: 8px;
3362
+ text-align: center;
3363
+ font-size: @color-picker-panel-alpha-font-size;
3364
+ }
3359
3365
  }
3360
3366
 
3361
3367
  &-colorDivContainer {
@@ -10163,7 +10169,7 @@ textarea {
10163
10169
  &-hadSelected {
10164
10170
  color: #999999;
10165
10171
  padding-left: 12px;
10166
- > span {
10172
+ &-number {
10167
10173
  color: @select-footer-g-text-color-selected;
10168
10174
  padding: 0 2px;
10169
10175
  }
@@ -10171,13 +10177,15 @@ textarea {
10171
10177
  }
10172
10178
  }
10173
10179
 
10174
- &.topLeft.hidden,
10175
- &.bottomLeft.hidden,
10176
- &.topRight.hidden,
10177
- &.bottomRight.hidden {
10178
- opacity: 0;
10179
- visibility: hidden;
10180
- transition: all calc(@transition-duration - 0.1s) @ease;
10180
+ &-dropdown-panel {
10181
+ &.topLeft.hidden,
10182
+ &.bottomLeft.hidden,
10183
+ &.topRight.hidden,
10184
+ &.bottomRight.hidden {
10185
+ opacity: 0;
10186
+ visibility: hidden;
10187
+ transition: all calc(@transition-duration - 0.1s) @ease;
10188
+ }
10181
10189
  }
10182
10190
  }
10183
10191
 
package/dist/kdesign.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.7.33
3
+ * @kdcloudjs/kdesign v1.7.34
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -6126,6 +6126,7 @@ template {
6126
6126
  /* ----------- zIndex ——————---- end */
6127
6127
  .kd-color-picker-container {
6128
6128
  position: relative;
6129
+ width: var(--kd-c-color-picker-input-sizing-width, 230px);
6129
6130
  }
6130
6131
  .kd-color-picker-container .kd-color-picker-input {
6131
6132
  width: var(--kd-c-color-picker-input-sizing-width, 230px);
@@ -6167,6 +6168,9 @@ template {
6167
6168
  transition: transform 0.2s ease-in-out;
6168
6169
  transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
6169
6170
  }
6171
+ .kd-color-picker-pop {
6172
+ width: var(--kd-c-color-picker-panel-sizing-width, 304px);
6173
+ }
6170
6174
  .kd-color-picker-pop.topLeft.hidden,
6171
6175
  .kd-color-picker-pop.bottomLeft.hidden,
6172
6176
  .kd-color-picker-pop.topRight.hidden,
@@ -6276,19 +6280,30 @@ template {
6276
6280
  vertical-align: middle;
6277
6281
  margin-right: 9px;
6278
6282
  }
6279
- .kd-color-picker-pop .kd-color-picker-panel-input {
6283
+ .kd-color-picker-pop .kd-color-picker-panel-container {
6284
+ display: -webkit-box;
6285
+ display: -ms-flexbox;
6286
+ display: flex;
6287
+ -ms-flex-wrap: nowrap;
6288
+ flex-wrap: nowrap;
6289
+ margin-top: 10px;
6290
+ }
6291
+ .kd-color-picker-pop .kd-color-picker-panel-container-input {
6292
+ -webkit-box-flex: 1;
6293
+ -ms-flex: 1 1 auto;
6294
+ flex: 1 1 auto;
6280
6295
  display: inline-block;
6281
6296
  position: relative;
6282
- margin-top: 12px;
6283
6297
  font-size: var(--kd-c-color-picker-panel-select-font-size, var(--kd-g-font-size-middle, 14px));
6284
6298
  }
6285
- .kd-color-picker-pop .kd-color-picker-panel-input-no-recommend {
6286
- margin-bottom: 0;
6299
+ .kd-color-picker-pop .kd-color-picker-panel-container-input .kd-select-dropdown-panel {
6300
+ margin: 0 !important;
6287
6301
  }
6288
- .kd-color-picker-pop .kd-color-picker-panel-input .kd-select.bottomLeft,
6289
- .kd-color-picker-pop .kd-color-picker-panel-input .kd-select.topLeft {
6302
+ .kd-color-picker-pop .kd-color-picker-panel-container-input .kd-select-dropdown-panel.bottomLeft,
6303
+ .kd-color-picker-pop .kd-color-picker-panel-container-input .kd-select-dropdown-panel.topLeft {
6290
6304
  position: absolute;
6291
6305
  width: 60px !important;
6306
+ min-width: unset !important;
6292
6307
  background: #FFFFFF;
6293
6308
  right: 0;
6294
6309
  left: unset !important;
@@ -6296,7 +6311,7 @@ template {
6296
6311
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
6297
6312
  border-radius: 2px;
6298
6313
  }
6299
- .kd-color-picker-pop .kd-color-picker-panel-input .kd-select .kd-select-dropdown .kd-select-item-option {
6314
+ .kd-color-picker-pop .kd-color-picker-panel-container-input .kd-select-dropdown-panel .kd-select-dropdown .kd-select-item-option {
6300
6315
  display: -webkit-box;
6301
6316
  display: -ms-flexbox;
6302
6317
  display: flex;
@@ -6305,21 +6320,23 @@ template {
6305
6320
  justify-content: center;
6306
6321
  min-width: unset;
6307
6322
  }
6308
- .kd-color-picker-pop .kd-color-picker-panel-input .kd-select-bordered {
6323
+ .kd-color-picker-pop .kd-color-picker-panel-container-input .kd-select-bordered {
6309
6324
  border-radius: 2px;
6310
6325
  width: var(--kd-c-color-picker-panel-select-sizing-width, 212px);
6311
6326
  height: var(--kd-c-color-picker-panel-select-sizing-height, 28px);
6312
6327
  min-height: 28px;
6313
- margin-top: -2px;
6328
+ padding: 0 28px 0 0;
6314
6329
  }
6315
- .kd-color-picker-pop .kd-color-picker-panel-input .kd-select-bordered .kd-select-placeholder {
6330
+ .kd-color-picker-pop .kd-color-picker-panel-container-input .kd-select-bordered .kd-select-placeholder {
6316
6331
  left: 8px;
6317
6332
  }
6318
- .kd-color-picker-pop .kd-color-picker-panel-input .active-option {
6333
+ .kd-color-picker-pop .kd-color-picker-panel-container-input .active-option {
6319
6334
  background-color: var(--kd-c-color-picker-panel-option-color-background-selected, var(--kd-g-color-theme-3, #e3eeff));
6320
6335
  }
6321
- .kd-color-picker-pop .kd-color-picker-panel-transparent {
6322
- width: 60px;
6336
+ .kd-color-picker-pop .kd-color-picker-panel-container-transparent {
6337
+ -webkit-box-flex: 0;
6338
+ -ms-flex: 0 0 60px;
6339
+ flex: 0 0 60px;
6323
6340
  height: 28px;
6324
6341
  margin-left: 8px;
6325
6342
  text-align: center;
@@ -15551,14 +15568,14 @@ textarea {
15551
15568
  color: #999999;
15552
15569
  padding-left: 12px;
15553
15570
  }
15554
- .kd-select-multiple-footer-hadSelected > span {
15571
+ .kd-select-multiple-footer-hadSelected-number {
15555
15572
  color: var(--kd-c-select-footer-color-text-selected, #0e5fd8);
15556
15573
  padding: 0 2px;
15557
15574
  }
15558
- .kd-select.topLeft.hidden,
15559
- .kd-select.bottomLeft.hidden,
15560
- .kd-select.topRight.hidden,
15561
- .kd-select.bottomRight.hidden {
15575
+ .kd-select-dropdown-panel.topLeft.hidden,
15576
+ .kd-select-dropdown-panel.bottomLeft.hidden,
15577
+ .kd-select-dropdown-panel.topRight.hidden,
15578
+ .kd-select-dropdown-panel.bottomRight.hidden {
15562
15579
  opacity: 0;
15563
15580
  visibility: hidden;
15564
15581
  -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);