@webx-ui/module-admin 0.8.0 → 0.9.0

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.
@@ -68,7 +68,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
68
68
  $root: import('vue').ComponentPublicInstance | null;
69
69
  $parent: import('vue').ComponentPublicInstance | null;
70
70
  $host: Element | null;
71
- $emit: ((event: "input", value: string) => void) & ((event: "clear") => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "update:modelValue", value: import('@webx-ui/core').InputModelValue) => void);
71
+ $emit: ((event: "input", value: string) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "clear") => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "update:modelValue", value: import('@webx-ui/core').InputModelValue) => void);
72
72
  $el: any;
73
73
  $options: import('vue').ComponentOptionsBase<Readonly<{
74
74
  modelValue?: import('@webx-ui/core').InputModelValue;
@@ -148,7 +148,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
148
148
  onClear?: (() => any) | undefined;
149
149
  onBlur?: ((event: FocusEvent) => any) | undefined;
150
150
  onFocus?: ((event: FocusEvent) => any) | undefined;
151
- }>, "type" | "size" | "ariaLabel" | "input" | "select" | "placeholder" | "id" | "status" | "localized" | "blur" | "focus" | "disabled" | "readonly" | "clearable" | "maxlength" | "showCount" | "autocomplete"> & {
151
+ }>, "type" | "size" | "ariaLabel" | "input" | "select" | "placeholder" | "disabled" | "readonly" | "status" | "id" | "localized" | "focus" | "blur" | "clearable" | "maxlength" | "showCount" | "autocomplete"> & {
152
152
  focus: () => void | undefined;
153
153
  blur: () => void | undefined;
154
154
  select: () => void | undefined;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
package/dist/Screen.d.ts CHANGED
@@ -31,8 +31,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
31
31
  "onUpdate:modelValue"?: ((value: ScreenModel) => any) | undefined;
32
32
  }>, {
33
33
  size: "sm" | "md" | "lg";
34
- errors: Record<string, string[]>;
35
34
  disabled: boolean;
35
+ errors: Record<string, string[]>;
36
36
  labelPosition: "top" | "left";
37
37
  labelWidth: string;
38
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
package/dist/admin.d.ts CHANGED
@@ -2,7 +2,7 @@ import { App, ComputedRef, InjectionKey } from 'vue';
2
2
  import { Patch, ScreenNode, TypeRegistry } from '@webx-ui/schema';
3
3
  import { Http } from './http';
4
4
  import { I18n } from './i18n';
5
- import { AdminModule, AdminStatus, AdminUser, Manifest, NavEntry, NavGroup } from './types';
5
+ import { AdminModule, AdminStatus, AdminUser, Manifest, NavEntry, NavGroup, PickedImage } from './types';
6
6
  export interface AdminContext {
7
7
  /** The panel's own backend. */
8
8
  readonly http: Http;
@@ -24,6 +24,11 @@ export interface AdminContext {
24
24
  }>;
25
25
  /** Node types every screen is drawn with: the modules' and the project's, over the core. */
26
26
  readonly types: TypeRegistry;
27
+ /**
28
+ * How the panel picks a picture, when a module installed here has a library. `null` when
29
+ * none does — and a field that needs one then does not offer to.
30
+ */
31
+ readonly pickImage: (() => Promise<PickedImage | null>) | null;
27
32
  /** Ask the server what the panel is and who is signed in again. */
28
33
  reload(): Promise<void>;
29
34
  /**
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { errorText, useErrorText } from './errors';
8
8
  export { createNotesApi, type EntityNote, type NoteAuthor, type NotesApi } from './notes';
9
9
  export { createHttp, readCookie, HttpError, type Http, type HttpOptions, type RequestOptions, } from './http';
10
10
  export { adminTypes } from './screenTypes';
11
- export type { AdminModule, AdminStatus, AdminUser, Manifest, ManifestModule, NavEntry, RowAction, } from './types';
11
+ export type { AdminModule, AdminStatus, AdminUser, Manifest, ManifestModule, NavEntry, PickedImage, RowAction, } from './types';
12
12
  export { default as AdminShell } from './AdminShell';
13
13
  export { default as AdminNav } from './AdminNav';
14
14
  export { default as AdminLanding } from './AdminLanding';
@@ -20,3 +20,4 @@ export { default as WxRenameButton } from './RenameButton';
20
20
  export { default as WxHelpButton } from './HelpButton';
21
21
  export { default as WxDate } from './DateText';
22
22
  export { default as WxNotes } from './NotesFeed';
23
+ export { default as WxRichTextField } from './RichTextField';