@v1nt1248/3nclient-lib 0.1.6 → 0.1.8
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} +21 -21
- package/dist/ui3n-components.js +16394 -0
- 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/dist/ui-3n-lib.js +0 -5252
- 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/{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,26 +1,7 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
2
|
import { computed, onMounted, ref, watch } from 'vue';
|
|
4
|
-
import { patchTextareaMaxRowsSupport } from '
|
|
5
|
-
|
|
6
|
-
export interface Ui3nTextProps {
|
|
7
|
-
text: string;
|
|
8
|
-
rows?: number;
|
|
9
|
-
maxRows?: number;
|
|
10
|
-
label?: string;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
rules?: Array<(v: string) => any>;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface Ui3nTextEmits {
|
|
17
|
-
(ev: 'init', value: HTMLTextAreaElement): void;
|
|
18
|
-
(ev: 'input', value: string): void;
|
|
19
|
-
(ev: 'focus', value: Event): void;
|
|
20
|
-
(ev: 'blur', value: Event): void;
|
|
21
|
-
(ev: 'update:text', value: string): void;
|
|
22
|
-
(ev: 'update:valid', value: boolean): void;
|
|
23
|
-
}
|
|
3
|
+
import { patchTextareaMaxRowsSupport } from '@/utils';
|
|
4
|
+
import type { Ui3nTextEmits, Ui3nTextProps } from './types';
|
|
24
5
|
|
|
25
6
|
const props = withDefaults(
|
|
26
7
|
defineProps<Ui3nTextProps>(),
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface Ui3nVirtualScrollProps<T> {
|
|
4
|
+
items: T[];
|
|
5
|
+
minChildHeight: number;
|
|
6
|
+
renderAhead?: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface Ui3nVirtualScrollSlots<T> {
|
|
10
|
+
item: ({ value, index }: { value: T; index: number }) => VNode;
|
|
11
|
+
}
|
package/src/components/{ui3n-virtual-scroll.vue → ui3n-virtual-scroll/ui3n-virtual-scroll.vue}
RENAMED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
<script lang="ts" setup generic="T extends { id?: string }">
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
2
|
import { computed, onMounted, ref } from 'vue';
|
|
4
|
-
|
|
5
|
-
export interface Ui3nVirtualScrollProps<T> {
|
|
6
|
-
items: T[];
|
|
7
|
-
minChildHeight: number;
|
|
8
|
-
renderAhead?: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface Ui3nVirtualScrollSlots<T> {
|
|
12
|
-
item: ({ value, index }: { value: T, index: number}) => any;
|
|
13
|
-
}
|
|
3
|
+
import type { Ui3nVirtualScrollProps, Ui3nVirtualScrollSlots } from './types';
|
|
14
4
|
|
|
15
5
|
const props = withDefaults(defineProps<Ui3nVirtualScrollProps<T>>(), {
|
|
16
6
|
renderAhead: 20,
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export type CbFunction = (...args: any[]) => void;
|
|
2
|
-
export interface VueEventBus {
|
|
3
|
-
on: (type: string | symbol, handler: CbFunction) => void;
|
|
4
|
-
off: (type: string | symbol, handler?: CbFunction) => void;
|
|
5
|
-
emit: (type: string | symbol, arg?: any) => void;
|
|
6
|
-
once: (type: string | symbol, handler: CbFunction) => void;
|
|
7
|
-
clear: () => void;
|
|
8
|
-
}
|
|
9
|
-
export interface Ui3nNotificationProps {
|
|
10
|
-
id?: string;
|
|
11
|
-
type?: 'success' | 'warning' | 'info' | 'error';
|
|
12
|
-
content: string;
|
|
13
|
-
position?: 'left' | 'center' | 'right';
|
|
14
|
-
duration?: number;
|
|
15
|
-
withIcon?: boolean;
|
|
16
|
-
teleport?: string;
|
|
17
|
-
onOpen?: () => void;
|
|
18
|
-
onClose?: () => void;
|
|
19
|
-
}
|
|
20
|
-
export interface ListingEntryTypeExtended extends web3n.files.Stats {
|
|
21
|
-
id: string | undefined;
|
|
22
|
-
name: string;
|
|
23
|
-
fullPath?: string;
|
|
24
|
-
tags?: string[];
|
|
25
|
-
type: string;
|
|
26
|
-
ext?: string;
|
|
27
|
-
}
|
|
28
|
-
export type EntityAction = 'rename' | 'add:favorites' | 'open:menu';
|
|
29
|
-
export type SortField = 'name' | 'type' | 'createdAt' | 'changedAt';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Plugin, VNode, InjectionKey } from 'vue';
|
|
2
|
-
import { Ui3nDialogComponentProps } from '../components/ui3n-dialog.vue';
|
|
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>;
|
|
13
|
-
export declare const dialogs: Plugin;
|
|
14
|
-
declare module '@vue/runtime-core' {
|
|
15
|
-
interface ComponentCustomProperties {
|
|
16
|
-
$openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Plugin, InjectionKey } from 'vue';
|
|
2
|
-
import { Ui3nNotificationProps } from '../constants';
|
|
3
|
-
export interface NotificationsPlugin {
|
|
4
|
-
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const NOTIFICATIONS_KEY: InjectionKey<NotificationsPlugin>;
|
|
7
|
-
export declare const notifications: Plugin;
|
|
8
|
-
declare module '@vue/runtime-core' {
|
|
9
|
-
interface ComponentCustomProperties {
|
|
10
|
-
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
11
|
-
}
|
|
12
|
-
}
|
package/dist/plugins.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { CbFunction, Ui3nNotificationProps, VueEventBus } from './constants';
|
|
2
|
-
import { DialogInstance } from './plugins/dialogs';
|
|
3
|
-
import { Ui3nDialogComponentProps } from './components/ui3n-dialog.vue';
|
|
4
|
-
export * from './plugins';
|
|
5
|
-
declare module 'vue' {
|
|
6
|
-
interface ComponentCustomProperties {
|
|
7
|
-
$openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
|
|
8
|
-
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
9
|
-
$locale: string;
|
|
10
|
-
$tr: (key: string, placeholders?: Record<string, string>) => string;
|
|
11
|
-
$changeLocale: (lang: string) => void;
|
|
12
|
-
$emitter: VueEventBus;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
declare module 'pinia' {
|
|
16
|
-
interface PiniaCustomProperties {
|
|
17
|
-
$openDialog: (params: Ui3nDialogComponentProps) => DialogInstance | undefined;
|
|
18
|
-
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
19
|
-
$emitter: {
|
|
20
|
-
on: (type: string | symbol, handler: CbFunction) => void;
|
|
21
|
-
off: (type: string | symbol, handler?: CbFunction) => void;
|
|
22
|
-
emit: (type: string | symbol, arguments?: any) => void;
|
|
23
|
-
once: (type: string | symbol, handler: CbFunction) => void;
|
|
24
|
-
clear: () => void;
|
|
25
|
-
};
|
|
26
|
-
$i18n: {
|
|
27
|
-
locale: string;
|
|
28
|
-
changeLocale: (lang: string) => void;
|
|
29
|
-
tr: (key: string, placeholders?: Record<string, string>) => string;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
package/dist/plugins.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "pinia";
|