@milaboratories/graph-maker 1.1.178 → 1.1.179

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.
@@ -6,17 +6,18 @@ type __VLS_Props = {
6
6
  graphStatus: GraphStatus;
7
7
  allowDeleting?: boolean;
8
8
  hasSettingsSlot?: boolean;
9
+ hasAnnotationsSlot?: boolean;
9
10
  hasLogSlot?: boolean;
10
11
  initialLoading: boolean;
11
12
  modelValue: FormKey | null;
12
13
  };
13
14
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
- delete: (...args: any[]) => void;
15
15
  export: (...args: any[]) => void;
16
+ delete: (...args: any[]) => void;
16
17
  "update:modelValue": (...args: any[]) => void;
17
18
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
- onDelete?: ((...args: any[]) => any) | undefined;
19
19
  onExport?: ((...args: any[]) => any) | undefined;
20
+ onDelete?: ((...args: any[]) => any) | undefined;
20
21
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
21
22
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
23
  export default _default;
@@ -1,46 +1,47 @@
1
- import { defineComponent as g, computed as h, createElementBlock as s, openBlock as a, Fragment as y, renderList as f, createBlock as n, unref as i, normalizeClass as S, withCtx as r, resolveDynamicComponent as v, createElementVNode as x, toDisplayString as B } from "vue";
1
+ import { defineComponent as m, computed as g, createElementBlock as s, openBlock as a, Fragment as y, renderList as f, createBlock as n, unref as i, normalizeClass as S, withCtx as r, resolveDynamicComponent as B, createElementVNode as v, toDisplayString as x } from "vue";
2
2
  import { PlTooltip as V } from "@platforma-sdk/ui-vue";
3
3
  import { tabKeys as C, resolveIcon as T, resolveTitle as L } from "../../forms/index.js";
4
- const b = { class: "settings-tabs" }, D = { style: { "font-family": "var(--font-family-base)" } }, P = /* @__PURE__ */ g({
4
+ const b = { class: "settings-tabs" }, D = { style: { "font-family": "var(--font-family-base)" } }, M = /* @__PURE__ */ m({
5
5
  __name: "index",
6
6
  props: {
7
7
  chartType: {},
8
8
  graphStatus: {},
9
9
  allowDeleting: { type: Boolean },
10
10
  hasSettingsSlot: { type: Boolean },
11
+ hasAnnotationsSlot: { type: Boolean },
11
12
  hasLogSlot: { type: Boolean },
12
13
  initialLoading: { type: Boolean },
13
14
  modelValue: {}
14
15
  },
15
16
  emits: ["update:modelValue", "export", "delete"],
16
- setup(o, { emit: c }) {
17
- const p = c, l = o, d = h(() => C().filter(
18
- (e) => !(e === "settings" && !l.hasSettingsSlot) && !(e === "log" && !l.hasLogSlot) && !(e === "statistics" && l.chartType !== "discrete" && l.chartType !== "scatterplot") && !(e === "delete" && l.allowDeleting)
17
+ setup(l, { emit: c }) {
18
+ const p = c, o = l, d = g(() => C().filter(
19
+ (e) => !(e === "annotations" && !o.hasAnnotationsSlot) && !(e === "settings" && !o.hasSettingsSlot) && !(e === "log" && !o.hasLogSlot) && !(e === "statistics" && o.chartType !== "discrete" && o.chartType !== "scatterplot") && !(e === "delete" && o.allowDeleting)
19
20
  ));
20
21
  function u(e) {
21
- p("update:modelValue", e === l.modelValue ? null : e);
22
+ p("update:modelValue", e === o.modelValue ? null : e);
22
23
  }
23
- return (e, k) => (a(), s("div", b, [
24
+ return (e, w) => (a(), s("div", b, [
24
25
  (a(!0), s(y, null, f(d.value, (t) => (a(), n(i(V), {
25
26
  key: t,
26
27
  "open-delay": 100,
27
28
  "close-delay": 100,
28
29
  class: S(["has-inline-icon", {
29
- active: o.modelValue === t,
30
- "temp-inactive": t === "export" && (o.graphStatus !== "ready" || o.chartType === "scatterplot-umap") || o.initialLoading && (t === "template" || t === "dataMapping" || t === "axes" || t === "statistics" || t === "layers"),
30
+ active: l.modelValue === t,
31
+ "temp-inactive": t === "export" && (l.graphStatus !== "ready" || l.chartType === "scatterplot-umap") || l.initialLoading && (t === "template" || t === "dataMapping" || t === "axes" || t === "statistics" || t === "layers"),
31
32
  [t]: !0
32
33
  }]),
33
34
  position: "left",
34
- hide: o.modelValue === t,
35
- onClick: (m) => {
36
- m.stopPropagation(), t === "export" ? e.$emit("export") : t === "delete" ? e.$emit("delete") : u(t);
35
+ hide: l.modelValue === t,
36
+ onClick: (h) => {
37
+ h.stopPropagation(), t === "export" ? e.$emit("export") : t === "delete" ? e.$emit("delete") : u(t);
37
38
  }
38
39
  }, {
39
40
  tooltip: r(() => [
40
- x("span", D, B(i(L)(t)), 1)
41
+ v("span", D, x(i(L)(t)), 1)
41
42
  ]),
42
43
  default: r(() => [
43
- (a(), n(v(i(T)(t))))
44
+ (a(), n(B(i(T)(t))))
44
45
  ]),
45
46
  _: 2
46
47
  }, 1032, ["class", "hide", "onClick"]))), 128))
@@ -48,6 +49,6 @@ const b = { class: "settings-tabs" }, D = { style: { "font-family": "var(--font-
48
49
  }
49
50
  });
50
51
  export {
51
- P as default
52
+ M as default
52
53
  };
53
54
  //# 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 hasLogSlot?: boolean;\n initialLoading: boolean;\n modelValue: FormKey | null;\n}>();\n\nconst tabs = computed(() => tabKeys().filter((key) =>\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 [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' ? $emit('delete') :\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</template>\n"],"names":["emit","__emit","props","__props","tabs","computed","tabKeys","key","updateModel","v","_openBlock","_createElementBlock","_hoisted_1","_Fragment","_renderList","name","_createBlock","_unref","PlTooltip","e","$emit","_createElementVNode","_hoisted_2","_toDisplayString","resolveTitle","_resolveDynamicComponent","resolveIcon"],"mappings":";;;;;;;;;;;;;;;;AAQA,UAAMA,IAAOC,GAEPC,IAAQC,GAURC,IAAOC,EAAS,MAAMC,EAAA,EAAU;AAAA,MAAO,CAACC,MAC5C,EAAEA,MAAQ,cAAc,CAACL,EAAM,oBAC5B,EAAEK,MAAQ,SAAS,CAACL,EAAM,eAC1B,EAAEK,MAAQ,gBAAgBL,EAAM,cAAc,cAAcA,EAAM,cAAc,kBAChF,EAAEK,MAAQ,YAAYL,EAAM;AAAA,IAAA,CAChC;AAED,aAASM,EAAYC,GAAW;AAC9B,MAAAT,EAAK,qBAAqBS,MAAMP,EAAM,aAAa,OAAOO,CAAC;AAAA,IAC7D;sBAIEC,EAAA,GAAAC,EA8BM,OA9BNC,GA8BM;AAAA,cA7BJD,EA4BYE,GAAA,MAAAC,EA3BOV,EAAA,OAAI,CAAbW,YADVC,EA4BYC,EAAAC,CAAA,GAAA;AAAA,QA1BT,KAAKH;AAAA,QACL,cAAY;AAAA,QACZ,eAAa;AAAA,QACd,UAAM,mBAAiB;AAAA,UACK,QAAAZ,EAAA,eAAeY;AAAA,2BAAyCA,MAAI,aAAkBZ,EAAA,gBAAW,WAAgBA,EAAA,cAAS,uBAAsCA,EAAA,mBAAmBY,MAAI,cAAmBA,uBAA0BA,MAAI,UAAeA,MAAI,gBAAqBA,MAAI;AAAA,WAAyBA,CAAI,GAAA;AAAA,QAAA;QAOrU,UAAS;AAAA,QACR,MAAMZ,EAAA,eAAeY;AAAA,QACrB,UAAQI,MAAO;AAAe,UAAAA,EAAE,gBAAA,GAA2BJ,iBAAoBK,EAAAA,MAAK,QAAA,IAAqBL,iBAAoBK,EAAAA,MAAK,QAAA,IAAqBZ,EAAYO,CAAI;AAAA;;QAQ7J,WACT,MAEO;AAAA,UAFPM,EAEO,QAFPC,GAEOC,EADFN,EAAAO,CAAA,EAAaT,CAAI,CAAA,GAAA,CAAA;AAAA,QAAA;mBAHxB,MAAoC;AAAA,gBAApCC,EAAoCS,EAApBR,EAAAS,CAAA,EAAYX,CAAI,CAAA,CAAA;AAAA,QAAA;;;;;;"}
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 [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' ? $emit('delete') :\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</template>\n"],"names":["emit","__emit","props","__props","tabs","computed","tabKeys","key","updateModel","v","_openBlock","_createElementBlock","_hoisted_1","_Fragment","_renderList","name","_createBlock","_unref","PlTooltip","e","$emit","_createElementVNode","_hoisted_2","_toDisplayString","resolveTitle","_resolveDynamicComponent","resolveIcon"],"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,YAAYL,EAAM;AAAA,IAAA,CAChC;AAED,aAASM,EAAYC,GAAW;AAC9B,MAAAT,EAAK,qBAAqBS,MAAMP,EAAM,aAAa,OAAOO,CAAC;AAAA,IAC7D;sBAIEC,EAAA,GAAAC,EA8BM,OA9BNC,GA8BM;AAAA,cA7BJD,EA4BYE,GAAA,MAAAC,EA3BOV,EAAA,OAAI,CAAbW,YADVC,EA4BYC,EAAAC,CAAA,GAAA;AAAA,QA1BT,KAAKH;AAAA,QACL,cAAY;AAAA,QACZ,eAAa;AAAA,QACd,UAAM,mBAAiB;AAAA,UACK,QAAAZ,EAAA,eAAeY;AAAA,2BAAyCA,MAAI,aAAkBZ,EAAA,gBAAW,WAAgBA,EAAA,cAAS,uBAAsCA,EAAA,mBAAmBY,MAAI,cAAmBA,uBAA0BA,MAAI,UAAeA,MAAI,gBAAqBA,MAAI;AAAA,WAAyBA,CAAI,GAAA;AAAA,QAAA;QAOrU,UAAS;AAAA,QACR,MAAMZ,EAAA,eAAeY;AAAA,QACrB,UAAQI,MAAO;AAAe,UAAAA,EAAE,gBAAA,GAA2BJ,iBAAoBK,EAAAA,MAAK,QAAA,IAAqBL,iBAAoBK,EAAAA,MAAK,QAAA,IAAqBZ,EAAYO,CAAI;AAAA;;QAQ7J,WACT,MAEO;AAAA,UAFPM,EAEO,QAFPC,GAEOC,EADFN,EAAAO,CAAA,EAAaT,CAAI,CAAA,GAAA,CAAA;AAAA,QAAA;mBAHxB,MAAoC;AAAA,gBAApCC,EAAoCS,EAApBR,EAAAS,CAAA,EAAYX,CAAI,CAAA,CAAA;AAAA,QAAA;;;;;;"}
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,16 @@
1
+ import { createElementBlock as r, openBlock as e, renderSlot as s } from "vue";
2
+ import a from "../_virtual/_plugin-vue_export-helper.js";
3
+ const c = {};
4
+ function f(t, o) {
5
+ return e(), r("div", {
6
+ class: "annotations-form",
7
+ onClick: o[0] || (o[0] = (n) => n.stopPropagation())
8
+ }, [
9
+ s(t.$slots, "default")
10
+ ]);
11
+ }
12
+ const m = /* @__PURE__ */ a(c, [["render", f]]);
13
+ export {
14
+ m as default
15
+ };
16
+ //# sourceMappingURL=AnnotationsForm.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnotationsForm.vue.js","sources":["../../src/forms/AnnotationsForm.vue"],"sourcesContent":["<script lang=\"ts\" setup>\n\n</script>\n\n<template>\n <div class=\"annotations-form\" @click=\"(e) => e.stopPropagation()\">\n <slot/>\n </div>\n</template>\n"],"names":["_createElementBlock","_cache","e","_renderSlot","_ctx"],"mappings":";;;;cAKEA,EAEM,OAAA;AAAA,IAFD,OAAM;AAAA,IAAoB,SAAKC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAA,CAAGC,MAAMA,EAAE,gBAAe;AAAA;IAC5DC,EAAOC,EAAA,QAAA,SAAA;AAAA;;;"}
@@ -70,6 +70,27 @@ declare const forms: {
70
70
  component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
71
71
  title: string;
72
72
  };
73
+ annotations: {
74
+ icon: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
75
+ component: {
76
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
77
+ P: {};
78
+ B: {};
79
+ D: {};
80
+ C: {};
81
+ M: {};
82
+ Defaults: {};
83
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
84
+ __isFragment?: never;
85
+ __isTeleport?: never;
86
+ __isSuspense?: never;
87
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
88
+ $slots: {
89
+ default?(_: {}): any;
90
+ };
91
+ });
92
+ title: string;
93
+ };
73
94
  delete: {
74
95
  icon: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
75
96
  component: null;
@@ -1,85 +1,92 @@
1
- import { objects as m } from "@milaboratories/helpers";
2
- import { useComponent as c } from "../composition/useComponent.js";
3
- import p from "../components/SettingsTabs/icons/AxesIcon.vue.js";
4
- import s from "../components/SettingsTabs/icons/DeleteChartIcon.vue.js";
5
- import f from "../components/SettingsTabs/icons/ExportIcon.vue.js";
6
- import a from "../components/SettingsTabs/icons/LayersIcon.vue.js";
7
- import l from "../components/SettingsTabs/icons/LinkIcon.vue.js";
8
- import u from "../components/SettingsTabs/icons/SettingsIcon.vue.js";
9
- import _ from "../components/SettingsTabs/icons/LogIcon.vue.js";
10
- import g from "../icons/StatisticsIcon.vue.js";
11
- import I from "../icons/TemplateIcon.vue.js";
12
- import x from "./AxesSettingsForm/index.vue.js";
13
- import $ from "./DataMappingForm/index.vue.js";
14
- import y from "./LayersForm/index.vue.js";
15
- import L from "./SettingsForm.vue.js";
16
- import S from "./LogForm.vue.js";
17
- import b from "./StatisticsForm/index.vue.js";
1
+ import { objects as r } from "@milaboratories/helpers";
2
+ import c from "../components/SettingsTabs/icons/AxesIcon.vue.js";
3
+ import p from "../components/SettingsTabs/icons/DeleteChartIcon.vue.js";
4
+ import s from "../components/SettingsTabs/icons/ExportIcon.vue.js";
5
+ import f from "../components/SettingsTabs/icons/LayersIcon.vue.js";
6
+ import a from "../components/SettingsTabs/icons/LinkIcon.vue.js";
7
+ import l from "../components/SettingsTabs/icons/LogIcon.vue.js";
8
+ import _ from "../components/SettingsTabs/icons/SettingsIcon.vue.js";
9
+ import { useComponent as u } from "../composition/useComponent.js";
10
+ import g from "../icons/Annotation.vue.js";
11
+ import I from "../icons/StatisticsIcon.vue.js";
12
+ import x from "../icons/TemplateIcon.vue.js";
13
+ import $ from "./AnnotationsForm.vue.js";
14
+ import y from "./AxesSettingsForm/index.vue.js";
15
+ import L from "./DataMappingForm/index.vue.js";
16
+ import S from "./LayersForm/index.vue.js";
17
+ import b from "./LogForm.vue.js";
18
+ import A from "./SettingsForm.vue.js";
19
+ import F from "./StatisticsForm/index.vue.js";
18
20
  import d from "./TemplateForm.vue.js";
19
- const o = {
21
+ const t = {
20
22
  settings: {
21
- icon: u,
22
- component: L,
23
+ icon: _,
24
+ component: A,
23
25
  title: "Settings"
24
26
  },
25
27
  log: {
26
- icon: _,
27
- component: S,
28
+ icon: l,
29
+ component: b,
28
30
  title: "Log"
29
31
  },
30
32
  template: {
31
- icon: I,
33
+ icon: x,
32
34
  component: d,
33
35
  title: "Template"
34
36
  },
35
37
  dataMapping: {
36
- icon: l,
37
- component: $,
38
+ icon: a,
39
+ component: L,
38
40
  title: "Data mapping"
39
41
  },
40
42
  axes: {
41
- icon: p,
42
- component: x,
43
+ icon: c,
44
+ component: y,
43
45
  title: "Axes settings"
44
46
  },
45
47
  statistics: {
46
- icon: g,
47
- component: b,
48
+ icon: I,
49
+ component: F,
48
50
  title: "Statistics"
49
51
  },
50
52
  layers: {
51
- icon: a,
52
- component: y,
53
+ icon: f,
54
+ component: S,
53
55
  title: "Layers"
54
56
  },
57
+ annotations: {
58
+ icon: g,
59
+ component: $,
60
+ title: "Annotations"
61
+ },
55
62
  delete: {
56
- icon: s,
63
+ icon: p,
57
64
  component: null,
58
65
  title: "Delete graph"
59
66
  },
60
67
  export: {
61
- icon: f,
68
+ icon: s,
62
69
  component: null,
63
70
  title: "Export"
64
71
  }
65
72
  };
66
- function G() {
67
- return Object.keys(o);
73
+ function Q() {
74
+ return Object.keys(t);
68
75
  }
69
- function H(t) {
70
- return o[t].icon ?? "";
76
+ function R(o) {
77
+ return t[o].icon ?? "";
71
78
  }
72
- function J(t) {
73
- return o[t].title ?? "";
79
+ function U(o) {
80
+ return t[o].title ?? "";
74
81
  }
75
- function N(t) {
76
- const n = Object.entries(o).reduce((e, [i, r]) => m.setProp(e, i, r.component), {});
77
- return c(n, t);
82
+ function V(o) {
83
+ const n = Object.entries(t).reduce((i, [e, m]) => r.setProp(i, e, m.component), {});
84
+ return u(n, o);
78
85
  }
79
86
  export {
80
- H as resolveIcon,
81
- J as resolveTitle,
82
- G as tabKeys,
83
- N as useSettingsForm
87
+ R as resolveIcon,
88
+ U as resolveTitle,
89
+ Q as tabKeys,
90
+ V as useSettingsForm
84
91
  };
85
92
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/forms/index.ts"],"sourcesContent":["import { objects } from '@milaboratories/helpers';\nimport type { MaybeRef } from '@platforma-sdk/ui-vue';\nimport type { Component } from 'vue';\nimport { useComponent } from '../composition/useComponent';\nimport AxisIcon from '../components/SettingsTabs/icons/AxesIcon.vue';\nimport DeleteChartIcon from '../components/SettingsTabs/icons/DeleteChartIcon.vue';\nimport ExportIcon from '../components/SettingsTabs/icons/ExportIcon.vue';\nimport LayersIcon from '../components/SettingsTabs/icons/LayersIcon.vue';\nimport LinkIcon from '../components/SettingsTabs/icons/LinkIcon.vue';\nimport SettingsIcon from '../components/SettingsTabs/icons/SettingsIcon.vue';\nimport LogIcon from '../components/SettingsTabs/icons/LogIcon.vue';\nimport StatisticsIcon from '../icons/StatisticsIcon.vue';\nimport TemplateIcon from '../icons/TemplateIcon.vue';\nimport AxesSettingsForm from './AxesSettingsForm/index.vue';\nimport DataMappingForm from './DataMappingForm/index.vue';\nimport LayersForm from './LayersForm/index.vue';\nimport SettingsForm from './SettingsForm.vue';\nimport LogForm from './LogForm.vue';\nimport StatisticsForm from './StatisticsForm/index.vue';\nimport TemplateForm from './TemplateForm.vue';\n\nconst forms = {\n settings: {\n icon: SettingsIcon,\n component: SettingsForm,\n title: 'Settings',\n },\n log: {\n icon: LogIcon,\n component: LogForm,\n title: 'Log',\n },\n template: {\n icon: TemplateIcon,\n component: TemplateForm,\n title: 'Template',\n },\n dataMapping: {\n icon: LinkIcon,\n component: DataMappingForm,\n title: 'Data mapping',\n },\n axes: {\n icon: AxisIcon,\n component: AxesSettingsForm,\n title: 'Axes settings',\n },\n statistics: {\n icon: StatisticsIcon,\n component: StatisticsForm,\n title: 'Statistics',\n },\n layers: {\n icon: LayersIcon,\n component: LayersForm,\n title: 'Layers',\n },\n delete: {\n icon: DeleteChartIcon,\n component: null,\n title: 'Delete graph',\n },\n export: {\n icon: ExportIcon,\n component: null,\n title: 'Export',\n },\n};\n\nexport type FormKey = keyof typeof forms;\n\nexport function tabKeys() {\n return Object.keys(forms) as FormKey[];\n}\n\nexport function resolveIcon(name: FormKey): Component {\n return forms[name].icon ?? '';\n}\n\nexport function resolveTitle(name: FormKey) {\n return forms[name].title ?? '';\n}\n\nexport function useSettingsForm(tab: MaybeRef<FormKey | null>) {\n const components = Object.entries(forms).reduce((dict, [name, v]) => {\n return objects.setProp(dict, name as FormKey, v.component);\n }, {} as Record<FormKey, Component | null>);\n return useComponent(components, tab);\n}\n"],"names":["forms","SettingsIcon","SettingsForm","LogIcon","LogForm","TemplateIcon","TemplateForm","LinkIcon","DataMappingForm","AxisIcon","AxesSettingsForm","StatisticsIcon","StatisticsForm","LayersIcon","LayersForm","DeleteChartIcon","ExportIcon","tabKeys","resolveIcon","name","resolveTitle","useSettingsForm","tab","components","dict","v","objects","useComponent"],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,MAAMA,IAAQ;AAAA,EACZ,UAAU;AAAA,IACR,MAAMC;AAAAA,IACN,WAAWC;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,KAAK;AAAA,IACH,MAAMC;AAAAA,IACN,WAAWC;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,UAAU;AAAA,IACR,MAAMC;AAAA,IACN,WAAWC;AAAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,aAAa;AAAA,IACX,MAAMC;AAAA,IACN,WAAWC;AAAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,MAAM;AAAA,IACJ,MAAMC;AAAA,IACN,WAAWC;AAAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,YAAY;AAAA,IACV,MAAMC;AAAA,IACN,WAAWC;AAAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,QAAQ;AAAA,IACN,MAAMC;AAAA,IACN,WAAWC;AAAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,QAAQ;AAAA,IACN,MAAMC;AAAA,IACN,WAAW;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,QAAQ;AAAA,IACN,MAAMC;AAAA,IACN,WAAW;AAAA,IACX,OAAO;AAAA,EAAA;AAEX;AAIO,SAASC,IAAU;AACxB,SAAO,OAAO,KAAKjB,CAAK;AAC1B;AAEO,SAASkB,EAAYC,GAA0B;AACpD,SAAOnB,EAAMmB,CAAI,EAAE,QAAQ;AAC7B;AAEO,SAASC,EAAaD,GAAe;AAC1C,SAAOnB,EAAMmB,CAAI,EAAE,SAAS;AAC9B;AAEO,SAASE,EAAgBC,GAA+B;AAC7D,QAAMC,IAAa,OAAO,QAAQvB,CAAK,EAAE,OAAO,CAACwB,GAAM,CAACL,GAAMM,CAAC,MACtDC,EAAQ,QAAQF,GAAML,GAAiBM,EAAE,SAAS,GACxD,CAAA,CAAuC;AAC1C,SAAOE,EAAaJ,GAAYD,CAAG;AACrC;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/forms/index.ts"],"sourcesContent":["import { objects } from '@milaboratories/helpers';\nimport type { MaybeRef } from '@platforma-sdk/ui-vue';\nimport type { Component } from 'vue';\nimport AxisIcon from '../components/SettingsTabs/icons/AxesIcon.vue';\nimport DeleteChartIcon from '../components/SettingsTabs/icons/DeleteChartIcon.vue';\nimport ExportIcon from '../components/SettingsTabs/icons/ExportIcon.vue';\nimport LayersIcon from '../components/SettingsTabs/icons/LayersIcon.vue';\nimport LinkIcon from '../components/SettingsTabs/icons/LinkIcon.vue';\nimport LogIcon from '../components/SettingsTabs/icons/LogIcon.vue';\nimport SettingsIcon from '../components/SettingsTabs/icons/SettingsIcon.vue';\nimport { useComponent } from '../composition/useComponent';\nimport AnnotationIcon from '../icons/Annotation.vue';\nimport StatisticsIcon from '../icons/StatisticsIcon.vue';\nimport TemplateIcon from '../icons/TemplateIcon.vue';\nimport AnnotationsForm from './AnnotationsForm.vue';\nimport AxesSettingsForm from './AxesSettingsForm/index.vue';\nimport DataMappingForm from './DataMappingForm/index.vue';\nimport LayersForm from './LayersForm/index.vue';\nimport LogForm from './LogForm.vue';\nimport SettingsForm from './SettingsForm.vue';\nimport StatisticsForm from './StatisticsForm/index.vue';\nimport TemplateForm from './TemplateForm.vue';\n\nconst forms = {\n settings: {\n icon: SettingsIcon,\n component: SettingsForm,\n title: 'Settings',\n },\n log: {\n icon: LogIcon,\n component: LogForm,\n title: 'Log',\n },\n template: {\n icon: TemplateIcon,\n component: TemplateForm,\n title: 'Template',\n },\n dataMapping: {\n icon: LinkIcon,\n component: DataMappingForm,\n title: 'Data mapping',\n },\n axes: {\n icon: AxisIcon,\n component: AxesSettingsForm,\n title: 'Axes settings',\n },\n statistics: {\n icon: StatisticsIcon,\n component: StatisticsForm,\n title: 'Statistics',\n },\n layers: {\n icon: LayersIcon,\n component: LayersForm,\n title: 'Layers',\n },\n annotations: {\n icon: AnnotationIcon,\n component: AnnotationsForm,\n title: 'Annotations',\n },\n delete: {\n icon: DeleteChartIcon,\n component: null,\n title: 'Delete graph',\n },\n export: {\n icon: ExportIcon,\n component: null,\n title: 'Export',\n },\n};\n\nexport type FormKey = keyof typeof forms;\n\nexport function tabKeys() {\n return Object.keys(forms) as FormKey[];\n}\n\nexport function resolveIcon(name: FormKey): Component {\n return forms[name].icon ?? '';\n}\n\nexport function resolveTitle(name: FormKey) {\n return forms[name].title ?? '';\n}\n\nexport function useSettingsForm(tab: MaybeRef<FormKey | null>) {\n const components = Object.entries(forms).reduce((dict, [name, v]) => {\n return objects.setProp(dict, name as FormKey, v.component);\n }, {} as Record<FormKey, Component | null>);\n return useComponent(components, tab);\n}\n"],"names":["forms","SettingsIcon","SettingsForm","LogIcon","LogForm","TemplateIcon","TemplateForm","LinkIcon","DataMappingForm","AxisIcon","AxesSettingsForm","StatisticsIcon","StatisticsForm","LayersIcon","LayersForm","AnnotationIcon","AnnotationsForm","DeleteChartIcon","ExportIcon","tabKeys","resolveIcon","name","resolveTitle","useSettingsForm","tab","components","dict","v","objects","useComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,MAAMA,IAAQ;AAAA,EACZ,UAAU;AAAA,IACR,MAAMC;AAAAA,IACN,WAAWC;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,KAAK;AAAA,IACH,MAAMC;AAAAA,IACN,WAAWC;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,UAAU;AAAA,IACR,MAAMC;AAAA,IACN,WAAWC;AAAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,aAAa;AAAA,IACX,MAAMC;AAAA,IACN,WAAWC;AAAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,MAAM;AAAA,IACJ,MAAMC;AAAA,IACN,WAAWC;AAAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,YAAY;AAAA,IACV,MAAMC;AAAA,IACN,WAAWC;AAAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,QAAQ;AAAA,IACN,MAAMC;AAAA,IACN,WAAWC;AAAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,aAAa;AAAA,IACX,MAAMC;AAAAA,IACN,WAAWC;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,QAAQ;AAAA,IACN,MAAMC;AAAA,IACN,WAAW;AAAA,IACX,OAAO;AAAA,EAAA;AAAA,EAET,QAAQ;AAAA,IACN,MAAMC;AAAA,IACN,WAAW;AAAA,IACX,OAAO;AAAA,EAAA;AAEX;AAIO,SAASC,IAAU;AACxB,SAAO,OAAO,KAAKnB,CAAK;AAC1B;AAEO,SAASoB,EAAYC,GAA0B;AACpD,SAAOrB,EAAMqB,CAAI,EAAE,QAAQ;AAC7B;AAEO,SAASC,EAAaD,GAAe;AAC1C,SAAOrB,EAAMqB,CAAI,EAAE,SAAS;AAC9B;AAEO,SAASE,EAAgBC,GAA+B;AAC7D,QAAMC,IAAa,OAAO,QAAQzB,CAAK,EAAE,OAAO,CAAC0B,GAAM,CAACL,GAAMM,CAAC,MACtDC,EAAQ,QAAQF,GAAML,GAAiBM,EAAE,SAAS,GACxD,CAAA,CAAuC;AAC1C,SAAOE,EAAaJ,GAAYD,CAAG;AACrC;"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
2
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { defineComponent as n, createBlock as e, openBlock as o, unref as t } from "vue";
2
+ import { PlIcon24 as r } from "@platforma-sdk/ui-vue";
3
+ const f = /* @__PURE__ */ n({
4
+ __name: "Annotation",
5
+ setup(a) {
6
+ return (c, m) => (o(), e(t(r), { name: "annotate" }));
7
+ }
8
+ });
9
+ export {
10
+ f as default
11
+ };
12
+ //# sourceMappingURL=Annotation.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Annotation.vue.js","sources":["../../src/icons/Annotation.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { PlIcon24 } from '@platforma-sdk/ui-vue';\n\n</script>\n<template>\n <PlIcon24 name=\"annotate\"/>\n</template>\n"],"names":["_createBlock","_unref","PlIcon24"],"mappings":";;;;;2BAKEA,EAA2BC,EAAAC,CAAA,GAAA,EAAjB,MAAK,YAAU;AAAA;;"}
@@ -0,0 +1,5 @@
1
+ import f from "./Annotation.vue.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=Annotation.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Annotation.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -6,6 +6,7 @@ declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
7
7
  slots: {
8
8
  titleLineSlot?(_: {}): any;
9
+ annotationsSlot?(_: {}): any;
9
10
  settingsSlot?(_: {}): any;
10
11
  logSlot?(_: {}): any;
11
12
  };