@v1nt1248/3nclient-lib 0.2.83 → 0.2.85
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 +3 -2
- package/dist/components/ui3n-dialog/types.d.ts +15 -18
- package/dist/components/ui3n-dialog/ui3n-dialog.vue.d.ts +8 -11
- package/dist/index.d.ts +25 -8
- package/dist/plugins/dialogs/dialogs.d.ts +29 -6
- package/dist/plugins/dialogs/store-dialog.d.ts +18 -0
- package/dist/plugins/dialogs/types.d.ts +20 -9
- package/dist/plugins/dialogs/ui3n-dialog-provider.vue.d.ts +13 -0
- package/dist/plugins/index.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/ui3n-components.d.ts +2 -0
- package/dist/ui3n-components.js +6749 -6744
- package/dist/ui3n-plugins.d.ts +24 -10
- package/dist/ui3n-plugins.js +2039 -3562
- package/package.json +8 -8
- package/src/components/index.ts +16 -4
- package/src/components/ui3n-dialog/types.ts +12 -18
- package/src/components/ui3n-dialog/ui3n-dialog.vue +161 -243
- package/dist/plugins/dialogs/store-dialogs.d.ts +0 -10
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@v1nt1248/3nclient-lib",
|
|
3
3
|
"license": "AGPL-3.0-or-later",
|
|
4
4
|
"author": "v1nt1248",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.85",
|
|
6
6
|
"description": "Library for 3NWeb clients",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"build:components": "LIB_NAME=lib vite build",
|
|
38
38
|
"build:plugins": "LIB_NAME=plugins vite build",
|
|
39
39
|
"build:utils": "LIB_NAME=utils vite build",
|
|
40
|
-
"build": "pnpm clean:dist && pnpm build:plugins && pnpm build:utils && pnpm build:components && pnpm copy:css",
|
|
40
|
+
"build": "pnpm clean:dist && vue-tsc --noEmit && pnpm build:plugins && pnpm build:utils && pnpm build:components && pnpm copy:css",
|
|
41
41
|
"pack": "pnpm build && npm pack && cp *.tgz ./dist && rm *.tgz",
|
|
42
42
|
"preview": "vite preview",
|
|
43
43
|
"stylelint": "stylelint --config .stylelint.config.cjs 'src/**/*.{vue,scss,css}'",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"pinia": "3.0.4",
|
|
64
|
-
"vue": "3.5.
|
|
64
|
+
"vue": "3.5.28"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@eslint/eslintrc": "^3.3.1",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"@typescript-eslint/eslint-plugin": "8.50.0",
|
|
73
73
|
"@typescript-eslint/parser": "8.50.0",
|
|
74
74
|
"@vitejs/plugin-vue": "6.0.3",
|
|
75
|
-
"@vue/compiler-core": "3.5.
|
|
75
|
+
"@vue/compiler-core": "3.5.28",
|
|
76
76
|
"@vue/eslint-config-typescript": "14.6.0",
|
|
77
|
-
"@vue/runtime-core": "3.5.
|
|
77
|
+
"@vue/runtime-core": "3.5.28",
|
|
78
78
|
"@vuedx/typescript-plugin-vue": "0.7.6",
|
|
79
79
|
"eslint": "9.39.2",
|
|
80
80
|
"eslint-config-prettier": "10.1.8",
|
|
@@ -101,11 +101,11 @@
|
|
|
101
101
|
"vite": "7.3.1",
|
|
102
102
|
"vite-plugin-css-injected-by-js": "3.5.2",
|
|
103
103
|
"vite-plugin-dts": "4.5.4",
|
|
104
|
-
"vite-plugin-vue-devtools": "8.0.
|
|
104
|
+
"vite-plugin-vue-devtools": "8.0.6",
|
|
105
105
|
"vitepress": "1.6.4",
|
|
106
|
-
"vue": "3.5.
|
|
106
|
+
"vue": "3.5.28",
|
|
107
107
|
"vue-eslint-parser": "10.2.0",
|
|
108
|
-
"vue-tsc": "3.2.
|
|
108
|
+
"vue-tsc": "3.2.4"
|
|
109
109
|
},
|
|
110
110
|
"packageManager": "pnpm@10.26.0",
|
|
111
111
|
"pnpm": {
|
package/src/components/index.ts
CHANGED
|
@@ -16,7 +16,12 @@ import type { Ui3nInputFileProps, Ui3nInputFileEmits } from './ui3n-input-file/t
|
|
|
16
16
|
import Ui3nText from './ui3n-text/ui3n-text.vue';
|
|
17
17
|
import type { Ui3nTextProps, Ui3nTextEmits } from './ui3n-text/types';
|
|
18
18
|
import Ui3nCheckbox from './ui3n-checkbox/ui3n-checkbox.vue';
|
|
19
|
-
import type {
|
|
19
|
+
import type {
|
|
20
|
+
Ui3nCheckboxProps,
|
|
21
|
+
Ui3nCheckboxEmits,
|
|
22
|
+
Ui3nCheckboxSlots,
|
|
23
|
+
Ui3nCheckboxValue,
|
|
24
|
+
} from './ui3n-checkbox/types';
|
|
20
25
|
import Ui3nNotification from './ui3n-notification/ui3n-notification.vue';
|
|
21
26
|
import Ui3nTableSortIcon from './ui3n-table/ui3n-table-sort-icon.vue';
|
|
22
27
|
import Ui3nTable from './ui3n-table/ui3n-table.vue';
|
|
@@ -37,11 +42,12 @@ import type {
|
|
|
37
42
|
Ui3nTableEmits,
|
|
38
43
|
Ui3nTableExpose,
|
|
39
44
|
} from './ui3n-table/types';
|
|
45
|
+
import Ui3nDialogProvider from '../plugins/dialogs/ui3n-dialog-provider.vue';
|
|
40
46
|
import Ui3nDialog from './ui3n-dialog/ui3n-dialog.vue';
|
|
41
47
|
import type {
|
|
42
48
|
Ui3nDialogComponentProps,
|
|
43
49
|
Ui3nDialogComponentEmits,
|
|
44
|
-
|
|
50
|
+
Ui3nDialogComponentSlots,
|
|
45
51
|
Ui3nDialogEvent,
|
|
46
52
|
} from './ui3n-dialog/types';
|
|
47
53
|
import Ui3nMenu from './ui3n-menu/ui3n-menu.vue';
|
|
@@ -70,7 +76,12 @@ import Ui3nProgressLinear from './ui3n-progress/ui3n-progress-linear.vue';
|
|
|
70
76
|
import Ui3nProgressCircular from './ui3n-progress/ui3n-progress-circular.vue';
|
|
71
77
|
import type { Ui3nProgressCircularProps, Ui3nProgressLinearProps } from './ui3n-progress/types';
|
|
72
78
|
import Ui3nTooltip from './ui3n-tooltip/ui3n-tooltip.vue';
|
|
73
|
-
import type {
|
|
79
|
+
import type {
|
|
80
|
+
Ui3nTooltipEmits,
|
|
81
|
+
Ui3nTooltipProps,
|
|
82
|
+
Ui3nTooltipSlots,
|
|
83
|
+
Ui3nTooltipPlacement,
|
|
84
|
+
} from './ui3n-tooltip/types';
|
|
74
85
|
import Ui3nRadio from './ui3n-radio-group/ui3n-radio.vue';
|
|
75
86
|
import Ui3nRadioGroup from './ui3n-radio-group/ui3n-radio-group.vue';
|
|
76
87
|
import type {
|
|
@@ -144,10 +155,11 @@ export {
|
|
|
144
155
|
Ui3nTableProps,
|
|
145
156
|
Ui3nTableEmits,
|
|
146
157
|
Ui3nTableExpose,
|
|
158
|
+
Ui3nDialogProvider,
|
|
147
159
|
Ui3nDialog,
|
|
148
160
|
Ui3nDialogComponentProps,
|
|
149
161
|
Ui3nDialogComponentEmits,
|
|
150
|
-
|
|
162
|
+
Ui3nDialogComponentSlots,
|
|
151
163
|
Ui3nDialogEvent,
|
|
152
164
|
Ui3nMenu,
|
|
153
165
|
Ui3nMenuProps,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
import type { Ui3nIconField } from '@/types';
|
|
3
3
|
|
|
4
|
-
export type Ui3nDialogEvent = '
|
|
4
|
+
export type Ui3nDialogEvent = 'close' | 'confirm' | 'cancel' | 'click-overlay';
|
|
5
5
|
|
|
6
|
-
export interface
|
|
6
|
+
export interface Ui3nDialogComponentProps<V> {
|
|
7
7
|
id?: string;
|
|
8
8
|
title?: string;
|
|
9
9
|
icon?: string | Ui3nIconField;
|
|
@@ -15,9 +15,6 @@ export interface Ui3nDialogProps<V> {
|
|
|
15
15
|
contentCssStyle?: Record<string, string>;
|
|
16
16
|
confirmButton?: boolean;
|
|
17
17
|
cancelButton?: boolean;
|
|
18
|
-
onClose?: (data?: V) => void;
|
|
19
|
-
onConfirm?: (data: V) => void;
|
|
20
|
-
onCancel?: (data: V) => void;
|
|
21
18
|
confirmButtonText?: string;
|
|
22
19
|
cancelButtonText?: string;
|
|
23
20
|
confirmButtonColor?: string;
|
|
@@ -26,19 +23,16 @@ export interface Ui3nDialogProps<V> {
|
|
|
26
23
|
cancelButtonBackground?: string;
|
|
27
24
|
closeOnClickOverlay?: boolean;
|
|
28
25
|
closeOnEsc?: boolean;
|
|
26
|
+
data?: V | null | Event | undefined;
|
|
27
|
+
isValid?: boolean;
|
|
29
28
|
}
|
|
30
29
|
|
|
31
|
-
export interface
|
|
32
|
-
|
|
33
|
-
componentProps?: ExtractComponentProps<T>;
|
|
34
|
-
dialogProps?: Ui3nDialogProps<V>;
|
|
30
|
+
export interface Ui3nDialogComponentEmits<V> {
|
|
31
|
+
(event: 'action', value: { event: Ui3nDialogEvent; data?: V | null | Event | undefined }): void;
|
|
35
32
|
}
|
|
36
33
|
|
|
37
|
-
export interface
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
(ev: 'confirm', value?: V): void;
|
|
42
|
-
(ev: 'cancel', value?: V): void;
|
|
43
|
-
(ev: 'click-overlay', value?: V): void;
|
|
34
|
+
export interface Ui3nDialogComponentSlots {
|
|
35
|
+
header?: () => VNode;
|
|
36
|
+
body: () => VNode;
|
|
37
|
+
actions?: () => VNode;
|
|
44
38
|
}
|