@atscript/vue-form 0.1.70 → 0.1.72
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/as-form.d.cts +1 -1
- package/dist/as-form.d.mts +1 -1
- package/dist/{as-form.vue-Bnx5wmrs.d.cts → as-form.vue-B6iBidP7.d.cts} +1 -1
- package/dist/{as-form.vue-r8RVlous.d.mts → as-form.vue-BmDsOgLK.d.mts} +1 -1
- package/dist/{as-paragraph-C2kFKwt1.mjs → as-paragraph-CuXb-mfi.mjs} +6 -2
- package/dist/{as-paragraph-DT26249u.cjs → as-paragraph-D_h8QGLz.cjs} +5 -1
- package/dist/as-paragraph.cjs +1 -1
- package/dist/as-paragraph.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +9 -9
package/dist/as-form.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _default, t as Props } from "./as-form.vue-
|
|
1
|
+
import { n as _default, t as Props } from "./as-form.vue-B6iBidP7.cjs";
|
|
2
2
|
export { Props, _default as default };
|
package/dist/as-form.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _default, t as Props } from "./as-form.vue-
|
|
1
|
+
import { n as _default, t as Props } from "./as-form.vue-BmDsOgLK.mjs";
|
|
2
2
|
export { Props, _default as default };
|
|
@@ -81,8 +81,8 @@ declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: N
|
|
|
81
81
|
path: string;
|
|
82
82
|
message: string;
|
|
83
83
|
}[]) => any) | undefined;
|
|
84
|
-
onSubmit?: ((data: TFormData) => any) | undefined;
|
|
85
84
|
onAction?: ((name: string, data: TFormData) => any) | undefined;
|
|
85
|
+
onSubmit?: ((data: TFormData) => any) | undefined;
|
|
86
86
|
"onUnsupported-action"?: ((name: string, data: TFormData) => any) | undefined;
|
|
87
87
|
onChange?: ((type: TAsChangeType, path: string, value: unknown, formData: TFormData) => any) | undefined;
|
|
88
88
|
}> & (typeof globalThis extends {
|
|
@@ -81,8 +81,8 @@ declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: N
|
|
|
81
81
|
path: string;
|
|
82
82
|
message: string;
|
|
83
83
|
}[]) => any) | undefined;
|
|
84
|
-
onSubmit?: ((data: TFormData) => any) | undefined;
|
|
85
84
|
onAction?: ((name: string, data: TFormData) => any) | undefined;
|
|
85
|
+
onSubmit?: ((data: TFormData) => any) | undefined;
|
|
86
86
|
"onUnsupported-action"?: ((name: string, data: TFormData) => any) | undefined;
|
|
87
87
|
onChange?: ((type: TAsChangeType, path: string, value: unknown, formData: TFormData) => any) | undefined;
|
|
88
88
|
}> & (typeof globalThis extends {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock, defineComponent, openBlock, toDisplayString, vShow, withDirectives } from "vue";
|
|
1
|
+
import { createElementBlock, defineComponent, normalizeClass, normalizeStyle, openBlock, toDisplayString, vShow, withDirectives } from "vue";
|
|
2
2
|
//#endregion
|
|
3
3
|
//#region src/components/defaults/as-paragraph.vue
|
|
4
4
|
var as_paragraph_default = /* @__PURE__ */ defineComponent({
|
|
@@ -190,7 +190,11 @@ var as_paragraph_default = /* @__PURE__ */ defineComponent({
|
|
|
190
190
|
},
|
|
191
191
|
setup(__props) {
|
|
192
192
|
return (_ctx, _cache) => {
|
|
193
|
-
return withDirectives((openBlock(), createElementBlock("p", {
|
|
193
|
+
return withDirectives((openBlock(), createElementBlock("p", {
|
|
194
|
+
"aria-live": "polite",
|
|
195
|
+
class: normalizeClass(["as-default-field as-paragraph-field", _ctx.$props.class]),
|
|
196
|
+
style: normalizeStyle(_ctx.$props.style)
|
|
197
|
+
}, toDisplayString(__props.value), 7)), [[vShow, !__props.hidden]]);
|
|
194
198
|
};
|
|
195
199
|
}
|
|
196
200
|
});
|
|
@@ -190,7 +190,11 @@ var as_paragraph_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
190
190
|
},
|
|
191
191
|
setup(__props) {
|
|
192
192
|
return (_ctx, _cache) => {
|
|
193
|
-
return (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("p", {
|
|
193
|
+
return (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("p", {
|
|
194
|
+
"aria-live": "polite",
|
|
195
|
+
class: (0, vue.normalizeClass)(["as-default-field as-paragraph-field", _ctx.$props.class]),
|
|
196
|
+
style: (0, vue.normalizeStyle)(_ctx.$props.style)
|
|
197
|
+
}, (0, vue.toDisplayString)(__props.value), 7)), [[vue.vShow, !__props.hidden]]);
|
|
194
198
|
};
|
|
195
199
|
}
|
|
196
200
|
});
|
package/dist/as-paragraph.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_paragraph = require("./as-paragraph-
|
|
1
|
+
const require_as_paragraph = require("./as-paragraph-D_h8QGLz.cjs");
|
|
2
2
|
module.exports = require_as_paragraph.as_paragraph_default;
|
package/dist/as-paragraph.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_paragraph_default } from "./as-paragraph-
|
|
1
|
+
import { t as as_paragraph_default } from "./as-paragraph-CuXb-mfi.mjs";
|
|
2
2
|
export { as_paragraph_default as default };
|
package/dist/index.cjs
CHANGED
|
@@ -13,7 +13,7 @@ const require_as_select = require("./as-select-BrmjjRKU.cjs");
|
|
|
13
13
|
const require_as_multi_select = require("./as-multi-select-CjyY453L.cjs");
|
|
14
14
|
const require_as_radio = require("./as-radio-BoS1VhOR.cjs");
|
|
15
15
|
const require_as_checkbox = require("./as-checkbox-Dcqf2Bby.cjs");
|
|
16
|
-
const require_as_paragraph = require("./as-paragraph-
|
|
16
|
+
const require_as_paragraph = require("./as-paragraph-D_h8QGLz.cjs");
|
|
17
17
|
const require_as_action = require("./as-action-UtPIV4Cf.cjs");
|
|
18
18
|
const require_use_as_optional_add_flow = require("./use-as-optional-add-flow-Dg_2iQ4d.cjs");
|
|
19
19
|
const require_as_object = require("./as-object-DittHqNK.cjs");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _default$6 from "./as-field.cjs";
|
|
2
|
-
import { a as TFormRule, i as TFormFieldRegistration, n as _default$8, o as TFormState, r as TFormFieldCallbacks } from "./as-form.vue-
|
|
2
|
+
import { a as TFormRule, i as TFormFieldRegistration, n as _default$8, o as TFormState, r as TFormFieldCallbacks } from "./as-form.vue-B6iBidP7.cjs";
|
|
3
3
|
import { a as TAsTypeComponents, i as TAsComponentProps, n as TAsChangeType, o as TAsUnionContext, r as TAsComponentEmits, t as TAsBaseComponentProps } from "./types-CzMUE5Dk.cjs";
|
|
4
4
|
import _default$10 from "./as-iterator.cjs";
|
|
5
5
|
import { t as _default } from "./as-action.vue-BOLmcRHb.cjs";
|
|
@@ -23,7 +23,7 @@ import * as vue from "vue";
|
|
|
23
23
|
import { Component, ComputedRef, MaybeRef, Ref, ShallowRef, WritableComputedRef } from "vue";
|
|
24
24
|
import * as _atscript_ui0 from "@atscript/ui";
|
|
25
25
|
import { ClientFactory, ClientFactory as ClientFactory$1, FormArrayFieldDef, FormDef, FormFieldDef, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, ResolvedValueHelp, ValueHelpInfo, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
26
|
-
//#region ../../node_modules/.pnpm/@atscript+typescript@0.1.
|
|
26
|
+
//#region ../../node_modules/.pnpm/@atscript+typescript@0.1.59_@atscript+core@0.1.59_@emnapi+core@1.9.2_@emnapi+runtime@1._2a4a4e017bd93fdefdebad92183b4880/node_modules/@atscript/typescript/dist/utils.d.ts
|
|
27
27
|
interface TError {
|
|
28
28
|
path: string;
|
|
29
29
|
message: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _default$6 from "./as-field.mjs";
|
|
2
|
-
import { a as TFormRule, i as TFormFieldRegistration, n as _default$8, o as TFormState, r as TFormFieldCallbacks } from "./as-form.vue-
|
|
2
|
+
import { a as TFormRule, i as TFormFieldRegistration, n as _default$8, o as TFormState, r as TFormFieldCallbacks } from "./as-form.vue-BmDsOgLK.mjs";
|
|
3
3
|
import { a as TAsTypeComponents, i as TAsComponentProps, n as TAsChangeType, o as TAsUnionContext, r as TAsComponentEmits, t as TAsBaseComponentProps } from "./types-D0xtsrz8.mjs";
|
|
4
4
|
import _default$10 from "./as-iterator.mjs";
|
|
5
5
|
import { t as _default } from "./as-action.vue-ReXXWCRt.mjs";
|
|
@@ -23,7 +23,7 @@ import * as vue from "vue";
|
|
|
23
23
|
import { Component, ComputedRef, MaybeRef, Ref, ShallowRef, WritableComputedRef } from "vue";
|
|
24
24
|
import * as _atscript_ui0 from "@atscript/ui";
|
|
25
25
|
import { ClientFactory, ClientFactory as ClientFactory$1, FormArrayFieldDef, FormDef, FormFieldDef, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, ResolvedValueHelp, ValueHelpInfo, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
26
|
-
//#region ../../node_modules/.pnpm/@atscript+typescript@0.1.
|
|
26
|
+
//#region ../../node_modules/.pnpm/@atscript+typescript@0.1.59_@atscript+core@0.1.59_@emnapi+core@1.9.2_@emnapi+runtime@1._2a4a4e017bd93fdefdebad92183b4880/node_modules/@atscript/typescript/dist/utils.d.ts
|
|
27
27
|
interface TError {
|
|
28
28
|
path: string;
|
|
29
29
|
message: string;
|
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { t as as_select_default } from "./as-select-DerYjoLO.mjs";
|
|
|
12
12
|
import { t as as_multi_select_default } from "./as-multi-select-CitiQ7iz.mjs";
|
|
13
13
|
import { t as as_radio_default } from "./as-radio-DQry_nv7.mjs";
|
|
14
14
|
import { n as useAsTriStateCheckbox, t as as_checkbox_default } from "./as-checkbox-DwGSW968.mjs";
|
|
15
|
-
import { t as as_paragraph_default } from "./as-paragraph-
|
|
15
|
+
import { t as as_paragraph_default } from "./as-paragraph-CuXb-mfi.mjs";
|
|
16
16
|
import { t as as_action_default } from "./as-action-DfQE2MA7.mjs";
|
|
17
17
|
import { t as useAsOptionalAddFlow } from "./use-as-optional-add-flow-DzUScp6V.mjs";
|
|
18
18
|
import { t as as_object_default } from "./as-object-DMh4vis7.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.72",
|
|
4
4
|
"description": "Type-driven form rendering for Atscript with Vue 3",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -152,29 +152,29 @@
|
|
|
152
152
|
"access": "public"
|
|
153
153
|
},
|
|
154
154
|
"dependencies": {
|
|
155
|
-
"@atscript/ui": "^0.1.
|
|
155
|
+
"@atscript/ui": "^0.1.72"
|
|
156
156
|
},
|
|
157
157
|
"devDependencies": {
|
|
158
|
-
"@atscript/core": "^0.1.
|
|
159
|
-
"@atscript/db-client": "^0.1.
|
|
160
|
-
"@atscript/typescript": "^0.1.
|
|
158
|
+
"@atscript/core": "^0.1.59",
|
|
159
|
+
"@atscript/db-client": "^0.1.83",
|
|
160
|
+
"@atscript/typescript": "^0.1.59",
|
|
161
161
|
"@tsdown/css": "^0.21.4",
|
|
162
162
|
"@vitejs/plugin-vue": "^6",
|
|
163
163
|
"@vue/test-utils": "^2",
|
|
164
164
|
"happy-dom": "^18",
|
|
165
165
|
"reka-ui": "^2.9.2",
|
|
166
|
-
"unplugin-atscript": "^0.1.
|
|
166
|
+
"unplugin-atscript": "^0.1.59",
|
|
167
167
|
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.14",
|
|
168
168
|
"vue": "^3",
|
|
169
169
|
"vue-tsc": "^3.2.6",
|
|
170
170
|
"vunor": "^0.2",
|
|
171
|
-
"@atscript/ui-fns": "^0.1.
|
|
171
|
+
"@atscript/ui-fns": "^0.1.72"
|
|
172
172
|
},
|
|
173
173
|
"peerDependencies": {
|
|
174
|
-
"@atscript/db-client": "^0.1.
|
|
174
|
+
"@atscript/db-client": "^0.1.83",
|
|
175
175
|
"reka-ui": "^2.9.2",
|
|
176
176
|
"vue": "^3",
|
|
177
|
-
"@atscript/ui-fns": "^0.1.
|
|
177
|
+
"@atscript/ui-fns": "^0.1.72"
|
|
178
178
|
},
|
|
179
179
|
"scripts": {
|
|
180
180
|
"build": "node ../../scripts/gen-exports.mjs && vp pack",
|