@xy-planning-network/trees 0.11.0-rc3 → 0.11.1
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 +517 -512
- package/dist/trees.umd.js +9 -9
- package/package.json +2 -2
- package/src/index.css +24 -5
- package/src/lib-components/forms/BaseInput.vue +5 -0
- package/src/lib-components/forms/MultiCheckboxes.vue +4 -4
- package/src/lib-components/navigation/Paginator.vue +3 -3
- package/types/composables/forms.d.ts +13 -0
- package/types/entry.d.ts +2 -2
- package/types/lib-components/forms/BaseInput.vue.d.ts +4 -4
- package/types/lib-components/forms/Checkbox.vue.d.ts +4 -4
- package/types/lib-components/forms/DateRangePicker.vue.d.ts +4 -4
- package/types/lib-components/forms/DateTimeInput.vue.d.ts +4 -4
- package/types/lib-components/forms/FieldsetLegend.vue.d.ts +6 -9
- package/types/lib-components/forms/InputError.vue.d.ts +4 -5
- package/types/lib-components/forms/InputHelp.vue.d.ts +5 -7
- package/types/lib-components/forms/InputLabel.vue.d.ts +6 -9
- package/types/lib-components/forms/MultiCheckboxes.vue.d.ts +4 -4
- package/types/lib-components/forms/Radio.vue.d.ts +4 -4
- package/types/lib-components/forms/RadioCards.vue.d.ts +6 -12
- package/types/lib-components/forms/Select.vue.d.ts +4 -4
- package/types/lib-components/forms/TextArea.vue.d.ts +4 -4
- package/types/lib-components/forms/Toggle.vue.d.ts +4 -4
- package/types/lib-components/forms/YesOrNoRadio.vue.d.ts +4 -4
- package/types/lib-components/indicators/InlineAlert.vue.d.ts +11 -19
- package/types/lib-components/indicators/ProgressCircles.vue.d.ts +3 -10
- package/types/lib-components/indicators/ProgressCirclesLabeled.vue.d.ts +3 -10
- package/types/lib-components/indicators/XYSpinner.vue.d.ts +1 -1
- package/types/lib-components/layout/DateFilter.vue.d.ts +4 -6
- package/types/lib-components/layout/SidebarLayout.vue.d.ts +4 -8
- package/types/lib-components/layout/StackedLayout.vue.d.ts +4 -9
- package/types/lib-components/lists/Cards.vue.d.ts +3 -7
- package/types/lib-components/lists/DataTable.vue.d.ts +5 -8
- package/types/lib-components/lists/DetailList.vue.d.ts +11 -42
- package/types/lib-components/lists/DownloadCell.vue.d.ts +3 -5
- package/types/lib-components/lists/DynamicTable.vue.d.ts +6 -9
- package/types/lib-components/lists/TableActionButtons.vue.d.ts +4 -5
- package/types/lib-components/navigation/ActionsDropdown.vue.d.ts +4 -5
- package/types/lib-components/navigation/Paginator.vue.d.ts +3 -3
- package/types/lib-components/navigation/Steps.vue.d.ts +9 -15
- package/types/lib-components/navigation/Tabs.vue.d.ts +5 -5
- package/types/lib-components/overlays/ContentModal.vue.d.ts +4 -4
- package/types/lib-components/overlays/Modal.vue.d.ts +4 -4
- package/types/lib-components/overlays/Popover/Popover.vue.d.ts +5 -7
- package/types/lib-components/overlays/Slideover.vue.d.ts +4 -4
- package/types/lib-components/overlays/Tooltip.vue.d.ts +5 -7
- package/types/composables/setupHelpers.d.ts +0 -15
- package/types/helpers/Slots.d.ts +0 -2
- package/types/lib-components/lists/StaticTable.vue.d.ts +0 -21
- package/types/lib-components/lists/StaticTableActionSlot.vue.d.ts +0 -27
- package/types/lib-components/lists/Table.vue.d.ts +0 -39
- package/types/lib-components/navigation/ActionsDropdownCallback.vue.d.ts +0 -18
- package/types/lib-components/navigation/ActionsDropdownEmit.vue.d.ts +0 -22
- package/types/lib-components/overlays/AlertModal.vue.d.ts +0 -68
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xy-planning-network/trees",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:xy-planning-network/trees",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"unplugin-vue-components": "^0.27.4",
|
|
55
55
|
"unplugin-vue-markdown": "^0.25.2",
|
|
56
56
|
"vite": "^5.4.10",
|
|
57
|
-
"vue-tsc": "^2.1.
|
|
57
|
+
"vue-tsc": "^2.1.10"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@floating-ui/vue": "^1.0.1",
|
package/src/index.css
CHANGED
|
@@ -77,6 +77,18 @@
|
|
|
77
77
|
@apply inline-flex justify-center items-center px-5 py-2.5 border border-transparent text-base font-display font-semibold rounded-3xl shadow-sm text-white bg-xy-blue-600 hover:bg-xy-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500 disabled:bg-xy-blue-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors ease-linear duration-300;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
.xy-btn-alt-sm {
|
|
81
|
+
@apply inline-flex justify-center items-center px-2.5 py-1.5 border border-transparent text-xs font-display font-semibold rounded-3xl shadow-sm text-xy-black bg-xy-green-200 hover:bg-xy-green-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-green-100 disabled:bg-xy-green-200 disabled:opacity-50 disabled:cursor-not-allowed transition-colors ease-linear duration-300;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.xy-btn-alt {
|
|
85
|
+
@apply inline-flex justify-center items-center px-4 py-2 border border-transparent text-sm font-display font-semibold rounded-3xl shadow-sm text-xy-black bg-xy-green-200 hover:bg-xy-green-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-green-100 disabled:bg-xy-green-200 disabled:opacity-50 disabled:cursor-not-allowed transition-colors ease-linear duration-300;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.xy-btn-alt-lg {
|
|
89
|
+
@apply inline-flex justify-center items-center px-5 py-2.5 border border-transparent text-base font-display font-semibold rounded-3xl shadow-sm text-xy-black bg-xy-green-200 hover:bg-xy-green-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-green-100 disabled:bg-xy-green-200 disabled:opacity-50 disabled:cursor-not-allowed transition-colors ease-linear duration-300;
|
|
90
|
+
}
|
|
91
|
+
|
|
80
92
|
/* NOTE(spk): including .xy-btn-red alias for backwards compatibility */
|
|
81
93
|
.xy-btn-danger-sm,
|
|
82
94
|
.xy-btn-red-sm {
|
|
@@ -105,6 +117,18 @@
|
|
|
105
117
|
@apply inline-flex justify-center items-center px-5 py-2.5 border border-transparent text-base font-display font-semibold rounded-3xl shadow-none text-neutral-800 bg-transparent hover:bg-neutral-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500 disabled:bg-transparent disabled:text-neutral-600 disabled:cursor-not-allowed transition-colors ease-linear duration-300;
|
|
106
118
|
}
|
|
107
119
|
|
|
120
|
+
.xy-btn-neutral-inverse-sm {
|
|
121
|
+
@apply inline-flex justify-center items-center px-2.5 py-1.5 border border-transparent text-xs font-display font-semibold rounded-3xl shadow-none text-neutral-800 bg-white hover:bg-white/90 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500 disabled:bg-white/90 disabled:text-neutral-700 disabled:cursor-not-allowed transition-colors ease-linear duration-300;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.xy-btn-neutral-inverse {
|
|
125
|
+
@apply inline-flex justify-center items-center px-4 py-2 border border-transparent text-sm font-display font-semibold rounded-3xl shadow-none text-neutral-800 bg-white hover:bg-white/90 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500 disabled:bg-white/90 disabled:disabled:text-neutral-700 disabled:cursor-not-allowed transition-colors ease-linear duration-300;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.xy-btn-neutral-inverse-lg {
|
|
129
|
+
@apply inline-flex justify-center items-center px-5 py-2.5 border border-transparent text-base font-display font-semibold rounded-3xl shadow-none text-neutral-800 bg-white hover:bg-white/90 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500 disabled:bg-white/90 disabled:disabled:text-neutral-700 disabled:cursor-not-allowed transition-colors ease-linear duration-300;
|
|
130
|
+
}
|
|
131
|
+
|
|
108
132
|
/* NOTE(spk): always consider the relative box-sizing between buttons with solid backgrounds and full borders vs secondary styles as they will commonly be laid out next to each other */
|
|
109
133
|
/* NOTE(spk): there's no way to round a ring or outline in a focus state without rounding the entire button. Avoid this as it causes odd shapes on the bottom border and using content hacks aren't worth the trouble */
|
|
110
134
|
.xy-btn-secondary-sm {
|
|
@@ -155,11 +179,6 @@
|
|
|
155
179
|
@apply inline-flex justify-center items-center py-2.5 border-b-2 border-b-red-700 text-base font-display font-semibold shadow-none text-neutral-800 hover:text-red-700 hover:border-b-transparent focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500 disabled:text-neutral-800 disabled:border-b-red-700 disabled:opacity-70 disabled:cursor-not-allowed transition-colors ease-linear duration-150;
|
|
156
180
|
}
|
|
157
181
|
|
|
158
|
-
/* Deprecated */
|
|
159
|
-
.xy-btn-white {
|
|
160
|
-
@apply inline-flex justify-center items-center px-4 py-2 border border-xy-blue shadow-sm text-sm font-semibold rounded-3xl text-xy-blue bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500 disabled:opacity-50 disabled:cursor-not-allowed;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
182
|
/* Header classes */
|
|
164
183
|
.h1 {
|
|
165
184
|
@apply text-3xl leading-9 font-semibold;
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
emailPattern,
|
|
10
10
|
looseToNumber,
|
|
11
11
|
phonePattern,
|
|
12
|
+
urlPattern,
|
|
12
13
|
} from "@/composables/forms"
|
|
13
14
|
import type { TextLikeInput } from "@/composables/forms"
|
|
14
15
|
import { computed, useTemplateRef } from "vue"
|
|
@@ -61,6 +62,10 @@ const typeAttributes = computed(() => {
|
|
|
61
62
|
return {
|
|
62
63
|
pattern: phonePattern,
|
|
63
64
|
}
|
|
65
|
+
case "url":
|
|
66
|
+
return {
|
|
67
|
+
pattern: urlPattern,
|
|
68
|
+
}
|
|
64
69
|
default:
|
|
65
70
|
return {}
|
|
66
71
|
}
|
|
@@ -22,13 +22,13 @@ const props = withDefaults(
|
|
|
22
22
|
|
|
23
23
|
const modelState = defineModel<MultiChoiceInput["modelValue"]>({
|
|
24
24
|
...defaultModelOpts,
|
|
25
|
-
// NOTE(spk): Vue handling of
|
|
25
|
+
// NOTE(spk): The Vue.js specific handling of initial prop values null vs undefined
|
|
26
26
|
// means we can't rely on the the "default" param of defineModel here. Ensuring the
|
|
27
27
|
// getter returns an array type allows for a consistent checkbox v-model binding similar to
|
|
28
|
-
// the example in the official Vue docs.
|
|
28
|
+
// the example in the official Vue.js docs.
|
|
29
29
|
//
|
|
30
|
-
// When a parent component passes a null v-model the parent ref stays null until
|
|
31
|
-
//
|
|
30
|
+
// When a parent component passes a null v-model the parent ref stays null until
|
|
31
|
+
// a mutation occurs which is consistent with other input components.
|
|
32
32
|
get: (v) => {
|
|
33
33
|
if (!Array.isArray(v)) {
|
|
34
34
|
return []
|
|
@@ -5,9 +5,9 @@ import { computed } from "vue"
|
|
|
5
5
|
const pagination = defineModel<Pagination>({ required: true })
|
|
6
6
|
|
|
7
7
|
const changePage = (page: number): void => {
|
|
8
|
-
// NOTE(spk): reminder that defineModel does not change the
|
|
9
|
-
//
|
|
10
|
-
//
|
|
8
|
+
// NOTE(spk): reminder that defineModel does not change the
|
|
9
|
+
// one-way data flow philosphy of Vue.js replace the entire
|
|
10
|
+
// object to ensure the event is emitted.
|
|
11
11
|
pagination.value = {
|
|
12
12
|
...pagination.value,
|
|
13
13
|
page: page,
|
|
@@ -110,6 +110,19 @@ export declare const emailPattern: string;
|
|
|
110
110
|
* used with input type="tel" in the pattern attribute for html5 validation
|
|
111
111
|
*/
|
|
112
112
|
export declare const phonePattern: string;
|
|
113
|
+
/**
|
|
114
|
+
* url validation regex pattern
|
|
115
|
+
* used with input type="url" in the pattern attribute for html5
|
|
116
|
+
*
|
|
117
|
+
* The pattern is conservative and focuses on ensuring the protocol is valid
|
|
118
|
+
* and the remainder of the url does not include empty spaces. If additional protocols
|
|
119
|
+
* need to be supported, they can be added to the first group (?:https|http|ftp).
|
|
120
|
+
*
|
|
121
|
+
* Reference: https://regex101.com/r/P5dlas/3
|
|
122
|
+
*
|
|
123
|
+
* NOTE(spk): not all JavaScript regular expression characters are not supported in input patterns.
|
|
124
|
+
*/
|
|
125
|
+
export declare const urlPattern: string;
|
|
113
126
|
/**
|
|
114
127
|
* This is used for the .number modifier in v-model
|
|
115
128
|
*/
|
package/types/entry.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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
|
-
import { emailPattern, looseToNumber, phonePattern, textInputTypes, useInputField } from "./composables/forms";
|
|
4
|
+
import { emailPattern, looseToNumber, phonePattern, urlPattern, textInputTypes, useInputField } from "./composables/forms";
|
|
5
5
|
import { debounce as debounceFn, debounceLeading } from "./helpers/Debounce";
|
|
6
6
|
import { throttle as throttleFn } from "./helpers/Throttle";
|
|
7
7
|
declare const install: Exclude<Plugin["install"], undefined>;
|
|
@@ -11,5 +11,5 @@ export * from "./lib-components/index";
|
|
|
11
11
|
export { BaseAPI, isHttpCancel, isHttpError, setBaseAPIDefaults };
|
|
12
12
|
export type { HttpPromise, HttpError, QueryParams, ReqOptions, ReqPayload, TrailsPromise, TrailsPromisePaged, TrailsResp, TrailsRespPaged, };
|
|
13
13
|
export type * from "./composables/forms";
|
|
14
|
-
export { emailPattern, looseToNumber, phonePattern, textInputTypes, useInputField, };
|
|
14
|
+
export { emailPattern, looseToNumber, phonePattern, urlPattern, textInputTypes, useInputField, };
|
|
15
15
|
export { debounceFn, debounceLeading, throttleFn };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { TextLikeInput } from "../../composables/forms";
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = TextLikeInput;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: TextLikeInput["modelValue"];
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
7
7
|
input: Readonly<import("vue").ShallowRef<HTMLInputElement | null>>;
|
|
8
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
"update:modelValue": (
|
|
9
|
+
"update:modelValue": (value: string | number | null | undefined) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
-
"onUpdate:modelValue"?: ((
|
|
11
|
+
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
label: string;
|
|
14
14
|
modelValue: string | number | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { BooleanInput } from "../../composables/forms";
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = BooleanInput;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: BooleanInput["modelValue"];
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (
|
|
7
|
+
"update:modelValue": (value: boolean | null | undefined) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((
|
|
9
|
+
"onUpdate:modelValue"?: ((value: boolean | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
12
|
modelValue: boolean | null;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "flatpickr/dist/flatpickr.min.css";
|
|
2
2
|
import type { DateRangeInput } from "../../composables/forms";
|
|
3
|
-
|
|
3
|
+
type __VLS_Props = DateRangeInput;
|
|
4
4
|
type __VLS_PublicProps = {
|
|
5
5
|
modelValue?: DateRangeInput["modelValue"];
|
|
6
|
-
} &
|
|
6
|
+
} & __VLS_Props;
|
|
7
7
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
"update:modelValue": (
|
|
8
|
+
"update:modelValue": (value: {
|
|
9
9
|
minDate: number;
|
|
10
10
|
maxDate: number;
|
|
11
11
|
} | undefined) => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: ((
|
|
13
|
+
"onUpdate:modelValue"?: ((value: {
|
|
14
14
|
minDate: number;
|
|
15
15
|
maxDate: number;
|
|
16
16
|
} | undefined) => any) | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { DateTimeInput } from "../../composables/forms";
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = DateTimeInput;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: DateTimeInput["modelValue"];
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (
|
|
7
|
+
"update:modelValue": (value: string | null | undefined) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
12
|
modelValue: string | null;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
label?: string
|
|
3
|
-
required?: boolean
|
|
4
|
-
tag?: string
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
required?: boolean | undefined;
|
|
8
|
-
tag?: string | undefined;
|
|
9
|
-
}> & Readonly<{}>, {
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
required?: boolean;
|
|
4
|
+
tag?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
7
|
label: string;
|
|
11
8
|
required: boolean;
|
|
12
9
|
tag: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
text?: string
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
}> & Readonly<{}>, {
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
text?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
5
|
text: string;
|
|
7
6
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
7
|
export default _default;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
tag?: string
|
|
3
|
-
text?: string
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
text?: string | undefined;
|
|
7
|
-
}> & Readonly<{}>, {
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
tag?: string;
|
|
3
|
+
text?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
6
|
text: string;
|
|
9
7
|
tag: string;
|
|
10
8
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
label?: string
|
|
3
|
-
required?: boolean
|
|
4
|
-
tag?: string
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
required?: boolean | undefined;
|
|
8
|
-
tag?: string | undefined;
|
|
9
|
-
}> & Readonly<{}>, {
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
required?: boolean;
|
|
4
|
+
tag?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
7
|
label: string;
|
|
11
8
|
required: boolean;
|
|
12
9
|
tag: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { MultiChoiceInput, ColumnedInput } from "../../composables/forms";
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = MultiChoiceInput & ColumnedInput;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: MultiChoiceInput["modelValue"];
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (
|
|
7
|
+
"update:modelValue": (value: (string | number)[] | null | undefined) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((
|
|
9
|
+
"onUpdate:modelValue"?: ((value: (string | number)[] | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
12
|
modelValue: (string | number)[] | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { OptionsInput, ColumnedInput } from "../../composables/forms";
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = OptionsInput & ColumnedInput;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: OptionsInput["modelValue"];
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (
|
|
7
|
+
"update:modelValue": (value: string | number | null | undefined) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
12
|
modelValue: string | number | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InputOption } from "../../composables/forms";
|
|
2
2
|
declare const _default: <T extends InputOption>(__VLS_props: {
|
|
3
|
-
readonly "onUpdate:modelValue"?: ((
|
|
3
|
+
readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
4
4
|
modelValue?: string | number | null | undefined;
|
|
5
5
|
options: T[];
|
|
6
6
|
label?: string | undefined;
|
|
@@ -17,12 +17,10 @@ declare const _default: <T extends InputOption>(__VLS_props: {
|
|
|
17
17
|
}): any;
|
|
18
18
|
};
|
|
19
19
|
attrs: any;
|
|
20
|
-
emit:
|
|
21
|
-
'update:modelValue': [modelValue: string | number | null | undefined];
|
|
22
|
-
};
|
|
20
|
+
emit: (evt: "update:modelValue", value: string | number | null | undefined) => void;
|
|
23
21
|
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
24
22
|
props: {
|
|
25
|
-
readonly "onUpdate:modelValue"?: ((
|
|
23
|
+
readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
26
24
|
modelValue?: string | number | null | undefined;
|
|
27
25
|
options: T[];
|
|
28
26
|
label?: string | undefined;
|
|
@@ -40,15 +38,13 @@ declare const _default: <T extends InputOption>(__VLS_props: {
|
|
|
40
38
|
option: T;
|
|
41
39
|
}): any;
|
|
42
40
|
};
|
|
43
|
-
emit:
|
|
44
|
-
'update:modelValue': [modelValue: string | number | null | undefined];
|
|
45
|
-
};
|
|
41
|
+
emit: (evt: "update:modelValue", value: string | number | null | undefined) => void;
|
|
46
42
|
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
43
|
[key: string]: any;
|
|
48
44
|
}> & {
|
|
49
45
|
__ctx?: {
|
|
50
46
|
props: {
|
|
51
|
-
readonly "onUpdate:modelValue"?: ((
|
|
47
|
+
readonly "onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
52
48
|
modelValue?: string | number | null | undefined;
|
|
53
49
|
options: T[];
|
|
54
50
|
label?: string | undefined;
|
|
@@ -66,9 +62,7 @@ declare const _default: <T extends InputOption>(__VLS_props: {
|
|
|
66
62
|
option: T;
|
|
67
63
|
}): any;
|
|
68
64
|
};
|
|
69
|
-
emit:
|
|
70
|
-
'update:modelValue': [modelValue: string | number | null | undefined];
|
|
71
|
-
};
|
|
65
|
+
emit: (evt: "update:modelValue", value: string | number | null | undefined) => void;
|
|
72
66
|
} | undefined;
|
|
73
67
|
};
|
|
74
68
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { OptionsInput } from "../../composables/forms";
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = OptionsInput;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: OptionsInput["modelValue"];
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (
|
|
7
|
+
"update:modelValue": (value: string | number | null | undefined) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
12
|
modelValue: string | number | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { TextareaInput } from "../../composables/forms";
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = TextareaInput;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: TextareaInput["modelValue"];
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (
|
|
7
|
+
"update:modelValue": (value: string | number | null | undefined) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
12
|
modelValue: string | number | null;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
2
|
label?: string;
|
|
3
3
|
help?: string;
|
|
4
4
|
};
|
|
5
5
|
type __VLS_PublicProps = {
|
|
6
6
|
modelValue?: boolean;
|
|
7
|
-
} &
|
|
7
|
+
} & __VLS_Props;
|
|
8
8
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
"update:modelValue": (
|
|
9
|
+
"update:modelValue": (value: boolean) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
-
"onUpdate:modelValue"?: ((
|
|
11
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
label: string;
|
|
14
14
|
help: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { BooleanInput } from "../../composables/forms";
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = BooleanInput;
|
|
3
3
|
type __VLS_PublicProps = {
|
|
4
4
|
modelValue?: BooleanInput["modelValue"];
|
|
5
|
-
} &
|
|
5
|
+
} & __VLS_Props;
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (
|
|
7
|
+
"update:modelValue": (value: boolean | null | undefined) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
-
"onUpdate:modelValue"?: ((
|
|
9
|
+
"onUpdate:modelValue"?: ((value: boolean | null | undefined) => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
label: string;
|
|
12
12
|
modelValue: boolean | null;
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
btnLink?: string
|
|
3
|
-
btnText?: string
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
btnLink?: string;
|
|
3
|
+
btnText?: string;
|
|
4
4
|
content: string | string[];
|
|
5
|
-
dismissable?: boolean
|
|
6
|
-
secondaryBtnLink?: string
|
|
7
|
-
secondaryBtnText?: string
|
|
8
|
-
title?: string
|
|
9
|
-
kind: "
|
|
10
|
-
}
|
|
5
|
+
dismissable?: boolean;
|
|
6
|
+
secondaryBtnLink?: string;
|
|
7
|
+
secondaryBtnText?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
kind: "alert" | "warn" | "info" | "success";
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
12
|
click: (e: Event) => any;
|
|
12
13
|
close: (closed: true) => any;
|
|
13
14
|
"click:secondary": (e: Event) => any;
|
|
14
|
-
}, string, import("vue").PublicProps, Readonly<{
|
|
15
|
-
btnLink?: string | undefined;
|
|
16
|
-
btnText?: string | undefined;
|
|
17
|
-
content: string | string[];
|
|
18
|
-
dismissable?: boolean | undefined;
|
|
19
|
-
secondaryBtnLink?: string | undefined;
|
|
20
|
-
secondaryBtnText?: string | undefined;
|
|
21
|
-
title?: string | undefined;
|
|
22
|
-
kind: "info" | "success" | "alert" | "warn";
|
|
23
|
-
}> & Readonly<{
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
16
|
onClick?: ((e: Event) => any) | undefined;
|
|
25
17
|
onClose?: ((closed: true) => any) | undefined;
|
|
26
18
|
"onClick:secondary"?: ((e: Event) => any) | undefined;
|
|
@@ -2,7 +2,7 @@ interface Step {
|
|
|
2
2
|
name: string;
|
|
3
3
|
description?: string;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
type __VLS_Props = {
|
|
6
6
|
/**
|
|
7
7
|
* current sets the "current" step using an index of the steps prop
|
|
8
8
|
* to show all steps in an "incomplete" state set step to -1
|
|
@@ -10,13 +10,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
*/
|
|
11
11
|
current: number;
|
|
12
12
|
steps: Step[];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
* current sets the "current" step using an index of the steps prop
|
|
16
|
-
* to show all steps in an "incomplete" state set step to -1
|
|
17
|
-
* to show all steps in an "complete" state set step to a value >= steps.length
|
|
18
|
-
*/
|
|
19
|
-
current: number;
|
|
20
|
-
steps: Step[];
|
|
21
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
};
|
|
14
|
+
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, {}, HTMLElement>;
|
|
22
15
|
export default _default;
|
|
@@ -2,7 +2,7 @@ interface Step {
|
|
|
2
2
|
name: string;
|
|
3
3
|
description?: string;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
type __VLS_Props = {
|
|
6
6
|
/**
|
|
7
7
|
* current sets the "current" step using an index of the steps prop
|
|
8
8
|
* to show all steps in an "incomplete" state set step to -1
|
|
@@ -10,13 +10,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
*/
|
|
11
11
|
current: number;
|
|
12
12
|
steps: Step[];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
* current sets the "current" step using an index of the steps prop
|
|
16
|
-
* to show all steps in an "incomplete" state set step to -1
|
|
17
|
-
* to show all steps in an "complete" state set step to a value >= steps.length
|
|
18
|
-
*/
|
|
19
|
-
current: number;
|
|
20
|
-
steps: Step[];
|
|
21
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
};
|
|
14
|
+
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, {}, HTMLDivElement>;
|
|
22
15
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>, {
|
|
2
2
|
default?(_: {}): any;
|
|
3
3
|
}>;
|
|
4
4
|
export default _default;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { DateRange } from "../../composables/date";
|
|
2
2
|
import { SortDir } from "../../composables/list";
|
|
3
|
-
|
|
3
|
+
type __VLS_Props = {
|
|
4
4
|
dateRange: DateRange;
|
|
5
5
|
sortDir: SortDir;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
8
|
"sort-dir-changed": (val: SortDir) => any;
|
|
8
9
|
"date-range-changed": (val: DateRange) => any;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<{
|
|
10
|
-
dateRange: DateRange;
|
|
11
|
-
sortDir: SortDir;
|
|
12
|
-
}> & Readonly<{
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
11
|
"onSort-dir-changed"?: ((val: SortDir) => any) | undefined;
|
|
14
12
|
"onDate-range-changed"?: ((val: DateRange) => any) | undefined;
|
|
15
13
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import type { NavItem } from "../../composables/nav";
|
|
2
|
-
|
|
3
|
-
activeUrl?: string
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
activeUrl?: string;
|
|
4
4
|
iconUrl: string;
|
|
5
5
|
navigation: NavItem[];
|
|
6
6
|
userNavigation: NavItem[];
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
iconUrl: string;
|
|
10
|
-
navigation: NavItem[];
|
|
11
|
-
userNavigation: NavItem[];
|
|
12
|
-
}> & Readonly<{}>, {
|
|
7
|
+
};
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
9
|
activeUrl: string;
|
|
14
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
15
11
|
"sidebar-nav"?(_: {}): any;
|