@threadlabs/looma 0.2.14 → 0.2.15
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/package.json
CHANGED
|
@@ -3364,38 +3364,40 @@ var Combobox = defineComponent2({
|
|
|
3364
3364
|
element.value = toHTMLElement(value);
|
|
3365
3365
|
},
|
|
3366
3366
|
class: attrs.class,
|
|
3367
|
-
|
|
3368
|
-
rows.value =
|
|
3369
|
-
emit("optionsChange",
|
|
3367
|
+
onOptionsChange: (detail) => {
|
|
3368
|
+
rows.value = detail;
|
|
3369
|
+
emit("optionsChange", detail);
|
|
3370
3370
|
},
|
|
3371
|
-
|
|
3372
|
-
currentQuery.value =
|
|
3373
|
-
emit("update:query",
|
|
3374
|
-
emit("queryChange",
|
|
3371
|
+
onQueryChange: (detail) => {
|
|
3372
|
+
currentQuery.value = detail.query;
|
|
3373
|
+
emit("update:query", detail.query);
|
|
3374
|
+
emit("queryChange", detail);
|
|
3375
3375
|
},
|
|
3376
|
-
|
|
3377
|
-
emit("update:modelValue", props.multiple ?
|
|
3378
|
-
emit("valueChange",
|
|
3376
|
+
onValueChange: (detail) => {
|
|
3377
|
+
emit("update:modelValue", props.multiple ? detail : detail.value);
|
|
3378
|
+
emit("valueChange", detail);
|
|
3379
3379
|
},
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
},
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3380
|
+
onFreeEntry: (detail) => emit("freeEntry", detail),
|
|
3381
|
+
onCreateEntry: (detail) => emit("createEntry", detail),
|
|
3382
|
+
onDependencyInvalidate: (detail) => emit("dependencyInvalidate", detail),
|
|
3383
|
+
onValidationChange: (detail) => emit("validationChange", detail),
|
|
3384
|
+
onAddItem: (detail) => emit("addItem", detail),
|
|
3385
|
+
onRemoveItem: (detail) => emit("removeItem", detail),
|
|
3386
|
+
onCreateItem: (detail) => emit("createItem", detail)
|
|
3387
|
+
}, {
|
|
3388
|
+
default: () => [
|
|
3389
|
+
h2("label", { slot: "fallback" }, [props.label, h2("input", {
|
|
3390
|
+
value: props.query ?? props.defaultQuery ?? "",
|
|
3391
|
+
disabled: props.disabled,
|
|
3392
|
+
readonly: props.readOnly,
|
|
3393
|
+
required: props.required
|
|
3394
|
+
})]),
|
|
3395
|
+
...slots.option ? rows.value.map((option) => h2("div", { slot: `option-${option.id}`, key: option.id }, slots.option({ option }))) : [],
|
|
3396
|
+
...props.multiple && slots.item ? items().map((item) => h2("span", { slot: `item-${item.id}`, key: item.id }, slots.item({ item }))) : [],
|
|
3397
|
+
...slots.create ? [h2("span", { slot: "create" }, slots.create({ query: currentQuery.value }))] : [],
|
|
3398
|
+
...["start", "footer", "loading", "empty", "error"].flatMap((name) => slots[name] ? [h2("div", { slot: name }, slots[name]({}))] : [])
|
|
3399
|
+
]
|
|
3400
|
+
});
|
|
3399
3401
|
}
|
|
3400
3402
|
});
|
|
3401
3403
|
|
package/vue/editor/index.js
CHANGED