@milaboratories/graph-maker 1.1.182 → 1.1.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue.d.ts +1 -3
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue.js +7 -323
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue.js.map +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue2.js +215 -2
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue2.js.map +1 -1
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue3.js +11 -0
- package/dist/components/AesSettings/AesDataMappingDiscrete.vue3.js.map +1 -0
- package/dist/components/AesSettings/DiscreteRow.vue.d.ts +27 -0
- package/dist/components/AesSettings/DiscreteRow.vue.js +10 -0
- package/dist/components/AesSettings/DiscreteRow.vue.js.map +1 -0
- package/dist/components/AesSettings/DiscreteRow.vue2.js +159 -0
- package/dist/components/AesSettings/DiscreteRow.vue2.js.map +1 -0
- package/dist/components/AesSettings/DiscreteRow.vue3.js +19 -0
- package/dist/components/AesSettings/DiscreteRow.vue3.js.map +1 -0
- package/dist/components/ReorderForm.vue.d.ts +1 -3
- package/dist/components/ReorderForm.vue.js +7 -43
- package/dist/components/ReorderForm.vue.js.map +1 -1
- package/dist/components/ReorderForm.vue2.js +50 -2
- package/dist/components/ReorderForm.vue2.js.map +1 -1
- package/dist/components/ReorderForm.vue3.js +11 -0
- package/dist/components/ReorderForm.vue3.js.map +1 -0
- package/dist/forms/AxesSettingsForm/DiscreteAxesSettingsForm.vue.js +20 -20
- package/dist/forms/AxesSettingsForm/ScatterplotAxesSettingsForm.vue.js +53 -53
- package/dist/forms/LayersForm/AesSelector.vue.js +29 -29
- package/dist/utils/createChartSettingsForRender/getLayersDataFromForms.js +49 -52
- package/dist/utils/createChartSettingsForRender/getLayersDataFromForms.js.map +1 -1
- package/package.json +2 -2
- package/dist/icons/Reorder.vue.d.ts +0 -2
- package/dist/icons/Reorder.vue.js +0 -19
- package/dist/icons/Reorder.vue.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AesDataMappingDiscrete.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Palette, DotShape, LineType } from './types';
|
|
2
|
+
import { AesType } from '../../constantsCommon';
|
|
3
|
+
type EditableAesType = 'color' | 'dotShape' | 'lineType';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
item: {
|
|
6
|
+
text: string;
|
|
7
|
+
value: string;
|
|
8
|
+
dotShape?: DotShape;
|
|
9
|
+
color?: string;
|
|
10
|
+
lineType?: LineType;
|
|
11
|
+
};
|
|
12
|
+
activeValue: string | null;
|
|
13
|
+
activeAesType: EditableAesType | null;
|
|
14
|
+
usedAesInMapping: Record<AesType, boolean>;
|
|
15
|
+
palette: Palette;
|
|
16
|
+
allowReordering: boolean;
|
|
17
|
+
allowHiding: boolean;
|
|
18
|
+
hidden: boolean;
|
|
19
|
+
isCategorical: boolean;
|
|
20
|
+
onAesValueUpdate: (field: string, value: string | DotShape | LineType) => void;
|
|
21
|
+
onSwitchVisibility: () => void;
|
|
22
|
+
onActiveValueChange: (value: string | null) => void;
|
|
23
|
+
onActiveAesTypeChange: (value: EditableAesType | null) => void;
|
|
24
|
+
onCloseForm: () => void;
|
|
25
|
+
};
|
|
26
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import s from "./DiscreteRow.vue2.js";
|
|
2
|
+
import o from "./DiscreteRow.vue3.js";
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = {
|
|
5
|
+
$style: o
|
|
6
|
+
}, f = /* @__PURE__ */ t(s, [["__cssModules", e]]);
|
|
7
|
+
export {
|
|
8
|
+
f as default
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=DiscreteRow.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiscreteRow.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { defineComponent as $, computed as T, reactive as S, createElementBlock as m, openBlock as o, normalizeClass as a, createElementVNode as s, toDisplayString as k, createBlock as d, createCommentVNode as u, unref as V, withCtx as r, withModifiers as y, createVNode as C, normalizeStyle as p } from "vue";
|
|
2
|
+
import { PALETTE_MAP as h, FIXED_LINE_TYPES as w, FIXES_DOT_SHAPES as F } from "../../constantsAesthetic.js";
|
|
3
|
+
import { getPopupHeightForFixedAesList as E } from "../../utils/getPopupHeightForFixedAesList.js";
|
|
4
|
+
import { PlTooltip as I, PlIcon24 as P } from "@platforma-sdk/ui-vue";
|
|
5
|
+
import B from "../Popup.vue.js";
|
|
6
|
+
import M from "./FixedLineTypeList.vue.js";
|
|
7
|
+
import U from "./FixedDotShapeList.vue.js";
|
|
8
|
+
import R from "./FixedColorsList.vue.js";
|
|
9
|
+
const G = /* @__PURE__ */ $({
|
|
10
|
+
__name: "DiscreteRow",
|
|
11
|
+
props: {
|
|
12
|
+
item: {},
|
|
13
|
+
activeValue: {},
|
|
14
|
+
activeAesType: {},
|
|
15
|
+
usedAesInMapping: {},
|
|
16
|
+
palette: {},
|
|
17
|
+
allowReordering: { type: Boolean },
|
|
18
|
+
allowHiding: { type: Boolean },
|
|
19
|
+
hidden: { type: Boolean },
|
|
20
|
+
isCategorical: { type: Boolean },
|
|
21
|
+
onAesValueUpdate: { type: Function },
|
|
22
|
+
onSwitchVisibility: { type: Function },
|
|
23
|
+
onActiveValueChange: { type: Function },
|
|
24
|
+
onActiveAesTypeChange: { type: Function },
|
|
25
|
+
onCloseForm: { type: Function }
|
|
26
|
+
},
|
|
27
|
+
setup(e) {
|
|
28
|
+
const n = e;
|
|
29
|
+
function v(i, t) {
|
|
30
|
+
const l = n.activeValue === i.value && n.activeAesType === t;
|
|
31
|
+
n.onActiveValueChange(l ? null : i.value), n.onActiveAesTypeChange(l ? null : t);
|
|
32
|
+
}
|
|
33
|
+
const A = T(
|
|
34
|
+
() => h[n.palette].colors.map((i) => ({ color: i, name: i }))
|
|
35
|
+
), g = T(() => n.activeAesType ? E(
|
|
36
|
+
n.activeAesType === "lineType" ? w.length : n.activeAesType === "dotShape" ? F.length : A.value.length,
|
|
37
|
+
n.activeAesType
|
|
38
|
+
) : 0), f = S({
|
|
39
|
+
color: {},
|
|
40
|
+
dotShape: {},
|
|
41
|
+
lineType: {}
|
|
42
|
+
});
|
|
43
|
+
function c(i, t, l) {
|
|
44
|
+
l && (f[i][t.value] = l);
|
|
45
|
+
}
|
|
46
|
+
return (i, t) => (o(), m("div", {
|
|
47
|
+
class: a(i.$style.columnValue)
|
|
48
|
+
}, [
|
|
49
|
+
s("div", {
|
|
50
|
+
class: a(i.$style.title)
|
|
51
|
+
}, k(e.item.text), 3),
|
|
52
|
+
s("div", {
|
|
53
|
+
class: a(i.$style.aesGroup)
|
|
54
|
+
}, [
|
|
55
|
+
e.allowHiding ? (o(), d(V(I), {
|
|
56
|
+
key: 0,
|
|
57
|
+
"open-delay": 100,
|
|
58
|
+
"close-delay": 100
|
|
59
|
+
}, {
|
|
60
|
+
tooltip: r(() => [...t[10] || (t[10] = [
|
|
61
|
+
s("span", null, " Show / hide ", -1)
|
|
62
|
+
])]),
|
|
63
|
+
default: r(() => [
|
|
64
|
+
s("div", {
|
|
65
|
+
style: { cursor: "pointer" },
|
|
66
|
+
class: a(i.$style.aes),
|
|
67
|
+
onClick: t[0] || (t[0] = y((l) => e.onSwitchVisibility(), ["stop"]))
|
|
68
|
+
}, [
|
|
69
|
+
C(V(P), {
|
|
70
|
+
name: e.hidden ? "view-hide" : "view-show"
|
|
71
|
+
}, null, 8, ["name"])
|
|
72
|
+
], 2)
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
})) : u("", !0),
|
|
76
|
+
e.usedAesInMapping.lineType ? (o(), m("div", {
|
|
77
|
+
key: 1,
|
|
78
|
+
ref: (l) => c("lineType", e.item, l),
|
|
79
|
+
class: a([i.$style.aes, {
|
|
80
|
+
[i.$style.selected]: e.activeValue === e.item.value && e.activeAesType === "lineType"
|
|
81
|
+
}]),
|
|
82
|
+
onClick: t[1] || (t[1] = y((l) => v(e.item, "lineType"), ["stop"]))
|
|
83
|
+
}, [
|
|
84
|
+
s("div", {
|
|
85
|
+
class: a(["icon__line line", { [`line__${e.item.lineType}`]: !0 }])
|
|
86
|
+
}, null, 2)
|
|
87
|
+
], 2)) : u("", !0),
|
|
88
|
+
e.usedAesInMapping.dotShape ? (o(), m("div", {
|
|
89
|
+
key: 2,
|
|
90
|
+
ref: (l) => c("dotShape", e.item, l),
|
|
91
|
+
class: a([i.$style.aes, {
|
|
92
|
+
[i.$style.selected]: e.activeValue === e.item.value && e.activeAesType === "dotShape"
|
|
93
|
+
}]),
|
|
94
|
+
onClick: t[2] || (t[2] = y((l) => v(e.item, "dotShape"), ["stop"]))
|
|
95
|
+
}, [
|
|
96
|
+
s("div", {
|
|
97
|
+
class: a(["dot", { [`dot__${e.item.dotShape}`]: !0 }])
|
|
98
|
+
}, null, 2)
|
|
99
|
+
], 2)) : u("", !0),
|
|
100
|
+
e.usedAesInMapping.fill || e.usedAesInMapping.stroke ? (o(), m("div", {
|
|
101
|
+
key: 3,
|
|
102
|
+
ref: (l) => c("color", e.item, l),
|
|
103
|
+
class: a([i.$style.aes, {
|
|
104
|
+
[i.$style.selected]: e.activeValue === e.item.value && e.activeAesType === "color"
|
|
105
|
+
}]),
|
|
106
|
+
onClick: t[3] || (t[3] = y((l) => v(e.item, "color"), ["stop"]))
|
|
107
|
+
}, [
|
|
108
|
+
s("div", {
|
|
109
|
+
class: a(i.$style.color),
|
|
110
|
+
style: p({ background: e.item.color })
|
|
111
|
+
}, null, 6)
|
|
112
|
+
], 2)) : u("", !0),
|
|
113
|
+
(e.activeAesType !== "color" || e.isCategorical) && e.activeAesType !== null && e.activeValue === e.item.value ? (o(), d(B, {
|
|
114
|
+
key: `${e.activeAesType}_${e.activeValue}`,
|
|
115
|
+
targetRef: f[e.activeAesType][e.activeValue],
|
|
116
|
+
height: g.value,
|
|
117
|
+
"onPopup:close": e.onCloseForm
|
|
118
|
+
}, {
|
|
119
|
+
default: r(() => [
|
|
120
|
+
s("div", {
|
|
121
|
+
class: a(["fixed-aes-list", { "fixed-aes-list__rows": !1 }])
|
|
122
|
+
}, [
|
|
123
|
+
e.activeAesType === "lineType" ? (o(), d(M, {
|
|
124
|
+
key: 0,
|
|
125
|
+
modelValue: e.item.lineType,
|
|
126
|
+
"onUpdate:modelValue": [
|
|
127
|
+
t[4] || (t[4] = (l) => e.item.lineType = l),
|
|
128
|
+
t[5] || (t[5] = (l) => n.onAesValueUpdate("lineShape", l))
|
|
129
|
+
]
|
|
130
|
+
}, null, 8, ["modelValue"])) : u("", !0),
|
|
131
|
+
e.activeAesType === "dotShape" ? (o(), d(U, {
|
|
132
|
+
key: 1,
|
|
133
|
+
modelValue: e.item.dotShape,
|
|
134
|
+
"onUpdate:modelValue": [
|
|
135
|
+
t[6] || (t[6] = (l) => e.item.dotShape = l),
|
|
136
|
+
t[7] || (t[7] = (l) => n.onAesValueUpdate("dotShape", l))
|
|
137
|
+
]
|
|
138
|
+
}, null, 8, ["modelValue"])) : u("", !0),
|
|
139
|
+
e.activeAesType === "color" ? (o(), d(R, {
|
|
140
|
+
key: 2,
|
|
141
|
+
modelValue: e.item.color,
|
|
142
|
+
"onUpdate:modelValue": [
|
|
143
|
+
t[8] || (t[8] = (l) => e.item.color = l),
|
|
144
|
+
t[9] || (t[9] = (l) => n.onAesValueUpdate("color", l))
|
|
145
|
+
],
|
|
146
|
+
"colors-list": A.value
|
|
147
|
+
}, null, 8, ["modelValue", "colors-list"])) : u("", !0)
|
|
148
|
+
])
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 8, ["targetRef", "height", "onPopup:close"])) : u("", !0)
|
|
152
|
+
], 2)
|
|
153
|
+
], 2));
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
export {
|
|
157
|
+
G as default
|
|
158
|
+
};
|
|
159
|
+
//# sourceMappingURL=DiscreteRow.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiscreteRow.vue2.js","sources":["../../../src/components/AesSettings/DiscreteRow.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { type ComponentPublicInstance, computed, reactive } from 'vue';\nimport { FIXED_LINE_TYPES, FIXES_DOT_SHAPES, PALETTE_MAP } from '../../constantsAesthetic';\nimport { getPopupHeightForFixedAesList } from '../../utils/getPopupHeightForFixedAesList';\nimport type { Palette, DotShape, LineType } from './types';\nimport type { AesType } from '../../constantsCommon';\nimport { PlIcon24, PlTooltip } from '@platforma-sdk/ui-vue';\nimport Popup from '../Popup.vue';\nimport FixedLineTypeList from './FixedLineTypeList.vue';\nimport FixedDotShapeList from './FixedDotShapeList.vue';\nimport FixedColorsList from './FixedColorsList.vue';\n\ntype EditableAesType = 'color' | 'dotShape' | 'lineType';\n\nconst props = defineProps<{\n item: {\n text: string;\n value: string;\n dotShape?: DotShape;\n color?: string;\n lineType?: LineType;\n };\n activeValue: string | null;\n activeAesType: EditableAesType | null;\n usedAesInMapping: Record<AesType, boolean>;\n palette: Palette;\n allowReordering: boolean;\n allowHiding: boolean;\n hidden: boolean;\n isCategorical: boolean;\n onAesValueUpdate: (field: string, value: string | DotShape | LineType) => void;\n onSwitchVisibility: () => void;\n onActiveValueChange: (value: string | null) => void;\n onActiveAesTypeChange: (value: EditableAesType | null) => void;\n onCloseForm: () => void;\n}>();\n\nfunction toggleForm(\n item: typeof props.item,\n valueType: EditableAesType,\n) {\n const isThisFormOpen = props.activeValue === item.value && props.activeAesType === valueType;\n props.onActiveValueChange(isThisFormOpen ? null : item.value);\n props.onActiveAesTypeChange(isThisFormOpen ? null : valueType);\n}\n\nconst selectedColorsList = computed(() =>\n PALETTE_MAP[props.palette].colors.map((color: string) => ({ color, name: color })),\n);\nconst popupHeight = computed(() => {\n if (!props.activeAesType) {\n return 0;\n }\n return getPopupHeightForFixedAesList(\n props.activeAesType === 'lineType' ? FIXED_LINE_TYPES.length : props.activeAesType === 'dotShape' ? FIXES_DOT_SHAPES.length : selectedColorsList.value.length,\n props.activeAesType,\n );\n});\n\nconst itemRefs = reactive<\n Record<EditableAesType, Record<string, ComponentPublicInstance | Element>>\n>({\n color: {},\n dotShape: {},\n lineType: {},\n});\nfunction setRef(\n type: EditableAesType,\n item: typeof props.item,\n el: ComponentPublicInstance | null | Element,\n) {\n if (el) {\n itemRefs[type][item.value] = el;\n }\n}\n</script>\n<template>\n <div :class=\"$style.columnValue\">\n <div :class=\"$style.title\">{{ item.text }}</div>\n <div :class=\"$style.aesGroup\">\n <PlTooltip v-if=\"allowHiding\" :open-delay=\"100\" :close-delay=\"100\">\n <div :style=\"{ cursor: 'pointer' }\" :class=\"$style.aes\" @click.stop=\"onSwitchVisibility()\">\n <PlIcon24 :name=\"hidden ? 'view-hide' : 'view-show'\" />\n </div>\n <template #tooltip>\n <span> Show / hide </span>\n </template>\n </PlTooltip>\n <div\n v-if=\"usedAesInMapping.lineType\" :ref=\"(v) => setRef('lineType', item, v)\" :class=\"[$style.aes, {\n [$style.selected]:\n activeValue === item.value &&\n activeAesType === 'lineType'\n }]\" @click.stop=\"toggleForm(item, 'lineType')\"\n >\n <div class=\"icon__line line\" :class=\"{ [`line__${item.lineType}`]: true }\" />\n </div>\n <div\n v-if=\"usedAesInMapping.dotShape\" :ref=\"(v) => setRef('dotShape', item, v)\" :class=\"[$style.aes, {\n [$style.selected]: activeValue === item.value && activeAesType === 'dotShape'\n }]\" @click.stop=\"toggleForm(item, 'dotShape')\"\n >\n <div class=\"dot\" :class=\"{ [`dot__${item.dotShape}`]: true }\" />\n </div>\n <div\n v-if=\"usedAesInMapping.fill || usedAesInMapping.stroke\" :ref=\"(v) => setRef('color', item, v)\"\n :class=\"[$style.aes, {\n [$style.selected]: activeValue === item.value && activeAesType === 'color'\n }]\" @click.stop=\"toggleForm(item, 'color')\"\n >\n <div :class=\"$style.color\" :style=\"{ background: item.color }\" />\n </div>\n <Popup\n v-if=\"\n (activeAesType !== 'color' || isCategorical) &&\n activeAesType !== null &&\n activeValue === item.value\n \" :key=\"`${activeAesType}_${activeValue}`\" :targetRef=\"itemRefs[activeAesType][activeValue] as HTMLElement\"\n :height=\"popupHeight\" @popup:close=\"onCloseForm\"\n >\n <div class=\"fixed-aes-list\" :class=\"{ 'fixed-aes-list__rows': false }\">\n <FixedLineTypeList\n v-if=\"activeAesType === 'lineType'\" v-model=\"item.lineType as LineType\" @update:modelValue=\"\n (v: LineType) => props.onAesValueUpdate('lineShape', v)\n \"\n />\n <FixedDotShapeList\n v-if=\"activeAesType === 'dotShape'\" v-model=\"item.dotShape as DotShape\" @update:modelValue=\"\n (v: DotShape) => props.onAesValueUpdate('dotShape', v)\n \"\n />\n <FixedColorsList\n v-if=\"activeAesType === 'color'\" v-model=\"item.color as string\"\n :colors-list=\"selectedColorsList\" @update:modelValue=\"\n (v: string) => props.onAesValueUpdate('color', v)\n \"\n />\n </div>\n </Popup>\n </div>\n </div>\n</template>\n\n<style module>\n.columnValue {\n display: flex;\n align-items: center;\n padding-left: 12px;\n padding-right: 2px;\n margin-bottom: 6px;\n background-color: var(--color-ic-00);\n width: 100%;\n}\n\n.columnValue:last-child {\n margin-bottom: 0;\n}\n\n.title {\n overflow: hidden;\n text-overflow: ellipsis;\n margin-right: 8px;\n line-height: 24px;\n}\n\n.color {\n width: 18px;\n height: 18px;\n border-radius: 3px;\n}\n\n.aesGroup {\n margin-left: auto;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n}\n\n.aes {\n width: 40px;\n height: 40px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n background: var(--color-ic-00);\n border-radius: var(--border-radius-control);\n}\n\n.aes.selected {\n border: var(--contour-border-width) solid var(--contour-color);\n box-shadow: var(--contour-box-shadow);\n z-index: 1;\n}\n</style>\n"],"names":["props","__props","toggleForm","item","valueType","isThisFormOpen","selectedColorsList","computed","PALETTE_MAP","color","popupHeight","getPopupHeightForFixedAesList","FIXED_LINE_TYPES","FIXES_DOT_SHAPES","itemRefs","reactive","setRef","type","el","_createElementBlock","_normalizeClass","$style","_createElementVNode","_toDisplayString","_createBlock","_unref","PlTooltip","_cache","_createVNode","PlIcon24","v","_withModifiers","$event","_normalizeStyle","Popup","FixedLineTypeList","FixedDotShapeList","FixedColorsList"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,UAAMA,IAAQC;AAuBd,aAASC,EACPC,GACAC,GACA;AACA,YAAMC,IAAiBL,EAAM,gBAAgBG,EAAK,SAASH,EAAM,kBAAkBI;AACnF,MAAAJ,EAAM,oBAAoBK,IAAiB,OAAOF,EAAK,KAAK,GAC5DH,EAAM,sBAAsBK,IAAiB,OAAOD,CAAS;AAAA,IAC/D;AAEA,UAAME,IAAqBC;AAAA,MAAS,MAClCC,EAAYR,EAAM,OAAO,EAAE,OAAO,IAAI,CAACS,OAAmB,EAAE,OAAAA,GAAO,MAAMA,IAAQ;AAAA,IAAA,GAE7EC,IAAcH,EAAS,MACtBP,EAAM,gBAGJW;AAAA,MACLX,EAAM,kBAAkB,aAAaY,EAAiB,SAASZ,EAAM,kBAAkB,aAAaa,EAAiB,SAASP,EAAmB,MAAM;AAAA,MACvJN,EAAM;AAAA,IAAA,IAJC,CAMV,GAEKc,IAAWC,EAEf;AAAA,MACA,OAAO,CAAA;AAAA,MACP,UAAU,CAAA;AAAA,MACV,UAAU,CAAA;AAAA,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B,CAAC;AAAA,gBAAA;AAAA,gBAApH,eAAaxB,EAAA;AAAA,cAAA;;;;;;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._columnValue_7xzg0_2{display:flex;align-items:center;padding-left:12px;padding-right:2px;margin-bottom:6px;background-color:var(--color-ic-00);width:100%}._columnValue_7xzg0_2:last-child{margin-bottom:0}._title_7xzg0_16{overflow:hidden;text-overflow:ellipsis;margin-right:8px;line-height:24px}._color_7xzg0_23{width:18px;height:18px;border-radius:3px}._aesGroup_7xzg0_29{margin-left:auto;flex-shrink:0;display:flex;align-items:center}._aes_7xzg0_29{width:40px;height:40px;display:flex;justify-content:center;align-items:center;cursor:pointer;background:var(--color-ic-00);border-radius:var(--border-radius-control)}._aes_7xzg0_29._selected_7xzg0_47{border:var(--contour-border-width) solid var(--contour-color);box-shadow:var(--contour-box-shadow);z-index:1}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
const e = "_columnValue_7xzg0_2", o = "_title_7xzg0_16", t = "_color_7xzg0_23", s = "_aesGroup_7xzg0_29", _ = "_aes_7xzg0_29", l = "_selected_7xzg0_47", c = {
|
|
3
|
+
columnValue: e,
|
|
4
|
+
title: o,
|
|
5
|
+
color: t,
|
|
6
|
+
aesGroup: s,
|
|
7
|
+
aes: _,
|
|
8
|
+
selected: l
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
_ as aes,
|
|
12
|
+
s as aesGroup,
|
|
13
|
+
t as color,
|
|
14
|
+
e as columnValue,
|
|
15
|
+
c as default,
|
|
16
|
+
l as selected,
|
|
17
|
+
o as title
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=DiscreteRow.vue3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiscreteRow.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -8,7 +8,5 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
8
8
|
"update:modelValue": (...args: any[]) => void;
|
|
9
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
10
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
-
optionsListRef: HTMLDivElement;
|
|
13
|
-
}, HTMLDivElement>;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
12
|
export default _default;
|
|
@@ -1,46 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
modelValue: { required: !0 },
|
|
8
|
-
modelModifiers: {}
|
|
9
|
-
},
|
|
10
|
-
emits: /* @__PURE__ */ p(["update:modelValue"], ["update:modelValue"]),
|
|
11
|
-
setup(u, { emit: i }) {
|
|
12
|
-
const s = _(u, "modelValue"), d = i, m = v(
|
|
13
|
-
() => s.value.map((e) => ({
|
|
14
|
-
text: e.label,
|
|
15
|
-
value: e.value
|
|
16
|
-
}))
|
|
17
|
-
), a = f();
|
|
18
|
-
return y(a, {
|
|
19
|
-
handle: ".column-value__reorder-icon",
|
|
20
|
-
onChange(e) {
|
|
21
|
-
d("update:modelValue", e.map((o) => s.value[o]));
|
|
22
|
-
}
|
|
23
|
-
}), (e, o) => (t(), r("div", R, [
|
|
24
|
-
o[0] || (o[0] = l("div", { class: "aes-settings-hint" }, " Drag the rows to reorder ", -1)),
|
|
25
|
-
l("div", {
|
|
26
|
-
ref_key: "optionsListRef",
|
|
27
|
-
ref: a,
|
|
28
|
-
class: "column-values-list"
|
|
29
|
-
}, [
|
|
30
|
-
(t(!0), r(g, null, h(m.value, (n) => (t(), r("div", {
|
|
31
|
-
key: n.value,
|
|
32
|
-
class: "column-value column-value__with-reorder"
|
|
33
|
-
}, [
|
|
34
|
-
l("div", b, [
|
|
35
|
-
(t(), k(V(L)))
|
|
36
|
-
]),
|
|
37
|
-
l("div", B, x(n.text), 1)
|
|
38
|
-
]))), 128))
|
|
39
|
-
], 512)
|
|
40
|
-
]));
|
|
41
|
-
}
|
|
42
|
-
});
|
|
1
|
+
import o from "./ReorderForm.vue2.js";
|
|
2
|
+
import s from "./ReorderForm.vue3.js";
|
|
3
|
+
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const t = {
|
|
5
|
+
$style: s
|
|
6
|
+
}, f = /* @__PURE__ */ r(o, [["__cssModules", t]]);
|
|
43
7
|
export {
|
|
44
|
-
|
|
8
|
+
f as default
|
|
45
9
|
};
|
|
46
10
|
//# sourceMappingURL=ReorderForm.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReorderForm.vue.js","sources":[
|
|
1
|
+
{"version":3,"file":"ReorderForm.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,5 +1,53 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as r, mergeModels as d, useModel as u, computed as n, ref as p, watch as c, createElementBlock as g, openBlock as v, createElementVNode as i, createVNode as f, unref as b, withCtx as y, normalizeClass as V, toDisplayString as _ } from "vue";
|
|
2
|
+
import { PlElementList as k } from "@platforma-sdk/ui-vue";
|
|
3
|
+
const w = { class: "aes-mapping-block" }, R = { class: "column-values-list" }, D = /* @__PURE__ */ r({
|
|
4
|
+
__name: "ReorderForm",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: { required: !0 },
|
|
7
|
+
modelModifiers: {}
|
|
8
|
+
},
|
|
9
|
+
emits: /* @__PURE__ */ d(["update:modelValue"], ["update:modelValue"]),
|
|
10
|
+
setup(m, { emit: h }) {
|
|
11
|
+
const a = u(m, "modelValue"), o = n({
|
|
12
|
+
get: () => a.value.map((e) => ({
|
|
13
|
+
text: e.label,
|
|
14
|
+
value: e.value
|
|
15
|
+
})),
|
|
16
|
+
set: (e) => {
|
|
17
|
+
a.value = e.map((t) => ({
|
|
18
|
+
value: t.value,
|
|
19
|
+
label: t.text
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
}), s = p(o.value);
|
|
23
|
+
return c(() => s.value, (e) => {
|
|
24
|
+
o.value = e;
|
|
25
|
+
}, { deep: !0 }), (e, t) => (v(), g("div", w, [
|
|
26
|
+
t[1] || (t[1] = i("div", { class: "aes-settings-hint" }, " Drag the rows to reorder ", -1)),
|
|
27
|
+
i("div", R, [
|
|
28
|
+
f(b(k), {
|
|
29
|
+
items: s.value,
|
|
30
|
+
"onUpdate:items": t[0] || (t[0] = (l) => s.value = l),
|
|
31
|
+
"get-item-key": (l) => l.value,
|
|
32
|
+
"item-class": e.$style.discreteRow,
|
|
33
|
+
"item-class-title": e.$style.discreteRowTitle,
|
|
34
|
+
disableDragging: !1,
|
|
35
|
+
disableRemoving: !0,
|
|
36
|
+
disableToggling: !0,
|
|
37
|
+
disablePinning: !0
|
|
38
|
+
}, {
|
|
39
|
+
"item-title": y(({ item: l }) => [
|
|
40
|
+
i("div", {
|
|
41
|
+
class: V(e.$style.title)
|
|
42
|
+
}, _(l.text), 3)
|
|
43
|
+
]),
|
|
44
|
+
_: 1
|
|
45
|
+
}, 8, ["items", "get-item-key", "item-class", "item-class-title"])
|
|
46
|
+
])
|
|
47
|
+
]));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
2
50
|
export {
|
|
3
|
-
|
|
51
|
+
D as default
|
|
4
52
|
};
|
|
5
53
|
//# sourceMappingURL=ReorderForm.vue2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReorderForm.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"ReorderForm.vue2.js","sources":["../../src/components/ReorderForm.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue';\nimport { PlElementList } from '@platforma-sdk/ui-vue';\n\nconst model = defineModel<{ value: string; label: string }[]>({ required: true });\n\nconst _emit = defineEmits(['update:modelValue']);\n\nconst optionsList = computed({\n get: () => model.value.map((v) => ({\n text: v.label,\n value: v.value,\n })),\n set: (value) => {\n model.value = value.map((v) => ({\n value: v.value,\n label: v.text,\n }));\n },\n});\nconst listItems = ref(optionsList.value);\nwatch(() => listItems.value, (v) => {\n optionsList.value = v;\n}, { deep: true });\n</script>\n\n<template>\n <div class=\"aes-mapping-block\">\n <div class=\"aes-settings-hint\">\n Drag the rows to reorder\n </div>\n <div class=\"column-values-list\">\n <PlElementList\n v-model:items=\"listItems\" :get-item-key=\"(item) => item.value\" :item-class=\"$style.discreteRow\"\n :item-class-title=\"$style.discreteRowTitle\" :disableDragging=\"false\" :disableRemoving=\"true\"\n :disableToggling=\"true\" :disablePinning=\"true\"\n >\n <template #item-title=\"{ item }\">\n <div :class=\"$style.title\">{{ item.text }}</div>\n </template>\n </PlElementList>\n </div>\n </div>\n</template>\n<style module>\n.discreteRow {\n background-color: var(--color-ic-00);\n border-color: var(--color-div-grey);\n}\n\n.discreteRow:hover {\n --head-background: var(--color-ic-00);\n}\n.title {\n margin-left: 4px;\n}\n</style>\n"],"names":["model","_useModel","__props","optionsList","computed","v","value","listItems","ref","watch","_openBlock","_createElementBlock","_hoisted_1","_cache","_createElementVNode","_hoisted_2","_createVNode","_unref","PlElementList","$event","item","$style","_withCtx","_normalizeClass","_toDisplayString"],"mappings":";;;;;;;;;;AAIA,UAAMA,IAAQC,EAA+CC,GAAA,YAAmB,GAI1EC,IAAcC,EAAS;AAAA,MAC3B,KAAK,MAAMJ,EAAM,MAAM,IAAI,CAACK,OAAO;AAAA,QACjC,MAAMA,EAAE;AAAA,QACR,OAAOA,EAAE;AAAA,MAAA,EACT;AAAA,MACF,KAAK,CAACC,MAAU;AACd,QAAAN,EAAM,QAAQM,EAAM,IAAI,CAACD,OAAO;AAAA,UAC9B,OAAOA,EAAE;AAAA,UACT,OAAOA,EAAE;AAAA,QAAA,EACT;AAAA,MACJ;AAAA,IAAA,CACD,GACKE,IAAYC,EAAIL,EAAY,KAAK;AACvC,WAAAM,EAAM,MAAMF,EAAU,OAAO,CAACF,MAAM;AAClC,MAAAF,EAAY,QAAQE;AAAA,IACtB,GAAG,EAAE,MAAM,IAAM,cAIfK,EAAA,GAAAC,EAeM,OAfNC,GAeM;AAAA,MAdJC,EAAA,CAAA,MAAAA,EAAA,CAAA,IAAAC,EAEM,OAAA,EAFD,OAAM,oBAAA,GAAoB,8BAE/B,EAAA;AAAA,MACAA,EAUM,OAVNC,GAUM;AAAA,QATJC,EAQgBC,EAAAC,CAAA,GAAA;AAAA,UAPN,OAAOX,EAAA;AAAA,mDAAAA,EAAS,QAAAY;AAAA,UAAG,gBAAY,CAAGC,MAASA,EAAK;AAAA,UAAQ,cAAYC,EAAAA,OAAO;AAAA,UAClF,oBAAkBA,EAAAA,OAAO;AAAA,UAAmB,iBAAiB;AAAA,UAAQ,iBAAiB;AAAA,UACtF,iBAAiB;AAAA,UAAO,gBAAgB;AAAA,QAAA;UAE9B,cAAUC,EACnB,CAAgD,EADzB,MAAAF,QAAI;AAAA,YAC3BN,EAAgD,OAAA;AAAA,cAA1C,OAAKS,EAAEF,EAAAA,OAAO,KAAK;AAAA,YAAA,GAAKG,EAAAJ,EAAK,IAAI,GAAA,CAAA;AAAA,UAAA;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._discreteRow_wtygg_2{background-color:var(--color-ic-00);border-color:var(--color-div-grey)}._discreteRow_wtygg_2:hover{--head-background: var(--color-ic-00)}._title_wtygg_10{margin-left:4px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
const t = "_discreteRow_wtygg_2", e = "_title_wtygg_10", s = {
|
|
3
|
+
discreteRow: t,
|
|
4
|
+
title: e
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
s as default,
|
|
8
|
+
t as discreteRow,
|
|
9
|
+
e as title
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=ReorderForm.vue3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReorderForm.vue3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -21,10 +21,10 @@ import z from "../../components/AesSettings/FormWrapper.vue.js";
|
|
|
21
21
|
import j from "../../components/AesSettings/AesDataMappingDiscrete.vue.js";
|
|
22
22
|
import { createDefaultMapping as J } from "../../dataBindAes.js";
|
|
23
23
|
import "../../constantsAesthetic.js";
|
|
24
|
-
import { getDiscreteLabelsRotation as
|
|
24
|
+
import { getDiscreteLabelsRotation as xe } from "../../utils/createChartSettingsForRender/getAxesDataFromForms.js";
|
|
25
25
|
import "@milaboratories/pf-plots";
|
|
26
26
|
import "@platforma-sdk/model";
|
|
27
|
-
const
|
|
27
|
+
const fe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options-row block" }, ye = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "axes-settings-input"
|
|
30
30
|
}, be = { class: "axes-settings-options-row" }, Se = {
|
|
@@ -42,7 +42,7 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
42
42
|
}, Te = {
|
|
43
43
|
key: 4,
|
|
44
44
|
class: "axes-settings-options-row"
|
|
45
|
-
}, Ae = { class: "axes-settings-options-row block" }, Oe = { key: 5 }, Xe = { class: "axes-settings-options-row table" }, Ue = { class: "axes-settings-options-row table" }, Ie = { class: "axes-settings-options-row table" }, Ge = { class: "axes-settings-options-row block" }, Pe = { key: 0 }, Ne = { class: "axes-settings-options-row block" }, Re = { class: "axes-settings-options-row table" }, Ce = { class: "axes-settings-options-row table" }, Fe = { class: "other" },
|
|
45
|
+
}, Ae = { class: "axes-settings-options-row block" }, Oe = { key: 5 }, Xe = { class: "axes-settings-options-row table" }, Ue = { class: "axes-settings-options-row table" }, Ie = { class: "axes-settings-options-row table" }, Ge = { class: "axes-settings-options-row block" }, Pe = { key: 0 }, Ne = { class: "axes-settings-options-row block" }, Re = { class: "axes-settings-options-row table" }, Ce = { class: "axes-settings-options-row table" }, Fe = { class: "other" }, De = { class: "axes-settings-options-row" }, Be = { class: "axes-settings-options-row" }, Le = { class: "axes-settings-options-row" }, Ye = { class: "axes-settings-options-row block" }, vl = /* @__PURE__ */ ee({
|
|
46
46
|
__name: "DiscreteAxesSettingsForm",
|
|
47
47
|
setup(Me) {
|
|
48
48
|
const i = te(), t = i.value.reactive.axesSettings, T = {
|
|
@@ -70,13 +70,13 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
70
70
|
{ value: "bottom", icon: ve },
|
|
71
71
|
{ value: "left-bottom", icon: ge },
|
|
72
72
|
{ value: "full", icon: ie }
|
|
73
|
-
], C = r(() => i.value.inputGuide.value), O = r(() => i.value.uniqueValuesData.value),
|
|
73
|
+
], C = r(() => i.value.inputGuide.value), O = r(() => i.value.uniqueValuesData.value), f = k(!1), V = k(!1), F = r(() => i.value.reactive.tabDefaultState.axes.reorderPrimaryOpen), D = r(() => i.value.reactive.tabDefaultState.axes.reorderSecondaryOpen);
|
|
74
74
|
le(() => {
|
|
75
|
-
F.value && (
|
|
75
|
+
F.value && (f.value = !0), D.value && (V.value = !0);
|
|
76
76
|
}), $(() => F.value, (n) => {
|
|
77
|
-
n && (V.value = !1,
|
|
78
|
-
}), $(() =>
|
|
79
|
-
n && (
|
|
77
|
+
n && (V.value = !1, f.value = !0);
|
|
78
|
+
}), $(() => D.value, (n) => {
|
|
79
|
+
n && (f.value = !1, V.value = !0);
|
|
80
80
|
});
|
|
81
81
|
const g = r(() => {
|
|
82
82
|
var n, e;
|
|
@@ -84,13 +84,13 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
84
84
|
}), y = r(() => {
|
|
85
85
|
var n, e;
|
|
86
86
|
return (e = (n = i.value.reactive.optionsState.components.secondaryGrouping) == null ? void 0 : n.selectorStates[0]) == null ? void 0 : e.selectedSource;
|
|
87
|
-
}), c = r(() => i.value.commonHelpersData.primaryGroups.value), w = r(() => i.value.commonHelpersData.secondaryGroups.value),
|
|
87
|
+
}), c = r(() => i.value.commonHelpersData.primaryGroups.value), w = r(() => i.value.commonHelpersData.secondaryGroups.value), B = r(() => i.value.commonHelpersData.usedAesInMapping.value), L = k(i.value.reactive.dataBindAes[g.value] ?? J(c.value)), Y = k(i.value.reactive.dataBindAes[y.value] ?? J(w.value)), X = r(() => {
|
|
88
88
|
var n;
|
|
89
89
|
if (g.value) {
|
|
90
90
|
const e = C.value.getSourceInfo(g.value) ?? null, o = ((n = O.value[g.value]) == null ? void 0 : n.labels) ?? null;
|
|
91
91
|
return {
|
|
92
92
|
selectedSourceInfo: e,
|
|
93
|
-
labels: c.value.reduce((u,
|
|
93
|
+
labels: c.value.reduce((u, x) => (u[x] = (o == null ? void 0 : o[x]) ?? String(x), u), {})
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
return null;
|
|
@@ -100,7 +100,7 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
100
100
|
const e = C.value.getSourceInfo(y.value) ?? null, o = ((n = O.value[y.value]) == null ? void 0 : n.labels) ?? null;
|
|
101
101
|
return {
|
|
102
102
|
selectedSourceInfo: e,
|
|
103
|
-
labels: w.value.reduce((u,
|
|
103
|
+
labels: w.value.reduce((u, x) => (u[x] = (o == null ? void 0 : o[x]) ?? String(x), u), {})
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
return null;
|
|
@@ -116,7 +116,7 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
116
116
|
], h = r(() => O.value[g.value]), E = r({
|
|
117
117
|
get() {
|
|
118
118
|
var n;
|
|
119
|
-
return
|
|
119
|
+
return xe(t.axisX.labelsRotation, (n = h.value) == null ? void 0 : n.options);
|
|
120
120
|
},
|
|
121
121
|
set(n) {
|
|
122
122
|
t.axisX.labelsRotation = n;
|
|
@@ -127,7 +127,7 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
127
127
|
onClick: e[30] || (e[30] = (o) => o.stopPropagation())
|
|
128
128
|
}, [
|
|
129
129
|
e[44] || (e[44] = a("h3", { class: "axes-title" }, " Axes ", -1)),
|
|
130
|
-
a("div",
|
|
130
|
+
a("div", fe, [
|
|
131
131
|
s(G, {
|
|
132
132
|
title: "Title",
|
|
133
133
|
settings: T,
|
|
@@ -173,14 +173,14 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
173
173
|
e[32] || (e[32] = a("span", null, "Primary groups order: ", -1)),
|
|
174
174
|
s(q, {
|
|
175
175
|
data: { type: "data", value: null },
|
|
176
|
-
onClick: e[3] || (e[3] = (o) =>
|
|
176
|
+
onClick: e[3] || (e[3] = (o) => f.value = !0)
|
|
177
177
|
}),
|
|
178
|
-
|
|
178
|
+
f.value && X.value ? (d(), H(z, {
|
|
179
179
|
key: 0,
|
|
180
180
|
title: "Reorder primary groups",
|
|
181
181
|
"back-title": "Axes Settings",
|
|
182
182
|
"onForm:open": e[6] || (e[6] = (o) => l(i).reactive.tabDefaultState.axes.reorderPrimaryOpen = !1),
|
|
183
|
-
"onForm:close": e[7] || (e[7] = (o) =>
|
|
183
|
+
"onForm:close": e[7] || (e[7] = (o) => f.value = !1)
|
|
184
184
|
}, {
|
|
185
185
|
default: b(() => {
|
|
186
186
|
var o;
|
|
@@ -193,7 +193,7 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
193
193
|
],
|
|
194
194
|
"column-value-labels": X.value.labels,
|
|
195
195
|
"data-column-label": ((o = X.value.selectedSourceInfo) == null ? void 0 : o.label) ?? "",
|
|
196
|
-
"used-aes-in-mapping":
|
|
196
|
+
"used-aes-in-mapping": B.value[g.value],
|
|
197
197
|
"allow-reordering": "",
|
|
198
198
|
"allow-hiding": "",
|
|
199
199
|
"allow-null-option": l(t).axisX.allowNullPrimaryGroups
|
|
@@ -234,7 +234,7 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
234
234
|
],
|
|
235
235
|
"column-value-labels": U.value.labels,
|
|
236
236
|
"data-column-label": ((o = U.value.selectedSourceInfo) == null ? void 0 : o.label) ?? "",
|
|
237
|
-
"used-aes-in-mapping":
|
|
237
|
+
"used-aes-in-mapping": B.value[y.value],
|
|
238
238
|
"allow-reordering": "",
|
|
239
239
|
"allow-hiding": "",
|
|
240
240
|
"allow-null-option": l(t).axisX.allowNullSecondaryGroups
|
|
@@ -348,7 +348,7 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
348
348
|
_: 1
|
|
349
349
|
}),
|
|
350
350
|
a("div", Fe, [
|
|
351
|
-
a("div",
|
|
351
|
+
a("div", De, [
|
|
352
352
|
e[42] || (e[42] = a("span", null, "Frame", -1)),
|
|
353
353
|
s(R, {
|
|
354
354
|
modelValue: l(t).other.frame,
|
|
@@ -356,7 +356,7 @@ const xe = { class: "axes-settings-list" }, Ve = { class: "axes-settings-options
|
|
|
356
356
|
options: Z
|
|
357
357
|
}, null, 8, ["modelValue"])
|
|
358
358
|
]),
|
|
359
|
-
a("div",
|
|
359
|
+
a("div", Be, [
|
|
360
360
|
e[43] || (e[43] = a("span", null, "Reverse axes", -1)),
|
|
361
361
|
s(l(v), {
|
|
362
362
|
modelValue: l(t).other.reverse,
|