@choosemycompany/ui 0.20.2 → 0.21.1

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/index.d.ts CHANGED
@@ -8,9 +8,11 @@ import { ColumnDefinition as ColumnDefinition_3 } from '../../Molecules/CmcTable
8
8
  import { ComponentOptionsMixin } from 'vue';
9
9
  import { ComponentProvideOptions } from 'vue';
10
10
  import { DefineComponent } from 'vue';
11
+ import { FieldMeta } from 'vee-validate';
11
12
  import { PublicProps } from 'vue';
12
13
  import { Row } from './CmcTable.d.ts';
13
14
  import { Row as Row_2 } from '../../Molecules/CmcTable/CmcTable';
15
+ import { RuleExpression } from 'vee-validate';
14
16
 
15
17
  declare const __VLS_component: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
16
18
  click: () => any;
@@ -18,6 +20,7 @@ declare const __VLS_component: DefineComponent<Props_3, {}, {}, {}, {}, Componen
18
20
  onClick?: (() => any) | undefined;
19
21
  }>, {
20
22
  loading: boolean;
23
+ type: ButtonType;
21
24
  disabled: boolean;
22
25
  kind: ButtonKind;
23
26
  variant: ButtonVariant;
@@ -44,10 +47,15 @@ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_3, {}, {}, {}
44
47
  disabled: boolean;
45
48
  variant: InputVariant;
46
49
  size: InputSize;
50
+ invalid: boolean;
47
51
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
48
52
 
49
53
  declare const __VLS_component_5: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
50
54
 
55
+ declare const __VLS_component_6: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
56
+
57
+ declare const __VLS_component_7: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
58
+
51
59
  declare type __VLS_Props = {
52
60
  title: string;
53
61
  message: string;
@@ -62,7 +70,7 @@ declare type __VLS_Props_10 = {
62
70
  placeholder?: string;
63
71
  required?: boolean;
64
72
  disabled?: boolean;
65
- errorMessage?: string;
73
+ invalid?: boolean;
66
74
  variant?: SelectVariant;
67
75
  description?: string;
68
76
  width?: number;
@@ -97,6 +105,16 @@ declare type __VLS_Props_15 = {
97
105
  clickable?: boolean;
98
106
  };
99
107
 
108
+ declare type __VLS_Props_16 = {
109
+ handleCallback: (values: FormValues) => void | Promise<void>;
110
+ errors: ErrorItem[];
111
+ };
112
+
113
+ declare type __VLS_Props_17 = {
114
+ name: string;
115
+ rules?: Rules;
116
+ };
117
+
100
118
  declare type __VLS_Props_2 = {
101
119
  items: AutocompleteItem[];
102
120
  label?: string;
@@ -129,7 +147,7 @@ declare type __VLS_Props_6 = {
129
147
  placeholder?: string;
130
148
  required?: boolean;
131
149
  disabled?: boolean;
132
- errorMessage?: string;
150
+ invalid?: boolean;
133
151
  type?: InputType;
134
152
  variant?: InputVariant;
135
153
  size?: InputSize;
@@ -235,6 +253,32 @@ declare function __VLS_template_5(): {
235
253
  rootEl: any;
236
254
  };
237
255
 
256
+ declare function __VLS_template_6(): {
257
+ attrs: Partial<{}>;
258
+ slots: {
259
+ header?(_: {}): any;
260
+ fields?(_: {}): any;
261
+ actions?(_: {}): any;
262
+ };
263
+ refs: {};
264
+ rootEl: HTMLDivElement;
265
+ };
266
+
267
+ declare function __VLS_template_7(): {
268
+ attrs: Partial<{}>;
269
+ slots: {
270
+ default?(_: {
271
+ value: FieldValue;
272
+ meta: FieldMeta<FieldValue>;
273
+ errorMessage: string | undefined;
274
+ onInput: (e: Event | unknown, shouldValidate?: boolean) => void;
275
+ onBlur: (e?: Event, shouldValidate?: boolean) => void;
276
+ }): any;
277
+ };
278
+ refs: {};
279
+ rootEl: HTMLDivElement;
280
+ };
281
+
238
282
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
239
283
 
240
284
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
@@ -245,6 +289,10 @@ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
245
289
 
246
290
  declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
247
291
 
292
+ declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
293
+
294
+ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
295
+
248
296
  declare type __VLS_WithTemplateSlots<T, S> = T & {
249
297
  new (): {
250
298
  $slots: S;
@@ -275,6 +323,18 @@ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
275
323
  };
276
324
  };
277
325
 
326
+ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
327
+ new (): {
328
+ $slots: S;
329
+ };
330
+ };
331
+
332
+ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
333
+ new (): {
334
+ $slots: S;
335
+ };
336
+ };
337
+
278
338
  declare type AutocompleteItem = {
279
339
  label: string;
280
340
  value: string;
@@ -315,6 +375,14 @@ export declare const buttonSizeOptions: {
315
375
  readonly medium: "medium";
316
376
  };
317
377
 
378
+ declare type ButtonType = keyof typeof buttonTypeOptions;
379
+
380
+ declare const buttonTypeOptions: {
381
+ readonly button: "button";
382
+ readonly submit: "submit";
383
+ readonly reset: "reset";
384
+ };
385
+
318
386
  declare type ButtonVariant = keyof typeof buttonVariantOptions;
319
387
 
320
388
  export declare const buttonVariantOptions: {
@@ -380,6 +448,10 @@ export declare const CmcCheckbox: DefineComponent<__VLS_PublicProps_2, {}, {}, {
380
448
  disabled: boolean;
381
449
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
382
450
 
451
+ export declare const CmcForm: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
452
+
453
+ export declare const CmcFormField: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
454
+
383
455
  export declare const CmcHeading: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
384
456
 
385
457
  export declare const CmcIcon: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
@@ -424,6 +496,7 @@ export declare const CmcSelect: DefineComponent<__VLS_PublicProps_5, {}, {}, {},
424
496
  required: boolean;
425
497
  disabled: boolean;
426
498
  variant: SelectVariant;
499
+ invalid: boolean;
427
500
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
428
501
 
429
502
  export declare const CmcStatus: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {
@@ -467,6 +540,15 @@ export declare const CmcWizard: DefineComponent<__VLS_Props_15, {}, {}, {}, {},
467
540
 
468
541
  export { ColumnDefinition }
469
542
 
543
+ declare type ErrorItem = {
544
+ field: string;
545
+ message: string;
546
+ };
547
+
548
+ declare type FieldValue = string | number | undefined;
549
+
550
+ declare type FormValues = Record<string, unknown>;
551
+
470
552
  export declare const headingLevelOptions: {
471
553
  readonly h1: "h1";
472
554
  readonly h2: "h2";
@@ -556,6 +638,7 @@ declare interface Props_3 extends Omit<ButtonProp_2, "text"> {
556
638
  kind?: ButtonKind;
557
639
  variant?: ButtonVariant;
558
640
  size?: ButtonSize;
641
+ type?: ButtonType;
559
642
  }
560
643
 
561
644
  declare interface Props_4 {
@@ -580,6 +663,8 @@ export declare const rankOptions: {
580
663
  readonly unranked: "unranked";
581
664
  };
582
665
 
666
+ declare type Rules = RuleExpression<FieldValue> | undefined;
667
+
583
668
  export declare interface SelectOption {
584
669
  value: string | number;
585
670
  label: string;