@effect-app/vue-components 0.13.3 → 0.13.5
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/types/components/OmegaForm/OmegaFormStuff.d.ts +4 -4
- package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +1 -1
- package/dist/vue-components.es11.js +3 -3
- package/package.json +3 -3
- package/src/components/OmegaForm/OmegaFormStuff.ts +4 -4
- package/src/components/OmegaForm/OmegaWrapper.vue +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S, type
|
|
1
|
+
import { S, type Effect } from "effect-app";
|
|
2
2
|
import { type FormAsyncValidateOrFn, type FormValidateOrFn, type StandardSchemaV1, type FormApi, type VueFormApi, type FormOptions, type DeepKeys, type FieldValidateOrFn, type FieldAsyncValidateOrFn, type FormState } from "@tanstack/vue-form";
|
|
3
3
|
import { OmegaFormReturn } from "./useOmegaForm";
|
|
4
4
|
import { OmegaFieldInternalApi } from "./InputProps";
|
|
@@ -98,9 +98,9 @@ export type CreateMeta = {
|
|
|
98
98
|
property: S.AST.AST;
|
|
99
99
|
});
|
|
100
100
|
export declare const createMeta: <T = any>({ meta, parent, property, propertySignatures }: CreateMeta, acc?: Partial<MetaRecord<T>>) => MetaRecord<T> | FieldMeta;
|
|
101
|
-
export declare const duplicateSchema: <From, To>(schema: S.Schema<
|
|
102
|
-
export declare const generateMetaFromSchema: <From, To>(schema: S.Schema<
|
|
103
|
-
schema: S.Schema<
|
|
101
|
+
export declare const duplicateSchema: <From, To>(schema: S.Schema<To, From, never>) => S.extend<S.Schema<To, From, never>, import("effect/Schema").Struct<{}>>;
|
|
102
|
+
export declare const generateMetaFromSchema: <From, To>(schema: S.Schema<To, From, never>) => {
|
|
103
|
+
schema: S.Schema<To, From, never>;
|
|
104
104
|
meta: MetaRecord<To>;
|
|
105
105
|
filterItems?: FilterItems;
|
|
106
106
|
};
|
|
@@ -17,7 +17,7 @@ declare const _default: <From extends Record<PropertyKey, any>, To extends Recor
|
|
|
17
17
|
schema?: undefined;
|
|
18
18
|
} | {
|
|
19
19
|
form?: undefined;
|
|
20
|
-
schema: S.Schema<
|
|
20
|
+
schema: S.Schema<To, From, never>;
|
|
21
21
|
}))) & Partial<{}>> & import("vue").PublicProps;
|
|
22
22
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
23
23
|
attrs: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeepKeys } from "@tanstack/vue-form";
|
|
2
|
-
import {
|
|
2
|
+
import { S } from "effect-app";
|
|
3
3
|
import { type NestedKeyOf, type FilterItems, type FormProps, type MetaRecord, type OmegaFormApi, TypeOverride, FieldValidators } from "./OmegaFormStuff";
|
|
4
4
|
import { type InjectionKey } from "vue";
|
|
5
5
|
import { InputProps } from "./InputProps";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-b227b253]{display:contents}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(i,t){const o=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(o&&o.call(this),this.shadowRoot){const d=document.createElement("style");d.appendChild(document.createTextNode("fieldset[data-v-b227b253]{display:contents}")),this.shadowRoot.appendChild(d)}},e.call(window.customElements,i,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import o from "./vue-components.es13.js";
|
|
3
3
|
|
|
4
4
|
import r from "./vue-components.es15.js";
|
|
5
|
-
const
|
|
5
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b227b253"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
m as default
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/vue-components",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.5",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@mdi/js": "^7.4.47",
|
|
6
6
|
"@tanstack/vue-form": "^1.2.4",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"highlight.js": "^11.11.1",
|
|
52
52
|
"vue3-highlightjs": "^1.0.5",
|
|
53
|
-
"@effect-app/vue": "2.51.
|
|
54
|
-
"effect-app": "3.0
|
|
53
|
+
"@effect-app/vue": "2.51.12",
|
|
54
|
+
"effect-app": "3.1.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "pnpm build:run",
|
|
@@ -397,7 +397,7 @@ export const createMeta = <T = any>(
|
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
const flattenMeta = <From, To>(
|
|
400
|
-
schema: S.Schema<
|
|
400
|
+
schema: S.Schema<To, From, never>
|
|
401
401
|
): MetaRecord<To> => {
|
|
402
402
|
const ast = schema.ast
|
|
403
403
|
const result: MetaRecord<To> = {}
|
|
@@ -436,15 +436,15 @@ const flattenMeta = <From, To>(
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
export const duplicateSchema = <From, To>(
|
|
439
|
-
schema: S.Schema<
|
|
439
|
+
schema: S.Schema<To, From, never>
|
|
440
440
|
) => {
|
|
441
441
|
return S.extend(schema, S.Struct({}))
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
export const generateMetaFromSchema = <From, To>(
|
|
445
|
-
schema: S.Schema<
|
|
445
|
+
schema: S.Schema<To, From, never>
|
|
446
446
|
): {
|
|
447
|
-
schema: S.Schema<
|
|
447
|
+
schema: S.Schema<To, From, never>
|
|
448
448
|
meta: MetaRecord<To>
|
|
449
449
|
filterItems?: FilterItems
|
|
450
450
|
} => {
|