@webx-ui/module-admin 0.19.0 → 0.21.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 +3 -1
- package/dist/categories/SourceSelect.d.ts +11 -0
- package/dist/categories/index.d.ts +1 -1
- package/dist/http.d.ts +12 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1963 -1645
- 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/dist/uploads.d.ts +79 -0
- package/package.json +2 -2
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;
|
|
@@ -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';
|
package/dist/http.d.ts
CHANGED
|
@@ -44,14 +44,26 @@ export declare class HttpError extends Error {
|
|
|
44
44
|
get isUnauthenticated(): boolean;
|
|
45
45
|
get isThrottled(): boolean;
|
|
46
46
|
}
|
|
47
|
+
export interface SendOptions extends RequestOptions {
|
|
48
|
+
/** Sent as it is — bytes, a `Blob`, a string — with no `Content-Type` added for it. */
|
|
49
|
+
body?: BodyInit | null;
|
|
50
|
+
}
|
|
47
51
|
export interface Http {
|
|
48
52
|
get<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
49
53
|
post<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
|
|
50
54
|
put<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
|
|
51
55
|
patch<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
|
|
52
56
|
delete<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
57
|
+
/**
|
|
58
|
+
* A request with the panel's conventions (the CSRF cookie, the standing headers, 419 and 401)
|
|
59
|
+
* and nothing else: the body goes as it is and the response comes back whatever its status.
|
|
60
|
+
* For what JSON does not fit — the pieces of a chunked upload, a `HEAD` asked for a header.
|
|
61
|
+
* Optional so that a hand-made client in a test or a project does not have to grow one.
|
|
62
|
+
*/
|
|
63
|
+
send?(method: string, path: string, options?: SendOptions): Promise<Response>;
|
|
53
64
|
}
|
|
54
65
|
export declare function createHttp(options?: HttpOptions): Http;
|
|
66
|
+
export declare function toError(response: Response): Promise<HttpError>;
|
|
55
67
|
/**
|
|
56
68
|
* Laravel writes the token URL-encoded, and it is read back the same way it was written.
|
|
57
69
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -10,9 +10,10 @@ export { useBodyKeys } from './keys';
|
|
|
10
10
|
export { createNotesApi, type EntityNote, type NoteAuthor, type NotesApi } from './notes';
|
|
11
11
|
export { createHistoryApi, historySubjectKey, historyValue, provideHistorySubject, useHistorySubject, type HistoryApi, type HistoryChange, type HistoryEntry, type HistoryEvent, type HistoryPage, type HistoryRun, type HistorySource, type HistorySubject, } from './history';
|
|
12
12
|
export { createLinksApi, emptyLink, type LinkCandidate, type LinkRel, type LinkSourceInfo, type LinkTarget, type LinkValue, type LinksApi, type ResolvedLink, } from './links';
|
|
13
|
-
export { createHttp, readCookie, HttpError, type Http, type HttpOptions, type RequestOptions, } from './http';
|
|
13
|
+
export { createHttp, readCookie, HttpError, type Http, type HttpOptions, type RequestOptions, type SendOptions, } from './http';
|
|
14
|
+
export { forgetUnfinishedUpload, MIN_CHUNK, unfinishedUploads, uploadFingerprint, useChunkedUpload, type ChunkedUpload, type ChunkedUploadOptions, type ChunkedUploadState, type UnfinishedUpload, } from './uploads';
|
|
14
15
|
export { adminTypes } from './screenTypes';
|
|
15
|
-
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';
|
|
16
17
|
export { COLLECTION_MAX_LIMIT, collectionSources, defaultMarkup, normaliseCollection, type CollectionRelated, type CollectionRelationTarget, type CollectionSourceInfo, type CollectionValue, } from './collections/api';
|
|
17
18
|
export { createRelationsApi, normaliseRelations, provideRelationOwner, relationOwnerKey, useRelationOwner, type RelationCandidate, type RelationOwner, type RelationsApi, } from './relations/api';
|
|
18
19
|
export type { AdminModule, AdminStatus, AdminUser, Manifest, ManifestModule, NavEntry, PickedImage, RowAction, ScreenAction, AppliedFilter, } from './types';
|
|
@@ -40,6 +41,7 @@ export { default as WxCategoriesPage } from './categories/CategoriesPage';
|
|
|
40
41
|
export { default as WxCategoryCreateDialog } from './categories/CategoryCreateDialog';
|
|
41
42
|
export { default as WxCategoryEditorPage } from './categories/CategoryEditorPage';
|
|
42
43
|
export { default as WxCategoriesField } from './categories/CategoriesField';
|
|
44
|
+
export { default as WxSourceSelect } from './categories/SourceSelect';
|
|
43
45
|
export { default as WxCollectionField } from './collections/CollectionField';
|
|
44
46
|
export { default as WxRelationsField } from './relations/RelationsField';
|
|
45
47
|
export { default as WxSlugField } from './SlugField';
|