@kong/kongponents 9.22.2 → 9.22.3-pr.2634.ee86da0e8.0
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/dist/kongponents.css +1 -1
- package/dist/kongponents.es.js +3288 -3278
- package/dist/kongponents.umd.js +14 -14
- package/dist/types/components/KBadge/KBadge.vue.d.ts +15 -0
- package/dist/types/components/KDropdown/KDropdown.vue.d.ts +56 -44
- package/dist/types/components/KMultiselect/KMultiselect.vue.d.ts +6 -10
- package/dist/types/components/KPagination/KPagination.vue.d.ts +1 -1
- package/dist/types/components/KPop/KPop.vue.d.ts +20 -0
- package/dist/types/components/KSelect/KSelect.vue.d.ts +13 -20
- package/dist/types/components/KTooltip/KTooltip.vue.d.ts +21 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/{pop.d.ts → popover.d.ts} +5 -0
- package/package.json +29 -30
|
@@ -230,6 +230,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
230
230
|
type: NumberConstructor;
|
|
231
231
|
default: number;
|
|
232
232
|
};
|
|
233
|
+
kpopAttributes: {
|
|
234
|
+
type: PropType<import("../../../types").PopoverAttributes>;
|
|
235
|
+
default: () => void;
|
|
236
|
+
};
|
|
233
237
|
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
234
238
|
label: string;
|
|
235
239
|
text: string;
|
|
@@ -237,6 +241,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
237
241
|
maxWidth: string;
|
|
238
242
|
zIndex: number;
|
|
239
243
|
tooltipId: string;
|
|
244
|
+
kpopAttributes: import("../../../types").PopoverAttributes;
|
|
240
245
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
241
246
|
P: {};
|
|
242
247
|
B: {};
|
|
@@ -271,6 +276,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
271
276
|
type: NumberConstructor;
|
|
272
277
|
default: number;
|
|
273
278
|
};
|
|
279
|
+
kpopAttributes: {
|
|
280
|
+
type: PropType<import("../../../types").PopoverAttributes>;
|
|
281
|
+
default: () => void;
|
|
282
|
+
};
|
|
274
283
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
275
284
|
label: string;
|
|
276
285
|
text: string;
|
|
@@ -278,6 +287,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
278
287
|
maxWidth: string;
|
|
279
288
|
zIndex: number;
|
|
280
289
|
tooltipId: string;
|
|
290
|
+
kpopAttributes: import("../../../types").PopoverAttributes;
|
|
281
291
|
}>;
|
|
282
292
|
__isFragment?: never;
|
|
283
293
|
__isTeleport?: never;
|
|
@@ -309,6 +319,10 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
309
319
|
type: NumberConstructor;
|
|
310
320
|
default: number;
|
|
311
321
|
};
|
|
322
|
+
kpopAttributes: {
|
|
323
|
+
type: PropType<import("../../../types").PopoverAttributes>;
|
|
324
|
+
default: () => void;
|
|
325
|
+
};
|
|
312
326
|
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
313
327
|
label: string;
|
|
314
328
|
text: string;
|
|
@@ -316,6 +330,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
316
330
|
maxWidth: string;
|
|
317
331
|
zIndex: number;
|
|
318
332
|
tooltipId: string;
|
|
333
|
+
kpopAttributes: import("../../../types").PopoverAttributes;
|
|
319
334
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
320
335
|
$slots: {
|
|
321
336
|
default?: (((props: {}) => any) & ((props: {}) => any)) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType, Ref } from 'vue';
|
|
2
|
-
import type { ButtonAppearance, DropdownItem, PopPlacements } from '../../../types';
|
|
2
|
+
import type { ButtonAppearance, DropdownItem, PopPlacements, PopoverAttributes } from '../../../types';
|
|
3
3
|
import KButton from '../../components/KButton/KButton.vue';
|
|
4
4
|
import KPop from '../../components/KPop/KPop.vue';
|
|
5
5
|
import KToggle from '../../components/KToggle';
|
|
@@ -33,6 +33,10 @@ declare const tooltipComponent: import("vue").ComputedRef<"div" | ({
|
|
|
33
33
|
type: NumberConstructor;
|
|
34
34
|
default: number;
|
|
35
35
|
};
|
|
36
|
+
kpopAttributes: {
|
|
37
|
+
type: PropType<PopoverAttributes>;
|
|
38
|
+
default: () => void;
|
|
39
|
+
};
|
|
36
40
|
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
37
41
|
label: string;
|
|
38
42
|
text: string;
|
|
@@ -40,6 +44,7 @@ declare const tooltipComponent: import("vue").ComputedRef<"div" | ({
|
|
|
40
44
|
maxWidth: string;
|
|
41
45
|
zIndex: number;
|
|
42
46
|
tooltipId: string;
|
|
47
|
+
kpopAttributes: PopoverAttributes;
|
|
43
48
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
44
49
|
P: {};
|
|
45
50
|
B: {};
|
|
@@ -74,6 +79,10 @@ declare const tooltipComponent: import("vue").ComputedRef<"div" | ({
|
|
|
74
79
|
type: NumberConstructor;
|
|
75
80
|
default: number;
|
|
76
81
|
};
|
|
82
|
+
kpopAttributes: {
|
|
83
|
+
type: PropType<PopoverAttributes>;
|
|
84
|
+
default: () => void;
|
|
85
|
+
};
|
|
77
86
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
78
87
|
label: string;
|
|
79
88
|
text: string;
|
|
@@ -81,6 +90,7 @@ declare const tooltipComponent: import("vue").ComputedRef<"div" | ({
|
|
|
81
90
|
maxWidth: string;
|
|
82
91
|
zIndex: number;
|
|
83
92
|
tooltipId: string;
|
|
93
|
+
kpopAttributes: PopoverAttributes;
|
|
84
94
|
}>;
|
|
85
95
|
__isFragment?: never;
|
|
86
96
|
__isTeleport?: never;
|
|
@@ -112,6 +122,10 @@ declare const tooltipComponent: import("vue").ComputedRef<"div" | ({
|
|
|
112
122
|
type: NumberConstructor;
|
|
113
123
|
default: number;
|
|
114
124
|
};
|
|
125
|
+
kpopAttributes: {
|
|
126
|
+
type: PropType<PopoverAttributes>;
|
|
127
|
+
default: () => void;
|
|
128
|
+
};
|
|
115
129
|
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
116
130
|
label: string;
|
|
117
131
|
text: string;
|
|
@@ -119,6 +133,7 @@ declare const tooltipComponent: import("vue").ComputedRef<"div" | ({
|
|
|
119
133
|
maxWidth: string;
|
|
120
134
|
zIndex: number;
|
|
121
135
|
tooltipId: string;
|
|
136
|
+
kpopAttributes: PopoverAttributes;
|
|
122
137
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
123
138
|
$slots: {
|
|
124
139
|
default?: (((props: {}) => any) & ((props: {}) => any)) | undefined;
|
|
@@ -146,6 +161,7 @@ declare const kPop: Ref<({
|
|
|
146
161
|
popoverClasses: string;
|
|
147
162
|
tag: string;
|
|
148
163
|
zIndex: number;
|
|
164
|
+
offset: string;
|
|
149
165
|
}> & Omit<{
|
|
150
166
|
readonly title: string;
|
|
151
167
|
readonly disabled: boolean;
|
|
@@ -162,10 +178,11 @@ declare const kPop: Ref<({
|
|
|
162
178
|
readonly popoverClasses: string;
|
|
163
179
|
readonly tag: string;
|
|
164
180
|
readonly zIndex: number;
|
|
181
|
+
readonly offset: string;
|
|
165
182
|
readonly onOpen?: ((...args: any[]) => any) | undefined;
|
|
166
183
|
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
167
184
|
readonly "onPopover-click"?: ((...args: any[]) => any) | undefined;
|
|
168
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "disabled" | "buttonText" | "placement" | "trigger" | "popoverTimeout" | "hideCloseIcon" | "hideCaret" | "closeOnPopoverClick" | "width" | "maxWidth" | "maxHeight" | "popoverClasses" | "tag" | "zIndex">;
|
|
185
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "disabled" | "buttonText" | "placement" | "trigger" | "popoverTimeout" | "hideCloseIcon" | "hideCaret" | "closeOnPopoverClick" | "width" | "maxWidth" | "maxHeight" | "popoverClasses" | "tag" | "zIndex" | "offset">;
|
|
169
186
|
$attrs: {
|
|
170
187
|
[x: string]: unknown;
|
|
171
188
|
};
|
|
@@ -243,6 +260,10 @@ declare const kPop: Ref<({
|
|
|
243
260
|
type: NumberConstructor;
|
|
244
261
|
default: number;
|
|
245
262
|
};
|
|
263
|
+
offset: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
default: "16px";
|
|
266
|
+
};
|
|
246
267
|
}>> & Readonly<{
|
|
247
268
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
248
269
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -270,6 +291,7 @@ declare const kPop: Ref<({
|
|
|
270
291
|
popoverClasses: string;
|
|
271
292
|
tag: string;
|
|
272
293
|
zIndex: number;
|
|
294
|
+
offset: string;
|
|
273
295
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
274
296
|
beforeCreate?: (() => void) | (() => void)[];
|
|
275
297
|
created?: (() => void) | (() => void)[];
|
|
@@ -306,6 +328,7 @@ declare const kPop: Ref<({
|
|
|
306
328
|
popoverClasses: string;
|
|
307
329
|
tag: string;
|
|
308
330
|
zIndex: number;
|
|
331
|
+
offset: string;
|
|
309
332
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
310
333
|
buttonText: {
|
|
311
334
|
type: StringConstructor;
|
|
@@ -369,11 +392,15 @@ declare const kPop: Ref<({
|
|
|
369
392
|
type: NumberConstructor;
|
|
370
393
|
default: number;
|
|
371
394
|
};
|
|
395
|
+
offset: {
|
|
396
|
+
type: StringConstructor;
|
|
397
|
+
default: "16px";
|
|
398
|
+
};
|
|
372
399
|
}>> & Readonly<{
|
|
373
400
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
374
401
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
375
402
|
"onPopover-click"?: ((...args: any[]) => any) | undefined;
|
|
376
|
-
}>, "hidePopover" | "showPopover" | ("title" | "disabled" | "buttonText" | "placement" | "trigger" | "popoverTimeout" | "hideCloseIcon" | "hideCaret" | "closeOnPopoverClick" | "width" | "maxWidth" | "maxHeight" | "popoverClasses" | "tag" | "zIndex")> & import("vue").ShallowUnwrapRef<{
|
|
403
|
+
}>, "hidePopover" | "showPopover" | ("title" | "disabled" | "buttonText" | "placement" | "trigger" | "popoverTimeout" | "hideCloseIcon" | "hideCaret" | "closeOnPopoverClick" | "width" | "maxWidth" | "maxHeight" | "popoverClasses" | "tag" | "zIndex" | "offset")> & import("vue").ShallowUnwrapRef<{
|
|
377
404
|
hidePopover: () => void;
|
|
378
405
|
showPopover: () => Promise<void>;
|
|
379
406
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
@@ -402,6 +429,7 @@ declare const kPop: Ref<({
|
|
|
402
429
|
popoverClasses: string;
|
|
403
430
|
tag: string;
|
|
404
431
|
zIndex: number;
|
|
432
|
+
offset: string;
|
|
405
433
|
}> & Omit<{
|
|
406
434
|
readonly title: string;
|
|
407
435
|
readonly disabled: boolean;
|
|
@@ -418,10 +446,11 @@ declare const kPop: Ref<({
|
|
|
418
446
|
readonly popoverClasses: string;
|
|
419
447
|
readonly tag: string;
|
|
420
448
|
readonly zIndex: number;
|
|
449
|
+
readonly offset: string;
|
|
421
450
|
readonly onOpen?: ((...args: any[]) => any) | undefined;
|
|
422
451
|
readonly onClose?: ((...args: any[]) => any) | undefined;
|
|
423
452
|
readonly "onPopover-click"?: ((...args: any[]) => any) | undefined;
|
|
424
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "disabled" | "buttonText" | "placement" | "trigger" | "popoverTimeout" | "hideCloseIcon" | "hideCaret" | "closeOnPopoverClick" | "width" | "maxWidth" | "maxHeight" | "popoverClasses" | "tag" | "zIndex">;
|
|
453
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "disabled" | "buttonText" | "placement" | "trigger" | "popoverTimeout" | "hideCloseIcon" | "hideCaret" | "closeOnPopoverClick" | "width" | "maxWidth" | "maxHeight" | "popoverClasses" | "tag" | "zIndex" | "offset">;
|
|
425
454
|
$attrs: {
|
|
426
455
|
[x: string]: unknown;
|
|
427
456
|
};
|
|
@@ -499,6 +528,10 @@ declare const kPop: Ref<({
|
|
|
499
528
|
type: NumberConstructor;
|
|
500
529
|
default: number;
|
|
501
530
|
};
|
|
531
|
+
offset: {
|
|
532
|
+
type: StringConstructor;
|
|
533
|
+
default: "16px";
|
|
534
|
+
};
|
|
502
535
|
}>> & Readonly<{
|
|
503
536
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
504
537
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -526,6 +559,7 @@ declare const kPop: Ref<({
|
|
|
526
559
|
popoverClasses: string;
|
|
527
560
|
tag: string;
|
|
528
561
|
zIndex: number;
|
|
562
|
+
offset: string;
|
|
529
563
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
|
|
530
564
|
beforeCreate?: (() => void) | (() => void)[];
|
|
531
565
|
created?: (() => void) | (() => void)[];
|
|
@@ -562,6 +596,7 @@ declare const kPop: Ref<({
|
|
|
562
596
|
popoverClasses: string;
|
|
563
597
|
tag: string;
|
|
564
598
|
zIndex: number;
|
|
599
|
+
offset: string;
|
|
565
600
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
566
601
|
buttonText: {
|
|
567
602
|
type: StringConstructor;
|
|
@@ -625,11 +660,15 @@ declare const kPop: Ref<({
|
|
|
625
660
|
type: NumberConstructor;
|
|
626
661
|
default: number;
|
|
627
662
|
};
|
|
663
|
+
offset: {
|
|
664
|
+
type: StringConstructor;
|
|
665
|
+
default: "16px";
|
|
666
|
+
};
|
|
628
667
|
}>> & Readonly<{
|
|
629
668
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
630
669
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
631
670
|
"onPopover-click"?: ((...args: any[]) => any) | undefined;
|
|
632
|
-
}>, "hidePopover" | "showPopover" | ("title" | "disabled" | "buttonText" | "placement" | "trigger" | "popoverTimeout" | "hideCloseIcon" | "hideCaret" | "closeOnPopoverClick" | "width" | "maxWidth" | "maxHeight" | "popoverClasses" | "tag" | "zIndex")> & import("vue").ShallowUnwrapRef<{
|
|
671
|
+
}>, "hidePopover" | "showPopover" | ("title" | "disabled" | "buttonText" | "placement" | "trigger" | "popoverTimeout" | "hideCloseIcon" | "hideCaret" | "closeOnPopoverClick" | "width" | "maxWidth" | "maxHeight" | "popoverClasses" | "tag" | "zIndex" | "offset")> & import("vue").ShallowUnwrapRef<{
|
|
633
672
|
hidePopover: () => void;
|
|
634
673
|
showPopover: () => Promise<void>;
|
|
635
674
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
@@ -643,9 +682,10 @@ declare const kPop: Ref<({
|
|
|
643
682
|
declare const boundKPopAttributes: {
|
|
644
683
|
width: string | undefined;
|
|
645
684
|
popoverClasses: string;
|
|
685
|
+
placement: PopPlacements;
|
|
686
|
+
offset?: string;
|
|
646
687
|
hideCaret: boolean;
|
|
647
688
|
popoverTimeout: number;
|
|
648
|
-
placement: PopPlacements;
|
|
649
689
|
};
|
|
650
690
|
declare const triggerButtonText: import("vue").ComputedRef<string>;
|
|
651
691
|
declare const selectedItem: Ref<DropdownItem | undefined, DropdownItem | undefined>;
|
|
@@ -687,16 +727,9 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
687
727
|
type: StringConstructor;
|
|
688
728
|
default: string;
|
|
689
729
|
};
|
|
690
|
-
/**
|
|
691
|
-
* kpopAttributes is used to pass properties directly to the wrapped KPop component
|
|
692
|
-
* Commonly-overridden properties include:
|
|
693
|
-
* - placement
|
|
694
|
-
* - popoverClasses
|
|
695
|
-
* - target
|
|
696
|
-
*/
|
|
697
730
|
kpopAttributes: {
|
|
698
|
-
type:
|
|
699
|
-
default:
|
|
731
|
+
type: PropType<PopoverAttributes>;
|
|
732
|
+
default: () => void;
|
|
700
733
|
};
|
|
701
734
|
items: {
|
|
702
735
|
type: PropType<Array<DropdownItem>>;
|
|
@@ -758,16 +791,9 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
758
791
|
type: StringConstructor;
|
|
759
792
|
default: string;
|
|
760
793
|
};
|
|
761
|
-
/**
|
|
762
|
-
* kpopAttributes is used to pass properties directly to the wrapped KPop component
|
|
763
|
-
* Commonly-overridden properties include:
|
|
764
|
-
* - placement
|
|
765
|
-
* - popoverClasses
|
|
766
|
-
* - target
|
|
767
|
-
*/
|
|
768
794
|
kpopAttributes: {
|
|
769
|
-
type:
|
|
770
|
-
default:
|
|
795
|
+
type: PropType<PopoverAttributes>;
|
|
796
|
+
default: () => void;
|
|
771
797
|
};
|
|
772
798
|
items: {
|
|
773
799
|
type: PropType<Array<DropdownItem>>;
|
|
@@ -798,11 +824,11 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
798
824
|
disabled: boolean;
|
|
799
825
|
appearance: ButtonAppearance;
|
|
800
826
|
width: string;
|
|
827
|
+
kpopAttributes: PopoverAttributes;
|
|
801
828
|
items: DropdownItem[];
|
|
802
829
|
selectionMenu: boolean;
|
|
803
830
|
triggerText: string;
|
|
804
831
|
showCaret: boolean;
|
|
805
|
-
kpopAttributes: Record<string, any>;
|
|
806
832
|
disabledTooltip: string;
|
|
807
833
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
808
834
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -827,16 +853,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
827
853
|
type: StringConstructor;
|
|
828
854
|
default: string;
|
|
829
855
|
};
|
|
830
|
-
/**
|
|
831
|
-
* kpopAttributes is used to pass properties directly to the wrapped KPop component
|
|
832
|
-
* Commonly-overridden properties include:
|
|
833
|
-
* - placement
|
|
834
|
-
* - popoverClasses
|
|
835
|
-
* - target
|
|
836
|
-
*/
|
|
837
856
|
kpopAttributes: {
|
|
838
|
-
type:
|
|
839
|
-
default:
|
|
857
|
+
type: PropType<PopoverAttributes>;
|
|
858
|
+
default: () => void;
|
|
840
859
|
};
|
|
841
860
|
items: {
|
|
842
861
|
type: PropType<Array<DropdownItem>>;
|
|
@@ -884,16 +903,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
884
903
|
type: StringConstructor;
|
|
885
904
|
default: string;
|
|
886
905
|
};
|
|
887
|
-
/**
|
|
888
|
-
* kpopAttributes is used to pass properties directly to the wrapped KPop component
|
|
889
|
-
* Commonly-overridden properties include:
|
|
890
|
-
* - placement
|
|
891
|
-
* - popoverClasses
|
|
892
|
-
* - target
|
|
893
|
-
*/
|
|
894
906
|
kpopAttributes: {
|
|
895
|
-
type:
|
|
896
|
-
default:
|
|
907
|
+
type: PropType<PopoverAttributes>;
|
|
908
|
+
default: () => void;
|
|
897
909
|
};
|
|
898
910
|
items: {
|
|
899
911
|
type: PropType<Array<DropdownItem>>;
|
|
@@ -924,11 +936,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
924
936
|
disabled: boolean;
|
|
925
937
|
appearance: ButtonAppearance;
|
|
926
938
|
width: string;
|
|
939
|
+
kpopAttributes: PopoverAttributes;
|
|
927
940
|
items: DropdownItem[];
|
|
928
941
|
selectionMenu: boolean;
|
|
929
942
|
triggerText: string;
|
|
930
943
|
showCaret: boolean;
|
|
931
|
-
kpopAttributes: Record<string, any>;
|
|
932
944
|
disabledTooltip: string;
|
|
933
945
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
934
946
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { MultiselectItem, MultiselectFilterFunctionParams, DropdownFooterTextPosition } from '../../../types';
|
|
2
|
+
import type { MultiselectItem, MultiselectFilterFunctionParams, DropdownFooterTextPosition, PopoverAttributes } from '../../../types';
|
|
3
3
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
modelValue: {
|
|
5
5
|
type: PropType<string[]>;
|
|
@@ -30,10 +30,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
32
|
kpopAttributes: {
|
|
33
|
-
type:
|
|
34
|
-
default: () =>
|
|
35
|
-
popoverClasses: string;
|
|
36
|
-
};
|
|
33
|
+
type: PropType<PopoverAttributes>;
|
|
34
|
+
default: () => void;
|
|
37
35
|
};
|
|
38
36
|
dropdownMaxHeight: {
|
|
39
37
|
type: StringConstructor;
|
|
@@ -161,10 +159,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
161
159
|
default: string;
|
|
162
160
|
};
|
|
163
161
|
kpopAttributes: {
|
|
164
|
-
type:
|
|
165
|
-
default: () =>
|
|
166
|
-
popoverClasses: string;
|
|
167
|
-
};
|
|
162
|
+
type: PropType<PopoverAttributes>;
|
|
163
|
+
default: () => void;
|
|
168
164
|
};
|
|
169
165
|
dropdownMaxHeight: {
|
|
170
166
|
type: StringConstructor;
|
|
@@ -267,8 +263,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<import("vu
|
|
|
267
263
|
loading: boolean;
|
|
268
264
|
error: boolean;
|
|
269
265
|
width: string;
|
|
266
|
+
kpopAttributes: PopoverAttributes;
|
|
270
267
|
items: MultiselectItem[];
|
|
271
|
-
kpopAttributes: Record<string, any>;
|
|
272
268
|
help: string;
|
|
273
269
|
modelValue: string[];
|
|
274
270
|
labelAttributes: Record<string, any>;
|
|
@@ -103,6 +103,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
103
103
|
onPageChange?: ((val: PageChangeData) => any) | undefined;
|
|
104
104
|
onPageSizeChange?: ((val: PageSizeChangeData) => any) | undefined;
|
|
105
105
|
}>, {
|
|
106
|
+
offset: boolean;
|
|
106
107
|
items: unknown[];
|
|
107
108
|
totalCount: number;
|
|
108
109
|
pageSizes: number[];
|
|
@@ -111,7 +112,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
111
112
|
searchTriggered: boolean;
|
|
112
113
|
currentPage: number;
|
|
113
114
|
disablePageJump: boolean;
|
|
114
|
-
offset: boolean;
|
|
115
115
|
offsetPreviousButtonDisabled: boolean;
|
|
116
116
|
offsetNextButtonDisabled: boolean;
|
|
117
117
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -31,6 +31,7 @@ declare const floatingStyles: Readonly<import("vue").Ref<{
|
|
|
31
31
|
transform?: string;
|
|
32
32
|
willChange?: string;
|
|
33
33
|
}>>, calculatedPlacement: Readonly<import("vue").Ref<import("@floating-ui/vue").Placement, import("@floating-ui/vue").Placement>>;
|
|
34
|
+
declare const popoverOffset: import("vue").ComputedRef<string>;
|
|
34
35
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
35
36
|
declare var __VLS_7: {}, __VLS_20: {}, __VLS_22: {}, __VLS_24: {};
|
|
36
37
|
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
@@ -105,6 +106,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
105
106
|
type: NumberConstructor;
|
|
106
107
|
default: number;
|
|
107
108
|
};
|
|
109
|
+
offset: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: "16px";
|
|
112
|
+
};
|
|
108
113
|
}>, {
|
|
109
114
|
KButton: typeof KButton;
|
|
110
115
|
CloseIcon: typeof CloseIcon;
|
|
@@ -120,6 +125,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
120
125
|
popoverClassesObj: typeof popoverClassesObj;
|
|
121
126
|
floatingStyles: typeof floatingStyles;
|
|
122
127
|
calculatedPlacement: typeof calculatedPlacement;
|
|
128
|
+
popoverOffset: typeof popoverOffset;
|
|
123
129
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
124
130
|
open: (...args: any[]) => void;
|
|
125
131
|
close: (...args: any[]) => void;
|
|
@@ -187,6 +193,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
187
193
|
type: NumberConstructor;
|
|
188
194
|
default: number;
|
|
189
195
|
};
|
|
196
|
+
offset: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
default: "16px";
|
|
199
|
+
};
|
|
190
200
|
}>> & Readonly<{
|
|
191
201
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
192
202
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -207,6 +217,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
207
217
|
popoverClasses: string;
|
|
208
218
|
tag: string;
|
|
209
219
|
zIndex: number;
|
|
220
|
+
offset: string;
|
|
210
221
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
211
222
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
212
223
|
buttonText: {
|
|
@@ -271,6 +282,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
271
282
|
type: NumberConstructor;
|
|
272
283
|
default: number;
|
|
273
284
|
};
|
|
285
|
+
offset: {
|
|
286
|
+
type: StringConstructor;
|
|
287
|
+
default: "16px";
|
|
288
|
+
};
|
|
274
289
|
}>, {
|
|
275
290
|
hidePopover: () => void;
|
|
276
291
|
showPopover: () => Promise<void>;
|
|
@@ -341,6 +356,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
341
356
|
type: NumberConstructor;
|
|
342
357
|
default: number;
|
|
343
358
|
};
|
|
359
|
+
offset: {
|
|
360
|
+
type: StringConstructor;
|
|
361
|
+
default: "16px";
|
|
362
|
+
};
|
|
344
363
|
}>> & Readonly<{
|
|
345
364
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
346
365
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -361,6 +380,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
361
380
|
popoverClasses: string;
|
|
362
381
|
tag: string;
|
|
363
382
|
zIndex: number;
|
|
383
|
+
offset: string;
|
|
364
384
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
365
385
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
366
386
|
export default _default;
|
|
@@ -5,7 +5,7 @@ import KPop from '../../components/KPop/KPop.vue';
|
|
|
5
5
|
import KToggle from '../../components/KToggle';
|
|
6
6
|
import KSelectItems from '../../components/KSelect/KSelectItems.vue';
|
|
7
7
|
import KSelectItem from '../../components/KSelect/KSelectItem.vue';
|
|
8
|
-
import type { PopPlacements, SelectItem, SelectFilterFunctionParams, SelectDropdownFooterTextPosition } from '../../../types';
|
|
8
|
+
import type { PopPlacements, SelectItem, SelectFilterFunctionParams, SelectDropdownFooterTextPosition, PopoverAttributes } from '../../../types';
|
|
9
9
|
import { ChevronDownIcon, CloseIcon, ProgressIcon } from '@kong/icons';
|
|
10
10
|
declare const slots: Readonly<{
|
|
11
11
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
@@ -49,8 +49,9 @@ declare const boundKPopAttributes: import("vue").ComputedRef<{
|
|
|
49
49
|
width: string;
|
|
50
50
|
maxWidth: string;
|
|
51
51
|
disabled: boolean;
|
|
52
|
-
popoverTimeout: number;
|
|
53
52
|
placement: PopPlacements;
|
|
53
|
+
offset?: string;
|
|
54
|
+
popoverTimeout: number;
|
|
54
55
|
hideCaret: boolean;
|
|
55
56
|
}>;
|
|
56
57
|
declare const placeholderText: import("vue").ComputedRef<string>;
|
|
@@ -123,10 +124,8 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
123
124
|
default: string;
|
|
124
125
|
};
|
|
125
126
|
kpopAttributes: {
|
|
126
|
-
type:
|
|
127
|
-
default: () =>
|
|
128
|
-
popoverClasses: string;
|
|
129
|
-
};
|
|
127
|
+
type: PropType<PopoverAttributes>;
|
|
128
|
+
default: () => void;
|
|
130
129
|
};
|
|
131
130
|
dropdownMaxHeight: {
|
|
132
131
|
type: StringConstructor;
|
|
@@ -296,10 +295,8 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
296
295
|
default: string;
|
|
297
296
|
};
|
|
298
297
|
kpopAttributes: {
|
|
299
|
-
type:
|
|
300
|
-
default: () =>
|
|
301
|
-
popoverClasses: string;
|
|
302
|
-
};
|
|
298
|
+
type: PropType<PopoverAttributes>;
|
|
299
|
+
default: () => void;
|
|
303
300
|
};
|
|
304
301
|
dropdownMaxHeight: {
|
|
305
302
|
type: StringConstructor;
|
|
@@ -422,8 +419,8 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
422
419
|
loading: boolean;
|
|
423
420
|
error: boolean;
|
|
424
421
|
width: string;
|
|
422
|
+
kpopAttributes: PopoverAttributes;
|
|
425
423
|
items: SelectItem[];
|
|
426
|
-
kpopAttributes: Record<string, any>;
|
|
427
424
|
help: string;
|
|
428
425
|
modelValue: string | number;
|
|
429
426
|
labelAttributes: Record<string, any>;
|
|
@@ -444,10 +441,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
444
441
|
default: string;
|
|
445
442
|
};
|
|
446
443
|
kpopAttributes: {
|
|
447
|
-
type:
|
|
448
|
-
default: () =>
|
|
449
|
-
popoverClasses: string;
|
|
450
|
-
};
|
|
444
|
+
type: PropType<PopoverAttributes>;
|
|
445
|
+
default: () => void;
|
|
451
446
|
};
|
|
452
447
|
dropdownMaxHeight: {
|
|
453
448
|
type: StringConstructor;
|
|
@@ -571,10 +566,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
571
566
|
default: string;
|
|
572
567
|
};
|
|
573
568
|
kpopAttributes: {
|
|
574
|
-
type:
|
|
575
|
-
default: () =>
|
|
576
|
-
popoverClasses: string;
|
|
577
|
-
};
|
|
569
|
+
type: PropType<PopoverAttributes>;
|
|
570
|
+
default: () => void;
|
|
578
571
|
};
|
|
579
572
|
dropdownMaxHeight: {
|
|
580
573
|
type: StringConstructor;
|
|
@@ -697,8 +690,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
697
690
|
loading: boolean;
|
|
698
691
|
error: boolean;
|
|
699
692
|
width: string;
|
|
693
|
+
kpopAttributes: PopoverAttributes;
|
|
700
694
|
items: SelectItem[];
|
|
701
|
-
kpopAttributes: Record<string, any>;
|
|
702
695
|
help: string;
|
|
703
696
|
modelValue: string | number;
|
|
704
697
|
labelAttributes: Record<string, any>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import KPop from '../../components/KPop/KPop.vue';
|
|
3
|
-
import type { PopPlacements } from '../../../types';
|
|
3
|
+
import type { PopPlacements, PopoverAttributes } from '../../../types';
|
|
4
|
+
import { KUI_SPACE_20 } from '@kong/design-tokens';
|
|
4
5
|
declare const showTooltip: import("vue").ComputedRef<boolean>;
|
|
5
6
|
declare const randomTooltipId: string;
|
|
6
7
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
@@ -53,8 +54,13 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
53
54
|
type: NumberConstructor;
|
|
54
55
|
default: number;
|
|
55
56
|
};
|
|
57
|
+
kpopAttributes: {
|
|
58
|
+
type: PropType<PopoverAttributes>;
|
|
59
|
+
default: () => void;
|
|
60
|
+
};
|
|
56
61
|
}>, {
|
|
57
62
|
KPop: typeof KPop;
|
|
63
|
+
KUI_SPACE_20: typeof KUI_SPACE_20;
|
|
58
64
|
showTooltip: typeof showTooltip;
|
|
59
65
|
randomTooltipId: typeof randomTooltipId;
|
|
60
66
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -96,6 +102,10 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
96
102
|
type: NumberConstructor;
|
|
97
103
|
default: number;
|
|
98
104
|
};
|
|
105
|
+
kpopAttributes: {
|
|
106
|
+
type: PropType<PopoverAttributes>;
|
|
107
|
+
default: () => void;
|
|
108
|
+
};
|
|
99
109
|
}>> & Readonly<{}>, {
|
|
100
110
|
label: string;
|
|
101
111
|
text: string;
|
|
@@ -103,6 +113,7 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
103
113
|
maxWidth: string;
|
|
104
114
|
zIndex: number;
|
|
105
115
|
tooltipId: string;
|
|
116
|
+
kpopAttributes: PopoverAttributes;
|
|
106
117
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
107
118
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
108
119
|
/**
|
|
@@ -143,6 +154,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
143
154
|
type: NumberConstructor;
|
|
144
155
|
default: number;
|
|
145
156
|
};
|
|
157
|
+
kpopAttributes: {
|
|
158
|
+
type: PropType<PopoverAttributes>;
|
|
159
|
+
default: () => void;
|
|
160
|
+
};
|
|
146
161
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
147
162
|
/**
|
|
148
163
|
* Text to show in tooltip
|
|
@@ -182,6 +197,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
182
197
|
type: NumberConstructor;
|
|
183
198
|
default: number;
|
|
184
199
|
};
|
|
200
|
+
kpopAttributes: {
|
|
201
|
+
type: PropType<PopoverAttributes>;
|
|
202
|
+
default: () => void;
|
|
203
|
+
};
|
|
185
204
|
}>> & Readonly<{}>, {
|
|
186
205
|
label: string;
|
|
187
206
|
text: string;
|
|
@@ -189,6 +208,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
189
208
|
maxWidth: string;
|
|
190
209
|
zIndex: number;
|
|
191
210
|
tooltipId: string;
|
|
211
|
+
kpopAttributes: PopoverAttributes;
|
|
192
212
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
193
213
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
194
214
|
export default _default;
|
|
@@ -14,7 +14,7 @@ export * from './label';
|
|
|
14
14
|
export * from './method-badge';
|
|
15
15
|
export * from './multi-select';
|
|
16
16
|
export * from './pagination';
|
|
17
|
-
export * from './
|
|
17
|
+
export * from './popover';
|
|
18
18
|
export * from './prompt';
|
|
19
19
|
export * from './radio';
|
|
20
20
|
export * from './segmented-control';
|
|
@@ -3,3 +3,8 @@ export declare const PopTriggerArray: readonly ["click", "hover"];
|
|
|
3
3
|
export type PopTrigger = AnyElementOf<typeof PopTriggerArray>;
|
|
4
4
|
export declare const PopPlacementsArray: readonly ["auto", "top", "top-start", "top-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "bottom", "bottom-start", "bottom-end"];
|
|
5
5
|
export type PopPlacements = AnyElementOf<typeof PopPlacementsArray>;
|
|
6
|
+
export interface PopoverAttributes {
|
|
7
|
+
placement?: PopPlacements;
|
|
8
|
+
popoverClasses?: string;
|
|
9
|
+
offset?: string;
|
|
10
|
+
}
|