@xy-planning-network/trees 0.7.5-rc2 → 0.7.5-rc3
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 +3084 -2890
- package/dist/trees.umd.js +10 -10
- package/package.json +1 -1
- package/src/lib-components/forms/BaseInput.vue +7 -12
- package/src/lib-components/forms/Checkbox.vue +9 -11
- package/src/lib-components/forms/DateRangePicker.vue +19 -12
- package/src/lib-components/forms/InputError.vue +14 -0
- package/src/lib-components/forms/MultiCheckboxes.vue +15 -13
- package/src/lib-components/forms/Radio.vue +10 -21
- package/src/lib-components/forms/RadioCards.vue +5 -18
- package/src/lib-components/forms/Select.vue +16 -12
- package/src/lib-components/forms/TextArea.vue +9 -11
- package/src/lib-components/forms/YesOrNoRadio.vue +10 -12
- package/src/lib-components/indicators/InlineAlert.vue +194 -0
- package/types/composables/forms.d.ts +8 -28
- package/types/composables/setupHelpers.d.ts +15 -0
- package/types/entry.d.ts +7 -0
- package/types/lib-components/forms/BaseInput.vue.d.ts +0 -9
- package/types/lib-components/forms/Checkbox.vue.d.ts +0 -9
- package/types/lib-components/forms/DateRangePicker.vue.d.ts +0 -9
- package/types/lib-components/forms/InputError.vue.d.ts +14 -0
- package/types/lib-components/forms/MultiCheckboxes.vue.d.ts +0 -9
- package/types/lib-components/forms/Radio.vue.d.ts +0 -9
- package/types/lib-components/forms/RadioCards.vue.d.ts +0 -3
- package/types/lib-components/forms/Select.vue.d.ts +0 -9
- package/types/lib-components/forms/TextArea.vue.d.ts +0 -9
- package/types/lib-components/forms/YesOrNoRadio.vue.d.ts +0 -9
- package/types/lib-components/index.d.ts +5 -2
- package/types/lib-components/indicators/InlineAlert.vue.d.ts +83 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed, ref } from "vue"
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
CheckCircleIcon,
|
|
6
|
+
InformationCircleIcon,
|
|
7
|
+
ExclamationIcon,
|
|
8
|
+
XCircleIcon,
|
|
9
|
+
} from "@heroicons/vue/solid"
|
|
10
|
+
|
|
11
|
+
import { XIcon } from "@heroicons/vue/outline"
|
|
12
|
+
|
|
13
|
+
const props = withDefaults(
|
|
14
|
+
defineProps<{
|
|
15
|
+
btnLink?: string
|
|
16
|
+
btnText?: string
|
|
17
|
+
content: string | string[]
|
|
18
|
+
dismissable?: boolean
|
|
19
|
+
secondaryBtnLink?: string
|
|
20
|
+
secondaryBtnText?: string
|
|
21
|
+
title?: string
|
|
22
|
+
kind: "alert" | "warn" | "info" | "success"
|
|
23
|
+
}>(),
|
|
24
|
+
{
|
|
25
|
+
btnLink: "",
|
|
26
|
+
btnText: "",
|
|
27
|
+
dismissable: false,
|
|
28
|
+
secondaryBtnLink: "",
|
|
29
|
+
secondaryBtnText: "",
|
|
30
|
+
title: "",
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
const emit = defineEmits<{
|
|
35
|
+
close: [closed: true]
|
|
36
|
+
click: [e: Event]
|
|
37
|
+
"click:secondary": [e: Event]
|
|
38
|
+
}>()
|
|
39
|
+
|
|
40
|
+
const visible = ref(true)
|
|
41
|
+
const close = () => {
|
|
42
|
+
visible.value = false
|
|
43
|
+
emit("close", true)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const display = computed(() => {
|
|
47
|
+
const display = {
|
|
48
|
+
bgColor: "",
|
|
49
|
+
btnAction: "",
|
|
50
|
+
btnClose: "",
|
|
51
|
+
contentColor: "",
|
|
52
|
+
iconColor: "",
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
switch (props.kind) {
|
|
56
|
+
case "alert":
|
|
57
|
+
display.bgColor = "bg-red-50"
|
|
58
|
+
display.btnAction =
|
|
59
|
+
"bg-red-50 text-red-900 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50"
|
|
60
|
+
display.btnClose =
|
|
61
|
+
"bg-red-50 text-red-600 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50"
|
|
62
|
+
display.contentColor = "text-red-800"
|
|
63
|
+
display.iconColor = "text-red-400"
|
|
64
|
+
break
|
|
65
|
+
case "info":
|
|
66
|
+
display.bgColor = "bg-blue-50"
|
|
67
|
+
display.btnAction =
|
|
68
|
+
"bg-blue-50 text-blue-900 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50"
|
|
69
|
+
display.btnClose =
|
|
70
|
+
"bg-blue-50 text-blue-600 hover:bg-blue-100 focus:ring-blue-600 focus:ring-offset-blue-50"
|
|
71
|
+
display.contentColor = "text-blue-800"
|
|
72
|
+
display.iconColor = "text-blue-400"
|
|
73
|
+
break
|
|
74
|
+
case "success":
|
|
75
|
+
display.bgColor = "bg-emerald-50"
|
|
76
|
+
display.btnAction =
|
|
77
|
+
"bg-emerald-50 text-emerald-900 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50"
|
|
78
|
+
display.btnClose =
|
|
79
|
+
"bg-emerald-50 text-emerald-600 hover:bg-emerald-100 focus:ring-emerald-600 focus:ring-offset-emerald-50"
|
|
80
|
+
display.contentColor = "text-emerald-800"
|
|
81
|
+
display.iconColor = "text-emerald-400"
|
|
82
|
+
break
|
|
83
|
+
case "warn":
|
|
84
|
+
display.bgColor = "bg-amber-50"
|
|
85
|
+
display.btnAction =
|
|
86
|
+
"bg-amber-50 text-amber-900 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50"
|
|
87
|
+
display.btnClose =
|
|
88
|
+
"bg-amber-50 text-amber-600 hover:bg-amber-100 focus:ring-amber-600 focus:ring-offset-amber-50"
|
|
89
|
+
display.contentColor = "text-amber-800"
|
|
90
|
+
display.iconColor = "text-amber-400"
|
|
91
|
+
break
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return display
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
const icon = computed(() => {
|
|
98
|
+
let icon = null
|
|
99
|
+
switch (props.kind) {
|
|
100
|
+
case "alert":
|
|
101
|
+
icon = XCircleIcon
|
|
102
|
+
break
|
|
103
|
+
case "info":
|
|
104
|
+
icon = InformationCircleIcon
|
|
105
|
+
break
|
|
106
|
+
case "success":
|
|
107
|
+
icon = CheckCircleIcon
|
|
108
|
+
break
|
|
109
|
+
case "warn":
|
|
110
|
+
icon = ExclamationIcon
|
|
111
|
+
break
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return icon
|
|
115
|
+
})
|
|
116
|
+
</script>
|
|
117
|
+
|
|
118
|
+
<template>
|
|
119
|
+
<div v-if="visible" class="rounded-lg p-4" :class="display.bgColor">
|
|
120
|
+
<div class="flex">
|
|
121
|
+
<div class="flex-shrink-0">
|
|
122
|
+
<component
|
|
123
|
+
:is="icon"
|
|
124
|
+
class="h-5 w-5"
|
|
125
|
+
:class="display.iconColor"
|
|
126
|
+
aria-hidden="true"
|
|
127
|
+
/>
|
|
128
|
+
</div>
|
|
129
|
+
<div class="ml-2.5">
|
|
130
|
+
<h3
|
|
131
|
+
v-if="title"
|
|
132
|
+
class="text-sm leading-snug font-semibold mb-1.5"
|
|
133
|
+
:class="display.contentColor"
|
|
134
|
+
>
|
|
135
|
+
{{ title }}
|
|
136
|
+
</h3>
|
|
137
|
+
|
|
138
|
+
<div class="text-sm" :class="display.contentColor">
|
|
139
|
+
<ul
|
|
140
|
+
v-if="Array.isArray(content)"
|
|
141
|
+
role="list"
|
|
142
|
+
class="list-disc space-y-1 pl-5"
|
|
143
|
+
>
|
|
144
|
+
<li v-for="(item, index) in content" :key="index">{{ item }}</li>
|
|
145
|
+
</ul>
|
|
146
|
+
<p v-else>{{ content }}</p>
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
<div v-if="btnText || secondaryBtnText" class="mt-4">
|
|
150
|
+
<div
|
|
151
|
+
class="flex flex-col gap-y-1.5 -mx-2 sm:flex-row sm:gap-x-3 sm:items-center"
|
|
152
|
+
>
|
|
153
|
+
<div v-if="btnText">
|
|
154
|
+
<a
|
|
155
|
+
class="inline-flex rounded-md px-2 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
156
|
+
:class="display.btnAction"
|
|
157
|
+
:href="btnLink"
|
|
158
|
+
:role="btnLink ? 'link' : 'button'"
|
|
159
|
+
@click="$emit('click', $event)"
|
|
160
|
+
>
|
|
161
|
+
{{ btnText }}
|
|
162
|
+
</a>
|
|
163
|
+
</div>
|
|
164
|
+
<div v-if="secondaryBtnText">
|
|
165
|
+
<a
|
|
166
|
+
class="inline-flex rounded-md px-2 py-1.5 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
167
|
+
:class="display.btnAction"
|
|
168
|
+
:href="secondaryBtnLink"
|
|
169
|
+
:role="secondaryBtnLink ? 'link' : 'button'"
|
|
170
|
+
@click="$emit('click:secondary', $event)"
|
|
171
|
+
>
|
|
172
|
+
{{ secondaryBtnText }}
|
|
173
|
+
</a>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
<div v-if="dismissable" class="ml-auto pl-3">
|
|
180
|
+
<div class="-mx-1.5 -my-1.5">
|
|
181
|
+
<button
|
|
182
|
+
class="inline-flex rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
183
|
+
:class="display.btnClose"
|
|
184
|
+
type="button"
|
|
185
|
+
@click="close"
|
|
186
|
+
>
|
|
187
|
+
<span class="sr-only">close</span>
|
|
188
|
+
<XIcon class="h-4 w-4" />
|
|
189
|
+
</button>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
</template>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
2
1
|
export interface Input {
|
|
3
2
|
modelValue?: any;
|
|
4
|
-
error?: string;
|
|
5
3
|
label?: string;
|
|
6
4
|
help?: string;
|
|
7
5
|
placeholder?: string;
|
|
@@ -45,24 +43,24 @@ export interface ColumnedInput {
|
|
|
45
43
|
columns?: 2 | 3;
|
|
46
44
|
}
|
|
47
45
|
export declare const defaultInputProps: {
|
|
48
|
-
error: string;
|
|
49
46
|
help: string;
|
|
50
47
|
label: string;
|
|
51
48
|
modelValue: undefined;
|
|
52
49
|
placeholder: string;
|
|
53
50
|
};
|
|
54
51
|
export type TextInputType = "date" | "datetime-local" | "email" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week";
|
|
55
|
-
interface UseInputFieldConfig<T extends Input> {
|
|
56
|
-
props: T;
|
|
57
|
-
targetInput: Ref<HTMLInputElement | null>;
|
|
58
|
-
}
|
|
59
52
|
/**
|
|
60
53
|
* useInputField provides a number of computed values, refs, and methods to support
|
|
61
54
|
* wiring up reactive inputs.
|
|
62
55
|
*
|
|
63
56
|
* @param config UseInputFieldConfig
|
|
64
57
|
*/
|
|
65
|
-
export declare const useInputField: <T extends Input>(
|
|
58
|
+
export declare const useInputField: <T extends Input>(props: T) => {
|
|
59
|
+
aria: import("vue").ComputedRef<{
|
|
60
|
+
labelledby: string | undefined;
|
|
61
|
+
describedby: string | undefined;
|
|
62
|
+
errormessage: string | undefined;
|
|
63
|
+
}>;
|
|
66
64
|
attrs: {
|
|
67
65
|
[x: string]: unknown;
|
|
68
66
|
};
|
|
@@ -70,8 +68,8 @@ export declare const useInputField: <T extends Input>(config: UseInputFieldConfi
|
|
|
70
68
|
isDisabled: import("vue").ComputedRef<boolean>;
|
|
71
69
|
isRequired: import("vue").ComputedRef<boolean>;
|
|
72
70
|
nameAttr: import("vue").ComputedRef<string>;
|
|
73
|
-
modelState: Ref<T["modelValue"]>;
|
|
74
|
-
errorState: Ref<
|
|
71
|
+
modelState: import("vue").Ref<T["modelValue"]>;
|
|
72
|
+
errorState: import("vue").Ref<string>;
|
|
75
73
|
onInvalid: (e: Event) => void;
|
|
76
74
|
validate: (e: Event) => void;
|
|
77
75
|
inputValidation: (...args: any[]) => void;
|
|
@@ -89,12 +87,6 @@ export declare const hasAttribute: (attrs: Record<string, unknown>, name: string
|
|
|
89
87
|
* exported as a raw string to support the escape backslash characters
|
|
90
88
|
*/
|
|
91
89
|
export declare const emailPattern: string;
|
|
92
|
-
/**
|
|
93
|
-
* password validation regex pattern
|
|
94
|
-
* used with input type="password" in the pattern attribute for html5 validation
|
|
95
|
-
* exported as a raw string to support the escape backslash characters
|
|
96
|
-
*/
|
|
97
|
-
export declare const passwordPattern: string;
|
|
98
90
|
/**
|
|
99
91
|
* phone number validation regex pattern
|
|
100
92
|
* used with input type="tel" in the pattern attribute for html5 validation
|
|
@@ -104,15 +96,3 @@ export declare const phonePattern: string;
|
|
|
104
96
|
* This is used for the .number modifier in v-model
|
|
105
97
|
*/
|
|
106
98
|
export declare const looseToNumber: (val: any) => any;
|
|
107
|
-
/**
|
|
108
|
-
* useLocalModel supports a two-way binding between a reactive prop and
|
|
109
|
-
* a local ref. It effectively allows you to do prop mutations in a way that
|
|
110
|
-
* vue considers safe.
|
|
111
|
-
*
|
|
112
|
-
* vue/core has a version of this in it's experimental mode called useModel
|
|
113
|
-
*
|
|
114
|
-
* @param props component props
|
|
115
|
-
* @param name component prop name to sync
|
|
116
|
-
*/
|
|
117
|
-
export declare const useLocalModel: <T extends Record<string, any>, K extends keyof T>(props: T, name: K) => Ref<T[K]>;
|
|
118
|
-
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
/**
|
|
3
|
+
* useModel supports a two-way binding between a reactive prop and
|
|
4
|
+
* a local ref. It effectively allows you to do prop mutations in a way that
|
|
5
|
+
* vue considers safe.
|
|
6
|
+
*
|
|
7
|
+
* This is effectveily a copy of useModel from vuejs/core which is currently an experimental opt-in
|
|
8
|
+
*
|
|
9
|
+
* @param props component props
|
|
10
|
+
* @param name component prop name to sync
|
|
11
|
+
* @param options - local determines the reactivity pattern used when the prop you are tracking is optional, use local:true.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useModel: <T extends Record<string, any>, K extends keyof T>(props: T, name: K, options?: {
|
|
14
|
+
local?: boolean;
|
|
15
|
+
}) => Ref<T[K]>;
|
package/types/entry.d.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
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, useInputField } from "./composables/forms";
|
|
5
|
+
import { useModel } from "./composables/setupHelpers";
|
|
6
|
+
import { debounce as debounceFn, debounceLeading } from "./helpers/Debounce";
|
|
7
|
+
import { throttle as throttleFn } from "./helpers/Throttle";
|
|
4
8
|
declare const install: Exclude<Plugin["install"], undefined>;
|
|
5
9
|
export default install;
|
|
6
10
|
export * from "./composables/index";
|
|
7
11
|
export * from "./lib-components/index";
|
|
8
12
|
export { BaseAPI, isHttpCancel, isHttpError, setBaseAPIDefaults };
|
|
9
13
|
export type { HttpPromise, HttpError, QueryParams, ReqOptions, ReqPayload, TrailsPromise, TrailsPromisePaged, TrailsResp, TrailsRespPaged, };
|
|
14
|
+
export { emailPattern, looseToNumber, phonePattern, useInputField };
|
|
15
|
+
export { useModel };
|
|
16
|
+
export { debounceFn, debounceLeading, throttleFn };
|
|
@@ -11,10 +11,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: import("vue").PropType<string | number | null>;
|
|
12
12
|
default: undefined;
|
|
13
13
|
};
|
|
14
|
-
error: {
|
|
15
|
-
type: import("vue").PropType<string>;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
14
|
help: {
|
|
19
15
|
type: import("vue").PropType<string>;
|
|
20
16
|
default: string;
|
|
@@ -41,10 +37,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
37
|
type: import("vue").PropType<string | number | null>;
|
|
42
38
|
default: undefined;
|
|
43
39
|
};
|
|
44
|
-
error: {
|
|
45
|
-
type: import("vue").PropType<string>;
|
|
46
|
-
default: string;
|
|
47
|
-
};
|
|
48
40
|
help: {
|
|
49
41
|
type: import("vue").PropType<string>;
|
|
50
42
|
default: string;
|
|
@@ -59,7 +51,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
51
|
}, {
|
|
60
52
|
label: string;
|
|
61
53
|
modelValue: string | number | null;
|
|
62
|
-
error: string;
|
|
63
54
|
help: string;
|
|
64
55
|
placeholder: string;
|
|
65
56
|
}, {}>;
|
|
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: import("vue").PropType<boolean | null>;
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
|
-
error: {
|
|
11
|
-
type: import("vue").PropType<string>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
help: {
|
|
15
11
|
type: import("vue").PropType<string>;
|
|
16
12
|
default: string;
|
|
@@ -31,10 +27,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
27
|
type: import("vue").PropType<boolean | null>;
|
|
32
28
|
default: undefined;
|
|
33
29
|
};
|
|
34
|
-
error: {
|
|
35
|
-
type: import("vue").PropType<string>;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
30
|
help: {
|
|
39
31
|
type: import("vue").PropType<string>;
|
|
40
32
|
default: string;
|
|
@@ -49,7 +41,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
41
|
}, {
|
|
50
42
|
label: string;
|
|
51
43
|
modelValue: boolean | null;
|
|
52
|
-
error: string;
|
|
53
44
|
help: string;
|
|
54
45
|
placeholder: string;
|
|
55
46
|
}, {}>;
|
|
@@ -14,10 +14,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
minDate: number;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
error: {
|
|
18
|
-
type: import("vue").PropType<string>;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
17
|
help: {
|
|
22
18
|
type: import("vue").PropType<string>;
|
|
23
19
|
default: string;
|
|
@@ -49,10 +45,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
45
|
minDate: number;
|
|
50
46
|
};
|
|
51
47
|
};
|
|
52
|
-
error: {
|
|
53
|
-
type: import("vue").PropType<string>;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
48
|
help: {
|
|
57
49
|
type: import("vue").PropType<string>;
|
|
58
50
|
default: string;
|
|
@@ -75,7 +67,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
67
|
minDate: number;
|
|
76
68
|
maxDate: number;
|
|
77
69
|
};
|
|
78
|
-
error: string;
|
|
79
70
|
help: string;
|
|
80
71
|
placeholder: string;
|
|
81
72
|
maxRange: number;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
text: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
text: {
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
text: string;
|
|
13
|
+
}, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -13,10 +13,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
type: import("vue").PropType<(string | number)[] | null>;
|
|
14
14
|
default: undefined;
|
|
15
15
|
};
|
|
16
|
-
error: {
|
|
17
|
-
type: import("vue").PropType<string>;
|
|
18
|
-
default: string;
|
|
19
|
-
};
|
|
20
16
|
help: {
|
|
21
17
|
type: import("vue").PropType<string>;
|
|
22
18
|
default: string;
|
|
@@ -50,10 +46,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
46
|
type: import("vue").PropType<(string | number)[] | null>;
|
|
51
47
|
default: undefined;
|
|
52
48
|
};
|
|
53
|
-
error: {
|
|
54
|
-
type: import("vue").PropType<string>;
|
|
55
|
-
default: string;
|
|
56
|
-
};
|
|
57
49
|
help: {
|
|
58
50
|
type: import("vue").PropType<string>;
|
|
59
51
|
default: string;
|
|
@@ -75,7 +67,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
67
|
}, {
|
|
76
68
|
label: string;
|
|
77
69
|
modelValue: (string | number)[] | null;
|
|
78
|
-
error: string;
|
|
79
70
|
help: string;
|
|
80
71
|
placeholder: string;
|
|
81
72
|
}, {}>;
|
|
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: import("vue").PropType<string | number | null>;
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
|
-
error: {
|
|
11
|
-
type: import("vue").PropType<string>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
help: {
|
|
15
11
|
type: import("vue").PropType<string>;
|
|
16
12
|
default: string;
|
|
@@ -38,10 +34,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
34
|
type: import("vue").PropType<string | number | null>;
|
|
39
35
|
default: undefined;
|
|
40
36
|
};
|
|
41
|
-
error: {
|
|
42
|
-
type: import("vue").PropType<string>;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
37
|
help: {
|
|
46
38
|
type: import("vue").PropType<string>;
|
|
47
39
|
default: string;
|
|
@@ -63,7 +55,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
55
|
}, {
|
|
64
56
|
label: string;
|
|
65
57
|
modelValue: string | number | null;
|
|
66
|
-
error: string;
|
|
67
58
|
help: string;
|
|
68
59
|
placeholder: string;
|
|
69
60
|
}, {}>;
|
|
@@ -2,7 +2,6 @@ import type { InputOption } from "../../composables/forms";
|
|
|
2
2
|
declare const _default: <T extends InputOption>(__VLS_props: {
|
|
3
3
|
label?: string | undefined;
|
|
4
4
|
modelValue?: string | number | null | undefined;
|
|
5
|
-
error?: string | undefined;
|
|
6
5
|
help?: string | undefined;
|
|
7
6
|
placeholder?: string | undefined;
|
|
8
7
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -24,7 +23,6 @@ declare const _default: <T extends InputOption>(__VLS_props: {
|
|
|
24
23
|
props: {
|
|
25
24
|
label?: string | undefined;
|
|
26
25
|
modelValue?: string | number | null | undefined;
|
|
27
|
-
error?: string | undefined;
|
|
28
26
|
help?: string | undefined;
|
|
29
27
|
placeholder?: string | undefined;
|
|
30
28
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -50,7 +48,6 @@ declare const _default: <T extends InputOption>(__VLS_props: {
|
|
|
50
48
|
props: {
|
|
51
49
|
label?: string | undefined;
|
|
52
50
|
modelValue?: string | number | null | undefined;
|
|
53
|
-
error?: string | undefined;
|
|
54
51
|
help?: string | undefined;
|
|
55
52
|
placeholder?: string | undefined;
|
|
56
53
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: import("vue").PropType<string | number | null>;
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
|
-
error: {
|
|
11
|
-
type: import("vue").PropType<string>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
help: {
|
|
15
11
|
type: import("vue").PropType<string>;
|
|
16
12
|
default: string;
|
|
@@ -35,10 +31,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
31
|
type: import("vue").PropType<string | number | null>;
|
|
36
32
|
default: undefined;
|
|
37
33
|
};
|
|
38
|
-
error: {
|
|
39
|
-
type: import("vue").PropType<string>;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
34
|
help: {
|
|
43
35
|
type: import("vue").PropType<string>;
|
|
44
36
|
default: string;
|
|
@@ -57,7 +49,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
49
|
}, {
|
|
58
50
|
label: string;
|
|
59
51
|
modelValue: string | number | null;
|
|
60
|
-
error: string;
|
|
61
52
|
help: string;
|
|
62
53
|
placeholder: string;
|
|
63
54
|
}, {}>;
|
|
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: import("vue").PropType<string | number | null>;
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
|
-
error: {
|
|
11
|
-
type: import("vue").PropType<string>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
help: {
|
|
15
11
|
type: import("vue").PropType<string>;
|
|
16
12
|
default: string;
|
|
@@ -31,10 +27,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
27
|
type: import("vue").PropType<string | number | null>;
|
|
32
28
|
default: undefined;
|
|
33
29
|
};
|
|
34
|
-
error: {
|
|
35
|
-
type: import("vue").PropType<string>;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
30
|
help: {
|
|
39
31
|
type: import("vue").PropType<string>;
|
|
40
32
|
default: string;
|
|
@@ -49,7 +41,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
41
|
}, {
|
|
50
42
|
label: string;
|
|
51
43
|
modelValue: string | number | null;
|
|
52
|
-
error: string;
|
|
53
44
|
help: string;
|
|
54
45
|
placeholder: string;
|
|
55
46
|
}, {}>;
|
|
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: import("vue").PropType<boolean | null>;
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
|
-
error: {
|
|
11
|
-
type: import("vue").PropType<string>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
help: {
|
|
15
11
|
type: import("vue").PropType<string>;
|
|
16
12
|
default: string;
|
|
@@ -31,10 +27,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
27
|
type: import("vue").PropType<boolean | null>;
|
|
32
28
|
default: undefined;
|
|
33
29
|
};
|
|
34
|
-
error: {
|
|
35
|
-
type: import("vue").PropType<string>;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
30
|
help: {
|
|
39
31
|
type: import("vue").PropType<string>;
|
|
40
32
|
default: string;
|
|
@@ -49,7 +41,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
41
|
}, {
|
|
50
42
|
label: string;
|
|
51
43
|
modelValue: boolean | null;
|
|
52
|
-
error: string;
|
|
53
44
|
help: string;
|
|
54
45
|
placeholder: string;
|
|
55
46
|
}, {}>;
|
|
@@ -5,6 +5,7 @@ import { default as DateFilter } from "./layout/DateFilter.vue";
|
|
|
5
5
|
import { default as DetailList } from "./lists/DetailList.vue";
|
|
6
6
|
import { default as DownloadCell } from "./lists/DownloadCell.vue";
|
|
7
7
|
import { default as Flash } from "./overlays/Flash.vue";
|
|
8
|
+
import { default as InlineAlert } from "./indicators/InlineAlert.vue";
|
|
8
9
|
import { default as Modal } from "./overlays/Modal.vue";
|
|
9
10
|
import { default as SidebarLayout } from "./layout/SidebarLayout.vue";
|
|
10
11
|
import { default as Popover } from "./overlays/Popover/Popover.vue";
|
|
@@ -24,6 +25,7 @@ import { default as XYSpinner } from "./indicators/XYSpinner.vue";
|
|
|
24
25
|
import { default as BaseInput } from "./forms/BaseInput.vue";
|
|
25
26
|
import { default as Checkbox } from "./forms/Checkbox.vue";
|
|
26
27
|
import { default as DateRangePicker } from "./forms/DateRangePicker.vue";
|
|
28
|
+
import { default as InputError } from "./forms/InputError.vue";
|
|
27
29
|
import { default as InputHelp } from "./forms/InputHelp.vue";
|
|
28
30
|
import { default as InputLabel } from "./forms/InputLabel.vue";
|
|
29
31
|
import { default as FieldsetLegend } from "./forms/FieldsetLegend.vue";
|
|
@@ -33,8 +35,8 @@ import { default as RadioCards } from "./forms/RadioCards.vue";
|
|
|
33
35
|
import { default as Select } from "./forms/Select.vue";
|
|
34
36
|
import { default as TextArea } from "./forms/TextArea.vue";
|
|
35
37
|
import { default as YesOrNoRadio } from "./forms/YesOrNoRadio.vue";
|
|
36
|
-
export { ActionsDropdown, Cards, ContentModal, DateFilter, DetailList, DownloadCell, Flash, Modal, SidebarLayout, Slideover, StackedLayout, Popover, PopoverContent, PopoverPosition, // Type export
|
|
37
|
-
Paginator, Spinner, DataTable, Steps, DynamicTable, Tabs, Toggle, Tooltip, BaseInput, Checkbox, DateRangePicker, InputHelp, InputLabel, FieldsetLegend, MultiCheckboxes, Radio, RadioCards, Select, TextArea, YesOrNoRadio, XYSpinner, };
|
|
38
|
+
export { ActionsDropdown, Cards, ContentModal, DateFilter, DetailList, DownloadCell, Flash, InlineAlert, Modal, SidebarLayout, Slideover, StackedLayout, Popover, PopoverContent, PopoverPosition, // Type export
|
|
39
|
+
Paginator, Spinner, DataTable, Steps, DynamicTable, Tabs, Toggle, Tooltip, BaseInput, Checkbox, DateRangePicker, InputError, InputHelp, InputLabel, FieldsetLegend, MultiCheckboxes, Radio, RadioCards, Select, TextArea, YesOrNoRadio, XYSpinner, };
|
|
38
40
|
/**
|
|
39
41
|
* declare global component types for App.use(Trees)
|
|
40
42
|
*/
|
|
@@ -63,6 +65,7 @@ export interface TreesComponents {
|
|
|
63
65
|
BaseInput: typeof BaseInput;
|
|
64
66
|
Checkbox: typeof Checkbox;
|
|
65
67
|
DateRangePicker: typeof DateRangePicker;
|
|
68
|
+
InputError: typeof InputError;
|
|
66
69
|
InputHelp: typeof InputHelp;
|
|
67
70
|
InputLabel: typeof InputLabel;
|
|
68
71
|
FieldsetLegend: typeof FieldsetLegend;
|