@xy-planning-network/trees 0.15.2-dev.0 → 0.15.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 +4165 -3540
- package/dist/trees.umd.js +39 -37
- package/package.json +3 -2
- package/src/index.css +10 -0
- package/src/lib-components/forms/Combobox.vue +240 -0
- package/src/lib-components/forms/FileUpload.vue +596 -0
- package/src/lib-components/forms/FormCell.vue +52 -0
- package/src/lib-components/forms/FormDisplay.vue +96 -0
- package/src/lib-components/forms/FormGrid.vue +23 -0
- package/src/lib-components/forms/FormSection.vue +57 -0
- package/src/lib-components/forms/InputDisplay.vue +36 -0
- package/src/lib-components/forms/InputHelp.vue +9 -2
- package/src/lib-components/forms/MultiSelect.vue +404 -0
- package/src/lib-components/forms/RadioCards.vue +14 -1
- package/src/lib-components/forms/RepeaterDisplay.vue +214 -0
- package/src/lib-components/indicators/DismissableBadge.vue +31 -0
- package/src/lib-components/lists/DataTable.vue +2 -4
- package/src/lib-components/lists/DynamicTable.vue +1 -2
- package/types/composables/forms.d.ts +22 -0
- package/types/composables/index.d.ts +1 -0
- package/types/composables/useBulkActions.d.ts +25 -0
- package/types/composables/useFieldsSchema.d.ts +26 -11
- package/types/composables/useRepeater.d.ts +116 -0
- package/types/composables/useTable.d.ts +1 -0
- package/types/entry.d.ts +2 -1
- package/types/helpers/Bytes.d.ts +14 -0
- package/types/lib-components/forms/BaseInput.vue.d.ts +1 -1
- package/types/lib-components/forms/Checkbox.vue.d.ts +1 -1
- package/types/lib-components/forms/Combobox.vue.d.ts +1 -1
- package/types/lib-components/forms/DateRangePicker.vue.d.ts +1 -1
- package/types/lib-components/forms/DateTimeInput.vue.d.ts +1 -1
- package/types/lib-components/forms/FileUpload.vue.d.ts +19 -0
- package/types/lib-components/forms/MultiCheckboxes.vue.d.ts +1 -1
- package/types/lib-components/forms/MultiSelect.vue.d.ts +1 -1
- package/types/lib-components/forms/NumberInput.vue.d.ts +3 -3
- package/types/lib-components/forms/Radio.vue.d.ts +1 -1
- package/types/lib-components/forms/RepeaterDisplay.vue.d.ts +29 -0
- package/types/lib-components/forms/Select.vue.d.ts +1 -1
- package/types/lib-components/forms/TextArea.vue.d.ts +1 -1
- package/types/lib-components/forms/YesOrNoRadio.vue.d.ts +1 -1
- package/types/lib-components/index.d.ts +1 -0
- package/types/lib-components/lists/DataTable.vue.d.ts +16 -2
- package/types/composables/useActionItems.d.ts +0 -12
- package/types/helpers/Object.d.ts +0 -8
- package/types/lib-components/lists/TableActionButtons.vue.d.ts +0 -8
|
@@ -9,8 +9,8 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
9
9
|
"onUpdate:modelValue"?: ((value: (string | number)[] | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
|
-
modelValue: (string | number)[] | null;
|
|
13
12
|
help: string;
|
|
13
|
+
modelValue: (string | number)[] | null;
|
|
14
14
|
placeholder: string;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
16
16
|
errorInput: HTMLInputElement;
|
|
@@ -12,8 +12,8 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
12
12
|
"onUpdate:modelValue"?: ((value: (string | number)[] | null | undefined) => any) | undefined;
|
|
13
13
|
}>, {
|
|
14
14
|
label: string;
|
|
15
|
-
modelValue: (string | number)[] | null;
|
|
16
15
|
help: string;
|
|
16
|
+
modelValue: (string | number)[] | null;
|
|
17
17
|
placeholder: string;
|
|
18
18
|
customValues: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
@@ -12,11 +12,11 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
12
12
|
}>, {
|
|
13
13
|
label: string;
|
|
14
14
|
type: "number" | "money" | "raw-number";
|
|
15
|
-
modelValue: number | null;
|
|
16
15
|
help: string;
|
|
17
|
-
placeholder: string;
|
|
18
|
-
max: number;
|
|
19
16
|
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
modelValue: number | null;
|
|
19
|
+
placeholder: string;
|
|
20
20
|
precision: number;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {
|
|
22
22
|
input: HTMLInputElement;
|
|
@@ -9,8 +9,8 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
9
9
|
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
|
-
modelValue: string | number | null;
|
|
13
12
|
help: string;
|
|
13
|
+
modelValue: string | number | null;
|
|
14
14
|
placeholder: string;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RepeaterRow } from "../../composables/useRepeater";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
type: RepeaterRow["type"];
|
|
4
|
+
title?: string;
|
|
5
|
+
help?: string;
|
|
6
|
+
count: number;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
rows: RepeaterRow[];
|
|
10
|
+
addText?: string;
|
|
11
|
+
addDisabled?: boolean;
|
|
12
|
+
removeDisabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
add: () => any;
|
|
16
|
+
remove: (index: number) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onAdd?: (() => any) | undefined;
|
|
19
|
+
onRemove?: ((index: number) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
title: string;
|
|
22
|
+
help: string;
|
|
23
|
+
min: number;
|
|
24
|
+
max: number;
|
|
25
|
+
addText: string;
|
|
26
|
+
addDisabled: boolean;
|
|
27
|
+
removeDisabled: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
|
+
export default _default;
|
|
@@ -9,8 +9,8 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
9
9
|
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
|
-
modelValue: string | number | null;
|
|
13
12
|
help: string;
|
|
13
|
+
modelValue: string | number | null;
|
|
14
14
|
placeholder: string;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
export default _default;
|
|
@@ -9,8 +9,8 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
9
9
|
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
|
-
modelValue: string | number | null;
|
|
13
12
|
help: string;
|
|
13
|
+
modelValue: string | number | null;
|
|
14
14
|
placeholder: string;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
export default _default;
|
|
@@ -9,8 +9,8 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
9
9
|
"onUpdate:modelValue"?: ((value: boolean | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
|
-
modelValue: boolean | null;
|
|
13
12
|
help: string;
|
|
13
|
+
modelValue: boolean | null;
|
|
14
14
|
placeholder: string;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
export default _default;
|
|
@@ -20,6 +20,7 @@ export { default as DismissableBadge } from "./indicators/DismissableBadge.vue";
|
|
|
20
20
|
export { default as DownloadCell } from "./lists/DownloadCell.vue";
|
|
21
21
|
export { default as DynamicTable } from "./lists/DynamicTable.vue";
|
|
22
22
|
export { default as FieldsetLegend } from "./forms/FieldsetLegend.vue";
|
|
23
|
+
export { default as FileUpload } from "./forms/FileUpload.vue";
|
|
23
24
|
export { default as Flash } from "./overlays/Flash.vue";
|
|
24
25
|
export { default as FormCell } from "./forms/FormCell.vue";
|
|
25
26
|
export { default as FormDisplay } from "./forms/FormDisplay.vue";
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
import type { TableActions, TableColumns, TableRowsData } from "../../composables/table";
|
|
1
|
+
import type { TableActions, TableBulkActions, TableColumns, TableRowsData } from "../../composables/table";
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
tableActions?: TableActions<any>;
|
|
4
|
+
tableBulkActions?: TableBulkActions<any>;
|
|
4
5
|
tableColumns: TableColumns<any>;
|
|
5
6
|
tableData: TableRowsData;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
type __VLS_PublicProps = {
|
|
9
|
+
"selected"?: number[];
|
|
10
|
+
} & __VLS_Props;
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
12
|
+
clearSelection: () => void;
|
|
13
|
+
refresh: () => void;
|
|
14
|
+
reset: () => void;
|
|
15
|
+
selectedData: import("vue").ComputedRef<import("../../composables/table").TableRowData[]>;
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:selected": (value: number[]) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:selected"?: ((value: number[]) => any) | undefined;
|
|
20
|
+
}>, {
|
|
8
21
|
tableActions: TableActions<any>;
|
|
22
|
+
tableBulkActions: TableBulkActions<any>;
|
|
9
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
24
|
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
2
|
-
import { ActionItem } from "./nav";
|
|
3
|
-
export declare const useActionItems: (items: ActionItem[] | Ref<ActionItem[]>) => {
|
|
4
|
-
actions: import("vue").ComputedRef<{
|
|
5
|
-
disabled: boolean;
|
|
6
|
-
show: boolean;
|
|
7
|
-
onClick: (...args: any[]) => void;
|
|
8
|
-
icon?: import("vue").RenderFunction | import("vue").FunctionalComponent<{}, {}, any, {}> | undefined;
|
|
9
|
-
label: string;
|
|
10
|
-
}[]>;
|
|
11
|
-
hasActions: import("vue").ComputedRef<boolean>;
|
|
12
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Safely gets a deeply nested value using dot notation
|
|
3
|
-
*/
|
|
4
|
-
export declare const get: <TDefault = unknown, TReturn = any>(obj: any, path: string, defaultValue?: TDefault) => TReturn | TDefault;
|
|
5
|
-
/**
|
|
6
|
-
* Safely sets a deeply nested value using dot notation (blocks Prototype Pollution)
|
|
7
|
-
*/
|
|
8
|
-
export declare const set: <T>(obj: T, path: string, value: any) => T;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TableActionItem } from "../../composables";
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
actions?: TableActionItem[];
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
-
actions: TableActionItem<import("../../composables").TableRowData>[];
|
|
7
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
-
export default _default;
|