@progress/kendo-vue-buttons 3.5.0 → 3.5.1-dev.202208150613

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 (135) hide show
  1. package/dist/cdn/js/kendo-vue-buttons.js +1 -1
  2. package/dist/es/Button.js +1 -1
  3. package/dist/es/ButtonGroupInterface.js +1 -0
  4. package/dist/es/ButtonInterface.js +1 -0
  5. package/dist/es/Chip/Chip.js +1 -1
  6. package/dist/es/Chip/ChipList.js +1 -1
  7. package/dist/es/Chip/selection-reducer.js +8 -12
  8. package/dist/es/FloatingActionButton/FloatingActionButton.js +8 -8
  9. package/dist/es/FloatingActionButton/FloatingActionButtonItem.js +3 -3
  10. package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonHandle.js +1 -0
  11. package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.js +1 -0
  12. package/dist/es/FloatingActionButton/interfaces/FloatingActionButtonProps.js +1 -0
  13. package/dist/es/FloatingActionButton/models/align-offset.js +1 -0
  14. package/dist/es/FloatingActionButton/models/align.js +1 -0
  15. package/dist/es/FloatingActionButton/models/events.js +1 -0
  16. package/dist/es/FloatingActionButton/models/position-mode.js +1 -0
  17. package/dist/es/FloatingActionButton/models/shape.js +1 -0
  18. package/dist/es/FloatingActionButton/models/size.js +1 -0
  19. package/dist/es/FloatingActionButton/models/theme-color.js +1 -0
  20. package/dist/es/FloatingActionButton/utils.js +2 -2
  21. package/dist/es/ListButton/ButtonItem.js +1 -1
  22. package/dist/es/ListButton/DropDownButton.js +8 -8
  23. package/dist/es/ListButton/SplitButton.js +8 -8
  24. package/dist/es/ListButton/models/ButtonItemInterface.js +1 -0
  25. package/dist/es/ListButton/models/ListButtonProps.js +1 -0
  26. package/dist/es/ListButton/models/PopupSettings.js +1 -0
  27. package/dist/es/ListButton/models/events.js +1 -0
  28. package/dist/es/buttonLook.js +1 -0
  29. package/dist/es/models/index.js +1 -0
  30. package/dist/es/package-metadata.js +1 -1
  31. package/dist/es/util.d.ts +3 -3
  32. package/dist/esm/Button.d.ts +123 -0
  33. package/dist/esm/Button.js +280 -0
  34. package/dist/esm/ButtonGroup.d.ts +49 -0
  35. package/dist/esm/ButtonGroup.js +106 -0
  36. package/dist/esm/ButtonGroupInterface.d.ts +30 -0
  37. package/dist/esm/ButtonGroupInterface.js +2 -0
  38. package/dist/esm/ButtonInterface.d.ts +56 -0
  39. package/dist/esm/ButtonInterface.js +2 -0
  40. package/dist/esm/ButtonWrap.d.ts +19 -0
  41. package/dist/esm/ButtonWrap.js +33 -0
  42. package/dist/esm/Chip/Chip.d.ts +199 -0
  43. package/dist/esm/Chip/Chip.js +339 -0
  44. package/dist/esm/Chip/ChipList.d.ts +174 -0
  45. package/dist/esm/Chip/ChipList.js +263 -0
  46. package/dist/esm/Chip/data-reducer.d.ts +21 -0
  47. package/dist/esm/Chip/data-reducer.js +34 -0
  48. package/dist/esm/Chip/focus-reducer.d.ts +24 -0
  49. package/dist/esm/Chip/focus-reducer.js +38 -0
  50. package/dist/esm/Chip/selection-reducer.d.ts +29 -0
  51. package/dist/esm/Chip/selection-reducer.js +102 -0
  52. package/dist/esm/FloatingActionButton/FloatingActionButton.d.ts +49 -0
  53. package/dist/esm/FloatingActionButton/FloatingActionButton.js +494 -0
  54. package/dist/esm/FloatingActionButton/FloatingActionButtonItem.d.ts +118 -0
  55. package/dist/esm/FloatingActionButton/FloatingActionButtonItem.js +121 -0
  56. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonHandle.d.ts +13 -0
  57. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonHandle.js +1 -0
  58. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.d.ts +24 -0
  59. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonPopupSettings.js +1 -0
  60. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonProps.d.ts +243 -0
  61. package/dist/esm/FloatingActionButton/interfaces/FloatingActionButtonProps.js +1 -0
  62. package/dist/esm/FloatingActionButton/models/align-offset.d.ts +20 -0
  63. package/dist/esm/FloatingActionButton/models/align-offset.js +1 -0
  64. package/dist/esm/FloatingActionButton/models/align.d.ts +27 -0
  65. package/dist/esm/FloatingActionButton/models/align.js +1 -0
  66. package/dist/esm/FloatingActionButton/models/events.d.ts +18 -0
  67. package/dist/esm/FloatingActionButton/models/events.js +2 -0
  68. package/dist/esm/FloatingActionButton/models/position-mode.d.ts +9 -0
  69. package/dist/esm/FloatingActionButton/models/position-mode.js +1 -0
  70. package/dist/esm/FloatingActionButton/models/shape.d.ts +13 -0
  71. package/dist/esm/FloatingActionButton/models/shape.js +1 -0
  72. package/dist/esm/FloatingActionButton/models/size.d.ts +10 -0
  73. package/dist/esm/FloatingActionButton/models/size.js +1 -0
  74. package/dist/esm/FloatingActionButton/models/theme-color.d.ts +17 -0
  75. package/dist/esm/FloatingActionButton/models/theme-color.js +1 -0
  76. package/dist/esm/FloatingActionButton/utils.d.ts +27 -0
  77. package/dist/esm/FloatingActionButton/utils.js +93 -0
  78. package/dist/esm/ListButton/ButtonItem.d.ts +58 -0
  79. package/dist/esm/ListButton/ButtonItem.js +138 -0
  80. package/dist/esm/ListButton/DropDownButton.d.ts +66 -0
  81. package/dist/esm/ListButton/DropDownButton.js +453 -0
  82. package/dist/esm/ListButton/SplitButton.d.ts +67 -0
  83. package/dist/esm/ListButton/SplitButton.js +515 -0
  84. package/dist/esm/ListButton/models/ButtonItemInterface.d.ts +29 -0
  85. package/dist/esm/ListButton/models/ButtonItemInterface.js +2 -0
  86. package/dist/esm/ListButton/models/ListButtonProps.d.ts +328 -0
  87. package/dist/esm/ListButton/models/ListButtonProps.js +2 -0
  88. package/dist/esm/ListButton/models/PopupSettings.d.ts +24 -0
  89. package/dist/esm/ListButton/models/PopupSettings.js +1 -0
  90. package/dist/esm/ListButton/models/events.d.ts +48 -0
  91. package/dist/esm/ListButton/models/events.js +1 -0
  92. package/dist/esm/ListButton/utils/navigation.d.ts +5 -0
  93. package/dist/esm/ListButton/utils/navigation.js +24 -0
  94. package/dist/esm/ListButton/utils/popup.d.ts +9 -0
  95. package/dist/esm/ListButton/utils/popup.js +20 -0
  96. package/dist/esm/additionalTypes.ts +21 -0
  97. package/dist/esm/buttonLook.d.ts +13 -0
  98. package/dist/esm/buttonLook.js +1 -0
  99. package/dist/esm/main.d.ts +30 -0
  100. package/dist/esm/main.js +15 -0
  101. package/dist/esm/models/index.d.ts +87 -0
  102. package/dist/esm/models/index.js +1 -0
  103. package/dist/esm/package-metadata.d.ts +5 -0
  104. package/dist/esm/package-metadata.js +11 -0
  105. package/dist/esm/package.json +3 -0
  106. package/dist/esm/toolbar/Toolbar.d.ts +112 -0
  107. package/dist/esm/toolbar/Toolbar.js +208 -0
  108. package/dist/esm/toolbar/tools/ToolbarItem.d.ts +64 -0
  109. package/dist/esm/toolbar/tools/ToolbarItem.js +58 -0
  110. package/dist/esm/toolbar/tools/ToolbarSeparator.d.ts +36 -0
  111. package/dist/esm/toolbar/tools/ToolbarSeparator.js +56 -0
  112. package/dist/esm/toolbar/tools/ToolbarSpacer.d.ts +36 -0
  113. package/dist/esm/toolbar/tools/ToolbarSpacer.js +53 -0
  114. package/dist/esm/util.d.ts +31 -0
  115. package/dist/esm/util.js +40 -0
  116. package/dist/npm/Button.js +5 -5
  117. package/dist/npm/ButtonGroup.js +4 -4
  118. package/dist/npm/ButtonWrap.js +1 -1
  119. package/dist/npm/Chip/Chip.js +10 -10
  120. package/dist/npm/Chip/ChipList.js +8 -8
  121. package/dist/npm/Chip/data-reducer.js +4 -2
  122. package/dist/npm/Chip/focus-reducer.js +4 -2
  123. package/dist/npm/Chip/selection-reducer.js +12 -14
  124. package/dist/npm/FloatingActionButton/FloatingActionButton.js +31 -31
  125. package/dist/npm/FloatingActionButton/FloatingActionButtonItem.js +8 -8
  126. package/dist/npm/FloatingActionButton/utils.js +14 -9
  127. package/dist/npm/ListButton/ButtonItem.js +1 -1
  128. package/dist/npm/ListButton/DropDownButton.js +19 -19
  129. package/dist/npm/ListButton/SplitButton.js +19 -19
  130. package/dist/npm/main.js +6 -2
  131. package/dist/npm/package-metadata.js +1 -1
  132. package/dist/npm/toolbar/Toolbar.js +2 -2
  133. package/dist/npm/toolbar/tools/ToolbarItem.js +1 -1
  134. package/dist/npm/util.d.ts +3 -3
  135. package/package.json +11 -5
@@ -0,0 +1,121 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ var ref = allVue.ref;
7
+ import { classNames, getRef, getTabIndex, getTemplate, setRef } from '@progress/kendo-vue-common';
8
+ /**
9
+ * @hidden
10
+ */
11
+
12
+ var FloatingActionButtonItemVue2 = {
13
+ name: 'KendoVueFloatingActionButtonItem',
14
+ props: {
15
+ disabled: Boolean,
16
+ focused: Boolean,
17
+ index: Number,
18
+ icon: String,
19
+ item: [String, Function, Object],
20
+ dataItem: Object,
21
+ text: String,
22
+ tabIndex: Number,
23
+ customProp: [String, Function, Object]
24
+ },
25
+ // @ts-ignore
26
+ emits: {
27
+ 'click': null,
28
+ 'down': null
29
+ },
30
+ mounted: function mounted() {
31
+ this.element = getRef(this, 'element');
32
+ },
33
+ computed: {
34
+ itemClassNames: function itemClassNames() {
35
+ return classNames('k-fab-item', {
36
+ 'k-focus': this.focused,
37
+ 'k-disabled': this.disabled
38
+ });
39
+ }
40
+ },
41
+ methods: {
42
+ handleClick: function handleClick(event) {
43
+ if (this.$props.index !== undefined && !this.$props.disabled) {
44
+ this.$emit('click', event, this.$props.index);
45
+ }
46
+ },
47
+ focusElement: function focusElement() {
48
+ if (this.$el) {
49
+ this.$el.focus();
50
+ }
51
+ },
52
+ onDown: function onDown(event) {
53
+ this.$emit('down', event);
54
+ }
55
+ },
56
+ // @ts-ignore
57
+ setup: !isV3 ? undefined : function () {
58
+ var v3 = !!isV3;
59
+ var elementRef = ref(null);
60
+ return {
61
+ v3: v3,
62
+ elementRef: elementRef
63
+ };
64
+ },
65
+ render: function render(createElement) {
66
+ var h = gh || createElement;
67
+ var _a = this.$props,
68
+ disabled = _a.disabled,
69
+ id = _a.id,
70
+ tabIndex = _a.tabIndex,
71
+ dataItem = _a.dataItem,
72
+ customProp = _a.customProp;
73
+ var text = dataItem.text,
74
+ icon = dataItem.icon;
75
+ var item;
76
+ var itemDefaultRendering = h("li", {
77
+ ref: setRef(this, 'element'),
78
+ id: id,
79
+ attrs: this.v3 ? undefined : {
80
+ id: id,
81
+ role: 'menuitem',
82
+ tabindex: getTabIndex(tabIndex, disabled),
83
+ "aria-disabled": disabled,
84
+ "aria-label": "".concat(text || '', " floatingactionbutton item")
85
+ },
86
+ "class": this.itemClassNames,
87
+ role: 'menuitem',
88
+ tabindex: getTabIndex(tabIndex, disabled),
89
+ "aria-disabled": disabled,
90
+ "aria-label": "".concat(text || '', " floatingactionbutton item"),
91
+ onClick: this.handleClick,
92
+ on: this.v3 ? undefined : {
93
+ "click": this.handleClick,
94
+ "mousedown": this.onDown,
95
+ "pointerdown": this.onDown
96
+ },
97
+ onMousedown: this.onDown,
98
+ onPointerdown: this.onDown
99
+ }, [text && h("span", {
100
+ "class": "k-fab-item-text"
101
+ }, [text]), icon && h("span", {
102
+ "class": classNames("k-fab-item-icon k-icon k-i-".concat(icon))
103
+ })]);
104
+ item = getTemplate.call(this, {
105
+ h: h,
106
+ template: this.$props.item,
107
+ defaultRendering: itemDefaultRendering,
108
+ additionalProps: this.$props,
109
+ additionalListeners: {
110
+ click: this.handleClick
111
+ }
112
+ });
113
+ return item;
114
+ }
115
+ };
116
+ /**
117
+ * @hidden
118
+ */
119
+
120
+ var FloatingActionButtonItem = FloatingActionButtonItemVue2;
121
+ export { FloatingActionButtonItem, FloatingActionButtonItemVue2 };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The FloatingActionButton ref.
3
+ */
4
+ export interface FloatingActionButtonHandle {
5
+ /**
6
+ * The FloatingActionButton element.
7
+ */
8
+ element: HTMLButtonElement | null;
9
+ /**
10
+ * Focus the FloatingActionButton.
11
+ */
12
+ focus: () => void;
13
+ }
@@ -0,0 +1,24 @@
1
+ import { Align, PopupAnimation } from '@progress/kendo-vue-popup';
2
+ /**
3
+ * Represents the settings that can be passed to the Popup inside the FloatingActionButtonPopupSettings.
4
+ */
5
+ export interface FloatingActionButtonPopupSettings {
6
+ /**
7
+ * Controls the popup animation. By default, the open and close animations are enabled
8
+ * [see example]({% slug customization_floatingactionbutton %}#toc-popup-behavior).
9
+ */
10
+ animate?: boolean | PopupAnimation;
11
+ /**
12
+ * Specifies a list of CSS classes that are used for styling the popup
13
+ * [see example]({% slug customization_floatingactionbutton %}#toc-popup-behavior).
14
+ */
15
+ popupClass?: string;
16
+ /**
17
+ * @hidden
18
+ */
19
+ anchorAlign?: Align;
20
+ /**
21
+ * @hidden
22
+ */
23
+ popupAlign?: Align;
24
+ }
@@ -0,0 +1,243 @@
1
+ import { FloatingActionButtonPopupSettings } from './FloatingActionButtonPopupSettings';
2
+ import { FloatingActionButtonAlign } from '../models/align';
3
+ import { FloatingActionButtonAlignOffset } from '../models/align-offset';
4
+ import { FloatingActionButtonEvent, FloatingActionButtonItemEvent } from '../models/events';
5
+ import { FloatingActionButtonPositionMode } from '../models/position-mode';
6
+ import { FloatingActionButtonSize } from '../models/size';
7
+ import { FloatingActionButtonThemeColor } from '../models/theme-color';
8
+ /**
9
+ * @hidden
10
+ */
11
+ declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
12
+ /**
13
+ * Represents the props of the [Kendo UI for Vue
14
+ * FloatingActionButton component]({% slug overview_floatingactionbutton %}).
15
+ */
16
+ export interface FloatingActionButtonProps extends Omit<any, 'onBlur' | 'onFocus' | 'onKeyDown' | 'onClick'> {
17
+ /**
18
+ * Specifies a list of CSS classes that will be added to the Floating Action Button.
19
+ */
20
+ className?: string;
21
+ /**
22
+ * Represents the `dir` HTML attribute. This is used to
23
+ * switch from LTR to RTL [see example]({% slug rtl_buttons %}).
24
+ */
25
+ dir?: string;
26
+ /**
27
+ * Sets the `id` property of the root HTML element.
28
+ */
29
+ id?: string;
30
+ /**
31
+ * Specifies if the Floating Action Button is
32
+ * disabled [see example]({% slug disabled_floatingactionbutton %}). Defaults to `false`.
33
+ */
34
+ disabled?: boolean;
35
+ /**
36
+ * If defined it specifies if the Floating Action Button is opened.
37
+ */
38
+ opened?: boolean;
39
+ /**
40
+ * Defines the icon rendered in the Floating Action
41
+ * Button [see example]({% slug contenttypes_floatingactionbutton %}).
42
+ */
43
+ icon?: string;
44
+ /**
45
+ * Defines a CSS class or multiple classes separated by spaces which are applied
46
+ * to a `span` element inside the Floating Action Button. Allows the usage of custom icons.
47
+ */
48
+ iconClass?: string;
49
+ /**
50
+ * Specifies the text of the Floating Action
51
+ * Button [see example]({% slug contenttypes_floatingactionbutton %}).
52
+ */
53
+ text?: string;
54
+ /**
55
+ * Specifies the horizontal and vertical offset applied to the Floating Action Button
56
+ * [see example]({% slug positioning_floatingactionbutton %}).
57
+ *
58
+ * Normally, the floating button is positioned next to the boundaries of its container
59
+ * with a default offset of `16px`.
60
+ *
61
+ * Positive offsets move floating buttons, which are in a corner, further from that corner. Buttons, which are
62
+ * not in a corner, can be moved along the container's boundary or towards the center of the container.
63
+ *
64
+ * A negative offset can be used to force a button to overflow the boundaries of its container.
65
+ *
66
+ * The possible keys are:
67
+ * * `x`&mdash;Sets the horizontal offset of the Floating Action Button.
68
+ * * `y`&mdash;Sets the vertical offset of the Floating Action Button.
69
+ *
70
+ */
71
+ alignOffset?: FloatingActionButtonAlignOffset;
72
+ /**
73
+ * Specifies the horizontal and vertical alignment of the Floating Action Button in relation to the container
74
+ * [see example]({% slug positioning_floatingactionbutton %}).
75
+ *
76
+ * > Centering the Floating Action Button in both horizontal and vertical dimension is not a typical use case.
77
+ * Still, it is possible to achieve such a layout with appropriate offsets.
78
+ * Setting horizontal: "center" and vertical: "middle"
79
+ * at the same time is not supported.
80
+ *
81
+ * The possible keys are:
82
+ * * `horizontal`&mdash; Defines the possible horizontal alignment of the Floating Action Button..
83
+ * * `start`&mdash;Uses the start point of the container.
84
+ * * `center`&mdash;Uses the center point of the container.
85
+ * * `end`(Default)&mdash;Uses the end point of the container
86
+ * * `vertical`&mdash; Defines the possible vertical alignment of the Floating Action Button..
87
+ * * `top`&mdash;Uses the top point of the container.
88
+ * * `middle`&mdash;Uses the middle point of the container.
89
+ * * `bottom`(Default)&mdash;Uses the bottom point of the container.
90
+ *
91
+ */
92
+ align?: FloatingActionButtonAlign;
93
+ /**
94
+ * Specifies the position mode of the Floating Action Button
95
+ * [see example]({% slug positioning_floatingactionbutton %}). It is based on the
96
+ * [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position) rule.
97
+ *
98
+ * * The possible values are:
99
+ * * 'fixed' (Default)
100
+ * * 'absolute'
101
+ */
102
+ positionMode?: FloatingActionButtonPositionMode;
103
+ /**
104
+ * Specifies the shape of the Floating Action Button
105
+ * [see example]({% slug appearance_floatingactionbutton %}).
106
+ *
107
+ * The possible values are:
108
+ * * `pill`(Default)&mdash;Applies border radius equal to half of the height of the FloatingActionButton.
109
+ * If the Floating Action Button contains only icon, the shape will be circle.
110
+ * * `circle`&mdash;Applies circle shape on the FloatingActionButton.
111
+ * * `rectangle`&mdash;Applies no border radius on the FloatingActionButton.
112
+ * * `rounded`&mdash;Applies default border radius on the FloatingActionButton.
113
+ * * `square`&mdash;Applies square shape on the FloatingActionButton.
114
+ *
115
+ */
116
+ shape?: null | 'rectangle' | 'square' | string;
117
+ /**
118
+ * Configures the `roundness` of the Floating Action Button.
119
+ *
120
+ * The available options are:
121
+ * - small
122
+ * - medium
123
+ * - large
124
+ * - circle
125
+ * - full
126
+ * - null&mdash;Does not set a rounded `class`.
127
+ *
128
+ * @default `medium`
129
+ */
130
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
131
+ /**
132
+ * Configures the `fillMode` of the Floating Action Button.
133
+ *
134
+ * The available options are:
135
+ * - solid
136
+ * - outline
137
+ * - flat
138
+ * - link
139
+ * - null&mdash;Does not set a fillMode `class`.
140
+ *
141
+ * @default `solid`
142
+ */
143
+ fillMode?: null | 'solid' | 'outline' | 'flat' | 'link' | string;
144
+ /**
145
+ * Specifies the size of the Floating Action Button
146
+ * [see example]({% slug appearance_floatingactionbutton %}).
147
+ *
148
+ * The possible values are:
149
+ * * `small`&mdash;Applies half of the default padding, e.g. `8px`.
150
+ * * `medium` (Default)&mdash;Applies the default padding, e.g. `16px`.
151
+ * * `large`&mdash;Applies one and one half of the default padding, e.g. `24px`.
152
+ *
153
+ */
154
+ size?: FloatingActionButtonSize;
155
+ /**
156
+ * Specifies the theme color of the Floating Action Button
157
+ * [see example]({% slug appearance_floatingactionbutton %}).
158
+ *
159
+ * The possible values are:
160
+ * * `primary` (Default)&mdash;Applies coloring based on the primary theme color.
161
+ * * `secondary`&mdash;Applies coloring based on the secondary theme color.
162
+ * * `tertiary`&mdash; Applies coloring based on the tertiary theme color.
163
+ * * `info`&mdash;Applies coloring based on the info theme color.
164
+ * * `success`&mdash; Applies coloring based on the success theme color.
165
+ * * `warning`&mdash; Applies coloring based on the warning theme color.
166
+ * * `error`&mdash; Applies coloring based on the error theme color.
167
+ * * `dark`&mdash; Applies coloring based on the dark theme color.
168
+ * * `light`&mdash; Applies coloring based on the light theme color.
169
+ * * `inverse`&mdash; Applies coloring based on the inverse theme color.
170
+ *
171
+ */
172
+ themeColor?: FloatingActionButtonThemeColor;
173
+ /**
174
+ * The collection of items that will be rendered in the Floating Action Button
175
+ * [see example]({% slug databinding_floatingactionbutton %}).
176
+ */
177
+ items?: any;
178
+ /**
179
+ * Overrides the default component responsible for visualizing a single item
180
+ * [see example]({% slug customization_floatingactionbutton %}#toc-items-rendering).
181
+ *
182
+ * The default Component is: [FloatingActionButtonItem]({% slug api_buttons_floatingactionbuttonitem %}).
183
+ */
184
+ item?: any;
185
+ /**
186
+ * Represents the additional props that will be passed to the Popup inside the Floating Action Button
187
+ * [see example]({% slug customization_floatingactionbutton %}#toc-popup-behavior).
188
+ */
189
+ popupSettings?: FloatingActionButtonPopupSettings;
190
+ /**
191
+ * Specifies the `tabIndex` of the main button.
192
+ */
193
+ tabIndex?: number;
194
+ /**
195
+ * Specifies the `accessKey` of the main button.
196
+ */
197
+ accessKey?: string;
198
+ /**
199
+ * Fires when the Floating Action Button is focused
200
+ * [see example]({% slug overview_floatingactionbutton %}#toc-events).
201
+ */
202
+ onFocus?: (event: FloatingActionButtonEvent) => void;
203
+ /**
204
+ * Fires when the Floating Action Button is blurred
205
+ * [see example]({% slug overview_floatingactionbutton %}#toc-events).
206
+ */
207
+ onBlur?: (event: FloatingActionButtonEvent) => void;
208
+ /**
209
+ * Fires when the Floating Action Button is clicked.
210
+ */
211
+ onClick?: (event: FloatingActionButtonEvent) => void;
212
+ /**
213
+ * Fires when the Floating Action Button Item is clicked
214
+ * [see example]({% slug overview_floatingactionbutton %}#toc-events).
215
+ */
216
+ onItemclick?: (event: FloatingActionButtonItemEvent) => void;
217
+ /**
218
+ * Triggers onKeyDown event
219
+ * [see example]({% slug overview_floatingactionbutton %}#toc-events).
220
+ */
221
+ onKeydown?: (event: FloatingActionButtonEvent) => void;
222
+ /**
223
+ * Triggers onMousedown event
224
+ * [see example]({% slug overview_floatingactionbutton %}#toc-events).
225
+ */
226
+ onMousedown?: (event: FloatingActionButtonEvent) => void;
227
+ /**
228
+ * Triggers onMouseup event
229
+ * [see example]({% slug overview_floatingactionbutton %}#toc-events).
230
+ */
231
+ onMouseup?: (event: FloatingActionButtonEvent) => void;
232
+ /**
233
+ * Fires when the popup which contains the items is opened
234
+ * [see example]({% slug overview_floatingactionbutton %}#toc-events).
235
+ */
236
+ onOpen?: (event: FloatingActionButtonEvent) => void;
237
+ /**
238
+ * Fires when the popup which contains the items is closed
239
+ * [see example]({% slug overview_floatingactionbutton %}#toc-events).
240
+ */
241
+ onClose?: (event: FloatingActionButtonEvent) => void;
242
+ }
243
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Specifies the horizontal and vertical offset applied to the Floating Action Button.
3
+ *
4
+ * Normally, the floating button is positioned next to the boundaries of its container with a default offset of `16px`.
5
+ *
6
+ * Positive offsets move floating buttons, which are in a corner, further from that corner. Buttons, which are
7
+ * not in a corner, can be moved along the container's boundary or towards the center of the container.
8
+ *
9
+ * A negative offset can be used to force a button to overflow the boundaries of its container.
10
+ */
11
+ export interface FloatingActionButtonAlignOffset {
12
+ /**
13
+ * Sets the horizontal offset of the Floating Action Button.
14
+ */
15
+ x?: number | string;
16
+ /**
17
+ * Sets the vertical offset of the Floating Action Button.
18
+ */
19
+ y?: number | string;
20
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Specifies the horizontal and vertical alignment of the Floating Action Button in relation to the container.
3
+ *
4
+ * > Centering the Floating Action Button in both horizontal and vertical dimension is not a typical use case.
5
+ * Still, it is possible to achieve such a layout with appropriate offsets. Setting horizontal: "center" and
6
+ * vertical: "middle" at the same time is not supported.
7
+ */
8
+ export interface FloatingActionButtonAlign {
9
+ /**
10
+ * Defines the possible horizontal alignment of the Floating Action Button.
11
+ *
12
+ * The available values are:
13
+ * - `start`&mdash;Uses the start point of the container.
14
+ * - `center`&mdash;Uses the center point of the container.
15
+ * - `end`(Default)&mdash;Uses the end point of the container.
16
+ */
17
+ horizontal?: 'start' | 'center' | 'end';
18
+ /**
19
+ * Defines the possible vertical alignment of the Floating Action Button.
20
+ *
21
+ * The available values are:
22
+ * - `top`&mdash;Uses the top point of the container.
23
+ * - `middle`&mdash;Uses the middle point of the container.
24
+ * - `bottom`(Default)&mdash;Uses the bottom point of the container.
25
+ */
26
+ vertical?: 'top' | 'middle' | 'bottom';
27
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Represents the return type of the FloatingActionButton events.
3
+ */
4
+ export interface FloatingActionButtonEvent {
5
+ }
6
+ /**
7
+ * Represents the return type of the FloatingActionButtonItemEvent.
8
+ */
9
+ export interface FloatingActionButtonItemEvent {
10
+ /**
11
+ * The clicked item props.
12
+ */
13
+ itemProps?: any;
14
+ /**
15
+ * The zero-based index of the clicked item.
16
+ */
17
+ itemIndex: number;
18
+ }
@@ -0,0 +1,2 @@
1
+ // import { FloatingActionButtonItemProps } from '../../main.js';
2
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Specifies the position mode of the Floating Action Button. It is based on the
3
+ * [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position) rule.
4
+ *
5
+ * * The possible values are:
6
+ * * 'absolute' (Default)
7
+ * * 'fixed'
8
+ */
9
+ export declare type FloatingActionButtonPositionMode = 'absolute' | 'fixed';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Specifies the shape of the Floating Action Button.
3
+ *
4
+ * The possible values are:
5
+ * * `full`(Default)&mdash;Applies border radius equal to half of the height of the FloatingActionButton.
6
+ * If the Floating Action Button contains only icon, the shape will be circle.
7
+ * * `circle`&mdash;Applies circle shape on the FloatingActionButton.
8
+ * * `rectangle`&mdash;Applies no border radius on the FloatingActionButton.
9
+ * * `rounded`&mdash;Applies default border radius on the FloatingActionButton.
10
+ * * `square`&mdash;Applies square shape on the FloatingActionButton.
11
+ *
12
+ */
13
+ export declare type FloatingActionButtonShape = 'rectangle' | 'rounded' | 'pill' | 'circle' | 'square';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Specifies the size of the Floating Action Button.
3
+ *
4
+ * The possible values are:
5
+ * * `small`&mdash;Applies half of the default padding, e.g. `8px`.
6
+ * * `medium` (Default)&mdash;Applies the default padding, e.g. `16px`.
7
+ * * `large`&mdash;Applies one and one half of the default padding, e.g. `24px`.
8
+ *
9
+ */
10
+ export declare type FloatingActionButtonSize = 'small' | 'medium' | 'large';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Specifies the theme color of the Floating Action Button..
3
+ *
4
+ * The possible values are:
5
+ * * `primary` (Default)&mdash;Applies coloring based on the primary theme color.
6
+ * * `secondary`&mdash;Applies coloring based on the secondary theme color.
7
+ * * `tertiary`&mdash; Applies coloring based on the tertiary theme color.
8
+ * * `info`&mdash;Applies coloring based on the info theme color.
9
+ * * `success`&mdash; Applies coloring based on the success theme color.
10
+ * * `warning`&mdash; Applies coloring based on the warning theme color.
11
+ * * `error`&mdash; Applies coloring based on the error theme color.
12
+ * * `dark`&mdash; Applies coloring based on the dark theme color.
13
+ * * `light`&mdash; Applies coloring based on the light theme color.
14
+ * * `inverse`&mdash; Applies coloring based on the inverse theme color.
15
+ *
16
+ */
17
+ export declare type FloatingActionButtonThemeColor = 'primary' | 'secondary' | 'tertiary' | 'info' | 'success' | 'warning' | 'error' | 'dark' | 'light' | 'inverse';
@@ -0,0 +1,27 @@
1
+ import { Align } from '@progress/kendo-vue-popup';
2
+ import { FloatingActionButtonAlignOffset } from './models/align-offset';
3
+ import { FloatingActionButtonAlign } from './models/align';
4
+ /**
5
+ * @hidden
6
+ */
7
+ export declare const DEFAULT_OFFSET = "16px";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare const toStringValues: (val: number | string) => string;
12
+ /**
13
+ * @hidden
14
+ */
15
+ export declare const getAnchorAlign: (fabAlign: FloatingActionButtonAlign, rtl?: boolean) => Align;
16
+ /**
17
+ * @hidden
18
+ */
19
+ export declare const getPopupAlign: (fabAlign: FloatingActionButtonAlign, rtl: boolean) => Align;
20
+ /**
21
+ * @hidden
22
+ */
23
+ export declare const getTextDirectionClass: (rtl: string, hAlign: any) => any;
24
+ /**
25
+ * @hidden
26
+ */
27
+ export declare const position: (ref: any, align: FloatingActionButtonAlign, alignOffset: FloatingActionButtonAlignOffset | undefined, isRtl: boolean) => void;