@xy-planning-network/trees 0.13.7-dev-1 → 0.13.7-dev-3
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/trees.es.js +443 -441
- package/dist/trees.umd.js +11 -11
- package/package.json +1 -1
- package/types/composables/index.d.ts +6 -6
- package/types/composables/table.d.ts +2 -2
- package/types/composables/useTable.d.ts +4 -4
- package/types/entry.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { default as useBaseAPI, useBaseAPIGet, useBaseAPIPatch, useBaseAPIPut, useBaseAPIPost, useBaseAPIDelete } from "./useBaseAPI";
|
|
2
2
|
import type { UseBaseAPIOptions, UseBaseAPI } from "./useBaseAPI";
|
|
3
|
-
import type { DynamicTableOptions, DynamicTableAPI, TableActionItem,
|
|
3
|
+
import type { DynamicTableOptions, DynamicTableAPI, TableActionButton, TableActionItem, TableActionLink, TableActions, TableBulkActionItem, TableColumn, TableColumns, TableCellAlignment, TableRowData, TableRowsData } from "./table";
|
|
4
4
|
import type { DetailListAPI, SortDir } from "./list";
|
|
5
|
-
export type { UseBaseAPIOptions, UseBaseAPI, DetailListAPI, DynamicTableOptions, DynamicTableAPI, SortDir, TableActionItem,
|
|
5
|
+
export type { UseBaseAPIOptions, UseBaseAPI, DetailListAPI, DynamicTableOptions, DynamicTableAPI, SortDir, TableActionButton, TableActionItem, TableActionLink, TableActions, TableBulkActionItem, TableColumn, TableColumns, TableCellAlignment, TableRowData, TableRowsData, };
|
|
6
6
|
export { useBaseAPI, useBaseAPIGet, useBaseAPIPatch, useBaseAPIPut, useBaseAPIPost, useBaseAPIDelete, };
|
|
7
7
|
import { useFlashes, useAppFlashes, useAppFlasher } from "./useFlashes";
|
|
8
8
|
import type { FlashMessage, FlashType, FlashStore, Flasher } from "./useFlashes";
|
|
9
9
|
export type { FlashMessage, FlashType, FlashStore, Flasher };
|
|
10
10
|
export { useFlashes, useAppFlashes, useAppFlasher };
|
|
11
|
-
import type { ActionItem, NavItem, Pagination, URLParams, URLParamValue, UseTabHistoryOpts } from "./nav";
|
|
12
|
-
export type { ActionItem, NavItem, Pagination, URLParams, URLParamValue, UseTabHistoryOpts, };
|
|
13
|
-
import { useUrlSearchParams, useTabHistory } from "./nav";
|
|
14
|
-
export { useUrlSearchParams, useTabHistory };
|
|
11
|
+
import type { ActionItem, ActionItemButton, ActionItemLink, NavItem, Pagination, URLParams, URLParamValue, UseTabHistoryOpts } from "./nav";
|
|
12
|
+
export type { ActionItem, ActionItemButton, ActionItemLink, NavItem, Pagination, URLParams, URLParamValue, UseTabHistoryOpts, };
|
|
13
|
+
import { isActionItemButton, isActionItemLink, useUrlSearchParams, useTabHistory } from "./nav";
|
|
14
|
+
export { isActionItemButton, isActionItemLink, useUrlSearchParams, useTabHistory, };
|
|
15
15
|
import { useSpinnerDisplay, useAppSpinner } from "./useSpinner";
|
|
16
16
|
export { useSpinnerDisplay, useAppSpinner };
|
|
@@ -73,7 +73,7 @@ export interface TableActionButton<T = TableRowData> {
|
|
|
73
73
|
*/
|
|
74
74
|
export interface TableActionLink<T = TableRowData> {
|
|
75
75
|
label: string;
|
|
76
|
-
url: string;
|
|
76
|
+
url: string | ((rowData: T, rowIndex: number) => string);
|
|
77
77
|
attrs?: Record<string, string | number | boolean>;
|
|
78
78
|
disabled?: boolean | ((rowData: T, rowIndex: number) => boolean);
|
|
79
79
|
icon?: FunctionalComponent | RenderFunction;
|
|
@@ -87,7 +87,7 @@ export interface TableActionLink<T = TableRowData> {
|
|
|
87
87
|
* @param e Event | undefined
|
|
88
88
|
* @returns void
|
|
89
89
|
*/
|
|
90
|
-
onClick
|
|
90
|
+
onClick?: (rowData: T, rowIndex: number, tableAPI: DynamicTableAPI, e?: Event) => void;
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
* TableBulkActionItem determines the configuration for a bulk action button on a table.
|
|
@@ -14,19 +14,19 @@ export declare const useTable: (rowData: TableRowsData | Ref<TableRowsData>, col
|
|
|
14
14
|
rows: import("vue").ComputedRef<{
|
|
15
15
|
actions: ({
|
|
16
16
|
disabled: boolean | undefined;
|
|
17
|
-
onClick: (e?: Event) => void;
|
|
17
|
+
onClick: (e?: Event) => void | (() => void);
|
|
18
18
|
show: boolean | undefined;
|
|
19
|
+
url: string;
|
|
19
20
|
label: string;
|
|
20
21
|
attrs?: undefined;
|
|
21
22
|
icon?: import("vue").RenderFunction | import("vue").FunctionalComponent<{}, {}, any, {}> | undefined;
|
|
22
23
|
openInTab?: undefined;
|
|
23
|
-
url?: undefined;
|
|
24
24
|
} | {
|
|
25
25
|
disabled: boolean | undefined;
|
|
26
|
-
onClick: (e?: Event) => void;
|
|
26
|
+
onClick: (e?: Event) => void | (() => void);
|
|
27
27
|
show: boolean | undefined;
|
|
28
|
-
label: string;
|
|
29
28
|
url: string;
|
|
29
|
+
label: string;
|
|
30
30
|
attrs?: Record<string, string | number | boolean> | undefined;
|
|
31
31
|
icon?: import("vue").RenderFunction | import("vue").FunctionalComponent<{}, {}, any, {}> | undefined;
|
|
32
32
|
openInTab?: boolean | undefined;
|
package/types/entry.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { Plugin } from "vue";
|
|
|
2
2
|
import BaseAPI, { isHttpCancel, isHttpError, setBaseAPIDefaults } from "./api/base";
|
|
3
3
|
import type { HttpPromise, HttpError, QueryParams, ReqOptions, ReqPayload, TrailsPromise, TrailsPromisePaged, TrailsResp, TrailsRespPaged } from "./api/client";
|
|
4
4
|
import { emailPattern, looseToNumber, numericInputTypes, phonePattern, urlPattern, textInputTypes, useInputField } from "./composables/forms";
|
|
5
|
-
import { isActionItemButton, isActionItemLink, useTabHistory, useUrlSearchParams } from "./composables/nav";
|
|
6
5
|
import { debounce as debounceFn, debounceLeading } from "./helpers/Debounce";
|
|
7
6
|
import { throttle as throttleFn } from "./helpers/Throttle";
|
|
8
7
|
declare const install: Exclude<Plugin["install"], undefined>;
|
|
@@ -13,6 +12,4 @@ export { BaseAPI, isHttpCancel, isHttpError, setBaseAPIDefaults };
|
|
|
13
12
|
export type { HttpPromise, HttpError, QueryParams, ReqOptions, ReqPayload, TrailsPromise, TrailsPromisePaged, TrailsResp, TrailsRespPaged, };
|
|
14
13
|
export type * from "./composables/forms";
|
|
15
14
|
export { emailPattern, looseToNumber, phonePattern, urlPattern, numericInputTypes, textInputTypes, useInputField, };
|
|
16
|
-
export type * from "./composables/nav";
|
|
17
|
-
export { isActionItemButton, isActionItemLink, useTabHistory, useUrlSearchParams, };
|
|
18
15
|
export { debounceFn, debounceLeading, throttleFn };
|