@atscript/vue-wf 0.1.64 → 0.1.66

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.
@@ -181,7 +181,6 @@ const _hoisted_5 = {
181
181
  role: "alert",
182
182
  class: "as-wf-form-error"
183
183
  };
184
- const _hoisted_6 = ["disabled"];
185
184
  //#endregion
186
185
  //#region src/components/as-wf-form.vue
187
186
  var as_wf_form_default = /* @__PURE__ */ defineComponent({
@@ -370,7 +369,7 @@ var as_wf_form_default = /* @__PURE__ */ defineComponent({
370
369
  onSubmit,
371
370
  onAction,
372
371
  onUnsupportedAction: onAction
373
- }, {
372
+ }, createSlots({
374
373
  "form.header": withCtx((slotProps) => [renderSlot(_ctx.$slots, "form.header", normalizeProps(guardReactiveProps({
375
374
  ...slotProps,
376
375
  loading: unref(wf).loading.value
@@ -383,16 +382,19 @@ var as_wf_form_default = /* @__PURE__ */ defineComponent({
383
382
  ...slotProps,
384
383
  loading: unref(wf).loading.value
385
384
  })))]),
386
- "form.submit": withCtx((slotProps) => [renderSlot(_ctx.$slots, "form.submit", normalizeProps(guardReactiveProps({
385
+ "form.footer": withCtx((slotProps) => [renderSlot(_ctx.$slots, "form.footer", normalizeProps(guardReactiveProps({
387
386
  ...slotProps,
388
387
  loading: unref(wf).loading.value
389
- })), () => [createElementVNode("button", { disabled: slotProps.disabled || unref(wf).loading.value }, toDisplayString(slotProps.text), 9, _hoisted_6)])]),
390
- "form.footer": withCtx((slotProps) => [renderSlot(_ctx.$slots, "form.footer", normalizeProps(guardReactiveProps({
388
+ })))]),
389
+ _: 2
390
+ }, [_ctx.$slots["form.submit"] ? {
391
+ name: "form.submit",
392
+ fn: withCtx((slotProps) => [renderSlot(_ctx.$slots, "form.submit", normalizeProps(guardReactiveProps({
391
393
  ...slotProps,
392
394
  loading: unref(wf).loading.value
393
395
  })))]),
394
- _: 3
395
- }, 8, [
396
+ key: "0"
397
+ } : void 0]), 1032, [
396
398
  "def",
397
399
  "form-data",
398
400
  "types",
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-wf-form.vue-CBujwX55.mjs";
1
+ import { t as _default } from "./as-wf-form.vue-FiaBQQEu.mjs";
2
2
  export { _default as default };
@@ -1,3 +1,3 @@
1
- import { t as as_wf_form_default } from "./as-wf-form-CxIEWOyU.mjs";
1
+ import { t as as_wf_form_default } from "./as-wf-form-5tml-xzd.mjs";
2
2
  import "./as-wf-finish-B7mz8kVT.mjs";
3
3
  export { as_wf_form_default as default };
@@ -196,26 +196,26 @@ type __VLS_Slots = {} & {
196
196
  'form.footer'?: (props: typeof __VLS_58) => any;
197
197
  };
198
198
  declare const __VLS_base: vue.DefineComponent<AsWfFormProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
199
- dismiss: () => any;
200
- action: (action: WfAction) => any;
199
+ finished: (response: unknown) => any;
201
200
  error: (error: {
202
201
  message: string;
203
202
  status?: number;
204
203
  }) => any;
205
- finished: (response: unknown) => any;
206
204
  submit: (data: unknown) => any;
207
205
  loading: (isLoading: boolean) => any;
206
+ dismiss: () => any;
207
+ action: (action: WfAction) => any;
208
208
  form: (def: FormDef, context?: Record<string, unknown> | undefined) => any;
209
209
  }, string, vue.PublicProps, Readonly<AsWfFormProps> & Readonly<{
210
- onDismiss?: (() => any) | undefined;
211
- onAction?: ((action: WfAction) => any) | undefined;
210
+ onFinished?: ((response: unknown) => any) | undefined;
212
211
  onError?: ((error: {
213
212
  message: string;
214
213
  status?: number;
215
214
  }) => any) | undefined;
216
- onFinished?: ((response: unknown) => any) | undefined;
217
215
  onSubmit?: ((data: unknown) => any) | undefined;
218
216
  onLoading?: ((isLoading: boolean) => any) | undefined;
217
+ onDismiss?: (() => any) | undefined;
218
+ onAction?: ((action: WfAction) => any) | undefined;
219
219
  onForm?: ((def: FormDef, context?: Record<string, unknown> | undefined) => any) | undefined;
220
220
  }>, {
221
221
  tokenTransport: "body" | "cookie" | "query";
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { a as WfMessage, i as WfFinishedEnd, n as WfButton, r as WfFinished, t as WfAction } from "./index-KRfH1NOi.mjs";
2
- import { i as useWfForm, n as UseWfFormOptions, r as UseWfFormReturn, t as _default$1 } from "./as-wf-form.vue-CBujwX55.mjs";
2
+ import { i as useWfForm, n as UseWfFormOptions, r as UseWfFormReturn, t as _default$1 } from "./as-wf-form.vue-FiaBQQEu.mjs";
3
3
  import { t as _default } from "./as-wf-finish.vue-BrMzuLaH.mjs";
4
4
  export { _default as AsWfFinish, _default$1 as AsWfForm, type UseWfFormOptions, type UseWfFormReturn, type WfAction, type WfButton, type WfFinished, type WfFinishedEnd, type WfMessage, useWfForm };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as useWfForm, t as as_wf_form_default } from "./as-wf-form-CxIEWOyU.mjs";
1
+ import { n as useWfForm, t as as_wf_form_default } from "./as-wf-form-5tml-xzd.mjs";
2
2
  import { t as as_wf_finish_default } from "./as-wf-finish-B7mz8kVT.mjs";
3
3
  export { as_wf_finish_default as AsWfFinish, as_wf_form_default as AsWfForm, useWfForm };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/vue-wf",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "description": "Workflow form integration for Vue 3 — HTTP round-trip loop driven by atscript type metadata",
5
5
  "keywords": [
6
6
  "atscript",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@atscript/ui": "^0.1.64"
53
+ "@atscript/ui": "^0.1.66"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@atscript/core": "^0.1.56",
@@ -62,13 +62,13 @@
62
62
  "vitest": "npm:@voidzero-dev/vite-plus-test@latest",
63
63
  "vue": "^3",
64
64
  "vue-tsc": "^3.2.6",
65
- "@atscript/moost-wf": "^0.1.64",
66
- "@atscript/vue-form": "^0.1.64"
65
+ "@atscript/moost-wf": "^0.1.66",
66
+ "@atscript/vue-form": "^0.1.66"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "@atscript/typescript": "^0.1.56",
70
70
  "vue": "^3",
71
- "@atscript/vue-form": "^0.1.64"
71
+ "@atscript/vue-form": "^0.1.66"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "node ../../scripts/gen-exports.mjs && vp pack",