@milaboratories/graph-maker 1.1.207 → 1.1.208
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.
|
@@ -19,6 +19,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
19
19
|
onExport?: ((...args: any[]) => any) | undefined;
|
|
20
20
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
21
21
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
22
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
export default _default;
|
|
24
24
|
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsTabs/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsTabs/index.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5B,CAAC;;;;;;;;;;AA8MF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { PlTooltip as
|
|
3
|
-
import { tabKeys as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as x, computed as D, ref as P, createElementBlock as c, openBlock as r, Fragment as g, createElementVNode as u, createVNode as d, renderList as T, createBlock as m, unref as n, normalizeClass as M, withCtx as o, resolveDynamicComponent as b, toDisplayString as w, withModifiers as y, createTextVNode as p } from "vue";
|
|
2
|
+
import { PlTooltip as L, PlDialogModal as k, PlAlert as A, PlBtnPrimary as N, PlBtnGhost as E } from "@platforma-sdk/ui-vue";
|
|
3
|
+
import { tabKeys as j, resolveIcon as z, resolveTitle as F } from "../../forms/index.js";
|
|
4
|
+
const G = { class: "settings-tabs" }, I = { style: { "font-family": "var(--font-family-base)" } }, $ = /* @__PURE__ */ x({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
chartType: {},
|
|
@@ -14,41 +14,86 @@ const b = { class: "settings-tabs" }, D = { style: { "font-family": "var(--font-
|
|
|
14
14
|
modelValue: {}
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:modelValue", "export", "delete"],
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
(e) => !(e === "annotations" && !
|
|
17
|
+
setup(a, { emit: h }) {
|
|
18
|
+
const f = h, i = a, v = D(() => j().filter(
|
|
19
|
+
(e) => !(e === "annotations" && !i.hasAnnotationsSlot) && !(e === "settings" && !i.hasSettingsSlot) && !(e === "log" && !i.hasLogSlot) && !(e === "statistics" && i.chartType !== "discrete" && i.chartType !== "scatterplot") && !(e === "delete" && !i.allowDeleting)
|
|
20
20
|
));
|
|
21
|
-
function
|
|
22
|
-
|
|
21
|
+
function C(e) {
|
|
22
|
+
f("update:modelValue", e === i.modelValue ? null : e);
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
24
|
+
const s = P(!1);
|
|
25
|
+
function S() {
|
|
26
|
+
s.value = !1, f("delete");
|
|
27
|
+
}
|
|
28
|
+
function V() {
|
|
29
|
+
s.value = !1;
|
|
30
|
+
}
|
|
31
|
+
return (e, l) => (r(), c(g, null, [
|
|
32
|
+
u("div", G, [
|
|
33
|
+
(r(!0), c(g, null, T(v.value, (t) => (r(), m(n(L), {
|
|
34
|
+
key: t,
|
|
35
|
+
"open-delay": 100,
|
|
36
|
+
"close-delay": 100,
|
|
37
|
+
class: M(["has-inline-icon", {
|
|
38
|
+
active: a.modelValue === t,
|
|
39
|
+
"temp-inactive": t === "export" && (a.graphStatus !== "ready" || a.chartType === "scatterplot-umap") || a.initialLoading && (t === "template" || t === "dataMapping" || t === "axes" || t === "statistics" || t === "layers") || a.graphStatus === "noPframe" && t !== "settings" && t !== "log" && t !== "delete",
|
|
40
|
+
[t]: !0
|
|
41
|
+
}]),
|
|
42
|
+
position: "left",
|
|
43
|
+
hide: a.modelValue === t,
|
|
44
|
+
onClick: (B) => {
|
|
45
|
+
B.stopPropagation(), t === "export" ? e.$emit("export") : t === "delete" ? s.value = !0 : C(t);
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
tooltip: o(() => [
|
|
49
|
+
u("span", I, w(n(F)(t)), 1)
|
|
50
|
+
]),
|
|
51
|
+
default: o(() => [
|
|
52
|
+
(r(), m(b(n(z)(t))))
|
|
53
|
+
]),
|
|
54
|
+
_: 2
|
|
55
|
+
}, 1032, ["class", "hide", "onClick"]))), 128))
|
|
56
|
+
]),
|
|
57
|
+
d(n(k), {
|
|
58
|
+
modelValue: s.value,
|
|
59
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => s.value = t)
|
|
39
60
|
}, {
|
|
40
|
-
|
|
41
|
-
|
|
61
|
+
title: o(() => [...l[1] || (l[1] = [
|
|
62
|
+
p("Delete chart?", -1)
|
|
63
|
+
])]),
|
|
64
|
+
actions: o(() => [
|
|
65
|
+
d(n(N), {
|
|
66
|
+
onClick: y(S, ["stop"])
|
|
67
|
+
}, {
|
|
68
|
+
default: o(() => [...l[3] || (l[3] = [
|
|
69
|
+
p(" Delete ", -1)
|
|
70
|
+
])]),
|
|
71
|
+
_: 1
|
|
72
|
+
}),
|
|
73
|
+
d(n(E), {
|
|
74
|
+
"justify-center": !1,
|
|
75
|
+
onClick: y(V, ["stop"])
|
|
76
|
+
}, {
|
|
77
|
+
default: o(() => [...l[4] || (l[4] = [
|
|
78
|
+
p("Cancel", -1)
|
|
79
|
+
])]),
|
|
80
|
+
_: 1
|
|
81
|
+
})
|
|
42
82
|
]),
|
|
43
|
-
default:
|
|
44
|
-
(
|
|
83
|
+
default: o(() => [
|
|
84
|
+
d(n(A), { type: "warn" }, {
|
|
85
|
+
default: o(() => [...l[2] || (l[2] = [
|
|
86
|
+
u("strong", null, "This can't be undone!", -1)
|
|
87
|
+
])]),
|
|
88
|
+
_: 1
|
|
89
|
+
})
|
|
45
90
|
]),
|
|
46
|
-
_:
|
|
47
|
-
},
|
|
48
|
-
]));
|
|
91
|
+
_: 1
|
|
92
|
+
}, 8, ["modelValue"])
|
|
93
|
+
], 64));
|
|
49
94
|
}
|
|
50
95
|
});
|
|
51
96
|
export {
|
|
52
|
-
|
|
97
|
+
$ as default
|
|
53
98
|
};
|
|
54
99
|
//# sourceMappingURL=index.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.js","sources":["../../../src/components/SettingsTabs/index.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { ChartType } from '@milaboratories/pf-plots';\nimport { PlTooltip } from '@platforma-sdk/ui-vue';\nimport { computed } from 'vue';\nimport type { FormKey } from '../../forms';\nimport { resolveIcon, resolveTitle, tabKeys } from '../../forms';\nimport type { GraphStatus } from '../../types';\n\nconst emit = defineEmits(['update:modelValue', 'export', 'delete']);\n\nconst props = defineProps<{\n chartType: ChartType;\n graphStatus: GraphStatus;\n allowDeleting?: boolean;\n hasSettingsSlot?: boolean;\n hasAnnotationsSlot?: boolean;\n hasLogSlot?: boolean;\n initialLoading: boolean;\n modelValue: FormKey | null;\n}>();\n\nconst tabs = computed(() => tabKeys().filter((key) =>\n !(key === 'annotations' && !props.hasAnnotationsSlot)\n && !(key === 'settings' && !props.hasSettingsSlot)\n && !(key === 'log' && !props.hasLogSlot)\n && !(key === 'statistics' && props.chartType !== 'discrete' && props.chartType !== 'scatterplot')\n && !(key === 'delete' && !props.allowDeleting),\n));\n\nfunction updateModel(v: string) {\n emit('update:modelValue', v === props.modelValue ? null : v);\n}\n</script>\n\n<template>\n <div class=\"settings-tabs\">\n <PlTooltip\n v-for=\"(name) in tabs\"\n :key=\"name\"\n :open-delay=\"100\"\n :close-delay=\"100\"\n class=\"has-inline-icon\"\n :class=\"{\n 'active': modelValue === name,\n 'temp-inactive':\n name === 'export' && (graphStatus !== 'ready' || chartType === 'scatterplot-umap') ||\n initialLoading && (name === 'template' || name === 'dataMapping' || name === 'axes' || name === 'statistics' || name === 'layers') ||\n graphStatus === 'noPframe' && (name !== 'settings' && name !== 'log' && name !== 'delete'),\n [name]: true\n }\"\n position=\"left\"\n :hide=\"modelValue === name\"\n @click=\"(e:Event) => {\n e.stopPropagation();\n name === 'export' ? $emit('export') :\n name === 'delete' ?
|
|
1
|
+
{"version":3,"file":"index.vue.js","sources":["../../../src/components/SettingsTabs/index.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport type { ChartType } from '@milaboratories/pf-plots';\nimport { PlTooltip, PlDialogModal, PlAlert, PlBtnPrimary, PlBtnGhost } from '@platforma-sdk/ui-vue';\nimport { computed, ref } from 'vue';\nimport type { FormKey } from '../../forms';\nimport { resolveIcon, resolveTitle, tabKeys } from '../../forms';\nimport type { GraphStatus } from '../../types';\n\nconst emit = defineEmits(['update:modelValue', 'export', 'delete']);\n\nconst props = defineProps<{\n chartType: ChartType;\n graphStatus: GraphStatus;\n allowDeleting?: boolean;\n hasSettingsSlot?: boolean;\n hasAnnotationsSlot?: boolean;\n hasLogSlot?: boolean;\n initialLoading: boolean;\n modelValue: FormKey | null;\n}>();\n\nconst tabs = computed(() => tabKeys().filter((key) =>\n !(key === 'annotations' && !props.hasAnnotationsSlot)\n && !(key === 'settings' && !props.hasSettingsSlot)\n && !(key === 'log' && !props.hasLogSlot)\n && !(key === 'statistics' && props.chartType !== 'discrete' && props.chartType !== 'scatterplot')\n && !(key === 'delete' && !props.allowDeleting),\n));\n\nfunction updateModel(v: string) {\n emit('update:modelValue', v === props.modelValue ? null : v);\n}\n\nconst deletingConfirmationModalOpen = ref<boolean>(false);\nfunction onDelete() {\n deletingConfirmationModalOpen.value = false;\n emit('delete');\n}\nfunction onConfirmationModalClose() {\n deletingConfirmationModalOpen.value = false;\n}\n</script>\n\n<template>\n <div class=\"settings-tabs\">\n <PlTooltip\n v-for=\"(name) in tabs\"\n :key=\"name\"\n :open-delay=\"100\"\n :close-delay=\"100\"\n class=\"has-inline-icon\"\n :class=\"{\n 'active': modelValue === name,\n 'temp-inactive':\n name === 'export' && (graphStatus !== 'ready' || chartType === 'scatterplot-umap') ||\n initialLoading && (name === 'template' || name === 'dataMapping' || name === 'axes' || name === 'statistics' || name === 'layers') ||\n graphStatus === 'noPframe' && (name !== 'settings' && name !== 'log' && name !== 'delete'),\n [name]: true\n }\"\n position=\"left\"\n :hide=\"modelValue === name\"\n @click=\"(e:Event) => {\n e.stopPropagation();\n name === 'export' ? $emit('export') :\n name === 'delete' ? deletingConfirmationModalOpen = true :\n updateModel(name)\n }\"\n >\n <component :is=\"resolveIcon(name)\"/>\n <template #tooltip>\n <span style=\"font-family: var(--font-family-base);\">\n {{ resolveTitle(name) }}\n </span>\n </template>\n </PlTooltip>\n </div>\n <PlDialogModal v-model=\"deletingConfirmationModalOpen\">\n <template #title>Delete chart?</template>\n <PlAlert type=\"warn\">\n <strong>This can't be undone!</strong>\n </PlAlert>\n <template #actions>\n <PlBtnPrimary @click.stop=\"onDelete\"> Delete </PlBtnPrimary>\n <PlBtnGhost :justify-center=\"false\" @click.stop=\"onConfirmationModalClose\">Cancel</PlBtnGhost>\n </template>\n </PlDialogModal>\n</template>\n"],"names":["emit","__emit","props","__props","tabs","computed","tabKeys","key","updateModel","v","deletingConfirmationModalOpen","ref","onDelete","onConfirmationModalClose","_createElementVNode","_hoisted_1","_createElementBlock","_Fragment","_renderList","name","_createBlock","_unref","PlTooltip","e","$emit","_hoisted_2","_toDisplayString","resolveTitle","_resolveDynamicComponent","resolveIcon","_createVNode","PlDialogModal","$event","_cache","PlBtnPrimary","PlBtnGhost","PlAlert"],"mappings":";;;;;;;;;;;;;;;;;AAQA,UAAMA,IAAOC,GAEPC,IAAQC,GAWRC,IAAOC,EAAS,MAAMC,EAAA,EAAU;AAAA,MAAO,CAACC,MAC5C,EAAEA,MAAQ,iBAAiB,CAACL,EAAM,uBAC/B,EAAEK,MAAQ,cAAc,CAACL,EAAM,oBAC/B,EAAEK,MAAQ,SAAS,CAACL,EAAM,eAC1B,EAAEK,MAAQ,gBAAgBL,EAAM,cAAc,cAAcA,EAAM,cAAc,kBAChF,EAAEK,MAAQ,YAAY,CAACL,EAAM;AAAA,IAAA,CACjC;AAED,aAASM,EAAYC,GAAW;AAC9B,MAAAT,EAAK,qBAAqBS,MAAMP,EAAM,aAAa,OAAOO,CAAC;AAAA,IAC7D;AAEA,UAAMC,IAAgCC,EAAa,EAAK;AACxD,aAASC,IAAW;AAClB,MAAAF,EAA8B,QAAQ,IACtCV,EAAK,QAAQ;AAAA,IACf;AACA,aAASa,IAA2B;AAClC,MAAAH,EAA8B,QAAQ;AAAA,IACxC;;MAIEI,EA+BM,OA/BNC,GA+BM;AAAA,gBA9BJC,EA6BYC,GAAA,MAAAC,EA5BOd,EAAA,OAAI,CAAbe,YADVC,EA6BYC,EAAAC,CAAA,GAAA;AAAA,UA3BT,KAAKH;AAAA,UACL,cAAY;AAAA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