@v1nt1248/3nclient-lib 0.2.32 → 0.2.34
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/README.md +2 -0
- package/dist/components/ui3n-dialog/types.d.ts +1 -1
- package/dist/components/ui3n-editable/types.d.ts +1 -1
- package/dist/components/ui3n-editable/ui3n-editable.vue.d.ts +1 -1
- package/dist/components/ui3n-editable/useContentEditable.d.ts +1 -1
- package/dist/components/ui3n-input/ui3n-input.vue.d.ts +33 -5
- package/dist/components/ui3n-text/ui3n-text.vue.d.ts +31 -5
- package/dist/directives/index.d.ts +2 -1
- package/dist/directives/ui3n-long-press.d.ts +27 -0
- package/dist/index.d.ts +3 -2
- package/dist/style.css +1 -1
- package/dist/types/directives.types.d.ts +7 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/ui3n-components.d.ts +3 -1
- package/dist/ui3n-components.js +5640 -5563
- package/dist/ui3n-plugins.d.ts +1 -2
- package/dist/ui3n-plugins.js +2 -2
- package/dist/ui3n-utils.js +154 -144
- package/dist/utils/files/create-video-thumbnail.d.ts +1 -1
- package/dist/utils/for-vue/try-on-scope-dispose.d.ts +2 -0
- package/dist/utils/for-vue/unref-element.d.ts +2 -0
- package/dist/utils/index.d.ts +3 -1
- package/package.json +52 -46
- package/src/components/ui3n-autocomplete/ui3n-autocomplete.vue +32 -9
- package/src/components/ui3n-breadcrumbs/ui3n-breadcrumbs.vue +14 -14
- package/src/components/ui3n-button/ui3n-button.vue +229 -226
- package/src/components/ui3n-checkbox/ui3n-checkbox.vue +30 -7
- package/src/components/ui3n-chip/ui3n-chip.vue +113 -109
- package/src/components/ui3n-dialog/types.ts +1 -1
- package/src/components/ui3n-dialog/ui3n-dialog.vue +7 -8
- package/src/components/ui3n-editable/types.ts +1 -1
- package/src/components/ui3n-editable/ui3n-editable.vue +34 -12
- package/src/components/ui3n-editable/useContentEditable.ts +6 -3
- package/src/components/ui3n-icon/ui3n-icon.vue +1 -1
- package/src/components/ui3n-input/ui3n-input.vue +272 -273
- package/src/components/ui3n-input-file/ui3n-input-file.vue +2 -2
- package/src/components/ui3n-list/ui3n-list.vue +70 -60
- package/src/components/ui3n-menu/ui3n-menu.vue +1 -1
- package/src/components/ui3n-notification/ui3n-notification.vue +4 -1
- package/src/components/ui3n-progress/ui3n-progress-circular.vue +168 -147
- package/src/components/ui3n-progress/ui3n-progress-linear.vue +77 -73
- package/src/components/ui3n-radio-group/ui3n-radio.vue +178 -177
- package/src/components/ui3n-step-line-bar/ui3n-step-line-bar.vue +50 -46
- package/src/components/ui3n-switch/ui3n-switch.vue +114 -116
- package/src/components/ui3n-table/composables/useTable.ts +17 -9
- package/src/components/ui3n-table/ui3n-table-sort-icon.vue +9 -6
- package/src/components/ui3n-table/ui3n-table.vue +7 -5
- package/src/components/ui3n-text/ui3n-text.vue +157 -215
- package/src/components/ui3n-tooltip/ui3n-tooltip.vue +4 -5
- package/src/components/types/index.ts +0 -15
- /package/dist/{components/types/index.d.ts → types/components.types.d.ts} +0 -0
- /package/dist/{plugins/types.d.ts → types/plugins.types.d.ts} +0 -0
- /package/dist/utils/{for-we3n.d.ts → for-web3n.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -33,6 +33,7 @@ You can run the project as `pnpm dev` or `npm run dev`.
|
|
|
33
33
|
- Ui3nTable
|
|
34
34
|
- Ui3nTabs
|
|
35
35
|
- Ui3nText
|
|
36
|
+
- Ui3nTooltip
|
|
36
37
|
- Ui3nVirtualScroll
|
|
37
38
|
|
|
38
39
|
### Directives
|
|
@@ -41,6 +42,7 @@ You can run the project as `pnpm dev` or `npm run dev`.
|
|
|
41
42
|
- Ui3nResize
|
|
42
43
|
- Ui3nRipple
|
|
43
44
|
- Ui3nTitle
|
|
45
|
+
- Ui3nLongPress
|
|
44
46
|
|
|
45
47
|
### Plugins
|
|
46
48
|
- i18n
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
-
import { ExtractComponentProps, Ui3nIconField } from '
|
|
2
|
+
import { ExtractComponentProps, Ui3nIconField } from '../../types/index';
|
|
3
3
|
export type Ui3nDialogEvent = 'open' | 'before-close' | 'close' | 'confirm' | 'cancel' | 'click-overlay';
|
|
4
4
|
export interface Ui3nDialogProps {
|
|
5
5
|
id?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ui3nEditableProps } from './types';
|
|
2
|
-
import { Nullable } from '
|
|
2
|
+
import { Nullable } from '../../types';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<Ui3nEditableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
4
4
|
done: () => any;
|
|
5
5
|
cancel: () => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Nullable } from '
|
|
1
|
+
import { Nullable } from '../../types';
|
|
2
2
|
import { Ui3nContentEditableEmits, Ui3nContentEditableProps } from './types';
|
|
3
3
|
export declare function useContentEditable(props: Ui3nContentEditableProps, emits: Ui3nContentEditableEmits): {
|
|
4
4
|
el: import('vue').Ref<Nullable<HTMLElement>, Nullable<HTMLElement>>;
|
|
@@ -4,12 +4,40 @@ declare const _default: import('vue').DefineComponent<Ui3nInputProps, {
|
|
|
4
4
|
isDirty: import('vue').Ref<boolean, boolean>;
|
|
5
5
|
isFocused: import('vue').Ref<boolean, boolean>;
|
|
6
6
|
clearValue: typeof clearValue;
|
|
7
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
8
|
+
input: (value: string) => any;
|
|
9
|
+
enter: (value: {
|
|
10
|
+
value: string;
|
|
11
|
+
altKey: boolean;
|
|
12
|
+
ctrlKey: boolean;
|
|
13
|
+
shiftKey: boolean;
|
|
14
|
+
metaKey: boolean;
|
|
15
|
+
}) => any;
|
|
16
|
+
blur: (value: Event) => any;
|
|
17
|
+
change: (value: string) => any;
|
|
18
|
+
focus: (value: Event) => any;
|
|
19
|
+
init: (value: HTMLInputElement) => any;
|
|
20
|
+
"update:modelValue": (value: string) => any;
|
|
21
|
+
clear: () => any;
|
|
22
|
+
escape: (value: Event) => any;
|
|
23
|
+
"update:valid": (value: boolean) => any;
|
|
11
24
|
}, string, import('vue').PublicProps, Readonly<Ui3nInputProps> & Readonly<{
|
|
12
|
-
|
|
25
|
+
onInput?: ((value: string) => any) | undefined;
|
|
26
|
+
onEnter?: ((value: {
|
|
27
|
+
value: string;
|
|
28
|
+
altKey: boolean;
|
|
29
|
+
ctrlKey: boolean;
|
|
30
|
+
shiftKey: boolean;
|
|
31
|
+
metaKey: boolean;
|
|
32
|
+
}) => any) | undefined;
|
|
33
|
+
onBlur?: ((value: Event) => any) | undefined;
|
|
34
|
+
onChange?: ((value: string) => any) | undefined;
|
|
35
|
+
onFocus?: ((value: Event) => any) | undefined;
|
|
36
|
+
onInit?: ((value: HTMLInputElement) => any) | undefined;
|
|
37
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
38
|
+
onClear?: (() => any) | undefined;
|
|
39
|
+
onEscape?: ((value: Event) => any) | undefined;
|
|
40
|
+
"onUpdate:valid"?: ((value: boolean) => any) | undefined;
|
|
13
41
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
14
42
|
wrapperElement: HTMLDivElement;
|
|
15
43
|
inputElement: HTMLInputElement;
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
import { Ui3nTextProps } from './types';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<Ui3nTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
declare const _default: import('vue').DefineComponent<Ui3nTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
input: (value: string) => any;
|
|
4
|
+
enter: (value: {
|
|
5
|
+
value: string;
|
|
6
|
+
altKey: boolean;
|
|
7
|
+
ctrlKey: boolean;
|
|
8
|
+
shiftKey: boolean;
|
|
9
|
+
metaKey: boolean;
|
|
10
|
+
}) => any;
|
|
11
|
+
blur: (value: Event) => any;
|
|
12
|
+
change: (value: string) => any;
|
|
13
|
+
focus: (value: Event) => any;
|
|
14
|
+
init: (value: HTMLTextAreaElement) => any;
|
|
15
|
+
escape: (value: Event) => any;
|
|
16
|
+
"update:valid": (value: boolean) => any;
|
|
17
|
+
"update:text": (value: string) => any;
|
|
6
18
|
}, string, import('vue').PublicProps, Readonly<Ui3nTextProps> & Readonly<{
|
|
7
|
-
|
|
19
|
+
onInput?: ((value: string) => any) | undefined;
|
|
20
|
+
onEnter?: ((value: {
|
|
21
|
+
value: string;
|
|
22
|
+
altKey: boolean;
|
|
23
|
+
ctrlKey: boolean;
|
|
24
|
+
shiftKey: boolean;
|
|
25
|
+
metaKey: boolean;
|
|
26
|
+
}) => any) | undefined;
|
|
27
|
+
onBlur?: ((value: Event) => any) | undefined;
|
|
28
|
+
onChange?: ((value: string) => any) | undefined;
|
|
29
|
+
onFocus?: ((value: Event) => any) | undefined;
|
|
30
|
+
onInit?: ((value: HTMLTextAreaElement) => any) | undefined;
|
|
31
|
+
onEscape?: ((value: Event) => any) | undefined;
|
|
32
|
+
"onUpdate:valid"?: ((value: boolean) => any) | undefined;
|
|
33
|
+
"onUpdate:text"?: ((value: string) => any) | undefined;
|
|
8
34
|
}>, {
|
|
9
35
|
label: string;
|
|
10
36
|
disabled: boolean;
|
|
@@ -3,4 +3,5 @@ import { default as Ui3nClickOutside } from './ui3n-click-outside';
|
|
|
3
3
|
import { default as Ui3nResize, Ui3nResizeCbArg } from './ui3n-resize';
|
|
4
4
|
import { default as Ui3nRipple } from './ui3n-ripple';
|
|
5
5
|
import { default as Ui3nTitle } from './ui3n-title';
|
|
6
|
-
|
|
6
|
+
import { default as Ui3nLongPress } from './ui3n-long-press';
|
|
7
|
+
export { Ui3nHtml, Ui3nClickOutside, Ui3nResize, Ui3nRipple, Ui3nTitle, Ui3nLongPress, Ui3nResizeCbArg };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ObjectDirective } from 'vue';
|
|
2
|
+
export type Ui3nLongPressBindingValue = {
|
|
3
|
+
handler: (event: PointerEvent) => void;
|
|
4
|
+
delay?: number;
|
|
5
|
+
distanceThreshold?: number;
|
|
6
|
+
onMouseUpCb?: (event: PointerEvent) => void;
|
|
7
|
+
};
|
|
8
|
+
export interface Ui3nLongPressModifiers {
|
|
9
|
+
stop?: boolean;
|
|
10
|
+
prevent?: boolean;
|
|
11
|
+
self?: boolean;
|
|
12
|
+
capture?: boolean;
|
|
13
|
+
once?: boolean;
|
|
14
|
+
passive?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface ExtendedDirective extends ObjectDirective<HTMLElement, Ui3nLongPressBindingValue> {
|
|
17
|
+
pointerdownEvent: (event: PointerEvent) => void;
|
|
18
|
+
pointerupEvent: (event: PointerEvent) => void;
|
|
19
|
+
pointermoveEvent: (event: PointerEvent) => void;
|
|
20
|
+
timeout: ReturnType<typeof setTimeout> | null;
|
|
21
|
+
posStart: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
declare const ui3nLongPress: ExtendedDirective;
|
|
27
|
+
export default ui3nLongPress;
|
package/dist/index.d.ts
CHANGED
|
@@ -34,15 +34,15 @@ import { default as Ui3nClickOutside } from './directives/ui3n-click-outside';
|
|
|
34
34
|
import { default as Ui3nResize } from './directives/ui3n-resize';
|
|
35
35
|
import { default as Ui3nRipple } from './directives/ui3n-ripple';
|
|
36
36
|
import { default as Ui3nTitle } from './directives/ui3n-title';
|
|
37
|
+
import { default as Ui3nLongPress } from './directives/ui3n-long-press';
|
|
37
38
|
import { VueEventBus } from './plugins/vue-bus/types';
|
|
38
39
|
import { DialogInstance } from './plugins/dialogs/types';
|
|
39
40
|
export * from './constants';
|
|
40
41
|
export * from './utils';
|
|
41
42
|
export * from './plugins';
|
|
42
|
-
export * from './plugins/types';
|
|
43
43
|
export * from './directives';
|
|
44
44
|
export * from './components';
|
|
45
|
-
export * from './
|
|
45
|
+
export * from './types';
|
|
46
46
|
declare module 'vue' {
|
|
47
47
|
interface ComponentCustomProperties {
|
|
48
48
|
$openDialog: <T extends Component>(params: Ui3nDialogComponentProps<T>) => DialogInstance | undefined;
|
|
@@ -90,6 +90,7 @@ declare module 'vue' {
|
|
|
90
90
|
Ui3nResize: typeof Ui3nResize;
|
|
91
91
|
Ui3nRipple: typeof Ui3nRipple;
|
|
92
92
|
Ui3nTitle: typeof Ui3nTitle;
|
|
93
|
+
Ui3nLongPress: typeof Ui3nLongPress;
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
declare module 'pinia' {
|