@ironsource/shared-ui 2.1.11-test.47 → 2.1.11-test.49
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/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/components/alert/Alert.stories.d.ts +8 -0
- package/components/appHeader/AppHeader.stories.d.ts +98 -0
- package/components/appIcon/AppIcon.spec.d.ts +1 -0
- package/components/appIcon/AppIcon.stories.d.ts +32 -0
- package/components/appTrigger/AppTrigger.spec.d.ts +1 -0
- package/components/appTrigger/AppTrigger.stories.d.ts +163 -0
- package/components/autocomplete/Autocomplete.stories.d.ts +9 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.spec.d.ts +1 -0
- package/components/autocompleteDropdown/AutocompleteDropdown.stories.d.ts +232 -0
- package/components/banner/Banner.spec.d.ts +1 -0
- package/components/banner/Banner.stories.d.ts +122 -0
- package/components/button/v3/Button.spec.d.ts +1 -0
- package/components/button/v3/Button.stories.d.ts +155 -0
- package/components/button/v3/Button.vue.d.ts +6 -6
- package/components/button/v3/ButtonBase.spec.d.ts +1 -0
- package/components/button/v3/IconButton.stories.d.ts +150 -0
- package/components/button/v3/ScrollButton.stories.d.ts +55 -0
- package/components/button/v3/index.d.ts +14 -14
- package/components/button/v4/Button.stories.d.ts +275 -0
- package/components/button/v4/ButtonGroup.stories.d.ts +120 -0
- package/components/button/v4/IconButton.stories.d.ts +206 -0
- package/components/button/v4/ToggleButtonGroupAB.stories.d.ts +182 -0
- package/components/chart/Chart.stories.d.ts +17 -0
- package/components/chart/Chart.vue.d.ts +6 -1
- package/components/chart/Chart.vue.js +3 -3
- package/components/chart/Chart.vue2.js +69 -66
- package/components/chart/index.d.ts +39 -20
- package/components/checkbox/v3/Checkbox.spec.d.ts +1 -0
- package/components/checkbox/v3/Checkbox.stories.d.ts +187 -0
- package/components/checkbox/v4/CheckboxV4.stories.d.ts +7 -0
- package/components/chip/v3/Chip.spec.d.ts +1 -0
- package/components/chip/v3/Chip.stories.d.ts +170 -0
- package/components/chip/v4/ChipV4.stories.d.ts +7 -0
- package/components/datePicker/v3/DatePicker.stories.d.ts +189 -0
- package/components/datePicker/v4/DatePicker.stories.d.ts +261 -0
- package/components/dateRange/v3/DateRange.stories.d.ts +415 -0
- package/components/dateRange/v4/DateRange.stories.d.ts +412 -0
- package/components/dialog/v3/Dialog.spec.d.ts +1 -0
- package/components/dialog/v3/Dialog.stories.d.ts +374 -0
- package/components/dialog/v4/DialogV4.stories.d.ts +9 -0
- package/components/dropdown/v3/Dropdown.spec.d.ts +1 -0
- package/components/dropdown/v3/Dropdown.stories.d.ts +1161 -0
- package/components/dropdown/v4/AppDropdownTrigger.stories.d.ts +487 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.stories.d.ts +10 -0
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.stories.d.ts +8 -0
- package/components/dropdown/v4/ChipDropdownTrigger.stories.d.ts +135 -0
- package/components/dropdown/v4/Conditional.stories.d.ts +711 -0
- package/components/dropdown/v4/DefaultDropdownTrigger.stories.d.ts +598 -0
- package/components/dropdown/v4/IconButtonDropdownTrigger.stories.d.ts +20 -0
- package/components/dropdown/v4/MultiSelection.stories.d.ts +3769 -0
- package/components/dropdown/v4/SingleSelection.stories.d.ts +5688 -0
- package/components/dropdown/v4/TreeDropdown.stories.d.ts +9 -0
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +0 -5
- package/components/dropdown/v4/TreeDropdown.vue.js +3 -3
- package/components/dropdown/v4/TreeDropdown.vue2.js +186 -193
- package/components/dropdown/v4/index.d.ts +1 -24
- package/components/emptyState/v3/EmptyState.spec.d.ts +1 -0
- package/components/emptyState/v3/EmptyState.stories.d.ts +295 -0
- package/components/emptyState/v3/EmptyState.vue.d.ts +3 -3
- package/components/emptyState/v3/index.d.ts +7 -7
- package/components/emptyState/v4/EmptyStateV4.stories.d.ts +6 -0
- package/components/filterDropdown/AddFilterButton.spec.d.ts +1 -0
- package/components/filterDropdown/AddFilterButton.stories.d.ts +108 -0
- package/components/filterDropdown/FilterDropdown.spec.d.ts +1 -0
- package/components/filterDropdown/FilterDropdown.stories.d.ts +70 -0
- package/components/filtersPanel/v3/FiltersPanel.spec.d.ts +1 -0
- package/components/filtersPanel/v3/FiltersPanel.stories.d.ts +8 -0
- package/components/filtersPanel/v4/FiltersPanelV4.stories.d.ts +4 -0
- package/components/floatingToolbar/FloatingToolbar.spec.d.ts +1 -0
- package/components/floatingToolbar/FloatingToolbar.stories.d.ts +127 -0
- package/components/forms/CardPanel.stories.d.ts +6 -0
- package/components/forms/FormCard.stories.d.ts +9 -0
- package/components/forms/FormRow.stories.d.ts +4 -0
- package/components/forms/validation/Validation.stories.d.ts +4 -0
- package/components/forms/validation/examples/dynamicForm/DynamicForm.stories.d.ts +7 -0
- package/components/forms/validation/examples/simpleForm/SimpleForm.stories.d.ts +7 -0
- package/components/icon/v3/Icon.spec.d.ts +1 -0
- package/components/icon/v3/Icon.stories.d.ts +112 -0
- package/components/icon/v4/IconFlag.stories.d.ts +5 -0
- package/components/icon/v4/IconV4.spec.d.ts +1 -0
- package/components/icon/v4/IconV4.stories.d.ts +195 -0
- package/components/includeExclude/EditColumns.stories.d.ts +490 -0
- package/components/includeExclude/IncludeExclude.spec.d.ts +1 -0
- package/components/includeExclude/IncludeExclude.stories.d.ts +456 -0
- package/components/inlineCopy/InlineCopy.stories.d.ts +112 -0
- package/components/input/v3/DollarInput.spec.d.ts +1 -0
- package/components/input/v3/DollarInput.stories.d.ts +275 -0
- package/components/input/v3/Input.spec.d.ts +1 -0
- package/components/input/v3/Input.stories.d.ts +1182 -0
- package/components/input/v3/PasswordInput.stories.d.ts +272 -0
- package/components/input/v3/PercentageInput.stories.d.ts +281 -0
- package/components/input/v4/TextField.stories.d.ts +14 -0
- package/components/layout/FoldableSection.stories.d.ts +4 -0
- package/components/loader/v4/Loader.stories.d.ts +136 -0
- package/components/menu/Menu.stories.d.ts +175 -0
- package/components/menuItem/MenuItem.spec.d.ts +1 -0
- package/components/menuItem/MenuItem.stories.d.ts +55 -0
- package/components/multibar/MultiBar.stories.d.ts +7 -0
- package/components/popover/v3/Popover.spec.d.ts +1 -0
- package/components/popover/v3/Popover.stories.d.ts +214 -0
- package/components/popover/v4/Popover.stories.d.ts +271 -0
- package/components/radioButton/v3/RadioButton.spec.d.ts +1 -0
- package/components/radioButton/v3/RadioButton.stories.d.ts +368 -0
- package/components/radioButton/v4/RadioButtonV4.stories.d.ts +7 -0
- package/components/search/v3/Search.spec.d.ts +1 -0
- package/components/search/v3/Search.stories.d.ts +75 -0
- package/components/search/v4/Search.stories.d.ts +63 -0
- package/components/skeleton/v3/Skeleton.spec.d.ts +1 -0
- package/components/skeleton/v3/Skeleton.stories.d.ts +83 -0
- package/components/skeleton/v4/SkeletonV4.stories.d.ts +5 -0
- package/components/snackbar/v3/Snackbar.spec.d.ts +1 -0
- package/components/snackbar/v3/Snackbar.stories.d.ts +22 -0
- package/components/snackbar/v4/Snackbar.stories.d.ts +24 -0
- package/components/sortableList/SortableList.stories.d.ts +5 -0
- package/components/statusDot/StatusDot.stories.d.ts +21 -0
- package/components/switch/v3/Switch.spec.d.ts +1 -0
- package/components/switch/v3/Switch.stories.d.ts +147 -0
- package/components/switch/v4/Switch.spec.d.ts +1 -0
- package/components/switch/v4/Switch.stories.d.ts +48 -0
- package/components/table/v3/Table.spec.d.ts +1 -0
- package/components/table/v3/Table.stories.d.ts +1227 -0
- package/components/table/v3/TableCheckbox.stories.d.ts +814 -0
- package/components/table/v4/DataGrid.stories.d.ts +24 -0
- package/components/table/v4/DataGrid.vue.d.ts +1 -1
- package/components/table/v4/MultipleDataGrid.stories.d.ts +4 -0
- package/components/table/v4/index.d.ts +20 -20
- package/components/tabs/v3/Tabs.spec.d.ts +1 -0
- package/components/tabs/v3/Tabs.stories.d.ts +172 -0
- package/components/tabs/v4/TabsV4.stories.d.ts +8 -0
- package/components/textArea/v3/TextArea.spec.d.ts +1 -0
- package/components/textArea/v3/TextArea.stories.d.ts +89 -0
- package/components/textArea/v4/TextAreaV4.stories.d.ts +9 -0
- package/components/toggle/v3/Toggle.spec.d.ts +1 -0
- package/components/toggle/v3/Toggle.stories.d.ts +107 -0
- package/components/toggle/v4/ToggleV4.stories.d.ts +9 -0
- package/components/tooltip/v3/TextWithTitleContent.spec.d.ts +1 -0
- package/components/tooltip/v3/Tooltip.spec.d.ts +1 -0
- package/components/tooltip/v3/Tooltip.stories.d.ts +253 -0
- package/components/tooltip/v4/Tooltip.stories.d.ts +336 -0
- package/components/typography/Heading.spec.d.ts +1 -0
- package/components/typography/Heading.stories.d.ts +119 -0
- package/components/typography/Text.stories.d.ts +131 -0
- package/components/typography/v4/Typography.spec.d.ts +1 -0
- package/components/typography/v4/Typography.stories.d.ts +179 -0
- package/composables/useFormValidation.d.ts +1 -1
- package/design-foundation.stories/border-radius/BorderRadius.stories.d.ts +4 -0
- package/design-foundation.stories/breakpoints/Breakpoints.stories.d.ts +4 -0
- package/design-foundation.stories/colors/Colors.stories.d.ts +4 -0
- package/design-foundation.stories/elevations/Elevations.stories.d.ts +4 -0
- package/design-foundation.stories/grid-layout/GridLayout.stories.d.ts +13 -0
- package/design-foundation.stories/spacing/Spacing.stories.d.ts +4 -0
- package/design-foundation.stories/typography/Typography.stories.d.ts +4 -0
- package/index.d.ts +42 -88
- package/index.js +1 -1
- package/package.json +2 -239
- package/Chart.vue_vue_type_style_index_0_scoped_04b9d6b3_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_46aae9ba_lang.css +0 -1
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: {
|
|
4
|
+
new (...args: any[]): {
|
|
5
|
+
$: import('vue').ComponentInternalInstance;
|
|
6
|
+
$data: {};
|
|
7
|
+
$props: Partial<{
|
|
8
|
+
testId: string;
|
|
9
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
testId: {
|
|
11
|
+
type: import('vue').PropType<string>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: import('vue').PropType<"a" | "b">;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
withPopover: {
|
|
19
|
+
type: import('vue').PropType<boolean>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
popoverProps: {
|
|
23
|
+
type: import('vue').PropType<{
|
|
24
|
+
autoHide?: boolean;
|
|
25
|
+
trigger?: "hover" | "click" | "focus" | "touch" | "managed";
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
placement?: import('floating-vue').Placement;
|
|
28
|
+
distance?: number;
|
|
29
|
+
skidding?: number;
|
|
30
|
+
testId?: string;
|
|
31
|
+
popperClass?: string;
|
|
32
|
+
}>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
}>> & {
|
|
36
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "testId">;
|
|
38
|
+
$attrs: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
$refs: {
|
|
42
|
+
[x: string]: unknown;
|
|
43
|
+
};
|
|
44
|
+
$slots: Readonly<{
|
|
45
|
+
[name: string]: import('vue').Slot;
|
|
46
|
+
}>;
|
|
47
|
+
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
48
|
+
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
49
|
+
$emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
50
|
+
$el: any;
|
|
51
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
52
|
+
testId: {
|
|
53
|
+
type: import('vue').PropType<string>;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: import('vue').PropType<"a" | "b">;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
withPopover: {
|
|
61
|
+
type: import('vue').PropType<boolean>;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
popoverProps: {
|
|
65
|
+
type: import('vue').PropType<{
|
|
66
|
+
autoHide?: boolean;
|
|
67
|
+
trigger?: "hover" | "click" | "focus" | "touch" | "managed";
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
placement?: import('floating-vue').Placement;
|
|
70
|
+
distance?: number;
|
|
71
|
+
skidding?: number;
|
|
72
|
+
testId?: string;
|
|
73
|
+
popperClass?: string;
|
|
74
|
+
}>;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
}>> & {
|
|
78
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
79
|
+
}, {
|
|
80
|
+
toggle: import('vue').ComputedRef<(value?: boolean) => boolean>;
|
|
81
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
82
|
+
"update:modelValue": (...args: any[]) => void;
|
|
83
|
+
}, string, {
|
|
84
|
+
testId: string;
|
|
85
|
+
}, {}, string> & {
|
|
86
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
87
|
+
created?: (() => void) | (() => void)[];
|
|
88
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
89
|
+
mounted?: (() => void) | (() => void)[];
|
|
90
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
91
|
+
updated?: (() => void) | (() => void)[];
|
|
92
|
+
activated?: (() => void) | (() => void)[];
|
|
93
|
+
deactivated?: (() => void) | (() => void)[];
|
|
94
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
95
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
96
|
+
destroyed?: (() => void) | (() => void)[];
|
|
97
|
+
unmounted?: (() => void) | (() => void)[];
|
|
98
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
99
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
100
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>, info: string) => boolean | void)[];
|
|
101
|
+
};
|
|
102
|
+
$forceUpdate: () => void;
|
|
103
|
+
$nextTick: typeof import('vue').nextTick;
|
|
104
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import('vue').WatchOptions<boolean>): import('vue').WatchStopHandle;
|
|
105
|
+
} & Readonly<import('vue').ExtractPropTypes<{
|
|
106
|
+
testId: {
|
|
107
|
+
type: import('vue').PropType<string>;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
modelValue: {
|
|
111
|
+
type: import('vue').PropType<"a" | "b">;
|
|
112
|
+
required: true;
|
|
113
|
+
};
|
|
114
|
+
withPopover: {
|
|
115
|
+
type: import('vue').PropType<boolean>;
|
|
116
|
+
required: true;
|
|
117
|
+
};
|
|
118
|
+
popoverProps: {
|
|
119
|
+
type: import('vue').PropType<{
|
|
120
|
+
autoHide?: boolean;
|
|
121
|
+
trigger?: "hover" | "click" | "focus" | "touch" | "managed";
|
|
122
|
+
disabled?: boolean;
|
|
123
|
+
placement?: import('floating-vue').Placement;
|
|
124
|
+
distance?: number;
|
|
125
|
+
skidding?: number;
|
|
126
|
+
testId?: string;
|
|
127
|
+
popperClass?: string;
|
|
128
|
+
}>;
|
|
129
|
+
required: true;
|
|
130
|
+
};
|
|
131
|
+
}>> & {
|
|
132
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
133
|
+
} & import('vue').ShallowUnwrapRef<{
|
|
134
|
+
toggle: import('vue').ComputedRef<(value?: boolean) => boolean>;
|
|
135
|
+
}> & {} & import('vue').ComponentCustomProperties & {};
|
|
136
|
+
__isFragment?: never;
|
|
137
|
+
__isTeleport?: never;
|
|
138
|
+
__isSuspense?: never;
|
|
139
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
140
|
+
testId: {
|
|
141
|
+
type: import('vue').PropType<string>;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
modelValue: {
|
|
145
|
+
type: import('vue').PropType<"a" | "b">;
|
|
146
|
+
required: true;
|
|
147
|
+
};
|
|
148
|
+
withPopover: {
|
|
149
|
+
type: import('vue').PropType<boolean>;
|
|
150
|
+
required: true;
|
|
151
|
+
};
|
|
152
|
+
popoverProps: {
|
|
153
|
+
type: import('vue').PropType<{
|
|
154
|
+
autoHide?: boolean;
|
|
155
|
+
trigger?: "hover" | "click" | "focus" | "touch" | "managed";
|
|
156
|
+
disabled?: boolean;
|
|
157
|
+
placement?: import('floating-vue').Placement;
|
|
158
|
+
distance?: number;
|
|
159
|
+
skidding?: number;
|
|
160
|
+
testId?: string;
|
|
161
|
+
popperClass?: string;
|
|
162
|
+
}>;
|
|
163
|
+
required: true;
|
|
164
|
+
};
|
|
165
|
+
}>> & {
|
|
166
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
167
|
+
}, {
|
|
168
|
+
toggle: import('vue').ComputedRef<(value?: boolean) => boolean>;
|
|
169
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
170
|
+
"update:modelValue": (...args: any[]) => void;
|
|
171
|
+
}, string, {
|
|
172
|
+
testId: string;
|
|
173
|
+
}, {}, string> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
174
|
+
$slots: {
|
|
175
|
+
"popover-content"?(_: {}): any;
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
argTypes: any;
|
|
179
|
+
};
|
|
180
|
+
export default _default;
|
|
181
|
+
export declare const Basic: any;
|
|
182
|
+
export declare const WithoutPopover: any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Meta } from '@storybook/vue3';
|
|
2
|
+
declare const _default: Meta;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: any;
|
|
5
|
+
export declare const TotalBar: any;
|
|
6
|
+
export declare const TotalStacked: any;
|
|
7
|
+
export declare const MultipleLineWithoutAnimation: any;
|
|
8
|
+
export declare const MultipleLine: any;
|
|
9
|
+
export declare const MultipleBar: any;
|
|
10
|
+
export declare const MultipleStack: any;
|
|
11
|
+
export declare const MultipleStackBars: any;
|
|
12
|
+
export declare const TotalsChart: any;
|
|
13
|
+
export declare const LotsOfData: any;
|
|
14
|
+
export declare const Loading: any;
|
|
15
|
+
export declare const SinglePoint: any;
|
|
16
|
+
export declare const EmptyChart: any;
|
|
17
|
+
export declare const LoadDataExample: any;
|
|
@@ -19,6 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
19
|
noDataSubtitle?: string;
|
|
20
20
|
withSettingsHeader?: boolean;
|
|
21
21
|
maxLimitTooltipText?: string;
|
|
22
|
+
withAnimation?: boolean;
|
|
22
23
|
}>, {
|
|
23
24
|
chartType: ChartType;
|
|
24
25
|
dataSets: () => any[];
|
|
@@ -40,6 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
40
41
|
withSettingsHeader: boolean;
|
|
41
42
|
withSubheaderTooltip: boolean;
|
|
42
43
|
maxLimitTooltipText: string;
|
|
44
|
+
withAnimation: boolean;
|
|
43
45
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
46
|
"update:chartType": (chartType: ChartType) => void;
|
|
45
47
|
"update:visibleIds": (visibleIds: unknown[]) => void;
|
|
@@ -63,6 +65,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
63
65
|
noDataSubtitle?: string;
|
|
64
66
|
withSettingsHeader?: boolean;
|
|
65
67
|
maxLimitTooltipText?: string;
|
|
68
|
+
withAnimation?: boolean;
|
|
66
69
|
}>, {
|
|
67
70
|
chartType: ChartType;
|
|
68
71
|
dataSets: () => any[];
|
|
@@ -84,15 +87,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
84
87
|
withSettingsHeader: boolean;
|
|
85
88
|
withSubheaderTooltip: boolean;
|
|
86
89
|
maxLimitTooltipText: string;
|
|
90
|
+
withAnimation: boolean;
|
|
87
91
|
}>>> & {
|
|
88
92
|
"onUpdate:visibleIds"?: (visibleIds: unknown[]) => any;
|
|
89
93
|
"onUpdate:chartType"?: (chartType: ChartType) => any;
|
|
90
94
|
}, {
|
|
91
95
|
header: string;
|
|
92
96
|
loading: boolean;
|
|
97
|
+
parsing: ChartParsingConfig;
|
|
93
98
|
xAxisFormat: ValueFormat;
|
|
94
99
|
yAxisFormat: ValueFormat;
|
|
95
|
-
parsing: ChartParsingConfig;
|
|
96
100
|
visibleIds: unknown[];
|
|
97
101
|
minVisible: number;
|
|
98
102
|
maxVisible: number;
|
|
@@ -107,6 +111,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
107
111
|
noDataIcon: string;
|
|
108
112
|
noDataTitle: string;
|
|
109
113
|
noDataSubtitle: string;
|
|
114
|
+
withAnimation: boolean;
|
|
110
115
|
}>, {
|
|
111
116
|
metric?(_: {}): any;
|
|
112
117
|
breakdowns?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Chart.vue2.js";
|
|
2
|
-
/* empty css */import
|
|
3
|
-
// import "../../Chart.
|
|
4
|
-
const p = /* @__PURE__ */
|
|
2
|
+
/* empty css */import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
// import "../../Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css"; //*');
|
|
4
|
+
const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-277fde76"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import "../../Chart.
|
|
2
|
-
import { useVModel as
|
|
3
|
-
import { Chart as N, ArcElement as
|
|
4
|
-
import { HoverVerticalLine as
|
|
5
|
-
import { formatValue as H, calcStepSize as
|
|
6
|
-
import { DEFAULT_TICK_COUNT as fe, DEFAULT_MIN_VISIBLE as
|
|
1
|
+
import "../../Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css"; import { defineComponent as q, computed as l, ref as g, onMounted as J, watch as T, nextTick as Q, openBlock as d, createElementBlock as C, Fragment as O, createBlock as f, unref as u, isRef as D, withCtx as k, renderSlot as x, createCommentVNode as v, createElementVNode as p, normalizeClass as Y, createVNode as F, normalizeStyle as _ } from "vue";
|
|
2
|
+
import { useVModel as ee } from "@vueuse/core";
|
|
3
|
+
import { Chart as N, ArcElement as te, LineElement as ae, BarElement as oe, PointElement as ie, LineController as le, BarController as re, PieController as ne, ScatterController as se, CategoryScale as de, LinearScale as ue, Filler as ce, Tooltip as pe } from "chart.js";
|
|
4
|
+
import { HoverVerticalLine as me } from "./plugins/HoverVerticalLine.js";
|
|
5
|
+
import { formatValue as H, calcStepSize as he } from "./utils/utils.js";
|
|
6
|
+
import { DEFAULT_TICK_COUNT as fe, DEFAULT_MIN_VISIBLE as ve, DEFAULT_MAX_VISIBLE as ye, COLOR_PALETTE as be, POINT_BORDER_COLOR as ge, TICK_LABEL_COLOR as U, TICK_LABEL_FONT as P, GRID_LINE_COLOR as z } from "./consts.js";
|
|
7
7
|
import { ChartType as n } from "./types.js";
|
|
8
|
-
import { useTooltipPosition as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { hexColorToRgba as
|
|
13
|
-
import { useChartValues as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
const
|
|
8
|
+
import { useTooltipPosition as Te } from "./composables/useTooltipPosition.js";
|
|
9
|
+
import Ce from "./ChartTooltip.vue.js";
|
|
10
|
+
import ke from "./ChartLegend.vue.js";
|
|
11
|
+
import xe from "./ChartHeader.vue.js";
|
|
12
|
+
import { hexColorToRgba as Le } from "../../utils/color.js";
|
|
13
|
+
import { useChartValues as Se } from "./composables/useChartValues.js";
|
|
14
|
+
import we from "./ChartLoader.vue.js";
|
|
15
|
+
import Be from "../emptyState/v4/EmptyStateV4.vue.js";
|
|
16
|
+
import Ie from "./SettingsHeader.vue.js";
|
|
17
|
+
const Ae = { class: "chart-container" }, Ee = { class: "header-wrapper" }, Ve = { class: "chart" }, Re = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "chart-sidebar"
|
|
20
|
-
},
|
|
20
|
+
}, qe = /* @__PURE__ */ q({
|
|
21
21
|
__name: "Chart",
|
|
22
22
|
props: {
|
|
23
23
|
dataSets: { default: () => [] },
|
|
@@ -31,20 +31,20 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
31
31
|
subheader: { default: "" },
|
|
32
32
|
withSubheaderTooltip: { type: Boolean, default: !1 },
|
|
33
33
|
hideLegend: { type: Boolean, default: !1 },
|
|
34
|
-
minVisible: { default:
|
|
35
|
-
maxVisible: { default:
|
|
34
|
+
minVisible: { default: ve },
|
|
35
|
+
maxVisible: { default: ye },
|
|
36
36
|
loading: { type: Boolean, default: !1 },
|
|
37
37
|
noDataIcon: { default: "file-x" },
|
|
38
38
|
noDataTitle: { default: "No data to display" },
|
|
39
39
|
noDataSubtitle: { default: "Search again with different filters" },
|
|
40
40
|
withSettingsHeader: { type: Boolean, default: !0 },
|
|
41
|
-
maxLimitTooltipText: { default: "" }
|
|
41
|
+
maxLimitTooltipText: { default: "" },
|
|
42
|
+
withAnimation: { type: Boolean, default: !0 }
|
|
42
43
|
},
|
|
43
44
|
emits: ["update:chartType", "update:visibleIds"],
|
|
44
45
|
setup(a, { emit: L }) {
|
|
45
46
|
const t = a;
|
|
46
47
|
N.register(
|
|
47
|
-
ee,
|
|
48
48
|
te,
|
|
49
49
|
ae,
|
|
50
50
|
oe,
|
|
@@ -56,30 +56,33 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
56
56
|
de,
|
|
57
57
|
ue,
|
|
58
58
|
ce,
|
|
59
|
-
pe
|
|
59
|
+
pe,
|
|
60
|
+
me
|
|
60
61
|
);
|
|
61
|
-
const c =
|
|
62
|
+
const c = ee(t, "chartType", L), M = l(
|
|
63
|
+
() => t.withAnimation ? "" : "none"
|
|
64
|
+
), m = g(null);
|
|
62
65
|
let s = null;
|
|
63
66
|
const S = l(() => t.dataSets.length === 0), w = l(() => !t.loading && !S.value), y = () => {
|
|
64
67
|
m.value && (s && s.destroy(), s = new N(m.value, I.value));
|
|
65
|
-
},
|
|
66
|
-
s && (s.data.datasets = b.value, s.options = I.value.options, s.update());
|
|
68
|
+
}, $ = () => {
|
|
69
|
+
s && (s.data.datasets = b.value, s.options = I.value.options, s.update(M.value));
|
|
67
70
|
};
|
|
68
|
-
|
|
69
|
-
e && (await
|
|
70
|
-
}), T([() => t.visibleIds, () => t.dataSets],
|
|
71
|
-
const
|
|
71
|
+
J(y), T(() => t.chartType, y), T(w, async (e) => {
|
|
72
|
+
e && (await Q(), y());
|
|
73
|
+
}), T([() => t.visibleIds, () => t.dataSets], $);
|
|
74
|
+
const h = l(
|
|
72
75
|
() => t.chartType === n.StackedLine || t.chartType === n.StackedBar
|
|
73
|
-
),
|
|
76
|
+
), K = l(
|
|
74
77
|
() => t.chartType === n.Line || t.chartType === n.StackedLine
|
|
75
78
|
), B = l(
|
|
76
79
|
() => t.dataSets.filter((e) => t.visibleIds.includes(e.id))
|
|
77
80
|
), b = l(() => B.value.map((e, o) => {
|
|
78
|
-
const i = e.color ||
|
|
81
|
+
const i = e.color || be[o] || "#000000";
|
|
79
82
|
return {
|
|
80
83
|
...e,
|
|
81
|
-
fill:
|
|
82
|
-
backgroundColor:
|
|
84
|
+
fill: h.value ? "start" : void 0,
|
|
85
|
+
backgroundColor: Le(
|
|
83
86
|
i,
|
|
84
87
|
t.chartType === n.StackedLine ? 10 : 70
|
|
85
88
|
),
|
|
@@ -111,7 +114,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
111
114
|
plugins: {
|
|
112
115
|
legend: { display: !1 },
|
|
113
116
|
title: { display: !1 },
|
|
114
|
-
hoverVerticalLine:
|
|
117
|
+
hoverVerticalLine: K.value,
|
|
115
118
|
// tooltip
|
|
116
119
|
tooltip: {
|
|
117
120
|
enabled: !1,
|
|
@@ -121,7 +124,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
121
124
|
},
|
|
122
125
|
callbacks: {
|
|
123
126
|
footer: (e) => {
|
|
124
|
-
const o = e.reduce((i,
|
|
127
|
+
const o = e.reduce((i, j) => i + (j.parsed.y || 0), 0);
|
|
125
128
|
return ["Total", String(o)];
|
|
126
129
|
}
|
|
127
130
|
}
|
|
@@ -149,7 +152,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
149
152
|
borderWidth: 0,
|
|
150
153
|
hoverRadius: 4,
|
|
151
154
|
hoverBorderWidth: 2,
|
|
152
|
-
pointHoverBackgroundColor:
|
|
155
|
+
pointHoverBackgroundColor: ge
|
|
153
156
|
},
|
|
154
157
|
bar: {
|
|
155
158
|
borderRadius: 4
|
|
@@ -160,12 +163,12 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
160
163
|
x: {
|
|
161
164
|
beginAtZero: !0,
|
|
162
165
|
border: { display: !1 },
|
|
163
|
-
stacked:
|
|
166
|
+
stacked: h.value,
|
|
164
167
|
// stack on top of each other
|
|
165
168
|
// ticks
|
|
166
169
|
ticks: {
|
|
167
|
-
color:
|
|
168
|
-
font:
|
|
170
|
+
color: U,
|
|
171
|
+
font: P,
|
|
169
172
|
padding: 4,
|
|
170
173
|
callback: function(e) {
|
|
171
174
|
return H(
|
|
@@ -188,16 +191,16 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
188
191
|
beginAtZero: !0,
|
|
189
192
|
border: { display: !1 },
|
|
190
193
|
// hide left borderline
|
|
191
|
-
stacked:
|
|
194
|
+
stacked: h.value,
|
|
192
195
|
// stack on top of each other
|
|
193
196
|
// ticks
|
|
194
197
|
ticks: {
|
|
195
|
-
color:
|
|
196
|
-
font:
|
|
198
|
+
color: U,
|
|
199
|
+
font: P,
|
|
197
200
|
padding: 8,
|
|
198
|
-
stepSize:
|
|
199
|
-
min:
|
|
200
|
-
max:
|
|
201
|
+
stepSize: R.value,
|
|
202
|
+
min: V.value,
|
|
203
|
+
max: R.value * t.tickCount,
|
|
201
204
|
callback: (e) => H(e, t.yAxisFormat)
|
|
202
205
|
},
|
|
203
206
|
// grid lines
|
|
@@ -210,32 +213,32 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
210
213
|
}
|
|
211
214
|
}
|
|
212
215
|
})
|
|
213
|
-
),
|
|
216
|
+
), W = l(
|
|
214
217
|
() => b.value.reduce((e, o) => (e[o.id] = o.borderColor, e), {})
|
|
215
|
-
),
|
|
218
|
+
), Z = l(() => t.dataSets.map((e) => ({
|
|
216
219
|
id: e.id,
|
|
217
220
|
label: e.label,
|
|
218
221
|
caption: e.caption || null,
|
|
219
|
-
color:
|
|
222
|
+
color: W.value[e.id] || null,
|
|
220
223
|
icon: e.icon || null,
|
|
221
224
|
iconType: e.iconType || "branded"
|
|
222
|
-
}))), A = g(null), r = g(null), { position: E } =
|
|
225
|
+
}))), A = g(null), r = g(null), { position: E } = Te(
|
|
223
226
|
m,
|
|
224
227
|
A,
|
|
225
228
|
r
|
|
226
|
-
),
|
|
229
|
+
), G = l(() => ({
|
|
227
230
|
left: `${E.value.left}px`,
|
|
228
231
|
top: `${E.value.top}px`,
|
|
229
232
|
opacity: r.value?.opacity || 0
|
|
230
|
-
})), { minValue:
|
|
233
|
+
})), { minValue: V, maxValue: X } = Se({
|
|
231
234
|
parsingConfig: t.parsing,
|
|
232
235
|
dataSets: B,
|
|
233
|
-
isStacked:
|
|
234
|
-
}),
|
|
235
|
-
() =>
|
|
236
|
+
isStacked: h
|
|
237
|
+
}), R = l(
|
|
238
|
+
() => he(V.value, X.value, t.tickCount)
|
|
236
239
|
);
|
|
237
240
|
return (e, o) => (d(), C(O, null, [
|
|
238
|
-
a.withSettingsHeader ? (d(),
|
|
241
|
+
a.withSettingsHeader ? (d(), f(Ie, {
|
|
239
242
|
key: 0,
|
|
240
243
|
"chart-type": u(c),
|
|
241
244
|
"onUpdate:chart-type": o[0] || (o[0] = (i) => D(c) ? c.value = i : null),
|
|
@@ -249,13 +252,13 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
249
252
|
]),
|
|
250
253
|
_: 3
|
|
251
254
|
}, 8, ["chart-type", "hide-legend"])) : v("", !0),
|
|
252
|
-
p("div",
|
|
255
|
+
p("div", Ae, [
|
|
253
256
|
u(w) ? (d(), C(O, { key: 0 }, [
|
|
254
257
|
p("section", {
|
|
255
|
-
class:
|
|
258
|
+
class: Y(["chart-content", [{ "with-legend": !a.hideLegend }]])
|
|
256
259
|
}, [
|
|
257
|
-
p("div",
|
|
258
|
-
F(
|
|
260
|
+
p("div", Ee, [
|
|
261
|
+
F(xe, {
|
|
259
262
|
"chart-type": u(c),
|
|
260
263
|
"onUpdate:chart-type": o[1] || (o[1] = (i) => D(c) ? c.value = i : null),
|
|
261
264
|
"with-settings-header": a.withSettingsHeader,
|
|
@@ -269,7 +272,7 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
269
272
|
_: 3
|
|
270
273
|
}, 8, ["chart-type", "with-settings-header", "header", "subheader", "with-subheader-tooltip"])
|
|
271
274
|
]),
|
|
272
|
-
p("div",
|
|
275
|
+
p("div", Ve, [
|
|
273
276
|
p("canvas", {
|
|
274
277
|
ref_key: "chartRef",
|
|
275
278
|
ref: m,
|
|
@@ -279,9 +282,9 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
279
282
|
ref_key: "tooltipRef",
|
|
280
283
|
ref: A,
|
|
281
284
|
class: "chart__tooltip",
|
|
282
|
-
style:
|
|
285
|
+
style: _(u(G))
|
|
283
286
|
}, [
|
|
284
|
-
r.value ? (d(),
|
|
287
|
+
r.value ? (d(), f(Ce, {
|
|
285
288
|
key: 0,
|
|
286
289
|
title: String(r.value.title),
|
|
287
290
|
"data-points": r.value.dataPoints,
|
|
@@ -294,14 +297,14 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
294
297
|
])
|
|
295
298
|
], 2),
|
|
296
299
|
a.hideLegend ? v("", !0) : (d(), C("section", Re, [
|
|
297
|
-
F(
|
|
298
|
-
items: u(
|
|
300
|
+
F(ke, {
|
|
301
|
+
items: u(Z),
|
|
299
302
|
"visible-ids": a.visibleIds,
|
|
300
303
|
"max-limit-tooltip-text": a.maxLimitTooltipText,
|
|
301
304
|
"onUpdate:visibleIds": o[2] || (o[2] = (i) => L("update:visibleIds", i))
|
|
302
305
|
}, null, 8, ["items", "visible-ids", "max-limit-tooltip-text"])
|
|
303
306
|
]))
|
|
304
|
-
], 64)) : a.loading ? (d(),
|
|
307
|
+
], 64)) : a.loading ? (d(), f(we, { key: 1 })) : u(S) ? (d(), f(u(Be), {
|
|
305
308
|
key: 2,
|
|
306
309
|
title: a.noDataTitle,
|
|
307
310
|
subtitle: a.noDataSubtitle,
|
|
@@ -312,5 +315,5 @@ const Ie = { class: "chart-container" }, Ae = { class: "header-wrapper" }, Ee =
|
|
|
312
315
|
}
|
|
313
316
|
});
|
|
314
317
|
export {
|
|
315
|
-
|
|
318
|
+
qe as default
|
|
316
319
|
};
|