@nmorph/nmorph-ui-kit 2.2.39 → 2.2.41
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/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-button/NmorphButton.vue.js +13 -10
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +122 -75
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +100 -75
- package/dist/components/data/nmorph-tag-list/NmorphTagList.css +1 -0
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +17 -12
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +31 -19
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.js +18 -15
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +84 -21
- package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -1
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.js +27 -22
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +80 -45
- package/dist/hooks/use-placement.js +65 -61
- package/dist/index.umd.js +29 -29
- package/dist/package.json.js +1 -1
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +6 -0
- package/dist/src/components/data/nmorph-image-preview/types.d.ts +4 -0
- package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +10 -1
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +6 -1
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/types.d.ts +1 -0
- package/dist/src/components/data/nmorph-tag-list/types.d.ts +7 -0
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +5 -3
- package/dist/src/components/navigation/nmorph-context-menu/types.d.ts +8 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/package.json.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INmorphImagePreviewProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { NmorphImagePreviewTriggerView } from '../..';
|
|
3
4
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphImagePreviewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
5
|
"update:model-value": (value: boolean) => any;
|
|
5
6
|
}, string, PublicProps, Readonly<INmorphImagePreviewProps> & Readonly<{
|
|
@@ -18,9 +19,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphImagePre
|
|
|
18
19
|
showNavigationButtons: boolean;
|
|
19
20
|
showActionBar: boolean;
|
|
20
21
|
navigationButtonMargin: string | number;
|
|
22
|
+
triggerView: NmorphImagePreviewTriggerView;
|
|
23
|
+
triggerLimit: number;
|
|
24
|
+
triggerGap: string | number;
|
|
21
25
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
22
26
|
loading?(_: {}): any;
|
|
23
27
|
loading?(_: {}): any;
|
|
28
|
+
loading?(_: {}): any;
|
|
29
|
+
error?(_: {}): any;
|
|
24
30
|
error?(_: {}): any;
|
|
25
31
|
error?(_: {}): any;
|
|
26
32
|
}>;
|
|
@@ -3,6 +3,7 @@ export interface INmorphAction {
|
|
|
3
3
|
icon: Component;
|
|
4
4
|
handler: () => void;
|
|
5
5
|
}
|
|
6
|
+
export type NmorphImagePreviewTriggerView = 'single' | 'gallery';
|
|
6
7
|
export interface INmorphImagePreviewProps {
|
|
7
8
|
modelValue?: boolean;
|
|
8
9
|
alt?: string;
|
|
@@ -18,6 +19,9 @@ export interface INmorphImagePreviewProps {
|
|
|
18
19
|
width?: number | string;
|
|
19
20
|
height?: number | string;
|
|
20
21
|
navigationButtonMargin?: number | string;
|
|
22
|
+
triggerView?: NmorphImagePreviewTriggerView;
|
|
23
|
+
triggerLimit?: number;
|
|
24
|
+
triggerGap?: number | string;
|
|
21
25
|
}
|
|
22
26
|
export interface INmorphImagePreviewEmit {
|
|
23
27
|
(e: 'update:model-value', value: boolean): void;
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { INmorphTagListProps, INmorphTagItemProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { NmorphElementDesignType } from '../../../types';
|
|
3
4
|
declare const _default: DefineComponent<INmorphTagListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
5
|
"update:model-value": (val: INmorphTagItemProps[]) => any;
|
|
6
|
+
click: (val: string) => any;
|
|
5
7
|
close: (val: string) => any;
|
|
8
|
+
"update:selected-value": (val: string) => any;
|
|
9
|
+
"update:selectedValue": (val: string) => any;
|
|
6
10
|
}, string, PublicProps, Readonly<INmorphTagListProps> & Readonly<{
|
|
7
11
|
"onUpdate:model-value"?: (val: INmorphTagItemProps[]) => any;
|
|
12
|
+
onClick?: (val: string) => any;
|
|
8
13
|
onClose?: (val: string) => any;
|
|
9
|
-
|
|
14
|
+
"onUpdate:selected-value"?: (val: string) => any;
|
|
15
|
+
"onUpdate:selectedValue"?: (val: string) => any;
|
|
16
|
+
}>, {
|
|
17
|
+
design: NmorphElementDesignType;
|
|
18
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
19
|
export default _default;
|
package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts
CHANGED
|
@@ -2,12 +2,17 @@ import { INmorphTagItemComponentProps } from './types';
|
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { NmorphElementDesignType } from '../../../../../types';
|
|
4
4
|
declare const _default: DefineComponent<INmorphTagItemComponentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
5
|
+
click: (val: string) => any;
|
|
5
6
|
close: (val: string) => any;
|
|
6
7
|
}, string, PublicProps, Readonly<INmorphTagItemComponentProps> & Readonly<{
|
|
8
|
+
onClick?: (val: string) => any;
|
|
7
9
|
onClose?: (val: string) => any;
|
|
8
10
|
}>, {
|
|
11
|
+
color: string;
|
|
9
12
|
height: "basic" | "thick" | "thin";
|
|
10
13
|
design: NmorphElementDesignType;
|
|
11
14
|
removable: boolean;
|
|
12
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
15
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
16
|
+
tagRef: HTMLDivElement;
|
|
17
|
+
}, HTMLDivElement>;
|
|
13
18
|
export default _default;
|
|
@@ -5,11 +5,18 @@ export interface INmorphTagItemProps {
|
|
|
5
5
|
removable?: boolean;
|
|
6
6
|
height?: keyof typeof NmorphComponentHeight;
|
|
7
7
|
design?: NmorphElementDesignType;
|
|
8
|
+
color?: string;
|
|
8
9
|
}
|
|
9
10
|
export interface INmorphTagListProps {
|
|
10
11
|
modelValue: INmorphTagItemProps[];
|
|
12
|
+
selectedValue?: string | null;
|
|
13
|
+
design?: NmorphElementDesignType;
|
|
14
|
+
color?: string;
|
|
11
15
|
}
|
|
12
16
|
export interface INmorphTagListEmit {
|
|
17
|
+
(e: 'click', val: string): void;
|
|
13
18
|
(e: 'close', val: string): void;
|
|
14
19
|
(e: 'update:model-value', val: INmorphTagItemProps[]): void;
|
|
20
|
+
(e: 'update:selected-value', val: string): void;
|
|
21
|
+
(e: 'update:selectedValue', val: string): void;
|
|
15
22
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { INmorphContextMenuProps, NmorphContextMenuOption, NmorphContextMenuTrigger } from './types';
|
|
1
|
+
import { INmorphContextMenuProps, NmorphContextMenuOpenEvent, NmorphContextMenuOption, NmorphContextMenuTrigger } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { NmorphPlacementType } from '../../../types';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphContextMenuProps, {
|
|
5
|
+
openAt: (x: number, y: number, event?: NmorphContextMenuOpenEvent) => void;
|
|
6
|
+
openAtElement: (element: HTMLElement, event?: NmorphContextMenuOpenEvent) => void;
|
|
5
7
|
close: () => void;
|
|
6
8
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
7
9
|
"update:model-value": (value: boolean) => any;
|
|
@@ -9,14 +11,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphContextM
|
|
|
9
11
|
close: () => any;
|
|
10
12
|
"on-outside-click": () => any;
|
|
11
13
|
"on-escape-keydown": () => any;
|
|
12
|
-
open: (event
|
|
14
|
+
open: (event?: NmorphContextMenuOpenEvent) => any;
|
|
13
15
|
}, string, PublicProps, Readonly<INmorphContextMenuProps> & Readonly<{
|
|
14
16
|
"onUpdate:model-value"?: (value: boolean) => any;
|
|
15
17
|
onSelect?: (option: NmorphContextMenuOption, index: number) => any;
|
|
16
18
|
onClose?: () => any;
|
|
17
19
|
"onOn-outside-click"?: () => any;
|
|
18
20
|
"onOn-escape-keydown"?: () => any;
|
|
19
|
-
onOpen?: (event
|
|
21
|
+
onOpen?: (event?: NmorphContextMenuOpenEvent) => any;
|
|
20
22
|
}>, {
|
|
21
23
|
disabled: boolean;
|
|
22
24
|
width: string | number;
|
|
@@ -11,8 +11,9 @@ export interface INmorphContextMenuOption {
|
|
|
11
11
|
closeOnClick?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export type NmorphContextMenuOption = NmorphContextMenuOptionPrimitive | INmorphContextMenuOption;
|
|
14
|
-
export type NmorphContextMenuTrigger = 'contextmenu' | 'click' | 'both';
|
|
14
|
+
export type NmorphContextMenuTrigger = 'contextmenu' | 'click' | 'both' | 'longpress' | 'manual';
|
|
15
15
|
export type NmorphContextMenuAnchorType = 'point' | 'element';
|
|
16
|
+
export type NmorphContextMenuOpenEvent = MouseEvent | KeyboardEvent | PointerEvent | Event;
|
|
16
17
|
export interface INmorphNormalizedContextMenuOption {
|
|
17
18
|
key: string;
|
|
18
19
|
label?: string | number;
|
|
@@ -46,9 +47,14 @@ export interface INmorphContextMenuProps {
|
|
|
46
47
|
}
|
|
47
48
|
export interface INmorphContextMenuEmit {
|
|
48
49
|
(e: 'update:model-value', value: boolean): void;
|
|
49
|
-
(e: 'open', event
|
|
50
|
+
(e: 'open', event?: NmorphContextMenuOpenEvent): void;
|
|
50
51
|
(e: 'close'): void;
|
|
51
52
|
(e: 'select', option: NmorphContextMenuOption, index: number): void;
|
|
52
53
|
(e: 'on-outside-click'): void;
|
|
53
54
|
(e: 'on-escape-keydown'): void;
|
|
54
55
|
}
|
|
56
|
+
export interface INmorphContextMenuExpose {
|
|
57
|
+
openAt: (x: number, y: number, event?: NmorphContextMenuOpenEvent) => void;
|
|
58
|
+
openAtElement: (element: HTMLElement, event?: NmorphContextMenuOpenEvent) => void;
|
|
59
|
+
close: () => void;
|
|
60
|
+
}
|