@autoafleveren/ui 0.13.3 → 0.14.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/config/tailwind/config.cjs +3 -0
- package/dist/icons.cjs +37 -37
- package/dist/icons.js +3939 -3954
- package/dist/style.css +1 -1
- package/dist/types/components/AppActionBar/AppActionBarItem.vue.d.ts +35 -3
- package/dist/types/components/AppActionBar/index.d.ts +1 -0
- package/dist/types/components/AppAlert/AppAlert.vue.d.ts +1 -0
- package/dist/types/components/AppBackButton/AppBackButton.vue.d.ts +20 -11
- package/dist/types/components/AppContextMenu/AppContextMenu.vue.d.ts +30 -0
- package/dist/types/components/AppContextMenu/ShortcutItem.vue.d.ts +18 -0
- package/dist/types/components/AppDataTable/AppDataTable.vue.d.ts +22 -11
- package/dist/types/components/AppInput/AppInput.vue.d.ts +22 -20
- package/dist/types/components/AppInput/Input.vue.d.ts +7 -8
- package/dist/types/components/AppToggle/AppToggle.vue.d.ts +28 -14
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/composables/index.d.ts +1 -0
- package/dist/types/composables/useContextMenu/index.d.ts +12 -0
- package/dist/ui.cjs +34 -34
- package/dist/ui.css +1 -1
- package/dist/ui.js +9248 -9126
- package/package.json +1 -1
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { Props } from './index.d';
|
|
2
|
+
declare let __VLS_typeProps: Props;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
} & typeof __VLS_typeProps;
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
9
|
"update:modelValue": (modelValue: boolean) => void;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
type: import("vue").PropType<boolean>;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
}>> & {
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
}>>> & {
|
|
16
13
|
"onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
|
|
17
14
|
}, {
|
|
18
15
|
disabled: boolean;
|
|
19
16
|
}, {}>;
|
|
20
17
|
export default _default;
|
|
18
|
+
type __VLS_WithDefaults<P, D> = {
|
|
19
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
20
|
+
default: D[K];
|
|
21
|
+
}> : P[K];
|
|
22
|
+
};
|
|
23
|
+
type __VLS_Prettify<T> = {
|
|
24
|
+
[K in keyof T]: T[K];
|
|
25
|
+
} & {};
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToOption<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -28,3 +28,4 @@ export { default as AppPagination } from './AppPagination/AppPagination.vue';
|
|
|
28
28
|
export { default as AppToggle } from './AppToggle/AppToggle.vue';
|
|
29
29
|
export { default as AppMenu } from './AppMenu/AppMenu.vue';
|
|
30
30
|
export { default as AppSection } from './AppSection/AppSection.vue';
|
|
31
|
+
export { default as AppContextMenu } from './AppContextMenu/AppContextMenu.vue';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
import type { ContextMenuInstance, Shortcut } from '~components/AppContextMenu/index.d';
|
|
3
|
+
interface UseContextMenu<T> {
|
|
4
|
+
setShortcuts: (shortcuts: Shortcut[]) => void;
|
|
5
|
+
open: (item: T, event: PointerEvent) => Promise<unknown>;
|
|
6
|
+
close: () => Promise<void>;
|
|
7
|
+
shortcuts: Ref<Shortcut[]>;
|
|
8
|
+
instance: Ref<ContextMenuInstance | undefined>;
|
|
9
|
+
instances: Ref<ContextMenuInstance[]>;
|
|
10
|
+
}
|
|
11
|
+
export declare function useContextMenu<T>(): UseContextMenu<T>;
|
|
12
|
+
export {};
|