@webx-ui/module-admin 0.20.0 → 0.22.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/AdminNav.d.ts +6 -2
- package/dist/categories/SourceSelect.d.ts +11 -0
- package/dist/categories/index.d.ts +1 -1
- package/dist/categories/types.d.ts +10 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1498 -1433
- package/dist/index.js.map +1 -1
- package/dist/screenTypes.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +21 -0
- package/package.json +3 -3
package/dist/AdminNav.d.ts
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
* panel running — each as a branch that opens on its own when a section under it is current.
|
|
8
8
|
*
|
|
9
9
|
* A group names its own icon; the gear is what it falls back to, because that is the picture
|
|
10
|
-
* every group had before groups could carry one.
|
|
10
|
+
* every group had before groups could carry one. Inside a group, the entries under no caption
|
|
11
|
+
* come first and each caption follows with its own — a caption adds no depth, and on the narrow
|
|
12
|
+
* rail it is a rule.
|
|
11
13
|
*/
|
|
12
14
|
type __VLS_Props = {
|
|
13
15
|
collapsed?: boolean;
|
|
@@ -16,5 +18,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
16
18
|
select: () => any;
|
|
17
19
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
20
|
onSelect?: (() => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
+
root: unknown;
|
|
23
|
+
}, any>;
|
|
20
24
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectOption } from '@webx-ui/core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** The API a module's list answers at, under the panel's: `catalog/stock`. */
|
|
4
|
+
source?: string;
|
|
5
|
+
options?: SelectOption[];
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
source: string;
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createCategoriesApi, reorderItems, type CategoriesApi } from './api';
|
|
2
|
-
export { useCategoryEditor, type CategoryEditorContext } from './editor';
|
|
2
|
+
export { categoryEditorKey, provideCategoryEditor, useCategoryEditor, type CategoryEditorContext, } from './editor';
|
|
3
3
|
export { itemOrderMode, useItemOrder, type ItemOrder, type ItemOrderMode, type ItemOrderState, } from './ordering';
|
|
4
4
|
export { categoryRoutes } from './routes';
|
|
5
5
|
export { useCategoryWords } from './words';
|
|
@@ -55,6 +55,16 @@ export interface CategoriesOptions {
|
|
|
55
55
|
name: string;
|
|
56
56
|
/** The module the list is — its title in the manifest is the heading of both screens. */
|
|
57
57
|
module: string;
|
|
58
|
+
/**
|
|
59
|
+
* The heading instead, as a key of the dictionary — for a list that is not an entry of the
|
|
60
|
+
* navigation but stands under a section: the groups of the catalogue's properties.
|
|
61
|
+
*/
|
|
62
|
+
title?: string;
|
|
63
|
+
/** Where the list goes back to, and what that is called (a key), for a list that stands under another. */
|
|
64
|
+
back?: {
|
|
65
|
+
path: string;
|
|
66
|
+
label: string;
|
|
67
|
+
};
|
|
58
68
|
/** The described screen of one category: `blog.category-form`. */
|
|
59
69
|
screen: string;
|
|
60
70
|
/** The permission everything that writes asks for. */
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { createLinksApi, emptyLink, type LinkCandidate, type LinkRel, type LinkS
|
|
|
13
13
|
export { createHttp, readCookie, HttpError, type Http, type HttpOptions, type RequestOptions, type SendOptions, } from './http';
|
|
14
14
|
export { forgetUnfinishedUpload, MIN_CHUNK, unfinishedUploads, uploadFingerprint, useChunkedUpload, type ChunkedUpload, type ChunkedUploadOptions, type ChunkedUploadState, type UnfinishedUpload, } from './uploads';
|
|
15
15
|
export { adminTypes } from './screenTypes';
|
|
16
|
-
export { categoryRoutes, createCategoriesApi, itemOrderMode, reorderItems, useCategoryEditor, useCategoryWords, useItemOrder, type CategoriesApi, type CategoriesOptions, type CategoriesPayload, type CategoryDetail, type CategoryEditorContext, type CategoryRow, type CategoryWord, type ItemOrder, type ItemOrderMode, type ItemOrderState, } from './categories';
|
|
16
|
+
export { categoryRoutes, categoryEditorKey, createCategoriesApi, itemOrderMode, provideCategoryEditor, reorderItems, useCategoryEditor, useCategoryWords, useItemOrder, type CategoriesApi, type CategoriesOptions, type CategoriesPayload, type CategoryDetail, type CategoryEditorContext, type CategoryRow, type CategoryWord, type ItemOrder, type ItemOrderMode, type ItemOrderState, } from './categories';
|
|
17
17
|
export { COLLECTION_MAX_LIMIT, collectionSources, defaultMarkup, normaliseCollection, type CollectionRelated, type CollectionRelationTarget, type CollectionSourceInfo, type CollectionValue, } from './collections/api';
|
|
18
18
|
export { createRelationsApi, normaliseRelations, provideRelationOwner, relationOwnerKey, useRelationOwner, type RelationCandidate, type RelationOwner, type RelationsApi, } from './relations/api';
|
|
19
19
|
export type { AdminModule, AdminStatus, AdminUser, Manifest, ManifestModule, NavEntry, PickedImage, RowAction, ScreenAction, AppliedFilter, } from './types';
|
|
@@ -41,6 +41,7 @@ export { default as WxCategoriesPage } from './categories/CategoriesPage';
|
|
|
41
41
|
export { default as WxCategoryCreateDialog } from './categories/CategoryCreateDialog';
|
|
42
42
|
export { default as WxCategoryEditorPage } from './categories/CategoryEditorPage';
|
|
43
43
|
export { default as WxCategoriesField } from './categories/CategoriesField';
|
|
44
|
+
export { default as WxSourceSelect } from './categories/SourceSelect';
|
|
44
45
|
export { default as WxCollectionField } from './collections/CollectionField';
|
|
45
46
|
export { default as WxRelationsField } from './relations/RelationsField';
|
|
46
47
|
export { default as WxSlugField } from './SlugField';
|