@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "type": "module",
5
5
  "description": "Looma declarative components, responsive layout primitives, a complete editor, and supported Vue adapters.",
6
6
  "license": "MIT",
@@ -3364,38 +3364,40 @@ var Combobox = defineComponent2({
3364
3364
  element.value = toHTMLElement(value);
3365
3365
  },
3366
3366
  class: attrs.class,
3367
- "onOptions-change": (event) => {
3368
- rows.value = event.detail;
3369
- emit("optionsChange", event.detail);
3367
+ onOptionsChange: (detail) => {
3368
+ rows.value = detail;
3369
+ emit("optionsChange", detail);
3370
3370
  },
3371
- "onQuery-change": (event) => {
3372
- currentQuery.value = event.detail.query;
3373
- emit("update:query", event.detail.query);
3374
- emit("queryChange", event.detail);
3371
+ onQueryChange: (detail) => {
3372
+ currentQuery.value = detail.query;
3373
+ emit("update:query", detail.query);
3374
+ emit("queryChange", detail);
3375
3375
  },
3376
- "onValue-change": (event) => {
3377
- emit("update:modelValue", props.multiple ? event.detail : event.detail.value);
3378
- emit("valueChange", event.detail);
3376
+ onValueChange: (detail) => {
3377
+ emit("update:modelValue", props.multiple ? detail : detail.value);
3378
+ emit("valueChange", detail);
3379
3379
  },
3380
- "onFree-entry": (event) => emit("freeEntry", event.detail),
3381
- "onCreate-entry": (event) => emit("createEntry", event.detail),
3382
- "onDependency-invalidate": (event) => emit("dependencyInvalidate", event.detail),
3383
- "onValidation-change": (event) => emit("validationChange", event.detail),
3384
- "onAdd-item": (event) => emit("addItem", event.detail),
3385
- "onRemove-item": (event) => emit("removeItem", event.detail),
3386
- "onCreate-item": (event) => emit("createItem", event.detail)
3387
- }, [
3388
- h2("label", { slot: "fallback" }, [props.label, h2("input", {
3389
- value: props.query ?? props.defaultQuery ?? "",
3390
- disabled: props.disabled,
3391
- readonly: props.readOnly,
3392
- required: props.required
3393
- })]),
3394
- ...slots.option ? rows.value.map((option) => h2("div", { slot: `option-${option.id}`, key: option.id }, slots.option({ option }))) : [],
3395
- ...props.multiple && slots.item ? items().map((item) => h2("span", { slot: `item-${item.id}`, key: item.id }, slots.item({ item }))) : [],
3396
- ...slots.create ? [h2("span", { slot: "create" }, slots.create({ query: currentQuery.value }))] : [],
3397
- ...["start", "footer", "loading", "empty", "error"].flatMap((name) => slots[name] ? [h2("div", { slot: name }, slots[name]({}))] : [])
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
 
@@ -10,7 +10,7 @@ import {
10
10
  UiEditorToolbar_default,
11
11
  createAdapterComponent,
12
12
  toHTMLElement
13
- } from "../chunk-ICIUKKZA.js";
13
+ } from "../chunk-P7BZ2KJZ.js";
14
14
 
15
15
  // src/editor/index.ts
16
16
  import "@threadlabs/looma/editor";
package/vue/index.js CHANGED
@@ -43,7 +43,7 @@ import {
43
43
  Tree,
44
44
  TreeItem,
45
45
  VUE_ADAPTER_NOTE
46
- } from "./chunk-ICIUKKZA.js";
46
+ } from "./chunk-P7BZ2KJZ.js";
47
47
  export {
48
48
  ADAPTER_COMPONENT_TAG_MAP,
49
49
  AffordanceScope,