@progress/kendo-vue-buttons 6.1.0-develop.9 → 6.1.1-develop.1

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/index.d.mts CHANGED
@@ -113,6 +113,7 @@ focus: any;
113
113
  blur: any;
114
114
  keypress: any;
115
115
  keydown: any;
116
+ contextmenu: any;
116
117
  }, string, PublicProps, Readonly<ExtractPropTypes< {
117
118
  ariaLabel: PropType<string>;
118
119
  ariaPressed: PropType<boolean>;
@@ -171,6 +172,7 @@ role: PropType<string>;
171
172
  }>> & Readonly<{
172
173
  onClick?: (...args: any[] | unknown[]) => any;
173
174
  onBlur?: (...args: any[] | unknown[]) => any;
175
+ onContextmenu?: (...args: any[] | unknown[]) => any;
174
176
  onFocus?: (...args: any[] | unknown[]) => any;
175
177
  onKeydown?: (...args: any[] | unknown[]) => any;
176
178
  onKeypress?: (...args: any[] | unknown[]) => any;
@@ -281,14 +283,6 @@ export declare interface ButtonGroupProps extends ButtonGroupInterface, ButtonPr
281
283
  * Inherits the native HTML Button. Represents the properties which can be set to a Button.
282
284
  */
283
285
  declare interface ButtonInterface {
284
- /**
285
- * **Deprecated**. Use [`fillMode`]({% slug api_buttons_buttonprops %}#toc-fillmode) prop instead.
286
- *
287
- * The available values are:
288
- * `flat` | `outline`
289
- * * `clear`
290
- */
291
- look?: string;
292
286
  /**
293
287
  * Adds visual weight to the Button and makes it primary ([see example]({% slug primary_button %})).
294
288
  * **Deprecated**. Use [`themeColor`]({% slug api_buttons_buttonprops %}#toc-themecolor) prop instead.
@@ -422,20 +416,6 @@ export declare interface ButtonItemProps {
422
416
  role?: string;
423
417
  }
424
418
 
425
- /**
426
- * Enables the modification of the Button appearance.
427
- *
428
- * The available styling options are:
429
- * - `default`
430
- * - `flat`
431
- * - `outline`
432
- *
433
- * @example
434
- * ```ts-no-run
435
- * ```
436
- */
437
- export declare type ButtonLook = 'default' | 'flat' | 'outline';
438
-
439
419
  /**
440
420
  * @hidden
441
421
  */
@@ -610,10 +590,6 @@ selectedSvgIcon: {
610
590
  type: PropType<SVGIcon>;
611
591
  default: () => SVGIcon_2;
612
592
  };
613
- look: {
614
- type: PropType<string>;
615
- default: () => string;
616
- };
617
593
  size: {
618
594
  type: PropType<string>;
619
595
  default: string;
@@ -701,10 +677,6 @@ selectedSvgIcon: {
701
677
  type: PropType<SVGIcon>;
702
678
  default: () => SVGIcon_2;
703
679
  };
704
- look: {
705
- type: PropType<string>;
706
- default: () => string;
707
- };
708
680
  size: {
709
681
  type: PropType<string>;
710
682
  default: string;
@@ -752,7 +724,6 @@ removeIcon: string;
752
724
  removeSvgIcon: SVGIcon;
753
725
  selectedIcon: string;
754
726
  selectedSvgIcon: SVGIcon;
755
- look: string;
756
727
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
757
728
 
758
729
  /**
@@ -1001,7 +972,7 @@ export declare interface ChipListHandle {
1001
972
  }
1002
973
 
1003
974
  /**
1004
- * Represents the properties of [ChipList]({% slug api_buttons_chiplist %}) component.
975
+ * Represents the properties of [ChipList]({% slug overview_chiplist %}) component.
1005
976
  */
1006
977
  export declare interface ChipListProps extends FormComponentProps, ChipProps {
1007
978
  /**
@@ -1131,7 +1102,7 @@ export declare interface ChipMouseEvent {
1131
1102
  }
1132
1103
 
1133
1104
  /**
1134
- * Represents the properties of [Chip]({% slug api_buttons_chip %}) component.
1105
+ * Represents the properties of [Chip]({% slug overview_chip %}) component.
1135
1106
  */
1136
1107
  export declare interface ChipProps {
1137
1108
  /**
@@ -1186,10 +1157,6 @@ export declare interface ChipProps {
1186
1157
  * Defines an selection SVGIcon to be rendered within the chip.
1187
1158
  */
1188
1159
  selectedSvgIcon?: SVGIcon;
1189
- /**
1190
- * Determines if the Chip style is `filled` or `outlined`.
1191
- */
1192
- look?: string;
1193
1160
  /**
1194
1161
  * If set to object of type ChipAvatarProps with image and imageAlt it renders a default Avatar. If set to string or a `render` function it
1195
1162
  * defines the avatar template that will be shown.
@@ -1488,15 +1455,15 @@ export declare interface DropDownButtonProps {
1488
1455
  */
1489
1456
  ariaLabel?: string;
1490
1457
  /**
1491
- * Specifies the text of the main button ([see example]({% slug overview_dropdownbutton %}#toc-basic-usage)).
1458
+ * Specifies the text of the main button ([see example]({% slug overview_dropdownbutton %})).
1492
1459
  */
1493
1460
  text?: any;
1494
1461
  /**
1495
- * Specifies the list items ([see example]({% slug binding_dropdownbutton %}#toc-array-of-objects)).
1462
+ * Specifies the list items ([see example]({% slug binding_dropdownbutton %}#toc-arrays-of-objects)).
1496
1463
  */
1497
1464
  items?: any[];
1498
1465
  /**
1499
- * Configures the field that will be used for the text of the `items`. `textField` has to be used together with the `items` prop ([see example]({% slug binding_dropdownbutton %}#toc-array-of-objects)).
1466
+ * Configures the field that will be used for the text of the `items`. `textField` has to be used together with the `items` prop ([see example]({% slug binding_dropdownbutton %}#toc-arrays-of-objects)).
1500
1467
  */
1501
1468
  textField?: string;
1502
1469
  /**
@@ -1533,7 +1500,7 @@ export declare interface DropDownButtonProps {
1533
1500
  */
1534
1501
  popupSettings?: ButtonsPopupSettings;
1535
1502
  /**
1536
- * Defines a named slot `string`, functional or class component which is used for rendering items ([see example]({% slug customization_dropdownbutton %}#toc-item-render)). The default rendering includes an icon, an image, and text.
1503
+ * Defines a named slot `string`, functional or class component which is used for rendering items ([see example]({% slug customization_dropdownbutton %}#toc-items-rendering)). The default rendering includes an icon, an image, and text.
1537
1504
  */
1538
1505
  item?: null | any;
1539
1506
  /**
@@ -1619,23 +1586,23 @@ export declare interface DropDownButtonProps {
1619
1586
  */
1620
1587
  themeColor?: null | 'base' | 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'dark' | 'light' | 'inverse' | string;
1621
1588
  /**
1622
- * Fires when the component is focused ([see example]({% slug overview_dropdownbutton %}#toc-events)).
1589
+ * Fires when the component is focused ([see example]({% slug events_dropdownbutton %})).
1623
1590
  */
1624
1591
  onFocus?: (event: DropDownButtonFocusEvent) => void;
1625
1592
  /**
1626
- * Fires when the component is blurred ([see example]({% slug overview_dropdownbutton %}#toc-events)).
1593
+ * Fires when the component is blurred ([see example]({% slug events_dropdownbutton %})).
1627
1594
  */
1628
1595
  onBlur?: (event: DropDownButtonBlurEvent) => void;
1629
1596
  /**
1630
- * Fires when an item is clicked ([see example]({% slug overview_dropdownbutton %}#toc-events)).
1597
+ * Fires when an item is clicked ([see example]({% slug events_dropdownbutton %})).
1631
1598
  */
1632
1599
  onItemclick?: (event: DropDownButtonItemClickEvent) => void;
1633
1600
  /**
1634
- * Fires when the popup which contains the items is opened ([see example]({% slug overview_dropdownbutton %}#toc-events)).
1601
+ * Fires when the popup which contains the items is opened ([see example]({% slug events_dropdownbutton %})).
1635
1602
  */
1636
1603
  onOpen?: (event: DropDownButtonOpenEvent) => void;
1637
1604
  /**
1638
- * Fires when the popup which contains the items is closed ([see example]({% slug overview_dropdownbutton %}#toc-events)).
1605
+ * Fires when the popup which contains the items is closed ([see example]({% slug events_dropdownbutton %})).
1639
1606
  */
1640
1607
  onClose?: (event: DropDownButtonCloseEvent) => void;
1641
1608
  }
@@ -1894,6 +1861,7 @@ dataItem: PropType<any>;
1894
1861
  text: PropType<string>;
1895
1862
  tabIndex: PropType<number>;
1896
1863
  customProp: PropType<any>;
1864
+ class: PropType<string>;
1897
1865
  }>, {
1898
1866
  elementRef: Ref<any, any>;
1899
1867
  }, {}, {
@@ -1916,6 +1884,7 @@ dataItem: PropType<any>;
1916
1884
  text: PropType<string>;
1917
1885
  tabIndex: PropType<number>;
1918
1886
  customProp: PropType<any>;
1887
+ class: PropType<string>;
1919
1888
  }>> & Readonly<{
1920
1889
  onClick?: (...args: any[] | unknown[]) => any;
1921
1890
  onDown?: (...args: any[] | unknown[]) => any;
@@ -1993,6 +1962,10 @@ export declare interface FloatingActionButtonItemProps {
1993
1962
  * @hidden
1994
1963
  */
1995
1964
  id?: string;
1965
+ /**
1966
+ * @hidden
1967
+ */
1968
+ class?: string;
1996
1969
  /**
1997
1970
  * @hidden
1998
1971
  */
@@ -2509,7 +2482,11 @@ tabIndex: {
2509
2482
  type: PropType<number>;
2510
2483
  default: number;
2511
2484
  };
2512
- dir: StringConstructor;
2485
+ dir: {
2486
+ type: PropType<string>;
2487
+ validator: (value: any) => any;
2488
+ default: string;
2489
+ };
2513
2490
  keyboardNavigation: {
2514
2491
  type: PropType<boolean>;
2515
2492
  default: boolean;
@@ -2529,7 +2506,41 @@ default: string;
2529
2506
  validator: (value: any) => any;
2530
2507
  };
2531
2508
  ariaLabel: PropType<string>;
2532
- }>, {}, {}, {
2509
+ overflow: {
2510
+ type: PropType<"section" | "scroll" | "none">;
2511
+ default: string;
2512
+ validator: (value: any) => any;
2513
+ };
2514
+ scrollButtons: {
2515
+ type: PropType<"auto" | "hidden" | "visible">;
2516
+ default: string;
2517
+ validator: (value: any) => any;
2518
+ };
2519
+ scrollButtonsPosition: {
2520
+ type: PropType<"split" | "end" | "start">;
2521
+ default: string;
2522
+ validator: (value: any) => any;
2523
+ };
2524
+ buttonScrollSpeed: {
2525
+ type: PropType<number>;
2526
+ default: number;
2527
+ };
2528
+ }>, {}, {
2529
+ defaultSlot: any;
2530
+ offsetWidth: number;
2531
+ offsetHeight: number;
2532
+ currentButtons: HTMLElement[];
2533
+ focusedSelector: string;
2534
+ isScrollStartPosition: boolean;
2535
+ isScrollEndPosition: boolean;
2536
+ focusableButtons: any[];
2537
+ isOverflowing: boolean;
2538
+ scrollContentRef: any;
2539
+ lastToolbarWidthRef: number;
2540
+ overFlowToolsRef: any[];
2541
+ overFlowOpened: boolean;
2542
+ visibleToolsRef: any;
2543
+ }, {
2533
2544
  selectors(): ToolbarComputed['selectors'];
2534
2545
  wrapperClass(): ToolbarComputed['wrapperClass'];
2535
2546
  }, {
@@ -2539,13 +2550,21 @@ focusedIndex(): number;
2539
2550
  setTabIndex(focusedIndex: number): void;
2540
2551
  onKeyDown(event: any): void;
2541
2552
  focusButton(prevIndex: number, index: number): void;
2553
+ initOverflow(toolbarRef: any, totalInnerWidth: any): void;
2554
+ checkOverflow(): void;
2542
2555
  onWindowResize(event: any): void;
2556
+ onContentScroll(buttonClicked: any): void;
2557
+ onToggleoverflow(opened: boolean): void;
2543
2558
  }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2544
2559
  tabIndex: {
2545
2560
  type: PropType<number>;
2546
2561
  default: number;
2547
2562
  };
2548
- dir: StringConstructor;
2563
+ dir: {
2564
+ type: PropType<string>;
2565
+ validator: (value: any) => any;
2566
+ default: string;
2567
+ };
2549
2568
  keyboardNavigation: {
2550
2569
  type: PropType<boolean>;
2551
2570
  default: boolean;
@@ -2565,12 +2584,36 @@ default: string;
2565
2584
  validator: (value: any) => any;
2566
2585
  };
2567
2586
  ariaLabel: PropType<string>;
2587
+ overflow: {
2588
+ type: PropType<"section" | "scroll" | "none">;
2589
+ default: string;
2590
+ validator: (value: any) => any;
2591
+ };
2592
+ scrollButtons: {
2593
+ type: PropType<"auto" | "hidden" | "visible">;
2594
+ default: string;
2595
+ validator: (value: any) => any;
2596
+ };
2597
+ scrollButtonsPosition: {
2598
+ type: PropType<"split" | "end" | "start">;
2599
+ default: string;
2600
+ validator: (value: any) => any;
2601
+ };
2602
+ buttonScrollSpeed: {
2603
+ type: PropType<number>;
2604
+ default: number;
2605
+ };
2568
2606
  }>> & Readonly<{}>, {
2569
2607
  tabIndex: number;
2570
2608
  size: string;
2571
2609
  fillMode: string;
2610
+ dir: string;
2572
2611
  keyboardNavigation: boolean;
2573
2612
  buttons: string[];
2613
+ buttonScrollSpeed: number;
2614
+ scrollButtons: "auto" | "hidden" | "visible";
2615
+ scrollButtonsPosition: "split" | "end" | "start";
2616
+ overflow: "section" | "scroll" | "none";
2574
2617
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2575
2618
 
2576
2619
  /**
@@ -2589,10 +2632,52 @@ export declare const ToolbarItem: DefineComponent< {}, {}, {}, {}, {
2589
2632
  element(): any;
2590
2633
  }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2591
2634
 
2635
+ /**
2636
+ * @hidden
2637
+ */
2638
+ declare interface ToolbarOverflowProps {
2639
+ /**
2640
+ * Represents the possible overflow mode options of the Toolbar.
2641
+ * Applicable when there is not enough space to render all tools.
2642
+ *
2643
+ * @default `section`
2644
+ */
2645
+ overflow?: 'none' | 'section' | 'scroll';
2646
+ /**
2647
+ * Determines the Toolbar scroll buttons visibility.
2648
+ * Applicable when the overflow property is set to `scroll`.
2649
+ *
2650
+ * @default `auto`
2651
+ */
2652
+ scrollButtons?: 'hidden' | 'visible' | 'auto';
2653
+ /**
2654
+ * Determines the Toolbar scroll buttons position.
2655
+ * Applicable when the overflow property is set to `scroll`.
2656
+ *
2657
+ * @default `split`
2658
+ */
2659
+ scrollButtonsPosition?: 'start' | 'end' | 'split';
2660
+ /**
2661
+ * Sets the Toolbar scroll speed in pixels when scrolling via clicking the previous or next button.
2662
+ * Applicable when the overflow property is set to `scroll`.
2663
+ *
2664
+ * @default 100
2665
+ */
2666
+ buttonScrollSpeed?: number;
2667
+ /**
2668
+ * Defines the custom component that will be rendered as a previous button.
2669
+ */
2670
+ prevButton?: any;
2671
+ /**
2672
+ * Defines the custom component that will be rendered as a next button.
2673
+ */
2674
+ nextButton?: any;
2675
+ }
2676
+
2592
2677
  /**
2593
2678
  * Represents the props of the [Kendo UI for Vue Toolbar component]({% slug overview_toolbar %}).
2594
2679
  */
2595
- export declare interface ToolbarProps {
2680
+ export declare interface ToolbarProps extends ToolbarOverflowProps {
2596
2681
  /**
2597
2682
  * Sets additional classes to the Toolbar.
2598
2683
  */
@@ -2679,12 +2764,70 @@ export declare interface ToolbarResizeEvent {
2679
2764
  }
2680
2765
 
2681
2766
  /**
2682
- * @hidden
2767
+ * Represents the [Kendo UI for Vue ToolbarSeparator component]({% slug overview_toolbar %}). A separator element for the sub-elements of the Toolbar.
2768
+ *
2769
+ * ```jsx
2770
+ * <template>
2771
+ * <div>
2772
+ * <Toolbar>
2773
+ * <SplitButton
2774
+ * :class="'k-toolbar-split-button'"
2775
+ * :text="'Insert'"
2776
+ * :items="splitItems"
2777
+ * >
2778
+ * </SplitButton>
2779
+ * <ToolbarSeparator />
2780
+ * <DropDownButton
2781
+ * :text="'Paste'"
2782
+ * :svg-icon="clipboardIcon"
2783
+ * :items="ddItems"
2784
+ * >
2785
+ * </DropDownButton>
2786
+ * </Toolbar>
2787
+ * </div>
2788
+ * </template>
2789
+ * ```
2683
2790
  */
2684
2791
  export declare const ToolbarSeparator: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2685
2792
 
2686
2793
  /**
2687
- * @hidden
2794
+ * Represents the [Kendo UI for Vue ToolbarSpacer component]({% slug overview_toolbar %}). A spacer element for the sub-elements of the Toolbar.
2795
+ *
2796
+ * ```jsx
2797
+ * <template>
2798
+ * <div>
2799
+ * <Toolbar>
2800
+ * <ButtonGroup :class="'k-toolbar-button-group'">
2801
+ * <Button
2802
+ * :class="'k-toolbar-button'"
2803
+ * :svg-icon="boldIcon"
2804
+ * :title="'Bold'"
2805
+ * :togglable="true"
2806
+ * />
2807
+ * <Button
2808
+ * :class="'k-toolbar-button'"
2809
+ * :svg-icon="italicIcon"
2810
+ * :title="'Italic'"
2811
+ * :togglable="true"
2812
+ * />
2813
+ * <Button
2814
+ * :class="'k-toolbar-button'"
2815
+ * :svg-icon="underlineIcon"
2816
+ * :title="'Underline'"
2817
+ * :togglable="true"
2818
+ * />
2819
+ * </ButtonGroup>
2820
+ * <ToolbarSpacer />
2821
+ * <Button :class="'k-toolbar-button'" :svg-icon="cutIcon" :title="'Cut'">
2822
+ * Cut
2823
+ * </Button>
2824
+ * <Button :class="'k-toolbar-button'" :svg-icon="copyIcon" :title="'Copy'">
2825
+ * Copy
2826
+ * </Button>
2827
+ * </Toolbar>
2828
+ * </div>
2829
+ * </template>
2830
+ * ```
2688
2831
  */
2689
2832
  export declare const ToolbarSpacer: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2690
2833