@webx-ui/module-admin 0.6.0 → 0.8.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.
- package/dist/AdminLanding.d.ts +21 -0
- package/dist/NotesFeed.d.ts +30 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +806 -535
- package/dist/index.js.map +1 -1
- package/dist/notes.d.ts +34 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +9 -0
- package/package.json +3 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the panel opens on.
|
|
3
|
+
*
|
|
4
|
+
* Until now nothing answered at `/`: the routes are the modules', and no module claimed the
|
|
5
|
+
* root — so signing in landed on a blank page and the first thing anybody did was click a
|
|
6
|
+
* section. A module says which one that should be with `landing: true`, and here is where it
|
|
7
|
+
* is honoured.
|
|
8
|
+
*
|
|
9
|
+
* It waits for the manifest rather than redirecting on the spot, because what a panel has is
|
|
10
|
+
* something only the server knows: a landing module whose Composer half is not installed is
|
|
11
|
+
* not in the navigation, and sending somebody to a section that is not there would be worse
|
|
12
|
+
* than sending them nowhere. The fallback is the first entry of the menu, which is the section
|
|
13
|
+
* this panel would call its front page anyway.
|
|
14
|
+
*/
|
|
15
|
+
type __VLS_Props = {
|
|
16
|
+
landing?: string | null;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
+
landing: string | null;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What one administrator wrote on a record for the next one.
|
|
3
|
+
*
|
|
4
|
+
* Deliberately a component of the frame and not of any section. The first place that wanted
|
|
5
|
+
* one was the inbox, the next will be an order and the one after that a client, and three
|
|
6
|
+
* copies of "who may write here, who may edit what they wrote" is two copies too many — so the
|
|
7
|
+
* feed, its address and its rules live here, and a section only says which record it is about.
|
|
8
|
+
*
|
|
9
|
+
* Nothing is drawn while the reader may not write: the server refuses either way, and a box
|
|
10
|
+
* that posts a 403 is worse than no box. Whether they may is the section's answer, because it
|
|
11
|
+
* is the section's permission (`can`).
|
|
12
|
+
*/
|
|
13
|
+
type __VLS_Props = {
|
|
14
|
+
/** The alias the server registered the model under — never a class name. */
|
|
15
|
+
type: string;
|
|
16
|
+
id: number | string;
|
|
17
|
+
/** Whether this reader may write and edit their own. */
|
|
18
|
+
can?: boolean;
|
|
19
|
+
/** Heading above the feed; the panel's own word for it by default. */
|
|
20
|
+
title?: string;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
change: () => any;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
onChange?: (() => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
title: string;
|
|
28
|
+
can: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
30
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,11 +5,13 @@ export { adminMessages } from './messages';
|
|
|
5
5
|
export { renderMarkdown } from './markdown';
|
|
6
6
|
export { createDates, useDates, type DateLike, type Dates } from './dates';
|
|
7
7
|
export { errorText, useErrorText } from './errors';
|
|
8
|
+
export { createNotesApi, type EntityNote, type NoteAuthor, type NotesApi } from './notes';
|
|
8
9
|
export { createHttp, readCookie, HttpError, type Http, type HttpOptions, type RequestOptions, } from './http';
|
|
9
10
|
export { adminTypes } from './screenTypes';
|
|
10
11
|
export type { AdminModule, AdminStatus, AdminUser, Manifest, ManifestModule, NavEntry, RowAction, } from './types';
|
|
11
12
|
export { default as AdminShell } from './AdminShell';
|
|
12
13
|
export { default as AdminNav } from './AdminNav';
|
|
14
|
+
export { default as AdminLanding } from './AdminLanding';
|
|
13
15
|
export { default as WxScreen } from './Screen';
|
|
14
16
|
export { default as WxListScreen } from './ListScreen';
|
|
15
17
|
export { default as WxRowMenu } from './RowMenu';
|
|
@@ -17,3 +19,4 @@ export { default as WxBackButton } from './BackButton';
|
|
|
17
19
|
export { default as WxRenameButton } from './RenameButton';
|
|
18
20
|
export { default as WxHelpButton } from './HelpButton';
|
|
19
21
|
export { default as WxDate } from './DateText';
|
|
22
|
+
export { default as WxNotes } from './NotesFeed';
|