vxe-pc-ui 4.6.39 → 4.6.40

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 (44) hide show
  1. package/es/color-picker/src/color-picker.js +175 -110
  2. package/es/color-picker/style.css +80 -20
  3. package/es/color-picker/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/ui/index.js +5 -3
  8. package/es/ui/src/log.js +1 -1
  9. package/es/vxe-color-picker/style.css +80 -20
  10. package/es/vxe-color-picker/style.min.css +1 -1
  11. package/lib/color-picker/src/color-picker.js +84 -19
  12. package/lib/color-picker/src/color-picker.min.js +1 -1
  13. package/lib/color-picker/style/style.css +80 -20
  14. package/lib/color-picker/style/style.min.css +1 -1
  15. package/lib/icon/style/style.css +1 -1
  16. package/lib/icon/style/style.min.css +1 -1
  17. package/lib/index.umd.js +90 -23
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/style.min.css +1 -1
  21. package/lib/ui/index.js +5 -3
  22. package/lib/ui/index.min.js +1 -1
  23. package/lib/ui/src/log.js +1 -1
  24. package/lib/ui/src/log.min.js +1 -1
  25. package/lib/vxe-color-picker/style/style.css +80 -20
  26. package/lib/vxe-color-picker/style/style.min.css +1 -1
  27. package/package.json +1 -1
  28. package/packages/color-picker/src/color-picker.ts +182 -111
  29. package/packages/ui/index.ts +4 -2
  30. package/styles/components/color-picker.scss +73 -21
  31. package/types/components/color-picker.d.ts +2 -0
  32. package/types/ui/global-icon.d.ts +4 -2
  33. /package/es/icon/{iconfont.1751277334874.ttf → iconfont.1751332695680.ttf} +0 -0
  34. /package/es/icon/{iconfont.1751277334874.woff → iconfont.1751332695680.woff} +0 -0
  35. /package/es/icon/{iconfont.1751277334874.woff2 → iconfont.1751332695680.woff2} +0 -0
  36. /package/es/{iconfont.1751277334874.ttf → iconfont.1751332695680.ttf} +0 -0
  37. /package/es/{iconfont.1751277334874.woff → iconfont.1751332695680.woff} +0 -0
  38. /package/es/{iconfont.1751277334874.woff2 → iconfont.1751332695680.woff2} +0 -0
  39. /package/lib/icon/style/{iconfont.1751277334874.ttf → iconfont.1751332695680.ttf} +0 -0
  40. /package/lib/icon/style/{iconfont.1751277334874.woff → iconfont.1751332695680.woff} +0 -0
  41. /package/lib/icon/style/{iconfont.1751277334874.woff2 → iconfont.1751332695680.woff2} +0 -0
  42. /package/lib/{iconfont.1751277334874.ttf → iconfont.1751332695680.ttf} +0 -0
  43. /package/lib/{iconfont.1751277334874.woff → iconfont.1751332695680.woff} +0 -0
  44. /package/lib/{iconfont.1751277334874.woff2 → iconfont.1751332695680.woff2} +0 -0
@@ -597,8 +597,10 @@ setIcon({
597
597
  RATE_UNCHECKED: iconPrefix + 'star',
598
598
 
599
599
  // color-picker
600
- COLOR_COPY: iconPrefix + 'copy',
601
- EYE_DROPPER: iconPrefix + 'dropper',
600
+ COLOR_PICKER_COLOR_COPY: iconPrefix + 'copy',
601
+ COLOR_PICKER_EYE_DROPPER: iconPrefix + 'dropper',
602
+ COLOR_PICKER_TPTY_OPEN: iconPrefix + 'arrow-down rotate180',
603
+ COLOR_PICKER_TPTY_CLOSE: iconPrefix + 'arrow-down',
602
604
 
603
605
  // split
604
606
  SPLIT_TOP_ACTION: iconPrefix + 'arrow-up',
@@ -269,47 +269,99 @@
269
269
  }
270
270
  }
271
271
 
272
+ .vxe-color-picker--custom-wrapper {
273
+ display: flex;
274
+ flex-direction: row;
275
+ padding: 0 0.8em;
276
+ }
277
+ .vxe-color-picker--type-switch {
278
+ position: relative;
279
+ flex-shrink: 0;
280
+ margin-top: 0.4em;
281
+ }
282
+ .vxe-color-picker--type-icon {
283
+ padding: 0.25em;
284
+ color: var(--vxe-ui-input-placeholder-color);
285
+ i {
286
+ display: inline-block;
287
+ @include baseMixin.createAnimationTransition(transform, .2s);
288
+ }
289
+ }
290
+ .vxe-color-picker--type-label {
291
+ padding: 0 0.25em;
292
+ line-height: 2em;
293
+ cursor: pointer;
294
+ user-select: none;
295
+ }
296
+ .vxe-color-picker--type-popup {
297
+ position: absolute;
298
+ display: none;
299
+ border-radius: var(--vxe-ui-base-border-radius);
300
+ border: 1px solid var(--vxe-ui-base-popup-border-color);
301
+ box-shadow: var(--vxe-ui-base-popup-box-shadow);
302
+ background-color: var(--vxe-ui-layout-background-color);
303
+ padding: 0.25em 1em;
304
+ user-select: none;
305
+ &.is--visible {
306
+ display: block;
307
+ }
308
+ }
309
+ .vxe-color-picker--type-item {
310
+ line-height: 1.6em;
311
+ cursor: pointer;
312
+ &:hover {
313
+ color: var(--vxe-ui-font-primary-lighten-color);
314
+ }
315
+ }
316
+
272
317
  .vxe-color-picker--hex-wrapper,
273
318
  .vxe-color-picker--rgb-wrapper {
319
+ flex-grow: 1;
274
320
  text-align: center;
275
321
  margin-top: 0.4em;
276
322
  }
277
323
 
278
- .vxe-color-picker--hex-wrapper {
324
+ .vxe-color-picker--input-wrapper {
279
325
  display: flex;
280
326
  flex-direction: row;
281
- padding: 0 1.8em;
327
+ align-items: center;
328
+ justify-content: right;
329
+ }
330
+ .vxe-color-picker--input-title {
331
+ display: flex;
332
+ flex-direction: row;
333
+ align-items: center;
334
+ justify-content: center;
335
+ line-height: 1.4em;
336
+ color: var(--vxe-ui-input-placeholder-color);
337
+ }
338
+
339
+ .vxe-color-picker--hex-wrapper {
340
+ display: flex;
341
+ flex-direction: column;
282
342
  .vxe-color-picker--input-wrapper{
283
343
  & > .vxe-input {
284
- width: 12em;
344
+ width: 20.2em;
285
345
  }
286
346
  }
287
- .vxe-color-picker--input-title {
288
- padding: 0 0.6em;
289
- }
290
- }
291
-
292
- .vxe-color-picker--input-title {
293
- color: var(--vxe-ui-input-placeholder-color);
294
347
  }
295
348
 
296
349
  .vxe-color-picker--rgb-wrapper {
350
+ display: flex;
351
+ flex-direction: column;
297
352
  .vxe-color-picker--input-wrapper {
298
- display: flex;
299
- flex-direction: row;
300
- align-items: center;
301
- justify-content: center;
302
353
  & > .vxe-input {
303
- width: 5.4em;
304
- margin: 0 0.4em;
354
+ width: 4.6em;
355
+ margin-left: 0.6em;
356
+ &:first-child {
357
+ margin-left: 0;
358
+ }
359
+ .vxe-input--control-icon {
360
+ min-width: 1.6em;
361
+ }
305
362
  }
306
363
  }
307
364
  .vxe-color-picker--input-title {
308
- display: flex;
309
- flex-direction: row;
310
- align-items: center;
311
- justify-content: center;
312
- line-height: 1.4em;
313
365
  & > span {
314
366
  display: block;
315
367
  width: 50px;
@@ -74,7 +74,9 @@ export interface VxeColorPickerPrivateComputed extends ColorPickerPrivateCompute
74
74
 
75
75
  export interface ColorPickerReactData {
76
76
  initialized: boolean
77
+ selectTyle: VxeColorPickerPropTypes.Type
77
78
  selectColor: string
79
+ showTypePopup: boolean
78
80
  panelColor: string
79
81
  hexValue: string
80
82
  rValue: number
@@ -253,8 +253,10 @@ declare module '@vxe-ui/core' {
253
253
  RATE_UNCHECKED?: string
254
254
 
255
255
  // color-picker
256
- COLOR_COPY?: string
257
- EYE_DROPPER?: string
256
+ COLOR_PICKER_COLOR_COPY?: string
257
+ COLOR_PICKER_EYE_DROPPER?: string
258
+ COLOR_PICKER_TPTY_OPEN?: string
259
+ COLOR_PICKER_TPTY_CLOSE?: string
258
260
 
259
261
  // split
260
262
  SPLIT_TOP_ACTION?: string