@atscript/vue-form 0.1.204 → 0.1.205
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/{_editing-hold-Bj0kZjCr.cjs → _editing-hold-D2uqwszu.cjs} +3 -3
- package/dist/{_editing-hold-C6emgUTM.mjs → _editing-hold-D_X5gXHh.mjs} +3 -3
- package/dist/_shape-7OdPsQao.cjs +56 -0
- package/dist/_shape-A661ZxnJ.mjs +39 -0
- package/dist/{as-action-B69WsGIB.mjs → as-action-kBskX68v.mjs} +8 -0
- package/dist/{as-action-B3NIgGTV.cjs → as-action-rT6WXLph.cjs} +8 -0
- 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-Cz7I0w6k.d.mts → as-action.vue-B7RrjGhF.d.cts} +1 -1
- package/dist/{as-action.vue-CzG-4mHk.d.cts → as-action.vue-Dtez-EWu.d.mts} +1 -1
- package/dist/{as-array-CWuMR-2P.cjs → as-array-C5lqDDLN.cjs} +14 -6
- package/dist/{as-array-dttDB3Rg.mjs → as-array-Tt_4kl5r.mjs} +14 -6
- package/dist/{as-array-clear-btn-CRfCFJ73.mjs → as-array-clear-btn-DGUQY_7_.mjs} +1 -1
- package/dist/{as-array-clear-btn-BX3HSWel.cjs → as-array-clear-btn-Dk88CYmS.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-BspRfMHl.d.cts → as-array.vue-Ca_xan2n.d.mts} +1 -1
- package/dist/{as-array.vue-DTrR21eK.d.mts → as-array.vue-Dp_zd3ZM.d.cts} +1 -1
- package/dist/{as-checkbox-BS0fjlQC.mjs → as-checkbox-CCX9E19U.mjs} +14 -4
- package/dist/{as-checkbox-DyA1ncSp.cjs → as-checkbox-D7NywgIa.cjs} +14 -4
- 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-CcifJWeG.d.mts → as-checkbox.vue-BClSBx1g.d.mts} +1 -1
- package/dist/{as-checkbox.vue-CliEtXzy.d.cts → as-checkbox.vue-Bf3qqcKu.d.cts} +1 -1
- package/dist/{as-collapsible-B0im1dAa.cjs → as-collapsible-CTOLQ3IK.cjs} +1 -1
- package/dist/{as-collapsible-B4Vb0XIR.mjs → as-collapsible-CvBoWb0D.mjs} +1 -1
- package/dist/as-collapsible.cjs +1 -1
- package/dist/as-collapsible.d.cts +1 -1
- package/dist/as-collapsible.d.mts +1 -1
- package/dist/as-collapsible.mjs +1 -1
- package/dist/{as-collapsible.vue-DmfY2xZi.d.mts → as-collapsible.vue-BXdpM7_K.d.cts} +1 -1
- package/dist/{as-collapsible.vue-c4kJaqr8.d.cts → as-collapsible.vue-CUhn1EVX.d.mts} +1 -1
- package/dist/{as-date-Wk0mReg2.mjs → as-date-3haOaiAG.mjs} +12 -4
- package/dist/{as-date-bI28vJja.cjs → as-date-Ubw_1-Ai.cjs} +12 -4
- 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-DlZIPl1M.d.cts → as-date.vue-B5NWZ5ON.d.cts} +1 -1
- package/dist/{as-date.vue-HBqgKpbV.d.mts → as-date.vue-CJQOrfj3.d.mts} +1 -1
- package/dist/{as-datetime-Ca-23Nrq.cjs → as-datetime--7bl-yGW.cjs} +12 -4
- package/dist/{as-datetime-F2PdaCh1.mjs → as-datetime-BTekpasP.mjs} +12 -4
- 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-BOewNSCq.d.mts → as-datetime.vue-BvmFdGxe.d.cts} +1 -1
- package/dist/{as-datetime.vue-CTkKY2Cc.d.cts → as-datetime.vue-CzMz_RUy.d.mts} +1 -1
- package/dist/{as-decimal-4zD1qPmT.mjs → as-decimal-7CIE6UKX.mjs} +21 -4
- package/dist/{as-decimal-CYIBnc-k.cjs → as-decimal-DWPRXsYY.cjs} +21 -4
- 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-C6SpdtjD.d.cts → as-decimal.vue-DdVqHtMT.d.cts} +1 -1
- package/dist/{as-decimal.vue-DmjoBpWm.d.mts → as-decimal.vue-DyDt1ds0.d.mts} +1 -1
- package/dist/{as-field-BdFUGqKv.cjs → as-field-DAClnYiP.cjs} +13 -5
- package/dist/{as-field-U_EtrpNj.mjs → as-field-jh5AWref.mjs} +14 -6
- package/dist/{as-field-shell-ha1iaJnK.cjs → as-field-shell-Cu8jxZYj.cjs} +17 -7
- package/dist/{as-field-shell-DQ30etIq.mjs → as-field-shell-DPzfvPo0.mjs} +17 -7
- 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-CVDPz5RX.d.cts → as-field-shell.vue-CPy2uA-b.d.mts} +1 -1
- package/dist/{as-field-shell.vue-Dj34leHW.d.mts → as-field-shell.vue-D-8AWUGW.d.cts} +1 -1
- package/dist/as-field.cjs +1 -1
- package/dist/as-field.mjs +1 -1
- package/dist/{as-form-WhZH4ozr.mjs → as-form-B8d1MVTB.mjs} +35 -7
- package/dist/{as-form-Dfrq97Tv.cjs → as-form-r5pkXt5U.cjs} +34 -6
- package/dist/as-form.cjs +1 -1
- package/dist/as-form.d.cts +1 -1
- package/dist/as-form.d.mts +1 -1
- package/dist/as-form.mjs +1 -1
- package/dist/{as-form.vue-D97-WcwS.d.cts → as-form.vue-BSY6AhPz.d.mts} +28 -10
- package/dist/{as-form.vue-B4UKtDpf.d.mts → as-form.vue-bt-v037w.d.cts} +28 -10
- package/dist/{as-input-Cr2zcWgm.cjs → as-input-BTbu0eF-.cjs} +10 -2
- package/dist/{as-input-control-Wygcey6h.mjs → as-input-control-1igViaqC.mjs} +12 -5
- package/dist/{as-input-control-D8xoJfr7.cjs → as-input-control-uJpmle-G.cjs} +12 -5
- package/dist/{as-input-Du26WjkP.mjs → as-input-tKw19JnF.mjs} +10 -2
- 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-CTeXkWxQ.d.mts → as-input.vue-CuC3DYeR.d.cts} +1 -1
- package/dist/{as-input.vue-D-cM4wBe.d.cts → as-input.vue-DawR7pA-.d.mts} +1 -1
- package/dist/{as-iterator-BvL2pCKj.mjs → as-iterator-B1o83rKV.mjs} +2 -2
- package/dist/{as-iterator-BgYp1qj4.cjs → as-iterator-q_w9HBHt.cjs} +2 -2
- package/dist/as-iterator.cjs +1 -1
- package/dist/as-iterator.mjs +1 -1
- package/dist/{as-multi-select-CNRqlh1o.cjs → as-multi-select-DPQ9_Qf1.cjs} +9 -1
- package/dist/{as-multi-select-C9yGmtWR.mjs → as-multi-select-DhOlsgdq.mjs} +9 -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-CvZHtvck.d.cts → as-multi-select.vue-CXC47PBk.d.cts} +1 -1
- package/dist/{as-multi-select.vue-DVSSEboS.d.mts → as-multi-select.vue-CbVBJq8N.d.mts} +1 -1
- package/dist/{as-number-DEkR-Oud.cjs → as-number-CJmX5rb1.cjs} +11 -4
- package/dist/{as-number-CsoSsIJ8.mjs → as-number-CVjNUjiS.mjs} +11 -4
- 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-7XSQA1oV.d.cts → as-number.vue-BdNvLZca.d.mts} +1 -1
- package/dist/{as-number.vue-CEcDCyhs.d.mts → as-number.vue-hJuiJJ70.d.cts} +1 -1
- package/dist/{as-object-DIEi_L2T.mjs → as-object-DY5IEc94.mjs} +12 -4
- package/dist/{as-object-DZHwEfd8.cjs → as-object-Dq5CPM3i.cjs} +12 -4
- 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-eoznJfgx.d.mts → as-object.vue-DHFGLetx.d.cts} +1 -1
- package/dist/{as-object.vue-l5nTngPG.d.cts → as-object.vue-DVK_BKOL.d.mts} +1 -1
- package/dist/{as-paragraph-wAHRsd_e.cjs → as-paragraph-CaytophZ.cjs} +8 -0
- package/dist/{as-paragraph-B49pXlhP.mjs → as-paragraph-ChOqmJe2.mjs} +8 -0
- 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-BRByQ1K4.d.cts → as-paragraph.vue-6mBonWFb.d.mts} +1 -1
- package/dist/{as-paragraph.vue-CwNr9kox.d.mts → as-paragraph.vue-B_aPmK-B.d.cts} +1 -1
- package/dist/{as-radio-Bn14VyaN.mjs → as-radio-BW9K8h6V.mjs} +9 -1
- package/dist/{as-radio-CvIgHH9G.cjs → as-radio-C6PnEdjD.cjs} +9 -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-CmOKjYGn.d.cts → as-radio.vue-BFxeAHfl.d.mts} +1 -1
- package/dist/{as-radio.vue-rTZDD-Um.d.mts → as-radio.vue-B_tDoVl1.d.cts} +1 -1
- package/dist/{as-ref-DhWEKsYJ.mjs → as-ref-CXtYo-UZ.mjs} +14 -7
- package/dist/{as-ref-BNESufCy.cjs → as-ref-DTsWT_zU.cjs} +14 -7
- 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-C1Qg56oh.d.cts → as-ref.vue-CqFDKTYk.d.mts} +1 -1
- package/dist/{as-ref.vue-CRUzXTRQ.d.mts → as-ref.vue-gCsaCDQx.d.cts} +1 -1
- package/dist/{as-select-Csr2229O.mjs → as-select-CbZNupL6.mjs} +22 -9
- package/dist/{as-select-COxfMWYf.cjs → as-select-DOvo86Oc.cjs} +21 -8
- 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-DlQ93_AO.d.cts → as-select.vue-BN3zvSGs.d.mts} +1 -1
- package/dist/{as-select.vue-DnfV-12W.d.mts → as-select.vue-Bh7ppdg9.d.cts} +1 -1
- package/dist/{as-time-YMnd789f.mjs → as-time-BDpnkjy8.mjs} +11 -4
- package/dist/{as-time-e40w14c7.cjs → as-time-CfnhY3Pf.cjs} +11 -4
- 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-DAuXlrGs.d.cts → as-time.vue-C-ruJhmX.d.mts} +1 -1
- package/dist/{as-time.vue-PRLKRy84.d.mts → as-time.vue-C_0z-HOS.d.cts} +1 -1
- package/dist/{as-tuple-BjMI93bC.mjs → as-tuple--wL64cCu.mjs} +13 -5
- package/dist/{as-tuple-Bb-sQh6T.cjs → as-tuple-C5_dcvsH.cjs} +13 -5
- 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-Chqi1IO6.d.mts → as-tuple.vue-BDiSN-np.d.cts} +1 -1
- package/dist/{as-tuple.vue-DEL4sOwq.d.cts → as-tuple.vue-CGWun6Iw.d.mts} +1 -1
- package/dist/{as-union-D6JPYyYf.cjs → as-union-D3NoKN1H.cjs} +14 -3
- package/dist/{as-union-D7FONvHe.mjs → as-union-DAnpGBeK.mjs} +15 -4
- 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-BCdmqdYk.d.mts → as-union.vue-BpcREl7L.d.mts} +1 -1
- package/dist/{as-union.vue-CKGLn4ni.d.cts → as-union.vue-DuUeLY1X.d.cts} +1 -1
- package/dist/{as-variant-picker-VixxxnXA.mjs → as-variant-picker-CihlFH-c.mjs} +1 -1
- package/dist/{as-variant-picker-13N8TxuF.cjs → as-variant-picker-CpCxKFtT.cjs} +1 -1
- package/dist/index.cjs +56 -26
- package/dist/index.d.cts +22 -22
- package/dist/index.d.mts +22 -22
- package/dist/index.mjs +28 -28
- package/dist/{types-ChQuWLmd.d.mts → types-271BUWyf.d.mts} +29 -3
- package/dist/{types-BmF8iDTN.d.cts → types-DbjorSCn.d.cts} +29 -3
- package/dist/{use-as-date-CAmqx1O7.cjs → use-as-date-BigwPKEs.cjs} +13 -3
- package/dist/{use-as-date-CpXG9klN.mjs → use-as-date-iSu5NS79.mjs} +13 -3
- package/dist/{use-as-model-texts-BNO2SFQF.cjs → use-as-model-texts-C3V56UDt.cjs} +1 -1
- package/dist/{use-as-model-texts-BTFyHNqS.mjs → use-as-model-texts-Cpx5bHJQ.mjs} +1 -1
- package/dist/{use-as-value-help-LDhcfxFi.cjs → use-as-value-help-CQMUkP1r.cjs} +4 -2
- package/dist/{use-as-value-help-LQWMkS5m.mjs → use-as-value-help-DE8KCbqo.mjs} +4 -2
- package/dist/{use-form-context-p2PucQHk.mjs → use-form-context-0FtVVTvf.mjs} +2 -1
- package/dist/{use-form-context-d0IcFey0.cjs → use-form-context-U6vg1uqK.cjs} +7 -0
- package/package.json +10 -10
- package/dist/_shape-BDO-1MzF.cjs +0 -87
- package/dist/_shape-DhwW2SvD.mjs +0 -58
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
let vue = require("vue");
|
|
2
2
|
//#region src/composables/_editing-hold.ts
|
|
3
3
|
/**
|
|
4
|
-
* Holding an editor in place while the user is in it. An emptied input of
|
|
5
|
-
* optional field commits `undefined`, and the chrome around it swaps
|
|
6
|
-
* field for its placeholder (AsFieldShell's "Not set", AsUnion's "Add") — so
|
|
4
|
+
* Holding an editor in place while the user is in it. An emptied input of a
|
|
5
|
+
* technical optional field commits `undefined`, and the chrome around it swaps
|
|
6
|
+
* an unset field for its placeholder (AsFieldShell's "Not set", AsUnion's "Add") — so
|
|
7
7
|
* while focus is in the input the editor must stay, and the placeholder shows
|
|
8
8
|
* once focus leaves.
|
|
9
9
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { inject, onBeforeUnmount, provide, ref } from "vue";
|
|
2
2
|
//#region src/composables/_editing-hold.ts
|
|
3
3
|
/**
|
|
4
|
-
* Holding an editor in place while the user is in it. An emptied input of
|
|
5
|
-
* optional field commits `undefined`, and the chrome around it swaps
|
|
6
|
-
* field for its placeholder (AsFieldShell's "Not set", AsUnion's "Add") — so
|
|
4
|
+
* Holding an editor in place while the user is in it. An emptied input of a
|
|
5
|
+
* technical optional field commits `undefined`, and the chrome around it swaps
|
|
6
|
+
* an unset field for its placeholder (AsFieldShell's "Not set", AsUnion's "Add") — so
|
|
7
7
|
* while focus is in the input the editor must stay, and the placeholder shows
|
|
8
8
|
* once focus leaves.
|
|
9
9
|
*
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/composables/_shape.ts
|
|
2
|
+
/**
|
|
3
|
+
* Whether an input shows the optional tri-state — the "Not set" placeholder and
|
|
4
|
+
* the unset × (since 0.1.205): an optional field in the `"technical"` mode. An
|
|
5
|
+
* optional field without `optionalMode` is `"business"`: a plain input.
|
|
6
|
+
*/
|
|
7
|
+
function isTriState(props) {
|
|
8
|
+
return !!props.optional && props.optionalMode === "technical";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Match the input shape on commit: `null`/`undefined` model → write the
|
|
12
|
+
* canonical string (first-ever commit); pre-existing string → string;
|
|
13
|
+
* pre-existing number → number (caller opted into float; the precision
|
|
14
|
+
* loss is on them).
|
|
15
|
+
*
|
|
16
|
+
* Shared by `useAsDecimal` and `useAsNumber`. Not exported from the
|
|
17
|
+
* package barrel — internal helper, no public surface.
|
|
18
|
+
*/
|
|
19
|
+
function preserveShape(original, normalized) {
|
|
20
|
+
if (original === null || original === void 0) return normalized;
|
|
21
|
+
if (typeof original === "string") return normalized;
|
|
22
|
+
return Number(normalized);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The one loaded row holding `value` in `field` — `undefined` when none does or
|
|
26
|
+
* when several do (a dictionary whose key has more members than the committed
|
|
27
|
+
* field): the value is then committed without a row, so no fill guesses one.
|
|
28
|
+
*/
|
|
29
|
+
function soleRow(rows, field, value) {
|
|
30
|
+
let found;
|
|
31
|
+
for (const row of rows) {
|
|
32
|
+
if (row[field] !== value) continue;
|
|
33
|
+
if (found) return void 0;
|
|
34
|
+
found = row;
|
|
35
|
+
}
|
|
36
|
+
return found;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
Object.defineProperty(exports, "isTriState", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function() {
|
|
42
|
+
return isTriState;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, "preserveShape", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function() {
|
|
48
|
+
return preserveShape;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "soleRow", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function() {
|
|
54
|
+
return soleRow;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/composables/_shape.ts
|
|
2
|
+
/**
|
|
3
|
+
* Whether an input shows the optional tri-state — the "Not set" placeholder and
|
|
4
|
+
* the unset × (since 0.1.205): an optional field in the `"technical"` mode. An
|
|
5
|
+
* optional field without `optionalMode` is `"business"`: a plain input.
|
|
6
|
+
*/
|
|
7
|
+
function isTriState(props) {
|
|
8
|
+
return !!props.optional && props.optionalMode === "technical";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Match the input shape on commit: `null`/`undefined` model → write the
|
|
12
|
+
* canonical string (first-ever commit); pre-existing string → string;
|
|
13
|
+
* pre-existing number → number (caller opted into float; the precision
|
|
14
|
+
* loss is on them).
|
|
15
|
+
*
|
|
16
|
+
* Shared by `useAsDecimal` and `useAsNumber`. Not exported from the
|
|
17
|
+
* package barrel — internal helper, no public surface.
|
|
18
|
+
*/
|
|
19
|
+
function preserveShape(original, normalized) {
|
|
20
|
+
if (original === null || original === void 0) return normalized;
|
|
21
|
+
if (typeof original === "string") return normalized;
|
|
22
|
+
return Number(normalized);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The one loaded row holding `value` in `field` — `undefined` when none does or
|
|
26
|
+
* when several do (a dictionary whose key has more members than the committed
|
|
27
|
+
* field): the value is then committed without a row, so no fill guesses one.
|
|
28
|
+
*/
|
|
29
|
+
function soleRow(rows, field, value) {
|
|
30
|
+
let found;
|
|
31
|
+
for (const row of rows) {
|
|
32
|
+
if (row[field] !== value) continue;
|
|
33
|
+
if (found) return void 0;
|
|
34
|
+
found = row;
|
|
35
|
+
}
|
|
36
|
+
return found;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { preserveShape as n, soleRow as r, isTriState as t };
|
|
@@ -66,6 +66,14 @@ var as_action_default = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
type: Function,
|
|
67
67
|
required: false
|
|
68
68
|
},
|
|
69
|
+
optionalMode: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: false
|
|
72
|
+
},
|
|
73
|
+
emptiedValue: {
|
|
74
|
+
type: null,
|
|
75
|
+
required: false
|
|
76
|
+
},
|
|
69
77
|
required: {
|
|
70
78
|
type: Boolean,
|
|
71
79
|
required: false,
|
|
@@ -66,6 +66,14 @@ var as_action_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
66
66
|
type: Function,
|
|
67
67
|
required: false
|
|
68
68
|
},
|
|
69
|
+
optionalMode: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: false
|
|
72
|
+
},
|
|
73
|
+
emptiedValue: {
|
|
74
|
+
type: null,
|
|
75
|
+
required: false
|
|
76
|
+
},
|
|
69
77
|
required: {
|
|
70
78
|
type: Boolean,
|
|
71
79
|
required: false,
|
package/dist/as-action.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_action = require("./as-action-
|
|
1
|
+
const require_as_action = require("./as-action-rT6WXLph.cjs");
|
|
2
2
|
module.exports = require_as_action.as_action_default;
|
package/dist/as-action.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-action.vue-
|
|
1
|
+
import { t as _default } from "./as-action.vue-B7RrjGhF.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-action.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-action.vue-
|
|
1
|
+
import { t as _default } from "./as-action.vue-Dtez-EWu.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-action.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_action_default } from "./as-action-
|
|
1
|
+
import { t as as_action_default } from "./as-action-kBskX68v.mjs";
|
|
2
2
|
export { as_action_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_use_form_context = require("./use-form-context-
|
|
1
|
+
const require_use_form_context = require("./use-form-context-U6vg1uqK.cjs");
|
|
2
2
|
const require_use_as_locale = require("./use-as-locale-eo7FyfaZ.cjs");
|
|
3
|
-
const require_as_field = require("./as-field-
|
|
4
|
-
const require_use_as_model_texts = require("./use-as-model-texts-
|
|
5
|
-
const require_as_collapsible = require("./as-collapsible-
|
|
6
|
-
const require_as_variant_picker = require("./as-variant-picker-
|
|
3
|
+
const require_as_field = require("./as-field-DAClnYiP.cjs");
|
|
4
|
+
const require_use_as_model_texts = require("./use-as-model-texts-C3V56UDt.cjs");
|
|
5
|
+
const require_as_collapsible = require("./as-collapsible-CTOLQ3IK.cjs");
|
|
6
|
+
const require_as_variant_picker = require("./as-variant-picker-CpCxKFtT.cjs");
|
|
7
7
|
const require_variant_label = require("./variant-label-_GLezszT.cjs");
|
|
8
8
|
const require_use_as_optional_add_flow = require("./use-as-optional-add-flow-DMDd4Ms0.cjs");
|
|
9
|
-
const require_as_array_clear_btn = require("./as-array-clear-btn-
|
|
9
|
+
const require_as_array_clear_btn = require("./as-array-clear-btn-Dk88CYmS.cjs");
|
|
10
10
|
let vue = require("vue");
|
|
11
11
|
let _atscript_ui = require("@atscript/ui");
|
|
12
12
|
//#region src/composables/use-as-array.ts
|
|
@@ -209,6 +209,14 @@ var as_array_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
209
209
|
type: Function,
|
|
210
210
|
required: false
|
|
211
211
|
},
|
|
212
|
+
optionalMode: {
|
|
213
|
+
type: String,
|
|
214
|
+
required: false
|
|
215
|
+
},
|
|
216
|
+
emptiedValue: {
|
|
217
|
+
type: null,
|
|
218
|
+
required: false
|
|
219
|
+
},
|
|
212
220
|
required: {
|
|
213
221
|
type: Boolean,
|
|
214
222
|
required: false,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as LOCK_KEY, a as CHANGE_HANDLER_KEY, n as useAsUnionVariant, r as useFormContext } from "./use-form-context-0FtVVTvf.mjs";
|
|
2
2
|
import { o as useAsTexts } from "./use-as-locale-CznDr-7i.mjs";
|
|
3
|
-
import { t as as_field_default } from "./as-field-
|
|
4
|
-
import { t as useAsModelTexts } from "./use-as-model-texts-
|
|
5
|
-
import { t as as_collapsible_default } from "./as-collapsible-
|
|
6
|
-
import { t as as_variant_picker_default } from "./as-variant-picker-
|
|
3
|
+
import { t as as_field_default } from "./as-field-jh5AWref.mjs";
|
|
4
|
+
import { t as useAsModelTexts } from "./use-as-model-texts-Cpx5bHJQ.mjs";
|
|
5
|
+
import { t as as_collapsible_default } from "./as-collapsible-CvBoWb0D.mjs";
|
|
6
|
+
import { t as as_variant_picker_default } from "./as-variant-picker-CihlFH-c.mjs";
|
|
7
7
|
import { n as useAsDropdown, t as variantLabel } from "./variant-label-CmzTQC2B.mjs";
|
|
8
8
|
import { t as useAsOptionalAddFlow } from "./use-as-optional-add-flow-C1Ol6KO2.mjs";
|
|
9
|
-
import { t as as_array_clear_btn_default } from "./as-array-clear-btn-
|
|
9
|
+
import { t as as_array_clear_btn_default } from "./as-array-clear-btn-DGUQY_7_.mjs";
|
|
10
10
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, normalizeClass, openBlock, reactive, ref, renderList, toDisplayString, unref, useTemplateRef, vShow, watch, withCtx, withDirectives } from "vue";
|
|
11
11
|
import { getFieldMeta, isUnionField } from "@atscript/ui";
|
|
12
12
|
//#region src/composables/use-as-array.ts
|
|
@@ -209,6 +209,14 @@ var as_array_default = /* @__PURE__ */ defineComponent({
|
|
|
209
209
|
type: Function,
|
|
210
210
|
required: false
|
|
211
211
|
},
|
|
212
|
+
optionalMode: {
|
|
213
|
+
type: String,
|
|
214
|
+
required: false
|
|
215
|
+
},
|
|
216
|
+
emptiedValue: {
|
|
217
|
+
type: null,
|
|
218
|
+
required: false
|
|
219
|
+
},
|
|
212
220
|
required: {
|
|
213
221
|
type: Boolean,
|
|
214
222
|
required: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as useAsTexts } from "./use-as-locale-CznDr-7i.mjs";
|
|
2
|
-
import { n as as_optional_clear_default } from "./as-variant-picker-
|
|
2
|
+
import { n as as_optional_clear_default } from "./as-variant-picker-CihlFH-c.mjs";
|
|
3
3
|
import { createBlock, createElementBlock, defineComponent, openBlock, toDisplayString, unref, withModifiers } from "vue";
|
|
4
4
|
//#region src/components/internal/as-array-clear-btn.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
const _hoisted_1 = ["disabled", "aria-label"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_use_as_locale = require("./use-as-locale-eo7FyfaZ.cjs");
|
|
2
|
-
const require_as_variant_picker = require("./as-variant-picker-
|
|
2
|
+
const require_as_variant_picker = require("./as-variant-picker-CpCxKFtT.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
//#region src/components/internal/as-array-clear-btn.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
const _hoisted_1 = ["disabled", "aria-label"];
|
package/dist/as-array.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_array = require("./as-array-
|
|
1
|
+
const require_as_array = require("./as-array-C5lqDDLN.cjs");
|
|
2
2
|
module.exports = require_as_array.as_array_default;
|
package/dist/as-array.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-array.vue-
|
|
1
|
+
import { t as _default } from "./as-array.vue-Dp_zd3ZM.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-array.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-array.vue-
|
|
1
|
+
import { t as _default } from "./as-array.vue-Ca_xan2n.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-array.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_array_default } from "./as-array-
|
|
1
|
+
import { t as as_array_default } from "./as-array-Tt_4kl5r.mjs";
|
|
2
2
|
export { as_array_default as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { o as useAsTexts } from "./use-as-locale-CznDr-7i.mjs";
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
2
|
+
import { t as isTriState } from "./_shape-A661ZxnJ.mjs";
|
|
3
|
+
import { t as as_field_shell_default } from "./as-field-shell-DPzfvPo0.mjs";
|
|
4
|
+
import { n as as_optional_clear_default } from "./as-variant-picker-CihlFH-c.mjs";
|
|
4
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, toDisplayString, unref, watchEffect, withCtx } from "vue";
|
|
5
6
|
import { optKey, optLabel } from "@atscript/ui";
|
|
6
7
|
//#region src/composables/use-as-tri-state-checkbox.ts
|
|
@@ -114,6 +115,14 @@ var as_checkbox_default = /* @__PURE__ */ defineComponent({
|
|
|
114
115
|
type: Function,
|
|
115
116
|
required: false
|
|
116
117
|
},
|
|
118
|
+
optionalMode: {
|
|
119
|
+
type: String,
|
|
120
|
+
required: false
|
|
121
|
+
},
|
|
122
|
+
emptiedValue: {
|
|
123
|
+
type: null,
|
|
124
|
+
required: false
|
|
125
|
+
},
|
|
117
126
|
required: {
|
|
118
127
|
type: Boolean,
|
|
119
128
|
required: false,
|
|
@@ -255,8 +264,9 @@ var as_checkbox_default = /* @__PURE__ */ defineComponent({
|
|
|
255
264
|
},
|
|
256
265
|
setup(__props) {
|
|
257
266
|
const props = __props;
|
|
267
|
+
const triState = computed(() => isTriState(props));
|
|
258
268
|
const { checked, indeterminate, inputRef, onChange } = useAsTriStateCheckbox({
|
|
259
|
-
modelValue: () => props.model.value,
|
|
269
|
+
modelValue: () => props.optional && !triState.value ? props.model.value ?? false : props.model.value,
|
|
260
270
|
onCommit: (v) => {
|
|
261
271
|
props.model.value = v;
|
|
262
272
|
}
|
|
@@ -302,7 +312,7 @@ var as_checkbox_default = /* @__PURE__ */ defineComponent({
|
|
|
302
312
|
"aria-describedby": __props.ariaDescribedBy
|
|
303
313
|
}, null, 40, _hoisted_5), createTextVNode(" " + toDisplayString(__props.label), 1)], 10, _hoisted_4)),
|
|
304
314
|
createCommentVNode(" Treat both undefined and null as 'unset' — DB-roundtripped null otherwise renders as \"set\". "),
|
|
305
|
-
|
|
315
|
+
triState.value && !__props.readonly && !__props.disabled && __props.model.value != null ? (openBlock(), createBlock(as_optional_clear_default, {
|
|
306
316
|
key: 2,
|
|
307
317
|
onClear: _cache[2] || (_cache[2] = ($event) => __props.onToggleOptional?.(false))
|
|
308
318
|
})) : createCommentVNode("v-if", true)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const require_use_as_locale = require("./use-as-locale-eo7FyfaZ.cjs");
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require__shape = require("./_shape-7OdPsQao.cjs");
|
|
3
|
+
const require_as_field_shell = require("./as-field-shell-Cu8jxZYj.cjs");
|
|
4
|
+
const require_as_variant_picker = require("./as-variant-picker-CpCxKFtT.cjs");
|
|
4
5
|
let vue = require("vue");
|
|
5
6
|
let _atscript_ui = require("@atscript/ui");
|
|
6
7
|
//#region src/composables/use-as-tri-state-checkbox.ts
|
|
@@ -114,6 +115,14 @@ var as_checkbox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
114
115
|
type: Function,
|
|
115
116
|
required: false
|
|
116
117
|
},
|
|
118
|
+
optionalMode: {
|
|
119
|
+
type: String,
|
|
120
|
+
required: false
|
|
121
|
+
},
|
|
122
|
+
emptiedValue: {
|
|
123
|
+
type: null,
|
|
124
|
+
required: false
|
|
125
|
+
},
|
|
117
126
|
required: {
|
|
118
127
|
type: Boolean,
|
|
119
128
|
required: false,
|
|
@@ -255,8 +264,9 @@ var as_checkbox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
255
264
|
},
|
|
256
265
|
setup(__props) {
|
|
257
266
|
const props = __props;
|
|
267
|
+
const triState = (0, vue.computed)(() => require__shape.isTriState(props));
|
|
258
268
|
const { checked, indeterminate, inputRef, onChange } = useAsTriStateCheckbox({
|
|
259
|
-
modelValue: () => props.model.value,
|
|
269
|
+
modelValue: () => props.optional && !triState.value ? props.model.value ?? false : props.model.value,
|
|
260
270
|
onCommit: (v) => {
|
|
261
271
|
props.model.value = v;
|
|
262
272
|
}
|
|
@@ -302,7 +312,7 @@ var as_checkbox_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
302
312
|
"aria-describedby": __props.ariaDescribedBy
|
|
303
313
|
}, null, 40, _hoisted_5), (0, vue.createTextVNode)(" " + (0, vue.toDisplayString)(__props.label), 1)], 10, _hoisted_4)),
|
|
304
314
|
(0, vue.createCommentVNode)(" Treat both undefined and null as 'unset' — DB-roundtripped null otherwise renders as \"set\". "),
|
|
305
|
-
|
|
315
|
+
triState.value && !__props.readonly && !__props.disabled && __props.model.value != null ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_as_variant_picker.as_optional_clear_default, {
|
|
306
316
|
key: 2,
|
|
307
317
|
onClear: _cache[2] || (_cache[2] = ($event) => __props.onToggleOptional?.(false))
|
|
308
318
|
})) : (0, vue.createCommentVNode)("v-if", true)
|
package/dist/as-checkbox.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_checkbox = require("./as-checkbox-
|
|
1
|
+
const require_as_checkbox = require("./as-checkbox-D7NywgIa.cjs");
|
|
2
2
|
module.exports = require_as_checkbox.as_checkbox_default;
|
package/dist/as-checkbox.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-checkbox.vue-
|
|
1
|
+
import { t as _default } from "./as-checkbox.vue-Bf3qqcKu.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-checkbox.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-checkbox.vue-
|
|
1
|
+
import { t as _default } from "./as-checkbox.vue-BClSBx1g.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-checkbox.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_checkbox_default } from "./as-checkbox-
|
|
1
|
+
import { t as as_checkbox_default } from "./as-checkbox-CCX9E19U.mjs";
|
|
2
2
|
export { as_checkbox_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_focus_after_toggle = require("./focus-after-toggle-BhZGqrUK.cjs");
|
|
2
|
-
const require_use_form_context = require("./use-form-context-
|
|
2
|
+
const require_use_form_context = require("./use-form-context-U6vg1uqK.cjs");
|
|
3
3
|
const require_use_as_nested_sections_store = require("./use-as-nested-sections-store-ApstV9NL.cjs");
|
|
4
4
|
const require_use_as_locale = require("./use-as-locale-eo7FyfaZ.cjs");
|
|
5
5
|
let vue = require("vue");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as useAsFocusFirstAfter } from "./focus-after-toggle-DAwak7c1.mjs";
|
|
2
|
-
import { t as formatIndexedLabelParts } from "./use-form-context-
|
|
2
|
+
import { t as formatIndexedLabelParts } from "./use-form-context-0FtVVTvf.mjs";
|
|
3
3
|
import { i as useAsNestedSectionsStore, t as DESCENDANT_ERROR_COUNTS_KEY } from "./use-as-nested-sections-store-CkrMJbnN.mjs";
|
|
4
4
|
import { o as useAsTexts } from "./use-as-locale-CznDr-7i.mjs";
|
|
5
5
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, inject, normalizeClass, onBeforeUnmount, onMounted, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, vShow, withCtx, withDirectives } from "vue";
|
package/dist/as-collapsible.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_collapsible = require("./as-collapsible-
|
|
1
|
+
const require_as_collapsible = require("./as-collapsible-CTOLQ3IK.cjs");
|
|
2
2
|
module.exports = require_as_collapsible.as_collapsible_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-collapsible.vue-
|
|
1
|
+
import { t as _default } from "./as-collapsible.vue-BXdpM7_K.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-collapsible.vue-
|
|
1
|
+
import { t as _default } from "./as-collapsible.vue-CUhn1EVX.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-collapsible.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_collapsible_default } from "./as-collapsible-
|
|
1
|
+
import { t as as_collapsible_default } from "./as-collapsible-CvBoWb0D.mjs";
|
|
2
2
|
export { as_collapsible_default as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as as_field_shell_default } from "./as-field-shell-DQ30etIq.mjs";
|
|
1
|
+
import { t as as_field_shell_default } from "./as-field-shell-DPzfvPo0.mjs";
|
|
3
2
|
import { t as as_adornment_shell_default } from "./as-adornment-shell-CBaksXGT.mjs";
|
|
4
|
-
import { n as as_date_control_default, t as useAsDate } from "./use-as-date-
|
|
3
|
+
import { n as as_date_control_default, t as useAsDate } from "./use-as-date-iSu5NS79.mjs";
|
|
5
4
|
import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, unref, withCtx } from "vue";
|
|
6
5
|
//#endregion
|
|
7
6
|
//#region src/components/defaults/as-date.vue
|
|
@@ -65,6 +64,14 @@ var as_date_default = /* @__PURE__ */ defineComponent({
|
|
|
65
64
|
type: Function,
|
|
66
65
|
required: false
|
|
67
66
|
},
|
|
67
|
+
optionalMode: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: false
|
|
70
|
+
},
|
|
71
|
+
emptiedValue: {
|
|
72
|
+
type: null,
|
|
73
|
+
required: false
|
|
74
|
+
},
|
|
68
75
|
required: {
|
|
69
76
|
type: Boolean,
|
|
70
77
|
required: false,
|
|
@@ -209,8 +216,9 @@ var as_date_default = /* @__PURE__ */ defineComponent({
|
|
|
209
216
|
const { inputType, displayValue, setFromInput } = useAsDate({
|
|
210
217
|
modelValue: () => props.model.value,
|
|
211
218
|
kind: "date",
|
|
219
|
+
prop: props.field?.prop,
|
|
212
220
|
onCommit: (v) => {
|
|
213
|
-
props.model.value =
|
|
221
|
+
props.model.value = v === null ? props.emptiedValue : v;
|
|
214
222
|
}
|
|
215
223
|
});
|
|
216
224
|
const shellTitle = computed(() => props.currencyCode ?? props.unitCode ?? void 0);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_as_field_shell = require("./as-field-shell-ha1iaJnK.cjs");
|
|
1
|
+
const require_as_field_shell = require("./as-field-shell-Cu8jxZYj.cjs");
|
|
3
2
|
const require_as_adornment_shell = require("./as-adornment-shell-CmS9BOFm.cjs");
|
|
4
|
-
const require_use_as_date = require("./use-as-date-
|
|
3
|
+
const require_use_as_date = require("./use-as-date-BigwPKEs.cjs");
|
|
5
4
|
let vue = require("vue");
|
|
6
5
|
//#endregion
|
|
7
6
|
//#region src/components/defaults/as-date.vue
|
|
@@ -65,6 +64,14 @@ var as_date_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
65
64
|
type: Function,
|
|
66
65
|
required: false
|
|
67
66
|
},
|
|
67
|
+
optionalMode: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: false
|
|
70
|
+
},
|
|
71
|
+
emptiedValue: {
|
|
72
|
+
type: null,
|
|
73
|
+
required: false
|
|
74
|
+
},
|
|
68
75
|
required: {
|
|
69
76
|
type: Boolean,
|
|
70
77
|
required: false,
|
|
@@ -209,8 +216,9 @@ var as_date_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
209
216
|
const { inputType, displayValue, setFromInput } = require_use_as_date.useAsDate({
|
|
210
217
|
modelValue: () => props.model.value,
|
|
211
218
|
kind: "date",
|
|
219
|
+
prop: props.field?.prop,
|
|
212
220
|
onCommit: (v) => {
|
|
213
|
-
props.model.value =
|
|
221
|
+
props.model.value = v === null ? props.emptiedValue : v;
|
|
214
222
|
}
|
|
215
223
|
});
|
|
216
224
|
const shellTitle = (0, vue.computed)(() => props.currencyCode ?? props.unitCode ?? void 0);
|
package/dist/as-date.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_date = require("./as-date-
|
|
1
|
+
const require_as_date = require("./as-date-Ubw_1-Ai.cjs");
|
|
2
2
|
module.exports = require_as_date.as_date_default;
|
package/dist/as-date.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-date.vue-
|
|
1
|
+
import { t as _default } from "./as-date.vue-B5NWZ5ON.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-date.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-date.vue-
|
|
1
|
+
import { t as _default } from "./as-date.vue-CJQOrfj3.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-date.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_date_default } from "./as-date-
|
|
1
|
+
import { t as as_date_default } from "./as-date-3haOaiAG.mjs";
|
|
2
2
|
export { as_date_default as default };
|