@atscript/vue-form 0.1.190 → 0.1.191
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.
|
@@ -3,7 +3,7 @@ import { o as useAsTexts } from "./use-as-locale-CznDr-7i.mjs";
|
|
|
3
3
|
import { a as soleRow, r as emptiedKey } from "./_shape-DhwW2SvD.mjs";
|
|
4
4
|
import { t as as_field_shell_default } from "./as-field-shell-CSxqm12l.mjs";
|
|
5
5
|
import { t as as_input_control_default } from "./as-input-control-Wygcey6h.mjs";
|
|
6
|
-
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
|
|
6
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, openBlock, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, watch, withCtx } from "vue";
|
|
7
7
|
import { ComboboxAnchor, ComboboxCancel, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxRoot, ComboboxViewport } from "reka-ui";
|
|
8
8
|
//#region src/components/defaults/as-ref.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
const _hoisted_1 = {
|
|
@@ -20,6 +20,11 @@ const _hoisted_5 = {
|
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "as-ref-item-description"
|
|
22
22
|
};
|
|
23
|
+
const _hoisted_6 = [
|
|
24
|
+
"name",
|
|
25
|
+
"value",
|
|
26
|
+
"disabled"
|
|
27
|
+
];
|
|
23
28
|
//#endregion
|
|
24
29
|
//#region src/components/defaults/as-ref.vue
|
|
25
30
|
var as_ref_default = /* @__PURE__ */ defineComponent({
|
|
@@ -242,56 +247,74 @@ var as_ref_default = /* @__PURE__ */ defineComponent({
|
|
|
242
247
|
const results = vh?.results;
|
|
243
248
|
const status = vh?.status;
|
|
244
249
|
const searching = vh?.searching;
|
|
245
|
-
|
|
246
|
-
function
|
|
247
|
-
pickedRow =
|
|
248
|
-
|
|
249
|
-
function onPick(value) {
|
|
250
|
-
const picked = pickedRow;
|
|
251
|
-
pickedRow = void 0;
|
|
252
|
-
const row = info && (picked?.[info.targetField] === value ? picked : soleRow(results?.value ?? [], info.targetField, value));
|
|
253
|
-
if (row) vh?.selectItem(row);
|
|
254
|
-
else props.model.value = value;
|
|
250
|
+
const pickedRow = shallowRef();
|
|
251
|
+
function pickRow(row) {
|
|
252
|
+
pickedRow.value = row;
|
|
253
|
+
vh?.selectItem(row);
|
|
255
254
|
}
|
|
256
255
|
function rowKey(item) {
|
|
257
256
|
const keys = resolved?.value?.primaryKeys ?? [];
|
|
258
257
|
return keys.length > 0 ? keys.map((k) => String(item[k])).join("\0") : String(item[info.targetField]);
|
|
259
258
|
}
|
|
259
|
+
let shownKey;
|
|
260
|
+
let shownFor;
|
|
261
|
+
const searchedThisOpen = ref(false);
|
|
262
|
+
const selectedKey = computed(() => {
|
|
263
|
+
if (!info) return void 0;
|
|
264
|
+
const value = props.model.value;
|
|
265
|
+
const picked = pickedRow.value;
|
|
266
|
+
if (picked && Object.is(picked[info.targetField], value)) {
|
|
267
|
+
shownFor = value;
|
|
268
|
+
return shownKey = rowKey(picked);
|
|
269
|
+
}
|
|
270
|
+
if (searchedThisOpen.value && Object.is(shownFor, value)) return shownKey;
|
|
271
|
+
shownFor = value;
|
|
272
|
+
const row = soleRow(results?.value ?? [], info.targetField, value);
|
|
273
|
+
return shownKey = row ? rowKey(row) : void 0;
|
|
274
|
+
});
|
|
275
|
+
const keyColumns = computed(() => {
|
|
276
|
+
const keys = resolved?.value?.primaryKeys ?? [];
|
|
277
|
+
return (info?.columns ?? []).filter((c) => c !== info?.targetField && keys.includes(c));
|
|
278
|
+
});
|
|
279
|
+
function itemKey(item) {
|
|
280
|
+
return [item[info.targetField], ...keyColumns.value.map((c) => item[c])].filter((v) => v !== void 0 && v !== null && v !== "").join(" · ");
|
|
281
|
+
}
|
|
260
282
|
const inputText = ref("");
|
|
261
283
|
const focused = ref(false);
|
|
262
284
|
const showsLabel = () => props.valueLabel !== void 0 && (props.readonly || !focused.value);
|
|
263
|
-
function displayValue(
|
|
285
|
+
function displayValue() {
|
|
264
286
|
if (showsLabel()) return props.valueLabel;
|
|
287
|
+
const v = props.model.value;
|
|
265
288
|
return v && typeof v !== "object" ? String(v) : "";
|
|
266
289
|
}
|
|
267
290
|
watch(() => props.valueLabel, () => {
|
|
268
|
-
if (!focused.value && !open.value) inputText.value = displayValue(
|
|
291
|
+
if (!focused.value && !open.value) inputText.value = displayValue();
|
|
269
292
|
});
|
|
270
293
|
const inputRef = ref(null);
|
|
271
294
|
let quietFocus = false;
|
|
272
295
|
function onInputFocus() {
|
|
273
296
|
focused.value = true;
|
|
274
|
-
if (props.valueLabel !== void 0 && !props.readonly) inputText.value = displayValue(
|
|
297
|
+
if (props.valueLabel !== void 0 && !props.readonly) inputText.value = displayValue();
|
|
275
298
|
if (!quietFocus) listOpen.value = true;
|
|
276
299
|
}
|
|
277
300
|
function onInputBlur() {
|
|
278
301
|
focused.value = false;
|
|
279
|
-
if (!open.value) inputText.value = displayValue(
|
|
302
|
+
if (!open.value) inputText.value = displayValue();
|
|
280
303
|
props.onBlur();
|
|
281
304
|
}
|
|
282
|
-
watch(() => props.model.value, (
|
|
283
|
-
if (!open.value) inputText.value = displayValue(
|
|
305
|
+
watch(() => props.model.value, () => {
|
|
306
|
+
if (!open.value) inputText.value = displayValue();
|
|
284
307
|
});
|
|
285
308
|
const clientFactory = inject(CLIENT_FACTORY_KEY, null) ?? void 0;
|
|
286
309
|
function slotProps() {
|
|
287
310
|
return {
|
|
288
311
|
searchText: vh?.searchText.value ?? "",
|
|
289
|
-
selectItem:
|
|
312
|
+
selectItem: pickRow,
|
|
290
313
|
scope: vh.scope.value,
|
|
291
314
|
clientFactory,
|
|
292
315
|
close: () => {
|
|
293
316
|
listOpen.value = false;
|
|
294
|
-
inputText.value = displayValue(
|
|
317
|
+
inputText.value = displayValue();
|
|
295
318
|
},
|
|
296
319
|
focus: () => {
|
|
297
320
|
quietFocus = true;
|
|
@@ -301,10 +324,14 @@ var as_ref_default = /* @__PURE__ */ defineComponent({
|
|
|
301
324
|
};
|
|
302
325
|
}
|
|
303
326
|
function onSearchInput(e) {
|
|
304
|
-
if (vh)
|
|
327
|
+
if (!vh) return;
|
|
328
|
+
vh.searchText.value = e.target.value;
|
|
329
|
+
searchedThisOpen.value = true;
|
|
305
330
|
}
|
|
306
331
|
watch(open, (isOpen) => {
|
|
307
|
-
if (
|
|
332
|
+
if (isOpen) return;
|
|
333
|
+
searchedThisOpen.value = false;
|
|
334
|
+
if (vh) vh.searchText.value = "";
|
|
308
335
|
});
|
|
309
336
|
const emptyValue = () => emptiedKey(props.field?.prop.type, props.optional);
|
|
310
337
|
const showClear = computed(() => {
|
|
@@ -325,13 +352,11 @@ var as_ref_default = /* @__PURE__ */ defineComponent({
|
|
|
325
352
|
}), null, 16, ["input-id"])) : unref(status) === "loading" || !unref(resolved) ? (openBlock(), createElementBlock("div", _hoisted_1, [..._cache[2] || (_cache[2] = [createElementVNode("span", {
|
|
326
353
|
class: "as-ref-spinner",
|
|
327
354
|
"aria-hidden": "true"
|
|
328
|
-
}, null, -1)])])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode(" reka-ui Combobox for FK ref fields — value is the
|
|
329
|
-
"model-value":
|
|
355
|
+
}, null, -1)])])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode(" reka-ui Combobox for FK ref fields — its value is the selected row's key; a pick\n commits the row's value through `pickRow`. "), createVNode(unref(ComboboxRoot), {
|
|
356
|
+
"model-value": selectedKey.value,
|
|
330
357
|
open: listOpen.value,
|
|
331
358
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => listOpen.value = $event),
|
|
332
|
-
"onUpdate:modelValue": onPick,
|
|
333
359
|
disabled: __props.disabled,
|
|
334
|
-
name: __props.name,
|
|
335
360
|
"ignore-filter": "",
|
|
336
361
|
class: "as-ref-root"
|
|
337
362
|
}, {
|
|
@@ -390,11 +415,11 @@ var as_ref_default = /* @__PURE__ */ defineComponent({
|
|
|
390
415
|
}, null, -1)])])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(results), (item) => {
|
|
391
416
|
return openBlock(), createBlock(unref(ComboboxItem), {
|
|
392
417
|
key: rowKey(item),
|
|
393
|
-
value: item
|
|
418
|
+
value: rowKey(item),
|
|
394
419
|
class: "as-ref-item",
|
|
395
|
-
onSelect: ($event) =>
|
|
420
|
+
onSelect: ($event) => pickRow(item)
|
|
396
421
|
}, {
|
|
397
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_3, toDisplayString(item
|
|
422
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_3, toDisplayString(itemKey(item)), 1), createElementVNode("span", _hoisted_4, [createTextVNode(toDisplayString(item[unref(resolved).labelField]) + " ", 1), unref(resolved).descrField && item[unref(resolved).descrField] ? (openBlock(), createElementBlock("span", _hoisted_5, " — " + toDisplayString(item[unref(resolved).descrField]), 1)) : createCommentVNode("v-if", true)])]),
|
|
398
423
|
_: 2
|
|
399
424
|
}, 1032, ["value", "onSelect"]);
|
|
400
425
|
}), 128)), createVNode(unref(ComboboxEmpty), { class: "as-ref-status" }, {
|
|
@@ -404,14 +429,21 @@ var as_ref_default = /* @__PURE__ */ defineComponent({
|
|
|
404
429
|
_: 1
|
|
405
430
|
}), renderSlot(_ctx.$slots, "list-end", normalizeProps(guardReactiveProps(slotProps())))]),
|
|
406
431
|
_: 3
|
|
407
|
-
})
|
|
432
|
+
}),
|
|
433
|
+
createCommentVNode(" The field's value for a native form, as every other control carries it (the\n combobox's own value is the selected row's key). After the visible input. "),
|
|
434
|
+
__props.name ? (openBlock(), createElementBlock("input", {
|
|
435
|
+
key: 0,
|
|
436
|
+
type: "hidden",
|
|
437
|
+
name: __props.name,
|
|
438
|
+
value: __props.model.value ?? "",
|
|
439
|
+
disabled: __props.disabled
|
|
440
|
+
}, null, 8, _hoisted_6)) : createCommentVNode("v-if", true)
|
|
408
441
|
]),
|
|
409
442
|
_: 2
|
|
410
443
|
}, 1032, [
|
|
411
444
|
"model-value",
|
|
412
445
|
"open",
|
|
413
|
-
"disabled"
|
|
414
|
-
"name"
|
|
446
|
+
"disabled"
|
|
415
447
|
])], 2112))]),
|
|
416
448
|
_: 3
|
|
417
449
|
}, 16);
|
|
@@ -20,6 +20,11 @@ const _hoisted_5 = {
|
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "as-ref-item-description"
|
|
22
22
|
};
|
|
23
|
+
const _hoisted_6 = [
|
|
24
|
+
"name",
|
|
25
|
+
"value",
|
|
26
|
+
"disabled"
|
|
27
|
+
];
|
|
23
28
|
//#endregion
|
|
24
29
|
//#region src/components/defaults/as-ref.vue
|
|
25
30
|
var as_ref_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -242,56 +247,74 @@ var as_ref_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
242
247
|
const results = vh?.results;
|
|
243
248
|
const status = vh?.status;
|
|
244
249
|
const searching = vh?.searching;
|
|
245
|
-
|
|
246
|
-
function
|
|
247
|
-
pickedRow =
|
|
248
|
-
|
|
249
|
-
function onPick(value) {
|
|
250
|
-
const picked = pickedRow;
|
|
251
|
-
pickedRow = void 0;
|
|
252
|
-
const row = info && (picked?.[info.targetField] === value ? picked : require__shape.soleRow(results?.value ?? [], info.targetField, value));
|
|
253
|
-
if (row) vh?.selectItem(row);
|
|
254
|
-
else props.model.value = value;
|
|
250
|
+
const pickedRow = (0, vue.shallowRef)();
|
|
251
|
+
function pickRow(row) {
|
|
252
|
+
pickedRow.value = row;
|
|
253
|
+
vh?.selectItem(row);
|
|
255
254
|
}
|
|
256
255
|
function rowKey(item) {
|
|
257
256
|
const keys = resolved?.value?.primaryKeys ?? [];
|
|
258
257
|
return keys.length > 0 ? keys.map((k) => String(item[k])).join("\0") : String(item[info.targetField]);
|
|
259
258
|
}
|
|
259
|
+
let shownKey;
|
|
260
|
+
let shownFor;
|
|
261
|
+
const searchedThisOpen = (0, vue.ref)(false);
|
|
262
|
+
const selectedKey = (0, vue.computed)(() => {
|
|
263
|
+
if (!info) return void 0;
|
|
264
|
+
const value = props.model.value;
|
|
265
|
+
const picked = pickedRow.value;
|
|
266
|
+
if (picked && Object.is(picked[info.targetField], value)) {
|
|
267
|
+
shownFor = value;
|
|
268
|
+
return shownKey = rowKey(picked);
|
|
269
|
+
}
|
|
270
|
+
if (searchedThisOpen.value && Object.is(shownFor, value)) return shownKey;
|
|
271
|
+
shownFor = value;
|
|
272
|
+
const row = require__shape.soleRow(results?.value ?? [], info.targetField, value);
|
|
273
|
+
return shownKey = row ? rowKey(row) : void 0;
|
|
274
|
+
});
|
|
275
|
+
const keyColumns = (0, vue.computed)(() => {
|
|
276
|
+
const keys = resolved?.value?.primaryKeys ?? [];
|
|
277
|
+
return (info?.columns ?? []).filter((c) => c !== info?.targetField && keys.includes(c));
|
|
278
|
+
});
|
|
279
|
+
function itemKey(item) {
|
|
280
|
+
return [item[info.targetField], ...keyColumns.value.map((c) => item[c])].filter((v) => v !== void 0 && v !== null && v !== "").join(" · ");
|
|
281
|
+
}
|
|
260
282
|
const inputText = (0, vue.ref)("");
|
|
261
283
|
const focused = (0, vue.ref)(false);
|
|
262
284
|
const showsLabel = () => props.valueLabel !== void 0 && (props.readonly || !focused.value);
|
|
263
|
-
function displayValue(
|
|
285
|
+
function displayValue() {
|
|
264
286
|
if (showsLabel()) return props.valueLabel;
|
|
287
|
+
const v = props.model.value;
|
|
265
288
|
return v && typeof v !== "object" ? String(v) : "";
|
|
266
289
|
}
|
|
267
290
|
(0, vue.watch)(() => props.valueLabel, () => {
|
|
268
|
-
if (!focused.value && !open.value) inputText.value = displayValue(
|
|
291
|
+
if (!focused.value && !open.value) inputText.value = displayValue();
|
|
269
292
|
});
|
|
270
293
|
const inputRef = (0, vue.ref)(null);
|
|
271
294
|
let quietFocus = false;
|
|
272
295
|
function onInputFocus() {
|
|
273
296
|
focused.value = true;
|
|
274
|
-
if (props.valueLabel !== void 0 && !props.readonly) inputText.value = displayValue(
|
|
297
|
+
if (props.valueLabel !== void 0 && !props.readonly) inputText.value = displayValue();
|
|
275
298
|
if (!quietFocus) listOpen.value = true;
|
|
276
299
|
}
|
|
277
300
|
function onInputBlur() {
|
|
278
301
|
focused.value = false;
|
|
279
|
-
if (!open.value) inputText.value = displayValue(
|
|
302
|
+
if (!open.value) inputText.value = displayValue();
|
|
280
303
|
props.onBlur();
|
|
281
304
|
}
|
|
282
|
-
(0, vue.watch)(() => props.model.value, (
|
|
283
|
-
if (!open.value) inputText.value = displayValue(
|
|
305
|
+
(0, vue.watch)(() => props.model.value, () => {
|
|
306
|
+
if (!open.value) inputText.value = displayValue();
|
|
284
307
|
});
|
|
285
308
|
const clientFactory = (0, vue.inject)(require_use_as_value_help.CLIENT_FACTORY_KEY, null) ?? void 0;
|
|
286
309
|
function slotProps() {
|
|
287
310
|
return {
|
|
288
311
|
searchText: vh?.searchText.value ?? "",
|
|
289
|
-
selectItem:
|
|
312
|
+
selectItem: pickRow,
|
|
290
313
|
scope: vh.scope.value,
|
|
291
314
|
clientFactory,
|
|
292
315
|
close: () => {
|
|
293
316
|
listOpen.value = false;
|
|
294
|
-
inputText.value = displayValue(
|
|
317
|
+
inputText.value = displayValue();
|
|
295
318
|
},
|
|
296
319
|
focus: () => {
|
|
297
320
|
quietFocus = true;
|
|
@@ -301,10 +324,14 @@ var as_ref_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
301
324
|
};
|
|
302
325
|
}
|
|
303
326
|
function onSearchInput(e) {
|
|
304
|
-
if (vh)
|
|
327
|
+
if (!vh) return;
|
|
328
|
+
vh.searchText.value = e.target.value;
|
|
329
|
+
searchedThisOpen.value = true;
|
|
305
330
|
}
|
|
306
331
|
(0, vue.watch)(open, (isOpen) => {
|
|
307
|
-
if (
|
|
332
|
+
if (isOpen) return;
|
|
333
|
+
searchedThisOpen.value = false;
|
|
334
|
+
if (vh) vh.searchText.value = "";
|
|
308
335
|
});
|
|
309
336
|
const emptyValue = () => require__shape.emptiedKey(props.field?.prop.type, props.optional);
|
|
310
337
|
const showClear = (0, vue.computed)(() => {
|
|
@@ -325,13 +352,11 @@ var as_ref_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
325
352
|
}), null, 16, ["input-id"])) : (0, vue.unref)(status) === "loading" || !(0, vue.unref)(resolved) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1, [..._cache[2] || (_cache[2] = [(0, vue.createElementVNode)("span", {
|
|
326
353
|
class: "as-ref-spinner",
|
|
327
354
|
"aria-hidden": "true"
|
|
328
|
-
}, null, -1)])])) : ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 2 }, [(0, vue.createCommentVNode)(" reka-ui Combobox for FK ref fields — value is the
|
|
329
|
-
"model-value":
|
|
355
|
+
}, null, -1)])])) : ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 2 }, [(0, vue.createCommentVNode)(" reka-ui Combobox for FK ref fields — its value is the selected row's key; a pick\n commits the row's value through `pickRow`. "), (0, vue.createVNode)((0, vue.unref)(reka_ui.ComboboxRoot), {
|
|
356
|
+
"model-value": selectedKey.value,
|
|
330
357
|
open: listOpen.value,
|
|
331
358
|
"onUpdate:open": _cache[1] || (_cache[1] = ($event) => listOpen.value = $event),
|
|
332
|
-
"onUpdate:modelValue": onPick,
|
|
333
359
|
disabled: __props.disabled,
|
|
334
|
-
name: __props.name,
|
|
335
360
|
"ignore-filter": "",
|
|
336
361
|
class: "as-ref-root"
|
|
337
362
|
}, {
|
|
@@ -390,11 +415,11 @@ var as_ref_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
390
415
|
}, null, -1)])])) : ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)((0, vue.unref)(results), (item) => {
|
|
391
416
|
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(reka_ui.ComboboxItem), {
|
|
392
417
|
key: rowKey(item),
|
|
393
|
-
value: item
|
|
418
|
+
value: rowKey(item),
|
|
394
419
|
class: "as-ref-item",
|
|
395
|
-
onSelect: ($event) =>
|
|
420
|
+
onSelect: ($event) => pickRow(item)
|
|
396
421
|
}, {
|
|
397
|
-
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("span", _hoisted_3, (0, vue.toDisplayString)(item
|
|
422
|
+
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("span", _hoisted_3, (0, vue.toDisplayString)(itemKey(item)), 1), (0, vue.createElementVNode)("span", _hoisted_4, [(0, vue.createTextVNode)((0, vue.toDisplayString)(item[(0, vue.unref)(resolved).labelField]) + " ", 1), (0, vue.unref)(resolved).descrField && item[(0, vue.unref)(resolved).descrField] ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_5, " — " + (0, vue.toDisplayString)(item[(0, vue.unref)(resolved).descrField]), 1)) : (0, vue.createCommentVNode)("v-if", true)])]),
|
|
398
423
|
_: 2
|
|
399
424
|
}, 1032, ["value", "onSelect"]);
|
|
400
425
|
}), 128)), (0, vue.createVNode)((0, vue.unref)(reka_ui.ComboboxEmpty), { class: "as-ref-status" }, {
|
|
@@ -404,14 +429,21 @@ var as_ref_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
404
429
|
_: 1
|
|
405
430
|
}), (0, vue.renderSlot)(_ctx.$slots, "list-end", (0, vue.normalizeProps)((0, vue.guardReactiveProps)(slotProps())))]),
|
|
406
431
|
_: 3
|
|
407
|
-
})
|
|
432
|
+
}),
|
|
433
|
+
(0, vue.createCommentVNode)(" The field's value for a native form, as every other control carries it (the\n combobox's own value is the selected row's key). After the visible input. "),
|
|
434
|
+
__props.name ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("input", {
|
|
435
|
+
key: 0,
|
|
436
|
+
type: "hidden",
|
|
437
|
+
name: __props.name,
|
|
438
|
+
value: __props.model.value ?? "",
|
|
439
|
+
disabled: __props.disabled
|
|
440
|
+
}, null, 8, _hoisted_6)) : (0, vue.createCommentVNode)("v-if", true)
|
|
408
441
|
]),
|
|
409
442
|
_: 2
|
|
410
443
|
}, 1032, [
|
|
411
444
|
"model-value",
|
|
412
445
|
"open",
|
|
413
|
-
"disabled"
|
|
414
|
-
"name"
|
|
446
|
+
"disabled"
|
|
415
447
|
])], 2112))]),
|
|
416
448
|
_: 3
|
|
417
449
|
}, 16);
|
package/dist/as-ref.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_ref = require("./as-ref-
|
|
1
|
+
const require_as_ref = require("./as-ref-DctAXQ2K.cjs");
|
|
2
2
|
module.exports = require_as_ref.as_ref_default;
|
package/dist/as-ref.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_ref_default } from "./as-ref-
|
|
1
|
+
import { t as as_ref_default } from "./as-ref-BWcpK0lg.mjs";
|
|
2
2
|
export { as_ref_default as default };
|
package/dist/index.cjs
CHANGED
|
@@ -23,7 +23,7 @@ const require_as_object = require("./as-object-DIj1yGSZ.cjs");
|
|
|
23
23
|
const require_as_array = require("./as-array-BJYlPXad.cjs");
|
|
24
24
|
const require_as_union = require("./as-union-CvSnU1YB.cjs");
|
|
25
25
|
const require_as_tuple = require("./as-tuple--4iQOc9p.cjs");
|
|
26
|
-
const require_as_ref = require("./as-ref-
|
|
26
|
+
const require_as_ref = require("./as-ref-DctAXQ2K.cjs");
|
|
27
27
|
const require_as_decimal = require("./as-decimal-BuvchyCs.cjs");
|
|
28
28
|
const require_as_number = require("./as-number-BwzyMxl4.cjs");
|
|
29
29
|
const require_use_as_date = require("./use-as-date-CAmqx1O7.cjs");
|
package/dist/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ import { t as as_object_default } from "./as-object-JuruOEiL.mjs";
|
|
|
22
22
|
import { n as useAsArray, t as as_array_default } from "./as-array-B0wekrwk.mjs";
|
|
23
23
|
import { n as useAsTypeMap, r as useAsUnion, t as as_union_default } from "./as-union-Cy7zefJl.mjs";
|
|
24
24
|
import { n as useAsTuple, t as as_tuple_default } from "./as-tuple-DwP6bvW7.mjs";
|
|
25
|
-
import { t as as_ref_default } from "./as-ref-
|
|
25
|
+
import { t as as_ref_default } from "./as-ref-BWcpK0lg.mjs";
|
|
26
26
|
import { n as useAsDualInput, r as useAsDecimal, t as as_decimal_default } from "./as-decimal-CseZXB7F.mjs";
|
|
27
27
|
import { n as useAsNumber, t as as_number_default } from "./as-number-mQHbJDoh.mjs";
|
|
28
28
|
import { t as useAsDate } from "./use-as-date-CpXG9klN.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/vue-form",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.191",
|
|
4
4
|
"description": "Type-driven form rendering for Atscript with Vue 3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
"access": "public"
|
|
166
166
|
},
|
|
167
167
|
"dependencies": {
|
|
168
|
-
"@atscript/ui": "^0.1.
|
|
169
|
-
"@atscript/ui-fns": "^0.1.
|
|
168
|
+
"@atscript/ui": "^0.1.191",
|
|
169
|
+
"@atscript/ui-fns": "^0.1.191"
|
|
170
170
|
},
|
|
171
171
|
"devDependencies": {
|
|
172
172
|
"@atscript/core": "^0.2.23",
|