@xy-planning-network/trees 0.4.9-rc-4 → 0.5.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/README.md +1 -1
- package/dist/trees.es.js +29 -31
- package/dist/trees.umd.js +6 -6
- package/package.json +1 -1
- package/src/lib-components/forms/RadioCards.vue +3 -3
- package/src/lib-components/lists/DetailList.vue +1 -1
- package/src/lib-components/lists/Table.vue +1 -1
- package/src/lib-components/overlays/Flash.vue +0 -10
- package/src/lib-components/overlays/Spinner.vue +1 -15
- package/types/composables/useFlashes.d.ts +7 -1
- package/types/composables/useSpinner.d.ts +1 -1
- package/types/types/lists.d.ts +0 -12
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@ const emit = defineEmits<{
|
|
|
52
52
|
}>()
|
|
53
53
|
|
|
54
54
|
const attrs = useAttrs()
|
|
55
|
-
const uuid =
|
|
55
|
+
const uuid = Uniques.CreateIdAttribute()
|
|
56
56
|
|
|
57
57
|
// tracking internal state separate from modelValue
|
|
58
58
|
// allows v-model to be undefined by the consumer but still supports
|
|
@@ -141,14 +141,14 @@ const nameAttr = computed(() => {
|
|
|
141
141
|
as="div"
|
|
142
142
|
class="font-semibold leading-snug mt-4 text-gray-900 text-sm"
|
|
143
143
|
>
|
|
144
|
-
{{ option.sublabel }}
|
|
145
144
|
<slot
|
|
146
145
|
name="sublabel"
|
|
147
146
|
:active="active"
|
|
148
147
|
:checked="checked"
|
|
149
148
|
:disabled="disabled"
|
|
150
149
|
:option="option"
|
|
151
|
-
|
|
150
|
+
>{{ option.sublabel }}</slot
|
|
151
|
+
>
|
|
152
152
|
</RadioGroupDescription>
|
|
153
153
|
</div>
|
|
154
154
|
</div>
|
|
@@ -21,16 +21,6 @@ const getFlashClass = (type: FlashType) => {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
onMounted(() => {
|
|
24
|
-
// NOTE: (spk) here for backwards compatibility
|
|
25
|
-
window.VueBus.on("Flash-show-message", (flash) => {
|
|
26
|
-
flasher.flash(flash)
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
// NOTE: (spk) here for backwards compatibility
|
|
30
|
-
window.VueBus.on("Flash-show-generic-error", (email) => {
|
|
31
|
-
flasher.genericError(email)
|
|
32
|
-
})
|
|
33
|
-
|
|
34
24
|
// NOTE: (spk) there's a strong argument that this component should accept flashes: Flash[] as a prop
|
|
35
25
|
// and a parent container like StackedLayout or SidebarLayout should handle initiating useFlashes
|
|
36
26
|
// and be singularly responsible for loading flashes from the window.
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { onMounted } from "vue"
|
|
3
2
|
import XYSpinner from "../indicators/XYSpinner.vue"
|
|
4
3
|
import { useAppSpinnerDisplay } from "@/composables/useSpinner"
|
|
5
4
|
|
|
6
|
-
const { idx, loading, maxIdx, messages, msg, showMsg
|
|
7
|
-
useAppSpinnerDisplay()
|
|
5
|
+
const { idx, loading, maxIdx, messages, msg, showMsg } = useAppSpinnerDisplay()
|
|
8
6
|
|
|
9
7
|
const fadeIn = (): void => {
|
|
10
8
|
idx.value++
|
|
@@ -22,18 +20,6 @@ const fadeOut = (): void => {
|
|
|
22
20
|
showMsg.value = false
|
|
23
21
|
}, 2500)
|
|
24
22
|
}
|
|
25
|
-
|
|
26
|
-
onMounted(() => {
|
|
27
|
-
// NOTE: (spk) here for backwards compatibility
|
|
28
|
-
window.VueBus.on("Spinner-show", (spinMessages) => {
|
|
29
|
-
show(spinMessages)
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
// NOTE: (spk) here for backwards compatibility
|
|
33
|
-
window.VueBus.on("Spinner-hide", () => {
|
|
34
|
-
hide()
|
|
35
|
-
})
|
|
36
|
-
})
|
|
37
23
|
</script>
|
|
38
24
|
<template>
|
|
39
25
|
<div
|
|
@@ -77,4 +77,10 @@ export declare function useFlashes(flasherConfig?: FlasherConfig): {
|
|
|
77
77
|
*/
|
|
78
78
|
export declare const loadWindowFlashes: (flasher: Flasher) => void;
|
|
79
79
|
export declare function useAppFlashes(): UseFlashes;
|
|
80
|
-
export declare
|
|
80
|
+
export declare const useAppFlasher: {
|
|
81
|
+
error(msg: string, persistent?: boolean | undefined): void;
|
|
82
|
+
info(msg: string, persistent?: boolean | undefined): void;
|
|
83
|
+
success(msg: string, persistent?: boolean | undefined): void;
|
|
84
|
+
warning(msg: string, persistent?: boolean | undefined): void;
|
|
85
|
+
genericError(email?: string | undefined, persistent?: boolean | undefined): void;
|
|
86
|
+
};
|
|
@@ -22,7 +22,7 @@ export declare function useSpinnerDisplay(): {
|
|
|
22
22
|
hide: () => void;
|
|
23
23
|
};
|
|
24
24
|
export declare function useAppSpinnerDisplay(): UseSpinnerDisplay;
|
|
25
|
-
export declare
|
|
25
|
+
export declare const useAppSpinner: {
|
|
26
26
|
show: (msgs?: string[] | undefined) => void;
|
|
27
27
|
hide: () => void;
|
|
28
28
|
};
|
package/types/types/lists.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface Pagination {
|
|
2
|
-
page: number;
|
|
3
|
-
perPage: number;
|
|
4
|
-
totalItems: number;
|
|
5
|
-
totalPages: number;
|
|
6
|
-
}
|
|
7
|
-
export interface PaginationItems<T = any> {
|
|
8
|
-
items: T[];
|
|
9
|
-
}
|
|
10
|
-
export interface PaginationData<T = any> {
|
|
11
|
-
data: Pagination & PaginationItems<T>;
|
|
12
|
-
}
|