@moubing/bing-ui 0.1.0 → 0.1.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.
Files changed (113) hide show
  1. package/dist/components/BingAnimatedText/BingAnimatedText.types.d.ts +21 -0
  2. package/dist/components/BingAnimatedText/BingAnimatedText.vue.d.ts +31 -0
  3. package/dist/components/BingAnimatedText/index.d.ts +2 -0
  4. package/dist/components/BingAppSwitcherTransition/BingAppSwitcherTransition.types.d.ts +33 -0
  5. package/dist/components/BingAppSwitcherTransition/BingAppSwitcherTransition.vue.d.ts +28 -0
  6. package/dist/components/BingAppSwitcherTransition/index.d.ts +2 -0
  7. package/dist/components/BingButton/BingButton.types.d.ts +46 -0
  8. package/dist/components/BingButton/BingButton.vue.d.ts +52 -0
  9. package/dist/components/BingButton/index.d.ts +2 -0
  10. package/dist/components/BingCard/BingCard.types.d.ts +38 -0
  11. package/dist/components/BingCard/BingCard.vue.d.ts +56 -0
  12. package/dist/components/BingCard/index.d.ts +2 -0
  13. package/dist/components/BingCarouselTransition/BingCarouselTransition.types.d.ts +33 -0
  14. package/dist/components/BingCarouselTransition/BingCarouselTransition.vue.d.ts +28 -0
  15. package/dist/components/BingCarouselTransition/index.d.ts +2 -0
  16. package/dist/components/BingCheckbox/BingCheckbox.types.d.ts +25 -0
  17. package/dist/components/BingCheckbox/BingCheckbox.vue.d.ts +39 -0
  18. package/dist/components/BingCheckbox/index.d.ts +2 -0
  19. package/dist/components/BingCheckboxGroup/BingCheckboxGroup.context.d.ts +13 -0
  20. package/dist/components/BingCheckboxGroup/BingCheckboxGroup.types.d.ts +27 -0
  21. package/dist/components/BingCheckboxGroup/BingCheckboxGroup.vue.d.ts +35 -0
  22. package/dist/components/BingCheckboxGroup/index.d.ts +2 -0
  23. package/dist/components/BingCodeBlock/BingCodeBlock.highlight.d.ts +10 -0
  24. package/dist/components/BingCodeBlock/BingCodeBlock.types.d.ts +32 -0
  25. package/dist/components/BingCodeBlock/BingCodeBlock.vue.d.ts +29 -0
  26. package/dist/components/BingCodeBlock/index.d.ts +2 -0
  27. package/dist/components/BingDatePicker/BingDatePicker.types.d.ts +70 -0
  28. package/dist/components/BingDatePicker/BingDatePicker.vue.d.ts +54 -0
  29. package/dist/components/BingDatePicker/index.d.ts +2 -0
  30. package/dist/components/BingDeckTransition/BingDeckTransition.types.d.ts +38 -0
  31. package/dist/components/BingDeckTransition/BingDeckTransition.vue.d.ts +29 -0
  32. package/dist/components/BingDeckTransition/index.d.ts +2 -0
  33. package/dist/components/BingDialog/BingDialog.types.d.ts +45 -0
  34. package/dist/components/BingDialog/BingDialog.vue.d.ts +61 -0
  35. package/dist/components/BingDialog/index.d.ts +2 -0
  36. package/dist/components/BingDropDown/BingDropDown.context.d.ts +7 -0
  37. package/dist/components/BingDropDown/BingDropDown.types.d.ts +60 -0
  38. package/dist/components/BingDropDown/BingDropDown.vue.d.ts +87 -0
  39. package/dist/components/BingDropDown/BingDropDownItem.vue.d.ts +36 -0
  40. package/dist/components/BingDropDown/index.d.ts +3 -0
  41. package/dist/components/BingFilePreview/BingFilePreview.types.d.ts +56 -0
  42. package/dist/components/BingFilePreview/BingFilePreview.vue.d.ts +46 -0
  43. package/dist/components/BingFilePreview/index.d.ts +2 -0
  44. package/dist/components/BingForm/BingForm.context.d.ts +31 -0
  45. package/dist/components/BingForm/BingForm.types.d.ts +46 -0
  46. package/dist/components/BingForm/BingForm.vue.d.ts +32 -0
  47. package/dist/components/BingForm/index.d.ts +2 -0
  48. package/dist/components/BingFormItem/BingFormItem.types.d.ts +10 -0
  49. package/dist/components/BingFormItem/BingFormItem.vue.d.ts +30 -0
  50. package/dist/components/BingFormItem/index.d.ts +2 -0
  51. package/dist/components/BingIcon/BingIcon.types.d.ts +11 -0
  52. package/dist/components/BingIcon/BingIcon.vue.d.ts +10 -0
  53. package/dist/components/BingIcon/index.d.ts +2 -0
  54. package/dist/components/BingImage/BingImage.types.d.ts +68 -0
  55. package/dist/components/BingImage/BingImage.vue.d.ts +64 -0
  56. package/dist/components/BingImage/index.d.ts +2 -0
  57. package/dist/components/BingImagePreview/BingImagePreview.types.d.ts +40 -0
  58. package/dist/components/BingImagePreview/BingImagePreview.vue.d.ts +38 -0
  59. package/dist/components/BingImagePreview/index.d.ts +2 -0
  60. package/dist/components/BingInput/BingInput.types.d.ts +38 -0
  61. package/dist/components/BingInput/BingInput.vue.d.ts +49 -0
  62. package/dist/components/BingInput/index.d.ts +2 -0
  63. package/dist/components/BingRadio/BingRadio.types.d.ts +21 -0
  64. package/dist/components/BingRadio/BingRadio.vue.d.ts +38 -0
  65. package/dist/components/BingRadio/index.d.ts +2 -0
  66. package/dist/components/BingRadioGroup/BingRadioGroup.context.d.ts +13 -0
  67. package/dist/components/BingRadioGroup/BingRadioGroup.types.d.ts +27 -0
  68. package/dist/components/BingRadioGroup/BingRadioGroup.vue.d.ts +35 -0
  69. package/dist/components/BingRadioGroup/index.d.ts +2 -0
  70. package/dist/components/BingResizable/BingResizable.types.d.ts +63 -0
  71. package/dist/components/BingResizable/BingResizable.vue.d.ts +50 -0
  72. package/dist/components/BingResizable/index.d.ts +2 -0
  73. package/dist/components/BingScrollbar/BingScrollbar.types.d.ts +20 -0
  74. package/dist/components/BingScrollbar/BingScrollbar.vue.d.ts +28 -0
  75. package/dist/components/BingScrollbar/index.d.ts +2 -0
  76. package/dist/components/BingSelect/BingSelect.types.d.ts +57 -0
  77. package/dist/components/BingSelect/BingSelect.vue.d.ts +72 -0
  78. package/dist/components/BingSelect/index.d.ts +2 -0
  79. package/dist/components/BingSideNav/BingSideNav.types.d.ts +57 -0
  80. package/dist/components/BingSideNav/BingSideNav.vue.d.ts +89 -0
  81. package/dist/components/BingSideNav/index.d.ts +2 -0
  82. package/dist/components/BingSortableList/BingSortableList.types.d.ts +62 -0
  83. package/dist/components/BingSortableList/BingSortableList.vue.d.ts +51 -0
  84. package/dist/components/BingSortableList/BingSortableListItem.vue.d.ts +34 -0
  85. package/dist/components/BingSortableList/index.d.ts +2 -0
  86. package/dist/components/BingTable/BingTable.types.d.ts +156 -0
  87. package/dist/components/BingTable/BingTable.vue.d.ts +142 -0
  88. package/dist/components/BingTable/index.d.ts +2 -0
  89. package/dist/components/BingTabs/BingTabs.types.d.ts +42 -0
  90. package/dist/components/BingTabs/BingTabs.vue.d.ts +40 -0
  91. package/dist/components/BingTabs/index.d.ts +2 -0
  92. package/dist/components/BingTag/BingTag.types.d.ts +15 -0
  93. package/dist/components/BingTag/BingTag.vue.d.ts +26 -0
  94. package/dist/components/BingTag/index.d.ts +2 -0
  95. package/dist/components/BingTextarea/BingTextarea.types.d.ts +40 -0
  96. package/dist/components/BingTextarea/BingTextarea.vue.d.ts +38 -0
  97. package/dist/components/BingTextarea/index.d.ts +2 -0
  98. package/dist/components/BingToast/BingToast.service.d.ts +44 -0
  99. package/dist/components/BingToast/BingToast.types.d.ts +58 -0
  100. package/dist/components/BingToast/BingToast.vue.d.ts +19 -0
  101. package/dist/components/BingToast/index.d.ts +4 -0
  102. package/dist/components/BingTooltip/BingTooltip.shared.d.ts +32 -0
  103. package/dist/components/BingTooltip/BingTooltip.types.d.ts +36 -0
  104. package/dist/components/BingTooltip/BingTooltip.vue.d.ts +51 -0
  105. package/dist/components/BingTooltip/index.d.ts +2 -0
  106. package/dist/components/BingTreeSelect/BingTreeSelect.types.d.ts +69 -0
  107. package/dist/components/BingTreeSelect/BingTreeSelect.vue.d.ts +85 -0
  108. package/dist/components/BingTreeSelect/index.d.ts +2 -0
  109. package/dist/components/index.d.ts +33 -0
  110. package/dist/index.d.ts +3 -1
  111. package/dist/motion/index.d.ts +13 -0
  112. package/dist/utils/glass.d.ts +16 -0
  113. package/package.json +67 -68
@@ -0,0 +1,63 @@
1
+ export type BingResizableDirection = 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
2
+ export type BingResizableMode = 'fixed' | 'mirror';
3
+ export type BingResizableSnapMode = 'live' | 'end';
4
+ export type BingResizableSizeValue = number | string;
5
+ export interface BingResizableSize {
6
+ width?: BingResizableSizeValue;
7
+ height?: BingResizableSizeValue;
8
+ }
9
+ export interface BingResizableResolvedSize {
10
+ width: number;
11
+ height: number;
12
+ }
13
+ export interface BingResizablePosition {
14
+ x: number;
15
+ y: number;
16
+ }
17
+ export type BingResizableStep = number | {
18
+ x?: number;
19
+ y?: number;
20
+ };
21
+ export interface BingResizableDelta {
22
+ x: number;
23
+ y: number;
24
+ }
25
+ export interface BingResizablePayload {
26
+ direction: BingResizableDirection;
27
+ size: BingResizableResolvedSize;
28
+ position: BingResizablePosition;
29
+ delta: BingResizableDelta;
30
+ event: PointerEvent | KeyboardEvent;
31
+ }
32
+ export interface BingResizableProps {
33
+ size?: BingResizableSize;
34
+ defaultSize?: BingResizableSize;
35
+ position?: Partial<BingResizablePosition>;
36
+ defaultPosition?: Partial<BingResizablePosition>;
37
+ minWidth?: BingResizableSizeValue;
38
+ minHeight?: BingResizableSizeValue;
39
+ maxWidth?: BingResizableSizeValue;
40
+ maxHeight?: BingResizableSizeValue;
41
+ mode?: BingResizableMode;
42
+ snapMode?: BingResizableSnapMode;
43
+ directions?: BingResizableDirection[];
44
+ step?: BingResizableStep;
45
+ disabled?: boolean;
46
+ lockAspectRatio?: boolean;
47
+ contain?: boolean;
48
+ showSize?: boolean;
49
+ handleSize?: number;
50
+ ariaLabel?: string;
51
+ }
52
+ export interface BingResizableEmits {
53
+ 'update:size': [size: BingResizableResolvedSize];
54
+ 'update:position': [position: BingResizablePosition];
55
+ 'resize-start': [payload: BingResizablePayload];
56
+ resize: [payload: BingResizablePayload];
57
+ 'resize-end': [payload: BingResizablePayload];
58
+ }
59
+ export interface BingResizableExpose {
60
+ reset: () => void;
61
+ getSize: () => BingResizableResolvedSize;
62
+ getPosition: () => BingResizablePosition;
63
+ }
@@ -0,0 +1,50 @@
1
+ import { BingResizableDirection, BingResizableExpose, BingResizablePayload, BingResizablePosition, BingResizableProps, BingResizableResolvedSize, BingResizableSize } from './BingResizable.types';
2
+ declare var __VLS_1: {}, __VLS_3: {
3
+ direction: BingResizableDirection;
4
+ active: boolean;
5
+ };
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ } & {
9
+ handle?: (props: typeof __VLS_3) => any;
10
+ };
11
+ declare const __VLS_base: import('vue').DefineComponent<BingResizableProps, BingResizableExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ resize: (payload: BingResizablePayload) => any;
13
+ "update:size": (size: BingResizableResolvedSize) => any;
14
+ "update:position": (position: BingResizablePosition) => any;
15
+ "resize-start": (payload: BingResizablePayload) => any;
16
+ "resize-end": (payload: BingResizablePayload) => any;
17
+ }, string, import('vue').PublicProps, Readonly<BingResizableProps> & Readonly<{
18
+ onResize?: ((payload: BingResizablePayload) => any) | undefined;
19
+ "onUpdate:size"?: ((size: BingResizableResolvedSize) => any) | undefined;
20
+ "onUpdate:position"?: ((position: BingResizablePosition) => any) | undefined;
21
+ "onResize-start"?: ((payload: BingResizablePayload) => any) | undefined;
22
+ "onResize-end"?: ((payload: BingResizablePayload) => any) | undefined;
23
+ }>, {
24
+ disabled: boolean;
25
+ maxHeight: import('./BingResizable.types').BingResizableSizeValue;
26
+ maxWidth: import('./BingResizable.types').BingResizableSizeValue;
27
+ minHeight: import('./BingResizable.types').BingResizableSizeValue;
28
+ minWidth: import('./BingResizable.types').BingResizableSizeValue;
29
+ position: Partial<BingResizablePosition>;
30
+ ariaLabel: string;
31
+ size: BingResizableSize;
32
+ mode: import('./BingResizable.types').BingResizableMode;
33
+ defaultSize: BingResizableSize;
34
+ defaultPosition: Partial<BingResizablePosition>;
35
+ snapMode: import('./BingResizable.types').BingResizableSnapMode;
36
+ directions: BingResizableDirection[];
37
+ step: import('./BingResizable.types').BingResizableStep;
38
+ lockAspectRatio: boolean;
39
+ contain: boolean;
40
+ showSize: boolean;
41
+ handleSize: number;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
43
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
44
+ declare const _default: typeof __VLS_export;
45
+ export default _default;
46
+ type __VLS_WithSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingResizable } from './BingResizable.vue';
2
+ export type { BingResizableDelta, BingResizableDirection, BingResizableEmits, BingResizableExpose, BingResizableMode, BingResizablePayload, BingResizablePosition, BingResizableProps, BingResizableResolvedSize, BingResizableSize, BingResizableSizeValue, BingResizableStep, } from './BingResizable.types';
@@ -0,0 +1,20 @@
1
+ export interface BingScrollbarProps {
2
+ height?: string | number;
3
+ maxHeight?: string | number;
4
+ minThumbSize?: number;
5
+ overflowTolerance?: number;
6
+ vertical?: boolean;
7
+ horizontal?: boolean;
8
+ always?: boolean;
9
+ disabled?: boolean;
10
+ ariaLabel?: string;
11
+ }
12
+ export interface BingScrollbarEmits {
13
+ scroll: [event: Event];
14
+ }
15
+ export interface BingScrollbarExpose {
16
+ scrollBy: (options: ScrollToOptions | number) => void;
17
+ scrollTo: (options: ScrollToOptions | number) => void;
18
+ update: () => void;
19
+ viewport: HTMLElement | null;
20
+ }
@@ -0,0 +1,28 @@
1
+ import { BingScrollbarExpose, BingScrollbarProps } from './BingScrollbar.types';
2
+ declare var __VLS_1: {};
3
+ type __VLS_Slots = {} & {
4
+ default?: (props: typeof __VLS_1) => any;
5
+ };
6
+ declare const __VLS_base: import('vue').DefineComponent<BingScrollbarProps, BingScrollbarExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ scroll: (event: Event) => any;
8
+ }, string, import('vue').PublicProps, Readonly<BingScrollbarProps> & Readonly<{
9
+ onScroll?: ((event: Event) => any) | undefined;
10
+ }>, {
11
+ always: boolean;
12
+ disabled: boolean;
13
+ height: string | number;
14
+ maxHeight: string | number;
15
+ ariaLabel: string;
16
+ horizontal: boolean;
17
+ vertical: boolean;
18
+ minThumbSize: number;
19
+ overflowTolerance: number;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingScrollbar } from './BingScrollbar.vue';
2
+ export type { BingScrollbarEmits, BingScrollbarExpose, BingScrollbarProps, } from './BingScrollbar.types';
@@ -0,0 +1,57 @@
1
+ import { BingGlassEffectProps } from '../../utils/glass';
2
+ export type BingSelectValue = string | number;
3
+ export type BingSelectModelValue = BingSelectValue | BingSelectValue[] | null;
4
+ export type BingSelectSize = 'sm' | 'md' | 'lg';
5
+ export type BingSelectVirtualMode = boolean | 'auto';
6
+ export type BingSelectSearchable = boolean | 'auto';
7
+ export type BingSelectOptionMetaValue = string | number | boolean | null | undefined;
8
+ export interface BingSelectOption {
9
+ label: string;
10
+ value: BingSelectValue;
11
+ disabled?: boolean;
12
+ description?: string;
13
+ detail?: string;
14
+ meta?: Record<string, BingSelectOptionMetaValue>;
15
+ [key: string]: unknown;
16
+ }
17
+ export interface BingSelectProps extends BingGlassEffectProps {
18
+ id?: string;
19
+ modelValue?: BingSelectModelValue;
20
+ options?: BingSelectOption[];
21
+ multiple?: boolean;
22
+ placeholder?: string;
23
+ disabled?: boolean;
24
+ clearable?: boolean;
25
+ showSelectAll?: boolean;
26
+ selectAllText?: string;
27
+ clearAllText?: string;
28
+ emptyText?: string;
29
+ searchable?: BingSelectSearchable;
30
+ searchPlaceholder?: string;
31
+ noSearchResultsText?: string;
32
+ size?: BingSelectSize;
33
+ block?: boolean;
34
+ width?: string | number;
35
+ minWidth?: string | number;
36
+ panelMinHeight?: string | number;
37
+ panelMaxHeight?: string | number;
38
+ virtual?: BingSelectVirtualMode;
39
+ virtualThreshold?: number;
40
+ virtualItemHeight?: number;
41
+ virtualOverscan?: number;
42
+ ariaLabel?: string;
43
+ ariaDescribedby?: string;
44
+ status?: 'default' | 'error' | 'success' | 'warning';
45
+ }
46
+ export interface BingSelectChangePayload {
47
+ value: BingSelectModelValue;
48
+ option?: BingSelectOption;
49
+ options: BingSelectOption[];
50
+ }
51
+ export interface BingSelectEmits {
52
+ 'update:modelValue': [value: BingSelectModelValue];
53
+ change: [payload: BingSelectChangePayload];
54
+ clear: [];
55
+ open: [];
56
+ close: [];
57
+ }
@@ -0,0 +1,72 @@
1
+ import { BingSelectChangePayload, BingSelectModelValue, BingSelectOption, BingSelectProps } from './BingSelect.types';
2
+ declare var __VLS_1: {
3
+ selectedOptions: BingSelectOption[];
4
+ placeholder: string;
5
+ }, __VLS_77: {
6
+ option: BingSelectOption;
7
+ selected: boolean;
8
+ }, __VLS_79: {
9
+ option: BingSelectOption;
10
+ selected: boolean;
11
+ index: number;
12
+ };
13
+ type __VLS_Slots = {} & {
14
+ value?: (props: typeof __VLS_1) => any;
15
+ } & {
16
+ option?: (props: typeof __VLS_77) => any;
17
+ } & {
18
+ 'option-detail'?: (props: typeof __VLS_79) => any;
19
+ };
20
+ declare const __VLS_base: import('vue').DefineComponent<BingSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ clear: () => any;
22
+ "update:modelValue": (value: BingSelectModelValue) => any;
23
+ change: (payload: BingSelectChangePayload) => any;
24
+ close: () => any;
25
+ open: () => any;
26
+ }, string, import('vue').PublicProps, Readonly<BingSelectProps> & Readonly<{
27
+ onClear?: (() => any) | undefined;
28
+ "onUpdate:modelValue"?: ((value: BingSelectModelValue) => any) | undefined;
29
+ onChange?: ((payload: BingSelectChangePayload) => any) | undefined;
30
+ onClose?: (() => any) | undefined;
31
+ onOpen?: (() => any) | undefined;
32
+ }>, {
33
+ disabled: boolean;
34
+ minWidth: string | number;
35
+ width: string | number;
36
+ glass: boolean;
37
+ ariaLabel: string;
38
+ modelValue: BingSelectModelValue;
39
+ size: import('./BingSelect.types').BingSelectSize;
40
+ block: boolean;
41
+ glassBlur: string | number;
42
+ glassOpacity: number;
43
+ glassSaturation: number;
44
+ id: string;
45
+ ariaDescribedby: string;
46
+ status: "default" | "error" | "success" | "warning";
47
+ placeholder: string;
48
+ clearable: boolean;
49
+ panelMaxHeight: string | number;
50
+ options: BingSelectOption[];
51
+ multiple: boolean;
52
+ showSelectAll: boolean;
53
+ selectAllText: string;
54
+ clearAllText: string;
55
+ emptyText: string;
56
+ searchable: import('./BingSelect.types').BingSelectSearchable;
57
+ searchPlaceholder: string;
58
+ noSearchResultsText: string;
59
+ panelMinHeight: string | number;
60
+ virtual: import('./BingSelect.types').BingSelectVirtualMode;
61
+ virtualThreshold: number;
62
+ virtualItemHeight: number;
63
+ virtualOverscan: number;
64
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
65
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
66
+ declare const _default: typeof __VLS_export;
67
+ export default _default;
68
+ type __VLS_WithSlots<T, S> = T & {
69
+ new (): {
70
+ $slots: S;
71
+ };
72
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingSelect } from './BingSelect.vue';
2
+ export type { BingSelectChangePayload, BingSelectEmits, BingSelectModelValue, BingSelectOption, BingSelectProps, BingSelectSize, BingSelectValue, BingSelectVirtualMode, } from './BingSelect.types';
@@ -0,0 +1,57 @@
1
+ import { Component } from 'vue';
2
+ export type BingSideNavValue = string | number;
3
+ export type BingSideNavSize = 'sm' | 'md' | 'lg';
4
+ export type BingSideNavVariant = 'glass' | 'soft' | 'quiet';
5
+ export interface BingSideNavItem {
6
+ value: BingSideNavValue;
7
+ label: string;
8
+ href?: string;
9
+ target?: string;
10
+ rel?: string;
11
+ disabled?: boolean;
12
+ badge?: string | number;
13
+ icon?: Component;
14
+ children?: BingSideNavItem[];
15
+ defaultExpanded?: boolean;
16
+ ariaLabel?: string;
17
+ [key: string]: unknown;
18
+ }
19
+ export interface BingSideNavSection {
20
+ value?: BingSideNavValue;
21
+ label?: string;
22
+ items: BingSideNavItem[];
23
+ [key: string]: unknown;
24
+ }
25
+ export interface BingSideNavProps {
26
+ modelValue?: BingSideNavValue;
27
+ items?: BingSideNavItem[];
28
+ sections?: BingSideNavSection[];
29
+ expandedValues?: BingSideNavValue[];
30
+ defaultExpandedValues?: BingSideNavValue[];
31
+ size?: BingSideNavSize;
32
+ variant?: BingSideNavVariant;
33
+ disabled?: boolean;
34
+ block?: boolean;
35
+ collapsible?: boolean;
36
+ animated?: boolean;
37
+ respectReducedMotion?: boolean;
38
+ ariaLabel?: string;
39
+ }
40
+ export interface BingSideNavSelectPayload {
41
+ value: BingSideNavValue;
42
+ item: BingSideNavItem;
43
+ event: MouseEvent | KeyboardEvent;
44
+ }
45
+ export interface BingSideNavTogglePayload {
46
+ value: BingSideNavValue;
47
+ item: BingSideNavItem;
48
+ expanded: boolean;
49
+ event: MouseEvent | KeyboardEvent;
50
+ }
51
+ export interface BingSideNavEmits {
52
+ 'update:modelValue': [value: BingSideNavValue];
53
+ 'update:expandedValues': [values: BingSideNavValue[]];
54
+ select: [payload: BingSideNavSelectPayload];
55
+ expand: [payload: BingSideNavTogglePayload];
56
+ collapse: [payload: BingSideNavTogglePayload];
57
+ }
@@ -0,0 +1,89 @@
1
+ import { BingSideNavItem, BingSideNavProps, BingSideNavSection, BingSideNavValue } from './BingSideNav.types';
2
+ declare var __VLS_1: {}, __VLS_3: {
3
+ section: BingSideNavSection;
4
+ index: number;
5
+ }, __VLS_14: {
6
+ item: BingSideNavItem;
7
+ active: boolean;
8
+ expanded: boolean;
9
+ depth: number;
10
+ }, __VLS_21: {
11
+ item: BingSideNavItem;
12
+ active: boolean;
13
+ expanded: boolean;
14
+ disabled: boolean;
15
+ depth: number;
16
+ }, __VLS_23: {
17
+ item: BingSideNavItem;
18
+ active: boolean;
19
+ depth: number;
20
+ }, __VLS_39: {
21
+ item: BingSideNavItem;
22
+ active: boolean;
23
+ expanded: boolean;
24
+ depth: number;
25
+ }, __VLS_46: {
26
+ item: BingSideNavItem;
27
+ active: boolean;
28
+ expanded: boolean;
29
+ disabled: boolean;
30
+ depth: number;
31
+ }, __VLS_48: {
32
+ item: BingSideNavItem;
33
+ active: boolean;
34
+ depth: number;
35
+ }, __VLS_50: {};
36
+ type __VLS_Slots = {} & {
37
+ header?: (props: typeof __VLS_1) => any;
38
+ } & {
39
+ 'section-label'?: (props: typeof __VLS_3) => any;
40
+ } & {
41
+ icon?: (props: typeof __VLS_14) => any;
42
+ } & {
43
+ item?: (props: typeof __VLS_21) => any;
44
+ } & {
45
+ badge?: (props: typeof __VLS_23) => any;
46
+ } & {
47
+ icon?: (props: typeof __VLS_39) => any;
48
+ } & {
49
+ item?: (props: typeof __VLS_46) => any;
50
+ } & {
51
+ badge?: (props: typeof __VLS_48) => any;
52
+ } & {
53
+ footer?: (props: typeof __VLS_50) => any;
54
+ };
55
+ declare const __VLS_base: import('vue').DefineComponent<BingSideNavProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
+ select: (payload: import('./BingSideNav.types').BingSideNavSelectPayload) => any;
57
+ "update:modelValue": (value: BingSideNavValue) => any;
58
+ collapse: (payload: import('./BingSideNav.types').BingSideNavTogglePayload) => any;
59
+ "update:expandedValues": (values: BingSideNavValue[]) => any;
60
+ expand: (payload: import('./BingSideNav.types').BingSideNavTogglePayload) => any;
61
+ }, string, import('vue').PublicProps, Readonly<BingSideNavProps> & Readonly<{
62
+ onSelect?: ((payload: import('./BingSideNav.types').BingSideNavSelectPayload) => any) | undefined;
63
+ "onUpdate:modelValue"?: ((value: BingSideNavValue) => any) | undefined;
64
+ onCollapse?: ((payload: import('./BingSideNav.types').BingSideNavTogglePayload) => any) | undefined;
65
+ "onUpdate:expandedValues"?: ((values: BingSideNavValue[]) => any) | undefined;
66
+ onExpand?: ((payload: import('./BingSideNav.types').BingSideNavTogglePayload) => any) | undefined;
67
+ }>, {
68
+ disabled: boolean;
69
+ ariaLabel: string;
70
+ modelValue: BingSideNavValue;
71
+ items: BingSideNavItem[];
72
+ size: import('./BingSideNav.types').BingSideNavSize;
73
+ variant: import('./BingSideNav.types').BingSideNavVariant;
74
+ block: boolean;
75
+ animated: boolean;
76
+ respectReducedMotion: boolean;
77
+ sections: BingSideNavSection[];
78
+ expandedValues: BingSideNavValue[];
79
+ defaultExpandedValues: BingSideNavValue[];
80
+ collapsible: boolean;
81
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
82
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
83
+ declare const _default: typeof __VLS_export;
84
+ export default _default;
85
+ type __VLS_WithSlots<T, S> = T & {
86
+ new (): {
87
+ $slots: S;
88
+ };
89
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingSideNav } from './BingSideNav.vue';
2
+ export type { BingSideNavEmits, BingSideNavItem, BingSideNavProps, BingSideNavSection, BingSideNavSelectPayload, BingSideNavSize, BingSideNavTogglePayload, BingSideNavValue, BingSideNavVariant, } from './BingSideNav.types';
@@ -0,0 +1,62 @@
1
+ import { ComponentPublicInstance, HTMLAttributes } from 'vue';
2
+ export type BingSortableListKey = string | number;
3
+ export type BingSortableListAxis = 'vertical' | 'horizontal';
4
+ export type BingSortableListReorderMode = 'drop' | 'live';
5
+ export type BingSortableListItemKey<T> = keyof T | ((item: T, index: number) => BingSortableListKey);
6
+ export type BingSortableListItemDisabled<T> = keyof T | ((item: T, index: number) => boolean);
7
+ export interface BingSortableListPayload<T = Record<string, unknown>> {
8
+ key: BingSortableListKey;
9
+ item: T;
10
+ from: number;
11
+ to: number;
12
+ order: BingSortableListKey[];
13
+ event?: PointerEvent | KeyboardEvent;
14
+ }
15
+ export interface BingSortableListDragPayload<T = Record<string, unknown>> {
16
+ key: BingSortableListKey;
17
+ item: T;
18
+ index: number;
19
+ order: BingSortableListKey[];
20
+ event: PointerEvent;
21
+ }
22
+ export interface BingSortableListProps<T = Record<string, unknown>> {
23
+ items?: T[];
24
+ order?: BingSortableListKey[];
25
+ itemKey?: BingSortableListItemKey<T>;
26
+ itemDisabled?: BingSortableListItemDisabled<T>;
27
+ disabledKeys?: BingSortableListKey[];
28
+ axis?: BingSortableListAxis;
29
+ disabled?: boolean;
30
+ keyboard?: boolean;
31
+ flip?: boolean;
32
+ reorderMode?: BingSortableListReorderMode;
33
+ duration?: number;
34
+ settleDuration?: number;
35
+ dragThreshold?: number;
36
+ ariaLabel?: string;
37
+ handleAriaLabel?: string | ((item: T, index: number) => string);
38
+ }
39
+ export interface BingSortableListEmits<T = Record<string, unknown>> {
40
+ 'update:order': [order: BingSortableListKey[]];
41
+ reorder: [payload: BingSortableListPayload<T>];
42
+ 'drag-start': [payload: BingSortableListDragPayload<T>];
43
+ drag: [payload: BingSortableListDragPayload<T>];
44
+ 'drag-end': [payload: BingSortableListDragPayload<T>];
45
+ }
46
+ export interface BingSortableListHandleProps extends HTMLAttributes {
47
+ ref: (element: Element | ComponentPublicInstance | null) => void;
48
+ role: 'button';
49
+ tabindex: number;
50
+ 'aria-label': string;
51
+ 'aria-disabled': 'true' | 'false';
52
+ onKeydown: (event: KeyboardEvent) => void;
53
+ }
54
+ export interface BingSortableListSlotProps<T = Record<string, unknown>> {
55
+ item: T;
56
+ key: BingSortableListKey;
57
+ index: number;
58
+ active: boolean;
59
+ dragging: boolean;
60
+ disabled: boolean;
61
+ handleProps: BingSortableListHandleProps;
62
+ }
@@ -0,0 +1,51 @@
1
+ import { BingSortableListDragPayload, BingSortableListKey, BingSortableListPayload, BingSortableListProps } from './BingSortableList.types';
2
+ type ListItem = any;
3
+ type __VLS_Props = BingSortableListProps<ListItem>;
4
+ type __VLS_Slots = {
5
+ default?(props: {
6
+ item: ListItem;
7
+ key: BingSortableListKey;
8
+ index: number;
9
+ active: boolean;
10
+ dragging: boolean;
11
+ disabled: boolean;
12
+ handleProps: any;
13
+ }): unknown;
14
+ };
15
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ drag: (payload: BingSortableListDragPayload<any>) => any;
17
+ "update:order": (order: BingSortableListKey[]) => any;
18
+ reorder: (payload: BingSortableListPayload<any>) => any;
19
+ "drag-start": (payload: BingSortableListDragPayload<any>) => any;
20
+ "drag-end": (payload: BingSortableListDragPayload<any>) => any;
21
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
+ onDrag?: ((payload: BingSortableListDragPayload<any>) => any) | undefined;
23
+ "onUpdate:order"?: ((order: BingSortableListKey[]) => any) | undefined;
24
+ onReorder?: ((payload: BingSortableListPayload<any>) => any) | undefined;
25
+ "onDrag-start"?: ((payload: BingSortableListDragPayload<any>) => any) | undefined;
26
+ "onDrag-end"?: ((payload: BingSortableListDragPayload<any>) => any) | undefined;
27
+ }>, {
28
+ disabled: boolean;
29
+ order: BingSortableListKey[];
30
+ ariaLabel: string;
31
+ items: any[];
32
+ duration: number;
33
+ flip: boolean;
34
+ itemKey: import('./BingSortableList.types').BingSortableListItemKey<any>;
35
+ axis: import('./BingSortableList.types').BingSortableListAxis;
36
+ itemDisabled: import('./BingSortableList.types').BingSortableListItemDisabled<any>;
37
+ disabledKeys: BingSortableListKey[];
38
+ keyboard: boolean;
39
+ reorderMode: import('./BingSortableList.types').BingSortableListReorderMode;
40
+ settleDuration: number;
41
+ dragThreshold: number;
42
+ handleAriaLabel: string | ((item: any, index: number) => string);
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
45
+ declare const _default: typeof __VLS_export;
46
+ export default _default;
47
+ type __VLS_WithSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -0,0 +1,34 @@
1
+ import { BingSortableListAxis, BingSortableListKey, BingSortableListSlotProps } from './BingSortableList.types';
2
+ type ListItem = any;
3
+ type __VLS_Props = {
4
+ item: ListItem;
5
+ itemKey: BingSortableListKey;
6
+ index: number;
7
+ activeKey: BingSortableListKey | null;
8
+ disabled?: boolean;
9
+ axis?: BingSortableListAxis;
10
+ flip?: boolean;
11
+ duration?: number;
12
+ handleLabel: string;
13
+ };
14
+ type __VLS_Slots = {
15
+ default?(props: BingSortableListSlotProps<ListItem>): unknown;
16
+ };
17
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "keyboard-move": (event: KeyboardEvent) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ "onKeyboard-move"?: ((event: KeyboardEvent) => any) | undefined;
21
+ }>, {
22
+ disabled: boolean;
23
+ duration: number;
24
+ flip: boolean;
25
+ axis: BingSortableListAxis;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
30
+ type __VLS_WithSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,2 @@
1
+ export { default as BingSortableList } from './BingSortableList.vue';
2
+ export type { BingSortableListAxis, BingSortableListDragPayload, BingSortableListEmits, BingSortableListHandleProps, BingSortableListItemDisabled, BingSortableListItemKey, BingSortableListKey, BingSortableListPayload, BingSortableListProps, BingSortableListReorderMode, BingSortableListSlotProps, } from './BingSortableList.types';