@vmscloud/moz-ui-chart-vue 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -0
- package/dist/EChart.vue.d.ts +70 -0
- package/dist/EChartPopup.d.ts +65 -0
- package/dist/EChartPopup.vue.d.ts +94 -0
- package/dist/ViewDefinitionPanel.vue.d.ts +26 -0
- package/dist/bridge/VueRenderer.d.ts +12 -0
- package/dist/contracts/UserLayoutInstance.d.ts +38 -0
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/userLayout.contract.d.ts +15 -0
- package/dist/echarts-stat.cjs +1 -0
- package/dist/echarts-stat.d.ts +1 -0
- package/dist/echarts-stat.js +4 -0
- package/dist/echarts.charts.cjs +1 -0
- package/dist/echarts.charts.d.ts +1 -0
- package/dist/echarts.charts.js +1 -0
- package/dist/echarts.cjs +1 -0
- package/dist/echarts.components.cjs +1 -0
- package/dist/echarts.components.d.ts +1 -0
- package/dist/echarts.components.js +1 -0
- package/dist/echarts.core.cjs +1 -0
- package/dist/echarts.core.d.ts +1 -0
- package/dist/echarts.core.js +1 -0
- package/dist/echarts.d.ts +2 -0
- package/dist/echarts.js +4 -0
- package/dist/echarts.renderers.cjs +1 -0
- package/dist/echarts.renderers.d.ts +1 -0
- package/dist/echarts.renderers.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +531 -0
- package/dist/locale/index.d.ts +23 -0
- package/dist/style.css +1 -0
- package/dist/types.d.ts +27 -0
- package/package.json +95 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
import { reactive, createApp, onBeforeUnmount, inject, ref, defineComponent, provide, computed, onUnmounted, onMounted, useModel, useSlots, getCurrentInstance, toRaw, watch, openBlock, createElementBlock, mergeModels, createVNode, unref, isRef } from "vue";
|
|
5
|
+
import { generateUUID, koKR, listenChartPopupPayload, openChartPopupWindow, showMessage, ChartChrome, ViewDefinitionPanelHost } from "@vmscloud/moz-ui-chart-core";
|
|
6
|
+
import { Aggregate, ChartChrome as ChartChrome2, DataType, MozEChart, RENDER_LIMIT, enUS, jaJP, koKR as koKR2, showConfirm, showDialog, showMessage as showMessage2, zhCN } from "@vmscloud/moz-ui-chart-core";
|
|
7
|
+
import { useRouter } from "vue-router";
|
|
8
|
+
class VueRenderer {
|
|
9
|
+
constructor() {
|
|
10
|
+
__publicField(this, "appContext", null);
|
|
11
|
+
__publicField(this, "apps", /* @__PURE__ */ new Set());
|
|
12
|
+
}
|
|
13
|
+
setAppContext(ctx) {
|
|
14
|
+
this.appContext = ctx;
|
|
15
|
+
}
|
|
16
|
+
mountInstance(container, slot, initialProps) {
|
|
17
|
+
const reactiveProps = reactive({ ...initialProps });
|
|
18
|
+
const app = createApp({
|
|
19
|
+
render() {
|
|
20
|
+
return slot(reactiveProps);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
if (this.appContext) {
|
|
24
|
+
app._context.provides = { ...this.appContext.provides };
|
|
25
|
+
app._context.components = { ...this.appContext.components };
|
|
26
|
+
app._context.directives = { ...this.appContext.directives };
|
|
27
|
+
app._context.config.globalProperties = { ...this.appContext.config.globalProperties };
|
|
28
|
+
}
|
|
29
|
+
app.mount(container);
|
|
30
|
+
this.apps.add(app);
|
|
31
|
+
return {
|
|
32
|
+
update: (props) => {
|
|
33
|
+
Object.assign(reactiveProps, props);
|
|
34
|
+
},
|
|
35
|
+
destroy: () => {
|
|
36
|
+
this.apps.delete(app);
|
|
37
|
+
app.unmount();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
unmountAll() {
|
|
42
|
+
for (const app of this.apps) {
|
|
43
|
+
try {
|
|
44
|
+
app.unmount();
|
|
45
|
+
} catch {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
this.apps.clear();
|
|
49
|
+
}
|
|
50
|
+
get size() {
|
|
51
|
+
return this.apps.size;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
class UserLayoutInstance {
|
|
55
|
+
constructor({ id, type, exportDef, importDef, strict, dependencies, manualLifeCycle }) {
|
|
56
|
+
__publicField(this, "uniqueId");
|
|
57
|
+
__publicField(this, "_id");
|
|
58
|
+
__publicField(this, "_type");
|
|
59
|
+
__publicField(this, "_default");
|
|
60
|
+
__publicField(this, "_importDef");
|
|
61
|
+
__publicField(this, "_exportDef");
|
|
62
|
+
__publicField(this, "_pendingDef");
|
|
63
|
+
__publicField(this, "_pending");
|
|
64
|
+
__publicField(this, "dispose", () => {
|
|
65
|
+
});
|
|
66
|
+
__publicField(this, "setApplied", () => {
|
|
67
|
+
});
|
|
68
|
+
__publicField(this, "strict");
|
|
69
|
+
__publicField(this, "dependencies");
|
|
70
|
+
this.uniqueId = generateUUID();
|
|
71
|
+
this._id = id;
|
|
72
|
+
this._type = type;
|
|
73
|
+
this._importDef = importDef;
|
|
74
|
+
this._exportDef = exportDef;
|
|
75
|
+
this._default = exportDef();
|
|
76
|
+
this._pending = false;
|
|
77
|
+
this._pendingDef = null;
|
|
78
|
+
this.strict = strict ?? false;
|
|
79
|
+
this.dependencies = dependencies ?? null;
|
|
80
|
+
if (!manualLifeCycle) {
|
|
81
|
+
onBeforeUnmount(() => {
|
|
82
|
+
this.dispose();
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
get pending() {
|
|
87
|
+
return this._pending;
|
|
88
|
+
}
|
|
89
|
+
set pending(value) {
|
|
90
|
+
this._pending = value;
|
|
91
|
+
if (!value && this._pendingDef) {
|
|
92
|
+
try {
|
|
93
|
+
this._importDef(this._pendingDef);
|
|
94
|
+
this.setApplied(true);
|
|
95
|
+
} catch (e) {
|
|
96
|
+
console.warn(`[UserLayoutInstance] id="${this._id}" importDef 실패:`, e);
|
|
97
|
+
} finally {
|
|
98
|
+
this._pendingDef = null;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
get id() {
|
|
103
|
+
return this._id;
|
|
104
|
+
}
|
|
105
|
+
get type() {
|
|
106
|
+
return this._type;
|
|
107
|
+
}
|
|
108
|
+
get default() {
|
|
109
|
+
return this._default;
|
|
110
|
+
}
|
|
111
|
+
set default(value) {
|
|
112
|
+
this._default = value;
|
|
113
|
+
}
|
|
114
|
+
get current() {
|
|
115
|
+
return this._exportDef();
|
|
116
|
+
}
|
|
117
|
+
set current(value) {
|
|
118
|
+
if (this.pending) {
|
|
119
|
+
this._pendingDef = value;
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
this._importDef(value);
|
|
123
|
+
this.setApplied(true);
|
|
124
|
+
}
|
|
125
|
+
setDefaultToCurrent() {
|
|
126
|
+
this._default = this._exportDef();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
const USER_LAYOUT_PROVIDER_KEY = "user-layout-module";
|
|
130
|
+
const useUserLayoutModule = () => inject(USER_LAYOUT_PROVIDER_KEY, {
|
|
131
|
+
register: () => {
|
|
132
|
+
},
|
|
133
|
+
currentPreset: ref(null)
|
|
134
|
+
});
|
|
135
|
+
const MOZ_CHART_LOCALE_KEY = Symbol("MozChartLocale");
|
|
136
|
+
function useChartLocale() {
|
|
137
|
+
const injected = inject(MOZ_CHART_LOCALE_KEY, null);
|
|
138
|
+
if (injected) return injected;
|
|
139
|
+
return computed(() => koKR);
|
|
140
|
+
}
|
|
141
|
+
const ChartLocaleProvider = defineComponent({
|
|
142
|
+
name: "ChartLocaleProvider",
|
|
143
|
+
props: {
|
|
144
|
+
locale: { type: Object, default: () => koKR }
|
|
145
|
+
},
|
|
146
|
+
setup(props, { slots }) {
|
|
147
|
+
provide(
|
|
148
|
+
MOZ_CHART_LOCALE_KEY,
|
|
149
|
+
computed(() => props.locale)
|
|
150
|
+
);
|
|
151
|
+
return () => {
|
|
152
|
+
var _a;
|
|
153
|
+
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
function useEChartPopup() {
|
|
158
|
+
const locale = useChartLocale();
|
|
159
|
+
const router = useRouter();
|
|
160
|
+
const chartPopupTitle = ref("");
|
|
161
|
+
let handle = null;
|
|
162
|
+
const openChartPopup = async (data, chartKey, title) => {
|
|
163
|
+
chartPopupTitle.value = title ?? locale.value.Chart.chartPopup;
|
|
164
|
+
handle == null ? void 0 : handle.close();
|
|
165
|
+
const href = router.resolve({ path: `/chartPopup/${chartKey}`, query: {} }).href;
|
|
166
|
+
handle = openChartPopupWindow({
|
|
167
|
+
href,
|
|
168
|
+
name: chartKey,
|
|
169
|
+
payload: data,
|
|
170
|
+
title: chartPopupTitle.value,
|
|
171
|
+
onBlocked: () => showMessage(locale.value.Chart.errorMessage, false)
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
const closePopup = () => {
|
|
175
|
+
handle == null ? void 0 : handle.close();
|
|
176
|
+
handle = null;
|
|
177
|
+
};
|
|
178
|
+
onUnmounted(() => closePopup());
|
|
179
|
+
return { openChartPopup, closePopup, chartPopupTitle };
|
|
180
|
+
}
|
|
181
|
+
function useEChartPopupView() {
|
|
182
|
+
const itemsSource = ref([]);
|
|
183
|
+
const chartDef = ref({});
|
|
184
|
+
const viewDef = ref({ fields: [], columnFields: [], rowFields: [], valueFields: [] });
|
|
185
|
+
const filterDef = ref([]);
|
|
186
|
+
const chartPopupTitle = ref("");
|
|
187
|
+
const chartDefTemplate = ref({});
|
|
188
|
+
let stop = null;
|
|
189
|
+
onMounted(() => {
|
|
190
|
+
stop = listenChartPopupPayload((data) => {
|
|
191
|
+
itemsSource.value = data.itemsSource;
|
|
192
|
+
chartDef.value = data.chartDef;
|
|
193
|
+
viewDef.value = data.viewDef;
|
|
194
|
+
filterDef.value = data.filterDef;
|
|
195
|
+
chartDefTemplate.value = data.chartDefTemplate ?? {};
|
|
196
|
+
if (data.title) chartPopupTitle.value = data.title;
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
onUnmounted(() => stop == null ? void 0 : stop());
|
|
200
|
+
return { itemsSource, chartDef, viewDef, filterDef, chartPopupTitle, chartDefTemplate };
|
|
201
|
+
}
|
|
202
|
+
const _hoisted_1$1 = ["data-chart-id"];
|
|
203
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
204
|
+
__name: "EChart",
|
|
205
|
+
props: /* @__PURE__ */ mergeModels({
|
|
206
|
+
id: {},
|
|
207
|
+
itemsSource: { default: () => [] },
|
|
208
|
+
isFetching: { type: Boolean },
|
|
209
|
+
chartDef: { default: () => ({}) },
|
|
210
|
+
chartDefTemplate: {},
|
|
211
|
+
useToolBox: { type: Boolean, default: true },
|
|
212
|
+
useChartPopupIcon: { type: Boolean, default: false },
|
|
213
|
+
useChartSetting: { type: Boolean, default: true },
|
|
214
|
+
chartPopupTitle: {},
|
|
215
|
+
useStackBarHover: { type: Boolean, default: true },
|
|
216
|
+
onInitialized: {}
|
|
217
|
+
}, {
|
|
218
|
+
"viewDef": {
|
|
219
|
+
default: () => ({ fields: [], rowFields: [], columnFields: [], valueFields: [] })
|
|
220
|
+
},
|
|
221
|
+
"viewDefModifiers": {},
|
|
222
|
+
"filterDef": { default: () => [] },
|
|
223
|
+
"filterDefModifiers": {}
|
|
224
|
+
}),
|
|
225
|
+
emits: /* @__PURE__ */ mergeModels(["update:chartDef"], ["update:viewDef", "update:filterDef"]),
|
|
226
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
227
|
+
const props = __props;
|
|
228
|
+
const emits = __emit;
|
|
229
|
+
const viewDef = useModel(__props, "viewDef");
|
|
230
|
+
const filterDef = useModel(__props, "filterDef");
|
|
231
|
+
const hostRef = ref();
|
|
232
|
+
const slots = useSlots();
|
|
233
|
+
const locale = useChartLocale();
|
|
234
|
+
const { register } = useUserLayoutModule();
|
|
235
|
+
const { openChartPopup } = useEChartPopup();
|
|
236
|
+
const renderer = new VueRenderer();
|
|
237
|
+
const vm = getCurrentInstance();
|
|
238
|
+
if (vm) renderer.setAppContext(vm.appContext);
|
|
239
|
+
let chrome = null;
|
|
240
|
+
let layoutInstance = null;
|
|
241
|
+
const SLOT_NAMES = ["tool-left", "tool-items", "tool-items-after"];
|
|
242
|
+
function slotRenderer(name) {
|
|
243
|
+
return (el, scope) => {
|
|
244
|
+
const handle = renderer.mountInstance(el, (p) => {
|
|
245
|
+
var _a;
|
|
246
|
+
return (_a = slots[name]) == null ? void 0 : _a.call(slots, p);
|
|
247
|
+
}, scope ?? {});
|
|
248
|
+
return { update: (s) => handle.update(s ?? {}), dispose: () => handle.destroy() };
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
function coreProps() {
|
|
252
|
+
return {
|
|
253
|
+
id: props.id,
|
|
254
|
+
itemsSource: props.itemsSource,
|
|
255
|
+
chartDef: props.chartDef,
|
|
256
|
+
viewDef: viewDef.value,
|
|
257
|
+
filterDef: filterDef.value,
|
|
258
|
+
chartDefTemplate: props.chartDefTemplate,
|
|
259
|
+
isFetching: props.isFetching,
|
|
260
|
+
useToolBox: props.useToolBox,
|
|
261
|
+
useChartSetting: props.useChartSetting,
|
|
262
|
+
useChartPopupIcon: props.useChartPopupIcon,
|
|
263
|
+
chartPopupTitle: props.chartPopupTitle,
|
|
264
|
+
useStackBarHover: props.useStackBarHover,
|
|
265
|
+
onInitialized: props.onInitialized
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
onMounted(() => {
|
|
269
|
+
const slotMap = {};
|
|
270
|
+
for (const name of SLOT_NAMES) if (slots[name]) slotMap[name] = slotRenderer(name);
|
|
271
|
+
const c = new ChartChrome(hostRef.value, coreProps(), {
|
|
272
|
+
locale: locale.value,
|
|
273
|
+
slots: slotMap,
|
|
274
|
+
onOpenPopup: (payload, key, title) => openChartPopup(payload, key, title)
|
|
275
|
+
});
|
|
276
|
+
c.on("chartDef:change", (def) => emits("update:chartDef", def));
|
|
277
|
+
c.on("viewDef:change", (v) => {
|
|
278
|
+
if (toRaw(viewDef.value) !== toRaw(v)) viewDef.value = v;
|
|
279
|
+
});
|
|
280
|
+
c.on("filterDef:change", (f) => {
|
|
281
|
+
if (toRaw(filterDef.value) !== toRaw(f)) filterDef.value = f;
|
|
282
|
+
else vm == null ? void 0 : vm.emit("update:filterDef", f);
|
|
283
|
+
});
|
|
284
|
+
chrome = c;
|
|
285
|
+
c.mount();
|
|
286
|
+
layoutInstance = new UserLayoutInstance({
|
|
287
|
+
id: props.id,
|
|
288
|
+
type: "chart",
|
|
289
|
+
importDef: (preset) => chrome == null ? void 0 : chrome.importDefinition(preset),
|
|
290
|
+
exportDef: () => chrome ? chrome.getDefinitionWithoutData() : {}
|
|
291
|
+
});
|
|
292
|
+
register(layoutInstance);
|
|
293
|
+
});
|
|
294
|
+
watch(
|
|
295
|
+
() => props.itemsSource,
|
|
296
|
+
(v) => chrome == null ? void 0 : chrome.update({ itemsSource: v })
|
|
297
|
+
);
|
|
298
|
+
watch(
|
|
299
|
+
() => props.chartDef,
|
|
300
|
+
(v) => chrome == null ? void 0 : chrome.update({ chartDef: v })
|
|
301
|
+
);
|
|
302
|
+
watch(
|
|
303
|
+
() => props.chartDefTemplate,
|
|
304
|
+
(v) => chrome == null ? void 0 : chrome.update({ chartDefTemplate: v }),
|
|
305
|
+
{ deep: true }
|
|
306
|
+
);
|
|
307
|
+
watch(viewDef, (v) => chrome == null ? void 0 : chrome.update({ viewDef: v }), { deep: true });
|
|
308
|
+
watch(filterDef, (v) => chrome == null ? void 0 : chrome.update({ filterDef: v }), { deep: true });
|
|
309
|
+
watch(
|
|
310
|
+
() => [props.isFetching, props.useToolBox, props.useChartSetting, props.useChartPopupIcon, props.chartPopupTitle, props.useStackBarHover, props.onInitialized, props.id],
|
|
311
|
+
() => chrome == null ? void 0 : chrome.update({
|
|
312
|
+
id: props.id,
|
|
313
|
+
isFetching: props.isFetching,
|
|
314
|
+
useToolBox: props.useToolBox,
|
|
315
|
+
useChartSetting: props.useChartSetting,
|
|
316
|
+
useChartPopupIcon: props.useChartPopupIcon,
|
|
317
|
+
chartPopupTitle: props.chartPopupTitle,
|
|
318
|
+
useStackBarHover: props.useStackBarHover,
|
|
319
|
+
onInitialized: props.onInitialized
|
|
320
|
+
})
|
|
321
|
+
);
|
|
322
|
+
watch(locale, (m) => chrome == null ? void 0 : chrome.setLocale(m));
|
|
323
|
+
onBeforeUnmount(() => {
|
|
324
|
+
chrome == null ? void 0 : chrome.destroy();
|
|
325
|
+
chrome = null;
|
|
326
|
+
renderer.unmountAll();
|
|
327
|
+
});
|
|
328
|
+
const exposed = {
|
|
329
|
+
get chartCategorySource() {
|
|
330
|
+
return chrome == null ? void 0 : chrome.mozEChart.chartCategorySource;
|
|
331
|
+
},
|
|
332
|
+
get chartTypeSource() {
|
|
333
|
+
return chrome == null ? void 0 : chrome.mozEChart.chartTypeSource;
|
|
334
|
+
},
|
|
335
|
+
get mozEChart() {
|
|
336
|
+
return chrome == null ? void 0 : chrome.mozEChart;
|
|
337
|
+
},
|
|
338
|
+
get chartRef() {
|
|
339
|
+
return (chrome == null ? void 0 : chrome.echarts) ?? null;
|
|
340
|
+
},
|
|
341
|
+
get state() {
|
|
342
|
+
return chrome == null ? void 0 : chrome.state;
|
|
343
|
+
},
|
|
344
|
+
get chartCategory() {
|
|
345
|
+
return chrome == null ? void 0 : chrome.chartCategory;
|
|
346
|
+
},
|
|
347
|
+
get chartType() {
|
|
348
|
+
return chrome == null ? void 0 : chrome.chartType;
|
|
349
|
+
},
|
|
350
|
+
get useZoomX() {
|
|
351
|
+
return !!(chrome == null ? void 0 : chrome.mozEChart.dataZoomComputedProperty("x").get());
|
|
352
|
+
},
|
|
353
|
+
set useZoomX(v) {
|
|
354
|
+
chrome == null ? void 0 : chrome.mozEChart.dataZoomComputedProperty("x").set(v);
|
|
355
|
+
chrome == null ? void 0 : chrome.syncOption();
|
|
356
|
+
},
|
|
357
|
+
get useZoomY() {
|
|
358
|
+
return !!(chrome == null ? void 0 : chrome.mozEChart.dataZoomComputedProperty("y").get());
|
|
359
|
+
},
|
|
360
|
+
set useZoomY(v) {
|
|
361
|
+
chrome == null ? void 0 : chrome.mozEChart.dataZoomComputedProperty("y").set(v);
|
|
362
|
+
chrome == null ? void 0 : chrome.syncOption();
|
|
363
|
+
},
|
|
364
|
+
get chartOptionModal() {
|
|
365
|
+
return !!(chrome == null ? void 0 : chrome.optionModalOpen);
|
|
366
|
+
},
|
|
367
|
+
set chartOptionModal(v) {
|
|
368
|
+
if (chrome) chrome.optionModalOpen = v;
|
|
369
|
+
},
|
|
370
|
+
get chartFilterModel() {
|
|
371
|
+
return !!(chrome == null ? void 0 : chrome.filterModalOpen);
|
|
372
|
+
},
|
|
373
|
+
set chartFilterModel(v) {
|
|
374
|
+
if (chrome) chrome.filterModalOpen = v;
|
|
375
|
+
},
|
|
376
|
+
initializeDefinition: (initial) => chrome == null ? void 0 : chrome.initializeDefinition(initial),
|
|
377
|
+
get chartKey() {
|
|
378
|
+
return chrome == null ? void 0 : chrome.chartKey;
|
|
379
|
+
},
|
|
380
|
+
get customYAxisForSeriesType() {
|
|
381
|
+
var _a;
|
|
382
|
+
return ((_a = chrome == null ? void 0 : chrome.mozEChart.chartModule.series) == null ? void 0 : _a.customYAxisComputedProperty().get()) ?? [];
|
|
383
|
+
},
|
|
384
|
+
set customYAxisForSeriesType(v) {
|
|
385
|
+
var _a;
|
|
386
|
+
(_a = chrome == null ? void 0 : chrome.mozEChart.chartModule.series) == null ? void 0 : _a.customYAxisComputedProperty().set(v);
|
|
387
|
+
chrome == null ? void 0 : chrome.syncOption();
|
|
388
|
+
},
|
|
389
|
+
clickChartPopup: () => chrome == null ? void 0 : chrome.clickChartPopup(),
|
|
390
|
+
get useChartPopupIcon() {
|
|
391
|
+
return props.useChartPopupIcon;
|
|
392
|
+
},
|
|
393
|
+
onClickLegend: (params) => chrome == null ? void 0 : chrome.onClickLegend(params),
|
|
394
|
+
get chrome() {
|
|
395
|
+
return chrome;
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
__expose(exposed);
|
|
399
|
+
return (_ctx, _cache) => {
|
|
400
|
+
return openBlock(), createElementBlock("div", {
|
|
401
|
+
ref_key: "hostRef",
|
|
402
|
+
ref: hostRef,
|
|
403
|
+
class: "mzch-vue-echart-host",
|
|
404
|
+
"data-chart-id": __props.id
|
|
405
|
+
}, null, 8, _hoisted_1$1);
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
const _hoisted_1 = { class: "chart-popup-wrapper" };
|
|
410
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
411
|
+
__name: "EChartPopup",
|
|
412
|
+
setup(__props) {
|
|
413
|
+
const { itemsSource, chartDef, viewDef, filterDef, chartDefTemplate } = useEChartPopupView();
|
|
414
|
+
const mozEChartInitialized = (mozEChart) => {
|
|
415
|
+
mozEChart.dataZoomComputedProperty("X").set(true);
|
|
416
|
+
mozEChart.dataZoomComputedProperty("Y").set(true);
|
|
417
|
+
};
|
|
418
|
+
return (_ctx, _cache) => {
|
|
419
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
420
|
+
createVNode(_sfc_main$2, {
|
|
421
|
+
id: "chart_popup",
|
|
422
|
+
onInitialized: mozEChartInitialized,
|
|
423
|
+
itemsSource: unref(itemsSource),
|
|
424
|
+
chartDef: unref(chartDef),
|
|
425
|
+
"onUpdate:chartDef": _cache[0] || (_cache[0] = ($event) => isRef(chartDef) ? chartDef.value = $event : null),
|
|
426
|
+
viewDef: unref(viewDef),
|
|
427
|
+
"onUpdate:viewDef": _cache[1] || (_cache[1] = ($event) => isRef(viewDef) ? viewDef.value = $event : null),
|
|
428
|
+
filterDef: unref(filterDef),
|
|
429
|
+
"onUpdate:filterDef": _cache[2] || (_cache[2] = ($event) => isRef(filterDef) ? filterDef.value = $event : null),
|
|
430
|
+
chartDefTemplate: unref(chartDefTemplate),
|
|
431
|
+
ref: "chartPopupRef",
|
|
432
|
+
"use-tool-box": false
|
|
433
|
+
}, null, 8, ["itemsSource", "chartDef", "viewDef", "filterDef", "chartDefTemplate"])
|
|
434
|
+
]);
|
|
435
|
+
};
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
const _export_sfc = (sfc, props) => {
|
|
439
|
+
const target = sfc.__vccOpts || sfc;
|
|
440
|
+
for (const [key, val] of props) {
|
|
441
|
+
target[key] = val;
|
|
442
|
+
}
|
|
443
|
+
return target;
|
|
444
|
+
};
|
|
445
|
+
const EChartPopup = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-8e21a7ac"]]);
|
|
446
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
447
|
+
__name: "ViewDefinitionPanel",
|
|
448
|
+
props: /* @__PURE__ */ mergeModels({
|
|
449
|
+
customRule: { type: Function, default: () => true },
|
|
450
|
+
disableSourceField: { type: Boolean },
|
|
451
|
+
disableColumnField: { type: Boolean },
|
|
452
|
+
disableRowField: { type: Boolean },
|
|
453
|
+
disableValueField: { type: Boolean },
|
|
454
|
+
disableAggregate: { type: Boolean }
|
|
455
|
+
}, {
|
|
456
|
+
"definition": { required: true },
|
|
457
|
+
"definitionModifiers": {}
|
|
458
|
+
}),
|
|
459
|
+
emits: /* @__PURE__ */ mergeModels(["change"], ["update:definition"]),
|
|
460
|
+
setup(__props, { emit: __emit }) {
|
|
461
|
+
const props = __props;
|
|
462
|
+
const emits = __emit;
|
|
463
|
+
const definition = useModel(__props, "definition");
|
|
464
|
+
const hostRef = ref();
|
|
465
|
+
const locale = useChartLocale();
|
|
466
|
+
let host = null;
|
|
467
|
+
onMounted(() => {
|
|
468
|
+
host = new ViewDefinitionPanelHost(
|
|
469
|
+
hostRef.value,
|
|
470
|
+
{
|
|
471
|
+
definition: definition.value,
|
|
472
|
+
customRule: props.customRule,
|
|
473
|
+
disableSourceField: props.disableSourceField,
|
|
474
|
+
disableColumnField: props.disableColumnField,
|
|
475
|
+
disableRowField: props.disableRowField,
|
|
476
|
+
disableValueField: props.disableValueField,
|
|
477
|
+
disableAggregate: props.disableAggregate,
|
|
478
|
+
onChange: (field) => emits("change", field)
|
|
479
|
+
},
|
|
480
|
+
{ locale: locale.value }
|
|
481
|
+
).mount();
|
|
482
|
+
});
|
|
483
|
+
watch(
|
|
484
|
+
() => [props.disableSourceField, props.disableColumnField, props.disableRowField, props.disableValueField, props.disableAggregate],
|
|
485
|
+
() => host == null ? void 0 : host.update({
|
|
486
|
+
disableSourceField: props.disableSourceField,
|
|
487
|
+
disableColumnField: props.disableColumnField,
|
|
488
|
+
disableRowField: props.disableRowField,
|
|
489
|
+
disableValueField: props.disableValueField,
|
|
490
|
+
disableAggregate: props.disableAggregate
|
|
491
|
+
})
|
|
492
|
+
);
|
|
493
|
+
watch(definition, (v) => host == null ? void 0 : host.update({ definition: v }), { deep: true });
|
|
494
|
+
watch(locale, (m) => host == null ? void 0 : host.setLocale(m));
|
|
495
|
+
onBeforeUnmount(() => {
|
|
496
|
+
host == null ? void 0 : host.destroy();
|
|
497
|
+
host = null;
|
|
498
|
+
});
|
|
499
|
+
return (_ctx, _cache) => {
|
|
500
|
+
return openBlock(), createElementBlock("div", {
|
|
501
|
+
ref_key: "hostRef",
|
|
502
|
+
ref: hostRef,
|
|
503
|
+
class: "mzch-vue-view-def-host"
|
|
504
|
+
}, null, 512);
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
export {
|
|
509
|
+
Aggregate,
|
|
510
|
+
ChartChrome2 as ChartChrome,
|
|
511
|
+
ChartLocaleProvider,
|
|
512
|
+
DataType,
|
|
513
|
+
_sfc_main$2 as EChart,
|
|
514
|
+
EChartPopup,
|
|
515
|
+
MOZ_CHART_LOCALE_KEY,
|
|
516
|
+
MozEChart,
|
|
517
|
+
RENDER_LIMIT,
|
|
518
|
+
UserLayoutInstance,
|
|
519
|
+
_sfc_main as ViewDefinitionPanel,
|
|
520
|
+
enUS,
|
|
521
|
+
jaJP,
|
|
522
|
+
koKR2 as koKR,
|
|
523
|
+
showConfirm,
|
|
524
|
+
showDialog,
|
|
525
|
+
showMessage2 as showMessage,
|
|
526
|
+
useChartLocale,
|
|
527
|
+
useEChartPopup,
|
|
528
|
+
useEChartPopupView,
|
|
529
|
+
useUserLayoutModule,
|
|
530
|
+
zhCN
|
|
531
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { ChartLocaleMessages } from '@vmscloud/moz-ui-chart-core';
|
|
3
|
+
export declare const MOZ_CHART_LOCALE_KEY: InjectionKey<Ref<ChartLocaleMessages>>;
|
|
4
|
+
/** 주입된 로케일(없으면 koKR) */
|
|
5
|
+
export declare function useChartLocale(): Ref<ChartLocaleMessages>;
|
|
6
|
+
/** 하위 트리에 로케일을 provide 하는 래퍼 컴포넌트 (레거시 MozConfigProvider 대응) */
|
|
7
|
+
export declare const ChartLocaleProvider: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
|
+
locale: {
|
|
9
|
+
type: () => ChartLocaleMessages;
|
|
10
|
+
default: () => ChartLocaleMessages;
|
|
11
|
+
};
|
|
12
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
|
+
locale: {
|
|
16
|
+
type: () => ChartLocaleMessages;
|
|
17
|
+
default: () => ChartLocaleMessages;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
locale: ChartLocaleMessages;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export { koKR, enUS, zhCN, jaJP } from '@vmscloud/moz-ui-chart-core';
|
|
23
|
+
export type { ChartLocaleMessages } from '@vmscloud/moz-ui-chart-core';
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";@layer mzch{:root{--mzch-color-accent: var(--moz-color-accent, #4568e0);--mzch-color-accent-strong: var(--moz-color-accent-strong, #3e5dc9);--mzch-color-accent-subtle: var(--moz-color-accent-subtle, #e2e7fa);--mzch-color-danger: var(--moz-color-danger, #dc5a5a);--mzch-color-warning: var(--moz-color-warning, #fa9e23);--mzch-color-success: var(--moz-color-success, #357e63);--mzch-color-surface: var(--moz-color-surface, #ffffff);--mzch-color-on-accent: var(--moz-color-on-accent, #ffffff);--mzch-color-surface-subtle: var(--moz-color-surface-subtle, #f4f4f9);--mzch-color-surface-muted: var(--moz-color-surface-muted, #f8f8fd);--mzch-color-border: var(--moz-color-border, #bac6d4);--mzch-color-border-subtle: var(--moz-color-border-subtle, #e1e3f0);--mzch-color-text: var(--moz-color-text, #28364e);--mzch-color-text-secondary: var(--moz-color-text-secondary, #6a7184);--mzch-color-text-subtle: var(--moz-color-text-subtle, #96a5be);--mzch-color-text-muted: var(--moz-color-text-muted, #a7b1bc);--mzch-color-disabled: var(--moz-color-disabled, #e0e1ec);--mzch-color-inverse-surface: var(--mzch-color-text);--mzch-color-inverse-text: var(--mzch-color-surface);--mzch-color-accent-ring: color-mix(in srgb, var(--mzch-color-accent) 20%, transparent);--mzch-color-accent-ring-strong: color-mix(in srgb, var(--mzch-color-accent) 30%, transparent);--mzch-color-accent-soft: color-mix(in srgb, var(--mzch-color-accent) 16%, transparent);--mzch-color-accent-ghost: color-mix(in srgb, var(--mzch-color-accent) 9%, transparent);--mzch-color-danger-ring: color-mix(in srgb, var(--mzch-color-danger) 20%, transparent);--mzch-color-danger-ghost: color-mix(in srgb, var(--mzch-color-danger) 13%, transparent);--mzch-color-muted-soft: color-mix(in srgb, var(--mzch-color-text-subtle) 16%, transparent);--mzch-color-shadow: var(--moz-color-shadow, rgb(57 55 122 / .1));--mzch-color-shadow-weak: var(--moz-color-shadow-weak, rgb(0 0 0 / .05));--mzch-color-scrim: var(--moz-color-scrim, rgb(0 0 0 / .3));--mzch-color-scrim-strong: var(--moz-color-scrim-strong, rgb(66 72 83 / .5))}}@layer mzch{:root{--mzch-radius-xs: var(--moz-radius-xs, 2px);--mzch-radius-control: var(--moz-radius-control, 4px);--mzch-radius-surface: var(--moz-radius-surface, 6px);--mzch-radius-panel: var(--moz-radius-panel, 10px);--mzch-radius-chip: var(--moz-radius-chip, 10px);--mzch-radius-pill: var(--moz-radius-pill, 999px);--mzch-radius-circle: var(--moz-radius-circle, 50%)}}@layer mzch{@keyframes moz-spin{to{transform:rotate(360deg)}}.mzch-circle-loader{display:flex;justify-content:center;align-items:center;width:14px;height:14px;color:var(--mzch-color-surface);animation:moz-spin 1s linear infinite}.mzch-button{display:flex;justify-content:center;align-items:center;text-align:center;height:30px;border:1px solid var(--mzch-color-accent);border-radius:var(--mzch-radius-control);background-color:var(--mzch-color-surface);font-size:.875rem;padding:0 14px;gap:8px}.mzch-button .text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-user-select:none;user-select:none;display:flex;justify-content:center;align-items:center;font-size:.875rem;line-height:normal}.mzch-button:disabled{cursor:not-allowed}.mzch-button:focus{border-color:var(--mzch-color-accent);box-shadow:0 0 0 3px var(--mzch-color-accent-ring)}.mzch-button.loading{width:var(--mzch-btn-loading-width)}.mzch-button.loading .spinner{font-size:0}.mzch-button.loading span.text{display:none}.mzch-button.mzch-default-button{background-color:var(--mzch-color-accent);color:var(--mzch-color-surface);border-color:var(--mzch-color-accent);padding:0 .6875rem;font-weight:300}.mzch-button.mzch-default-button:hover{background-color:var(--mzch-color-accent-strong);border-color:var(--mzch-color-accent-strong)}.mzch-button.mzch-default-button:disabled{background-color:var(--mzch-color-disabled);border-color:var(--mzch-color-disabled);color:var(--mzch-color-text-muted)}.mzch-button.mzch-default-button:disabled .mozart-icons:before{color:var(--mzch-color-text-muted)}.mzch-button.mzch-icon-text-button{padding:0 12px}.mzch-button.mzch-text-button{min-width:unset;background-color:transparent;color:var(--mzch-color-accent);border-color:transparent;gap:5px;padding:0}.mzch-button.mzch-text-button .text{font-weight:400}.mzch-button.mzch-text-button:disabled{color:var(--mzch-color-text-muted)}.mzch-button.mzch-text-button:disabled:hover{background-color:transparent;cursor:not-allowed}.mzch-button.mzch-icon-button{display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;color:var(--mzch-color-surface);min-width:26px;min-height:26px;width:26px;height:26px;border-color:transparent;font-weight:300}.mzch-button.mzch-icon-button.small{min-width:20px;min-height:20px;width:20px;height:20px}.mzch-button.mzch-icon-button:hover{background-color:var(--mzch-color-muted-soft)}.mzch-button.mzch-icon-button:disabled{background-color:transparent;color:var(--mzch-color-surface)}.mzch-button.mzch-icon-button.mzch-icon-accent-button{background-color:var(--mzch-color-accent)}.mzch-button.mzch-icon-button.mzch-icon-accent-button:hover{background-color:var(--mzch-color-accent-strong);color:var(--mzch-color-surface)}.mzch-button.mzch-icon-button.mzch-icon-accent-button:disabled{background-color:var(--mzch-color-disabled)}.mzch-button.mzch-outline-button{background-color:transparent;border-color:var(--mzch-color-accent);color:var(--mzch-color-accent);font-weight:400}.mzch-button.mzch-outline-button:hover{border-color:var(--mzch-color-accent-strong);color:var(--mzch-color-accent-strong)}.mzch-button.mzch-outline-button:disabled{border-color:var(--mzch-color-text-muted);color:var(--mzch-color-text-muted)}.mzch-button.mzch-no-interaction-button:hover{background-color:transparent}.mzch-button.mzch-no-interaction-button:focus{box-shadow:none}}@layer mzch{.mzch-label{-webkit-user-select:none;user-select:none;font-size:.75rem;color:var(--mzch-color-text-secondary);font-weight:500;line-height:12px;text-align:left}.mzch-label.disabled{pointer-events:none;color:var(--mzch-color-text-muted)}.mzch-label.read-only{pointer-events:none;color:var(--mzch-color-text-secondary)}.mzch-label .require-mark{padding-left:.1875rem;color:var(--mzch-color-danger)}}@layer mzch{.mzch-switch{width:100%;box-sizing:border-box;height:1.75rem;display:flex;align-items:center;gap:6px}.mzch-switch .label-left,.mzch-switch .label-right{cursor:pointer}.mzch-switch .mzch-switch-box{width:36px;height:20px;padding:2px;box-sizing:border-box;border-radius:var(--mzch-radius-pill);background-color:var(--mzch-color-accent-ring-strong);transition:background-color .2s ease-in;position:relative}.mzch-switch .mzch-switch-box.active{background-color:var(--mzch-color-accent)}.mzch-switch .mzch-switch-box.disabled{background-color:var(--mzch-color-disabled)}.mzch-switch .mzch-switch-box.active.disabled{background-color:var(--mzch-color-border)}.mzch-switch .mzch-switch-box:focus-within{box-shadow:0 0 0 3px var(--mzch-color-accent-ring)}.mzch-switch .mzch-switch-box .mzch-switch-input{width:100%;height:100%;position:absolute;left:0;top:0;margin:0;cursor:pointer;z-index:2;opacity:0}.mzch-switch .mzch-switch-box .mzch-switch-input:disabled{cursor:not-allowed}.mzch-switch .mzch-switch-box .mzch-switch-handler{width:16px;height:16px;border-radius:var(--mzch-radius-pill);background-color:var(--mzch-color-surface);transition:transform .2s cubic-bezier(.65,.05,.36,1)}.mzch-switch .mzch-switch-box .mzch-switch-handler.active{transform:translate(16px)}.mzch-switch .mzch-switch-box .mzch-switch-handler.disabled{background-color:var(--mzch-color-surface-subtle)}}@layer mzch{.mzch-checkbox{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;flex-direction:row!important;position:relative}.mzch-checkbox.disabled{cursor:not-allowed}.mzch-checkbox:hover:not(.disabled) .check-icon path:last-of-type{stroke:var(--mzch-color-accent-strong)}.mzch-checkbox:hover:not(.disabled) .checked-icon path{fill:var(--mzch-color-accent-strong)}.mzch-checkbox:focus{outline:none}.mzch-checkbox .checkbox-icon-wrapper{position:relative;height:12px;min-height:12px;width:12px;min-width:12px}.mzch-checkbox .checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;margin:0;height:100%;width:100%;border-radius:var(--mzch-radius-xs);opacity:0}.mzch-checkbox .checkbox-visual{pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;border-radius:var(--mzch-radius-xs);transition:box-shadow .15s ease-in-out}.mzch-checkbox .checkbox-visual.focused{box-shadow:0 0 0 3px var(--mzch-color-accent-ring)}.mzch-checkbox .mzch-checkbox-label{font-weight:500;line-height:.75rem;font-size:.75rem;display:flex;align-items:center;padding-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}}@layer mzch{.mzch-input-wrapper{display:flex;flex-direction:column;position:relative}.mzch-input-wrapper .input-wrapper{display:flex;flex-direction:column;gap:3px;height:100%}.mzch-input-wrapper .input-label{display:flex;align-items:center}.mzch-input-wrapper .mzch-input{height:1.875rem;padding:0 .625rem;border:1px solid var(--mzch-color-border);border-radius:var(--mzch-radius-control);background-color:var(--mzch-color-surface);box-sizing:border-box;color:var(--mzch-color-text);font-size:.8125rem;font-family:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mzch-input-wrapper .mzch-input:hover{border-color:var(--mzch-color-accent)}.mzch-input-wrapper .mzch-input:focus{border-color:var(--mzch-color-accent);box-shadow:0 0 0 3px var(--mzch-color-accent-ring);outline:none}.mzch-input-wrapper .mzch-input::placeholder{color:var(--mzch-color-text-subtle);font-size:.8125rem}.mzch-input-wrapper .mzch-input.has-inside-message{padding-right:50%}.mzch-input-wrapper .mzch-input.has-invalid-icon{padding-right:1.875rem}.mzch-input-wrapper .mzch-input.disabled{-webkit-user-select:none;user-select:none;color:var(--mzch-color-text-muted);border:1px solid var(--mzch-color-text-muted);background:var(--mzch-color-surface-subtle);cursor:not-allowed}.mzch-input-wrapper .mzch-input.disabled::placeholder{color:var(--mzch-color-text-muted)}.mzch-input-wrapper .mzch-input.disabled:hover{border:1px solid var(--mzch-color-text-muted)}.mzch-input-wrapper .mzch-input.read-only{-webkit-user-select:none;user-select:none;border:1px solid var(--mzch-color-border);background:var(--mzch-color-surface-muted);cursor:not-allowed;border-color:var(--mzch-color-border)}.mzch-input-wrapper .mzch-input.read-only::placeholder{color:var(--mzch-color-text-muted)}.mzch-input-wrapper.is-invalid .mzch-input{border-color:var(--mzch-color-danger);box-shadow:0 0 0 3px var(--mzch-color-danger-ring)}.mzch-input-wrapper .mzch-input-invalid-message{color:var(--mzch-color-danger);font-size:.75rem;font-weight:500;cursor:default}.mzch-input-wrapper .mzch-input-invalid-message.position-outside{position:absolute;bottom:calc((.75rem + 7px)*-1);left:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mzch-input-wrapper .mzch-input-invalid-message.position-inside{position:absolute;top:50%;right:2px;transform:translateY(-50%);white-space:nowrap;padding:0 2px;pointer-events:auto;max-width:50%;overflow:hidden;text-overflow:ellipsis;z-index:1}.mzch-input-wrapper .mzch-input-invalid-icon-v2{position:absolute;bottom:0;right:0;width:1.875rem;height:1.875rem;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1}}@layer mzch{.mzch-number-input-container{display:flex;flex-direction:column;align-items:flex-start;margin:0;gap:6px}.mzch-number-input-container span.require-mark{color:var(--mzch-color-danger)}.mzch-number-input-container .mzch-number-input-wrapper{display:flex;align-items:center}.mzch-number-input-container .mzch-number-input-wrapper:hover .mzch-number-input,.mzch-number-input-container .mzch-number-input-wrapper:focus .mzch-number-input,.mzch-number-input-container .mzch-number-input-wrapper:focus-within .mzch-number-input{border-color:var(--mzch-color-accent)}.mzch-number-input-container .mzch-number-input-wrapper:hover .mzch-number-input .mzch-number-input-btn-icon path,.mzch-number-input-container .mzch-number-input-wrapper:focus .mzch-number-input .mzch-number-input-btn-icon path,.mzch-number-input-container .mzch-number-input-wrapper:focus-within .mzch-number-input .mzch-number-input-btn-icon path{fill:var(--mzch-color-accent)}.mzch-number-input-container .mzch-number-input-wrapper:hover .num-change-btn.disabled,.mzch-number-input-container .mzch-number-input-wrapper:focus .num-change-btn.disabled,.mzch-number-input-container .mzch-number-input-wrapper:focus-within .num-change-btn.disabled{border-color:var(--mzch-color-text-muted)}.mzch-number-input-container .mzch-number-input-wrapper:hover .num-change-btn.disabled.min-disabled,.mzch-number-input-container .mzch-number-input-wrapper:focus .num-change-btn.disabled.min-disabled,.mzch-number-input-container .mzch-number-input-wrapper:focus-within .num-change-btn.disabled.min-disabled{border-right-color:var(--mzch-color-text-muted)}.mzch-number-input-container .mzch-number-input-wrapper:hover .num-change-btn.disabled.max-disabled,.mzch-number-input-container .mzch-number-input-wrapper:focus .num-change-btn.disabled.max-disabled,.mzch-number-input-container .mzch-number-input-wrapper:focus-within .num-change-btn.disabled.max-disabled{border-left-color:var(--mzch-color-text-muted)}.mzch-number-input-container .mzch-number-input-wrapper .num-change-btn{box-sizing:border-box;width:30px;height:30px;min-width:30px;padding:4px}.mzch-number-input-container .mzch-number-input-wrapper .num-change-btn.disabled{border:1px solid var(--mzch-color-text-muted);background-color:var(--mzch-color-surface-subtle)}.mzch-number-input-container .mzch-number-input-wrapper .num-change-btn:focus{box-shadow:0 0 0 3px var(--mzch-color-accent-ring);z-index:2}.mzch-number-input-container .mzch-number-input-wrapper .mzch-number-input{display:flex;box-sizing:border-box;flex-grow:1;min-height:30px;height:30px;border:1px solid var(--mzch-color-border);border-left:none;border-right:none;background-color:var(--mzch-color-surface);overflow:hidden}.mzch-number-input-container .mzch-number-input-wrapper .mzch-number-input input::-webkit-outer-spin-button,.mzch-number-input-container .mzch-number-input-wrapper .mzch-number-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.mzch-number-input-container .mzch-number-input-wrapper .mzch-number-input input[type=number]{-moz-appearance:textfield}.mzch-number-input-container .mzch-number-input-wrapper .mzch-number-input input{min-height:100%;height:100%;width:100%;font-size:.8125rem;color:var(--mzch-color-text);border:none;outline:none;box-sizing:border-box;text-align:center;background-color:transparent}.mzch-number-input-container .mzch-number-input-wrapper .mzch-number-input:focus-within{box-shadow:0 0 0 3px var(--mzch-color-accent-ring);z-index:2}.mzch-number-input-container .mzch-number-input-wrapper .mzch-number-input-btn{display:flex;flex-direction:column;justify-content:space-between;border-style:none}.mzch-number-input-container .mzch-number-input-wrapper .mzch-number-input-btn-icon{display:flex;align-items:center;justify-content:center;margin-top:1px;margin-bottom:1px;cursor:pointer}.mzch-number-input-container .mzch-number-input-wrapper .input-border{border:1px solid var(--mzch-color-border);width:100%}.mzch-number-input-container .mzch-number-input-wrapper .input-border input{text-align:left;padding:5px 0 5px 7px}.mzch-number-input-container .mzch-number-input-wrapper .input-border .mzch-number-input-btn{margin-left:9px;margin-right:9px}.mzch-number-input-container.disabled .mzch-number-input-wrapper .num-change-btn{border:1px solid var(--mzch-color-text-muted);background-color:var(--mzch-color-surface-subtle)}.mzch-number-input-container.disabled .mzch-number-input-wrapper .num-change-btn:hover{background-color:var(--mzch-color-surface-subtle)}.mzch-number-input-container.disabled .mzch-number-input-wrapper .mzch-number-input{border-color:var(--mzch-color-text-muted);background-color:var(--mzch-color-surface-subtle)}.mzch-number-input-container.disabled .mzch-number-input-wrapper .mzch-number-input input{cursor:not-allowed;color:var(--mzch-color-text-muted)}.mzch-number-input-container.disabled:hover,.mzch-number-input-container.disabled:focus,.mzch-number-input-container.disabled:focus-within{border-color:var(--mzch-color-text-muted)}.mzch-number-input-container.disabled:hover .mzch-date-input,.mzch-number-input-container.disabled:focus .mzch-date-input,.mzch-number-input-container.disabled:focus-within .mzch-date-input{border-color:var(--mzch-color-text-muted)}}@layer mzch{.mzch-calendar-container{box-sizing:border-box;width:20.9375rem;overflow:hidden;padding:.625rem;border:1px solid var(--mzch-color-border);border-radius:var(--mzch-radius-surface);background-color:var(--mzch-color-surface);box-shadow:0 3px 4px 0 var(--mzch-color-shadow);-webkit-user-select:none;user-select:none}.mzch-calendar-header{display:flex;height:26px;min-width:19rem;flex-shrink:0;flex-grow:0;align-items:center;justify-content:space-between;margin-bottom:.5rem}.mzch-calendar-header__spacer{flex-grow:1}.mzch-calendar-select{display:flex;margin:.375rem .375rem .375rem .25rem;cursor:pointer;align-items:center;font-size:.875rem;font-weight:700}.mzch-calendar-select__text{margin-left:.25rem}.mzch-calendar-select__text:hover{color:var(--mzch-color-accent)}.mzch-calendar-select-btn{margin-left:.625rem;cursor:pointer;padding-top:.125rem;color:var(--mzch-color-text-subtle)}.mzch-calendar-select-btn:hover{color:var(--mzch-color-accent)}.mzch-calendar-select-btn-group{display:flex;align-items:center}.mzch-calendar-row{display:flex;align-items:center;justify-content:center;font-size:.875rem}.mzch-calendar-row--wrap{flex-wrap:wrap;overflow-y:auto}.mzch-calendar-column{box-sizing:border-box;display:flex;cursor:pointer;align-items:center;justify-content:center;border-radius:var(--mzch-radius-control);border:1px solid transparent;color:var(--mzch-color-text)}.mzch-calendar-column--hoverable:hover{background-color:var(--mzch-color-accent-ghost)}.mzch-calendar-column-day{cursor:default;color:var(--mzch-color-text-subtle)}.mzch-calendar-column-otherMonth{color:var(--mzch-color-text-subtle)}.mzch-calendar-selected{border-color:var(--mzch-color-accent);background-color:var(--mzch-color-accent-soft);font-weight:500;color:var(--mzch-color-accent)}.date-disable{cursor:not-allowed!important;color:var(--mzch-color-text-muted)}}@layer mzch{.mzch-date-input-container{margin:0;display:flex;cursor:pointer;flex-direction:column;gap:.375rem}.mzch-date-input-container.disabled{cursor:default}.mzch-date-input-container.disabled:hover .mzch-date-input{border-color:var(--mzch-color-text-muted)}.mzch-date-input-container.disabled:hover .mzch-date-input__icon{color:var(--mzch-color-text-muted)}.mzch-date-input-container:hover .mzch-date-input{border-color:var(--mzch-color-accent)}.mzch-date-input-container:focus-within .mzch-date-input{border-color:var(--mzch-color-accent)}.mzch-date-input-container:hover .mzch-date-input__icon{color:var(--mzch-color-accent)}.mzch-date-input-container:focus-within .mzch-date-input__icon{color:var(--mzch-color-accent)}.mzch-date-input-container .require-mark{color:var(--mzch-color-danger)}.mzch-date-input-wrapper{display:flex;align-items:center}.date-move-btn{height:1.875rem;min-height:1.875rem;width:1.875rem;min-width:1.875rem;padding:.25rem}.date-move-btn--left{border-radius:var(--mzch-radius-control) 0 0 var(--mzch-radius-control)}.date-move-btn--right{border-radius:0 var(--mzch-radius-control) var(--mzch-radius-control) 0}.date-move-btn--disabled{border:1px solid var(--mzch-color-text-muted);background-color:var(--mzch-color-surface-subtle)}.mzch-date-input-container .mzch-date-input-wrapper .date-move-btn{width:1.875rem;min-width:1.875rem;height:1.875rem;min-height:1.875rem;padding:.25rem}.mzch-date-input{box-sizing:border-box;display:flex;height:1.875rem;min-height:1.875rem;width:100%;overflow:hidden;border:1px solid var(--mzch-color-border);background-color:var(--mzch-color-surface)}.mzch-date-input--radius{border-radius:var(--mzch-radius-control)}.mzch-date-input--no-lr-border{border-right:0;border-left:0}.mzch-date-input--disabled{flex-grow:1;border-color:var(--mzch-color-text-muted);background-color:var(--mzch-color-surface-subtle)}.mzch-date-input:focus-within{z-index:2;box-shadow:0 0 0 3px var(--mzch-color-accent-ring)}.mzch-date-input__field{height:100%;min-height:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8125rem;color:var(--mzch-color-text);box-sizing:border-box;border:none;background-color:transparent;outline:none;padding-right:0;padding-left:.625rem}.mzch-date-input__field--disabled{cursor:not-allowed;color:var(--mzch-color-text-muted)}.mzch-date-input__icon-container{display:flex;align-items:center;border:none;margin-right:.625rem}.mzch-date-input__icon{color:var(--mzch-color-text-subtle)}.mzch-date-input__icon--disabled{color:var(--mzch-color-text-muted)}.calendar-container{position:fixed;z-index:1000;margin-top:.1875rem;margin-bottom:.1875rem}.calendar-container .mzch-calendar-container{position:static!important}}@layer mzch{.mzch-popup-container{position:fixed;top:0;left:0;z-index:1000;height:100dvh;width:100dvw;overflow:hidden}.mzch-popup-backdrop{height:100%;width:100%;background-color:var(--mzch-color-scrim-strong)}.mzch-popup{pointer-events:auto;position:absolute;display:flex;flex-direction:column;overflow:hidden;font-weight:500;border-radius:var(--mzch-radius-panel);background-color:var(--mzch-color-surface)}.mzch-popup-title{display:flex;height:2.8125rem;min-height:2.8125rem;align-items:center;justify-content:space-between;line-height:2.8125rem;font-size:1rem;font-weight:500;color:var(--mzch-color-text);box-sizing:border-box;border-bottom:1px solid var(--mzch-color-border-subtle);padding:0 16px}.mzch-popup-title.draggable{cursor:move}.mzch-popup-title .close-button{cursor:pointer}.mzch-popup-description{padding:8px 16px 0;font-size:.8125rem;line-height:1.4;color:var(--mzch-color-text-secondary)}.mzch-popup-body{height:100%;overflow-y:auto;font-weight:400;color:var(--mzch-color-text);box-sizing:content-box}.mzch-dialog-body{display:flex;align-items:center;gap:16px;font-size:.875rem;line-height:normal;word-break:keep-all}.mzch-dialog-body .dialog-icon{margin-left:4px;min-width:30px}.mzch-dialog-body .dialog-message{white-space:pre-wrap}.mzch-popup-footer{box-sizing:border-box;width:100%;display:flex;justify-content:flex-end;gap:6px;padding:16px;font-weight:400;border:none}.mzch-popup-footer.with-border{border-top:1px solid var(--mzch-color-border-subtle)}.mzch-popup-footer .preset-btn{width:5rem;min-width:5rem;padding:0!important}.resize-handler{position:absolute;right:0;bottom:0;height:15px;width:15px;cursor:nwse-resize}.mzch-popup-footer .mzch-button{min-width:80px}.mzch-popup-side .mzch-popup{border-radius:0;max-width:100dvw;max-height:100dvh;animation:moz-popup-slide-in .2s ease-out}.mzch-popup-side-right .mzch-popup,.mzch-popup-side-left .mzch-popup{top:0;bottom:0;height:100dvh;width:20rem}.mzch-popup-side-right .mzch-popup{right:0;left:auto;--mzch-popup-slide-from: translateX(100%)}.mzch-popup-side-left .mzch-popup{left:0;--mzch-popup-slide-from: translateX(-100%)}.mzch-popup-side-top .mzch-popup,.mzch-popup-side-bottom .mzch-popup{left:0;right:0;width:100dvw;height:20rem}.mzch-popup-side-top .mzch-popup{top:0;--mzch-popup-slide-from: translateY(-100%)}.mzch-popup-side-bottom .mzch-popup{bottom:0;top:auto;--mzch-popup-slide-from: translateY(100%)}.mzch-popup-no-backdrop{pointer-events:none}.mzch-popup-no-backdrop .mzch-popup{pointer-events:auto}@keyframes moz-popup-slide-in{0%{transform:var(--mzch-popup-slide-from, none)}to{transform:none}}}@layer mzch{.mzch-select{position:relative;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:.25rem}.mzch-select.is-invalid .select-input-container,.mzch-select.is-invalid .mzch-input-container{border-color:var(--mzch-color-danger);box-shadow:0 0 0 3px var(--mzch-color-danger-ring)}.mzch-select.is-open .select-input-container,.mzch-select.is-open .mzch-input-container{border-color:var(--mzch-color-accent)}.mzch-select.disabled{cursor:not-allowed}.mzch-select.disabled .select-input-container,.mzch-select.disabled .mzch-input-container{pointer-events:none;border-color:var(--mzch-color-text-muted);background-color:var(--mzch-color-surface-subtle)}.input-wrapper{display:flex;width:100%;flex-direction:column;gap:.375rem}.mzch-input-container.select-input-container{box-sizing:border-box;display:flex;height:1.875rem;min-height:1.875rem;cursor:pointer;overflow:hidden;border-radius:var(--mzch-radius-control);border:1px solid var(--mzch-color-border);background-color:var(--mzch-color-surface)}.mzch-input-container.select-input-container:focus-within{border-color:var(--mzch-color-accent);box-shadow:0 0 0 3px var(--mzch-color-accent-ring)}.mzch-input-container.select-input-container:hover{border-color:var(--mzch-color-accent)}.input-container-wrapper{display:flex;width:100%;cursor:text;align-items:center;padding-top:.1875rem;padding-bottom:.1875rem;padding-right:0;padding-left:.625rem;font-size:.8125rem;color:var(--mzch-color-text)}.input-container-wrapper--disabled{cursor:not-allowed;color:var(--mzch-color-text-muted)}.input-container-wrapper--disabled::placeholder{color:var(--mzch-color-text-muted)}.icon-container{display:flex;height:100%;width:2.125rem;min-width:2.125rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;justify-content:center;border:none;background-color:transparent;padding:0;outline:none}.icon-container:disabled{cursor:not-allowed}.select-display-input{box-sizing:border-box;height:100%;min-height:100%;width:100%;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:none;background-color:transparent;padding-top:.1875rem;padding-bottom:.1875rem;padding-right:0;padding-left:.625rem;font-size:.8125rem;color:var(--mzch-color-text);outline:none}.select-display-input::placeholder{color:var(--mzch-color-text-subtle)}.select-display-input--disabled{cursor:not-allowed;color:var(--mzch-color-text-muted)}.select-display-input--disabled::placeholder{color:var(--mzch-color-text-muted)}.mzch-input-invalid-message{position:absolute;bottom:-.625rem;font-size:.75rem;font-weight:500;color:var(--mzch-color-danger)}.list-box{position:fixed;z-index:1000;margin-top:.3125rem;margin-bottom:.3125rem;box-sizing:border-box;max-height:250px;overflow:hidden;border-radius:var(--mzch-radius-control);border:1px solid var(--mzch-color-border);background-color:var(--mzch-color-surface);box-shadow:0 3px 4px 0 var(--mzch-color-shadow)}.filter-input{position:relative;box-sizing:border-box;display:flex;height:1.8125rem;overflow:hidden;border-top-left-radius:4px;border-top-right-radius:4px;border-width:0;border-bottom-width:1px;border-style:solid;border-color:var(--mzch-color-border)}.filter-input .filter-input__field{width:100%;border:none;background-color:transparent;color:var(--mzch-color-text);padding:.125rem .625rem;font-size:.8125rem;outline:none}.filter-input .filter-input__field::placeholder{color:var(--mzch-color-text-subtle)}.search-icon{display:flex;min-width:1.75rem;align-items:center;justify-content:center}.list-box-container{max-height:250px;overflow-y:auto;padding-top:.1875rem;padding-bottom:.1875rem}.list-box-container--with-filter{max-height:222px}.inner-container{position:relative}.list-box-item{box-sizing:border-box;display:flex;min-height:1.5rem;align-items:center;justify-content:space-between;padding-left:.625rem;padding-right:.625rem;font-size:.8125rem;line-height:1.5rem;color:var(--mzch-color-text)}.list-box-item.virtual-row{position:absolute;width:100%;cursor:pointer;gap:.375rem;outline:none}.list-box-item.virtual-row:hover,.list-box-item.virtual-row:focus{background-color:var(--mzch-color-accent-ghost)}.list-box-item.loading.not-hover{cursor:default;color:var(--mzch-color-text-subtle)}.highlight-container{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.highlight{font-weight:700;color:var(--mzch-color-accent)}.icon-check{min-width:.75rem}}@layer mzch{.mzch-multi-select.mzch-multi-select-inline>.list-box.mzch-multiselect-inline-list{position:relative;inset:auto;width:100%;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;z-index:auto}.mzch-multi-select.mzch-multi-select-inline>.list-box.mzch-multiselect-inline-list .filter-input{height:32px;margin:12px 16px 8px;border:1px solid var(--mzch-color-border);border-radius:var(--mzch-radius-control)}.mzch-multi-select.mzch-multi-select-inline>.list-box.mzch-multiselect-inline-list .filter-input:focus-within{border-color:var(--mzch-color-accent)}.mzch-multi-select.mzch-multi-select-inline>.list-box.mzch-multiselect-inline-list .list-box-container{height:var(--mzch-multiselect-list-height, 224px);max-height:min(var(--mzch-multiselect-list-height, 224px),40vh);padding:0;overscroll-behavior:contain}.mzch-multi-select.mzch-multi-select-inline>.list-box.mzch-multiselect-inline-list .list-box-item{padding-inline:16px}.mzch-multi-select.mzch-multi-select-inline>.list-box.mzch-multiselect-inline-list .multi-select-all{margin:0 0 6px}.mzch-multi-select.mzch-multi-select-inline>.list-box.mzch-multiselect-inline-list [aria-disabled=true]{cursor:not-allowed;opacity:.5}.mzch-multi-select{align-items:flex-start;flex-direction:column;margin:0;display:flex;position:relative}.mzch-multi-select span.require-mark{color:var(--mzch-color-danger)}.mzch-multi-select .mzch-input-container{width:100%;min-height:30px;height:30px;box-sizing:border-box;border:1px solid var(--mzch-color-border);border-radius:var(--mzch-radius-control);background-color:var(--mzch-color-surface);overflow:hidden;display:flex}.mzch-multi-select .mzch-input-container input{width:100%;min-height:100%;height:100%;font-size:.813rem;color:var(--mzch-color-text);border:none;outline:none;box-sizing:border-box;padding:.375rem .625rem;padding-right:0;background-color:transparent}.mzch-multi-select .mzch-input-container input::placeholder{color:var(--mzch-color-text-subtle)}.mzch-multi-select .mzch-input-container .icon-container{width:34px;min-width:34px;height:100%;-webkit-appearance:button;background-color:transparent;background-image:none;border:none;padding:0;display:flex;justify-content:center;align-items:center}.mzch-multi-select.disabled{cursor:not-allowed}.mzch-multi-select.disabled .mzch-input-container{border-color:var(--mzch-color-text-muted);background-color:var(--mzch-color-surface-subtle);pointer-events:none}.mzch-multi-select.disabled input{color:var(--mzch-color-text-muted)}.mzch-multi-select.disabled input::placeholder{color:var(--mzch-color-text-muted)}.mzch-multi-select.disabled:hover,.mzch-multi-select.disabled:focus,.mzch-multi-select.disabled:focus-within,.mzch-multi-select.disabled.is-open{border-color:var(--mzch-color-text-muted)}.mzch-multi-select.disabled:hover .mzch-input-container,.mzch-multi-select.disabled:focus .mzch-input-container,.mzch-multi-select.disabled:focus-within .mzch-input-container,.mzch-multi-select.disabled.is-open .mzch-input-container{border-color:var(--mzch-color-text-muted)}.mzch-multi-select:hover .mzch-input-container,.mzch-multi-select:focus-within .mzch-input-container,.mzch-multi-select.is-open .mzch-input-container{border-color:var(--mzch-color-accent)}.mzch-multi-select:focus-within .mzch-input-container{box-shadow:0 0 0 3px var(--mzch-color-accent-ring)}.mzch-multi-select .input-wrapper{width:100%;display:flex;flex-direction:column;gap:.375rem}.mzch-multi-select.is-invalid .mzch-input-container{border-color:var(--mzch-color-danger);box-shadow:0 0 0 3px var(--mzch-color-danger-ring)}.mzch-multi-select .mzch-input-invalid-message{position:absolute;bottom:-1rem;color:var(--mzch-color-danger);font-size:.688rem;font-weight:500}.list-box{position:fixed;background-color:var(--mzch-color-surface);box-shadow:0 3px 4px 0 var(--mzch-color-shadow);border:1px solid var(--mzch-color-border);border-radius:var(--mzch-radius-control);z-index:1000;max-height:250px;box-sizing:border-box;margin:.25rem 0}.list-box:not(.show-top){top:48px}.list-box.show-top{transform:translateY(calc(-100% - 19px))}.list-box.no-label:not(.show-top){top:34px}.list-box.no-label.show-top{transform:translateY(calc(-100% - 4px)))}.list-box .mzch-checkbox:focus{box-shadow:0 0 0 3px var(--mzch-color-accent-ring);border-color:var(--mzch-color-accent);border-radius:var(--mzch-radius-xs)}.list-box .search-icon{display:flex;justify-content:center;align-items:center;margin-right:10px}.list-box .list-box-container{max-height:250px;overflow-y:auto;padding:.375rem 0}.list-box:has(.multi-select-all) .multi-select-all{justify-content:space-between;margin-top:.375rem}.list-box:has(.multi-select-all) .multi-select-all.is-scrolled{box-shadow:0 3px 4px 0 var(--mzch-color-shadow)}.list-box:has(.multi-select-all) .list-box-container{max-height:188px;padding-top:0}.list-box .filter-input{border-bottom:1px solid var(--mzch-color-border);position:relative;height:29px;box-sizing:border-box;display:flex;border-radius:var(--mzch-radius-control) var(--mzch-radius-control) 0 0;overflow:hidden}.list-box .filter-input input{width:100%;background-color:transparent;color:var(--mzch-color-text);font-size:.813rem;padding:.131rem .625rem;border:none;outline:none}.list-box .filter-input input::placeholder{color:var(--mzch-color-text-subtle)}.list-box .list-box-item{font-size:.813rem;min-height:24px;line-height:24px;padding:0 .625rem;box-sizing:border-box;cursor:pointer;display:flex;justify-content:space-between;align-items:center;color:var(--mzch-color-text);gap:.375rem}.list-box .list-box-item.loading.not-hover{cursor:default;color:var(--mzch-color-text-subtle)}.list-box .list-box-item span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.list-box .list-box-item .item-only{font-size:.688rem;color:var(--mzch-color-text-secondary);cursor:pointer;padding:0;display:none;word-break:keep-all;height:15px;line-height:12px;background:transparent;border:none}.list-box .list-box-item .item-only:focus{outline:1px solid var(--mzch-color-accent);outline-offset:1px;border-radius:var(--mzch-radius-xs)}.list-box .list-box-item:hover:not(.not-hover),.list-box .list-box-item:focus-within:not(.not-hover){background-color:var(--mzch-color-accent-ghost)}.list-box .list-box-item:hover:not(.not-hover) .item-only,.list-box .list-box-item:focus-within:not(.not-hover) .item-only{display:block}.list-box .list-box-item.mzch-multi-focus{background-color:var(--mzch-color-accent-ghost)}.list-box .list-box-item.multi-select-item{justify-content:flex-start;-webkit-user-select:none;user-select:none}.highlight-container{display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;flex-grow:1}.highlight-container span{text-overflow:initial;overflow:initial;white-space:inherit}.highlight-container .highlight{color:var(--mzch-color-accent);font-weight:700}.inner-container{position:relative}.virtual-row{position:absolute;width:100%}input[type=checkbox].mzch-checkbox{position:relative;opacity:1;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;background-color:var(--mzch-color-surface);border:1px solid var(--mzch-color-border);border-radius:var(--mzch-radius-xs);width:12px;height:12px;min-width:12px;min-height:12px;margin:0}input[type=checkbox].mzch-checkbox:hover:not(:disabled){border-color:var(--mzch-color-accent-strong)}input[type=checkbox].mzch-checkbox:focus-visible{outline:none;box-shadow:0 0 0 3px var(--mzch-color-accent-ring)}input[type=checkbox].mzch-checkbox:checked,input[type=checkbox].mzch-checkbox.is-indeterminate{background-color:var(--mzch-color-accent);border-color:var(--mzch-color-accent)}input[type=checkbox].mzch-checkbox:checked:hover:not(:disabled),input[type=checkbox].mzch-checkbox.is-indeterminate:hover:not(:disabled){background-color:var(--mzch-color-accent-strong)}input[type=checkbox].mzch-checkbox:checked:after,input[type=checkbox].mzch-checkbox.is-indeterminate:after{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;background-color:var(--mzch-color-on-accent);-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.276 6.142 4.667 8.294 9.723 3.469' fill='none' stroke='currentColor' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.276 6.142 4.667 8.294 9.723 3.469' fill='none' stroke='currentColor' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}input[type=checkbox].mzch-checkbox.is-indeterminate:after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6H9' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6H9' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")}input[type=checkbox].mzch-checkbox:disabled{cursor:not-allowed;background-color:var(--mzch-color-disabled);border-color:var(--mzch-color-text-muted)}input[type=checkbox].mzch-checkbox:checked:disabled,input[type=checkbox].mzch-checkbox.is-indeterminate:disabled{background-color:var(--mzch-color-text-muted)}}@layer mzch{.mzch-toast{display:inline-flex;align-items:center;border-radius:var(--mzch-radius-pill);padding:.875rem 1.25rem;margin:.5rem 0;gap:.875rem;box-shadow:0 1px 2px 0 var(--mzch-color-shadow-weak);color:var(--mzch-color-surface);pointer-events:auto;cursor:pointer}.mzch-toast.bg-success{background-color:var(--mzch-color-success)}.mzch-toast.bg-error{background-color:var(--mzch-color-danger)}.mzch-toast.bg-info{background-color:var(--mzch-color-accent)}.mzch-toast.bg-warning{background-color:var(--mzch-color-warning)}.mzch-toast.position-center{align-self:center}.mzch-toast.position-end{align-self:flex-end}.mzch-toast.position-start{align-self:flex-start}.mzch-toast.mzch-toast-composed{position:relative;display:flex;align-items:flex-start;cursor:default;margin:0;color:inherit}.mzch-toast.mzch-toast-composed .mzch-toast-icon{flex-shrink:0}.mzch-toast.mzch-toast-composed .mzch-toast-content{flex:1 1 auto;min-width:0}.mzch-toast.mzch-toast-composed .mzch-toast-heading,.mzch-toast.mzch-toast-composed .mzch-toast-description,.mzch-toast.mzch-toast-composed .mzch-toast-actions{display:contents}.mzch-toast.mzch-toast-composed .mzch-toast-close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:inherit;cursor:pointer;border-radius:var(--mzch-radius-control)}.mzch-toast.mzch-toast-composed .mzch-toast-progress{position:absolute;top:0;left:0;right:0;height:4px;overflow:hidden}.mzch-toast.mzch-toast-composed .mzch-toast-progress-bar{height:100%;background-color:currentColor}.toast-message{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem}.mzch-toast-body{position:fixed;display:flex;top:0;right:0;bottom:0;left:0;padding:1.25rem;overflow:hidden;z-index:2000;pointer-events:none}.mzch-toast-body--top{flex-direction:column}.mzch-toast-body--bottom{flex-direction:column-reverse}.mzch-toast-body>.mzch-overlay-portal{display:contents}}@layer mzch{.mzch-chart-container{height:100%;border:1px solid #bbc6d9;background-color:var(--mzch-color-surface);display:flex;flex-direction:column;box-sizing:border-box;gap:10px;overflow:hidden;position:relative}.mzch-chart-container .mzch-chart-content-container{flex:1;display:flex;position:relative;min-height:0}.mzch-chart-container .mzch-chart-header-container{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 10px;height:50px;min-height:50px;border-bottom:1px solid #bbc6d9;box-sizing:border-box}.mzch-chart-container .mzch-chart-header-container .mzch-chart-header{display:flex;align-items:center;gap:8px;min-width:0}.mzch-chart-container .mzch-chart-header-container .mzch-chart-option-button-wrapper{position:relative;display:flex;align-items:center;gap:4px}.mzch-chart-container .mzch-chart-option-button{cursor:pointer;width:24px;height:24px;display:flex;justify-content:center;align-items:center;border-radius:4px;border:0;padding:0;background:transparent}.mzch-chart-container .mzch-chart-option-button:hover{background-color:#e9edf4}.mzch-chart-container .mzch-chart-option-button.is-active{background-color:#8998b529}.mzch-chart-container .mzch-chart-option-button:focus-visible{outline:2px solid var(--mzch-color-accent-ring)}.mzch-chart-container .mzch-chart-svg-container{height:100%;width:100%;padding:10px;display:flex;justify-content:center;align-items:center;box-sizing:border-box;position:relative;min-height:0}.mzch-chart-container .mzch-chart-canvas{width:100%;height:100%;min-height:0}.mzch-chart-container .mzch-chart-warning{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--mzch-color-text-secondary);font-size:13px}.mzch-chart-container .mzch-chart-icon-container{position:absolute;top:8px;right:8px}.mzch-chart-container .mzch-chart-icon-container .mzch-chart-icon-wrapper{cursor:pointer;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px}.mzch-chart-container .mzch-chart-icon-container .mzch-chart-icon-wrapper:hover{background-color:#e9edf4}.mzch-chart-container .mzch-chart-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background-color:#fff9;z-index:5}.mzch-chart-container .mzch-chart-spinner{width:28px;height:28px;border-radius:var(--mzch-radius-circle);border:3px solid var(--mzch-color-accent-subtle);border-top-color:var(--mzch-color-accent);animation:mzch-chart-spin .8s linear infinite}@keyframes mzch-chart-spin{to{transform:rotate(360deg)}}.mzch-chart-option-modal-popup .mzch-popup-body{padding:0!important}.mzch-chart-option-modal{width:755px;height:570px;display:flex}.mzch-chart-option-modal .mzch-chart-option-wrapper{padding:36px 16px;width:286px;box-sizing:border-box}.mzch-chart-option-modal .mzch-chart-option-wrapper .mzch-chart-option-item{margin:6px 0;display:grid;grid-template-columns:45% 55%;align-items:center}.mzch-chart-option-modal .mzch-chart-option-wrapper .mzch-chart-option-item>span{font-size:13px;color:var(--mzch-color-text)}.mzch-chart-option-modal .mzch-chart-option-wrapper .mzch-chart-zoom-toggles{display:flex;justify-content:space-between}.mzch-chart-option-modal .mzch-chart-option-wrapper .mzch-option-item-divider{margin-top:8px!important;margin-bottom:8px!important}.mzch-chart-option-modal .mzch-divider{width:.5px;height:100%;background-color:#bbc6d9}.mzch-chart-option-modal .mzch-chart-pivot-processor-wrapper{flex:1;padding:24px 16px;box-sizing:border-box;min-width:0}.mzch-popup-container.mzch-filter-popup .mzch-filters-wrapper{display:flex;flex-direction:column;gap:8px}.mzch-popup-container.mzch-filter-popup .mzch-filter-row{align-items:center;display:grid;grid-template-columns:75px 130px 65px minmax(0,1fr) 20px;gap:10px}.mzch-popup-container.mzch-filter-popup .mzch-filter-row.minify-width{grid-template-columns:130px 65px minmax(0,1fr) 20px}.mzch-popup-container.mzch-filter-popup .mzch-remove-row{cursor:pointer;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;display:flex;justify-content:center;align-items:center;border:0;padding:0;background:transparent;border-radius:4px}.mzch-popup-container.mzch-filter-popup .mzch-remove-row:focus-visible{box-shadow:0 0 0 3px #4568e033,0 0 0 .5px #4568e0}.mzch-popup-container.mzch-filter-popup .mzch-add-row{display:flex;justify-content:space-between;color:var(--mzch-color-accent);font-size:12px;padding-top:0;width:100%}.mzch-filter-operation-row{display:flex;flex-direction:row}.mzch-filter-operation-row td{font-family:Roboto,sans-serif;white-space:pre;overflow:hidden;text-overflow:ellipsis}.mzch-filter-operation-row td.symbol{width:14px;margin-right:20px;text-align:center}.mzch-filter-operation-row td.desc{width:100px;color:var(--mzch-color-text-subtle)}.mzch-view-def-processor-wrapper{min-width:400px;min-height:500px;display:flex;gap:16px}.mzch-view-def-processor-desc{color:var(--mzch-color-text-secondary);font-weight:500;font-size:12px;margin:0}.mzch-view-def-processor-label{font-size:12px;font-weight:500;color:var(--mzch-color-text-secondary)}.mzch-view-def-processor-left{height:100%;flex:1;display:flex;flex-direction:column;gap:6px;overflow:hidden}.mzch-view-def-processor-left.disabled{opacity:.4;pointer-events:none}.mzch-view-def-processor-fields-source-wrapper{height:100%;overflow:hidden}.mzch-view-def-processor-right{height:100%;flex:1;display:flex;flex-direction:column;gap:16px;overflow:hidden}.mzch-view-def-processor-applied-fields-wrapper{height:100%;display:flex;flex-direction:column;gap:16px}.mzch-view-def-processor-applied-fields-inner-wrapper{flex:1;display:flex;flex-direction:column;gap:6px;height:100%;overflow:hidden}.mzch-view-def-processor-applied-fields-inner-wrapper.disabled{opacity:.4;pointer-events:none;display:none}.mzch-fields-source-section{height:100%;border:1px solid #bbc6d9;padding:6px 5px 0;overflow:auto;box-sizing:border-box}.mzch-fields-source-section .mzch-fields-source-item{padding:0 0 0 6px;height:22px;border-radius:4px;cursor:pointer;display:flex;align-items:center;gap:6px}.mzch-fields-source-section .mzch-fields-source-item:hover{background-color:#4568e017}.mzch-fields-source-section .mzch-fields-source-item .mzch-fields-source-label{color:var(--mzch-color-text);font-weight:400;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px;cursor:pointer}.mzch-applied-fields-section{flex:1;border:1px dashed var(--mzch-color-accent);background-color:var(--mzch-color-surface-muted);padding:12px;display:flex;flex-direction:column;gap:6px;overflow:auto}.mzch-applied-fields-section .mzch-fields-applied-item{cursor:pointer;height:26px!important;border-radius:4px;border:1px solid var(--mzch-color-accent);color:var(--mzch-color-accent);background-color:var(--mzch-color-accent-subtle)!important;display:flex;align-items:center;padding-left:6px;padding-right:7px;font-size:13px;line-height:100%;overflow:hidden;box-sizing:border-box}.mzch-applied-fields-section .mzch-fields-applied-item .mzch-drag-handle{display:inline-flex;margin-right:4px}.mzch-applied-fields-section .mzch-fields-applied-item .mzch-applied-field-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mzch-applied-fields-section .mzch-drag-item{position:relative}.mzch-applied-fields-section .mzch-drag-item.on-drag-over-top:before,.mzch-applied-fields-section .mzch-drag-item.on-drag-over-bottom:before{content:"";width:100%;height:4px;position:absolute;background-color:#a2b3ef;left:0}.mzch-applied-fields-section .mzch-drag-item.on-drag-over-top:before{top:-5px}.mzch-applied-fields-section .mzch-drag-item.on-drag-over-bottom:before{top:calc(100% + 1px)}.mzch-dragging-container{display:flex;flex-direction:column;gap:6px}.mzch-value-field{display:flex;justify-content:space-between}.mzch-value-field .mzch-value-field-left{display:flex;overflow:hidden;align-items:center}.mzch-value-field .mzch-value-field-left .mzch-drag-handle{margin-right:2px}.mzch-value-field .mzch-value-field-left .mzch-value-field-summary{color:var(--mzch-color-text-secondary);font-weight:500;line-height:100%;position:relative;font-size:12px;display:flex;align-items:center}.mzch-value-field .mzch-value-field-left .mzch-value-field-summary:after{position:relative;right:-4px;content:"l";color:var(--mzch-color-text-muted);margin-right:7px;display:flex;line-height:100%}.mzch-value-field .mzch-value-field-option-button{width:12px;height:12px;display:inline-flex;align-items:center;justify-content:center;border:0;padding:0;background:transparent;cursor:pointer}.mzch-value-field-option-modal{pointer-events:none}.mzch-value-field-option-modal .mzch-popup-backdrop{display:none}.mzch-value-field-option-modal .mzch-popup{box-shadow:0 2px 8px #0000001f;border:1px solid var(--mzch-color-border)}.mzch-value-field-option-modal .mzch-popup .mzch-popup-body{padding:9px 16px!important}.mzch-value-field-option-modal .mzch-view-def-panel-option-item{margin:4px 0;display:grid;grid-template-columns:45% 55%;align-items:center}.mzch-value-field-option-modal .mzch-view-def-panel-option-item>span{font-size:13px;color:var(--mzch-color-text)}}.mzch-vue-echart-host{width:100%;height:100%;min-height:0}.chart-popup-wrapper[data-v-8e21a7ac]{width:100vw;height:100vh}
|