@v1nt1248/3nclient-lib 0.1.6 → 0.1.7
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/index.d.ts +40 -23
- package/dist/components/ui3n-badge/types.d.ts +13 -0
- package/dist/components/{ui3n-badge-simple.vue.d.ts → ui3n-badge/ui3n-badge-simple.vue.d.ts} +1 -6
- package/dist/components/{ui3n-badge.vue.d.ts → ui3n-badge/ui3n-badge.vue.d.ts} +1 -7
- package/dist/components/ui3n-breadcrumbs/types.d.ts +17 -0
- package/dist/components/{ui3n-breadcrumb.vue.d.ts → ui3n-breadcrumbs/ui3n-breadcrumb.vue.d.ts} +1 -12
- package/dist/components/{ui3n-breadcrumbs.vue.d.ts → ui3n-breadcrumbs/ui3n-breadcrumbs.vue.d.ts} +1 -4
- package/dist/components/ui3n-button/types.d.ts +19 -0
- package/dist/components/{ui3n-button.vue.d.ts → ui3n-button/ui3n-button.vue.d.ts} +1 -19
- package/dist/components/ui3n-checkbox/types.d.ts +18 -0
- package/dist/components/{ui3n-checkbox.vue.d.ts → ui3n-checkbox/ui3n-checkbox.vue.d.ts} +1 -17
- package/dist/components/ui3n-chip/types.d.ts +21 -0
- package/dist/components/{ui3n-chip.vue.d.ts → ui3n-chip/ui3n-chip.vue.d.ts} +1 -20
- package/dist/components/ui3n-dialog/types.d.ts +36 -0
- package/dist/components/{ui3n-dialog.vue.d.ts → ui3n-dialog/ui3n-dialog.vue.d.ts} +1 -36
- package/dist/components/ui3n-drop-files/types.d.ts +12 -0
- package/dist/components/{ui3n-drop-files.vue.d.ts → ui3n-drop-files/ui3n-drop-files.vue.d.ts} +2 -11
- package/dist/components/ui3n-emoji/types.d.ts +8 -0
- package/dist/components/{ui3n-emoji.vue.d.ts → ui3n-emoji/ui3n-emoji.vue.d.ts} +1 -8
- package/dist/components/ui3n-icon/types.d.ts +16 -0
- package/dist/components/{ui3n-icon.vue.d.ts → ui3n-icon/ui3n-icon.vue.d.ts} +1 -16
- package/dist/components/ui3n-input/types.d.ts +25 -0
- package/dist/components/{ui3n-input.vue.d.ts → ui3n-input/ui3n-input.vue.d.ts} +1 -25
- package/dist/components/ui3n-list/types.d.ts +20 -0
- package/dist/components/{ui3n-list.vue.d.ts → ui3n-list/ui3n-list.vue.d.ts} +1 -19
- package/dist/components/ui3n-notification/types.d.ts +11 -0
- package/dist/components/{ui3n-notification.vue.d.ts → ui3n-notification/ui3n-notification.vue.d.ts} +1 -1
- package/dist/components/ui3n-progress/types.d.ts +17 -0
- package/dist/components/{ui3n-progress-circular.vue.d.ts → ui3n-progress/ui3n-progress-circular.vue.d.ts} +1 -9
- package/dist/components/{ui3n-progress-linear.vue.d.ts → ui3n-progress/ui3n-progress-linear.vue.d.ts} +1 -8
- package/dist/components/ui3n-step-line-bar/types.d.ts +5 -0
- package/dist/components/{ui3n-step-line-bar.vue.d.ts → ui3n-step-line-bar/ui3n-step-line-bar.vue.d.ts} +1 -5
- package/dist/components/ui3n-switch/types.d.ts +14 -0
- package/dist/components/{ui3n-switch.vue.d.ts → ui3n-switch/ui3n-switch.vue.d.ts} +1 -13
- package/dist/components/ui3n-table/composables/useTable.d.ts +1 -1
- package/dist/components/ui3n-table/types.d.ts +5 -0
- package/dist/components/{ui3n-table-sort-icon.vue.d.ts → ui3n-table/ui3n-table-sort-icon.vue.d.ts} +1 -5
- package/dist/components/ui3n-tabs/types.d.ts +16 -0
- package/dist/components/{ui3n-tabs.vue.d.ts → ui3n-tabs/ui3n-tabs.vue.d.ts} +2 -18
- package/dist/components/ui3n-text/types.d.ts +17 -0
- package/dist/components/{ui3n-text.vue.d.ts → ui3n-text/ui3n-text.vue.d.ts} +1 -17
- package/dist/components/ui3n-virtual-scroll/types.d.ts +12 -0
- package/dist/components/{ui3n-virtual-scroll.vue.d.ts → ui3n-virtual-scroll/ui3n-virtual-scroll.vue.d.ts} +1 -11
- package/dist/constants/index.d.ts +0 -1
- package/dist/index.d.ts +26 -24
- package/dist/plugins/dialogs/dialogs.d.ts +9 -0
- package/dist/plugins/{store-dialogs.d.ts → dialogs/store-dialogs.d.ts} +1 -1
- package/dist/plugins/dialogs/types.d.ts +12 -0
- package/dist/plugins/i18n/i18n.d.ts +9 -0
- package/dist/plugins/{i18n.d.ts → i18n/types.d.ts} +1 -9
- package/dist/plugins/index.d.ts +13 -9
- package/dist/plugins/notifications/notifications.d.ts +8 -0
- package/dist/plugins/{store-notifications.d.ts → notifications/store-notifications.d.ts} +1 -1
- package/dist/plugins/notifications/types.d.ts +6 -0
- package/dist/plugins/{store-vue-bus.d.ts → vue-bus/store-vue-bus.d.ts} +1 -1
- package/dist/plugins/vue-bus/types.d.ts +13 -0
- package/dist/plugins/{vue-bus.d.ts → vue-bus/vue-bus.d.ts} +2 -6
- package/dist/style.css +1 -0
- package/dist/{components.d.ts → ui3n-components.d.ts} +22 -22
- package/dist/ui3n-plugins.d.ts +44 -0
- package/dist/ui3n-plugins.js +5678 -0
- package/dist/{utils.d.ts → ui3n-utils.d.ts} +1 -1
- package/dist/{tools → utils}/index.d.ts +2 -2
- package/package.json +9 -10
- package/src/components/index.ts +46 -41
- package/src/components/ui3n-badge/types.ts +14 -0
- package/src/components/{ui3n-badge-simple.vue → ui3n-badge/ui3n-badge-simple.vue} +29 -35
- package/src/components/ui3n-badge/ui3n-badge.vue +82 -0
- package/src/components/ui3n-breadcrumbs/types.ts +21 -0
- package/src/components/{ui3n-breadcrumb.vue → ui3n-breadcrumbs/ui3n-breadcrumb.vue} +1 -14
- package/src/components/{ui3n-breadcrumbs.vue → ui3n-breadcrumbs/ui3n-breadcrumbs.vue} +1 -4
- package/src/components/ui3n-button/types.ts +20 -0
- package/src/components/{ui3n-button.vue → ui3n-button/ui3n-button.vue} +3 -23
- package/src/components/ui3n-checkbox/types.ts +22 -0
- package/src/components/{ui3n-checkbox.vue → ui3n-checkbox/ui3n-checkbox.vue} +2 -23
- package/src/components/ui3n-chip/types.ts +19 -0
- package/src/components/{ui3n-chip.vue → ui3n-chip/ui3n-chip.vue} +32 -50
- package/src/components/ui3n-dialog/types.ts +40 -0
- package/src/components/{ui3n-dialog.vue → ui3n-dialog/ui3n-dialog.vue} +3 -49
- package/src/components/ui3n-drop-files/types.ts +15 -0
- package/src/components/{ui3n-drop-files.vue → ui3n-drop-files/ui3n-drop-files.vue} +2 -10
- package/src/components/ui3n-emoji/types.ts +9 -0
- package/src/components/{ui3n-emoji.vue → ui3n-emoji/ui3n-emoji.vue} +2 -11
- package/src/components/ui3n-icon/types.ts +17 -0
- package/src/components/ui3n-icon/ui3n-icon.vue +53 -0
- package/src/components/ui3n-input/types.ts +26 -0
- package/src/components/{ui3n-input.vue → ui3n-input/ui3n-input.vue} +4 -30
- package/src/components/ui3n-list/types.ts +17 -0
- package/src/components/{ui3n-list.vue → ui3n-list/ui3n-list.vue} +1 -16
- package/src/components/ui3n-notification/types.ts +11 -0
- package/src/components/{ui3n-notification.vue → ui3n-notification/ui3n-notification.vue} +3 -3
- package/src/components/ui3n-progress/types.ts +18 -0
- package/src/components/{ui3n-progress-circular.vue → ui3n-progress/ui3n-progress-circular.vue} +1 -10
- package/src/components/{ui3n-progress-linear.vue → ui3n-progress/ui3n-progress-linear.vue} +1 -9
- package/src/components/ui3n-step-line-bar/types.ts +5 -0
- package/src/components/{ui3n-step-line-bar.vue → ui3n-step-line-bar/ui3n-step-line-bar.vue} +1 -5
- package/src/components/ui3n-switch/types.ts +17 -0
- package/src/components/{ui3n-switch.vue → ui3n-switch/ui3n-switch.vue} +1 -16
- package/src/components/ui3n-table/composables/useTable.ts +1 -1
- package/src/components/ui3n-table/types.ts +6 -0
- package/src/components/{ui3n-table-sort-icon.vue → ui3n-table/ui3n-table-sort-icon.vue} +2 -7
- package/src/components/ui3n-table/ui3n-table.vue +3 -3
- package/src/components/ui3n-tabs/types.ts +19 -0
- package/src/components/{ui3n-tabs.vue → ui3n-tabs/ui3n-tabs.vue} +3 -20
- package/src/components/ui3n-text/types.ts +18 -0
- package/src/components/{ui3n-text.vue → ui3n-text/ui3n-text.vue} +2 -21
- package/src/components/ui3n-virtual-scroll/types.ts +11 -0
- package/src/components/{ui3n-virtual-scroll.vue → ui3n-virtual-scroll/ui3n-virtual-scroll.vue} +1 -11
- package/dist/constants/types.d.ts +0 -29
- package/dist/plugins/dialogs.d.ts +0 -18
- package/dist/plugins/notifications.d.ts +0 -12
- package/dist/plugins.d.ts +0 -32
- package/dist/plugins.js +0 -1
- package/src/components/ui3n-badge.vue +0 -89
- package/src/components/ui3n-icon.vue +0 -70
- package/src/components/ui3n-table-simple.vue +0 -328
- /package/dist/plugins/{store-i18n.d.ts → i18n/store-i18n.d.ts} +0 -0
- /package/dist/plugins/{icons.d.ts → icons/icons.d.ts} +0 -0
- /package/dist/{ui-3n-lib.js → ui3n-components.js} +0 -0
- /package/dist/{utils.js → ui3n-utils.js} +0 -0
- /package/dist/{tools/common.helpers.d.ts → utils/common.utils.d.ts} +0 -0
- /package/dist/{tools → utils}/sqlite-on-3nstorage/deferred.d.ts +0 -0
- /package/dist/{tools → utils}/sqlite-on-3nstorage/index.d.ts +0 -0
- /package/dist/{tools → utils}/sqlite-on-3nstorage/synced.d.ts +0 -0
- /package/dist/{tools → utils}/sqlite-on-3nstorage/types.d.ts +0 -0
- /package/dist/{tools → utils}/textarea-max-rows.d.ts +0 -0
- /package/dist/{tools/ui.helpers.d.ts → utils/ui.utils.d.ts} +0 -0
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
label: string;
|
|
3
|
-
current: number;
|
|
4
|
-
steps: number;
|
|
5
|
-
}
|
|
1
|
+
import { Ui3nStepLineBarProps } from './types';
|
|
6
2
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nStepLineBarProps>, {
|
|
7
3
|
current: number;
|
|
8
4
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nStepLineBarProps>, {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export interface Ui3nSwitchProps {
|
|
3
|
+
modelValue: boolean;
|
|
4
|
+
size?: number | string;
|
|
5
|
+
color?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface Ui3nSwitchEmits {
|
|
9
|
+
(ev: 'change', value: boolean): void;
|
|
10
|
+
(ev: 'update:modelValue', value: boolean): void;
|
|
11
|
+
}
|
|
12
|
+
export interface Ui3nSwitchSlots {
|
|
13
|
+
default: () => VNode;
|
|
14
|
+
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
modelValue: boolean;
|
|
3
|
-
size?: number | string;
|
|
4
|
-
color?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface Ui3nSwitchEmits {
|
|
8
|
-
(ev: 'change', value: boolean): void;
|
|
9
|
-
(ev: 'update:modelValue', value: boolean): void;
|
|
10
|
-
}
|
|
11
|
-
export interface Ui3nSwitchSlots {
|
|
12
|
-
default: () => any;
|
|
13
|
-
}
|
|
1
|
+
import { Ui3nSwitchProps, Ui3nSwitchSlots } from './types';
|
|
14
2
|
declare function __VLS_template(): Readonly<Ui3nSwitchSlots> & Ui3nSwitchSlots;
|
|
15
3
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nSwitchProps>, {
|
|
16
4
|
size: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref, UnwrapRef } from 'vue';
|
|
2
2
|
import { Ui3nTableBodyBaseItem, Ui3nTableEmits, Ui3nTableProps } from '../types';
|
|
3
|
-
import { Ui3nCheckboxValue } from '../../ui3n-checkbox
|
|
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>;
|
|
6
6
|
currentConfig: Ref<{
|
|
@@ -63,3 +63,8 @@ export type Ui3nTableBodyRowCellSlot<T extends Ui3nTableBodyBaseItem, K extends
|
|
|
63
63
|
[p in `body-row-cell-${K}`]: (scope: Ui3nTableBodyRowCellSlotScope<T, K>) => VNode;
|
|
64
64
|
};
|
|
65
65
|
export type Ui3nTableSlots<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> = Ui3nTableGroupActionsSlot & Ui3nTableHeaderCellSlot<T, K> & Ui3nTableBodyRowSlot<T> & Ui3nTableBodyRowCellSlot<T, K>;
|
|
66
|
+
export interface Ui3nTableSortIconProps {
|
|
67
|
+
size?: string | number;
|
|
68
|
+
color?: string;
|
|
69
|
+
value: 'asc' | 'desc';
|
|
70
|
+
}
|
package/dist/components/{ui3n-table-sort-icon.vue.d.ts → ui3n-table/ui3n-table-sort-icon.vue.d.ts}
RENAMED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
size?: string | number;
|
|
3
|
-
color?: string;
|
|
4
|
-
value: 'asc' | 'desc';
|
|
5
|
-
}
|
|
1
|
+
import { Ui3nTableSortIconProps } from './types';
|
|
6
2
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<Ui3nTableSortIconProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<Ui3nTableSortIconProps>>>, {}, {}>;
|
|
7
3
|
export default _default;
|
|
8
4
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export interface Ui3nTabsProps {
|
|
3
|
+
modelValue: number;
|
|
4
|
+
itemDirection?: 'horizontal' | 'vertical';
|
|
5
|
+
activeColor?: string;
|
|
6
|
+
inactiveColor?: string;
|
|
7
|
+
indicatorColor?: string;
|
|
8
|
+
indicatorSize?: number | string;
|
|
9
|
+
indicatorPosition?: 'normal' | 'reverse';
|
|
10
|
+
}
|
|
11
|
+
export interface Ui3nTabsEmits {
|
|
12
|
+
(ev: 'update:modelValue', val: number): void;
|
|
13
|
+
}
|
|
14
|
+
export interface Ui3nTabsSlots {
|
|
15
|
+
default: () => VNode;
|
|
16
|
+
}
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
itemDirection?: 'horizontal' | 'vertical';
|
|
4
|
-
activeColor?: string;
|
|
5
|
-
inactiveColor?: string;
|
|
6
|
-
indicatorColor?: string;
|
|
7
|
-
indicatorSize?: number | string;
|
|
8
|
-
indicatorPosition?: 'normal' | 'reverse';
|
|
9
|
-
}
|
|
10
|
-
export interface Ui3nTabsEmits {
|
|
11
|
-
(ev: 'update:modelValue', val: number): void;
|
|
12
|
-
}
|
|
13
|
-
export interface Ui3nTabsSlots {
|
|
14
|
-
default: () => any;
|
|
15
|
-
}
|
|
16
|
-
declare function __VLS_template(): {
|
|
17
|
-
default?(_: {}): any;
|
|
18
|
-
};
|
|
1
|
+
import { Ui3nTabsProps, Ui3nTabsSlots } from './types';
|
|
2
|
+
declare function __VLS_template(): Readonly<Ui3nTabsSlots> & Ui3nTabsSlots;
|
|
19
3
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nTabsProps>, {
|
|
20
4
|
modelValue: number;
|
|
21
5
|
itemDirection: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface Ui3nTextProps {
|
|
2
|
+
text: string;
|
|
3
|
+
rows?: number;
|
|
4
|
+
maxRows?: number;
|
|
5
|
+
label?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
rules?: Array<(v: string) => string | boolean>;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface Ui3nTextEmits {
|
|
11
|
+
(ev: 'init', value: HTMLTextAreaElement): void;
|
|
12
|
+
(ev: 'input', value: string): void;
|
|
13
|
+
(ev: 'focus', value: Event): void;
|
|
14
|
+
(ev: 'blur', value: Event): void;
|
|
15
|
+
(ev: 'update:text', value: string): void;
|
|
16
|
+
(ev: 'update:valid', value: boolean): void;
|
|
17
|
+
}
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
text: string;
|
|
3
|
-
rows?: number;
|
|
4
|
-
maxRows?: number;
|
|
5
|
-
label?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
rules?: Array<(v: string) => any>;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface Ui3nTextEmits {
|
|
11
|
-
(ev: 'init', value: HTMLTextAreaElement): void;
|
|
12
|
-
(ev: 'input', value: string): void;
|
|
13
|
-
(ev: 'focus', value: Event): void;
|
|
14
|
-
(ev: 'blur', value: Event): void;
|
|
15
|
-
(ev: 'update:text', value: string): void;
|
|
16
|
-
(ev: 'update:valid', value: boolean): void;
|
|
17
|
-
}
|
|
1
|
+
import { Ui3nTextProps } from './types';
|
|
18
2
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Ui3nTextProps>, {
|
|
19
3
|
rows: number;
|
|
20
4
|
maxRows: number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export interface Ui3nVirtualScrollProps<T> {
|
|
3
|
+
items: T[];
|
|
4
|
+
minChildHeight: number;
|
|
5
|
+
renderAhead?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface Ui3nVirtualScrollSlots<T> {
|
|
8
|
+
item: ({ value, index }: {
|
|
9
|
+
value: T;
|
|
10
|
+
index: number;
|
|
11
|
+
}) => VNode;
|
|
12
|
+
}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
items: T[];
|
|
3
|
-
minChildHeight: number;
|
|
4
|
-
renderAhead?: number;
|
|
5
|
-
}
|
|
6
|
-
export interface Ui3nVirtualScrollSlots<T> {
|
|
7
|
-
item: ({ value, index }: {
|
|
8
|
-
value: T;
|
|
9
|
-
index: number;
|
|
10
|
-
}) => any;
|
|
11
|
-
}
|
|
1
|
+
import { Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots } from './types';
|
|
12
2
|
declare const _default: <T extends {
|
|
13
3
|
id?: string;
|
|
14
4
|
}>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import {
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as Ui3nList } from './components/ui3n-list.vue';
|
|
1
|
+
import { default as Ui3nButton } from './components/ui3n-button/ui3n-button.vue';
|
|
2
|
+
import { default as Ui3nChip } from './components/ui3n-chip/ui3n-chip.vue';
|
|
3
|
+
import { default as Ui3nCheckbox } from './components/ui3n-checkbox/ui3n-checkbox.vue';
|
|
4
|
+
import { default as Ui3nDialog } from './components/ui3n-dialog/ui3n-dialog.vue';
|
|
5
|
+
import { Ui3nDialogComponentProps } from './components/ui3n-dialog/types';
|
|
6
|
+
import { default as Ui3nDropFiles } from './components/ui3n-drop-files/ui3n-drop-files.vue';
|
|
7
|
+
import { default as Ui3nEmoji } from './components/ui3n-emoji/ui3n-emoji.vue';
|
|
8
|
+
import { default as Ui3nIcon } from './components/ui3n-icon/ui3n-icon.vue';
|
|
9
|
+
import { default as Ui3nInput } from './components/ui3n-input/ui3n-input.vue';
|
|
10
|
+
import { default as Ui3nList } from './components/ui3n-list/ui3n-list.vue';
|
|
12
11
|
import { default as Ui3nMenu } from './components/ui3n-menu/ui3n-menu.vue';
|
|
13
|
-
import { default as Ui3nNotification } from './components/ui3n-notification.vue';
|
|
14
|
-
import {
|
|
12
|
+
import { default as Ui3nNotification } from './components/ui3n-notification/ui3n-notification.vue';
|
|
13
|
+
import { Ui3nNotificationProps } from './components/ui3n-notification/types';
|
|
14
|
+
import { default as Ui3nTableSortIcon } from './components/ui3n-table/ui3n-table-sort-icon.vue';
|
|
15
15
|
import { default as Ui3nTable } from './components/ui3n-table/ui3n-table.vue';
|
|
16
|
-
import { default as Ui3nText } from './components/ui3n-text.vue';
|
|
17
|
-
import { default as Ui3nVirtualScroll } from './components/ui3n-virtual-scroll.vue';
|
|
18
|
-
import { default as Ui3nTabs } from './components/ui3n-tabs.vue';
|
|
19
|
-
import { default as Ui3nBadge } from './components/ui3n-badge.vue';
|
|
20
|
-
import { default as Ui3nBreadcrumb } from './components/ui3n-breadcrumb.vue';
|
|
21
|
-
import { default as Ui3nBreadcrumbs } from './components/ui3n-breadcrumbs.vue';
|
|
22
|
-
import { default as Ui3nSwitch } from './components/ui3n-switch.vue';
|
|
23
|
-
import { default as Ui3nStepLineBar } from './components/ui3n-step-line-bar.vue';
|
|
24
|
-
import { default as Ui3nProgressLinear } from './components/ui3n-progress-linear.vue';
|
|
25
|
-
import { default as Ui3nProgressCircular } from './components/ui3n-progress-circular.vue';
|
|
16
|
+
import { default as Ui3nText } from './components/ui3n-text/ui3n-text.vue';
|
|
17
|
+
import { default as Ui3nVirtualScroll } from './components/ui3n-virtual-scroll/ui3n-virtual-scroll.vue';
|
|
18
|
+
import { default as Ui3nTabs } from './components/ui3n-tabs/ui3n-tabs.vue';
|
|
19
|
+
import { default as Ui3nBadge } from './components/ui3n-badge/ui3n-badge.vue';
|
|
20
|
+
import { default as Ui3nBreadcrumb } from './components/ui3n-breadcrumbs/ui3n-breadcrumb.vue';
|
|
21
|
+
import { default as Ui3nBreadcrumbs } from './components/ui3n-breadcrumbs/ui3n-breadcrumbs.vue';
|
|
22
|
+
import { default as Ui3nSwitch } from './components/ui3n-switch/ui3n-switch.vue';
|
|
23
|
+
import { default as Ui3nStepLineBar } from './components/ui3n-step-line-bar/ui3n-step-line-bar.vue';
|
|
24
|
+
import { default as Ui3nProgressLinear } from './components/ui3n-progress/ui3n-progress-linear.vue';
|
|
25
|
+
import { default as Ui3nProgressCircular } from './components/ui3n-progress/ui3n-progress-circular.vue';
|
|
26
26
|
import { default as Ui3nHtml } from './directives/ui3n-html';
|
|
27
27
|
import { default as Ui3nClickOutside } from './directives/ui3n-click-outside';
|
|
28
|
+
import { CbFunction, VueEventBus } from './plugins/vue-bus/types';
|
|
29
|
+
import { DialogInstance } from './plugins/dialogs/types';
|
|
28
30
|
export * from './constants';
|
|
29
|
-
export * from './
|
|
31
|
+
export * from './utils';
|
|
30
32
|
export * from './plugins';
|
|
31
33
|
export * from './directives';
|
|
32
34
|
export * from './components';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { Ui3nDialogComponentProps } from '../../components/ui3n-dialog/types';
|
|
3
|
+
import { DialogInstance } from './types';
|
|
4
|
+
export declare const dialogs: Plugin;
|
|
5
|
+
declare module '@vue/runtime-core' {
|
|
6
|
+
interface ComponentCustomProperties {
|
|
7
|
+
$openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ui3nDialogComponentProps } from '
|
|
1
|
+
import { Ui3nDialogComponentProps } from '../../components/ui3n-dialog/types';
|
|
2
2
|
export declare function storeDialogs(context: any): {
|
|
3
3
|
$openDialog: (params: Ui3nDialogComponentProps) => void;
|
|
4
4
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InjectionKey, VNode } from 'vue';
|
|
2
|
+
import { Ui3nDialogComponentProps } from '../../components/ui3n-dialog/types';
|
|
3
|
+
export type DialogInstance = {
|
|
4
|
+
id: string;
|
|
5
|
+
el: HTMLDivElement;
|
|
6
|
+
vNode: VNode;
|
|
7
|
+
destroy: () => void;
|
|
8
|
+
};
|
|
9
|
+
export interface DialogsPlugin {
|
|
10
|
+
$openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare const DIALOGS_KEY: InjectionKey<DialogsPlugin>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
export declare const i18n: Plugin;
|
|
3
|
+
declare module '@vue/runtime-core' {
|
|
4
|
+
interface ComponentCustomProperties {
|
|
5
|
+
$locale: string;
|
|
6
|
+
$tr: (key: string, placeholders?: Record<string, string>) => string;
|
|
7
|
+
$changeLocale: (lang: string) => void;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
2
|
export interface I18nOptions {
|
|
3
3
|
lang: string;
|
|
4
4
|
messages: Record<string, Record<string, string>>;
|
|
@@ -9,11 +9,3 @@ export interface I18nPlugin {
|
|
|
9
9
|
$changeLocale: (lang: string) => void;
|
|
10
10
|
}
|
|
11
11
|
export declare const I18N_KEY: InjectionKey<I18nPlugin>;
|
|
12
|
-
export declare const i18n: Plugin;
|
|
13
|
-
declare module '@vue/runtime-core' {
|
|
14
|
-
interface ComponentCustomProperties {
|
|
15
|
-
$locale: string;
|
|
16
|
-
$tr: (key: string, placeholders?: Record<string, string>) => string;
|
|
17
|
-
$changeLocale: (lang: string) => void;
|
|
18
|
-
}
|
|
19
|
-
}
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { i18n
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { i18n } from './i18n/i18n';
|
|
2
|
+
import { I18N_KEY, I18nOptions, I18nPlugin } from './i18n/types';
|
|
3
|
+
import { useIcons } from './icons/icons';
|
|
4
|
+
import { notifications } from './notifications/notifications';
|
|
5
|
+
import { NOTIFICATIONS_KEY, NotificationsPlugin } from './notifications/types';
|
|
6
|
+
import { vueBus } from './vue-bus/vue-bus';
|
|
7
|
+
import { VUEBUS_KEY, VueBusPlugin } from './vue-bus/types';
|
|
8
|
+
import { dialogs } from './dialogs/dialogs';
|
|
9
|
+
import { DIALOGS_KEY, DialogsPlugin } from './dialogs/types';
|
|
10
|
+
import { storeI18n } from './i18n/store-i18n';
|
|
11
|
+
import { storeNotifications } from './notifications/store-notifications';
|
|
12
|
+
import { storeVueBus } from './vue-bus/store-vue-bus';
|
|
13
|
+
import { storeDialogs } from './dialogs/store-dialogs';
|
|
10
14
|
export { i18n, I18nOptions, I18nPlugin, I18N_KEY, useIcons, notifications, NotificationsPlugin, NOTIFICATIONS_KEY, vueBus, VueBusPlugin, VUEBUS_KEY, dialogs, DialogsPlugin, DIALOGS_KEY, storeI18n, storeNotifications, storeVueBus, storeDialogs, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { Ui3nNotificationProps } from '../../components/ui3n-notification/types';
|
|
3
|
+
export declare const notifications: Plugin;
|
|
4
|
+
declare module '@vue/runtime-core' {
|
|
5
|
+
interface ComponentCustomProperties {
|
|
6
|
+
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
import { Ui3nNotificationProps } from '../../components/ui3n-notification/types';
|
|
3
|
+
export interface NotificationsPlugin {
|
|
4
|
+
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const NOTIFICATIONS_KEY: InjectionKey<NotificationsPlugin>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
export type CbFunction = (...args: any[]) => void;
|
|
3
|
+
export interface VueEventBus {
|
|
4
|
+
on: (type: string | symbol, handler: CbFunction) => void;
|
|
5
|
+
off: (type: string | symbol, handler?: CbFunction) => void;
|
|
6
|
+
emit: (type: string | symbol, arg?: any) => void;
|
|
7
|
+
once: (type: string | symbol, handler: CbFunction) => void;
|
|
8
|
+
clear: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface VueBusPlugin {
|
|
11
|
+
$emitter: VueEventBus;
|
|
12
|
+
}
|
|
13
|
+
export declare const VUEBUS_KEY: InjectionKey<VueBusPlugin>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { Plugin
|
|
2
|
-
import { CbFunction
|
|
3
|
-
export interface VueBusPlugin {
|
|
4
|
-
$emitter: VueEventBus;
|
|
5
|
-
}
|
|
6
|
-
export declare const VUEBUS_KEY: InjectionKey<VueBusPlugin>;
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { CbFunction } from './types';
|
|
7
3
|
export declare const vueBus: Plugin;
|
|
8
4
|
declare module '@vue/runtime-core' {
|
|
9
5
|
interface ComponentCustomProperties {
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._icon_vksh7_1{min-width:var(--d73a5870);min-height:var(--43aea936);flex-grow:0;flex-shrink:0}._button_1ja11_1{--ui3n-button-padding: var(--spacing-m);--ui3n-button-text-size: var(--font-12);--ui3n-button-text-color-custom: var(--color-text-button-primary-default);--ui3n-button-bg-color-custom: var(--color-bg-button-primary-default);display:flex;justify-content:center;align-items:center;gap:var(--spacing-s);border:none;outline:none;border-radius:var(--spacing-xs);font-size:var(--ui3n-button-text-size);font-weight:600;line-height:calc(var(--ui3n-button-text-size) * 1.25);-webkit-user-select:none;user-select:none}._regular_1ja11_19{height:var(--spacing-l);padding:0 var(--spacing-m)}._regular_1ja11_19._withIcon-left_1ja11_23{padding-left:var(--spacing-s)}._regular_1ja11_19._withIcon-right_1ja11_26{padding-right:var(--spacing-s)}._small_1ja11_30{height:var(--spacing-ml);padding:0 var(--spacing-s)}._small_1ja11_30._withIcon-left_1ja11_23{padding-left:var(--spacing-xs)}._small_1ja11_30._withIcon-right_1ja11_26{padding-right:var(--spacing-xs)}._block_1ja11_41{width:100%}._primary_1ja11_45{background:var(--color-bg-button-primary-default);color:var(--color-text-button-primary-default)}._primary_1ja11_45:hover{background:var(--color-bg-button-primary-hover);color:var(--color-text-button-primary-hover);background-position:center;transition:background .35s ease-in-out}._primary_1ja11_45:hover:not([disabled]){cursor:pointer}._primary_1ja11_45:hover:not([disabled]):hover{background:var(--color-bg-button-primary-hover) radial-gradient(circle,transparent 1%,var(--color-bg-button-primary-hover) 1%) center/15000%}._primary_1ja11_45:hover:not([disabled]):active{opacity:1;background-color:var(--grey-20);background-size:100%;transition:background 0s}._primary_1ja11_45[disabled]{background:var(--color-bg-button-primary-disabled);color:var(--color-text-button-primary-disabled);pointer-events:none}._secondary_1ja11_73{background:var(--color-bg-button-secondary-default);color:var(--color-text-button-secondary-default)}._secondary_1ja11_73:hover{background:var(--color-bg-button-secondary-hover);color:var(--color-text-button-secondary-hover);background-position:center;transition:background .35s ease-in-out}._secondary_1ja11_73:hover:not([disabled]){cursor:pointer}._secondary_1ja11_73:hover:not([disabled]):hover{background:var(--color-bg-button-secondary-hover) radial-gradient(circle,transparent 1%,var(--color-bg-button-secondary-hover) 1%) center/15000%}._secondary_1ja11_73:hover:not([disabled]):active{opacity:1;background-color:var(--grey-20);background-size:100%;transition:background 0s}._secondary_1ja11_73[disabled]{background:var(--color-bg-button-secondary-disabled);color:var(--color-text-button-secondary-disabled);pointer-events:none}._tertiary_1ja11_101{background:transparent;color:var(--color-text-button-secondary-default);padding:0}._tertiary_1ja11_101:hover{background:transparent;color:var(--color-text-button-secondary-hover);text-decoration:underline;cursor:pointer}._tertiary_1ja11_101[disabled]{background:transparent;color:var(--color-text-button-secondary-disabled);pointer-events:none}._icon_1ja11_118{--ui3n-button-icon-bg-color: hsl(from var(--ui3n-button-bg-color-custom) h s calc(l - 10) );background:var(--ui3n-button-bg-color-custom);color:var(--ui3n-button-text-color-custom);border-radius:50%}._icon_1ja11_118._regular_1ja11_19{min-width:var(--spacing-l);width:var(--spacing-l);padding:0}._icon_1ja11_118._small_1ja11_30{min-width:var(--spacing-ml);width:var(--spacing-ml);padding:0}._icon_1ja11_118:hover{background:var(--ui3n-button-icon-bg-color);background-position:center;transition:background .35s ease-in-out}._icon_1ja11_118:hover:not([disabled]){cursor:pointer}._icon_1ja11_118:hover:not([disabled]):hover{background:var(--ui3n-button-icon-bg-color) radial-gradient(circle,transparent 1%,var(--ui3n-button-icon-bg-color) 1%) center/15000%}._icon_1ja11_118:hover:not([disabled]):active{opacity:1;background-color:var(--grey-20);background-size:100%;transition:background 0s}._icon_1ja11_118[disabled]{opacity:.7;pointer-events:none}._custom_1ja11_156{--ui3n-button-custom-bg-color: hsl(from var(--ui3n-button-bg-color-custom) h s calc(l - 10) );background:var(--ui3n-button-bg-color-custom);color:var(--ui3n-button-text-color-custom)}._custom_1ja11_156:hover{background:var(--ui3n-button-custom-bg-color);background-position:center;transition:background .35s ease-in-out}._custom_1ja11_156:hover:not([disabled]){cursor:pointer}._custom_1ja11_156:hover:not([disabled]):hover{background:var(--ui3n-button-custom-bg-color) radial-gradient(circle,transparent 1%,var(--ui3n-button-custom-bg-color) 1%) center/15000%}._custom_1ja11_156:hover:not([disabled]):active{opacity:1;background-color:var(--grey-20);background-size:100%;transition:background 0s}._custom_1ja11_156[disabled]{opacity:.7;pointer-events:none}._withIcon-left_1ja11_23{flex-direction:row}._withIcon-right_1ja11_26{flex-direction:row-reverse}._buttonIcon_1ja11_191,._text_1ja11_192{pointer-events:none}._elevation_1ja11_196{box-shadow:0 2px 1px -1px var(--shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}._notification_1gl9l_1{--ui3n-notification-width: 380px;display:flex;position:relative;z-index:5000;border-radius:var(--spacing-s);outline:1px solid var(--color-border-control-tritery-default);padding:var(--spacing-m);max-width:var(--ui3n-notification-width);margin-bottom:var(--spacing-s);justify-content:center;align-items:center;gap:var(--spacing-s)}._withIcon_1gl9l_16{justify-content:flex-start}._icon_1gl9l_20{position:relative;min-width:var(--spacing-l);width:var(--spacing-l);min-height:var(--spacing-l);height:var(--spacing-l);border-radius:50%;display:flex;justify-content:center;align-items:center}._content_1gl9l_32{position:relative;flex-grow:2;font-size:var(--font-12);font-weight:500;line-height:var(--font-16)}._closeBtn_1gl9l_40{position:absolute;z-index:1;top:0;right:0}._infoType_1gl9l_47{background-color:var(--info-fill-default)}._infoType_1gl9l_47 ._icon_1gl9l_20{background-color:var(--info-content-default)}._infoType_1gl9l_47 ._content_1gl9l_32{color:var(--info-content-default)}._successType_1gl9l_57{background-color:var(--success-fill-default)}._successType_1gl9l_57 ._icon_1gl9l_20{background-color:var(--success-content-default)}._successType_1gl9l_57 ._content_1gl9l_32{color:var(--success-content-default)}._warningType_1gl9l_67{background-color:var(--warning-fill-default)}._warningType_1gl9l_67 ._icon_1gl9l_20{background-color:var(--warning-content-default)}._warningType_1gl9l_67 ._content_1gl9l_32{color:var(--warning-content-default)}._errorType_1gl9l_77{background-color:var(--error-fill-default)}._errorType_1gl9l_77 ._icon_1gl9l_20{background-color:var(--error-content-default)}._errorType_1gl9l_77 ._content_1gl9l_32{color:var(--error-content-default)}._leftPosition_1gl9l_87{margin-left:0;margin-right:auto}._centerPosition_1gl9l_92{margin-left:auto;margin-right:auto}._rightPosition_1gl9l_97{margin-left:auto;margin-right:0}._overlay_1g9mf_1{position:fixed;z-index:1000;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;background-color:#0006}._dialog_1g9mf_11{--dialog-border-radius: 8px;--dialog-title-padding: 16px 32px 16px 16px;--dialog-title-font-size: 14px;--dialog-actions-padding: 16px;--dialog-confirm-button-color: var(--color-text-button-primary-default);--dialog-cancel-button-color: var(--color-text-button-secondary-default);--dialog-confirm-background-color: var(--color-bg-button-primary-default);--dialog-cancel-background-color: var(--color-bg-button-secondary-default);position:relative;display:flex;flex-direction:column;height:auto;max-height:95%;background-color:var(--color-bg-block-primary-default);border-radius:var(--dialog-border-radius);outline:none;box-shadow:0 2px 1px -1px var(--shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--shadow-key-ambient-opacity, rgba(0, 0, 0, .12))}._title_1g9mf_31{position:relative;width:100%;height:calc(var(--spacing-m) * 3);display:flex;justify-content:flex-start;align-items:center;padding:var(--dialog-title-padding);font-size:var(--dialog-title-font-size);font-weight:600;line-height:1.2;color:var(--color-text-control-primary-default);border-bottom:1px solid var(--color-border-block-primary-default);max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._closeBtn_1g9mf_50{position:absolute;right:4px;top:12px}._content_1g9mf_56{flex-grow:2;overflow-y:auto}._actions_1g9mf_61{padding:var(--dialog-actions-padding);display:flex;justify-content:flex-end;align-items:center;gap:var(--spacing-s)}._bothBtns_1g9mf_69{margin-left:var(--spacing-s)}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { default as Ui3nButton } from './components/ui3n-button.vue';
|
|
2
|
-
import { default as Ui3nChip } from './components/ui3n-chip.vue';
|
|
3
|
-
import { default as Ui3nCheckbox } from './components/ui3n-checkbox.vue';
|
|
4
|
-
import { default as Ui3nDialog } from './components/ui3n-dialog.vue';
|
|
5
|
-
import { default as Ui3nDropFiles } from './components/ui3n-drop-files.vue';
|
|
6
|
-
import { default as Ui3nEmoji } from './components/ui3n-emoji.vue';
|
|
7
|
-
import { default as Ui3nIcon } from './components/ui3n-icon.vue';
|
|
8
|
-
import { default as Ui3nInput } from './components/ui3n-input.vue';
|
|
9
|
-
import { default as Ui3nList } from './components/ui3n-list.vue';
|
|
1
|
+
import { default as Ui3nButton } from './components/ui3n-button/ui3n-button.vue';
|
|
2
|
+
import { default as Ui3nChip } from './components/ui3n-chip/ui3n-chip.vue';
|
|
3
|
+
import { default as Ui3nCheckbox } from './components/ui3n-checkbox/ui3n-checkbox.vue';
|
|
4
|
+
import { default as Ui3nDialog } from './components/ui3n-dialog/ui3n-dialog.vue';
|
|
5
|
+
import { default as Ui3nDropFiles } from './components/ui3n-drop-files/ui3n-drop-files.vue';
|
|
6
|
+
import { default as Ui3nEmoji } from './components/ui3n-emoji/ui3n-emoji.vue';
|
|
7
|
+
import { default as Ui3nIcon } from './components/ui3n-icon/ui3n-icon.vue';
|
|
8
|
+
import { default as Ui3nInput } from './components/ui3n-input/ui3n-input.vue';
|
|
9
|
+
import { default as Ui3nList } from './components/ui3n-list/ui3n-list.vue';
|
|
10
10
|
import { default as Ui3nMenu } from './components/ui3n-menu/ui3n-menu.vue';
|
|
11
|
-
import { default as Ui3nNotification } from './components/ui3n-notification.vue';
|
|
12
|
-
import { default as Ui3nTableSortIcon } from './components/ui3n-table-sort-icon.vue';
|
|
11
|
+
import { default as Ui3nNotification } from './components/ui3n-notification/ui3n-notification.vue';
|
|
12
|
+
import { default as Ui3nTableSortIcon } from './components/ui3n-table/ui3n-table-sort-icon.vue';
|
|
13
13
|
import { default as Ui3nTable } from './components/ui3n-table/ui3n-table.vue';
|
|
14
|
-
import { default as Ui3nTabs } from './components/ui3n-tabs.vue';
|
|
15
|
-
import { default as Ui3nText } from './components/ui3n-text.vue';
|
|
16
|
-
import { default as Ui3nVirtualScroll } from './components/ui3n-virtual-scroll.vue';
|
|
17
|
-
import { default as Ui3nBadge } from './components/ui3n-badge.vue';
|
|
18
|
-
import { default as Ui3nBreadcrumb } from './components/ui3n-breadcrumb.vue';
|
|
19
|
-
import { default as Ui3nBreadcrumbs } from './components/ui3n-breadcrumbs.vue';
|
|
20
|
-
import { default as Ui3nSwitch } from './components/ui3n-switch.vue';
|
|
21
|
-
import { default as Ui3nStepLineBar } from './components/ui3n-step-line-bar.vue';
|
|
22
|
-
import { default as Ui3nProgressLinear } from './components/ui3n-progress-linear.vue';
|
|
23
|
-
import { default as Ui3nProgressCircular } from './components/ui3n-progress-circular.vue';
|
|
14
|
+
import { default as Ui3nTabs } from './components/ui3n-tabs/ui3n-tabs.vue';
|
|
15
|
+
import { default as Ui3nText } from './components/ui3n-text/ui3n-text.vue';
|
|
16
|
+
import { default as Ui3nVirtualScroll } from './components/ui3n-virtual-scroll/ui3n-virtual-scroll.vue';
|
|
17
|
+
import { default as Ui3nBadge } from './components/ui3n-badge/ui3n-badge.vue';
|
|
18
|
+
import { default as Ui3nBreadcrumb } from './components/ui3n-breadcrumbs/ui3n-breadcrumb.vue';
|
|
19
|
+
import { default as Ui3nBreadcrumbs } from './components/ui3n-breadcrumbs/ui3n-breadcrumbs.vue';
|
|
20
|
+
import { default as Ui3nSwitch } from './components/ui3n-switch/ui3n-switch.vue';
|
|
21
|
+
import { default as Ui3nStepLineBar } from './components/ui3n-step-line-bar/ui3n-step-line-bar.vue';
|
|
22
|
+
import { default as Ui3nProgressLinear } from './components/ui3n-progress/ui3n-progress-linear.vue';
|
|
23
|
+
import { default as Ui3nProgressCircular } from './components/ui3n-progress/ui3n-progress-circular.vue';
|
|
24
24
|
import { default as Ui3nTooltip } from './components/ui3n-tooltip/ui3n-tooltip.vue';
|
|
25
25
|
import { default as Ui3nHtml } from './directives/ui3n-html';
|
|
26
26
|
import { default as Ui3nClickOutside } from './directives/ui3n-click-outside';
|
|
27
27
|
export * from './directives';
|
|
28
|
-
export * from './components';
|
|
28
|
+
export * from './ui3n-components';
|
|
29
29
|
declare module 'vue' {
|
|
30
30
|
interface GlobalComponents {
|
|
31
31
|
Ui3nBadge: typeof Ui3nBadge;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { i18n } from './plugins/i18n/i18n';
|
|
2
|
+
import { storeI18n } from './plugins/i18n/store-i18n';
|
|
3
|
+
import { I18N_KEY, I18nOptions, I18nPlugin } from './plugins/i18n/types';
|
|
4
|
+
import { useIcons } from './plugins/icons/icons';
|
|
5
|
+
import { Ui3nNotificationProps } from './components/ui3n-notification/types';
|
|
6
|
+
import { notifications } from './plugins/notifications/notifications';
|
|
7
|
+
import { storeNotifications } from './plugins/notifications/store-notifications';
|
|
8
|
+
import { NOTIFICATIONS_KEY, NotificationsPlugin } from './plugins/notifications/types';
|
|
9
|
+
import { dialogs } from './plugins/dialogs/dialogs';
|
|
10
|
+
import { storeDialogs } from './plugins/dialogs/store-dialogs';
|
|
11
|
+
import { DIALOGS_KEY, DialogInstance, DialogsPlugin } from './plugins/dialogs/types';
|
|
12
|
+
import { Ui3nDialogComponentProps } from './components/ui3n-dialog/types';
|
|
13
|
+
import { vueBus } from './plugins/vue-bus/vue-bus';
|
|
14
|
+
import { storeVueBus } from './plugins/vue-bus/store-vue-bus';
|
|
15
|
+
import { VUEBUS_KEY, CbFunction, VueEventBus, VueBusPlugin } from './plugins/vue-bus/types';
|
|
16
|
+
declare module 'vue' {
|
|
17
|
+
interface ComponentCustomProperties {
|
|
18
|
+
$openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
|
|
19
|
+
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
20
|
+
$locale: string;
|
|
21
|
+
$tr: (key: string, placeholders?: Record<string, string>) => string;
|
|
22
|
+
$changeLocale: (lang: string) => void;
|
|
23
|
+
$emitter: VueEventBus;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
declare module 'pinia' {
|
|
27
|
+
interface PiniaCustomProperties {
|
|
28
|
+
$openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
|
|
29
|
+
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
30
|
+
$emitter: {
|
|
31
|
+
on: (type: string | symbol, handler: CbFunction) => void;
|
|
32
|
+
off: (type: string | symbol, handler?: CbFunction) => void;
|
|
33
|
+
emit: (type: string | symbol, arguments?: any) => void;
|
|
34
|
+
once: (type: string | symbol, handler: CbFunction) => void;
|
|
35
|
+
clear: () => void;
|
|
36
|
+
};
|
|
37
|
+
$i18n: {
|
|
38
|
+
locale: string;
|
|
39
|
+
changeLocale: (lang: string) => void;
|
|
40
|
+
tr: (key: string, placeholders?: Record<string, string>) => string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export { i18n, storeI18n, I18N_KEY, I18nOptions, I18nPlugin, useIcons, notifications, storeNotifications, NOTIFICATIONS_KEY, NotificationsPlugin, dialogs, storeDialogs, DIALOGS_KEY, DialogsPlugin, DialogInstance, vueBus, storeVueBus, VUEBUS_KEY, CbFunction, VueBusPlugin, VueEventBus, };
|