@v1nt1248/3nclient-lib 0.2.87 → 0.2.88
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/components/ui3n-autocomplete/types.d.ts +1 -1
- package/dist/components/ui3n-autocomplete/ui3n-autocomplete.vue.d.ts +3 -3
- package/dist/components/ui3n-badge/ui3n-badge-simple.vue.d.ts +3 -3
- package/dist/components/ui3n-badge/ui3n-badge.vue.d.ts +2 -2
- package/dist/components/ui3n-breadcrumbs/types.d.ts +1 -1
- package/dist/components/ui3n-breadcrumbs/ui3n-breadcrumb.vue.d.ts +3 -3
- package/dist/components/ui3n-breadcrumbs/ui3n-breadcrumbs.vue.d.ts +2 -2
- package/dist/components/ui3n-button/ui3n-button.vue.d.ts +3 -3
- package/dist/components/ui3n-checkbox/types.d.ts +1 -1
- package/dist/components/ui3n-checkbox/ui3n-checkbox.vue.d.ts +3 -3
- package/dist/components/ui3n-chip/types.d.ts +1 -1
- package/dist/components/ui3n-chip/ui3n-chip.vue.d.ts +3 -3
- package/dist/components/ui3n-dialog/types.d.ts +2 -2
- package/dist/components/ui3n-dialog/ui3n-dialog-provider.vue.d.ts +3 -3
- package/dist/components/ui3n-dialog/ui3n-dialog.vue.d.ts +3 -3
- package/dist/components/ui3n-drop-files/types.d.ts +1 -1
- package/dist/components/ui3n-drop-files/ui3n-drop-files.vue.d.ts +3 -3
- package/dist/components/ui3n-editable/ui3n-editable.vue.d.ts +3 -3
- package/dist/components/ui3n-editable/useContentEditable.d.ts +2 -2
- package/dist/components/ui3n-emoji/ui3n-emoji.vue.d.ts +3 -3
- package/dist/components/ui3n-icon/ui3n-icon.vue.d.ts +3 -3
- package/dist/components/ui3n-input/ui3n-input.vue.d.ts +6 -6
- package/dist/components/ui3n-input-file/ui3n-input-file.vue.d.ts +3 -3
- package/dist/components/ui3n-list/types.d.ts +1 -1
- package/dist/components/ui3n-list/ui3n-list.vue.d.ts +3 -3
- package/dist/components/ui3n-menu/types.d.ts +1 -1
- package/dist/components/ui3n-menu/ui3n-menu.vue.d.ts +5 -5
- package/dist/components/ui3n-notification/ui3n-notification.vue.d.ts +2 -2
- package/dist/components/ui3n-progress/ui3n-progress-circular.vue.d.ts +2 -2
- package/dist/components/ui3n-progress/ui3n-progress-linear.vue.d.ts +2 -2
- package/dist/components/ui3n-radio-group/types.d.ts +1 -1
- package/dist/components/ui3n-radio-group/ui3n-radio-group.vue.d.ts +3 -3
- package/dist/components/ui3n-radio-group/ui3n-radio.vue.d.ts +3 -3
- package/dist/components/ui3n-slider/ui3n-slider.vue.d.ts +3 -3
- package/dist/components/ui3n-step-line-bar/ui3n-step-line-bar.vue.d.ts +2 -2
- package/dist/components/ui3n-switch/types.d.ts +1 -1
- package/dist/components/ui3n-switch/ui3n-switch.vue.d.ts +3 -3
- package/dist/components/ui3n-table/composables/useTable.d.ts +6 -6
- package/dist/components/ui3n-table/types.d.ts +1 -1
- package/dist/components/ui3n-table/ui3n-table-sort-icon.vue.d.ts +1 -1
- package/dist/components/ui3n-table/ui3n-table.vue.d.ts +3 -3
- package/dist/components/ui3n-tabs/types.d.ts +1 -1
- package/dist/components/ui3n-tabs/ui3n-tabs.vue.d.ts +3 -3
- package/dist/components/ui3n-text/ui3n-text.vue.d.ts +3 -3
- package/dist/components/ui3n-tooltip/types.d.ts +1 -1
- package/dist/components/ui3n-tooltip/ui3n-tooltip.vue.d.ts +3 -3
- package/dist/components/ui3n-virtual-scroll/types.d.ts +1 -1
- package/dist/components/ui3n-virtual-scroll/ui3n-virtual-scroll.vue.d.ts +3 -3
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/plugins-keys.d.ts +9 -0
- package/dist/directives/ui3n-click-outside.d.ts +1 -1
- package/dist/directives/ui3n-html.d.ts +1 -1
- package/dist/directives/ui3n-long-press.d.ts +1 -1
- package/dist/directives/ui3n-resize.d.ts +1 -1
- package/dist/directives/ui3n-ripple.d.ts +1 -1
- package/dist/directives/ui3n-title.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/plugins/dialogs/dialogs.d.ts +3 -15
- package/dist/plugins/dialogs/store-dialog.d.ts +2 -2
- package/dist/plugins/dialogs/types.d.ts +2 -3
- package/dist/plugins/i18n/i18n.d.ts +1 -1
- package/dist/plugins/i18n/types.d.ts +0 -2
- package/dist/plugins/index.d.ts +5 -5
- package/dist/plugins/notifications/notifications.d.ts +1 -1
- package/dist/plugins/notifications/types.d.ts +0 -2
- package/dist/plugins/vue-bus/types.d.ts +0 -2
- package/dist/plugins/vue-bus/vue-bus.d.ts +1 -1
- package/dist/types/components.types.d.ts +1 -1
- package/dist/types/directives.types.d.ts +1 -1
- package/dist/ui3n-components.d.ts +1 -1
- package/dist/ui3n-components.js +3316 -3337
- package/dist/ui3n-plugins.d.ts +6 -5
- package/dist/ui3n-plugins.js +675 -669
- package/dist/ui3n-utils.js +69 -65
- package/dist/utils/ui/has-slot-content.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/ui3n-dialog/types.ts +1 -1
- package/src/components/ui3n-dialog/ui3n-dialog-provider.vue +6 -5
- package/src/components/ui3n-dialog/ui3n-dialog.vue +2 -0
|
@@ -8,17 +8,17 @@ declare function __VLS_template(): {
|
|
|
8
8
|
rootEl: HTMLDivElement;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<Ui3nSwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
12
|
change: (value: boolean) => any;
|
|
13
13
|
"update:modelValue": (value: boolean) => any;
|
|
14
|
-
}, string, import('
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<Ui3nSwitchProps> & Readonly<{
|
|
15
15
|
onChange?: ((value: boolean) => any) | undefined;
|
|
16
16
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
size: number | string;
|
|
19
19
|
color: string;
|
|
20
20
|
disabled: boolean;
|
|
21
|
-
}, {}, {}, {}, string, import('
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
22
|
switchEl: HTMLDivElement;
|
|
23
23
|
}, HTMLDivElement>;
|
|
24
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Ref, UnwrapRef } from '
|
|
1
|
+
import { Ref, UnwrapRef } from 'vue';
|
|
2
2
|
import { Ui3nTableBodyBaseItem, Ui3nTableConfig, Ui3nTableEmits, Ui3nTableProps } from '../types';
|
|
3
3
|
import { Ui3nCheckboxValue } from '../../ui3n-checkbox/types';
|
|
4
4
|
export declare function useTable<T extends Ui3nTableBodyBaseItem>(props: Ui3nTableProps<T>, emits: Ui3nTableEmits<T>): {
|
|
5
5
|
tableEl: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
6
|
-
unusedPlaceCssStyle: import('
|
|
6
|
+
unusedPlaceCssStyle: import('vue').ComputedRef<{
|
|
7
7
|
minHeight?: undefined;
|
|
8
8
|
} | {
|
|
9
9
|
minHeight: string;
|
|
@@ -21,12 +21,12 @@ export declare function useTable<T extends Ui3nTableBodyBaseItem>(props: Ui3nTab
|
|
|
21
21
|
} | undefined;
|
|
22
22
|
fieldAsRowKey?: UnwrapRef<keyof T> | undefined;
|
|
23
23
|
}>;
|
|
24
|
-
visibleColumns: import('
|
|
24
|
+
visibleColumns: import('vue').ComputedRef<import('../types').Ui3nTableHeadProps<T>[]>;
|
|
25
25
|
hasGroupActionsRow: Ref<boolean, boolean>;
|
|
26
|
-
showGroupActionsRow: import('
|
|
26
|
+
showGroupActionsRow: import('vue').ComputedRef<boolean>;
|
|
27
27
|
selectedRows: Ref<Set<T> | T[keyof T][], Set<T> | T[keyof T][]>;
|
|
28
|
-
selectedRowsArray: import('
|
|
29
|
-
selectedRowsSize: import('
|
|
28
|
+
selectedRowsArray: import('vue').ComputedRef<T[]>;
|
|
29
|
+
selectedRowsSize: import('vue').ComputedRef<number>;
|
|
30
30
|
closeGroupActionsRow: () => void;
|
|
31
31
|
getRowKey: (row: T, index: number) => string | number;
|
|
32
32
|
isRowSelected: (row: T) => boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Ui3nTableSortIconProps } from './types';
|
|
2
|
-
declare const _default: import('
|
|
2
|
+
declare const _default: import('vue').DefineComponent<Ui3nTableSortIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Ui3nTableSortIconProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
3
|
export default _default;
|
|
@@ -3,12 +3,12 @@ declare const _default: <T extends Ui3nTableBodyBaseItem>(__VLS_props: NonNullab
|
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
4
|
readonly "onChange:sort"?: ((val: import('./types').Ui3nTableSort<T>) => any) | undefined;
|
|
5
5
|
readonly "onSelect:row"?: ((val: T[]) => any) | undefined;
|
|
6
|
-
} & import('
|
|
7
|
-
expose(exposed: import('
|
|
6
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange:sort" | "onSelect:row"> & Ui3nTableProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
7
|
+
expose(exposed: import('vue').ShallowUnwrapRef<Ui3nTableExpose<T>>): void;
|
|
8
8
|
attrs: any;
|
|
9
9
|
slots: Readonly<import('./types').Ui3nTableOtherSlots & import('./types').Ui3nTableGroupActionsSlot<T> & import('./types').Ui3nTableHeaderCellSlot<T, string & keyof T> & import('./types').Ui3nTableBodyRowSlot<T> & import('./types').Ui3nTableBodyRowCellSlot<T, string & keyof T>> & import('./types').Ui3nTableOtherSlots & import('./types').Ui3nTableGroupActionsSlot<T> & import('./types').Ui3nTableHeaderCellSlot<T, string & keyof T> & import('./types').Ui3nTableBodyRowSlot<T> & import('./types').Ui3nTableBodyRowCellSlot<T, string & keyof T>;
|
|
10
10
|
emit: Ui3nTableEmits<T>;
|
|
11
|
-
}>) => import('
|
|
11
|
+
}>) => import('vue').VNode & {
|
|
12
12
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
13
13
|
};
|
|
14
14
|
export default _default;
|
|
@@ -8,9 +8,9 @@ declare function __VLS_template(): {
|
|
|
8
8
|
rootEl: HTMLDivElement;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<Ui3nTabsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
12
12
|
"update:modelValue": (val: number) => any;
|
|
13
|
-
}, string, import('
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<Ui3nTabsProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
modelValue: number;
|
|
@@ -20,7 +20,7 @@ declare const __VLS_component: import('../../../vue/dist/vue.esm-bundler.js').De
|
|
|
20
20
|
indicatorColor: string;
|
|
21
21
|
indicatorSize: number | string;
|
|
22
22
|
indicatorPosition: "normal" | "reverse";
|
|
23
|
-
}, {}, {}, {}, string, import('
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
24
|
tabs: HTMLDivElement;
|
|
25
25
|
}, HTMLDivElement>;
|
|
26
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ui3nTextProps } from './types';
|
|
2
|
-
declare const _default: import('
|
|
2
|
+
declare const _default: import('vue').DefineComponent<Ui3nTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
3
|
input: (value: string) => any;
|
|
4
4
|
enter: (value: {
|
|
5
5
|
value: string;
|
|
@@ -16,7 +16,7 @@ declare const _default: import('../../../vue/dist/vue.esm-bundler.js').DefineCom
|
|
|
16
16
|
escape: (value: Event) => any;
|
|
17
17
|
"update:valid": (value: boolean) => any;
|
|
18
18
|
"update:text": (value: string) => any;
|
|
19
|
-
}, string, import('
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<Ui3nTextProps> & Readonly<{
|
|
20
20
|
onInput?: ((value: string) => any) | undefined;
|
|
21
21
|
onEnter?: ((value: {
|
|
22
22
|
value: string;
|
|
@@ -39,7 +39,7 @@ declare const _default: import('../../../vue/dist/vue.esm-bundler.js').DefineCom
|
|
|
39
39
|
placeholder: string;
|
|
40
40
|
rows: number;
|
|
41
41
|
maxRows: number;
|
|
42
|
-
}, {}, {}, {}, string, import('
|
|
42
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
43
43
|
textareaElement: HTMLTextAreaElement;
|
|
44
44
|
}, HTMLDivElement>;
|
|
45
45
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNode } from '
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
2
|
export type Ui3nTooltipPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
3
3
|
export interface Ui3nTooltipProps {
|
|
4
4
|
modelValue?: boolean;
|
|
@@ -9,13 +9,13 @@ declare function __VLS_template(): {
|
|
|
9
9
|
rootEl: any;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<Ui3nTooltipProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
13
|
close: () => any;
|
|
14
14
|
"update:modelValue": (value: boolean) => any;
|
|
15
15
|
open: () => any;
|
|
16
16
|
opened: () => any;
|
|
17
17
|
closed: () => any;
|
|
18
|
-
}, string, import('
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<Ui3nTooltipProps> & Readonly<{
|
|
19
19
|
onClose?: (() => any) | undefined;
|
|
20
20
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
21
21
|
onOpen?: (() => any) | undefined;
|
|
@@ -30,7 +30,7 @@ declare const __VLS_component: import('../../../vue/dist/vue.esm-bundler.js').De
|
|
|
30
30
|
offsetY: string | number;
|
|
31
31
|
maxContentWidth: number | string;
|
|
32
32
|
trigger: "click" | "hover" | "manual";
|
|
33
|
-
}, {}, {}, {}, string, import('
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
34
34
|
floatingEl: HTMLDivElement;
|
|
35
35
|
floatingArrowEl: HTMLDivElement;
|
|
36
36
|
}, any>;
|
|
@@ -2,12 +2,12 @@ import { Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots } from './types';
|
|
|
2
2
|
declare const _default: <T extends {
|
|
3
3
|
id?: string;
|
|
4
4
|
}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('
|
|
6
|
-
expose(exposed: import('
|
|
5
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & Ui3nVirtualScrollProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
6
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Ui3nVirtualScrollSlots<T>> & Ui3nVirtualScrollSlots<T>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => import('
|
|
10
|
+
}>) => import('vue').VNode & {
|
|
11
11
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
import { DialogsPlugin } from '../plugins/dialogs/types';
|
|
3
|
+
import { I18nPlugin } from '../plugins/i18n/types';
|
|
4
|
+
import { NotificationsPlugin } from '../plugins/notifications/types';
|
|
5
|
+
import { VueBusPlugin } from '../plugins/vue-bus/types';
|
|
6
|
+
export declare const DIALOGS_KEY: InjectionKey<DialogsPlugin>;
|
|
7
|
+
export declare const I18N_KEY: InjectionKey<I18nPlugin>;
|
|
8
|
+
export declare const NOTIFICATIONS_KEY: InjectionKey<NotificationsPlugin>;
|
|
9
|
+
export declare const VUEBUS_KEY: InjectionKey<VueBusPlugin<any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DirectiveBinding } from '
|
|
1
|
+
import { DirectiveBinding } from 'vue';
|
|
2
2
|
import { default as sanitizeHtml } from 'sanitize-html';
|
|
3
3
|
export type Ui3nHtmlArg = 'sanitize';
|
|
4
4
|
export interface Ui3nHtmlValue extends sanitizeHtml.IOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DirectiveBinding } from '
|
|
1
|
+
import { DirectiveBinding } from 'vue';
|
|
2
2
|
export type Ui3nTitleDirectivePlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
3
3
|
export interface Ui3nTitleDirectiveProps {
|
|
4
4
|
text: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, Ref } from 'vue';
|
|
2
2
|
import { default as Ui3nButton } from './components/ui3n-button/ui3n-button.vue';
|
|
3
3
|
import { default as Ui3nChip } from './components/ui3n-chip/ui3n-chip.vue';
|
|
4
4
|
import { default as Ui3nCheckbox } from './components/ui3n-checkbox/ui3n-checkbox.vue';
|
|
@@ -45,7 +45,7 @@ export * from './plugins';
|
|
|
45
45
|
export * from './directives';
|
|
46
46
|
export * from './components';
|
|
47
47
|
export * from './types';
|
|
48
|
-
declare module '
|
|
48
|
+
declare module 'vue' {
|
|
49
49
|
interface ComponentCustomProperties {
|
|
50
50
|
$openDialog: <V>(component: Component, props: ExtractComponentProps<Component>) => Promise<{
|
|
51
51
|
event: Ui3nDialogEvent;
|
|
@@ -56,7 +56,7 @@ declare module '../vue/dist/vue.esm-bundler.js' {
|
|
|
56
56
|
data?: V;
|
|
57
57
|
}) => void;
|
|
58
58
|
$closeDialogs: () => void;
|
|
59
|
-
dialogStack:
|
|
59
|
+
dialogStack: Ref<DialogOptions<any>[]>;
|
|
60
60
|
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
61
61
|
$locale: string;
|
|
62
62
|
$tr: (key: string, placeholders?: Record<string, string>) => string;
|
|
@@ -115,7 +115,7 @@ declare module 'pinia' {
|
|
|
115
115
|
data?: V;
|
|
116
116
|
}) => void;
|
|
117
117
|
closeAll: () => void;
|
|
118
|
-
dialogStack:
|
|
118
|
+
dialogStack: Ref<DialogOptions<any>[]>;
|
|
119
119
|
};
|
|
120
120
|
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
121
121
|
$emitter: VueEventBus<any>;
|
|
@@ -1,25 +1,14 @@
|
|
|
1
|
-
import { App,
|
|
1
|
+
import { App, Ref } from 'vue';
|
|
2
|
+
import { ExtractComponentProps } from '../../types';
|
|
2
3
|
import { DialogOptions } from './types';
|
|
3
4
|
import { Ui3nDialogEvent } from '../../components/ui3n-dialog/types';
|
|
4
|
-
import { ExtractComponentProps } from '../../types';
|
|
5
|
-
export declare const dialogService: {
|
|
6
|
-
$openDialog<V>(component: Component, props: ExtractComponentProps<Component>): Promise<{
|
|
7
|
-
event: Ui3nDialogEvent;
|
|
8
|
-
data?: V;
|
|
9
|
-
}>;
|
|
10
|
-
$closeDialog<V>(id: string, value: {
|
|
11
|
-
event: Ui3nDialogEvent;
|
|
12
|
-
data?: V;
|
|
13
|
-
}): void;
|
|
14
|
-
$closeDialogs(): void;
|
|
15
|
-
readonly dialogStack: Reactive<DialogOptions<any>[]>;
|
|
16
|
-
};
|
|
17
5
|
declare const _default: {
|
|
18
6
|
install(app: App): void;
|
|
19
7
|
};
|
|
20
8
|
export default _default;
|
|
21
9
|
declare module '@vue/runtime-core' {
|
|
22
10
|
interface ComponentCustomProperties {
|
|
11
|
+
dialogStack: Ref<DialogOptions<any>[]>;
|
|
23
12
|
$openDialog: <V>(component: Component, props: ExtractComponentProps<Component>) => Promise<{
|
|
24
13
|
event: Ui3nDialogEvent;
|
|
25
14
|
data?: V;
|
|
@@ -29,6 +18,5 @@ declare module '@vue/runtime-core' {
|
|
|
29
18
|
data?: V;
|
|
30
19
|
}) => void;
|
|
31
20
|
$closeDialogs: () => void;
|
|
32
|
-
dialogStack: Reactive<DialogOptions<any>[]>;
|
|
33
21
|
}
|
|
34
22
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, Ref } from 'vue';
|
|
2
2
|
import { ExtractComponentProps } from '../../types';
|
|
3
3
|
import { Ui3nDialogEvent } from '../../components/ui3n-dialog/types';
|
|
4
4
|
import { DialogOptions } from './types';
|
|
@@ -13,6 +13,6 @@ export declare function storeDialogs(context: any): {
|
|
|
13
13
|
data?: V;
|
|
14
14
|
}) => void;
|
|
15
15
|
closeAll: () => void;
|
|
16
|
-
dialogStack:
|
|
16
|
+
dialogStack: Ref<DialogOptions<any>[]>;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component,
|
|
1
|
+
import { Component, Ref } from 'vue';
|
|
2
2
|
import { ExtractComponentProps } from '../../types';
|
|
3
3
|
import { Ui3nDialogEvent } from '../../components/ui3n-dialog/types';
|
|
4
4
|
export interface DialogOptions<V> {
|
|
@@ -20,6 +20,5 @@ export interface DialogsPlugin {
|
|
|
20
20
|
data?: V;
|
|
21
21
|
}) => void;
|
|
22
22
|
$closeDialogs: () => void;
|
|
23
|
-
dialogStack:
|
|
23
|
+
dialogStack: Ref<DialogOptions<any>[]>;
|
|
24
24
|
}
|
|
25
|
-
export declare const DIALOGS_KEY: InjectionKey<DialogsPlugin>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InjectionKey } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
1
|
export interface I18nOptions {
|
|
3
2
|
lang: string;
|
|
4
3
|
messages: Record<string, Record<string, string>>;
|
|
@@ -8,4 +7,3 @@ export interface I18nPlugin {
|
|
|
8
7
|
$tr: (key: string, placeholders?: Record<string, string>) => string;
|
|
9
8
|
$changeLocale: (lang: string) => void;
|
|
10
9
|
}
|
|
11
|
-
export declare const I18N_KEY: InjectionKey<I18nPlugin>;
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i18n } from './i18n/i18n';
|
|
2
|
-
import {
|
|
2
|
+
import { I18nOptions, I18nPlugin } from './i18n/types';
|
|
3
3
|
import { notifications } from './notifications/notifications';
|
|
4
|
-
import {
|
|
4
|
+
import { NotificationsPlugin } from './notifications/types';
|
|
5
5
|
import { vueBus } from './vue-bus/vue-bus';
|
|
6
|
-
import {
|
|
6
|
+
import { VueBusPlugin } from './vue-bus/types';
|
|
7
7
|
import { default as dialogs } from './dialogs/dialogs';
|
|
8
|
-
import {
|
|
8
|
+
import { DialogsPlugin, DialogOptions } from './dialogs/types';
|
|
9
9
|
import { storeI18n } from './i18n/store-i18n';
|
|
10
10
|
import { storeNotifications } from './notifications/store-notifications';
|
|
11
11
|
import { storeVueBus } from './vue-bus/store-vue-bus';
|
|
12
12
|
import { storeDialogs } from './dialogs/store-dialog';
|
|
13
|
-
export { i18n, I18nOptions, I18nPlugin,
|
|
13
|
+
export { i18n, I18nOptions, I18nPlugin, notifications, NotificationsPlugin, vueBus, VueBusPlugin, dialogs, DialogsPlugin, DialogOptions, storeI18n, storeNotifications, storeVueBus, storeDialogs, };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { InjectionKey } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
1
|
import { Ui3nNotificationProps } from '../../components/ui3n-notification/types';
|
|
3
2
|
export interface NotificationsPlugin {
|
|
4
3
|
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
5
4
|
}
|
|
6
|
-
export declare const NOTIFICATIONS_KEY: InjectionKey<NotificationsPlugin>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InjectionKey } from '../../../vue/dist/vue.esm-bundler.js';
|
|
2
1
|
export type CbFunction<T> = (arg: T) => void;
|
|
3
2
|
export interface VueEventBus<T extends object> {
|
|
4
3
|
on: <Ev extends keyof T>(type: Ev, handler: CbFunction<T[Ev]>) => void;
|
|
@@ -10,4 +9,3 @@ export interface VueEventBus<T extends object> {
|
|
|
10
9
|
export interface VueBusPlugin<T extends object> {
|
|
11
10
|
$emitter: VueEventBus<T>;
|
|
12
11
|
}
|
|
13
|
-
export declare const VUEBUS_KEY: InjectionKey<VueBusPlugin<any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNodeProps, AllowedComponentProps } from '
|
|
1
|
+
import { VNodeProps, AllowedComponentProps } from 'vue';
|
|
2
2
|
export type ExtractComponentProps<TComponent> = TComponent extends new () => {
|
|
3
3
|
$props: infer P;
|
|
4
4
|
} ? Omit<P, keyof VNodeProps | keyof AllowedComponentProps> : never;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPublicInstance, MaybeRef, MaybeRefOrGetter } from '
|
|
1
|
+
import { ComponentPublicInstance, MaybeRef, MaybeRefOrGetter } from 'vue';
|
|
2
2
|
export type Fn = () => void;
|
|
3
3
|
export type VueInstance = ComponentPublicInstance;
|
|
4
4
|
export type MaybeElement = HTMLElement | SVGElement | VueInstance | undefined | null;
|
|
@@ -38,7 +38,7 @@ export * from './directives';
|
|
|
38
38
|
export * from './components';
|
|
39
39
|
export * from './composables';
|
|
40
40
|
export * from './types';
|
|
41
|
-
declare module '
|
|
41
|
+
declare module 'vue' {
|
|
42
42
|
interface GlobalComponents {
|
|
43
43
|
Ui3nAutocomplete: typeof Ui3nAutocomplete;
|
|
44
44
|
Ui3nBadge: typeof Ui3nBadge;
|