@progress/kendo-vue-inputs 6.1.0-develop.4 → 6.1.0-develop.6
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/colors/ColorGradient.js +2 -2
- package/colors/ColorGradient.mjs +104 -89
- package/colors/ColorInput.js +1 -1
- package/colors/ColorInput.mjs +68 -61
- package/colors/ColorPalette.js +1 -1
- package/colors/ColorPalette.mjs +68 -59
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +113 -57
- package/colors/FlatColorPicker.js +1 -1
- package/colors/FlatColorPicker.mjs +82 -60
- package/colors/HexInput.js +1 -1
- package/colors/HexInput.mjs +13 -11
- package/colors/common/ColorsAdaptiveMode.js +8 -0
- package/colors/common/ColorsAdaptiveMode.mjs +91 -0
- package/colors/utils/color-cache.js +1 -1
- package/colors/utils/color-cache.mjs +2 -7
- package/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/index.d.mts +116 -7
- package/index.d.ts +116 -7
- package/messages/main.js +2 -2
- package/messages/main.mjs +26 -24
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
package/index.d.mts
CHANGED
|
@@ -358,6 +358,9 @@ innerTabIndex: {
|
|
|
358
358
|
type: PropType<number>;
|
|
359
359
|
default: any;
|
|
360
360
|
};
|
|
361
|
+
size: PropType<"small" | "medium" | "large">;
|
|
362
|
+
class: PropType<string>;
|
|
363
|
+
adaptive: PropType<boolean>;
|
|
361
364
|
}>, {}, {
|
|
362
365
|
currentValue: any;
|
|
363
366
|
currentBgColor: any;
|
|
@@ -429,6 +432,9 @@ innerTabIndex: {
|
|
|
429
432
|
type: PropType<number>;
|
|
430
433
|
default: any;
|
|
431
434
|
};
|
|
435
|
+
size: PropType<"small" | "medium" | "large">;
|
|
436
|
+
class: PropType<string>;
|
|
437
|
+
adaptive: PropType<boolean>;
|
|
432
438
|
}>> & Readonly<{
|
|
433
439
|
onBlur?: (...args: any[] | unknown[]) => any;
|
|
434
440
|
onChange?: (...args: any[] | unknown[]) => any;
|
|
@@ -513,6 +519,10 @@ declare interface ColorGradientProps {
|
|
|
513
519
|
* Specifies the id of the component.
|
|
514
520
|
*/
|
|
515
521
|
id?: string;
|
|
522
|
+
/**
|
|
523
|
+
* Sets additional CSS classes to the ColorGradient.
|
|
524
|
+
*/
|
|
525
|
+
class?: string;
|
|
516
526
|
/**
|
|
517
527
|
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
518
528
|
* For example these elements could contain error or hint message.
|
|
@@ -522,6 +532,23 @@ declare interface ColorGradientProps {
|
|
|
522
532
|
* Identifies the element(s) which will label the component.
|
|
523
533
|
*/
|
|
524
534
|
ariaLabelledBy?: string;
|
|
535
|
+
/**
|
|
536
|
+
* Configures the `size` of the ColorGradient.
|
|
537
|
+
*
|
|
538
|
+
* The available options are:
|
|
539
|
+
* - `small`
|
|
540
|
+
* - `medium`
|
|
541
|
+
* - `large`
|
|
542
|
+
* - `null`—This option removes the the built-in size styles of the ColorGradient. Allows for custom `padding`.
|
|
543
|
+
*
|
|
544
|
+
* @default `medium`
|
|
545
|
+
*/
|
|
546
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
547
|
+
/**
|
|
548
|
+
* @hidden
|
|
549
|
+
* Internal prop that determines whether the ColorGradient is in adaptive state.
|
|
550
|
+
*/
|
|
551
|
+
adaptive?: boolean;
|
|
525
552
|
}
|
|
526
553
|
|
|
527
554
|
/**
|
|
@@ -535,7 +562,6 @@ default: string;
|
|
|
535
562
|
columns: PropType<number>;
|
|
536
563
|
tileSize: {
|
|
537
564
|
type: PropType<number | TileSize>;
|
|
538
|
-
default: number;
|
|
539
565
|
};
|
|
540
566
|
modelValue: PropType<string>;
|
|
541
567
|
modelRgbaValue: PropType<string>;
|
|
@@ -544,8 +570,13 @@ value: PropType<string>;
|
|
|
544
570
|
disabled: PropType<boolean>;
|
|
545
571
|
tabIndex: PropType<number>;
|
|
546
572
|
id: PropType<string>;
|
|
573
|
+
class: PropType<string>;
|
|
547
574
|
ariaLabelledBy: PropType<string>;
|
|
548
575
|
ariaDescribedBy: PropType<string>;
|
|
576
|
+
size: {
|
|
577
|
+
type: PropType<"small" | "medium" | "large">;
|
|
578
|
+
default: string;
|
|
579
|
+
};
|
|
549
580
|
}>, {}, {
|
|
550
581
|
focusedColor: string;
|
|
551
582
|
currentValue: any;
|
|
@@ -583,7 +614,6 @@ default: string;
|
|
|
583
614
|
columns: PropType<number>;
|
|
584
615
|
tileSize: {
|
|
585
616
|
type: PropType<number | TileSize>;
|
|
586
|
-
default: number;
|
|
587
617
|
};
|
|
588
618
|
modelValue: PropType<string>;
|
|
589
619
|
modelRgbaValue: PropType<string>;
|
|
@@ -592,8 +622,13 @@ value: PropType<string>;
|
|
|
592
622
|
disabled: PropType<boolean>;
|
|
593
623
|
tabIndex: PropType<number>;
|
|
594
624
|
id: PropType<string>;
|
|
625
|
+
class: PropType<string>;
|
|
595
626
|
ariaLabelledBy: PropType<string>;
|
|
596
627
|
ariaDescribedBy: PropType<string>;
|
|
628
|
+
size: {
|
|
629
|
+
type: PropType<"small" | "medium" | "large">;
|
|
630
|
+
default: string;
|
|
631
|
+
};
|
|
597
632
|
}>> & Readonly<{
|
|
598
633
|
onBlur?: (...args: any[] | unknown[]) => any;
|
|
599
634
|
onChange?: (...args: any[] | unknown[]) => any;
|
|
@@ -603,8 +638,8 @@ onChangemodel?: (...args: any[] | unknown[]) => any;
|
|
|
603
638
|
"onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
|
|
604
639
|
"onUpdate:modelRgbaValue"?: (...args: any[] | unknown[]) => any;
|
|
605
640
|
}>, {
|
|
641
|
+
size: "small" | "medium" | "large";
|
|
606
642
|
palette: string | string[];
|
|
607
|
-
tileSize: number | TileSize;
|
|
608
643
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
609
644
|
|
|
610
645
|
/**
|
|
@@ -672,6 +707,10 @@ export declare interface ColorPaletteProps {
|
|
|
672
707
|
* Specifies the id of the component.
|
|
673
708
|
*/
|
|
674
709
|
id?: string;
|
|
710
|
+
/**
|
|
711
|
+
* Sets additional CSS classes to the ColorPalette.
|
|
712
|
+
*/
|
|
713
|
+
class?: string;
|
|
675
714
|
/**
|
|
676
715
|
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
677
716
|
* For example these elements could contain error or hint message.
|
|
@@ -681,6 +720,18 @@ export declare interface ColorPaletteProps {
|
|
|
681
720
|
* Identifies the element(s) which will label the component.
|
|
682
721
|
*/
|
|
683
722
|
ariaLabelledBy?: string;
|
|
723
|
+
/**
|
|
724
|
+
* Configures the `size` of the ColorPalette.
|
|
725
|
+
*
|
|
726
|
+
* The available options are:
|
|
727
|
+
* - `small`
|
|
728
|
+
* - `medium`
|
|
729
|
+
* - `large`
|
|
730
|
+
* - `null`—This option removes the the built-in size styles of the ColorPalette. To set a tile size use the `tileSize` property.
|
|
731
|
+
*
|
|
732
|
+
* @default `medium`
|
|
733
|
+
*/
|
|
734
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
684
735
|
/**
|
|
685
736
|
* Determines the event handler that will be fired when the user edits the value.
|
|
686
737
|
*/
|
|
@@ -723,7 +774,6 @@ paletteSettings: {
|
|
|
723
774
|
type: PropType<ColorPickerPaletteSettings>;
|
|
724
775
|
default: () => {
|
|
725
776
|
palette: string;
|
|
726
|
-
tileSize: number;
|
|
727
777
|
};
|
|
728
778
|
};
|
|
729
779
|
valid: {
|
|
@@ -780,10 +830,20 @@ selectedView: {
|
|
|
780
830
|
type: PropType<number>;
|
|
781
831
|
default: any;
|
|
782
832
|
};
|
|
833
|
+
adaptive: {
|
|
834
|
+
type: PropType<boolean>;
|
|
835
|
+
default: boolean;
|
|
836
|
+
};
|
|
837
|
+
adaptiveTitle: {
|
|
838
|
+
type: PropType<string>;
|
|
839
|
+
};
|
|
783
840
|
}>, {}, {
|
|
784
841
|
focused: boolean;
|
|
785
842
|
currentValue: string;
|
|
786
843
|
currentOpen: boolean;
|
|
844
|
+
flatcolorpickerRef: any;
|
|
845
|
+
windowWidth: number;
|
|
846
|
+
observer: any;
|
|
787
847
|
}, {
|
|
788
848
|
isValueControlled(): boolean;
|
|
789
849
|
isOpenControlled(): boolean;
|
|
@@ -798,7 +858,15 @@ wrapperClassName(): {
|
|
|
798
858
|
'k-disabled': any;
|
|
799
859
|
'k-focus': any;
|
|
800
860
|
};
|
|
861
|
+
animationStyles(): {
|
|
862
|
+
top: number;
|
|
863
|
+
width: string;
|
|
864
|
+
height: string;
|
|
865
|
+
};
|
|
866
|
+
classNameAdaptive(): string;
|
|
867
|
+
adaptiveState(): boolean;
|
|
801
868
|
}, {
|
|
869
|
+
calculateMedia(entries: ResizeObserverEntry[]): void;
|
|
802
870
|
focusElement(): void;
|
|
803
871
|
setOpen(nextOpen: boolean, isBlur?: boolean): void;
|
|
804
872
|
onButtonKeyDown(event: any): void;
|
|
@@ -854,7 +922,6 @@ paletteSettings: {
|
|
|
854
922
|
type: PropType<ColorPickerPaletteSettings>;
|
|
855
923
|
default: () => {
|
|
856
924
|
palette: string;
|
|
857
|
-
tileSize: number;
|
|
858
925
|
};
|
|
859
926
|
};
|
|
860
927
|
valid: {
|
|
@@ -911,6 +978,13 @@ selectedView: {
|
|
|
911
978
|
type: PropType<number>;
|
|
912
979
|
default: any;
|
|
913
980
|
};
|
|
981
|
+
adaptive: {
|
|
982
|
+
type: PropType<boolean>;
|
|
983
|
+
default: boolean;
|
|
984
|
+
};
|
|
985
|
+
adaptiveTitle: {
|
|
986
|
+
type: PropType<string>;
|
|
987
|
+
};
|
|
914
988
|
}>> & Readonly<{
|
|
915
989
|
onBlur?: (...args: any[] | unknown[]) => any;
|
|
916
990
|
onChange?: (...args: any[] | unknown[]) => any;
|
|
@@ -933,6 +1007,7 @@ valid: boolean;
|
|
|
933
1007
|
showClearButton: boolean;
|
|
934
1008
|
open: boolean;
|
|
935
1009
|
popupSettings: ColorPickerPopupSettings;
|
|
1010
|
+
adaptive: boolean;
|
|
936
1011
|
selectedView: number;
|
|
937
1012
|
showPreview: boolean;
|
|
938
1013
|
showButtons: boolean;
|
|
@@ -1207,6 +1282,14 @@ export declare interface ColorPickerProps {
|
|
|
1207
1282
|
* @default `solid`
|
|
1208
1283
|
*/
|
|
1209
1284
|
fillMode?: null | 'solid' | 'flat' | 'outline' | string;
|
|
1285
|
+
/**
|
|
1286
|
+
* Providing different rendering of the popup element based on the screen dimensions.
|
|
1287
|
+
*/
|
|
1288
|
+
adaptive?: boolean;
|
|
1289
|
+
/**
|
|
1290
|
+
* Specifies the text that is rendered as title in the adaptive popup.
|
|
1291
|
+
*/
|
|
1292
|
+
adaptiveTitle?: string;
|
|
1210
1293
|
}
|
|
1211
1294
|
|
|
1212
1295
|
/**
|
|
@@ -1265,9 +1348,13 @@ paletteSettings: {
|
|
|
1265
1348
|
type: PropType<ColorPickerPaletteSettings>;
|
|
1266
1349
|
default: () => {
|
|
1267
1350
|
palette: string;
|
|
1268
|
-
tileSize: number;
|
|
1269
1351
|
};
|
|
1270
1352
|
};
|
|
1353
|
+
size: {
|
|
1354
|
+
type: PropType<"small" | "medium" | "large">;
|
|
1355
|
+
default: string;
|
|
1356
|
+
};
|
|
1357
|
+
adaptive: PropType<boolean>;
|
|
1271
1358
|
}>, {}, {
|
|
1272
1359
|
currentView: string;
|
|
1273
1360
|
colorValue: string | Function;
|
|
@@ -1354,9 +1441,13 @@ paletteSettings: {
|
|
|
1354
1441
|
type: PropType<ColorPickerPaletteSettings>;
|
|
1355
1442
|
default: () => {
|
|
1356
1443
|
palette: string;
|
|
1357
|
-
tileSize: number;
|
|
1358
1444
|
};
|
|
1359
1445
|
};
|
|
1446
|
+
size: {
|
|
1447
|
+
type: PropType<"small" | "medium" | "large">;
|
|
1448
|
+
default: string;
|
|
1449
|
+
};
|
|
1450
|
+
adaptive: PropType<boolean>;
|
|
1360
1451
|
}>> & Readonly<{
|
|
1361
1452
|
onBlur?: (...args: any[] | unknown[]) => any;
|
|
1362
1453
|
onChange?: (...args: any[] | unknown[]) => any;
|
|
@@ -1368,6 +1459,7 @@ onChangemodel?: (...args: any[] | unknown[]) => any;
|
|
|
1368
1459
|
"onUpdate:modelRgbaValue"?: (...args: any[] | unknown[]) => any;
|
|
1369
1460
|
onViewchange?: (...args: any[] | unknown[]) => any;
|
|
1370
1461
|
}>, {
|
|
1462
|
+
size: "small" | "medium" | "large";
|
|
1371
1463
|
view: string;
|
|
1372
1464
|
showClearButton: boolean;
|
|
1373
1465
|
selectedView: number;
|
|
@@ -1463,6 +1555,18 @@ export declare interface FlatColorPickerProps {
|
|
|
1463
1555
|
* Configures the ColorGradient that is displayed in the ColorPicker popup.
|
|
1464
1556
|
*/
|
|
1465
1557
|
gradientSettings?: ColorGradientProps;
|
|
1558
|
+
/**
|
|
1559
|
+
* Configures the `size` of the FlatColorPicker.
|
|
1560
|
+
*
|
|
1561
|
+
* The available options are:
|
|
1562
|
+
* - `small`
|
|
1563
|
+
* - `medium`
|
|
1564
|
+
* - `large`
|
|
1565
|
+
* - `null`—This option removes the the built-in size styles of the FlatColorPicker. Allows for custom `padding`.
|
|
1566
|
+
*
|
|
1567
|
+
* @default `medium`
|
|
1568
|
+
*/
|
|
1569
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
1466
1570
|
/**
|
|
1467
1571
|
* The event handler that will be fired when the view is changed.
|
|
1468
1572
|
*/
|
|
@@ -1471,6 +1575,11 @@ export declare interface FlatColorPickerProps {
|
|
|
1471
1575
|
* The event handler that will be fired when the user edits the value.
|
|
1472
1576
|
*/
|
|
1473
1577
|
onChange?: (event: ColorPickerChangeEvent) => void;
|
|
1578
|
+
/**
|
|
1579
|
+
* @hidden
|
|
1580
|
+
* Internal prop that determines whether the ColorGradient is in adaptive state.
|
|
1581
|
+
*/
|
|
1582
|
+
adaptive?: boolean;
|
|
1474
1583
|
}
|
|
1475
1584
|
|
|
1476
1585
|
/**
|
package/index.d.ts
CHANGED
|
@@ -358,6 +358,9 @@ innerTabIndex: {
|
|
|
358
358
|
type: PropType<number>;
|
|
359
359
|
default: any;
|
|
360
360
|
};
|
|
361
|
+
size: PropType<"small" | "medium" | "large">;
|
|
362
|
+
class: PropType<string>;
|
|
363
|
+
adaptive: PropType<boolean>;
|
|
361
364
|
}>, {}, {
|
|
362
365
|
currentValue: any;
|
|
363
366
|
currentBgColor: any;
|
|
@@ -429,6 +432,9 @@ innerTabIndex: {
|
|
|
429
432
|
type: PropType<number>;
|
|
430
433
|
default: any;
|
|
431
434
|
};
|
|
435
|
+
size: PropType<"small" | "medium" | "large">;
|
|
436
|
+
class: PropType<string>;
|
|
437
|
+
adaptive: PropType<boolean>;
|
|
432
438
|
}>> & Readonly<{
|
|
433
439
|
onBlur?: (...args: any[] | unknown[]) => any;
|
|
434
440
|
onChange?: (...args: any[] | unknown[]) => any;
|
|
@@ -513,6 +519,10 @@ declare interface ColorGradientProps {
|
|
|
513
519
|
* Specifies the id of the component.
|
|
514
520
|
*/
|
|
515
521
|
id?: string;
|
|
522
|
+
/**
|
|
523
|
+
* Sets additional CSS classes to the ColorGradient.
|
|
524
|
+
*/
|
|
525
|
+
class?: string;
|
|
516
526
|
/**
|
|
517
527
|
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
518
528
|
* For example these elements could contain error or hint message.
|
|
@@ -522,6 +532,23 @@ declare interface ColorGradientProps {
|
|
|
522
532
|
* Identifies the element(s) which will label the component.
|
|
523
533
|
*/
|
|
524
534
|
ariaLabelledBy?: string;
|
|
535
|
+
/**
|
|
536
|
+
* Configures the `size` of the ColorGradient.
|
|
537
|
+
*
|
|
538
|
+
* The available options are:
|
|
539
|
+
* - `small`
|
|
540
|
+
* - `medium`
|
|
541
|
+
* - `large`
|
|
542
|
+
* - `null`—This option removes the the built-in size styles of the ColorGradient. Allows for custom `padding`.
|
|
543
|
+
*
|
|
544
|
+
* @default `medium`
|
|
545
|
+
*/
|
|
546
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
547
|
+
/**
|
|
548
|
+
* @hidden
|
|
549
|
+
* Internal prop that determines whether the ColorGradient is in adaptive state.
|
|
550
|
+
*/
|
|
551
|
+
adaptive?: boolean;
|
|
525
552
|
}
|
|
526
553
|
|
|
527
554
|
/**
|
|
@@ -535,7 +562,6 @@ default: string;
|
|
|
535
562
|
columns: PropType<number>;
|
|
536
563
|
tileSize: {
|
|
537
564
|
type: PropType<number | TileSize>;
|
|
538
|
-
default: number;
|
|
539
565
|
};
|
|
540
566
|
modelValue: PropType<string>;
|
|
541
567
|
modelRgbaValue: PropType<string>;
|
|
@@ -544,8 +570,13 @@ value: PropType<string>;
|
|
|
544
570
|
disabled: PropType<boolean>;
|
|
545
571
|
tabIndex: PropType<number>;
|
|
546
572
|
id: PropType<string>;
|
|
573
|
+
class: PropType<string>;
|
|
547
574
|
ariaLabelledBy: PropType<string>;
|
|
548
575
|
ariaDescribedBy: PropType<string>;
|
|
576
|
+
size: {
|
|
577
|
+
type: PropType<"small" | "medium" | "large">;
|
|
578
|
+
default: string;
|
|
579
|
+
};
|
|
549
580
|
}>, {}, {
|
|
550
581
|
focusedColor: string;
|
|
551
582
|
currentValue: any;
|
|
@@ -583,7 +614,6 @@ default: string;
|
|
|
583
614
|
columns: PropType<number>;
|
|
584
615
|
tileSize: {
|
|
585
616
|
type: PropType<number | TileSize>;
|
|
586
|
-
default: number;
|
|
587
617
|
};
|
|
588
618
|
modelValue: PropType<string>;
|
|
589
619
|
modelRgbaValue: PropType<string>;
|
|
@@ -592,8 +622,13 @@ value: PropType<string>;
|
|
|
592
622
|
disabled: PropType<boolean>;
|
|
593
623
|
tabIndex: PropType<number>;
|
|
594
624
|
id: PropType<string>;
|
|
625
|
+
class: PropType<string>;
|
|
595
626
|
ariaLabelledBy: PropType<string>;
|
|
596
627
|
ariaDescribedBy: PropType<string>;
|
|
628
|
+
size: {
|
|
629
|
+
type: PropType<"small" | "medium" | "large">;
|
|
630
|
+
default: string;
|
|
631
|
+
};
|
|
597
632
|
}>> & Readonly<{
|
|
598
633
|
onBlur?: (...args: any[] | unknown[]) => any;
|
|
599
634
|
onChange?: (...args: any[] | unknown[]) => any;
|
|
@@ -603,8 +638,8 @@ onChangemodel?: (...args: any[] | unknown[]) => any;
|
|
|
603
638
|
"onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
|
|
604
639
|
"onUpdate:modelRgbaValue"?: (...args: any[] | unknown[]) => any;
|
|
605
640
|
}>, {
|
|
641
|
+
size: "small" | "medium" | "large";
|
|
606
642
|
palette: string | string[];
|
|
607
|
-
tileSize: number | TileSize;
|
|
608
643
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
609
644
|
|
|
610
645
|
/**
|
|
@@ -672,6 +707,10 @@ export declare interface ColorPaletteProps {
|
|
|
672
707
|
* Specifies the id of the component.
|
|
673
708
|
*/
|
|
674
709
|
id?: string;
|
|
710
|
+
/**
|
|
711
|
+
* Sets additional CSS classes to the ColorPalette.
|
|
712
|
+
*/
|
|
713
|
+
class?: string;
|
|
675
714
|
/**
|
|
676
715
|
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
677
716
|
* For example these elements could contain error or hint message.
|
|
@@ -681,6 +720,18 @@ export declare interface ColorPaletteProps {
|
|
|
681
720
|
* Identifies the element(s) which will label the component.
|
|
682
721
|
*/
|
|
683
722
|
ariaLabelledBy?: string;
|
|
723
|
+
/**
|
|
724
|
+
* Configures the `size` of the ColorPalette.
|
|
725
|
+
*
|
|
726
|
+
* The available options are:
|
|
727
|
+
* - `small`
|
|
728
|
+
* - `medium`
|
|
729
|
+
* - `large`
|
|
730
|
+
* - `null`—This option removes the the built-in size styles of the ColorPalette. To set a tile size use the `tileSize` property.
|
|
731
|
+
*
|
|
732
|
+
* @default `medium`
|
|
733
|
+
*/
|
|
734
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
684
735
|
/**
|
|
685
736
|
* Determines the event handler that will be fired when the user edits the value.
|
|
686
737
|
*/
|
|
@@ -723,7 +774,6 @@ paletteSettings: {
|
|
|
723
774
|
type: PropType<ColorPickerPaletteSettings>;
|
|
724
775
|
default: () => {
|
|
725
776
|
palette: string;
|
|
726
|
-
tileSize: number;
|
|
727
777
|
};
|
|
728
778
|
};
|
|
729
779
|
valid: {
|
|
@@ -780,10 +830,20 @@ selectedView: {
|
|
|
780
830
|
type: PropType<number>;
|
|
781
831
|
default: any;
|
|
782
832
|
};
|
|
833
|
+
adaptive: {
|
|
834
|
+
type: PropType<boolean>;
|
|
835
|
+
default: boolean;
|
|
836
|
+
};
|
|
837
|
+
adaptiveTitle: {
|
|
838
|
+
type: PropType<string>;
|
|
839
|
+
};
|
|
783
840
|
}>, {}, {
|
|
784
841
|
focused: boolean;
|
|
785
842
|
currentValue: string;
|
|
786
843
|
currentOpen: boolean;
|
|
844
|
+
flatcolorpickerRef: any;
|
|
845
|
+
windowWidth: number;
|
|
846
|
+
observer: any;
|
|
787
847
|
}, {
|
|
788
848
|
isValueControlled(): boolean;
|
|
789
849
|
isOpenControlled(): boolean;
|
|
@@ -798,7 +858,15 @@ wrapperClassName(): {
|
|
|
798
858
|
'k-disabled': any;
|
|
799
859
|
'k-focus': any;
|
|
800
860
|
};
|
|
861
|
+
animationStyles(): {
|
|
862
|
+
top: number;
|
|
863
|
+
width: string;
|
|
864
|
+
height: string;
|
|
865
|
+
};
|
|
866
|
+
classNameAdaptive(): string;
|
|
867
|
+
adaptiveState(): boolean;
|
|
801
868
|
}, {
|
|
869
|
+
calculateMedia(entries: ResizeObserverEntry[]): void;
|
|
802
870
|
focusElement(): void;
|
|
803
871
|
setOpen(nextOpen: boolean, isBlur?: boolean): void;
|
|
804
872
|
onButtonKeyDown(event: any): void;
|
|
@@ -854,7 +922,6 @@ paletteSettings: {
|
|
|
854
922
|
type: PropType<ColorPickerPaletteSettings>;
|
|
855
923
|
default: () => {
|
|
856
924
|
palette: string;
|
|
857
|
-
tileSize: number;
|
|
858
925
|
};
|
|
859
926
|
};
|
|
860
927
|
valid: {
|
|
@@ -911,6 +978,13 @@ selectedView: {
|
|
|
911
978
|
type: PropType<number>;
|
|
912
979
|
default: any;
|
|
913
980
|
};
|
|
981
|
+
adaptive: {
|
|
982
|
+
type: PropType<boolean>;
|
|
983
|
+
default: boolean;
|
|
984
|
+
};
|
|
985
|
+
adaptiveTitle: {
|
|
986
|
+
type: PropType<string>;
|
|
987
|
+
};
|
|
914
988
|
}>> & Readonly<{
|
|
915
989
|
onBlur?: (...args: any[] | unknown[]) => any;
|
|
916
990
|
onChange?: (...args: any[] | unknown[]) => any;
|
|
@@ -933,6 +1007,7 @@ valid: boolean;
|
|
|
933
1007
|
showClearButton: boolean;
|
|
934
1008
|
open: boolean;
|
|
935
1009
|
popupSettings: ColorPickerPopupSettings;
|
|
1010
|
+
adaptive: boolean;
|
|
936
1011
|
selectedView: number;
|
|
937
1012
|
showPreview: boolean;
|
|
938
1013
|
showButtons: boolean;
|
|
@@ -1207,6 +1282,14 @@ export declare interface ColorPickerProps {
|
|
|
1207
1282
|
* @default `solid`
|
|
1208
1283
|
*/
|
|
1209
1284
|
fillMode?: null | 'solid' | 'flat' | 'outline' | string;
|
|
1285
|
+
/**
|
|
1286
|
+
* Providing different rendering of the popup element based on the screen dimensions.
|
|
1287
|
+
*/
|
|
1288
|
+
adaptive?: boolean;
|
|
1289
|
+
/**
|
|
1290
|
+
* Specifies the text that is rendered as title in the adaptive popup.
|
|
1291
|
+
*/
|
|
1292
|
+
adaptiveTitle?: string;
|
|
1210
1293
|
}
|
|
1211
1294
|
|
|
1212
1295
|
/**
|
|
@@ -1265,9 +1348,13 @@ paletteSettings: {
|
|
|
1265
1348
|
type: PropType<ColorPickerPaletteSettings>;
|
|
1266
1349
|
default: () => {
|
|
1267
1350
|
palette: string;
|
|
1268
|
-
tileSize: number;
|
|
1269
1351
|
};
|
|
1270
1352
|
};
|
|
1353
|
+
size: {
|
|
1354
|
+
type: PropType<"small" | "medium" | "large">;
|
|
1355
|
+
default: string;
|
|
1356
|
+
};
|
|
1357
|
+
adaptive: PropType<boolean>;
|
|
1271
1358
|
}>, {}, {
|
|
1272
1359
|
currentView: string;
|
|
1273
1360
|
colorValue: string | Function;
|
|
@@ -1354,9 +1441,13 @@ paletteSettings: {
|
|
|
1354
1441
|
type: PropType<ColorPickerPaletteSettings>;
|
|
1355
1442
|
default: () => {
|
|
1356
1443
|
palette: string;
|
|
1357
|
-
tileSize: number;
|
|
1358
1444
|
};
|
|
1359
1445
|
};
|
|
1446
|
+
size: {
|
|
1447
|
+
type: PropType<"small" | "medium" | "large">;
|
|
1448
|
+
default: string;
|
|
1449
|
+
};
|
|
1450
|
+
adaptive: PropType<boolean>;
|
|
1360
1451
|
}>> & Readonly<{
|
|
1361
1452
|
onBlur?: (...args: any[] | unknown[]) => any;
|
|
1362
1453
|
onChange?: (...args: any[] | unknown[]) => any;
|
|
@@ -1368,6 +1459,7 @@ onChangemodel?: (...args: any[] | unknown[]) => any;
|
|
|
1368
1459
|
"onUpdate:modelRgbaValue"?: (...args: any[] | unknown[]) => any;
|
|
1369
1460
|
onViewchange?: (...args: any[] | unknown[]) => any;
|
|
1370
1461
|
}>, {
|
|
1462
|
+
size: "small" | "medium" | "large";
|
|
1371
1463
|
view: string;
|
|
1372
1464
|
showClearButton: boolean;
|
|
1373
1465
|
selectedView: number;
|
|
@@ -1463,6 +1555,18 @@ export declare interface FlatColorPickerProps {
|
|
|
1463
1555
|
* Configures the ColorGradient that is displayed in the ColorPicker popup.
|
|
1464
1556
|
*/
|
|
1465
1557
|
gradientSettings?: ColorGradientProps;
|
|
1558
|
+
/**
|
|
1559
|
+
* Configures the `size` of the FlatColorPicker.
|
|
1560
|
+
*
|
|
1561
|
+
* The available options are:
|
|
1562
|
+
* - `small`
|
|
1563
|
+
* - `medium`
|
|
1564
|
+
* - `large`
|
|
1565
|
+
* - `null`—This option removes the the built-in size styles of the FlatColorPicker. Allows for custom `padding`.
|
|
1566
|
+
*
|
|
1567
|
+
* @default `medium`
|
|
1568
|
+
*/
|
|
1569
|
+
size?: null | 'small' | 'medium' | 'large';
|
|
1466
1570
|
/**
|
|
1467
1571
|
* The event handler that will be fired when the view is changed.
|
|
1468
1572
|
*/
|
|
@@ -1471,6 +1575,11 @@ export declare interface FlatColorPickerProps {
|
|
|
1471
1575
|
* The event handler that will be fired when the user edits the value.
|
|
1472
1576
|
*/
|
|
1473
1577
|
onChange?: (event: ColorPickerChangeEvent) => void;
|
|
1578
|
+
/**
|
|
1579
|
+
* @hidden
|
|
1580
|
+
* Internal prop that determines whether the ColorGradient is in adaptive state.
|
|
1581
|
+
*/
|
|
1582
|
+
adaptive?: boolean;
|
|
1474
1583
|
}
|
|
1475
1584
|
|
|
1476
1585
|
/**
|
package/messages/main.js
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="numerictextbox.increment",o="numerictextbox.decrement",r="slider.increment",t="slider.decrement",a="slider.dragTitle",l="colorGradient.dragHandle",n="colorGradient.r",i="colorGradient.g",c="colorGradient.b",d="colorGradient.a",s="colorGradient.hex",G="colorGradient.hexLabel",u="colorGradient.inputColorButton",b="colorGradient.rLabel",g="colorGradient.gLabel",
|
|
9
|
-
saturation and lightness. Selected color is`,[u]:"Change the color input",[n]:"r",[i]:"g",[c]:"b",[d]:"a",[b]:"red chanel",[g]:"green chanel",[
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="numerictextbox.increment",o="numerictextbox.decrement",r="slider.increment",t="slider.decrement",a="slider.dragTitle",l="colorGradient.dragHandle",n="colorGradient.r",i="colorGradient.g",c="colorGradient.b",d="colorGradient.a",s="colorGradient.hex",G="colorGradient.hexLabel",u="colorGradient.inputColorButton",b="colorGradient.rLabel",g="colorGradient.gLabel",p="colorGradient.bLabel",A="colorGradient.aLabel",C="colorGradient.contrastRatio",L="colorGradient.colorGradientAALevel",P="colorGradient.colorGradientAAALevel",B="colorGradient.colorGradientPass",h="colorGradient.colorGradientFail",k="colorGradient.hueSliderLabel",x="colorGradient.alphaSliderLabel",m="flatColorPicker.cancelBtn",f="flatColorPicker.applyBtn",v="flatColorPicker.gradientBtn",V="flatColorPicker.paletterBtn",D="flatColorPicker.clearBtn",T="colorPicker.adaptiveTitle",w="checkbox.validation",H="checkbox.optionalText",I="radioButton.validation",S="switch.validation",y="colorPicker.dropdownButtonAriaLabel",z="colorGradient.toggleInputsButton",R="rating.ariaLabel",M="signature.clear",F="signature.maximize",O="signature.minimize",j={[e]:"Increase value",[o]:"Decrease value",[r]:"Increase",[t]:"Decrease",[a]:"Drag",[l]:`Color well with two-dimensional slider for selecting
|
|
9
|
+
saturation and lightness. Selected color is`,[u]:"Change the color input",[n]:"r",[i]:"g",[c]:"b",[d]:"a",[b]:"red chanel",[g]:"green chanel",[p]:"blue chanel",[A]:"alpha chanel",[s]:"hex",[G]:"HEX",[C]:"Contrast ratio",[L]:"AA",[P]:"AAA",[B]:"Pass",[h]:"Fail",[k]:"Hue slider",[x]:"Alpha slider",[z]:"Toggle colorgradient inputs",[m]:"Cancel",[f]:"Apply",[v]:"Gradient",[V]:"Palette",[D]:"Clear",[T]:"Choose color",[w]:"Please check this box if you want to proceed!",[H]:"(Optional)",[I]:"Please select option if you want to proceed!",[S]:"Please turn on if you want to proceed!",[y]:"Select",[R]:"Rating",[M]:"Clear",[F]:"Maximize",[O]:"Minimize"};exports.checkboxOptionalText=H;exports.checkboxValidation=w;exports.colorGradientA=d;exports.colorGradientAAALevel=P;exports.colorGradientAALevel=L;exports.colorGradientALabel=A;exports.colorGradientAlphaSliderLabel=x;exports.colorGradientB=c;exports.colorGradientBLabel=p;exports.colorGradientContrastRatio=C;exports.colorGradientDragHandle=l;exports.colorGradientFail=h;exports.colorGradientG=i;exports.colorGradientGLabel=g;exports.colorGradientHex=s;exports.colorGradientHexLabel=G;exports.colorGradientHueSliderLabel=k;exports.colorGradientInputColorButton=u;exports.colorGradientPass=B;exports.colorGradientR=n;exports.colorGradientRLabel=b;exports.colorGradientToggleInputsButton=z;exports.colorPickerAdaptiveTitle=T;exports.colorPickerDropdownButtonAriaLabel=y;exports.flatColorPickerApplyBtn=f;exports.flatColorPickerCancelBtn=m;exports.flatColorPickerClearBtn=D;exports.flatColorPickerGradientBtn=v;exports.flatColorPickerPaletteBtn=V;exports.messages=j;exports.numericDecreaseValue=o;exports.numericIncreaseValue=e;exports.radioButtonValidation=I;exports.ratingAriaLabel=R;exports.signatureClear=M;exports.signatureMaximize=F;exports.signatureMinimize=O;exports.sliderDecreaseValue=t;exports.sliderDragTitle=a;exports.sliderIncreaseValue=r;exports.switchValidation=S;
|