@choosemycompany/ui 0.21.0 → 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;
@@ -50,6 +52,10 @@ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_3, {}, {}, {}
50
52
 
51
53
  declare const __VLS_component_5: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
52
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
+
53
59
  declare type __VLS_Props = {
54
60
  title: string;
55
61
  message: string;
@@ -99,6 +105,16 @@ declare type __VLS_Props_15 = {
99
105
  clickable?: boolean;
100
106
  };
101
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
+
102
118
  declare type __VLS_Props_2 = {
103
119
  items: AutocompleteItem[];
104
120
  label?: string;
@@ -237,6 +253,32 @@ declare function __VLS_template_5(): {
237
253
  rootEl: any;
238
254
  };
239
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
+
240
282
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
241
283
 
242
284
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
@@ -247,6 +289,10 @@ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
247
289
 
248
290
  declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
249
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
+
250
296
  declare type __VLS_WithTemplateSlots<T, S> = T & {
251
297
  new (): {
252
298
  $slots: S;
@@ -277,6 +323,18 @@ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
277
323
  };
278
324
  };
279
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
+
280
338
  declare type AutocompleteItem = {
281
339
  label: string;
282
340
  value: string;
@@ -390,6 +448,10 @@ export declare const CmcCheckbox: DefineComponent<__VLS_PublicProps_2, {}, {}, {
390
448
  disabled: boolean;
391
449
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
392
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
+
393
455
  export declare const CmcHeading: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
394
456
 
395
457
  export declare const CmcIcon: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
@@ -478,6 +540,15 @@ export declare const CmcWizard: DefineComponent<__VLS_Props_15, {}, {}, {}, {},
478
540
 
479
541
  export { ColumnDefinition }
480
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
+
481
552
  export declare const headingLevelOptions: {
482
553
  readonly h1: "h1";
483
554
  readonly h2: "h2";
@@ -592,6 +663,8 @@ export declare const rankOptions: {
592
663
  readonly unranked: "unranked";
593
664
  };
594
665
 
666
+ declare type Rules = RuleExpression<FieldValue> | undefined;
667
+
595
668
  export declare interface SelectOption {
596
669
  value: string | number;
597
670
  label: string;