@regle/core 1.4.0-beta.1 → 1.4.0-beta.2
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/regle-core.d.ts +8 -4
- package/package.json +1 -1
package/dist/regle-core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue0 from "vue";
|
|
2
2
|
import { MaybeRef, MaybeRefOrGetter, Raw, Ref, UnwrapNestedRefs, UnwrapRef } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/types/utils/misc.types.d.ts
|
|
@@ -2295,9 +2295,13 @@ type RegleFieldStatus<TState extends any = any, TRules extends RegleFormProperty
|
|
|
2295
2295
|
/** Collection of all the error messages, collected for all children properties and nested forms. */
|
|
2296
2296
|
readonly $silentErrors: string[];
|
|
2297
2297
|
/**
|
|
2298
|
-
* Collect all metadata of validators,
|
|
2298
|
+
* Collect all metadata of validators, Only contains errors from properties where $dirty equals true.
|
|
2299
2299
|
*/
|
|
2300
2300
|
readonly $issues: RegleFieldIssue[];
|
|
2301
|
+
/**
|
|
2302
|
+
* Collect all metadata of validators, including the error message.
|
|
2303
|
+
*/
|
|
2304
|
+
readonly $silentIssues: RegleFieldIssue[];
|
|
2301
2305
|
/** Stores external errors of the current field */
|
|
2302
2306
|
readonly $externalErrors: string[];
|
|
2303
2307
|
/** Stores active tooltips messages of the current field */
|
|
@@ -2733,13 +2737,13 @@ declare function createScopedUseRegle<TCustomRegle extends useRegleFn<any, any>
|
|
|
2733
2737
|
useScopedRegle: TReturnedRegle;
|
|
2734
2738
|
useCollectScope: useCollectScopeFn<TAsRecord>;
|
|
2735
2739
|
};
|
|
2736
|
-
declare const useCollectScope: <TValue extends Record<string, unknown>[] = Record<string, unknown>[]>(namespace?:
|
|
2740
|
+
declare const useCollectScope: <TValue extends Record<string, unknown>[] = Record<string, unknown>[]>(namespace?: vue0.MaybeRefOrGetter<string>) => {
|
|
2737
2741
|
r$: MergedScopedRegles<TValue>;
|
|
2738
2742
|
}, useScopedRegle: useRegleFn<Partial<AllRulesDeclarations>, never, {
|
|
2739
2743
|
dispose: () => void;
|
|
2740
2744
|
register: () => void;
|
|
2741
2745
|
}, {
|
|
2742
|
-
namespace?:
|
|
2746
|
+
namespace?: vue0.MaybeRefOrGetter<string>;
|
|
2743
2747
|
}>;
|
|
2744
2748
|
//#endregion
|
|
2745
2749
|
//#region src/core/createVariant.d.ts
|