@omnia/fx 8.0.57-vnext → 8.0.59-vnext

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.
@@ -12,10 +12,10 @@ export interface IValidationRuleBuilder {
12
12
  require<T>(this: T, customMessage?: string): Omit<T, "require">;
13
13
  number<T>(this: T, customMessage?: string): Omit<T, "number">;
14
14
  minLength<T>(this: T, minLength: number, customMessage?: string): Omit<T, "minLength">;
15
- maxLength<T>(this: T, minLength: number, customMessage?: string): Omit<T, "maxLength">;
15
+ maxLength<T>(this: T, maxLength: number, customMessage?: string): Omit<T, "maxLength">;
16
16
  minValue<T>(this: T, min: number, customMessage?: string): Omit<T, "minValue">;
17
17
  maxValue<T>(this: T, max: number, customMessage?: string): Omit<T, "maxValue">;
18
- customRule<T>(callback: ((value: any) => ValidationResult) | ((value: any) => PromiseLike<ValidationResult>)): Omit<T, "customRule">;
18
+ custom<T>(this: T, callback: ((value: any) => ValidationResult) | ((value: any) => PromiseLike<ValidationResult>)): Omit<T, "custom">;
19
19
  done(): ValidationRule[];
20
20
  }
21
21
  export interface IInternalValidator extends IValidator {
@@ -1,3 +1,4 @@
1
+ import { ValidationRule } from "@omnia/fx/ux";
1
2
  import { VNodeChild } from "vue";
2
3
  import { VTextFieldSlots } from "../../ComponentTypings";
3
4
  interface OTextFieldSlots extends VTextFieldSlots {
@@ -70,6 +71,7 @@ declare const _default: {
70
71
  readonly modelValue?: string;
71
72
  readonly toned?: boolean;
72
73
  readonly "v-model"?: string;
74
+ readonly rules?: ValidationRule[];
73
75
  "onClick:clear"?: () => any;
74
76
  readonly clearable?: boolean;
75
77
  readonly autofocus?: boolean;
@@ -98,6 +100,10 @@ declare const _default: {
98
100
  type: import("vue").PropType<boolean>;
99
101
  required: false;
100
102
  };
103
+ rules: {
104
+ type: import("vue").PropType<ValidationRule[]>;
105
+ required: false;
106
+ };
101
107
  toned: {
102
108
  type: import("vue").PropType<boolean>;
103
109
  required: false;
@@ -191,6 +197,10 @@ declare const _default: {
191
197
  type: import("vue").PropType<boolean>;
192
198
  required: false;
193
199
  };
200
+ rules: {
201
+ type: import("vue").PropType<ValidationRule[]>;
202
+ required: false;
203
+ };
194
204
  toned: {
195
205
  type: import("vue").PropType<boolean>;
196
206
  required: false;
@@ -255,6 +265,10 @@ declare const _default: {
255
265
  type: import("vue").PropType<boolean>;
256
266
  required: false;
257
267
  };
268
+ rules: {
269
+ type: import("vue").PropType<ValidationRule[]>;
270
+ required: false;
271
+ };
258
272
  toned: {
259
273
  type: import("vue").PropType<boolean>;
260
274
  required: false;
@@ -341,6 +355,7 @@ declare const _default: {
341
355
  modelValue?: string;
342
356
  toned?: boolean;
343
357
  "v-model"?: string;
358
+ rules?: ValidationRule[];
344
359
  clearable?: boolean;
345
360
  autofocus?: boolean;
346
361
  }>, "onUpdate:modelValue" | "onClick:clear" | "onDoc$" | "onClick:button"> & {
@@ -23,8 +23,8 @@ export declare function useIcons(): {
23
23
  expand: FontAwesomeIcon;
24
24
  info: FontAwesomeIcon;
25
25
  lock: FontAwesomeIcon;
26
- lock_open: FontAwesomeIcon;
27
- lock_edit: FontAwesomeIcon;
26
+ lockOpen: FontAwesomeIcon;
27
+ lockEdit: FontAwesomeIcon;
28
28
  more: MaterialIcon;
29
29
  move: FontAwesomeIcon;
30
30
  navigate: FontAwesomeIcon;
@@ -50,8 +50,8 @@ export declare function useIcons(): {
50
50
  expand: (size?: OIconSizes, toned?: boolean, theming?: ThemeableComponentProps) => JSX.Element;
51
51
  info: (size?: OIconSizes, toned?: boolean, theming?: ThemeableComponentProps) => JSX.Element;
52
52
  lock: (size?: OIconSizes, toned?: boolean, theming?: ThemeableComponentProps) => JSX.Element;
53
- lock_open: (size?: OIconSizes, toned?: boolean, theming?: ThemeableComponentProps) => JSX.Element;
54
- lock_edit: (size?: OIconSizes, toned?: boolean, theming?: ThemeableComponentProps) => JSX.Element;
53
+ lockOpen: (size?: OIconSizes, toned?: boolean, theming?: ThemeableComponentProps) => JSX.Element;
54
+ lockEdit: (size?: OIconSizes, toned?: boolean, theming?: ThemeableComponentProps) => JSX.Element;
55
55
  more: (size?: OIconSizes, toned?: boolean, theming?: ThemeableComponentProps) => JSX.Element;
56
56
  move: (size?: OIconSizes, toned?: boolean, theming?: ThemeableComponentProps) => JSX.Element;
57
57
  navigate: (size?: OIconSizes, toned?: boolean, theming?: ThemeableComponentProps) => JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.57-vnext",
4
+ "version": "8.0.59-vnext",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Precio Fishbone",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "8.0.57-vnext",
23
+ "@omnia/fx-models": "8.0.59-vnext",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.10.7",