@cobre-npm/ds-v3 0.94.5 → 0.95.0

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.
@@ -54,8 +54,9 @@ export { default as CobreTableCellCopy } from './molecules/CobreTableCellCopy/Co
54
54
  export { default as CobreTextArea } from './molecules/CobreTextArea/CobreTextArea.vue';
55
55
  export { default as CobreAvatarsGroup } from './molecules/CobreAvatarsGroup/CobreAvatarsGroup.vue';
56
56
  export { default as CobreCardIcon } from './molecules/CobreCardIcon/CobreCardIcon.vue';
57
+ export { default as CobreInputDatePicker } from './molecules/CobreInputDatePicker/CobreInputDatePicker.vue';
57
58
  export { default as CobreHeader } from './organisms/CobreHeader/CobreHeader.vue';
58
59
  export { default as CobreSideMenu } from './organisms/CobreSideMenu/CobreSideMenu.vue';
59
60
  export { default as CobreDateFilter } from './organisms/CobreDateFilter/CobreDateFilter.vue';
60
61
  export { default as CobreTimeLine } from './organisms/CobreTimeline/CobreTimeline.vue';
61
- export { default as CobreInputDatePicker } from './molecules/CobreInputDatePicker/CobreInputDatePicker.vue';
62
+ export { default as CobreDynamicForm } from './organisms/CobreDynamicForm/CobreDynamicForm.vue';
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
27
27
  labelOptional: string;
28
28
  locale: string;
29
29
  format: string;
30
- minDate: Date;
31
30
  maxDate: Date;
31
+ minDate: Date;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  export default _default;
@@ -45,13 +45,13 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
45
45
  placeholder: string;
46
46
  hasCloseButton: boolean;
47
47
  locale: string;
48
+ dayNames: string[];
48
49
  availableTypes: {
49
50
  type: CalendarTypes;
50
51
  label: string;
51
52
  isFixedDate?: boolean;
52
53
  }[];
53
54
  defaultType: CalendarTypes;
54
- dayNames: string[];
55
55
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
56
56
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
57
57
  export default _default;
@@ -0,0 +1,18 @@
1
+ import type { ComputedRef } from 'vue';
2
+ import type { Field } from './interfaces/field.interface';
3
+ type __VLS_Props = {
4
+ fields: Field[];
5
+ formId: string;
6
+ optionalLabel: string;
7
+ overflow?: boolean;
8
+ };
9
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
10
+ isFormValid: ComputedRef<boolean>;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "field-updated": (...args: any[]) => void;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
+ "onField-updated"?: ((...args: any[]) => any) | undefined;
15
+ }>, {
16
+ overflow: boolean;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export interface Currency {
2
+ id: number;
3
+ label: string;
4
+ code: string;
5
+ value: string;
6
+ geo: string;
7
+ minAmount: number;
8
+ }
@@ -0,0 +1,63 @@
1
+ import type { ComputedRef, Component, Ref } from 'vue';
2
+ import { Currency } from './currencies.interface';
3
+ export type InputType = 'email' | 'anyCharacter' | 'alphanumeric' | 'numeric' | 'letters' | 'password';
4
+ export type FieldType = 'input' | 'select' | 'radio' | 'currency' | 'phone' | 'checkbox' | 'date';
5
+ export interface FieldRef {
6
+ isValid: boolean;
7
+ isDirty: boolean;
8
+ isValidEmail: boolean;
9
+ isValidNumeric: boolean;
10
+ isValidAlphanumeric: boolean;
11
+ isValidMinLength: boolean;
12
+ isValidMaxLength: boolean;
13
+ isValidMinAmount: boolean;
14
+ isValidMaxAmount: boolean;
15
+ areValidLetters: boolean;
16
+ reset: () => void;
17
+ }
18
+ export interface Field {
19
+ id: string;
20
+ type: FieldType;
21
+ ref?: Ref<Partial<FieldRef | null>>;
22
+ label: string;
23
+ placeholder?: string;
24
+ name?: string;
25
+ value: any;
26
+ required: boolean;
27
+ visible: boolean;
28
+ parentClass?: string;
29
+ className?: string;
30
+ validation?: {
31
+ minLength?: number | ComputedRef<number>;
32
+ maxLength?: number | ComputedRef<number>;
33
+ minAmount?: number;
34
+ type?: InputType;
35
+ errorMessage?: ComputedRef<string>;
36
+ isValid?: () => boolean;
37
+ };
38
+ options?: any[];
39
+ props?: {
40
+ currencySelected?: string;
41
+ searchable?: boolean;
42
+ disabled?: boolean;
43
+ currencies?: Currency[];
44
+ reduce?: (item: any) => any;
45
+ label?: string;
46
+ optionSlot?: Component;
47
+ selectedOptionSlot?: Component;
48
+ labelTooltip?: string;
49
+ infoLabel?: string;
50
+ isCurrencyDisabled?: boolean;
51
+ indicativeOptions?: Array<{
52
+ code: string;
53
+ geo: string;
54
+ country: string;
55
+ }>;
56
+ indicativeModelValue?: string;
57
+ maxDate?: Date;
58
+ minDate?: Date;
59
+ format?: string;
60
+ locale?: string;
61
+ };
62
+ onUpdate?: (value: any) => void;
63
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.94.5",
3
+ "version": "0.95.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"