@milaboratories/graph-maker 1.0.5
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/README.md +18 -0
- package/dist/GraphMaker/components/AesButton.vue.d.ts +36 -0
- package/dist/GraphMaker/components/AesSettings/AesDataMapping.vue.d.ts +30 -0
- package/dist/GraphMaker/components/AesSettings/FixedColorsList.vue.d.ts +48 -0
- package/dist/GraphMaker/components/AesSettings/FixedDotShapeList.vue.d.ts +37 -0
- package/dist/GraphMaker/components/AesSettings/FixedLineTypeList.vue.d.ts +37 -0
- package/dist/GraphMaker/components/AesSettings/FormWrapper.vue.d.ts +30 -0
- package/dist/GraphMaker/components/AesSettings/PalettesForm.vue.d.ts +21 -0
- package/dist/GraphMaker/components/AesSettings/constants.d.ts +29 -0
- package/dist/GraphMaker/components/AesSettings/types.d.ts +34 -0
- package/dist/GraphMaker/components/BtnIconGroup.vue.d.ts +31 -0
- package/dist/GraphMaker/components/Chart.vue.d.ts +25 -0
- package/dist/GraphMaker/components/CollapsableBlock.vue.d.ts +40 -0
- package/dist/GraphMaker/components/DendroTable.vue.d.ts +20 -0
- package/dist/GraphMaker/components/DendroTooltip.vue.d.ts +27 -0
- package/dist/GraphMaker/components/DoubleContourTemp.vue.d.ts +9 -0
- package/dist/GraphMaker/components/DragAndDrop/DndBasket.vue.d.ts +21 -0
- package/dist/GraphMaker/components/DragAndDrop/DndBasketChip.vue.d.ts +23 -0
- package/dist/GraphMaker/components/DragAndDrop/DndChip.vue.d.ts +23 -0
- package/dist/GraphMaker/components/DragAndDrop/DndDoubleChip.vue.d.ts +34 -0
- package/dist/GraphMaker/components/DragAndDrop/types.d.ts +49 -0
- package/dist/GraphMaker/components/MultiselectButton.vue.d.ts +27 -0
- package/dist/GraphMaker/components/PanelModal.vue.d.ts +17 -0
- package/dist/GraphMaker/components/PlColorSlider.vue.d.ts +29 -0
- package/dist/GraphMaker/components/PlColorSliderThumb.vue.d.ts +53 -0
- package/dist/GraphMaker/components/Popup.vue.d.ts +51 -0
- package/dist/GraphMaker/components/SettingsTabs/index.vue.d.ts +27 -0
- package/dist/GraphMaker/components/TransitionSlidePanel.vue.d.ts +11 -0
- package/dist/GraphMaker/components/Zoom/ZoomInput.vue.d.ts +19 -0
- package/dist/GraphMaker/components/Zoom/index.vue.d.ts +2 -0
- package/dist/GraphMaker/composition/useComponent.d.ts +9 -0
- package/dist/GraphMaker/constant.d.ts +191 -0
- package/dist/GraphMaker/dataBindAes.d.ts +53 -0
- package/dist/GraphMaker/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/AxesSettingsForm/index.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/DataMappingForm/DendroForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/DataMappingForm/DiscreteForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/DataMappingForm/FormLayout.vue.d.ts +12 -0
- package/dist/GraphMaker/forms/DataMappingForm/HeatmapForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/DataMappingForm/ScatterplotForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/DataMappingForm/index.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/DataMappingForm/utils.d.ts +33 -0
- package/dist/GraphMaker/forms/LayersForm/AesSelector.vue.d.ts +35 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/Dendro.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/Heatmap.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/Bar.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/BinnedDots.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/Boxplot.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/Errorbar.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/JitteredDots.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/Line.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/Sina.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/StackedBar.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/Violin.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/utils.d.ts +4 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot/Curve.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/scatterplot/Scatter.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/index.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/StatisticsForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/TemplateForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/index.d.ts +41 -0
- package/dist/GraphMaker/helpers.d.ts +1 -0
- package/dist/GraphMaker/icons/ArrowLeft.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/AxesIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/BarAndErrorIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/BarAndLineIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/BarIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/BinnedDotsIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/BoxplotAndBinnedIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/BoxplotAndJitterIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/BoxplotIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/ColorsIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/DendroIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/Down.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/ExportIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/FrameBottom.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/FrameEmpty.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/FrameFull.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/FrameLeft.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/FrameLeftBottom.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/HeatmapIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/JitteredDotsIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/LayersIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/LineAndBinnedIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/LineAndErrorbarIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/LineAndJitterIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/LineIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/LinkIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/MinusIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/PlusIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/Reorder.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/Right.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/Rotation0.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/Rotation45.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/Rotation90.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/ScatterplotIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/SinaIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/StackedBarIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/StatisticsIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/TemplateIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/ViolinAndBinnedIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/ViolinAndJitterIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/ViolinIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/index.vue.d.ts +30 -0
- package/dist/GraphMaker/keys.d.ts +1 -0
- package/dist/GraphMaker/store.d.ts +850 -0
- package/dist/GraphMaker/types.d.ts +53 -0
- package/dist/GraphMaker/utils/calculateDiscreteGroups.d.ts +3 -0
- package/dist/GraphMaker/utils/composeChartSettings.d.ts +10 -0
- package/dist/GraphMaker/utils/copyJSON.d.ts +1 -0
- package/dist/GraphMaker/utils/getAxesDataFromForms.d.ts +19 -0
- package/dist/GraphMaker/utils/getFixedColumnOrAxisIdFromSettings.d.ts +4 -0
- package/dist/GraphMaker/utils/getLayersDataFromForms.d.ts +12 -0
- package/dist/GraphMaker/utils/getStatisticsOptions.d.ts +13 -0
- package/dist/GraphMaker/utils/getUsedAesInMapping.d.ts +5 -0
- package/dist/GraphMaker/utils/index.d.ts +5 -0
- package/dist/GraphMaker/utils/saveToFile.d.ts +1 -0
- package/dist/graph-maker.js +119404 -0
- package/dist/graph-maker.umd.cjs +23761 -0
- package/dist/lib.d.ts +4 -0
- package/dist/main.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +41 -0
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
8
|
+
|
|
9
|
+
## Type Support For `.vue` Imports in TS
|
|
10
|
+
|
|
11
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
12
|
+
|
|
13
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
14
|
+
|
|
15
|
+
1. Disable the built-in TypeScript Extension
|
|
16
|
+
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
17
|
+
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
18
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type AesButtonProps = {
|
|
2
|
+
data: {
|
|
3
|
+
type: "stroke";
|
|
4
|
+
value: string;
|
|
5
|
+
} | {
|
|
6
|
+
type: "fill";
|
|
7
|
+
value: string;
|
|
8
|
+
} | {
|
|
9
|
+
type: "lineType";
|
|
10
|
+
value: string;
|
|
11
|
+
} | {
|
|
12
|
+
type: "dotShape";
|
|
13
|
+
value: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: "size";
|
|
16
|
+
value: number;
|
|
17
|
+
} | {
|
|
18
|
+
type: "data";
|
|
19
|
+
value: null;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AesButtonProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
ref: (...args: any[]) => void;
|
|
24
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AesButtonProps>>> & Readonly<{
|
|
25
|
+
onRef?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
29
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
30
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
31
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
32
|
+
} : {
|
|
33
|
+
type: import('vue').PropType<T[K]>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AestheticMappingCategorical } from '../../dataBindAes.ts';
|
|
2
|
+
import { AesType } from '../../constant.ts';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
dataColumnLabel: string;
|
|
6
|
+
columnValueLabels: Record<string, string>;
|
|
7
|
+
usedAesInMapping: Record<AesType, boolean>;
|
|
8
|
+
modelValue: AestheticMappingCategorical;
|
|
9
|
+
allowReordering?: boolean;
|
|
10
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
dataColumnLabel: string;
|
|
14
|
+
columnValueLabels: Record<string, string>;
|
|
15
|
+
usedAesInMapping: Record<AesType, boolean>;
|
|
16
|
+
modelValue: AestheticMappingCategorical;
|
|
17
|
+
allowReordering?: boolean;
|
|
18
|
+
}>>> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: import('vue').PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { FIXED_COLORS } from './constants.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
modelValue: string;
|
|
5
|
+
colorUsing?: "fill" | "stroke";
|
|
6
|
+
colorsList?: typeof FIXED_COLORS;
|
|
7
|
+
}>, {
|
|
8
|
+
colorUsing: string;
|
|
9
|
+
colorsList: () => {
|
|
10
|
+
name: string;
|
|
11
|
+
color: string;
|
|
12
|
+
}[];
|
|
13
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
"update:modelValue": (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
modelValue: string;
|
|
17
|
+
colorUsing?: "fill" | "stroke";
|
|
18
|
+
colorsList?: typeof FIXED_COLORS;
|
|
19
|
+
}>, {
|
|
20
|
+
colorUsing: string;
|
|
21
|
+
colorsList: () => {
|
|
22
|
+
name: string;
|
|
23
|
+
color: string;
|
|
24
|
+
}[];
|
|
25
|
+
}>>> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
colorUsing: "fill" | "stroke";
|
|
29
|
+
colorsList: typeof FIXED_COLORS;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import('vue').PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
}> : P[K];
|
|
45
|
+
};
|
|
46
|
+
type __VLS_Prettify<T> = {
|
|
47
|
+
[K in keyof T]: T[K];
|
|
48
|
+
} & {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DotShape } from './types.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
modelValue: string;
|
|
5
|
+
list?: DotShape[];
|
|
6
|
+
}>, {
|
|
7
|
+
list: () => DotShape[];
|
|
8
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (...args: any[]) => void;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
modelValue: string;
|
|
12
|
+
list?: DotShape[];
|
|
13
|
+
}>, {
|
|
14
|
+
list: () => DotShape[];
|
|
15
|
+
}>>> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
list: DotShape[];
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
}> : P[K];
|
|
34
|
+
};
|
|
35
|
+
type __VLS_Prettify<T> = {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} & {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LineType } from './types.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
modelValue: string;
|
|
5
|
+
list?: LineType[];
|
|
6
|
+
}>, {
|
|
7
|
+
list: () => LineType[];
|
|
8
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (...args: any[]) => void;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
modelValue: string;
|
|
12
|
+
list?: LineType[];
|
|
13
|
+
}>, {
|
|
14
|
+
list: () => LineType[];
|
|
15
|
+
}>>> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
list: LineType[];
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithDefaults<P, D> = {
|
|
31
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
32
|
+
default: D[K];
|
|
33
|
+
}> : P[K];
|
|
34
|
+
};
|
|
35
|
+
type __VLS_Prettify<T> = {
|
|
36
|
+
[K in keyof T]: T[K];
|
|
37
|
+
} & {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
title: string;
|
|
6
|
+
backTitle: string;
|
|
7
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"form:close": (...args: any[]) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
title: string;
|
|
11
|
+
backTitle: string;
|
|
12
|
+
}>>> & Readonly<{
|
|
13
|
+
"onForm:close"?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Palette } from './types.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
selected: Palette;
|
|
5
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
select: (...args: any[]) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
selected: Palette;
|
|
9
|
+
}>>> & Readonly<{
|
|
10
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CategoricalPalette, DivergingPalette, DotShape, LineType, LineTypeInfo, Palette, PaletteInfo, SequentialPalette } from './types.ts';
|
|
2
|
+
|
|
3
|
+
export declare const FIXED_COLORS: {
|
|
4
|
+
name: string;
|
|
5
|
+
color: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const DEFAULT_WHITE = "#FFFFFF";
|
|
8
|
+
export declare const DEFAULT_BLACK = "#110529";
|
|
9
|
+
export declare const FIXED_COLORS_MAP: Record<string, {
|
|
10
|
+
name: string;
|
|
11
|
+
color: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const CATEGORICAL_LIST: CategoricalPalette[];
|
|
14
|
+
export declare const SEQUENTIAL_LIST: SequentialPalette[];
|
|
15
|
+
export declare const DIVERGING_LIST: DivergingPalette[];
|
|
16
|
+
export declare function isCategorical(value: Palette): value is CategoricalPalette;
|
|
17
|
+
export declare function isSequential(value: Palette): value is SequentialPalette;
|
|
18
|
+
export declare function isDiverging(value: Palette): value is DivergingPalette;
|
|
19
|
+
export declare const CATEGORICAL_MAP: Record<CategoricalPalette, PaletteInfo>;
|
|
20
|
+
export declare const SEQUENTIAL_MAP: Record<SequentialPalette, PaletteInfo>;
|
|
21
|
+
export declare const DIVERGING_MAP: Record<DivergingPalette, PaletteInfo>;
|
|
22
|
+
export declare const PALETTE_MAP: Record<Palette, PaletteInfo>;
|
|
23
|
+
export declare const DEFAULT_PALETTE: Palette;
|
|
24
|
+
export declare const FIXES_DOT_SHAPES: DotShape[];
|
|
25
|
+
export declare const UNKNOWN_COLOR = "#F0F0F0";
|
|
26
|
+
export declare const DEFAULT_DOT_SHAPE = "21";
|
|
27
|
+
export declare const FIXED_LINE_TYPES: LineType[];
|
|
28
|
+
export declare const DEFAULT_LINE_TYPE: LineType;
|
|
29
|
+
export declare const LINE_TYPES_MAP: Record<LineType, LineTypeInfo>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ColumnOrAxisData } from '@milaboratories/pf-plots';
|
|
2
|
+
import { AestheticMappingCategorical } from '../../dataBindAes.ts';
|
|
3
|
+
|
|
4
|
+
export type PaletteData = string[];
|
|
5
|
+
export type PaletteInfo = {
|
|
6
|
+
title: string;
|
|
7
|
+
colors: PaletteData;
|
|
8
|
+
};
|
|
9
|
+
export type CategoricalPalette = "light" | "bright" | "dark" | "paired" | "triadic";
|
|
10
|
+
export type SequentialPalette = "viridis" | "magma" | "density" | "salinity" | "sunset" | "perceptual_rainbow";
|
|
11
|
+
export type DivergingPalette = "spectrum" | "teal_red" | "blue_red" | "lime_rose" | "viridis_magma";
|
|
12
|
+
export type ContinuousPalette = SequentialPalette | DivergingPalette;
|
|
13
|
+
export type Palette = CategoricalPalette | ContinuousPalette;
|
|
14
|
+
export type AesMappingOption = {
|
|
15
|
+
type: "data";
|
|
16
|
+
value: string;
|
|
17
|
+
initialData: AestheticMappingCategorical;
|
|
18
|
+
inputName: string;
|
|
19
|
+
selectedSource: string;
|
|
20
|
+
selectedSourceValues: string[];
|
|
21
|
+
selectedSourceInfo: ColumnOrAxisData | null;
|
|
22
|
+
labels: Record<string, string>;
|
|
23
|
+
};
|
|
24
|
+
export type AesFixedOption = {
|
|
25
|
+
type: "fix";
|
|
26
|
+
value: "fix";
|
|
27
|
+
initialData: string | DotShape | LineType;
|
|
28
|
+
};
|
|
29
|
+
export type AesOption = AesFixedOption | AesMappingOption;
|
|
30
|
+
export type DotShape = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "21" | "22" | "23" | "24" | "25";
|
|
31
|
+
export type LineType = "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash";
|
|
32
|
+
export type LineTypeInfo = {
|
|
33
|
+
title: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
modelValue: unknown;
|
|
5
|
+
options: {
|
|
6
|
+
value: string | number;
|
|
7
|
+
icon: Component;
|
|
8
|
+
}[];
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
modelValue: unknown;
|
|
14
|
+
options: {
|
|
15
|
+
value: string | number;
|
|
16
|
+
icon: Component;
|
|
17
|
+
}[];
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}>>> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
empty: boolean;
|
|
3
|
+
graphTitle: string;
|
|
4
|
+
chartData: Record<string, unknown> | null;
|
|
5
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"graph-title-update": (...args: any[]) => void;
|
|
7
|
+
"dendro-node-select": (...args: any[]) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
empty: boolean;
|
|
10
|
+
graphTitle: string;
|
|
11
|
+
chartData: Record<string, unknown> | null;
|
|
12
|
+
}>>> & Readonly<{
|
|
13
|
+
"onGraph-title-update"?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
"onDendro-node-select"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
iconOpen?: Component;
|
|
8
|
+
icon?: Component;
|
|
9
|
+
title: string;
|
|
10
|
+
settings?: {
|
|
11
|
+
defaultState?: "open" | "close";
|
|
12
|
+
height?: number;
|
|
13
|
+
horizontalPadding?: number;
|
|
14
|
+
};
|
|
15
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
iconOpen?: Component;
|
|
17
|
+
icon?: Component;
|
|
18
|
+
title: string;
|
|
19
|
+
settings?: {
|
|
20
|
+
defaultState?: "open" | "close";
|
|
21
|
+
height?: number;
|
|
22
|
+
horizontalPadding?: number;
|
|
23
|
+
};
|
|
24
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: import('vue').PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
chartData: Record<string, unknown> | null;
|
|
4
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"row-select": (...args: any[]) => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
+
chartData: Record<string, unknown> | null;
|
|
8
|
+
}>>> & Readonly<{
|
|
9
|
+
"onRow-select"?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
info: {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
info: Record<string, string | number>;
|
|
6
|
+
};
|
|
7
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
close: (...args: any[]) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
info: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
info: Record<string, string | number>;
|
|
14
|
+
};
|
|
15
|
+
}>>> & Readonly<{
|
|
16
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
}>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
6
|
+
new (): {
|
|
7
|
+
$slots: S;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DndBasketProps } from './types.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DndBasketProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
"drop-item": (data: import('./types.ts').DropItemEvent<any>) => void;
|
|
5
|
+
"remove-item": (data: import('./types.ts').RemoveItemEvent<any>) => void;
|
|
6
|
+
"select-filter-value": (data: import('./types.ts').SelectFilterValueEvent) => void;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DndBasketProps>>> & Readonly<{
|
|
8
|
+
"onDrop-item"?: ((data: import('./types.ts').DropItemEvent<any>) => any) | undefined;
|
|
9
|
+
"onRemove-item"?: ((data: import('./types.ts').RemoveItemEvent<any>) => any) | undefined;
|
|
10
|
+
"onSelect-filter-value"?: ((data: import('./types.ts').SelectFilterValueEvent) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ChipInfo } from './types.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
error: boolean;
|
|
5
|
+
info: ChipInfo;
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"close-chip": (item: string) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
error: boolean;
|
|
10
|
+
info: ChipInfo;
|
|
11
|
+
}>>> & Readonly<{
|
|
12
|
+
"onClose-chip"?: ((item: string) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ChipInfo } from './types.ts';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
info: ChipInfo;
|
|
5
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
dragstart: (item: string) => void;
|
|
7
|
+
dragend: (item: string) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
info: ChipInfo;
|
|
10
|
+
}>>> & Readonly<{
|
|
11
|
+
onDragstart?: ((item: string) => any) | undefined;
|
|
12
|
+
onDragend?: ((item: string) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ChipInfo } from './types.ts';
|
|
2
|
+
import { ListOption } from '@milaboratories/uikit';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
id: ChipInfo["id"];
|
|
6
|
+
title: string;
|
|
7
|
+
options: ListOption[];
|
|
8
|
+
type: "string" | "number";
|
|
9
|
+
modelValue: unknown;
|
|
10
|
+
error: boolean;
|
|
11
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"close-chip": (id: string) => void;
|
|
13
|
+
"update:modelValue": (id: unknown) => void;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
+
id: ChipInfo["id"];
|
|
16
|
+
title: string;
|
|
17
|
+
options: ListOption[];
|
|
18
|
+
type: "string" | "number";
|
|
19
|
+
modelValue: unknown;
|
|
20
|
+
error: boolean;
|
|
21
|
+
}>>> & Readonly<{
|
|
22
|
+
"onClose-chip"?: ((id: string) => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((id: unknown) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export type ChipInfo = {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
type: 'string' | 'number';
|
|
7
|
+
nonHomogenous: boolean;
|
|
8
|
+
availableBasketIds: Set<string>;
|
|
9
|
+
uniqueValues: string[];
|
|
10
|
+
valueLabels: Record<string, string>;
|
|
11
|
+
};
|
|
12
|
+
export type DndBasketProps<T = any> = {
|
|
13
|
+
id: T;
|
|
14
|
+
title: string;
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
isFilter?: boolean;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
consistency: Record<string, boolean>;
|
|
20
|
+
droppedIds: string[];
|
|
21
|
+
availableIds: Set<string>;
|
|
22
|
+
selectedFilters?: Record<string, string>;
|
|
23
|
+
info: Record<string, ChipInfo>;
|
|
24
|
+
draggedId: string | null;
|
|
25
|
+
};
|
|
26
|
+
export type DropItemEvent<T = any> = {
|
|
27
|
+
draggedId: string;
|
|
28
|
+
id: DndBasketProps<T>['id'];
|
|
29
|
+
};
|
|
30
|
+
export type RemoveItemEvent<T = any> = {
|
|
31
|
+
chipId: ChipInfo['id'];
|
|
32
|
+
basketId: DndBasketProps<T>['id'];
|
|
33
|
+
};
|
|
34
|
+
export type SelectFilterValueEvent = {
|
|
35
|
+
v: any;
|
|
36
|
+
idx: any;
|
|
37
|
+
};
|
|
38
|
+
export type DndBasketEmits = {
|
|
39
|
+
(e: 'drop-item', data: DropItemEvent): void;
|
|
40
|
+
(e: 'remove-item', data: RemoveItemEvent): void;
|
|
41
|
+
(e: 'select-filter-value', data: SelectFilterValueEvent): void;
|
|
42
|
+
};
|
|
43
|
+
export type BasketProps<T extends Ref = Ref, Q = keyof T['value']> = DndBasketProps<Q> & {
|
|
44
|
+
listeners: {
|
|
45
|
+
'drop-item': (data: DropItemEvent) => void;
|
|
46
|
+
'remove-item': (data: RemoveItemEvent) => void;
|
|
47
|
+
'select-filter-value'?: (data: SelectFilterValueEvent) => void;
|
|
48
|
+
};
|
|
49
|
+
};
|