kd-lane-chart-v3 0.1.18 → 0.1.19
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/esm/index.js +135 -100
- package/dist/esm/index.js.map +1 -1
- package/dist/kd-lane-chart-v3.css +65 -65
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -2367,10 +2367,12 @@ const _sfc_main$c = {
|
|
|
2367
2367
|
theme.lineColor = formData.value.lineColor;
|
|
2368
2368
|
}
|
|
2369
2369
|
saving.value = true;
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
formData.value
|
|
2370
|
+
if (Object.prototype.hasOwnProperty.call(formData.value, "__runtimeRangeBase")) {
|
|
2371
|
+
delete formData.value.__runtimeRangeBase;
|
|
2372
|
+
}
|
|
2373
|
+
if (Object.prototype.hasOwnProperty.call(formData.value, "templateRangeSaved")) {
|
|
2374
|
+
delete formData.value.templateRangeSaved;
|
|
2375
|
+
}
|
|
2374
2376
|
const result = upsertLine(formData.value);
|
|
2375
2377
|
if (result instanceof Promise) {
|
|
2376
2378
|
result.then((res) => {
|
|
@@ -2586,7 +2588,7 @@ const _sfc_main$c = {
|
|
|
2586
2588
|
};
|
|
2587
2589
|
}
|
|
2588
2590
|
};
|
|
2589
|
-
const LineEdit = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
2591
|
+
const LineEdit = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-e92b1565"]]);
|
|
2590
2592
|
const _hoisted_1$a = { class: "kd-lane-template-content" };
|
|
2591
2593
|
const _hoisted_2$9 = { class: "template-buttons" };
|
|
2592
2594
|
const _sfc_main$b = {
|
|
@@ -6546,43 +6548,52 @@ function bindSetupState(bag, map) {
|
|
|
6546
6548
|
if (!bag || !map) return;
|
|
6547
6549
|
Object.assign(bag, map);
|
|
6548
6550
|
}
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
function seedHasExplicitRange(seed) {
|
|
6553
|
-
if (!seed) return false;
|
|
6554
|
-
const hasMin = Object.prototype.hasOwnProperty.call(seed, "min") && !isRangeValueUnset(seed.min);
|
|
6555
|
-
const hasMax = Object.prototype.hasOwnProperty.call(seed, "max") && !isRangeValueUnset(seed.max);
|
|
6556
|
-
return hasMin || hasMax;
|
|
6557
|
-
}
|
|
6558
|
-
function ensureUserSavedLineRanges(dbDatas, dataSource) {
|
|
6559
|
-
if (!dbDatas || !Array.isArray(dbDatas.templates)) return dbDatas;
|
|
6560
|
-
const seedMap = /* @__PURE__ */ Object.create(null);
|
|
6561
|
-
(dataSource && dataSource.templates || []).forEach((tpl) => {
|
|
6551
|
+
const RUNTIME_RANGE_BASE_KEY = "__runtimeRangeBase";
|
|
6552
|
+
function visitLines(templates, fn) {
|
|
6553
|
+
(Array.isArray(templates) ? templates : []).forEach((tpl) => {
|
|
6562
6554
|
(tpl && tpl.lanes || []).forEach((lane) => {
|
|
6563
|
-
(lane && lane.lines || []).forEach((line) =>
|
|
6564
|
-
if (line && line.lineId != null) seedMap[String(line.lineId)] = line;
|
|
6565
|
-
});
|
|
6555
|
+
(lane && lane.lines || []).forEach((line) => fn(line));
|
|
6566
6556
|
});
|
|
6567
6557
|
});
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6558
|
+
}
|
|
6559
|
+
function stripRuntimeRangeForPersist(dataSourceOrConfig) {
|
|
6560
|
+
if (!dataSourceOrConfig || typeof dataSourceOrConfig !== "object") {
|
|
6561
|
+
return dataSourceOrConfig;
|
|
6562
|
+
}
|
|
6563
|
+
const ds = dataSourceOrConfig.dataSource && typeof dataSourceOrConfig.dataSource === "object" ? dataSourceOrConfig.dataSource : dataSourceOrConfig;
|
|
6564
|
+
const restoreLine = (line) => {
|
|
6565
|
+
if (!line || typeof line !== "object") return;
|
|
6566
|
+
const base = line[RUNTIME_RANGE_BASE_KEY];
|
|
6567
|
+
if (base) {
|
|
6568
|
+
if (Object.prototype.hasOwnProperty.call(base, "min")) {
|
|
6569
|
+
line.min = base.min;
|
|
6570
|
+
}
|
|
6571
|
+
if (Object.prototype.hasOwnProperty.call(base, "max")) {
|
|
6572
|
+
line.max = base.max;
|
|
6573
|
+
}
|
|
6574
|
+
}
|
|
6575
|
+
if (Object.prototype.hasOwnProperty.call(line, RUNTIME_RANGE_BASE_KEY)) {
|
|
6576
|
+
delete line[RUNTIME_RANGE_BASE_KEY];
|
|
6577
|
+
}
|
|
6578
|
+
if (Object.prototype.hasOwnProperty.call(line, "templateRangeSaved")) {
|
|
6579
|
+
delete line.templateRangeSaved;
|
|
6580
|
+
}
|
|
6581
|
+
};
|
|
6582
|
+
visitLines(ds.templates, restoreLine);
|
|
6583
|
+
if (Array.isArray(ds.lines)) {
|
|
6584
|
+
ds.lines.forEach(restoreLine);
|
|
6585
|
+
}
|
|
6586
|
+
return dataSourceOrConfig;
|
|
6587
|
+
}
|
|
6588
|
+
function stripRuntimeRangeFields(line) {
|
|
6589
|
+
if (!line || typeof line !== "object") return line;
|
|
6590
|
+
if (Object.prototype.hasOwnProperty.call(line, RUNTIME_RANGE_BASE_KEY)) {
|
|
6591
|
+
delete line[RUNTIME_RANGE_BASE_KEY];
|
|
6592
|
+
}
|
|
6593
|
+
if (Object.prototype.hasOwnProperty.call(line, "templateRangeSaved")) {
|
|
6594
|
+
delete line.templateRangeSaved;
|
|
6595
|
+
}
|
|
6596
|
+
return line;
|
|
6586
6597
|
}
|
|
6587
6598
|
const _hoisted_1$6 = ["id", "lane-id"];
|
|
6588
6599
|
const _hoisted_2$5 = {
|
|
@@ -6864,12 +6875,23 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
6864
6875
|
clearTimeout(proxy.resizeTimer);
|
|
6865
6876
|
}
|
|
6866
6877
|
proxy.resizeTimer = setTimeout(() => {
|
|
6867
|
-
if (proxy._isUnmounted || !proxy.$el || proxy._suppressLaneWidthSync) {
|
|
6878
|
+
if (proxy._isUnmounted || !proxy.$el || proxy._suppressLaneWidthSync || proxy.isLineDragging || proxy.isLaneDragging || proxy.isResizing) {
|
|
6868
6879
|
return;
|
|
6869
6880
|
}
|
|
6881
|
+
beginLaneWidthSyncGuard();
|
|
6882
|
+
const container = proxy.$refs.targetDom;
|
|
6883
|
+
const containerWidth = container ? container.clientWidth : 0;
|
|
6870
6884
|
proxy.updateDomHeight();
|
|
6871
|
-
proxy.
|
|
6872
|
-
|
|
6885
|
+
const { lanes = [] } = proxy.currentTemplate || {};
|
|
6886
|
+
const overrides = proxy.laneWidthOverrides || {};
|
|
6887
|
+
const allHaveWidth = lanes.length > 0 && lanes.every((lane) => overrides[String(lane.laneId)] != null);
|
|
6888
|
+
const prevW = proxy._lastObservedContainerWidth;
|
|
6889
|
+
const containerWidthChanged = prevW == null || Math.abs(prevW - containerWidth) >= 2;
|
|
6890
|
+
if (!allHaveWidth || containerWidthChanged) {
|
|
6891
|
+
proxy._lastObservedContainerWidth = containerWidth;
|
|
6892
|
+
proxy.updateLaneWidthOverrides();
|
|
6893
|
+
}
|
|
6894
|
+
}, 150);
|
|
6873
6895
|
}
|
|
6874
6896
|
function updateDomHeight() {
|
|
6875
6897
|
const container = proxy.$refs.targetDom;
|
|
@@ -6894,18 +6916,27 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
6894
6916
|
}
|
|
6895
6917
|
function beginLaneWidthSyncGuard() {
|
|
6896
6918
|
proxy._suppressLaneWidthSync = true;
|
|
6919
|
+
if (proxy.resizeObserver) {
|
|
6920
|
+
proxy.resizeObserver.disconnect();
|
|
6921
|
+
}
|
|
6897
6922
|
if (proxy._laneWidthSyncGuardTimer) {
|
|
6898
6923
|
clearTimeout(proxy._laneWidthSyncGuardTimer);
|
|
6899
6924
|
}
|
|
6900
6925
|
proxy._laneWidthSyncGuardTimer = setTimeout(() => {
|
|
6901
6926
|
proxy._laneWidthSyncGuardTimer = 0;
|
|
6902
6927
|
proxy._suppressLaneWidthSync = false;
|
|
6903
|
-
|
|
6928
|
+
if (!proxy._isUnmounted && proxy.$refs.targetDom) {
|
|
6929
|
+
proxy.setupResizeObserver();
|
|
6930
|
+
}
|
|
6931
|
+
}, 320);
|
|
6904
6932
|
}
|
|
6905
6933
|
function updateLaneWidthOverrides() {
|
|
6906
|
-
if (proxy.
|
|
6934
|
+
if (proxy.isLineDragging || proxy.isLaneDragging || proxy.isResizing) {
|
|
6907
6935
|
return;
|
|
6908
6936
|
}
|
|
6937
|
+
if (!proxy._suppressLaneWidthSync) {
|
|
6938
|
+
beginLaneWidthSyncGuard();
|
|
6939
|
+
}
|
|
6909
6940
|
const { lanes = [] } = proxy.currentTemplate || {};
|
|
6910
6941
|
if (!lanes.length) return;
|
|
6911
6942
|
const nextOverrides = { ...proxy.laneWidthOverrides || {} };
|
|
@@ -6928,7 +6959,6 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
6928
6959
|
const nextKeys = Object.keys(nextOverrides);
|
|
6929
6960
|
const sameAsEmitted = nextKeys.length === Object.keys(prev).length && nextKeys.every((k) => prev[k] === nextOverrides[k]);
|
|
6930
6961
|
if (sameAsEmitted) return;
|
|
6931
|
-
beginLaneWidthSyncGuard();
|
|
6932
6962
|
proxy.laneWidthOverrides = nextOverrides;
|
|
6933
6963
|
proxy._lastEmittedLaneWidthMap = { ...nextOverrides };
|
|
6934
6964
|
emit("lane-width-change", { ...nextOverrides });
|
|
@@ -6957,7 +6987,6 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
6957
6987
|
let newWidth = Math.max(minWidth, currentWidth + deltaX);
|
|
6958
6988
|
proxy.setLaneWidthOverride(currentLane2.laneId, newWidth);
|
|
6959
6989
|
proxy.startX = event.clientX;
|
|
6960
|
-
proxy.$forceUpdate();
|
|
6961
6990
|
}
|
|
6962
6991
|
function stopResize() {
|
|
6963
6992
|
proxy.isResizing = false;
|
|
@@ -7071,12 +7100,27 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
7071
7100
|
proxy._laneOrderBeforeDrag = null;
|
|
7072
7101
|
}
|
|
7073
7102
|
function dragUpdateLine(data) {
|
|
7074
|
-
|
|
7103
|
+
const payload = { ...data };
|
|
7104
|
+
const base = payload[RUNTIME_RANGE_BASE_KEY];
|
|
7105
|
+
if (base) {
|
|
7106
|
+
if (Object.prototype.hasOwnProperty.call(base, "min")) payload.min = base.min;
|
|
7107
|
+
if (Object.prototype.hasOwnProperty.call(base, "max")) payload.max = base.max;
|
|
7108
|
+
}
|
|
7109
|
+
stripRuntimeRangeFields(payload);
|
|
7110
|
+
return proxy.strategy.upsertLine(payload).then((savedData) => {
|
|
7111
|
+
const forMemory = {
|
|
7112
|
+
...savedData,
|
|
7113
|
+
min: data.min,
|
|
7114
|
+
max: data.max
|
|
7115
|
+
};
|
|
7116
|
+
if (data[RUNTIME_RANGE_BASE_KEY]) {
|
|
7117
|
+
forMemory[RUNTIME_RANGE_BASE_KEY] = data[RUNTIME_RANGE_BASE_KEY];
|
|
7118
|
+
}
|
|
7075
7119
|
const currentLanes = proxy.currentTemplate.lanes;
|
|
7076
7120
|
currentLanes.forEach((lane) => {
|
|
7077
|
-
if (lane.laneId !=
|
|
7121
|
+
if (lane.laneId != forMemory.laneId) {
|
|
7078
7122
|
const staleIndex = (lane.lines || []).findIndex(
|
|
7079
|
-
(line) => line.lineId ==
|
|
7123
|
+
(line) => line.lineId == forMemory.lineId
|
|
7080
7124
|
);
|
|
7081
7125
|
if (staleIndex >= 0) {
|
|
7082
7126
|
lane.lines.splice(staleIndex, 1);
|
|
@@ -7084,21 +7128,21 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
7084
7128
|
}
|
|
7085
7129
|
});
|
|
7086
7130
|
const laneIndex = currentLanes.findIndex((lane) => {
|
|
7087
|
-
return lane.laneId ==
|
|
7131
|
+
return lane.laneId == forMemory.laneId;
|
|
7088
7132
|
});
|
|
7089
7133
|
if (laneIndex < 0) {
|
|
7090
7134
|
for (const template of proxy.treeTemplates) {
|
|
7091
7135
|
const { lanes } = template;
|
|
7092
7136
|
for (const lane of lanes) {
|
|
7093
|
-
if (lane.laneId ==
|
|
7137
|
+
if (lane.laneId == forMemory.laneId) {
|
|
7094
7138
|
const { lines } = lane;
|
|
7095
7139
|
const lineIndex = lines.findIndex((line) => {
|
|
7096
|
-
return line.lineId ==
|
|
7140
|
+
return line.lineId == forMemory.lineId;
|
|
7097
7141
|
});
|
|
7098
7142
|
if (lineIndex < 0) {
|
|
7099
|
-
lines.push(
|
|
7143
|
+
lines.push(forMemory);
|
|
7100
7144
|
} else {
|
|
7101
|
-
lines[lineIndex] =
|
|
7145
|
+
lines[lineIndex] = forMemory;
|
|
7102
7146
|
}
|
|
7103
7147
|
sortLaneLines(lane);
|
|
7104
7148
|
break;
|
|
@@ -7109,16 +7153,16 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
7109
7153
|
const lane = currentLanes[laneIndex];
|
|
7110
7154
|
const currentLines = lane.lines;
|
|
7111
7155
|
const lineIndex = currentLines.findIndex((line) => {
|
|
7112
|
-
return line.lineId ==
|
|
7156
|
+
return line.lineId == forMemory.lineId;
|
|
7113
7157
|
});
|
|
7114
7158
|
if (lineIndex < 0) {
|
|
7115
|
-
currentLines.push(
|
|
7159
|
+
currentLines.push(forMemory);
|
|
7116
7160
|
} else {
|
|
7117
|
-
currentLines[lineIndex] =
|
|
7161
|
+
currentLines[lineIndex] = forMemory;
|
|
7118
7162
|
}
|
|
7119
7163
|
currentLanes[laneIndex] = lane;
|
|
7120
7164
|
sortLaneLines(lane);
|
|
7121
|
-
return
|
|
7165
|
+
return forMemory;
|
|
7122
7166
|
}
|
|
7123
7167
|
});
|
|
7124
7168
|
}
|
|
@@ -7193,7 +7237,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
7193
7237
|
const minPx = 40;
|
|
7194
7238
|
const w = Math.max(minPx, Math.round(Number(px) || 0));
|
|
7195
7239
|
if (proxy.laneWidthOverrides[id] === w) return;
|
|
7196
|
-
proxy.laneWidthOverrides[id]
|
|
7240
|
+
proxy.laneWidthOverrides = { ...proxy.laneWidthOverrides, [id]: w };
|
|
7197
7241
|
}
|
|
7198
7242
|
function laneContainerStyle(lane, type) {
|
|
7199
7243
|
const widthPx = proxy.getLaneWidthPxForLayout(lane);
|
|
@@ -7245,7 +7289,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
7245
7289
|
}
|
|
7246
7290
|
function buildCurrentConfigSnapshot() {
|
|
7247
7291
|
const base = cloneDeep(proxy.config || {});
|
|
7248
|
-
|
|
7292
|
+
const snapshot = {
|
|
7249
7293
|
...base,
|
|
7250
7294
|
dataSource: {
|
|
7251
7295
|
...base.dataSource || {},
|
|
@@ -7253,6 +7297,8 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
7253
7297
|
params: cloneDeep(proxy.params || [])
|
|
7254
7298
|
}
|
|
7255
7299
|
};
|
|
7300
|
+
stripRuntimeRangeForPersist(snapshot);
|
|
7301
|
+
return snapshot;
|
|
7256
7302
|
}
|
|
7257
7303
|
function emitConfigChange(reason) {
|
|
7258
7304
|
const payload = {
|
|
@@ -7374,7 +7420,8 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
7374
7420
|
});
|
|
7375
7421
|
}
|
|
7376
7422
|
function upsertLine(data) {
|
|
7377
|
-
|
|
7423
|
+
const payload = stripRuntimeRangeFields({ ...data });
|
|
7424
|
+
return proxy.strategy.upsertLine(payload).then((savedData) => {
|
|
7378
7425
|
const currentLanes = proxy.currentTemplate.lanes;
|
|
7379
7426
|
const laneIndex = currentLanes.findIndex((lane) => {
|
|
7380
7427
|
return lane.laneId == savedData.laneId;
|
|
@@ -7676,10 +7723,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
7676
7723
|
proxy.isLoading = true;
|
|
7677
7724
|
return proxy.strategy.getUserTemplates().then((dbDatas) => {
|
|
7678
7725
|
const dataSource = proxy.config && proxy.config.dataSource;
|
|
7679
|
-
const merged =
|
|
7680
|
-
mergeCurveI18nFromDataSource(dbDatas, dataSource),
|
|
7681
|
-
dataSource
|
|
7682
|
-
);
|
|
7726
|
+
const merged = mergeCurveI18nFromDataSource(dbDatas, dataSource);
|
|
7683
7727
|
const { templates = [], params: params2 = [] } = merged;
|
|
7684
7728
|
proxy.params = params2;
|
|
7685
7729
|
sortTemplates(templates);
|
|
@@ -7731,6 +7775,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
7731
7775
|
if (prevTemplateId != null && proxy.currentTemplate && proxy.currentTemplate.templateId !== prevTemplateId || type === "changeNumber") {
|
|
7732
7776
|
proxy.laneWidthOverrides = {};
|
|
7733
7777
|
proxy._lastEmittedLaneWidthMap = {};
|
|
7778
|
+
proxy._lastObservedContainerWidth = null;
|
|
7734
7779
|
}
|
|
7735
7780
|
sortLanes(proxy.currentTemplate.lanes);
|
|
7736
7781
|
emit("template-change", proxy.currentTemplate);
|
|
@@ -8633,7 +8678,7 @@ const _sfc_main$6 = /* @__PURE__ */ Object.assign({
|
|
|
8633
8678
|
};
|
|
8634
8679
|
}
|
|
8635
8680
|
});
|
|
8636
|
-
const KdLaneContainerComponent = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
8681
|
+
const KdLaneContainerComponent = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-8592a21f"]]);
|
|
8637
8682
|
/*! Element Plus v2.14.3 */
|
|
8638
8683
|
var en_default = {
|
|
8639
8684
|
name: "en",
|
|
@@ -12730,7 +12775,7 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({
|
|
|
12730
12775
|
proxy._laneWidthResizeTimer = 0;
|
|
12731
12776
|
if (proxy._isUnmounted) return;
|
|
12732
12777
|
proxy.resizeAllLaneCharts();
|
|
12733
|
-
},
|
|
12778
|
+
}, 50);
|
|
12734
12779
|
}
|
|
12735
12780
|
function isSameLaneWidthMap(a, b) {
|
|
12736
12781
|
const left = a || {};
|
|
@@ -13067,7 +13112,6 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({
|
|
|
13067
13112
|
if (!hasMin && !hasMax) return false;
|
|
13068
13113
|
if (hasMin && !Number.isFinite(Number(nextMin))) return false;
|
|
13069
13114
|
if (hasMax && !Number.isFinite(Number(nextMax))) return false;
|
|
13070
|
-
if (proxy.isParamRangeLocked(id)) return false;
|
|
13071
13115
|
const prev = proxy.paramRangeOverrides[id] || {};
|
|
13072
13116
|
proxy.paramRangeOverrides[id] = {
|
|
13073
13117
|
min: hasMin ? Number(nextMin) : prev.min,
|
|
@@ -13077,28 +13121,21 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({
|
|
|
13077
13121
|
if (updated) proxy.updateLanesChartOption();
|
|
13078
13122
|
return true;
|
|
13079
13123
|
}
|
|
13080
|
-
function
|
|
13081
|
-
const id = String(paramsId);
|
|
13082
|
-
let found = false;
|
|
13083
|
-
let unlocked = false;
|
|
13084
|
-
proxy.forEachConfigLine((line) => {
|
|
13085
|
-
if (String(line.paramId) !== id) return;
|
|
13086
|
-
found = true;
|
|
13087
|
-
if (!line.templateRangeSaved) unlocked = true;
|
|
13088
|
-
});
|
|
13089
|
-
return found && !unlocked;
|
|
13090
|
-
}
|
|
13091
|
-
function markTemplateRangeSaved(payload) {
|
|
13124
|
+
function clearParamRangeOverride(payload) {
|
|
13092
13125
|
if (!payload) return;
|
|
13126
|
+
const paramId = payload.paramId != null ? String(payload.paramId) : "";
|
|
13093
13127
|
const lineId = payload.lineId;
|
|
13094
|
-
|
|
13128
|
+
if (paramId && proxy.paramRangeOverrides[paramId]) {
|
|
13129
|
+
delete proxy.paramRangeOverrides[paramId];
|
|
13130
|
+
}
|
|
13095
13131
|
proxy.forEachConfigLine((line) => {
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13132
|
+
const hit = lineId != null && line.lineId === lineId || lineId == null && paramId && String(line.paramId) === paramId;
|
|
13133
|
+
if (!hit) return;
|
|
13134
|
+
if (Object.prototype.hasOwnProperty.call(line, RUNTIME_RANGE_BASE_KEY)) {
|
|
13135
|
+
delete line[RUNTIME_RANGE_BASE_KEY];
|
|
13099
13136
|
}
|
|
13100
|
-
if (
|
|
13101
|
-
line.templateRangeSaved
|
|
13137
|
+
if (Object.prototype.hasOwnProperty.call(line, "templateRangeSaved")) {
|
|
13138
|
+
delete line.templateRangeSaved;
|
|
13102
13139
|
}
|
|
13103
13140
|
});
|
|
13104
13141
|
}
|
|
@@ -13128,7 +13165,12 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({
|
|
|
13128
13165
|
let updated = false;
|
|
13129
13166
|
proxy.forEachConfigLine((line) => {
|
|
13130
13167
|
if (String(line.paramId) !== id) return;
|
|
13131
|
-
if (line
|
|
13168
|
+
if (!line[RUNTIME_RANGE_BASE_KEY]) {
|
|
13169
|
+
line[RUNTIME_RANGE_BASE_KEY] = {
|
|
13170
|
+
min: line.min,
|
|
13171
|
+
max: line.max
|
|
13172
|
+
};
|
|
13173
|
+
}
|
|
13132
13174
|
if (override.min != null && Number(line.min) !== override.min) {
|
|
13133
13175
|
line.min = override.min;
|
|
13134
13176
|
updated = true;
|
|
@@ -14244,13 +14286,8 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({
|
|
|
14244
14286
|
}
|
|
14245
14287
|
async function lineChange(payload) {
|
|
14246
14288
|
if (payload && payload.actionType === "upsertLine") {
|
|
14247
|
-
|
|
14248
|
-
|
|
14249
|
-
if (isFunctionCurve && payload.templateRangeSaved) {
|
|
14250
|
-
proxy.markTemplateRangeSaved(payload);
|
|
14251
|
-
} else {
|
|
14252
|
-
proxy.applyAllParamRangeOverrides();
|
|
14253
|
-
}
|
|
14289
|
+
proxy.clearParamRangeOverride(payload);
|
|
14290
|
+
proxy.applyAllParamRangeOverrides();
|
|
14254
14291
|
}
|
|
14255
14292
|
await nextTick();
|
|
14256
14293
|
if (proxy._isUnmounted) return;
|
|
@@ -19061,8 +19098,7 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({
|
|
|
19061
19098
|
showTrendKnotContextMenu,
|
|
19062
19099
|
getTrendLineData,
|
|
19063
19100
|
setCurveMinMaxByParamId,
|
|
19064
|
-
|
|
19065
|
-
markTemplateRangeSaved,
|
|
19101
|
+
clearParamRangeOverride,
|
|
19066
19102
|
forEachConfigLine,
|
|
19067
19103
|
applyParamRangeById,
|
|
19068
19104
|
applyAllParamRangeOverrides,
|
|
@@ -19591,8 +19627,7 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({
|
|
|
19591
19627
|
showTrendKnotContextMenu,
|
|
19592
19628
|
getTrendLineData,
|
|
19593
19629
|
setCurveMinMaxByParamId,
|
|
19594
|
-
|
|
19595
|
-
markTemplateRangeSaved,
|
|
19630
|
+
clearParamRangeOverride,
|
|
19596
19631
|
forEachConfigLine,
|
|
19597
19632
|
applyParamRangeById,
|
|
19598
19633
|
applyAllParamRangeOverrides,
|
|
@@ -20055,7 +20090,7 @@ const _sfc_main$2 = /* @__PURE__ */ Object.assign({
|
|
|
20055
20090
|
};
|
|
20056
20091
|
}
|
|
20057
20092
|
});
|
|
20058
|
-
const LineChartContainer = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
20093
|
+
const LineChartContainer = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-996922ca"]]);
|
|
20059
20094
|
const _hoisted_1$1 = ["title"];
|
|
20060
20095
|
const _hoisted_2$1 = ["title"];
|
|
20061
20096
|
const _sfc_main$1 = /* @__PURE__ */ Object.assign({
|
|
@@ -21790,7 +21825,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({ name: "frameLayout", component
|
|
|
21790
21825
|
};
|
|
21791
21826
|
}
|
|
21792
21827
|
});
|
|
21793
|
-
const FrameLayoutComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
21828
|
+
const FrameLayoutComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2cf67725"]]);
|
|
21794
21829
|
function installComponents(app) {
|
|
21795
21830
|
installKdI18n(app);
|
|
21796
21831
|
app.component(KdLaneContainerComponent.name, KdLaneContainerComponent);
|