@cobre-npm/ds-v3 0.119.0 → 0.120.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 +6465 -6258
- package/dist/style.css +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/organisms/CobreAccountPickerModal/CobreAccountPickerModal.vue.d.ts +74 -0
- package/dist/types/components/organisms/CobreAccountPickerModal/interfaces/account-selector-modal.interface.d.ts +25 -0
- package/package.json +1 -1
|
@@ -70,3 +70,5 @@ export { default as CobreDynamicForm } from './organisms/CobreDynamicForm/CobreD
|
|
|
70
70
|
export { default as CobreFilterPanel } from './organisms/CobreFilterPanel/CobreFilterPanel.vue';
|
|
71
71
|
export type * from './organisms/CobreFilterPanel/interfaces/filter.interface';
|
|
72
72
|
export { default as CobreAccountPicker } from './organisms/CobreAccountPicker/CobreAccountPicker.vue';
|
|
73
|
+
export { default as CobreAccountPickerModal } from './organisms/CobreAccountPickerModal/CobreAccountPickerModal.vue';
|
|
74
|
+
export type * from './organisms/CobreAccountPickerModal/interfaces/account-selector-modal.interface';
|
package/dist/types/components/organisms/CobreAccountPickerModal/CobreAccountPickerModal.vue.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type CobreSelectableItem } from '../../molecules/CobreAccountOptionSelect/CobreAccountOptionSelect.vue';
|
|
2
|
+
import type { AlertConfig, FilterConfig, TabConfigItem } from './interfaces/account-selector-modal.interface';
|
|
3
|
+
export type { AlertType, AlertConfig, TabConfigItem, FilterOptionItem, FilterConfig } from './interfaces/account-selector-modal.interface';
|
|
4
|
+
type AccountItem = CobreSelectableItem;
|
|
5
|
+
interface Props {
|
|
6
|
+
title: string;
|
|
7
|
+
searchPlaceholder: string;
|
|
8
|
+
emptyTitle: string;
|
|
9
|
+
emptyDescription: string;
|
|
10
|
+
balanceFilterLabel?: string;
|
|
11
|
+
balanceTooltipOff?: string;
|
|
12
|
+
balanceTooltipOn?: string;
|
|
13
|
+
/** Separator word used in filter chips (e.g. "y" in Spanish, "and" in English) */
|
|
14
|
+
conjunctionText?: string;
|
|
15
|
+
/** "More" suffix used in filter chips (e.g. "más" in Spanish, "more" in English) */
|
|
16
|
+
moreText?: string;
|
|
17
|
+
idPrefix: string;
|
|
18
|
+
resolveCurrencyLabel?: (currency?: string) => string;
|
|
19
|
+
accounts?: AccountItem[];
|
|
20
|
+
searchQuery?: string;
|
|
21
|
+
alert?: AlertConfig | null;
|
|
22
|
+
tabsConfig?: TabConfigItem[] | null;
|
|
23
|
+
selectedTab?: string;
|
|
24
|
+
balanceFilter?: boolean | null;
|
|
25
|
+
isLoading?: boolean;
|
|
26
|
+
filtersConfig?: FilterConfig[] | null;
|
|
27
|
+
}
|
|
28
|
+
declare var __VLS_42: {};
|
|
29
|
+
type __VLS_Slots = {} & {
|
|
30
|
+
'custom-actions'?: (props: typeof __VLS_42) => any;
|
|
31
|
+
};
|
|
32
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
33
|
+
toggleModal: () => void;
|
|
34
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
35
|
+
select: (account: CobreSelectableItem) => any;
|
|
36
|
+
filter: (payload: {
|
|
37
|
+
param: string;
|
|
38
|
+
value: string[];
|
|
39
|
+
}) => any;
|
|
40
|
+
"update:searchQuery": (value: string) => any;
|
|
41
|
+
"update:selectedTab": (value: string) => any;
|
|
42
|
+
"balance-view-change": () => any;
|
|
43
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
44
|
+
onSelect?: ((account: CobreSelectableItem) => any) | undefined;
|
|
45
|
+
onFilter?: ((payload: {
|
|
46
|
+
param: string;
|
|
47
|
+
value: string[];
|
|
48
|
+
}) => any) | undefined;
|
|
49
|
+
"onUpdate:searchQuery"?: ((value: string) => any) | undefined;
|
|
50
|
+
"onUpdate:selectedTab"?: ((value: string) => any) | undefined;
|
|
51
|
+
"onBalance-view-change"?: (() => any) | undefined;
|
|
52
|
+
}>, {
|
|
53
|
+
isLoading: boolean;
|
|
54
|
+
conjunctionText: string;
|
|
55
|
+
moreText: string;
|
|
56
|
+
balanceFilterLabel: string;
|
|
57
|
+
balanceTooltipOff: string;
|
|
58
|
+
balanceTooltipOn: string;
|
|
59
|
+
resolveCurrencyLabel: (currency?: string) => string;
|
|
60
|
+
accounts: AccountItem[];
|
|
61
|
+
searchQuery: string;
|
|
62
|
+
alert: AlertConfig | null;
|
|
63
|
+
tabsConfig: TabConfigItem[] | null;
|
|
64
|
+
selectedTab: string;
|
|
65
|
+
balanceFilter: boolean | null;
|
|
66
|
+
filtersConfig: FilterConfig[] | null;
|
|
67
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
68
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type AlertType = "danger" | "success" | "warning" | "info";
|
|
2
|
+
export interface AlertConfig {
|
|
3
|
+
type: AlertType;
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
export interface TabConfigItem {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FilterOptionItem {
|
|
12
|
+
id: number;
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
}
|
|
16
|
+
export interface FilterConfig {
|
|
17
|
+
param: string;
|
|
18
|
+
label: string;
|
|
19
|
+
optionsTitle: string;
|
|
20
|
+
options: FilterOptionItem[];
|
|
21
|
+
value?: string[];
|
|
22
|
+
customBoxWidth?: string;
|
|
23
|
+
maxTextLength?: number;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
}
|