@wssto2/vue-core 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/CHANGELOG.md +31 -0
- package/README.md +5 -1
- package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-Bg8JFAOT.js → AccessGate.vue_vue_type_script_setup_true_lang-Dw_pnsh9.js} +1 -1
- package/dist/{AccountMenuItem.vue_vue_type_script_setup_true_lang-BIYgaihv.js → AccountMenuItem.vue_vue_type_script_setup_true_lang-C2TmmH38.js} +1 -1
- package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-B5IMNnTf.js → ActionRow.vue_vue_type_script_setup_true_lang-BEV0drwF.js} +2 -2
- package/dist/{Activity-CiYn5E6A.js → Activity-CZzAt3SH.js} +9 -9
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-oXWQTfBs.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-BkZzuICH.js} +6 -6
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-WuGvAOrj.js → AlertDialog.vue_vue_type_script_setup_true_lang-B0UvzCoE.js} +1 -1
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-CX8mpXRE.js → AsyncSection.vue_vue_type_script_setup_true_lang-DuPS_zMX.js} +4 -4
- package/dist/{Banner.vue_vue_type_script_setup_true_lang-sv0phngk.js → Banner.vue_vue_type_script_setup_true_lang-BXZVOhfH.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-JrqhO99l.js → Button.vue_vue_type_script_setup_true_lang-CZkTqGtE.js} +1 -1
- package/dist/{Changes-Cy8STpLX.js → Changes-B0bhSNU3.js} +5 -5
- package/dist/CharacteristicsPage-fGnahf62.js +4 -0
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-Dr6nFNBB.js → CollectionPage.vue_vue_type_script_setup_true_lang-Bf5WXVFZ.js} +12 -12
- package/dist/CollectionTree.vue_vue_type_script_setup_true_lang-DV0OhquO.js +345 -0
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-D372wlxR.js → DataTable.vue_vue_type_script_setup_true_lang-Cw_E8w48.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-D0KcfW8R.js → DateField.vue_vue_type_script_setup_true_lang-Cn8CNAwM.js} +4 -4
- package/dist/{DeadLetters-DhJkMpd_.js → DeadLetters--js7aeC6.js} +4 -4
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-92szOrYd.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-lnFUie1d.js} +1 -1
- package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-DbZiO2RF.js → EmptyState.vue_vue_type_script_setup_true_lang-DHmu-UG-.js} +1 -1
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-lvAuBG-0.js → FormGroup.vue_vue_type_script_setup_true_lang-BUhKKybf.js} +4 -4
- package/dist/{FormRow.vue_vue_type_script_setup_true_lang-CpgNVQF4.js → FormRow.vue_vue_type_script_setup_true_lang-B-uth5RB.js} +1 -1
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-D01Jr4UU.js → FormView.vue_vue_type_script_setup_true_lang-CoQZG-hB.js} +2 -2
- package/dist/{General-CwTPC5UP.js → General-BGT9H69S.js} +8 -8
- package/dist/{HeaderAction.vue_vue_type_script_setup_true_lang-Da59TLBh.js → HeaderAction.vue_vue_type_script_setup_true_lang-Uw0vwV-o.js} +2 -2
- package/dist/{Icon.vue_vue_type_script_lang-BhhsFYwp.js → Icon.vue_vue_type_script_lang-BIzh8LF1.js} +19 -13
- package/dist/{IconTile.vue_vue_type_script_setup_true_lang-BmxCuUZ9.js → IconTile.vue_vue_type_script_setup_true_lang-DRirnJvd.js} +1 -1
- package/dist/{IncidentRecord-hXEGuLGg.js → IncidentRecord-BETFfXbI.js} +17 -17
- package/dist/{IncidentsList-C41VyDwK.js → IncidentsList-BIr3a2To.js} +6 -6
- package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-CrGrjrlO.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-DjXYh-p0.js} +1 -1
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-Cqu4Ebsb.js → Menu.vue_vue_type_script_setup_true_lang-D2FsOVYA.js} +1 -1
- package/dist/{MenuButton.vue_vue_type_script_setup_true_lang-C-XRr5f2.js → MenuButton.vue_vue_type_script_setup_true_lang-BNzrYIzR.js} +1 -1
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-CZ7WrDwu.js → Modal.vue_vue_type_script_setup_true_lang-BRRMKXOV.js} +2 -2
- package/dist/{NewRolePage-BYYZJkK7.js → NewRolePage-B0Y5MrTu.js} +4 -4
- package/dist/{NoAccess.vue_vue_type_script_setup_true_lang-BHzZtZ50.js → NoAccess.vue_vue_type_script_setup_true_lang-CnfE_AEl.js} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-BhNZgEW6.js → NumberField.vue_vue_type_script_setup_true_lang-BDZ_0TH7.js} +2 -2
- package/dist/{Panel.vue_vue_type_script_setup_true_lang-D_Wg42hu.js → Panel.vue_vue_type_script_setup_true_lang-CwcJadT7.js} +1 -1
- package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-mYFuG-Y3.js → PersonAccess.vue_vue_type_script_setup_true_lang-CJMV9BDQ.js} +12 -12
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-DmMg1T_V.js → PhotoViewer.vue_vue_type_script_setup_true_lang-BL485L63.js} +1 -1
- package/dist/{ProfilePage-DGEsIycR.js → ProfilePage-CMy2Dkr2.js} +17 -17
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-B3BnYg1x.js → RecordHeader.vue_vue_type_script_setup_true_lang-D4PcZnbo.js} +2 -2
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-1iZtj3rh.js → ResourcePage.vue_vue_type_script_setup_true_lang-CpGwm2tv.js} +4 -4
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-BslSDDiM.js → RoleEditor.vue_vue_type_script_setup_true_lang-CMo8PrO7.js} +12 -12
- package/dist/{RolePage-C08ZUqw1.js → RolePage-DGFISfM1.js} +13 -13
- package/dist/{RolesPage-FOuY1VKg.js → RolesPage-Bq9EVB_3.js} +9 -9
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-CodyVezo.js → SectionList.vue_vue_type_script_setup_true_lang-BdJ11lZo.js} +3 -3
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-DCTFxfPB.js → SectionNavigator.vue_vue_type_script_setup_true_lang-CnzECivO.js} +6 -6
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-CLR6EvzO.js → SegmentedField.vue_vue_type_script_setup_true_lang-D3IZil4q.js} +2 -2
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-D5xYofdb.js → SelectField.vue_vue_type_script_setup_true_lang-DxCEwED6.js} +6 -6
- package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-CDr4WNIb.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-DtVXUOdP.js} +8 -8
- package/dist/{ServiceAccountRecord-kWwIQGZb.js → ServiceAccountRecord-Dc7Gn52W.js} +18 -18
- package/dist/{ServiceAccountsList-CKy9_YHP.js → ServiceAccountsList-DBUFeka-.js} +10 -10
- package/dist/{Sessions-BDc8gdYH.js → Sessions-BMmqYZrJ.js} +7 -7
- package/dist/{SettingsPage-t-8kmFVT.js → SettingsPage-4Dolsr0t.js} +18 -18
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-BVU5yzXe.js +163 -0
- package/dist/{SignIn-CqtkvtCZ.js → SignIn-uFn1ZWG8.js} +8 -8
- package/dist/{SignInPage-DcdNKZIb.js → SignInPage-DouCg9aD.js} +6 -6
- package/dist/{SignIns-D4-nGu0B.js → SignIns-CqN5UNmh.js} +5 -5
- package/dist/SortableList.vue_vue_type_script_setup_true_lang-D2-5Z_jO.js +112 -0
- package/dist/{StatusLine.vue_vue_type_script_setup_true_lang-DsdQmLq6.js → StatusLine.vue_vue_type_script_setup_true_lang-DBkQueB0.js} +1 -1
- package/dist/{SwipeActions.vue_vue_type_script_setup_true_lang-D8SiC0G7.js → SwipeActions.vue_vue_type_script_setup_true_lang-DUjUWq3G.js} +1 -1
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-CLtcuofe.js → SwitchField.vue_vue_type_script_setup_true_lang-CTMjlNid.js} +2 -2
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-7CJto6Mp.js +169 -0
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-CVGh-p3J.js → TextField.vue_vue_type_script_setup_true_lang-B6Q65aQA.js} +4 -4
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-YxUlNHSk.js → TextareaField.vue_vue_type_script_setup_true_lang-Cj0LKDdo.js} +2 -2
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-DHNC_MLt.js → TimeField.vue_vue_type_script_setup_true_lang-TSnnjMn1.js} +4 -4
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-d_KuxWjH.js → Timestamp.vue_vue_type_script_setup_true_lang-0WL7PP0j.js} +1 -1
- package/dist/{UserRecord-CwZCr9Im.js → UserRecord-CH5oNRLg.js} +10 -10
- package/dist/{UsersList-Cn19sFgv.js → UsersList-BmxWpt9h.js} +3 -3
- package/dist/{ViewTabs.vue_vue_type_script_setup_true_lang-BjdDXE3T.js → ViewTabs.vue_vue_type_script_setup_true_lang-BKI5DGuS.js} +1 -1
- package/dist/access/index.js +7 -7
- package/dist/app/index.js +2 -2
- package/dist/{application-CDSweJb9.js → application-C5fZyCB9.js} +8 -8
- package/dist/{back-LcLlFodC.js → back-CeozxCgQ.js} +2 -2
- package/dist/button/index.js +1 -1
- package/dist/characteristics/CharacteristicsPage.vue.d.ts +2 -0
- package/dist/characteristics/DeleteDialog.vue.d.ts +22 -0
- package/dist/characteristics/ItemSheet.vue.d.ts +25 -0
- package/dist/characteristics/access.d.ts +3 -0
- package/dist/characteristics/api.d.ts +23 -0
- package/dist/characteristics/context.d.ts +12 -0
- package/dist/characteristics/feature.d.ts +27 -0
- package/dist/characteristics/index.d.ts +10 -0
- package/dist/characteristics/index.js +617 -0
- package/dist/characteristics/model.d.ts +34 -0
- package/dist/characteristics/routes.d.ts +13 -0
- package/dist/collection/CollectionTree.vue.d.ts +51 -0
- package/dist/collection/CollectionTreeBranch.vue.d.ts +12 -0
- package/dist/collection/FileExplorer.vue.d.ts +53 -0
- package/dist/collection/RowMore.vue.d.ts +11 -0
- package/dist/collection/explorer.d.ts +11 -0
- package/dist/collection/index.d.ts +5 -0
- package/dist/collection/index.js +431 -158
- package/dist/collection/tree.d.ts +64 -0
- package/dist/content/DiffView.vue.d.ts +22 -0
- package/dist/content/PreviewFrame.vue.d.ts +46 -0
- package/dist/content/diff.d.ts +27 -0
- package/dist/content/index.d.ts +4 -0
- package/dist/content/index.js +552 -218
- package/dist/content/previewFrame.d.ts +50 -0
- package/dist/{contributions-B0x5x5xD.js → contributions-BSmIRPg1.js} +1 -1
- package/dist/controls/SortableList.vue.d.ts +32 -0
- package/dist/controls/Tabs.vue.d.ts +2 -0
- package/dist/controls/index.d.ts +1 -0
- package/dist/controls/index.js +18 -16
- package/dist/form/CharacteristicField.vue.d.ts +36 -0
- package/dist/form/CodeEditor.vue.d.ts +61 -0
- package/dist/form/I18nField.vue.d.ts +1 -1
- package/dist/form/MarkerList.vue.d.ts +20 -0
- package/dist/form/TextareaField.vue.d.ts +1 -1
- package/dist/form/index.d.ts +3 -0
- package/dist/form/index.js +1769 -1805
- package/dist/{guards-CNJ0ATVC.js → guards-BP9x7CLF.js} +1 -1
- package/dist/i18n/index.js +46 -46
- package/dist/icon/core.d.ts +6 -0
- package/dist/icon/index.js +1 -1
- package/dist/identity/index.js +3 -3
- package/dist/identity/profile/EmailChangeDialog.vue.d.ts +2 -2
- package/dist/incidents/index.js +1 -1
- package/dist/{index-SLJWm40T.js → index-4wyfEeIw.js} +9 -9
- package/dist/{index-BA2w8uwD.js → index-C_ZVaTkR.js} +27 -27
- package/dist/{index-1HS7O2-e.js → index-OVbtHAtG.js} +10 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modal/Sheet.vue.d.ts +13 -0
- package/dist/modal/TabbedSheet.vue.d.ts +46 -0
- package/dist/modal/index.d.ts +1 -0
- package/dist/modal/index.js +123 -41
- package/dist/modules/characteristics/entities.d.ts +67 -0
- package/dist/modules/characteristics/routes.d.ts +55 -0
- package/dist/modules/characteristics/schemas.d.ts +50 -0
- package/dist/modules/identity/entities.d.ts +1 -0
- package/dist/navigation-C05vGEN8.js +55 -0
- package/dist/{neighbors-Dg_LU9ry.js → neighbors-BqfO6zf3.js} +2 -2
- package/dist/notifications/index.js +1 -1
- package/dist/onboarding/index.js +2 -2
- package/dist/{options-mOOX6JSS.js → options-DDCG86OV.js} +2 -2
- package/dist/overlay/index.js +4 -4
- package/dist/page/SectionNavigator.vue.d.ts +1 -1
- package/dist/page/SplitPane.vue.d.ts +54 -0
- package/dist/page/WorkbenchPage.vue.d.ts +72 -0
- package/dist/page/index.d.ts +2 -0
- package/dist/page/index.js +343 -104
- package/dist/phone/index.js +3 -3
- package/dist/platform/index.js +3 -3
- package/dist/platform/navigation.d.ts +10 -0
- package/dist/{platform-DU9QFts8.js → platform-YWfOO7b2.js} +94 -88
- package/dist/pwa/index.js +3 -3
- package/dist/resource/index.js +1 -1
- package/dist/{resources-BZLlAtoS.js → resources-DkI60fHL.js} +1 -1
- package/dist/router/index.js +4 -4
- package/dist/router/navigation.d.ts +2 -0
- package/dist/routes-DC8BWFz8.js +251 -0
- package/dist/{rowLayout-PIuD7MGo.js → rowLayout-zd3Yw6fO.js} +34 -33
- package/dist/{sectionIndex-BS0ic5W7.js → sectionIndex-CSr457Lb.js} +2 -2
- package/dist/{sections-BpiRLntE.js → sections-DXso1JSV.js} +2 -2
- package/dist/shell/NavigationList.vue.d.ts +1 -1
- package/dist/shell/index.js +522 -501
- package/dist/shell/navigationGroups.d.ts +4 -1
- package/dist/state/index.js +8 -8
- package/dist/{state-z1iPF1DT.js → state-DqCZdet7.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{suggestions-DeMgs_ki.js → suggestions-DZ3B5RVH.js} +1 -1
- package/dist/testing/index.js +2 -2
- package/dist/{useCommand-DQKvro1n.js → useCommand-DerEnzIW.js} +4 -4
- package/dist/{useGroupSheet-CRw3MUmX.js → useGroupSheet-B9TCHIKH.js} +5 -5
- package/dist/{usePreferences-DB29UTFD.js → usePreferences-D38x73re.js} +1 -1
- package/dist/{useRecordDialog-0azHxxvm.js → useRecordDialog-DX97ivZD.js} +1 -1
- package/dist/{useResourceForm-zVuWerSn.js → useResourceForm-D8T1snBQ.js} +1 -1
- package/dist/{useTypedEntry-BsMV66Yc.js → useTypedEntry-CTkgM29Y.js} +2 -2
- package/package.json +6 -2
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-BG8HUNfs.js +0 -145
- package/dist/Tabs.vue_vue_type_script_setup_true_lang-tpkGp98F.js +0 -155
- package/dist/navigation-d-JAPBGA.js +0 -53
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { TreeColumn, TreeNode } from "../collection";
|
|
2
|
+
import type { DescriptionResponse, FieldResponse, ItemResponse, LabelResponse, LevelResponse } from "../modules/characteristics/entities";
|
|
3
|
+
/** One item of the tree as the screen draws it. `id` is `"<level>:<id>"`: ids repeat from one level's table to the next. */
|
|
4
|
+
export interface CharacteristicNode extends TreeNode<CharacteristicNode> {
|
|
5
|
+
readonly item: ItemResponse;
|
|
6
|
+
readonly level: number;
|
|
7
|
+
/** The items from the root down to this one's parent. */
|
|
8
|
+
readonly ancestors: readonly ItemResponse[];
|
|
9
|
+
readonly children?: readonly CharacteristicNode[];
|
|
10
|
+
}
|
|
11
|
+
export declare const keyOf: (level: number, id: number) => string;
|
|
12
|
+
export declare const parseKey: (key: string | number) => {
|
|
13
|
+
level: number;
|
|
14
|
+
id: number;
|
|
15
|
+
};
|
|
16
|
+
/** A label in the administration's language: Croatian for the Croatian-family locales, English otherwise. */
|
|
17
|
+
export declare const labelIn: (label: LabelResponse, locale: string) => string;
|
|
18
|
+
/** The fields of `level` that apply to an item below `path` (the item's ancestors, and the item itself once it exists): a field with `under` is for one branch only. */
|
|
19
|
+
export declare function fieldsFor(level: LevelResponse, path: readonly {
|
|
20
|
+
level: number;
|
|
21
|
+
id: number;
|
|
22
|
+
}[]): readonly FieldResponse[];
|
|
23
|
+
/** The tree of the flat, depth-first list the server sends: siblings by `order`, the described levels' extras on `item`. */
|
|
24
|
+
export declare function buildTree(items: readonly ItemResponse[], description: DescriptionResponse): CharacteristicNode[];
|
|
25
|
+
/** The columns of the list: every `in_list` field of every level, a column once however many branches describe it. */
|
|
26
|
+
export declare function listColumns(description: DescriptionResponse, locale: string): {
|
|
27
|
+
column: TreeColumn<CharacteristicNode>;
|
|
28
|
+
fields: readonly {
|
|
29
|
+
level: LevelResponse;
|
|
30
|
+
field: FieldResponse;
|
|
31
|
+
}[];
|
|
32
|
+
}[];
|
|
33
|
+
/** A value as the list shows it: a choice by its label, a yes/no as words. */
|
|
34
|
+
export declare function displayValue(field: FieldResponse, value: unknown, locale: string, yes: string, no: string): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RouteRecordRaw } from "vue-router";
|
|
2
|
+
/**
|
|
3
|
+
* The route of `characteristicsFeature`: a typed target for links (`characteristicsPages.index`) and the record the feature installs.
|
|
4
|
+
* The name and path are fixed, so a link or a menu binding of the application can name them.
|
|
5
|
+
*/
|
|
6
|
+
export interface CharacteristicsPages {
|
|
7
|
+
/** The records `characteristicsFeature` installs. */
|
|
8
|
+
readonly records: readonly RouteRecordRaw[];
|
|
9
|
+
readonly index: {
|
|
10
|
+
readonly name: "characteristics.index";
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare const characteristicsPages: CharacteristicsPages;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { RowAction } from "./columns";
|
|
2
|
+
import { type TreeColumn, type TreeNode, type TreeReorder } from "./tree";
|
|
3
|
+
declare const _default: <Node extends TreeNode<Node>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly onToggle?: ((node: Node, active: boolean) => any) | undefined;
|
|
6
|
+
readonly onAdd?: ((parent: Node | null) => any) | undefined;
|
|
7
|
+
readonly onOpen?: ((node: Node) => any) | undefined;
|
|
8
|
+
readonly onReorder?: ((change: TreeReorder) => any) | undefined;
|
|
9
|
+
readonly "onUpdate:expanded"?: ((value: readonly (string | number)[]) => any) | undefined;
|
|
10
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onToggle" | "onAdd" | "onOpen" | "onReorder" | "onUpdate:expanded"> & ({
|
|
11
|
+
nodes: readonly Node[];
|
|
12
|
+
columns?: readonly TreeColumn<Node>[];
|
|
13
|
+
/** The accessible name of the tree. */
|
|
14
|
+
label: string;
|
|
15
|
+
reorderable?: boolean;
|
|
16
|
+
readonly?: boolean;
|
|
17
|
+
search?: string;
|
|
18
|
+
/** Rows to leave out, besides the search's. */
|
|
19
|
+
filter?: (node: Node) => boolean;
|
|
20
|
+
activeLabel?: string;
|
|
21
|
+
addLabel?: (parent: Node | null, level: number) => string | null;
|
|
22
|
+
rowActions?: (node: Node, depth: number) => RowAction[];
|
|
23
|
+
/** The header of the name column. */
|
|
24
|
+
nameLabel?: string;
|
|
25
|
+
} & {
|
|
26
|
+
/** The ids of the open groups. */
|
|
27
|
+
expanded?: readonly (string | number)[];
|
|
28
|
+
}) & Partial<{}>> & import("vue").PublicProps;
|
|
29
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
30
|
+
attrs: any;
|
|
31
|
+
slots: {
|
|
32
|
+
[name: `cell-${string}`]: (scope: {
|
|
33
|
+
node: Node;
|
|
34
|
+
depth: number;
|
|
35
|
+
}) => unknown;
|
|
36
|
+
/** A row's icon; by default a folder for a group and a tag for an item. */
|
|
37
|
+
icon?: (scope: {
|
|
38
|
+
node: Node;
|
|
39
|
+
depth: number;
|
|
40
|
+
}) => unknown;
|
|
41
|
+
/** What shows when there are no rows. */
|
|
42
|
+
empty?: () => unknown;
|
|
43
|
+
};
|
|
44
|
+
emit: (((evt: "toggle", node: Node, active: boolean) => void) & ((evt: "add", parent: Node | null) => void) & ((evt: "open", node: Node) => void) & ((evt: "reorder", change: TreeReorder) => void)) & ((evt: "update:expanded", value: readonly (string | number)[]) => void);
|
|
45
|
+
}>) => import("vue").VNode & {
|
|
46
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_PrettifyLocal<T> = {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} & {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type LooseNode } from "./tree";
|
|
2
|
+
/**
|
|
3
|
+
* The children of one parent (internal to `CollectionTree`): a sortable list of rows, each with its own branch below it while it is open,
|
|
4
|
+
* and the "add" row at the end of an open branch. Rows can only be reordered among their siblings because each branch is its own list.
|
|
5
|
+
*/
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
nodes: readonly LooseNode[];
|
|
8
|
+
parent: LooseNode | null;
|
|
9
|
+
depth: number;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { PageAction } from "../page/types";
|
|
2
|
+
import { type Column, type RowAction } from "./columns";
|
|
3
|
+
import type { ExplorerCrumb, ExplorerRow } from "./explorer";
|
|
4
|
+
import type { CellSlots } from "./slots";
|
|
5
|
+
declare const _default: <Row extends ExplorerRow, const Col extends Column<Row, never>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
7
|
+
readonly onOpen?: ((row: Row) => any) | undefined;
|
|
8
|
+
readonly "onUpdate:selected"?: ((value: readonly (string | number)[]) => any) | undefined;
|
|
9
|
+
readonly "onUpdate:folder"?: ((value: string | null) => any) | undefined;
|
|
10
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onOpen" | "onUpdate:selected" | "onUpdate:folder"> & ({
|
|
11
|
+
rows: readonly Row[];
|
|
12
|
+
columns: readonly Col[];
|
|
13
|
+
/** The accessible name of the table ("Pages and directories"). */
|
|
14
|
+
label: string;
|
|
15
|
+
/** Root first, the open folder last. Without it no breadcrumb shows. */
|
|
16
|
+
breadcrumb?: readonly ExplorerCrumb[];
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
/** The row's menu: More at its end. */
|
|
19
|
+
rowActions?: (row: Row) => RowAction[];
|
|
20
|
+
/** The bar of buttons over the ticked rows. */
|
|
21
|
+
selectionActions?: (rows: readonly Row[]) => readonly PageAction[];
|
|
22
|
+
/** The query parameter that holds the open folder; `null` keeps the folder out of the URL. */
|
|
23
|
+
param?: string | null;
|
|
24
|
+
/** The header of the name column. */
|
|
25
|
+
nameLabel?: string;
|
|
26
|
+
} & {
|
|
27
|
+
/** The ids of the ticked rows. */
|
|
28
|
+
selected?: readonly (string | number)[];
|
|
29
|
+
/** The id of the open folder, `null` at the root. */
|
|
30
|
+
folder?: string | null;
|
|
31
|
+
}) & Partial<{}>> & import("vue").PublicProps;
|
|
32
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
33
|
+
attrs: any;
|
|
34
|
+
slots: CellSlots<Row, Col> & {
|
|
35
|
+
/** Before the breadcrumb: the host picker. */
|
|
36
|
+
switch?: () => unknown;
|
|
37
|
+
/** The page's own buttons at the end of the header (upload, new folder, New). */
|
|
38
|
+
toolbar?: () => unknown;
|
|
39
|
+
/** A row's icon; by default the kind's. */
|
|
40
|
+
icon?: (scope: {
|
|
41
|
+
item: Row;
|
|
42
|
+
}) => unknown;
|
|
43
|
+
/** What an empty folder shows. */
|
|
44
|
+
empty?: () => unknown;
|
|
45
|
+
};
|
|
46
|
+
emit: ((evt: "open", row: Row) => void) & (((evt: "update:selected", value: readonly (string | number)[]) => void) & ((evt: "update:folder", value: string | null) => void));
|
|
47
|
+
}>) => import("vue").VNode & {
|
|
48
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
49
|
+
};
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_PrettifyLocal<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RowAction } from "./columns";
|
|
2
|
+
/**
|
|
3
|
+
* The More button of a row and the menu of its actions, for the explorer and the tree (internal). A row without actions shows nothing.
|
|
4
|
+
* `label` names the row ("More actions: Kontakt"), so the buttons of a list are told apart.
|
|
5
|
+
*/
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
actions: readonly RowAction[];
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** What a `FileExplorer` row is: a folder, a page, a link or a file; the app's rows carry whatever else the columns show. */
|
|
2
|
+
export interface ExplorerRow {
|
|
3
|
+
readonly id: string | number;
|
|
4
|
+
readonly kind: "folder" | "page" | "link" | "file";
|
|
5
|
+
readonly name: string;
|
|
6
|
+
}
|
|
7
|
+
/** One step of a `FileExplorer` breadcrumb: the folder's id (`null`: the root) and its name. */
|
|
8
|
+
export interface ExplorerCrumb {
|
|
9
|
+
readonly id: string | null;
|
|
10
|
+
readonly label: string;
|
|
11
|
+
}
|
|
@@ -29,3 +29,8 @@ export { createPicker } from "./picker";
|
|
|
29
29
|
export type { Picker, PickerOptions } from "./picker";
|
|
30
30
|
export { default as PickerModal } from "./PickerModal.vue";
|
|
31
31
|
export { default as DynamicCollection } from "./DynamicCollection.vue";
|
|
32
|
+
export { default as FileExplorer } from "./FileExplorer.vue";
|
|
33
|
+
export type { ExplorerCrumb, ExplorerRow } from "./explorer";
|
|
34
|
+
export { default as CollectionTree } from "./CollectionTree.vue";
|
|
35
|
+
export { matchesText, visibleNodes } from "./tree";
|
|
36
|
+
export type { TreeColumn, TreeNode, TreeReorder } from "./tree";
|