@webx-ui/module-media 0.6.0 → 0.6.2

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.
@@ -24,11 +24,27 @@ type __VLS_Props = {
24
24
  multiple?: boolean;
25
25
  /** The most that may be held at once, when picking several. */
26
26
  max?: number | null;
27
+ /**
28
+ * Drawn as a section of the panel rather than inside a picker.
29
+ *
30
+ * The screen around it then carries the two things a section carries — the main action and
31
+ * the views of the list — so the toolbar stops offering an upload icon and a kind filter
32
+ * of its own. In a dialog there is no screen around it, and it keeps both.
33
+ */
34
+ inPage?: boolean;
27
35
  };
28
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
+ declare function choose(): void;
37
+ type __VLS_PublicProps = {
38
+ 'type'?: MediaKind | 'all';
39
+ } & __VLS_Props;
40
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
41
+ upload: typeof choose;
42
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
43
+ "update:type": (value: MediaKind | "all") => any;
29
44
  pick: (file: MediaFile) => any;
30
45
  selection: (files: MediaFile[]) => any;
31
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
46
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
47
+ "onUpdate:type"?: ((value: MediaKind | "all") => any) | undefined;
32
48
  onPick?: ((file: MediaFile) => any) | undefined;
33
49
  onSelection?: ((files: MediaFile[]) => any) | undefined;
34
50
  }>, {
@@ -36,6 +52,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
36
52
  accept: MediaKind | null;
37
53
  picking: boolean;
38
54
  max: number | null;
55
+ inPage: boolean;
39
56
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
40
57
  root: HTMLDivElement;
41
58
  picker: HTMLInputElement;
@@ -1,2 +1,59 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
1
+ import { MediaKind } from './types';
2
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
3
+ manager: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
4
+ type?: MediaKind | "all";
5
+ } & {
6
+ picking?: boolean;
7
+ accept?: MediaKind | null;
8
+ multiple?: boolean;
9
+ max?: number | null;
10
+ inPage?: boolean;
11
+ }> & Readonly<{
12
+ "onUpdate:type"?: ((value: MediaKind | "all") => any) | undefined;
13
+ onPick?: ((file: import('./types').MediaFile) => any) | undefined;
14
+ onSelection?: ((files: import('./types').MediaFile[]) => any) | undefined;
15
+ }>, {
16
+ upload: () => void;
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:type": (value: MediaKind | "all") => any;
19
+ pick: (file: import('./types').MediaFile) => any;
20
+ selection: (files: import('./types').MediaFile[]) => any;
21
+ }, import('vue').PublicProps, {
22
+ multiple: boolean;
23
+ accept: MediaKind | null;
24
+ picking: boolean;
25
+ max: number | null;
26
+ inPage: boolean;
27
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
28
+ root: HTMLDivElement;
29
+ picker: HTMLInputElement;
30
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
31
+ P: {};
32
+ B: {};
33
+ D: {};
34
+ C: {};
35
+ M: {};
36
+ Defaults: {};
37
+ }, Readonly<{
38
+ type?: MediaKind | "all";
39
+ } & {
40
+ picking?: boolean;
41
+ accept?: MediaKind | null;
42
+ multiple?: boolean;
43
+ max?: number | null;
44
+ inPage?: boolean;
45
+ }> & Readonly<{
46
+ "onUpdate:type"?: ((value: MediaKind | "all") => any) | undefined;
47
+ onPick?: ((file: import('./types').MediaFile) => any) | undefined;
48
+ onSelection?: ((files: import('./types').MediaFile[]) => any) | undefined;
49
+ }>, {
50
+ upload: () => void;
51
+ }, {}, {}, {}, {
52
+ multiple: boolean;
53
+ accept: MediaKind | null;
54
+ picking: boolean;
55
+ max: number | null;
56
+ inPage: boolean;
57
+ }> | null;
58
+ }, HTMLDivElement>;
2
59
  export default _default;