@lovince/ui-vue 0.1.0 → 0.1.1

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/index.js CHANGED
@@ -112,7 +112,7 @@ var rn = (e) => e.flatMap((e) => e.type === t && Array.isArray(e.children) ? rn(
112
112
  for (let [r, i] of Object.entries(e)) {
113
113
  if (i === !1 || i === void 0 || r === "type" && t !== void 0 && t !== "button") continue;
114
114
  let e = /^on[A-Z]/.test(r) && typeof i == "function";
115
- n[e ? `on${r.slice(2).toLowerCase()}` : r] = i;
115
+ n[e ? `on${r.charAt(2)}${r.slice(3).toLowerCase()}` : r] = i;
116
116
  }
117
117
  return n;
118
118
  }, D = (e, t = {}) => {
@@ -161,7 +161,7 @@ var rn = (e) => e.flatMap((e) => e.type === t && Array.isArray(e.children) ? rn(
161
161
  r = le(typeof document > "u" ? null : t(), () => {
162
162
  r = null, n.value = !1;
163
163
  });
164
- }), ee(i), n;
164
+ }, { flush: "post" }), ee(i), n;
165
165
  }, ln = (e) => {
166
166
  let t = i(() => tn(e.columns(), e.hidden())), n = i(() => e.sortMode() === "server" ? [...e.rows()] : Lt(e.rows(), e.sort.value)), r = (t, n) => {
167
167
  let r = t[e.rowKey()];
@@ -29,8 +29,9 @@ export type MachineBinding<S extends string, C, E extends EventObject> = {
29
29
  export declare const useMachine: <S extends string, C, E extends EventObject>(machine: Machine<S, C, E>, context: NoInfer<C>, options?: UseMachineOptions<S, C, E>) => MachineBinding<S, C, E>;
30
30
  /**
31
31
  * Engine part props in Vue's terms. Handlers are named like DOM events in the
32
- * engine (`onKeyDown`) and Vue wants them lower-cased after `on`
33
- * (`onKeydown`), or it listens for `key-down`. `false` is dropped, since Vue
32
+ * engine (`onKeyDown`); Vue wants the event lower-cased after a capital
33
+ * (`onKeydown`). `onKeyDown` would listen for `key-down`, and `onkeydown` is a
34
+ * DOM property, which hydration never attaches. `false` is dropped, since Vue
34
35
  * would render `disabled="false"` on a non-button, which still disables it.
35
36
  * The engine's `type: 'button'` applies only when the part renders a button.
36
37
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovince/ui-vue",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Accessible headless Vue 3 components for Lovince UI — Disclosure, Checkbox, Tabs and Dialog, unstyled.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "dependencies": {
64
64
  "@lovince/ui-headless": "^0.1.0",
65
- "@lovince/ui-dom": "^0.1.0"
65
+ "@lovince/ui-dom": "^0.1.1"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "vue": "^3.5.0"