@cobre-npm/ds-v3 0.147.1 → 0.149.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.
- package/dist/cobre-ds-v3-lib.es.js +12719 -12690
- package/dist/style.css +1 -1
- package/dist/types/components/atoms/CobreCardButton/CobreCardButton.vue.d.ts +2 -0
- package/dist/types/components/molecules/CobreChips/CobreChips.vue.d.ts +7 -0
- package/dist/types/components/organisms/CobreDateFilter/CobreDateFilter.vue.d.ts +3 -0
- package/dist/types/components/organisms/CobreDynamicForm/interfaces/field.interface.d.ts +3 -3
- package/package.json +1 -1
|
@@ -9,9 +9,11 @@ interface Props {
|
|
|
9
9
|
description: string;
|
|
10
10
|
isSelected?: boolean;
|
|
11
11
|
isDisabled?: boolean;
|
|
12
|
+
orientation?: 'horizontal' | 'vertical';
|
|
12
13
|
}
|
|
13
14
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
14
15
|
isDisabled: boolean;
|
|
15
16
|
isSelected: boolean;
|
|
17
|
+
orientation: "horizontal" | "vertical";
|
|
16
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
19
|
export default _default;
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* CobreChips — a filter chip built on CobreButton's `filter` theme.
|
|
3
3
|
* Use to display an applied or selectable filter; shows a leading plus, icon, or a
|
|
4
4
|
* removable divider/close button that emits 'close' when a filter value is set.
|
|
5
|
+
* Pass `hidePlusIcon` with `icon` to show that icon before a value is set too,
|
|
6
|
+
* instead of the default "+" (e.g. a date filter that's reconfigurable but not
|
|
7
|
+
* removable). Pass `emptyText` for placeholder copy (e.g. "Selecciona un
|
|
8
|
+
* periodo") shown before a value is set.
|
|
5
9
|
*/
|
|
6
10
|
interface Props {
|
|
7
11
|
label?: string;
|
|
@@ -9,6 +13,8 @@ interface Props {
|
|
|
9
13
|
isDisabled?: boolean;
|
|
10
14
|
hasCloseButton?: boolean;
|
|
11
15
|
icon?: string;
|
|
16
|
+
hidePlusIcon?: boolean;
|
|
17
|
+
emptyText?: string;
|
|
12
18
|
}
|
|
13
19
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
20
|
close: (...args: any[]) => void;
|
|
@@ -17,5 +23,6 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
17
23
|
}>, {
|
|
18
24
|
isDisabled: boolean;
|
|
19
25
|
hasCloseButton: boolean;
|
|
26
|
+
hidePlusIcon: boolean;
|
|
20
27
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
28
|
export default _default;
|
|
@@ -32,6 +32,8 @@ interface Props {
|
|
|
32
32
|
customDateHandlers?: Record<string, () => ParsedDate>;
|
|
33
33
|
hasCloseButton?: boolean;
|
|
34
34
|
chipIcon?: string;
|
|
35
|
+
chipHidePlusIcon?: boolean;
|
|
36
|
+
chipEmptyText?: string;
|
|
35
37
|
chipTextMode?: 'type' | 'type+date' | 'date';
|
|
36
38
|
}
|
|
37
39
|
declare var __VLS_11: {};
|
|
@@ -59,6 +61,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
59
61
|
isFixedDate?: boolean;
|
|
60
62
|
}[];
|
|
61
63
|
defaultType: CalendarTypes;
|
|
64
|
+
chipHidePlusIcon: boolean;
|
|
62
65
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
66
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
64
67
|
export default _default;
|
|
@@ -31,10 +31,10 @@ export interface Field {
|
|
|
31
31
|
required: boolean;
|
|
32
32
|
/** Whether the field is shown in the form. */
|
|
33
33
|
visible: boolean;
|
|
34
|
-
/** Number of grid columns the field spans in the form layout. */
|
|
34
|
+
/** Number of grid columns the field spans in the form layout. Ignored when `customClass` is set. */
|
|
35
35
|
colSpan?: number;
|
|
36
|
-
/** CSS class applied to the field's wrapper element. */
|
|
37
|
-
|
|
36
|
+
/** CSS class applied to the field's wrapper element, overriding the default `col-{colSpan}` grid class. */
|
|
37
|
+
customClass?: string;
|
|
38
38
|
/** CSS class applied to the field's control element. */
|
|
39
39
|
className?: string;
|
|
40
40
|
/** Validation rules and custom validity check applied to the field's value. */
|