@nmorph/nmorph-ui-kit 2.2.48 → 2.2.50
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/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.js +156 -121
- package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue.js +112 -55
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +115 -63
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +7 -7
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +92 -67
- package/dist/index.umd.js +19 -19
- package/dist/package.json.js +1 -1
- package/dist/src/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.d.ts +5 -0
- package/dist/src/components/data/nmorph-audio-preview/types.d.ts +5 -0
- package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +3 -2
- package/dist/src/components/data/nmorph-file-card/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +2 -2
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +13 -6
- package/dist/src/components/data/nmorph-video-preview/types.d.ts +4 -0
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
- package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +1 -0
- package/dist/src/outside-hooks/use-nmorph-notification.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/package.json.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INmorphAudioPreviewProps } from './types';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { NmorphAudioPreviewSurface } from '../..';
|
|
3
4
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphAudioPreviewProps, {
|
|
4
5
|
audioRef: Ref<HTMLAudioElement, HTMLAudioElement>;
|
|
5
6
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -20,6 +21,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphAudioPre
|
|
|
20
21
|
error: boolean;
|
|
21
22
|
width: string | number;
|
|
22
23
|
durationMs: number;
|
|
24
|
+
surface: NmorphAudioPreviewSurface;
|
|
25
|
+
embedded: boolean;
|
|
26
|
+
showIcon: boolean;
|
|
27
|
+
showHeader: boolean;
|
|
23
28
|
compact: boolean;
|
|
24
29
|
preload: "metadata" | "auto" | "none";
|
|
25
30
|
downloadHref: string;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
export type NmorphAudioPreviewSurface = 'card' | 'soft' | 'plain';
|
|
1
2
|
export interface INmorphAudioPreviewProps {
|
|
2
3
|
src: string;
|
|
3
4
|
name?: string;
|
|
4
5
|
durationMs?: number;
|
|
5
6
|
width?: number | string;
|
|
7
|
+
surface?: NmorphAudioPreviewSurface;
|
|
8
|
+
embedded?: boolean;
|
|
9
|
+
showIcon?: boolean;
|
|
10
|
+
showHeader?: boolean;
|
|
6
11
|
compact?: boolean;
|
|
7
12
|
preload?: 'none' | 'metadata' | 'auto';
|
|
8
13
|
downloadHref?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { INmorphFileCardProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
import { NmorphFileCardSurface } from '../..';
|
|
3
|
+
import { NmorphFileCardSurface, NmorphFileCardMediaPreview } from '../..';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphFileCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
5
5
|
error: () => any;
|
|
6
6
|
download: () => any;
|
|
@@ -14,13 +14,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphFileCard
|
|
|
14
14
|
error: boolean;
|
|
15
15
|
size: number;
|
|
16
16
|
previewSrc: string;
|
|
17
|
+
surface: NmorphFileCardSurface;
|
|
17
18
|
compact: boolean;
|
|
18
19
|
downloadHref: string;
|
|
19
20
|
errorText: string;
|
|
20
21
|
showDefaultActions: boolean;
|
|
21
22
|
extension: string;
|
|
22
23
|
mimeType: string;
|
|
23
|
-
|
|
24
|
+
mediaPreview: NmorphFileCardMediaPreview;
|
|
24
25
|
showExtensionBadge: boolean;
|
|
25
26
|
iconSurface: boolean;
|
|
26
27
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type NmorphFileCardSurface = 'card' | 'soft' | 'plain';
|
|
2
|
+
export type NmorphFileCardMediaPreview = 'none' | 'audio' | 'video';
|
|
2
3
|
export interface INmorphFileCardProps {
|
|
3
4
|
name: string;
|
|
4
5
|
extension?: string;
|
|
@@ -6,6 +7,7 @@ export interface INmorphFileCardProps {
|
|
|
6
7
|
size?: number;
|
|
7
8
|
previewSrc?: string;
|
|
8
9
|
downloadHref?: string;
|
|
10
|
+
mediaPreview?: NmorphFileCardMediaPreview;
|
|
9
11
|
surface?: NmorphFileCardSurface;
|
|
10
12
|
showExtensionBadge?: boolean;
|
|
11
13
|
iconSurface?: boolean;
|
|
@@ -10,11 +10,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphMediaTil
|
|
|
10
10
|
src: string;
|
|
11
11
|
fit: NmorphMediaTileFit;
|
|
12
12
|
errorText: string;
|
|
13
|
+
muted: boolean;
|
|
14
|
+
playsinline: boolean;
|
|
13
15
|
srcObject: MediaStream;
|
|
14
16
|
mirrored: boolean;
|
|
15
|
-
muted: boolean;
|
|
16
17
|
autoplay: boolean;
|
|
17
|
-
playsinline: boolean;
|
|
18
18
|
avatarSrc: string;
|
|
19
19
|
micMuted: boolean;
|
|
20
20
|
videoOff: boolean;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { INmorphVideoPreviewProps } from './types';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
import { NmorphVideoPreviewFit } from '../..';
|
|
4
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphVideoPreviewProps, {
|
|
2
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { NmorphVideoPreviewFit, NmorphVideoPreviewSurface } from '../..';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphVideoPreviewProps, {
|
|
5
|
+
videoRef: Ref<HTMLVideoElement, HTMLVideoElement>;
|
|
6
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
5
7
|
error: (val: Event) => any;
|
|
6
8
|
pause: (val: Event) => any;
|
|
7
9
|
play: (val: Event) => any;
|
|
@@ -21,16 +23,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphVideoPre
|
|
|
21
23
|
width: string | number;
|
|
22
24
|
fit: NmorphVideoPreviewFit;
|
|
23
25
|
durationMs: number;
|
|
26
|
+
surface: NmorphVideoPreviewSurface;
|
|
27
|
+
embedded: boolean;
|
|
24
28
|
compact: boolean;
|
|
25
29
|
preload: "metadata" | "auto" | "none";
|
|
26
30
|
downloadHref: string;
|
|
27
31
|
errorText: string;
|
|
28
32
|
showDefaultActions: boolean;
|
|
29
|
-
muted: boolean;
|
|
30
|
-
playsinline: boolean;
|
|
31
33
|
poster: string;
|
|
34
|
+
showMeta: boolean;
|
|
32
35
|
controls: boolean;
|
|
33
|
-
|
|
36
|
+
muted: boolean;
|
|
37
|
+
playsinline: boolean;
|
|
38
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
39
|
+
videoRef: HTMLVideoElement;
|
|
40
|
+
}, HTMLDivElement>, {
|
|
34
41
|
actions?(_: {}): any;
|
|
35
42
|
}>;
|
|
36
43
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type NmorphVideoPreviewFit = 'cover' | 'contain';
|
|
2
|
+
export type NmorphVideoPreviewSurface = 'card' | 'soft' | 'plain';
|
|
2
3
|
export interface INmorphVideoPreviewProps {
|
|
3
4
|
src: string;
|
|
4
5
|
poster?: string;
|
|
@@ -6,6 +7,9 @@ export interface INmorphVideoPreviewProps {
|
|
|
6
7
|
width?: number | string;
|
|
7
8
|
height?: number | string;
|
|
8
9
|
durationMs?: number;
|
|
10
|
+
surface?: NmorphVideoPreviewSurface;
|
|
11
|
+
embedded?: boolean;
|
|
12
|
+
showMeta?: boolean;
|
|
9
13
|
compact?: boolean;
|
|
10
14
|
controls?: boolean;
|
|
11
15
|
muted?: boolean;
|
|
@@ -10,10 +10,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphAlertCom
|
|
|
10
10
|
title: string;
|
|
11
11
|
type: "error" | "success" | "warning" | "info";
|
|
12
12
|
id: string;
|
|
13
|
+
showIcon: boolean;
|
|
13
14
|
bordered: boolean;
|
|
14
15
|
closable: boolean;
|
|
15
16
|
content: string;
|
|
16
|
-
showIcon: boolean;
|
|
17
17
|
closeIconPosition: string;
|
|
18
18
|
backgroundColor: string;
|
|
19
19
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
@@ -2,6 +2,7 @@ import { INmorphAlertProps } from '../../feedback/nmorph-alert/types';
|
|
|
2
2
|
export interface INmorphNotification extends INmorphAlertProps {
|
|
3
3
|
id?: string;
|
|
4
4
|
duration?: number;
|
|
5
|
+
showDurationValue?: boolean;
|
|
5
6
|
width?: string;
|
|
6
7
|
placement?: TNmorphNotificationPlacement;
|
|
7
8
|
}
|
|
@@ -4,6 +4,7 @@ export declare const useNmorphNotification: () => {
|
|
|
4
4
|
notifications: Ref<{
|
|
5
5
|
id?: string;
|
|
6
6
|
duration?: number;
|
|
7
|
+
showDurationValue?: boolean;
|
|
7
8
|
width?: string;
|
|
8
9
|
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
|
|
9
10
|
type?: "error" | "success" | "warning" | "info";
|
|
@@ -19,6 +20,7 @@ export declare const useNmorphNotification: () => {
|
|
|
19
20
|
}[], INmorphNotification[] | {
|
|
20
21
|
id?: string;
|
|
21
22
|
duration?: number;
|
|
23
|
+
showDurationValue?: boolean;
|
|
22
24
|
width?: string;
|
|
23
25
|
placement?: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
|
|
24
26
|
type?: "error" | "success" | "warning" | "info";
|