@atscript/vue-form 0.1.82 → 0.1.84
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/as-action.cjs +1 -1
- package/dist/as-action.d.cts +1 -1
- package/dist/as-action.d.mts +1 -1
- package/dist/as-action.mjs +1 -1
- package/dist/{as-action.vue-BOLmcRHb.d.cts → as-action.vue-0qaIjTnF.d.mts} +1 -1
- package/dist/{as-action.vue-ReXXWCRt.d.mts → as-action.vue-CFGXoM5O.d.cts} +1 -1
- package/dist/{as-array-BoPN5kVu.cjs → as-array-CIwvhCCk.cjs} +5 -5
- package/dist/{as-array-C8pb0XAq.mjs → as-array-DNJOnZ2j.mjs} +5 -5
- package/dist/{as-array-clear-btn-BqDJxNWn.mjs → as-array-clear-btn-BY1IBwBP.mjs} +1 -1
- package/dist/{as-array-clear-btn-Bx60mqmC.cjs → as-array-clear-btn-COfRUzeb.cjs} +1 -1
- package/dist/as-array.cjs +1 -1
- package/dist/as-array.d.cts +1 -1
- package/dist/as-array.d.mts +1 -1
- package/dist/as-array.mjs +1 -1
- package/dist/{as-array.vue-BwIDKidj.d.cts → as-array.vue-Ci4xO292.d.cts} +1 -1
- package/dist/{as-array.vue-DWk95nMh.d.mts → as-array.vue-I42wuF6e.d.mts} +1 -1
- package/dist/{as-checkbox-Dcqf2Bby.cjs → as-checkbox-Cva4XHFW.cjs} +2 -2
- package/dist/{as-checkbox-DwGSW968.mjs → as-checkbox-dN1K-rJ_.mjs} +2 -2
- package/dist/as-checkbox.cjs +1 -1
- package/dist/as-checkbox.d.cts +1 -1
- package/dist/as-checkbox.d.mts +1 -1
- package/dist/as-checkbox.mjs +1 -1
- package/dist/{as-checkbox.vue-C1J7GXSV.d.cts → as-checkbox.vue-BoY72SV8.d.mts} +1 -1
- package/dist/{as-checkbox.vue-DbIbeNGB.d.mts → as-checkbox.vue-DqIm0ms2.d.cts} +1 -1
- package/dist/{as-collapsible-FN1ksw08.cjs → as-collapsible-B0rlXU0x.cjs} +8 -6
- package/dist/{as-collapsible-ChFET8n3.mjs → as-collapsible-DQOxKGGj.mjs} +7 -5
- package/dist/as-collapsible.cjs +2 -0
- package/dist/as-collapsible.d.cts +19 -0
- package/dist/as-collapsible.d.mts +20 -0
- package/dist/as-collapsible.mjs +2 -0
- package/dist/{as-date-B9g4UlrI.cjs → as-date-Cizo8gZx.cjs} +3 -3
- package/dist/{as-date-9Uwj5MPG.mjs → as-date-CsBBqja_.mjs} +3 -3
- package/dist/as-date.cjs +1 -1
- package/dist/as-date.d.cts +1 -1
- package/dist/as-date.d.mts +1 -1
- package/dist/as-date.mjs +1 -1
- package/dist/{as-date.vue-DQQ7e1be.d.mts → as-date.vue-BfSVrED7.d.mts} +1 -1
- package/dist/{as-date.vue-Dq-lJ85v.d.cts → as-date.vue-SdlJH5fn.d.cts} +1 -1
- package/dist/{as-datetime-Ds_yQWi6.cjs → as-datetime-Cjbprmxg.cjs} +3 -3
- package/dist/{as-datetime-D_sc95ED.mjs → as-datetime-D_Wbrj9t.mjs} +3 -3
- package/dist/as-datetime.cjs +1 -1
- package/dist/as-datetime.d.cts +1 -1
- package/dist/as-datetime.d.mts +1 -1
- package/dist/as-datetime.mjs +1 -1
- package/dist/{as-datetime.vue-B3e_uLA3.d.cts → as-datetime.vue-B47V1siL.d.mts} +1 -1
- package/dist/{as-datetime.vue-B9J68KLU.d.mts → as-datetime.vue-DUp_TDOW.d.cts} +1 -1
- package/dist/{as-decimal--cEvm1lb.cjs → as-decimal-DhrdOvUQ.cjs} +1 -1
- package/dist/{as-decimal-7sV4gfJx.mjs → as-decimal-DtQuZmPA.mjs} +1 -1
- package/dist/as-decimal.cjs +1 -1
- package/dist/as-decimal.d.cts +1 -1
- package/dist/as-decimal.d.mts +1 -1
- package/dist/as-decimal.mjs +1 -1
- package/dist/{as-decimal.vue-B8-nFo4M.d.mts → as-decimal.vue-Bhq4C1Ix.d.cts} +1 -1
- package/dist/{as-decimal.vue-C_boWzTP.d.cts → as-decimal.vue-DitPZpS_.d.mts} +1 -1
- package/dist/{as-field-shell-DEQnfFVJ.mjs → as-field-shell-D0mNXfQZ.mjs} +2 -2
- package/dist/{as-field-shell-TH8IrGg9.cjs → as-field-shell-zeno02I1.cjs} +3 -3
- package/dist/as-field-shell.cjs +1 -1
- package/dist/as-field-shell.d.cts +1 -1
- package/dist/as-field-shell.d.mts +1 -1
- package/dist/as-field-shell.mjs +1 -1
- package/dist/{as-field-shell.vue-NyQkFneN.d.mts → as-field-shell.vue-Ct1ixFqc.d.cts} +1 -1
- package/dist/{as-field-shell.vue-DXubVvFh.d.cts → as-field-shell.vue-K4Flr3gw.d.mts} +1 -1
- package/dist/as-form.d.cts +1 -1
- package/dist/as-form.d.mts +1 -1
- package/dist/{as-form.vue-Bnx5wmrs.d.cts → as-form.vue-BfX0Qgl9.d.cts} +2 -2
- package/dist/{as-form.vue-r8RVlous.d.mts → as-form.vue-DmW9OzBV.d.mts} +2 -2
- package/dist/{as-input-DBwxoEp7.cjs → as-input-CwPkK9qR.cjs} +3 -3
- package/dist/{as-input-CfXuz6cf.mjs → as-input-VOGvI31W.mjs} +3 -3
- package/dist/as-input.cjs +1 -1
- package/dist/as-input.d.cts +1 -1
- package/dist/as-input.d.mts +1 -1
- package/dist/as-input.mjs +1 -1
- package/dist/{as-input.vue-BkFMg_PX.d.cts → as-input.vue-BHsVVncq.d.cts} +1 -1
- package/dist/{as-input.vue-DBMNi9pA.d.mts → as-input.vue-DgZrW4pc.d.mts} +1 -1
- package/dist/{as-multi-select-CjyY453L.cjs → as-multi-select-D7XGZS3L.cjs} +1 -1
- package/dist/{as-multi-select-CitiQ7iz.mjs → as-multi-select-DGipqqGz.mjs} +1 -1
- package/dist/as-multi-select.cjs +1 -1
- package/dist/as-multi-select.d.cts +1 -1
- package/dist/as-multi-select.d.mts +1 -1
- package/dist/as-multi-select.mjs +1 -1
- package/dist/{as-multi-select.vue-Bbv8x2Js.d.mts → as-multi-select.vue--bavpcN-.d.cts} +1 -1
- package/dist/{as-multi-select.vue-Bn_Fyku5.d.cts → as-multi-select.vue-rsDUkzxa.d.mts} +1 -1
- package/dist/{as-number-Clq1LMQd.mjs → as-number-BIhBVXih.mjs} +2 -2
- package/dist/{as-number-ojx4Q8YH.cjs → as-number-BQWwSipg.cjs} +2 -2
- package/dist/as-number.cjs +1 -1
- package/dist/as-number.d.cts +1 -1
- package/dist/as-number.d.mts +1 -1
- package/dist/as-number.mjs +1 -1
- package/dist/{as-number.vue-BSXOv-nz.d.cts → as-number.vue-D2DrbnQu.d.cts} +1 -1
- package/dist/{as-number.vue-DRE18Wy-.d.mts → as-number.vue-Oml2y6Nt.d.mts} +1 -1
- package/dist/{as-object-B3dxi-5A.cjs → as-object-CAIUl3li.cjs} +3 -3
- package/dist/{as-object-DpSs3Aki.mjs → as-object-mBh0KLy2.mjs} +3 -3
- package/dist/as-object.cjs +1 -1
- package/dist/as-object.d.cts +1 -1
- package/dist/as-object.d.mts +1 -1
- package/dist/as-object.mjs +1 -1
- package/dist/{as-object.vue-C9Sp3JdQ.d.cts → as-object.vue-BljKYrMo.d.cts} +1 -1
- package/dist/{as-object.vue-I-Blr7wy.d.mts → as-object.vue-DAq7Kha3.d.mts} +1 -1
- package/dist/as-paragraph.cjs +1 -1
- package/dist/as-paragraph.d.cts +1 -1
- package/dist/as-paragraph.d.mts +1 -1
- package/dist/as-paragraph.mjs +1 -1
- package/dist/{as-paragraph.vue-KdN_Gtoh.d.mts → as-paragraph.vue-CBU_olev.d.mts} +1 -1
- package/dist/{as-paragraph.vue-p2kyH9gG.d.cts → as-paragraph.vue-LxXA7VPD.d.cts} +1 -1
- package/dist/{as-radio-BoS1VhOR.cjs → as-radio-CdK8gCkN.cjs} +1 -1
- package/dist/{as-radio-DQry_nv7.mjs → as-radio-DBW6XzlW.mjs} +1 -1
- package/dist/as-radio.cjs +1 -1
- package/dist/as-radio.d.cts +1 -1
- package/dist/as-radio.d.mts +1 -1
- package/dist/as-radio.mjs +1 -1
- package/dist/{as-radio.vue-BgWru-Q7.d.mts → as-radio.vue-Dk4nlz-d.d.cts} +1 -1
- package/dist/{as-radio.vue-DkN0qaB9.d.cts → as-radio.vue-TVMliE1e.d.mts} +1 -1
- package/dist/{as-ref-DjMTB-tC.cjs → as-ref-BOAHVeR-.cjs} +1 -1
- package/dist/{as-ref-Bq_4z1IA.mjs → as-ref-D6zp_PIG.mjs} +1 -1
- package/dist/as-ref.cjs +1 -1
- package/dist/as-ref.d.cts +1 -1
- package/dist/as-ref.d.mts +1 -1
- package/dist/as-ref.mjs +1 -1
- package/dist/{as-ref.vue-3K67TM80.d.cts → as-ref.vue-CUxxGqyg.d.mts} +1 -1
- package/dist/{as-ref.vue-CE1vVUTN.d.mts → as-ref.vue-CnzqRblA.d.cts} +1 -1
- package/dist/{as-select-BrmjjRKU.cjs → as-select-B2jqgF38.cjs} +1 -1
- package/dist/{as-select-DerYjoLO.mjs → as-select-BiS6USZW.mjs} +1 -1
- package/dist/as-select.cjs +1 -1
- package/dist/as-select.d.cts +1 -1
- package/dist/as-select.d.mts +1 -1
- package/dist/as-select.mjs +1 -1
- package/dist/{as-select.vue-C03bPwG_.d.mts → as-select.vue-CKjAg-Y2.d.mts} +1 -1
- package/dist/{as-select.vue-DfZY_vxR.d.cts → as-select.vue-ZZtjsmcO.d.cts} +1 -1
- package/dist/{as-time-B2zB5xSS.mjs → as-time-BN-Vc-iw.mjs} +3 -3
- package/dist/{as-time-CNmyhGwd.cjs → as-time-DdQnNIQX.cjs} +3 -3
- package/dist/as-time.cjs +1 -1
- package/dist/as-time.d.cts +1 -1
- package/dist/as-time.d.mts +1 -1
- package/dist/as-time.mjs +1 -1
- package/dist/{as-time.vue-BPzy2jHL.d.cts → as-time.vue-BCEE4uCV.d.mts} +1 -1
- package/dist/{as-time.vue-CTahupM4.d.mts → as-time.vue-BUAvE5m3.d.cts} +1 -1
- package/dist/{as-tuple-BH2ss6EY.cjs → as-tuple-Co8__kEm.cjs} +4 -4
- package/dist/{as-tuple-4xpIT7ix.mjs → as-tuple-NwaomSYF.mjs} +4 -4
- package/dist/as-tuple.cjs +1 -1
- package/dist/as-tuple.d.cts +1 -1
- package/dist/as-tuple.d.mts +1 -1
- package/dist/as-tuple.mjs +1 -1
- package/dist/{as-tuple.vue-BpB4uiSs.d.cts → as-tuple.vue-WN7k43tv.d.mts} +1 -1
- package/dist/{as-tuple.vue-S4qpWqlA.d.mts → as-tuple.vue-cy0ThAGl.d.cts} +1 -1
- package/dist/{as-union-vz9dJ3aQ.mjs → as-union-B5OFQLJX.mjs} +2 -2
- package/dist/{as-union-BDqrrIn6.cjs → as-union-Cz5cm7BP.cjs} +2 -2
- package/dist/as-union.cjs +1 -1
- package/dist/as-union.d.cts +1 -1
- package/dist/as-union.d.mts +1 -1
- package/dist/as-union.mjs +1 -1
- package/dist/{as-union.vue-Cue3m7Id.d.cts → as-union.vue-AqH35ozq.d.cts} +1 -1
- package/dist/{as-union.vue-Czxxaht_.d.mts → as-union.vue-Ew3Bany8.d.mts} +1 -1
- package/dist/{as-variant-picker-BVs0AvjK.mjs → as-variant-picker-B3GLhKyt.mjs} +1 -1
- package/dist/{as-variant-picker-DObQZHmm.cjs → as-variant-picker-JlEhh7YO.cjs} +1 -1
- package/dist/{use-as-dropdown-C-Qy7Vt0.cjs → focus-after-toggle-CWxiPZWi.cjs} +0 -35
- package/dist/{use-as-dropdown-BMnEm6jF.mjs → focus-after-toggle-Dtl3P6CS.mjs} +2 -31
- package/dist/index.cjs +27 -24
- package/dist/index.d.cts +24 -23
- package/dist/index.d.mts +24 -23
- package/dist/index.mjs +24 -22
- package/dist/{types-D0xtsrz8.d.mts → types-BYfe1QEF.d.cts} +26 -1
- package/dist/{types-CzMUE5Dk.d.cts → types-CV9ss4UN.d.mts} +26 -1
- package/dist/use-as-dropdown-B2Shb7wn.mjs +31 -0
- package/dist/use-as-dropdown-Bj9toVdw.cjs +36 -0
- package/dist/{use-as-optional-add-flow-Dg_2iQ4d.cjs → use-as-optional-add-flow-C85F2VoU.cjs} +2 -2
- package/dist/{use-as-optional-add-flow-DzUScp6V.mjs → use-as-optional-add-flow-CQctXLZI.mjs} +1 -1
- package/package.json +14 -9
- /package/dist/{as-action-DfQE2MA7.mjs → as-action-Dx3RVCnH.mjs} +0 -0
- /package/dist/{as-action-UtPIV4Cf.cjs → as-action-Weju622Z.cjs} +0 -0
- /package/dist/{as-adornment-shell-knFiB7Ct.mjs → as-adornment-shell-C4A2fnDp.mjs} +0 -0
- /package/dist/{as-adornment-shell-9UmdNIPR.cjs → as-adornment-shell-DptUMWNk.cjs} +0 -0
- /package/dist/{as-input-control-C5-DelZT.cjs → as-input-control-BYo_dfQA.cjs} +0 -0
- /package/dist/{as-input-control-BzELjheN.mjs → as-input-control-Bx-isLZN.mjs} +0 -0
- /package/dist/{as-paragraph-D_h8QGLz.cjs → as-paragraph-BA-c863H.cjs} +0 -0
- /package/dist/{as-paragraph-CuXb-mfi.mjs → as-paragraph-GIGj6UgL.mjs} +0 -0
- /package/dist/{use-as-date-v-GFUtrP.cjs → use-as-date-DY8b1_V4.cjs} +0 -0
- /package/dist/{use-as-date-Bb0Pi1l_.mjs → use-as-date-XLE8HBbo.mjs} +0 -0
package/dist/as-union.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_union_default } from "./as-union-
|
|
1
|
+
import { t as as_union_default } from "./as-union-B5OFQLJX.mjs";
|
|
2
2
|
export { as_union_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useAsDropdown } from "./use-as-dropdown-
|
|
1
|
+
import { t as useAsDropdown } from "./use-as-dropdown-B2Shb7wn.mjs";
|
|
2
2
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, withModifiers } from "vue";
|
|
3
3
|
//#region src/components/internal/as-optional-clear.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
const _hoisted_1$1 = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_as_dropdown = require("./use-as-dropdown-
|
|
1
|
+
const require_use_as_dropdown = require("./use-as-dropdown-Bj9toVdw.cjs");
|
|
2
2
|
let vue = require("vue");
|
|
3
3
|
//#region src/components/internal/as-optional-clear.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
const _hoisted_1$1 = [
|
|
@@ -50,35 +50,6 @@ function useAsFocusFirstAfter(onToggleOptional) {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
53
|
-
//#region src/composables/use-as-dropdown.ts
|
|
54
|
-
function useAsDropdown(containerRef) {
|
|
55
|
-
const isOpen = (0, vue.ref)(false);
|
|
56
|
-
function toggle() {
|
|
57
|
-
isOpen.value = !isOpen.value;
|
|
58
|
-
}
|
|
59
|
-
function close() {
|
|
60
|
-
isOpen.value = false;
|
|
61
|
-
}
|
|
62
|
-
function select(callback) {
|
|
63
|
-
callback();
|
|
64
|
-
close();
|
|
65
|
-
}
|
|
66
|
-
function onClickOutside(event) {
|
|
67
|
-
if (containerRef.value && !containerRef.value.contains(event.target)) close();
|
|
68
|
-
}
|
|
69
|
-
(0, vue.watch)(isOpen, (open) => {
|
|
70
|
-
if (open) document.addEventListener("click", onClickOutside, true);
|
|
71
|
-
else document.removeEventListener("click", onClickOutside, true);
|
|
72
|
-
});
|
|
73
|
-
(0, vue.onBeforeUnmount)(() => document.removeEventListener("click", onClickOutside, true));
|
|
74
|
-
return {
|
|
75
|
-
isOpen,
|
|
76
|
-
toggle,
|
|
77
|
-
close,
|
|
78
|
-
select
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
53
|
Object.defineProperty(exports, "focusFirstAfter", {
|
|
83
54
|
enumerable: true,
|
|
84
55
|
get: function() {
|
|
@@ -91,12 +62,6 @@ Object.defineProperty(exports, "focusNewFocusableAfter", {
|
|
|
91
62
|
return focusNewFocusableAfter;
|
|
92
63
|
}
|
|
93
64
|
});
|
|
94
|
-
Object.defineProperty(exports, "useAsDropdown", {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function() {
|
|
97
|
-
return useAsDropdown;
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
65
|
Object.defineProperty(exports, "useAsFocusFirstAfter", {
|
|
101
66
|
enumerable: true,
|
|
102
67
|
get: function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nextTick,
|
|
1
|
+
import { nextTick, ref } from "vue";
|
|
2
2
|
//#region src/composables/focus-after-toggle.ts
|
|
3
3
|
const FOCUSABLE_SELECTOR = [
|
|
4
4
|
"input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([disabled])",
|
|
@@ -50,33 +50,4 @@ function useAsFocusFirstAfter(onToggleOptional) {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
53
|
-
|
|
54
|
-
function useAsDropdown(containerRef) {
|
|
55
|
-
const isOpen = ref(false);
|
|
56
|
-
function toggle() {
|
|
57
|
-
isOpen.value = !isOpen.value;
|
|
58
|
-
}
|
|
59
|
-
function close() {
|
|
60
|
-
isOpen.value = false;
|
|
61
|
-
}
|
|
62
|
-
function select(callback) {
|
|
63
|
-
callback();
|
|
64
|
-
close();
|
|
65
|
-
}
|
|
66
|
-
function onClickOutside(event) {
|
|
67
|
-
if (containerRef.value && !containerRef.value.contains(event.target)) close();
|
|
68
|
-
}
|
|
69
|
-
watch(isOpen, (open) => {
|
|
70
|
-
if (open) document.addEventListener("click", onClickOutside, true);
|
|
71
|
-
else document.removeEventListener("click", onClickOutside, true);
|
|
72
|
-
});
|
|
73
|
-
onBeforeUnmount(() => document.removeEventListener("click", onClickOutside, true));
|
|
74
|
-
return {
|
|
75
|
-
isOpen,
|
|
76
|
-
toggle,
|
|
77
|
-
close,
|
|
78
|
-
select
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
export { useAsFocusFirstAfter as i, focusFirstAfter as n, focusNewFocusableAfter as r, useAsDropdown as t };
|
|
53
|
+
export { focusNewFocusableAfter as n, useAsFocusFirstAfter as r, focusFirstAfter as t };
|
package/dist/index.cjs
CHANGED
|
@@ -6,27 +6,29 @@ const require_as_form = require("./as-form-BWf2QGoS.cjs");
|
|
|
6
6
|
const require_as_field = require("./as-field--sdVpUAw.cjs");
|
|
7
7
|
const require_use_as_locale = require("./use-as-locale-C4z5stwD.cjs");
|
|
8
8
|
const require_as_iterator = require("./as-iterator-0kW5UmOg.cjs");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
9
|
+
const require_focus_after_toggle = require("./focus-after-toggle-CWxiPZWi.cjs");
|
|
10
|
+
const require_as_collapsible = require("./as-collapsible-B0rlXU0x.cjs");
|
|
11
|
+
const require_as_field_shell = require("./as-field-shell-zeno02I1.cjs");
|
|
12
|
+
const require_use_as_dropdown = require("./use-as-dropdown-Bj9toVdw.cjs");
|
|
13
|
+
const require_as_input = require("./as-input-CwPkK9qR.cjs");
|
|
14
|
+
const require_as_select = require("./as-select-B2jqgF38.cjs");
|
|
15
|
+
const require_as_multi_select = require("./as-multi-select-D7XGZS3L.cjs");
|
|
16
|
+
const require_as_radio = require("./as-radio-CdK8gCkN.cjs");
|
|
17
|
+
const require_as_checkbox = require("./as-checkbox-Cva4XHFW.cjs");
|
|
18
|
+
const require_as_paragraph = require("./as-paragraph-BA-c863H.cjs");
|
|
19
|
+
const require_as_action = require("./as-action-Weju622Z.cjs");
|
|
20
|
+
const require_use_as_optional_add_flow = require("./use-as-optional-add-flow-C85F2VoU.cjs");
|
|
21
|
+
const require_as_object = require("./as-object-CAIUl3li.cjs");
|
|
22
|
+
const require_as_array = require("./as-array-CIwvhCCk.cjs");
|
|
23
|
+
const require_as_union = require("./as-union-Cz5cm7BP.cjs");
|
|
24
|
+
const require_as_tuple = require("./as-tuple-Co8__kEm.cjs");
|
|
25
|
+
const require_as_ref = require("./as-ref-BOAHVeR-.cjs");
|
|
26
|
+
const require_as_decimal = require("./as-decimal-DhrdOvUQ.cjs");
|
|
27
|
+
const require_as_number = require("./as-number-BQWwSipg.cjs");
|
|
28
|
+
const require_use_as_date = require("./use-as-date-DY8b1_V4.cjs");
|
|
29
|
+
const require_as_date = require("./as-date-Cizo8gZx.cjs");
|
|
30
|
+
const require_as_datetime = require("./as-datetime-Cjbprmxg.cjs");
|
|
31
|
+
const require_as_time = require("./as-time-DdQnNIQX.cjs");
|
|
30
32
|
let vue = require("vue");
|
|
31
33
|
let _atscript_ui = require("@atscript/ui");
|
|
32
34
|
//#region src/composables/create-as-form-def.ts
|
|
@@ -103,6 +105,7 @@ function useAsErrorDismiss() {
|
|
|
103
105
|
exports.AsAction = require_as_action.as_action_default;
|
|
104
106
|
exports.AsArray = require_as_array.as_array_default;
|
|
105
107
|
exports.AsCheckbox = require_as_checkbox.as_checkbox_default;
|
|
108
|
+
exports.AsCollapsible = require_as_collapsible.as_collapsible_default;
|
|
106
109
|
exports.AsDate = require_as_date.as_date_default;
|
|
107
110
|
exports.AsDatetime = require_as_datetime.as_datetime_default;
|
|
108
111
|
exports.AsDecimal = require_as_decimal.as_decimal_default;
|
|
@@ -122,8 +125,8 @@ exports.AsTuple = require_as_tuple.as_tuple_default;
|
|
|
122
125
|
exports.AsUnion = require_as_union.as_union_default;
|
|
123
126
|
exports.createAsFormDef = createAsFormDef;
|
|
124
127
|
exports.createDefaultTypes = createDefaultTypes;
|
|
125
|
-
exports.focusFirstAfter =
|
|
126
|
-
exports.focusNewFocusableAfter =
|
|
128
|
+
exports.focusFirstAfter = require_focus_after_toggle.focusFirstAfter;
|
|
129
|
+
exports.focusNewFocusableAfter = require_focus_after_toggle.focusNewFocusableAfter;
|
|
127
130
|
exports.formatIndexedLabelParts = require_use_form_context.formatIndexedLabelParts;
|
|
128
131
|
Object.defineProperty(exports, "getDefaultClientFactory", {
|
|
129
132
|
enumerable: true,
|
|
@@ -154,7 +157,7 @@ exports.useAsDualInput = require_as_decimal.useAsDualInput;
|
|
|
154
157
|
exports.useAsErrorDismiss = useAsErrorDismiss;
|
|
155
158
|
exports.useAsExternalErrors = require_as_form.useAsExternalErrors;
|
|
156
159
|
exports.useAsField = require_as_field.useAsField;
|
|
157
|
-
exports.useAsFocusFirstAfter =
|
|
160
|
+
exports.useAsFocusFirstAfter = require_focus_after_toggle.useAsFocusFirstAfter;
|
|
158
161
|
exports.useAsForm = require_as_form.useAsForm;
|
|
159
162
|
exports.useAsLocale = require_use_as_locale.useAsLocale;
|
|
160
163
|
exports.useAsNestedSectionsStore = require_use_as_nested_sections_store.useAsNestedSectionsStore;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _default$
|
|
5
|
-
import
|
|
6
|
-
import { t as _default
|
|
7
|
-
import { t as _default$
|
|
8
|
-
import { t as _default$
|
|
9
|
-
import { t as _default$4 } from "./as-
|
|
10
|
-
import { t as _default$5 } from "./as-
|
|
11
|
-
import { t as _default$
|
|
12
|
-
import { t as _default$
|
|
13
|
-
import { t as _default$
|
|
14
|
-
import { t as _default$12 } from "./as-
|
|
15
|
-
import { t as _default$13 } from "./as-
|
|
16
|
-
import { t as _default$14 } from "./as-
|
|
17
|
-
import { t as _default$15 } from "./as-
|
|
18
|
-
import { t as _default$16 } from "./as-
|
|
19
|
-
import { t as _default$17 } from "./as-
|
|
20
|
-
import { t as _default$18 } from "./as-
|
|
21
|
-
import { t as _default$19 } from "./as-
|
|
1
|
+
import { a as TAsComponentEmits, c as TAsUnionContext, i as TAsCollapsibleSlots, n as TAsChangeType, o as TAsComponentProps, r as TAsCollapsibleProps, s as TAsTypeComponents, t as TAsBaseComponentProps } from "./types-BYfe1QEF.cjs";
|
|
2
|
+
import _default$3 from "./as-collapsible.cjs";
|
|
3
|
+
import _default$7 from "./as-field.cjs";
|
|
4
|
+
import { a as TFormRule, i as TFormFieldRegistration, n as _default$9, o as TFormState, r as TFormFieldCallbacks } from "./as-form.vue-BfX0Qgl9.cjs";
|
|
5
|
+
import _default$11 from "./as-iterator.cjs";
|
|
6
|
+
import { t as _default } from "./as-action.vue-CFGXoM5O.cjs";
|
|
7
|
+
import { t as _default$1 } from "./as-array.vue-Ci4xO292.cjs";
|
|
8
|
+
import { t as _default$2 } from "./as-checkbox.vue-DqIm0ms2.cjs";
|
|
9
|
+
import { t as _default$4 } from "./as-date.vue-SdlJH5fn.cjs";
|
|
10
|
+
import { t as _default$5 } from "./as-datetime.vue-DUp_TDOW.cjs";
|
|
11
|
+
import { t as _default$6 } from "./as-decimal.vue-Bhq4C1Ix.cjs";
|
|
12
|
+
import { t as _default$8 } from "./as-field-shell.vue-Ct1ixFqc.cjs";
|
|
13
|
+
import { t as _default$10 } from "./as-input.vue-BHsVVncq.cjs";
|
|
14
|
+
import { t as _default$12 } from "./as-number.vue-D2DrbnQu.cjs";
|
|
15
|
+
import { t as _default$13 } from "./as-object.vue-BljKYrMo.cjs";
|
|
16
|
+
import { t as _default$14 } from "./as-paragraph.vue-LxXA7VPD.cjs";
|
|
17
|
+
import { t as _default$15 } from "./as-radio.vue-Dk4nlz-d.cjs";
|
|
18
|
+
import { t as _default$16 } from "./as-ref.vue-CnzqRblA.cjs";
|
|
19
|
+
import { t as _default$17 } from "./as-select.vue-ZZtjsmcO.cjs";
|
|
20
|
+
import { t as _default$18 } from "./as-time.vue-BUAvE5m3.cjs";
|
|
21
|
+
import { t as _default$19 } from "./as-tuple.vue-cy0ThAGl.cjs";
|
|
22
|
+
import { t as _default$20 } from "./as-union.vue-AqH35ozq.cjs";
|
|
22
23
|
import * as vue from "vue";
|
|
23
24
|
import { Component, ComputedRef, MaybeRef, Ref, ShallowRef, WritableComputedRef } from "vue";
|
|
24
25
|
import * as _atscript_ui0 from "@atscript/ui";
|
|
25
26
|
import { ClientFactory, ClientFactory as ClientFactory$1, FormArrayFieldDef, FormDef, FormFieldDef, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, ResolvedValueHelp, ValueHelpInfo, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
26
|
-
//#region ../../node_modules/.pnpm/@atscript+typescript@0.1.
|
|
27
|
+
//#region ../../node_modules/.pnpm/@atscript+typescript@0.1.68_@atscript+core@0.1.68_@emnapi+core@1.10.0_@emnapi+runtime@1_ad48b915638ca027b45e7af17932b0f8/node_modules/@atscript/typescript/dist/utils.d.ts
|
|
27
28
|
interface TError {
|
|
28
29
|
path: string;
|
|
29
30
|
message: string;
|
|
@@ -969,4 +970,4 @@ type AsErrorDismiss = (path: string) => void;
|
|
|
969
970
|
*/
|
|
970
971
|
declare function useAsErrorDismiss(): AsErrorDismiss;
|
|
971
972
|
//#endregion
|
|
972
|
-
export { _default as AsAction, _default$1 as AsArray, _default$2 as AsCheckbox, _default$3 as
|
|
973
|
+
export { _default as AsAction, _default$1 as AsArray, _default$2 as AsCheckbox, _default$3 as AsCollapsible, _default$4 as AsDate, _default$5 as AsDatetime, _default$6 as AsDecimal, type AsErrorDismiss, _default$7 as AsField, _default$8 as AsFieldShell, _default$9 as AsForm, _default$10 as AsInput, _default$11 as AsIterator, type AsNestedSectionsStore, _default$12 as AsNumber, _default$13 as AsObject, _default$14 as AsParagraph, _default$15 as AsRadio, _default$16 as AsRef, _default$17 as AsSelect, _default$18 as AsTime, _default$19 as AsTuple, _default$20 as AsUnion, type ClientFactory, type TAsBaseComponentProps, type TAsChangeType, type TAsCollapsibleProps, type TAsCollapsibleSlots, type TAsComponentEmits, type TAsComponentProps, type TAsTypeComponents, type TAsUnionContext, type TFormFieldCallbacks, type TFormFieldRegistration, type TFormRule, type TFormState, type TFormSubmitValidator, type UseAsArrayReturn, type UseAsDataReturn, type UseAsDateOptions, type UseAsDateReturn, type UseAsDecimalOptions, type UseAsDecimalReturn, type UseAsDualInputOptions, type UseAsDualInputReturn, type UseAsExternalErrorsOptions, type UseAsExternalErrorsReturn, type UseAsFieldOptions, type UseAsFieldReturn, type UseAsFormOptions, type UseAsFormReturn, type UseAsLocaleReturn, type UseAsNumberOptions, type UseAsNumberReturn, type UseAsOptionalAddFlowOptions, type UseAsOptionalAddFlowReturn, type UseAsPathReturn, type UseAsStateReturn, type UseAsTriStateCheckboxOptions, type UseAsTriStateCheckboxReturn, type UseAsTupleReturn, type UseAsTypeMapReturn, type UseAsUnionReturn, type UseAsValueHelpOptions, type UseAsValueHelpReturn, createAsFormDef, createDefaultTypes, focusFirstAfter, focusNewFocusableAfter, formatIndexedLabelParts, getDefaultClientFactory, provideAsLocale, provideAsNestedSectionsStore, resetDefaultClientFactory, setDefaultClientFactory, useAsArray, useAsData, useAsDate, useAsDecimal, useAsDropdown, useAsDualInput, useAsErrorDismiss, useAsExternalErrors, useAsField, useAsFocusFirstAfter, useAsForm, useAsLocale, useAsNestedSectionsStore, useAsNumber, useAsOptionalAddFlow, useAsPath, useAsState, useAsTriStateCheckbox, useAsTuple, useAsTypeMap, useAsUnion, useAsUnionVariant, useAsValueHelp };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _default$
|
|
5
|
-
import
|
|
6
|
-
import { t as _default
|
|
7
|
-
import { t as _default$
|
|
8
|
-
import { t as _default$
|
|
9
|
-
import { t as _default$4 } from "./as-
|
|
10
|
-
import { t as _default$5 } from "./as-
|
|
11
|
-
import { t as _default$
|
|
12
|
-
import { t as _default$
|
|
13
|
-
import { t as _default$
|
|
14
|
-
import { t as _default$12 } from "./as-
|
|
15
|
-
import { t as _default$13 } from "./as-
|
|
16
|
-
import { t as _default$14 } from "./as-
|
|
17
|
-
import { t as _default$15 } from "./as-
|
|
18
|
-
import { t as _default$16 } from "./as-
|
|
19
|
-
import { t as _default$17 } from "./as-
|
|
20
|
-
import { t as _default$18 } from "./as-
|
|
21
|
-
import { t as _default$19 } from "./as-
|
|
1
|
+
import { a as TAsComponentEmits, c as TAsUnionContext, i as TAsCollapsibleSlots, n as TAsChangeType, o as TAsComponentProps, r as TAsCollapsibleProps, s as TAsTypeComponents, t as TAsBaseComponentProps } from "./types-CV9ss4UN.mjs";
|
|
2
|
+
import _default$3 from "./as-collapsible.mjs";
|
|
3
|
+
import _default$7 from "./as-field.mjs";
|
|
4
|
+
import { a as TFormRule, i as TFormFieldRegistration, n as _default$9, o as TFormState, r as TFormFieldCallbacks } from "./as-form.vue-DmW9OzBV.mjs";
|
|
5
|
+
import _default$11 from "./as-iterator.mjs";
|
|
6
|
+
import { t as _default } from "./as-action.vue-0qaIjTnF.mjs";
|
|
7
|
+
import { t as _default$1 } from "./as-array.vue-I42wuF6e.mjs";
|
|
8
|
+
import { t as _default$2 } from "./as-checkbox.vue-BoY72SV8.mjs";
|
|
9
|
+
import { t as _default$4 } from "./as-date.vue-BfSVrED7.mjs";
|
|
10
|
+
import { t as _default$5 } from "./as-datetime.vue-B47V1siL.mjs";
|
|
11
|
+
import { t as _default$6 } from "./as-decimal.vue-DitPZpS_.mjs";
|
|
12
|
+
import { t as _default$8 } from "./as-field-shell.vue-K4Flr3gw.mjs";
|
|
13
|
+
import { t as _default$10 } from "./as-input.vue-DgZrW4pc.mjs";
|
|
14
|
+
import { t as _default$12 } from "./as-number.vue-Oml2y6Nt.mjs";
|
|
15
|
+
import { t as _default$13 } from "./as-object.vue-DAq7Kha3.mjs";
|
|
16
|
+
import { t as _default$14 } from "./as-paragraph.vue-CBU_olev.mjs";
|
|
17
|
+
import { t as _default$15 } from "./as-radio.vue-TVMliE1e.mjs";
|
|
18
|
+
import { t as _default$16 } from "./as-ref.vue-CUxxGqyg.mjs";
|
|
19
|
+
import { t as _default$17 } from "./as-select.vue-CKjAg-Y2.mjs";
|
|
20
|
+
import { t as _default$18 } from "./as-time.vue-BCEE4uCV.mjs";
|
|
21
|
+
import { t as _default$19 } from "./as-tuple.vue-WN7k43tv.mjs";
|
|
22
|
+
import { t as _default$20 } from "./as-union.vue-Ew3Bany8.mjs";
|
|
22
23
|
import * as vue from "vue";
|
|
23
24
|
import { Component, ComputedRef, MaybeRef, Ref, ShallowRef, WritableComputedRef } from "vue";
|
|
24
25
|
import * as _atscript_ui0 from "@atscript/ui";
|
|
25
26
|
import { ClientFactory, ClientFactory as ClientFactory$1, FormArrayFieldDef, FormDef, FormFieldDef, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, ResolvedValueHelp, ValueHelpInfo, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
26
|
-
//#region ../../node_modules/.pnpm/@atscript+typescript@0.1.
|
|
27
|
+
//#region ../../node_modules/.pnpm/@atscript+typescript@0.1.68_@atscript+core@0.1.68_@emnapi+core@1.10.0_@emnapi+runtime@1_ad48b915638ca027b45e7af17932b0f8/node_modules/@atscript/typescript/dist/utils.d.ts
|
|
27
28
|
interface TError {
|
|
28
29
|
path: string;
|
|
29
30
|
message: string;
|
|
@@ -969,4 +970,4 @@ type AsErrorDismiss = (path: string) => void;
|
|
|
969
970
|
*/
|
|
970
971
|
declare function useAsErrorDismiss(): AsErrorDismiss;
|
|
971
972
|
//#endregion
|
|
972
|
-
export { _default as AsAction, _default$1 as AsArray, _default$2 as AsCheckbox, _default$3 as
|
|
973
|
+
export { _default as AsAction, _default$1 as AsArray, _default$2 as AsCheckbox, _default$3 as AsCollapsible, _default$4 as AsDate, _default$5 as AsDatetime, _default$6 as AsDecimal, type AsErrorDismiss, _default$7 as AsField, _default$8 as AsFieldShell, _default$9 as AsForm, _default$10 as AsInput, _default$11 as AsIterator, type AsNestedSectionsStore, _default$12 as AsNumber, _default$13 as AsObject, _default$14 as AsParagraph, _default$15 as AsRadio, _default$16 as AsRef, _default$17 as AsSelect, _default$18 as AsTime, _default$19 as AsTuple, _default$20 as AsUnion, type ClientFactory, type TAsBaseComponentProps, type TAsChangeType, type TAsCollapsibleProps, type TAsCollapsibleSlots, type TAsComponentEmits, type TAsComponentProps, type TAsTypeComponents, type TAsUnionContext, type TFormFieldCallbacks, type TFormFieldRegistration, type TFormRule, type TFormState, type TFormSubmitValidator, type UseAsArrayReturn, type UseAsDataReturn, type UseAsDateOptions, type UseAsDateReturn, type UseAsDecimalOptions, type UseAsDecimalReturn, type UseAsDualInputOptions, type UseAsDualInputReturn, type UseAsExternalErrorsOptions, type UseAsExternalErrorsReturn, type UseAsFieldOptions, type UseAsFieldReturn, type UseAsFormOptions, type UseAsFormReturn, type UseAsLocaleReturn, type UseAsNumberOptions, type UseAsNumberReturn, type UseAsOptionalAddFlowOptions, type UseAsOptionalAddFlowReturn, type UseAsPathReturn, type UseAsStateReturn, type UseAsTriStateCheckboxOptions, type UseAsTriStateCheckboxReturn, type UseAsTupleReturn, type UseAsTypeMapReturn, type UseAsUnionReturn, type UseAsValueHelpOptions, type UseAsValueHelpReturn, createAsFormDef, createDefaultTypes, focusFirstAfter, focusNewFocusableAfter, formatIndexedLabelParts, getDefaultClientFactory, provideAsLocale, provideAsNestedSectionsStore, resetDefaultClientFactory, setDefaultClientFactory, useAsArray, useAsData, useAsDate, useAsDecimal, useAsDropdown, useAsDualInput, useAsErrorDismiss, useAsExternalErrors, useAsField, useAsFocusFirstAfter, useAsForm, useAsLocale, useAsNestedSectionsStore, useAsNumber, useAsOptionalAddFlow, useAsPath, useAsState, useAsTriStateCheckbox, useAsTuple, useAsTypeMap, useAsUnion, useAsUnionVariant, useAsValueHelp };
|
package/dist/index.mjs
CHANGED
|
@@ -5,27 +5,29 @@ import { i as useAsExternalErrors, n as useAsForm, r as useAsState, t as as_form
|
|
|
5
5
|
import { n as useAsData, r as useAsField, t as as_field_default } from "./as-field-CryuaPPU.mjs";
|
|
6
6
|
import { n as useAsLocale, t as provideAsLocale } from "./use-as-locale-BrFdAgnU.mjs";
|
|
7
7
|
import { t as as_iterator_default } from "./as-iterator-CNMdEj9a.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { n as
|
|
22
|
-
import { t as
|
|
23
|
-
import { n as
|
|
24
|
-
import {
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
8
|
+
import { n as focusNewFocusableAfter, r as useAsFocusFirstAfter, t as focusFirstAfter } from "./focus-after-toggle-Dtl3P6CS.mjs";
|
|
9
|
+
import { t as as_collapsible_default } from "./as-collapsible-DQOxKGGj.mjs";
|
|
10
|
+
import { t as as_field_shell_default } from "./as-field-shell-D0mNXfQZ.mjs";
|
|
11
|
+
import { t as useAsDropdown } from "./use-as-dropdown-B2Shb7wn.mjs";
|
|
12
|
+
import { t as as_input_default } from "./as-input-VOGvI31W.mjs";
|
|
13
|
+
import { t as as_select_default } from "./as-select-BiS6USZW.mjs";
|
|
14
|
+
import { t as as_multi_select_default } from "./as-multi-select-DGipqqGz.mjs";
|
|
15
|
+
import { t as as_radio_default } from "./as-radio-DBW6XzlW.mjs";
|
|
16
|
+
import { n as useAsTriStateCheckbox, t as as_checkbox_default } from "./as-checkbox-dN1K-rJ_.mjs";
|
|
17
|
+
import { t as as_paragraph_default } from "./as-paragraph-GIGj6UgL.mjs";
|
|
18
|
+
import { t as as_action_default } from "./as-action-Dx3RVCnH.mjs";
|
|
19
|
+
import { t as useAsOptionalAddFlow } from "./use-as-optional-add-flow-CQctXLZI.mjs";
|
|
20
|
+
import { t as as_object_default } from "./as-object-mBh0KLy2.mjs";
|
|
21
|
+
import { n as useAsArray, t as as_array_default } from "./as-array-DNJOnZ2j.mjs";
|
|
22
|
+
import { n as useAsTypeMap, r as useAsUnion, t as as_union_default } from "./as-union-B5OFQLJX.mjs";
|
|
23
|
+
import { n as useAsTuple, t as as_tuple_default } from "./as-tuple-NwaomSYF.mjs";
|
|
24
|
+
import { t as as_ref_default } from "./as-ref-D6zp_PIG.mjs";
|
|
25
|
+
import { n as useAsDualInput, r as useAsDecimal, t as as_decimal_default } from "./as-decimal-DtQuZmPA.mjs";
|
|
26
|
+
import { n as useAsNumber, t as as_number_default } from "./as-number-BIhBVXih.mjs";
|
|
27
|
+
import { t as useAsDate } from "./use-as-date-XLE8HBbo.mjs";
|
|
28
|
+
import { t as as_date_default } from "./as-date-CsBBqja_.mjs";
|
|
29
|
+
import { t as as_datetime_default } from "./as-datetime-D_Wbrj9t.mjs";
|
|
30
|
+
import { t as as_time_default } from "./as-time-BN-Vc-iw.mjs";
|
|
29
31
|
import { computed, inject, reactive } from "vue";
|
|
30
32
|
import { createFormData, createFormDef, createFormValueResolver, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
31
33
|
//#region src/composables/create-as-form-def.ts
|
|
@@ -99,4 +101,4 @@ function useAsErrorDismiss() {
|
|
|
99
101
|
return inject(DISMISS_EXTERNAL_AT_KEY, null) ?? NOOP;
|
|
100
102
|
}
|
|
101
103
|
//#endregion
|
|
102
|
-
export { as_action_default as AsAction, as_array_default as AsArray, as_checkbox_default as AsCheckbox, as_date_default as AsDate, as_datetime_default as AsDatetime, as_decimal_default as AsDecimal, as_field_default as AsField, as_field_shell_default as AsFieldShell, as_form_default as AsForm, as_input_default as AsInput, as_iterator_default as AsIterator, as_number_default as AsNumber, as_object_default as AsObject, as_paragraph_default as AsParagraph, as_radio_default as AsRadio, as_ref_default as AsRef, as_select_default as AsSelect, as_time_default as AsTime, as_tuple_default as AsTuple, as_union_default as AsUnion, createAsFormDef, createDefaultTypes, focusFirstAfter, focusNewFocusableAfter, formatIndexedLabelParts, getDefaultClientFactory, provideAsLocale, provideAsNestedSectionsStore, resetDefaultClientFactory, setDefaultClientFactory, useAsArray, useAsData, useAsDate, useAsDecimal, useAsDropdown, useAsDualInput, useAsErrorDismiss, useAsExternalErrors, useAsField, useAsFocusFirstAfter, useAsForm, useAsLocale, useAsNestedSectionsStore, useAsNumber, useAsOptionalAddFlow, useAsPath, useAsState, useAsTriStateCheckbox, useAsTuple, useAsTypeMap, useAsUnion, useAsUnionVariant, useAsValueHelp };
|
|
104
|
+
export { as_action_default as AsAction, as_array_default as AsArray, as_checkbox_default as AsCheckbox, as_collapsible_default as AsCollapsible, as_date_default as AsDate, as_datetime_default as AsDatetime, as_decimal_default as AsDecimal, as_field_default as AsField, as_field_shell_default as AsFieldShell, as_form_default as AsForm, as_input_default as AsInput, as_iterator_default as AsIterator, as_number_default as AsNumber, as_object_default as AsObject, as_paragraph_default as AsParagraph, as_radio_default as AsRadio, as_ref_default as AsRef, as_select_default as AsSelect, as_time_default as AsTime, as_tuple_default as AsTuple, as_union_default as AsUnion, createAsFormDef, createDefaultTypes, focusFirstAfter, focusNewFocusableAfter, formatIndexedLabelParts, getDefaultClientFactory, provideAsLocale, provideAsNestedSectionsStore, resetDefaultClientFactory, setDefaultClientFactory, useAsArray, useAsData, useAsDate, useAsDecimal, useAsDropdown, useAsDualInput, useAsErrorDismiss, useAsExternalErrors, useAsField, useAsFocusFirstAfter, useAsForm, useAsLocale, useAsNestedSectionsStore, useAsNumber, useAsOptionalAddFlow, useAsPath, useAsState, useAsTriStateCheckbox, useAsTuple, useAsTypeMap, useAsUnion, useAsUnionVariant, useAsValueHelp };
|
|
@@ -230,5 +230,30 @@ interface TAsUnionContext {
|
|
|
230
230
|
/** Switch to a different variant (rewrites model data). */
|
|
231
231
|
changeVariant: (index: number) => void;
|
|
232
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* Public props contract for the standalone `AsCollapsible` section component.
|
|
235
|
+
*/
|
|
236
|
+
interface TAsCollapsibleProps {
|
|
237
|
+
title?: string;
|
|
238
|
+
description?: string;
|
|
239
|
+
level: number;
|
|
240
|
+
optional?: boolean;
|
|
241
|
+
optionalEnabled?: boolean;
|
|
242
|
+
path: string;
|
|
243
|
+
error?: string;
|
|
244
|
+
defaultOpen?: boolean;
|
|
245
|
+
hidden?: boolean;
|
|
246
|
+
arrayIndex?: number;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Slots exposed by `AsCollapsible` — all header slots render inside `<summary>`.
|
|
250
|
+
*/
|
|
251
|
+
interface TAsCollapsibleSlots {
|
|
252
|
+
"title-extras"(): unknown;
|
|
253
|
+
badges(): unknown;
|
|
254
|
+
actions(): unknown;
|
|
255
|
+
body(): unknown;
|
|
256
|
+
empty(): unknown;
|
|
257
|
+
}
|
|
233
258
|
//#endregion
|
|
234
|
-
export {
|
|
259
|
+
export { TAsComponentEmits as a, TAsUnionContext as c, TAsCollapsibleSlots as i, TAsChangeType as n, TAsComponentProps as o, TAsCollapsibleProps as r, TAsTypeComponents as s, TAsBaseComponentProps as t };
|
|
@@ -230,5 +230,30 @@ interface TAsUnionContext {
|
|
|
230
230
|
/** Switch to a different variant (rewrites model data). */
|
|
231
231
|
changeVariant: (index: number) => void;
|
|
232
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* Public props contract for the standalone `AsCollapsible` section component.
|
|
235
|
+
*/
|
|
236
|
+
interface TAsCollapsibleProps {
|
|
237
|
+
title?: string;
|
|
238
|
+
description?: string;
|
|
239
|
+
level: number;
|
|
240
|
+
optional?: boolean;
|
|
241
|
+
optionalEnabled?: boolean;
|
|
242
|
+
path: string;
|
|
243
|
+
error?: string;
|
|
244
|
+
defaultOpen?: boolean;
|
|
245
|
+
hidden?: boolean;
|
|
246
|
+
arrayIndex?: number;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Slots exposed by `AsCollapsible` — all header slots render inside `<summary>`.
|
|
250
|
+
*/
|
|
251
|
+
interface TAsCollapsibleSlots {
|
|
252
|
+
"title-extras"(): unknown;
|
|
253
|
+
badges(): unknown;
|
|
254
|
+
actions(): unknown;
|
|
255
|
+
body(): unknown;
|
|
256
|
+
empty(): unknown;
|
|
257
|
+
}
|
|
233
258
|
//#endregion
|
|
234
|
-
export {
|
|
259
|
+
export { TAsComponentEmits as a, TAsUnionContext as c, TAsCollapsibleSlots as i, TAsChangeType as n, TAsComponentProps as o, TAsCollapsibleProps as r, TAsTypeComponents as s, TAsBaseComponentProps as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { onBeforeUnmount, ref, watch } from "vue";
|
|
2
|
+
//#region src/composables/use-as-dropdown.ts
|
|
3
|
+
function useAsDropdown(containerRef) {
|
|
4
|
+
const isOpen = ref(false);
|
|
5
|
+
function toggle() {
|
|
6
|
+
isOpen.value = !isOpen.value;
|
|
7
|
+
}
|
|
8
|
+
function close() {
|
|
9
|
+
isOpen.value = false;
|
|
10
|
+
}
|
|
11
|
+
function select(callback) {
|
|
12
|
+
callback();
|
|
13
|
+
close();
|
|
14
|
+
}
|
|
15
|
+
function onClickOutside(event) {
|
|
16
|
+
if (containerRef.value && !containerRef.value.contains(event.target)) close();
|
|
17
|
+
}
|
|
18
|
+
watch(isOpen, (open) => {
|
|
19
|
+
if (open) document.addEventListener("click", onClickOutside, true);
|
|
20
|
+
else document.removeEventListener("click", onClickOutside, true);
|
|
21
|
+
});
|
|
22
|
+
onBeforeUnmount(() => document.removeEventListener("click", onClickOutside, true));
|
|
23
|
+
return {
|
|
24
|
+
isOpen,
|
|
25
|
+
toggle,
|
|
26
|
+
close,
|
|
27
|
+
select
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { useAsDropdown as t };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
let vue = require("vue");
|
|
2
|
+
//#region src/composables/use-as-dropdown.ts
|
|
3
|
+
function useAsDropdown(containerRef) {
|
|
4
|
+
const isOpen = (0, vue.ref)(false);
|
|
5
|
+
function toggle() {
|
|
6
|
+
isOpen.value = !isOpen.value;
|
|
7
|
+
}
|
|
8
|
+
function close() {
|
|
9
|
+
isOpen.value = false;
|
|
10
|
+
}
|
|
11
|
+
function select(callback) {
|
|
12
|
+
callback();
|
|
13
|
+
close();
|
|
14
|
+
}
|
|
15
|
+
function onClickOutside(event) {
|
|
16
|
+
if (containerRef.value && !containerRef.value.contains(event.target)) close();
|
|
17
|
+
}
|
|
18
|
+
(0, vue.watch)(isOpen, (open) => {
|
|
19
|
+
if (open) document.addEventListener("click", onClickOutside, true);
|
|
20
|
+
else document.removeEventListener("click", onClickOutside, true);
|
|
21
|
+
});
|
|
22
|
+
(0, vue.onBeforeUnmount)(() => document.removeEventListener("click", onClickOutside, true));
|
|
23
|
+
return {
|
|
24
|
+
isOpen,
|
|
25
|
+
toggle,
|
|
26
|
+
close,
|
|
27
|
+
select
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
Object.defineProperty(exports, "useAsDropdown", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function() {
|
|
34
|
+
return useAsDropdown;
|
|
35
|
+
}
|
|
36
|
+
});
|
package/dist/{use-as-optional-add-flow-Dg_2iQ4d.cjs → use-as-optional-add-flow-C85F2VoU.cjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_use_as_nested_sections_store = require("./use-as-nested-sections-store-jdMRxjBE.cjs");
|
|
2
|
-
const
|
|
2
|
+
const require_focus_after_toggle = require("./focus-after-toggle-CWxiPZWi.cjs");
|
|
3
3
|
//#region src/composables/use-as-optional-add-flow.ts
|
|
4
4
|
/**
|
|
5
5
|
* Choreography composable for "enable-optional + add + focus-first-new"
|
|
@@ -35,7 +35,7 @@ function useAsOptionalAddFlow(options) {
|
|
|
35
35
|
return {
|
|
36
36
|
composeAction: wrap,
|
|
37
37
|
runAndFocusNew(scope, action, ticks = 2) {
|
|
38
|
-
return
|
|
38
|
+
return require_focus_after_toggle.focusNewFocusableAfter(wrap(action), scope, ticks);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
package/dist/{use-as-optional-add-flow-DzUScp6V.mjs → use-as-optional-add-flow-CQctXLZI.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as useAsNestedSectionsStore } from "./use-as-nested-sections-store-lhi0z5z1.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { n as focusNewFocusableAfter } from "./focus-after-toggle-Dtl3P6CS.mjs";
|
|
3
3
|
//#region src/composables/use-as-optional-add-flow.ts
|
|
4
4
|
/**
|
|
5
5
|
* Choreography composable for "enable-optional + add + focus-first-new"
|