@liujitcn/kratos-admin-bi 0.0.0-stage → 0.1.6
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 +43 -2
- package/dist/package/declarations/index.d.ts +1 -0
- package/dist/package/declarations/src/api/bi/admin/v1/bi_card.d.ts +18 -0
- package/dist/package/declarations/src/api/bi/admin/v1/bi_card.js +46 -0
- package/dist/package/declarations/src/api/bi/admin/v1/bi_dashboard.d.ts +17 -0
- package/dist/package/declarations/src/api/bi/admin/v1/bi_dashboard.js +30 -0
- package/dist/package/declarations/src/api/bi/admin/v1/bi_query.d.ts +11 -0
- package/dist/package/declarations/src/api/bi/admin/v1/bi_query.js +41 -0
- package/dist/package/declarations/src/api/bi/admin/v1/bi_query_record.d.ts +10 -0
- package/dist/package/declarations/src/api/bi/admin/v1/bi_query_record.js +14 -0
- package/dist/package/declarations/src/api/bi/admin/v1/bi_source.d.ts +26 -0
- package/dist/package/declarations/src/api/bi/admin/v1/bi_source.js +46 -0
- package/dist/package/declarations/src/bi-core.d.ts +17 -0
- package/dist/package/declarations/src/bi-core.js +22 -0
- package/dist/package/declarations/src/bi-dashboard-schema.d.ts +31 -0
- package/dist/package/declarations/src/bi-dashboard-schema.js +39 -0
- package/dist/package/declarations/src/bi-messages.d.ts +247 -0
- package/dist/package/declarations/src/bi-messages.js +247 -0
- package/dist/package/declarations/src/bi-response.d.ts +10 -0
- package/dist/package/declarations/src/bi-response.js +33 -0
- package/dist/package/declarations/src/bi-vue.d.ts +10 -0
- package/dist/package/declarations/src/bi-vue.js +10 -0
- package/dist/package/declarations/src/card-schema.d.ts +30 -0
- package/dist/package/declarations/src/card-schema.js +87 -0
- package/dist/package/declarations/src/components/BiCardChartEditor.vue.d.ts +17 -0
- package/dist/package/declarations/src/components/BiCardChartEditor.vue.js +527 -0
- package/dist/package/declarations/src/components/BiCardFormDialog.vue.d.ts +20 -0
- package/dist/package/declarations/src/components/BiCardFormDialog.vue.js +495 -0
- package/dist/package/declarations/src/components/BiCardLibrary.vue.d.ts +3 -0
- package/dist/package/declarations/src/components/BiCardLibrary.vue.js +807 -0
- package/dist/package/declarations/src/components/BiCardVisualization.vue.d.ts +10 -0
- package/dist/package/declarations/src/components/BiCardVisualization.vue.js +97 -0
- package/dist/package/declarations/src/components/BiChart.vue.d.ts +20 -0
- package/dist/package/declarations/src/components/BiChart.vue.js +112 -0
- package/dist/package/declarations/src/components/BiDashboard.vue.d.ts +9 -0
- package/dist/package/declarations/src/components/BiDashboard.vue.js +81 -0
- package/dist/package/declarations/src/components/BiDashboardMenuDialog.vue.d.ts +12 -0
- package/dist/package/declarations/src/components/BiDashboardMenuDialog.vue.js +252 -0
- package/dist/package/declarations/src/components/BiDataCard.vue.d.ts +36 -0
- package/dist/package/declarations/src/components/BiDataCard.vue.js +372 -0
- package/dist/package/declarations/src/components/BiDesigner.vue.d.ts +17 -0
- package/dist/package/declarations/src/components/BiDesigner.vue.js +666 -0
- package/dist/package/declarations/src/components/BiSourceModelDialog.vue.d.ts +17 -0
- package/dist/package/declarations/src/components/BiSourceModelDialog.vue.js +2118 -0
- package/dist/package/declarations/src/components/BiWorkbenchPreview.vue.d.ts +7 -0
- package/dist/package/declarations/src/components/BiWorkbenchPreview.vue.js +176 -0
- package/dist/package/declarations/src/components/source-model-layout.d.ts +3 -0
- package/dist/package/declarations/src/components/source-model-layout.js +66 -0
- package/dist/package/declarations/src/dataset/index.d.ts +7 -0
- package/dist/package/declarations/src/dataset/index.js +25 -0
- package/dist/package/declarations/src/dataset/labels.d.ts +2 -0
- package/dist/package/declarations/src/dataset/labels.js +21 -0
- package/dist/package/declarations/src/dataset/transform.d.ts +20 -0
- package/dist/package/declarations/src/dataset/transform.js +173 -0
- package/dist/package/declarations/src/engine/chart-types.d.ts +14 -0
- package/dist/package/declarations/src/engine/chart-types.js +37 -0
- package/dist/package/declarations/src/engine/echarts.d.ts +16 -0
- package/dist/package/declarations/src/engine/echarts.js +491 -0
- package/dist/package/declarations/src/engine/types.d.ts +36 -0
- package/dist/package/declarations/src/engine/types.js +20 -0
- package/dist/package/declarations/src/env.d.ts +17 -0
- package/dist/package/declarations/src/env.js +67 -0
- package/dist/package/declarations/src/index.d.ts +1 -0
- package/dist/package/declarations/src/index.js +1 -0
- package/dist/package/declarations/src/locales/en-US.json +254 -0
- package/dist/package/declarations/src/locales/generated.d.ts +1021 -0
- package/dist/package/declarations/src/locales/generated.js +13 -0
- package/dist/package/declarations/src/locales/ja-JP.json +254 -0
- package/dist/package/declarations/src/locales/zh-CN.json +254 -0
- package/dist/package/declarations/src/locales/zh-TW.json +254 -0
- package/dist/package/declarations/src/module.d.ts +2 -0
- package/dist/package/declarations/src/module.js +9 -0
- package/dist/package/declarations/src/rpc/bi/admin/v1/bi_card.d.ts +145 -0
- package/dist/package/declarations/src/rpc/bi/admin/v1/bi_card.js +6 -0
- package/dist/package/declarations/src/rpc/bi/admin/v1/bi_dashboard.d.ts +107 -0
- package/dist/package/declarations/src/rpc/bi/admin/v1/bi_dashboard.js +6 -0
- package/dist/package/declarations/src/rpc/bi/admin/v1/bi_query.d.ts +157 -0
- package/dist/package/declarations/src/rpc/bi/admin/v1/bi_query.js +6 -0
- package/dist/package/declarations/src/rpc/bi/admin/v1/bi_query_record.d.ts +83 -0
- package/dist/package/declarations/src/rpc/bi/admin/v1/bi_query_record.js +15 -0
- package/dist/package/declarations/src/rpc/bi/admin/v1/bi_source.d.ts +301 -0
- package/dist/package/declarations/src/rpc/bi/admin/v1/bi_source.js +6 -0
- package/dist/package/declarations/src/rpc/common/v1/types.d.ts +60 -0
- package/dist/package/declarations/src/rpc/common/v1/types.js +6 -0
- package/dist/package/declarations/src/schema/layout.d.ts +7 -0
- package/dist/package/declarations/src/schema/layout.js +52 -0
- package/dist/package/declarations/src/schema/types.d.ts +83 -0
- package/dist/package/declarations/src/schema/types.js +1 -0
- package/dist/package/declarations/src/theme/index.d.ts +29 -0
- package/dist/package/declarations/src/theme/index.js +83 -0
- package/dist/package/declarations/src/theme/palettes.d.ts +7 -0
- package/dist/package/declarations/src/theme/palettes.js +28 -0
- package/dist/package/declarations/src/theme/presets.d.ts +73 -0
- package/dist/package/declarations/src/theme/presets.js +235 -0
- package/dist/package/declarations/src/views/card/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/card/index.vue.js +18 -0
- package/dist/package/declarations/src/views/dashboard/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/dashboard/index.vue.js +107 -0
- package/dist/package/declarations/src/views/designer/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/designer/index.vue.js +332 -0
- package/dist/package/declarations/src/views/manage/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/manage/index.vue.js +325 -0
- package/dist/package/declarations/src/views/query/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/query/index.vue.js +876 -0
- package/dist/package/declarations/src/views/source/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/source/index.vue.js +343 -0
- package/dist/package/declarations/src/views/workbench/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/workbench/index.vue.js +362 -0
- package/dist/package/src/api/bi/admin/v1/bi_card.ts +67 -0
- package/dist/package/src/api/bi/admin/v1/bi_dashboard.ts +51 -0
- package/dist/package/src/api/bi/admin/v1/bi_query.ts +55 -0
- package/dist/package/src/api/bi/admin/v1/bi_query_record.ts +25 -0
- package/dist/package/src/api/bi/admin/v1/bi_source.ts +80 -0
- package/dist/package/src/bi-core.ts +43 -0
- package/dist/package/src/bi-dashboard-schema.ts +69 -0
- package/dist/package/src/bi-messages.ts +249 -0
- package/dist/package/src/bi-response.ts +39 -0
- package/dist/package/src/bi-vue.ts +13 -0
- package/dist/package/src/card-schema.ts +111 -0
- package/dist/package/src/components/BiCardChartEditor.vue +139 -0
- package/dist/package/src/components/BiCardFormDialog.vue +289 -0
- package/dist/package/src/components/BiCardLibrary.vue +310 -0
- package/dist/package/src/components/BiCardVisualization.vue +95 -0
- package/dist/package/src/components/BiChart.vue +134 -0
- package/dist/package/src/components/BiDashboard.vue +53 -0
- package/dist/package/src/components/BiDashboardMenuDialog.vue +177 -0
- package/dist/package/src/components/BiDataCard.vue +231 -0
- package/dist/package/src/components/BiDesigner.vue +287 -0
- package/dist/package/src/components/BiSourceModelDialog.vue +846 -0
- package/dist/package/src/components/BiWorkbenchPreview.vue +131 -0
- package/dist/package/src/components/source-model-layout.ts +62 -0
- package/dist/package/src/dataset/index.ts +28 -0
- package/dist/package/src/dataset/labels.ts +19 -0
- package/dist/package/src/dataset/transform.ts +189 -0
- package/dist/package/src/engine/chart-types.ts +44 -0
- package/dist/package/src/engine/echarts.ts +568 -0
- package/dist/package/src/engine/types.ts +60 -0
- package/dist/package/src/env.ts +82 -0
- package/dist/package/src/index.ts +1 -0
- package/dist/package/src/locales/en-US.json +254 -0
- package/dist/package/src/locales/generated.ts +16 -0
- package/dist/package/src/locales/ja-JP.json +254 -0
- package/dist/package/src/locales/zh-CN.json +254 -0
- package/dist/package/src/locales/zh-TW.json +254 -0
- package/dist/package/src/module.ts +12 -0
- package/dist/package/src/rpc/bi/admin/v1/bi_card.ts +169 -0
- package/dist/package/src/rpc/bi/admin/v1/bi_dashboard.ts +126 -0
- package/dist/package/src/rpc/bi/admin/v1/bi_query.ts +187 -0
- package/dist/package/src/rpc/bi/admin/v1/bi_query_record.ts +98 -0
- package/dist/package/src/rpc/bi/admin/v1/bi_source.ts +338 -0
- package/dist/package/src/rpc/common/v1/types.ts +77 -0
- package/dist/package/src/schema/layout.ts +54 -0
- package/dist/package/src/schema/types.ts +103 -0
- package/dist/package/src/styles.scss +1 -0
- package/dist/package/src/theme/index.ts +108 -0
- package/dist/package/src/theme/palettes.ts +34 -0
- package/dist/package/src/theme/presets.ts +278 -0
- package/dist/package/src/views/card/index.vue +5 -0
- package/dist/package/src/views/dashboard/index.vue +58 -0
- package/dist/package/src/views/designer/index.vue +164 -0
- package/dist/package/src/views/manage/index.vue +276 -0
- package/dist/package/src/views/query/index.vue +593 -0
- package/dist/package/src/views/source/index.vue +214 -0
- package/dist/package/src/views/workbench/index.vue +208 -0
- package/package.json +67 -3
- package/tsconfig.json +12 -0
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
/// <reference types="../../../../../node_modules/.pnpm/@vue+language-core@3.3.13/node_modules/@vue/language-core/types/template-helpers.d.ts" />
|
|
2
|
+
/// <reference types="../../../../../node_modules/.pnpm/@vue+language-core@3.3.13/node_modules/@vue/language-core/types/props-fallback.d.ts" />
|
|
3
|
+
import { computed, ref } from "vue";
|
|
4
|
+
import { t } from "@liujitcn/kratos-admin-core";
|
|
5
|
+
import { reflowDashboardCards } from "../bi-dashboard-schema";
|
|
6
|
+
import BiDataCard from "./BiDataCard.vue";
|
|
7
|
+
import { useBiI18n } from "../env";
|
|
8
|
+
const { defineProps, defineEmits, } = {};
|
|
9
|
+
const props = defineProps();
|
|
10
|
+
const emit = defineEmits();
|
|
11
|
+
const selected = ref("");
|
|
12
|
+
const dragged = ref(-1);
|
|
13
|
+
const plusIcon = Plus;
|
|
14
|
+
const checkIcon = Check;
|
|
15
|
+
const { t: messages } = useBiI18n();
|
|
16
|
+
const cardByID = computed(() => new Map(props.cards.map(card => [card.id, card])));
|
|
17
|
+
const addedCardIDs = computed(() => new Set(props.modelValue.cards.map(item => item.card_id)));
|
|
18
|
+
/** 加入已保存卡片,复用栅格算法安排位置。 */
|
|
19
|
+
function add(card) {
|
|
20
|
+
if (addedCardIDs.value.has(card.id) || props.modelValue.cards.length >= 20)
|
|
21
|
+
return;
|
|
22
|
+
const item = { id: `card_${card.id}`, card_id: card.id, w: card.chart_type === "metric" ? 3 : 6, h: 4 };
|
|
23
|
+
emit("update:modelValue", { ...props.modelValue, cards: reflowDashboardCards([...props.modelValue.cards, item]) });
|
|
24
|
+
selected.value = item.id;
|
|
25
|
+
}
|
|
26
|
+
/** 调整卡片顺序,拖动和方向按钮共用同一入口。 */
|
|
27
|
+
function move(from, to) {
|
|
28
|
+
if (from < 0 || to < 0 || from >= props.modelValue.cards.length || to >= props.modelValue.cards.length)
|
|
29
|
+
return;
|
|
30
|
+
const cards = [...props.modelValue.cards];
|
|
31
|
+
const [item] = cards.splice(from, 1);
|
|
32
|
+
cards.splice(to, 0, item);
|
|
33
|
+
emit("update:modelValue", { ...props.modelValue, cards: reflowDashboardCards(cards) });
|
|
34
|
+
dragged.value = -1;
|
|
35
|
+
}
|
|
36
|
+
/** 移除当前仪表盘的引用,不删除源卡片。 */
|
|
37
|
+
function remove(id) {
|
|
38
|
+
emit("update:modelValue", {
|
|
39
|
+
...props.modelValue,
|
|
40
|
+
cards: reflowDashboardCards(props.modelValue.cards.filter(item => item.id !== id))
|
|
41
|
+
});
|
|
42
|
+
if (selected.value === id)
|
|
43
|
+
selected.value = "";
|
|
44
|
+
}
|
|
45
|
+
/** 在卡片内调整尺寸并重新整理画布。 */
|
|
46
|
+
function resize(id, value) {
|
|
47
|
+
emit("update:modelValue", {
|
|
48
|
+
...props.modelValue,
|
|
49
|
+
cards: reflowDashboardCards(props.modelValue.cards.map(item => (item.id === id ? { ...item, ...value } : item)))
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
const __VLS_ctx = {
|
|
53
|
+
...{},
|
|
54
|
+
...{},
|
|
55
|
+
...{},
|
|
56
|
+
...{},
|
|
57
|
+
};
|
|
58
|
+
let __VLS_components;
|
|
59
|
+
let __VLS_intrinsics;
|
|
60
|
+
let __VLS_directives;
|
|
61
|
+
void __VLS_ctx, __VLS_components, __VLS_intrinsics, __VLS_directives;
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
__VLS_withDotValue(addedCardIDs, {});
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
__VLS_withDotValue(dragged, {});
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
__VLS_withDotValue(selected, {});
|
|
68
|
+
// @ts-ignore
|
|
69
|
+
__VLS_withDotValue(cardByID, {});
|
|
70
|
+
void {};
|
|
71
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer']} */ ;
|
|
72
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library']} */ ;
|
|
73
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library-item']} */ ;
|
|
74
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library-item']} */ ;
|
|
75
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library-footer']} */ ;
|
|
76
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__canvas']} */ ;
|
|
77
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__item']} */ ;
|
|
78
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__item']} */ ;
|
|
79
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__item']} */ ;
|
|
80
|
+
/** @type {__VLS_StyleScopedClasses['bi-data-card']} */ ;
|
|
81
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer']} */ ;
|
|
82
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer']} */ ;
|
|
83
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library']} */ ;
|
|
84
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__canvas']} */ ;
|
|
85
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__item']} */ ;
|
|
86
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
87
|
+
...{ class: "bi-designer" },
|
|
88
|
+
});
|
|
89
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer']} */ ;
|
|
90
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.aside, __VLS_intrinsics.aside)({
|
|
91
|
+
...{ class: "bi-designer__library" },
|
|
92
|
+
});
|
|
93
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library']} */ ;
|
|
94
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.header, __VLS_intrinsics.header)({
|
|
95
|
+
...{ class: "bi-designer__library-header" },
|
|
96
|
+
});
|
|
97
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library-header']} */ ;
|
|
98
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.h3, __VLS_intrinsics.h3)({});
|
|
99
|
+
(__VLS_unwrap(t, {})("bi.card.library"));
|
|
100
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.p, __VLS_intrinsics.p)({});
|
|
101
|
+
(__VLS_unwrap(t, {})("bi.dashboard.choose_cards"));
|
|
102
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
103
|
+
...{ class: "bi-designer__library-list" },
|
|
104
|
+
});
|
|
105
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library-list']} */ ;
|
|
106
|
+
const __VLS_0 = __VLS_tryAsConstant((__VLS_ctx.cards));
|
|
107
|
+
for (const [card] of __VLS_vFor(__VLS_nonNull(__VLS_0))) {
|
|
108
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
109
|
+
key: (card.id),
|
|
110
|
+
...{ class: "bi-designer__library-item" },
|
|
111
|
+
});
|
|
112
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library-item']} */ ;
|
|
113
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.h4, __VLS_intrinsics.h4)({});
|
|
114
|
+
(card.name);
|
|
115
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
116
|
+
...{ class: "bi-designer__library-meta" },
|
|
117
|
+
});
|
|
118
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library-meta']} */ ;
|
|
119
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
|
|
120
|
+
(card.chart_type === "metric" ? __VLS_unwrap(t, {})("bi.card.chart.metric") : __VLS_unwrap(messages, {})(`types.${card.chart_type}`));
|
|
121
|
+
if (addedCardIDs.value.has(card.id)) {
|
|
122
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({
|
|
123
|
+
...{ class: "bi-designer__added" },
|
|
124
|
+
});
|
|
125
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__added']} */ ;
|
|
126
|
+
let __VLS_1;
|
|
127
|
+
/** @ts-ignore @type { | typeof __VLS_components.elIcon | typeof __VLS_components.ElIcon | typeof __VLS_components['el-icon'] | typeof __VLS_components.elIcon | typeof __VLS_components.ElIcon | typeof __VLS_components['el-icon']} */
|
|
128
|
+
elIcon;
|
|
129
|
+
// @ts-ignore
|
|
130
|
+
const __VLS_2 = __VLS_asFunctionalComponent1(__VLS_1, new __VLS_1({
|
|
131
|
+
// @ts-ignore
|
|
132
|
+
}));
|
|
133
|
+
const __VLS_3 = __VLS_2({}, ...__VLS_functionalComponentArgsRest(__VLS_2));
|
|
134
|
+
const { default: __VLS_6 } = __VLS_nonNull(__VLS_4.slots);
|
|
135
|
+
const __VLS_7 = (__VLS_unwrap(checkIcon, {}));
|
|
136
|
+
// @ts-ignore
|
|
137
|
+
const __VLS_8 = __VLS_asFunctionalComponent1(__VLS_7, new __VLS_7({
|
|
138
|
+
// @ts-ignore
|
|
139
|
+
}));
|
|
140
|
+
const __VLS_9 = __VLS_8({}, ...__VLS_functionalComponentArgsRest(__VLS_8));
|
|
141
|
+
// @ts-ignore
|
|
142
|
+
[t, t, t, cards, messages, addedCardIDs, checkIcon,];
|
|
143
|
+
var __VLS_4;
|
|
144
|
+
(__VLS_unwrap(t, {})("bi.card.added"));
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
let __VLS_12;
|
|
148
|
+
/** @ts-ignore @type { | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button'] | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button']} */
|
|
149
|
+
elButton;
|
|
150
|
+
// @ts-ignore
|
|
151
|
+
const __VLS_13 = __VLS_asFunctionalComponent1(__VLS_12, new __VLS_12({
|
|
152
|
+
// @ts-ignore
|
|
153
|
+
...{ 'onClick': {} }, link: true, type: "primary", size: "small", icon: (__VLS_unwrap(plusIcon, {})), 'aria-label': (`${__VLS_unwrap(t, {})('bi.card.add')}:${card.name}`), disabled: (__VLS_ctx.modelValue.cards.length >= 20),
|
|
154
|
+
}));
|
|
155
|
+
const __VLS_14 = __VLS_13({
|
|
156
|
+
...{ 'onClick': {} },
|
|
157
|
+
link: true,
|
|
158
|
+
type: "primary",
|
|
159
|
+
size: "small",
|
|
160
|
+
icon: (__VLS_unwrap(plusIcon, {})),
|
|
161
|
+
'aria-label': (`${__VLS_unwrap(t, {})('bi.card.add')}:${card.name}`),
|
|
162
|
+
disabled: (__VLS_ctx.modelValue.cards.length >= 20),
|
|
163
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_13));
|
|
164
|
+
let __VLS_17;
|
|
165
|
+
const __VLS_18 = {
|
|
166
|
+
/** @type {typeof __VLS_17.click} */
|
|
167
|
+
onClick: // @ts-ignore
|
|
168
|
+
(...[$event]) => {
|
|
169
|
+
void $event;
|
|
170
|
+
if (!!(addedCardIDs.value.has(card.id)))
|
|
171
|
+
throw 0;
|
|
172
|
+
return (add(card));
|
|
173
|
+
// @ts-ignore
|
|
174
|
+
[t, t, plusIcon, modelValue,];
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
void __VLS_18;
|
|
178
|
+
const { default: __VLS_19 } = __VLS_nonNull(__VLS_15.slots);
|
|
179
|
+
(__VLS_unwrap(t, {})("bi.card.add_short"));
|
|
180
|
+
// @ts-ignore
|
|
181
|
+
[t,];
|
|
182
|
+
var __VLS_15;
|
|
183
|
+
var __VLS_16;
|
|
184
|
+
}
|
|
185
|
+
// @ts-ignore
|
|
186
|
+
[];
|
|
187
|
+
}
|
|
188
|
+
if (!__VLS_ctx.cards.length) {
|
|
189
|
+
let __VLS_20;
|
|
190
|
+
/** @ts-ignore @type { | typeof __VLS_components.elEmpty | typeof __VLS_components.ElEmpty | typeof __VLS_components['el-empty']} */
|
|
191
|
+
elEmpty;
|
|
192
|
+
// @ts-ignore
|
|
193
|
+
const __VLS_21 = __VLS_asFunctionalComponent1(__VLS_20, new __VLS_20({
|
|
194
|
+
// @ts-ignore
|
|
195
|
+
imageSize: (48), description: (__VLS_unwrap(t, {})('bi.card.empty')),
|
|
196
|
+
}));
|
|
197
|
+
const __VLS_22 = __VLS_21({
|
|
198
|
+
imageSize: (48),
|
|
199
|
+
description: (__VLS_unwrap(t, {})('bi.card.empty')),
|
|
200
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_21));
|
|
201
|
+
}
|
|
202
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.footer, __VLS_intrinsics.footer)({
|
|
203
|
+
...{ class: "bi-designer__library-footer" },
|
|
204
|
+
});
|
|
205
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__library-footer']} */ ;
|
|
206
|
+
let __VLS_25;
|
|
207
|
+
/** @ts-ignore @type { | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button'] | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button']} */
|
|
208
|
+
elButton;
|
|
209
|
+
// @ts-ignore
|
|
210
|
+
const __VLS_26 = __VLS_asFunctionalComponent1(__VLS_25, new __VLS_25({
|
|
211
|
+
// @ts-ignore
|
|
212
|
+
...{ 'onClick': {} }, icon: (__VLS_unwrap(plusIcon, {})), plain: true, type: "primary",
|
|
213
|
+
}));
|
|
214
|
+
const __VLS_27 = __VLS_26({
|
|
215
|
+
...{ 'onClick': {} },
|
|
216
|
+
icon: (__VLS_unwrap(plusIcon, {})),
|
|
217
|
+
plain: true,
|
|
218
|
+
type: "primary",
|
|
219
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_26));
|
|
220
|
+
let __VLS_30;
|
|
221
|
+
const __VLS_31 = {
|
|
222
|
+
/** @type {typeof __VLS_30.click} */
|
|
223
|
+
onClick: // @ts-ignore
|
|
224
|
+
(...[$event]) => {
|
|
225
|
+
void $event;
|
|
226
|
+
return (__VLS_unwrap(emit, {})('create-card'));
|
|
227
|
+
// @ts-ignore
|
|
228
|
+
[t, cards, plusIcon, emit,];
|
|
229
|
+
},
|
|
230
|
+
};
|
|
231
|
+
void __VLS_31;
|
|
232
|
+
const { default: __VLS_32 } = __VLS_nonNull(__VLS_28.slots);
|
|
233
|
+
(__VLS_unwrap(t, {})("bi.card.create"));
|
|
234
|
+
// @ts-ignore
|
|
235
|
+
[t,];
|
|
236
|
+
var __VLS_28;
|
|
237
|
+
var __VLS_29;
|
|
238
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.main, __VLS_intrinsics.main)({
|
|
239
|
+
...{ class: "bi-designer__canvas" },
|
|
240
|
+
});
|
|
241
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__canvas']} */ ;
|
|
242
|
+
const __VLS_33 = __VLS_tryAsConstant((__VLS_ctx.modelValue.cards));
|
|
243
|
+
for (const [item, index] of __VLS_vFor(__VLS_nonNull(__VLS_33))) {
|
|
244
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
|
|
245
|
+
...{ onDragstart: // @ts-ignore
|
|
246
|
+
(...[$event]) => {
|
|
247
|
+
void $event;
|
|
248
|
+
return (dragged.value = index);
|
|
249
|
+
// @ts-ignore
|
|
250
|
+
[modelValue, dragged,];
|
|
251
|
+
} },
|
|
252
|
+
...{ onDragover: () => { } },
|
|
253
|
+
...{ onDrop: // @ts-ignore
|
|
254
|
+
(...[$event]) => {
|
|
255
|
+
void $event;
|
|
256
|
+
return (move(dragged.value, index));
|
|
257
|
+
// @ts-ignore
|
|
258
|
+
[dragged,];
|
|
259
|
+
} },
|
|
260
|
+
...{ onClick: // @ts-ignore
|
|
261
|
+
(...[$event]) => {
|
|
262
|
+
void $event;
|
|
263
|
+
return (selected.value = item.id);
|
|
264
|
+
// @ts-ignore
|
|
265
|
+
[selected,];
|
|
266
|
+
} },
|
|
267
|
+
key: (item.id),
|
|
268
|
+
...{ class: "bi-designer__item" },
|
|
269
|
+
...{ class: ({ 'is-selected': selected.value === item.id }) },
|
|
270
|
+
...{ style: ({ gridColumn: `${(item.x || 0) + 1} / span ${item.w}`, gridRow: `${(item.y || 0) + 1} / span ${item.h}` }) },
|
|
271
|
+
draggable: "true",
|
|
272
|
+
});
|
|
273
|
+
/** @type {__VLS_StyleScopedClasses['bi-designer__item']} */ ;
|
|
274
|
+
/** @type {__VLS_StyleScopedClasses['is-selected']} */ ;
|
|
275
|
+
if (cardByID.value.get(item.card_id)) {
|
|
276
|
+
const __VLS_34 = BiDataCard || BiDataCard;
|
|
277
|
+
// @ts-ignore
|
|
278
|
+
const __VLS_35 = __VLS_asFunctionalComponent1(__VLS_34, new __VLS_34({
|
|
279
|
+
// @ts-ignore
|
|
280
|
+
card: (cardByID.value.get(item.card_id)),
|
|
281
|
+
}));
|
|
282
|
+
const __VLS_36 = __VLS_35({
|
|
283
|
+
card: (cardByID.value.get(item.card_id)),
|
|
284
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_35));
|
|
285
|
+
const { default: __VLS_39 } = __VLS_nonNull(__VLS_37.slots);
|
|
286
|
+
{
|
|
287
|
+
const { footer: __VLS_40 } = __VLS_nonNull(__VLS_37.slots);
|
|
288
|
+
let __VLS_41;
|
|
289
|
+
/** @ts-ignore @type { | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button'] | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button']} */
|
|
290
|
+
elButton;
|
|
291
|
+
// @ts-ignore
|
|
292
|
+
const __VLS_42 = __VLS_asFunctionalComponent1(__VLS_41, new __VLS_41({
|
|
293
|
+
// @ts-ignore
|
|
294
|
+
...{ 'onClick': {} }, link: true, disabled: (index === 0),
|
|
295
|
+
}));
|
|
296
|
+
const __VLS_43 = __VLS_42({
|
|
297
|
+
...{ 'onClick': {} },
|
|
298
|
+
link: true,
|
|
299
|
+
disabled: (index === 0),
|
|
300
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_42));
|
|
301
|
+
let __VLS_46;
|
|
302
|
+
const __VLS_47 = {
|
|
303
|
+
/** @type {typeof __VLS_46.click} */
|
|
304
|
+
onClick: // @ts-ignore
|
|
305
|
+
(...[$event]) => {
|
|
306
|
+
void $event;
|
|
307
|
+
if (!(cardByID.value.get(item.card_id)))
|
|
308
|
+
throw 0;
|
|
309
|
+
return (move(index, index - 1));
|
|
310
|
+
// @ts-ignore
|
|
311
|
+
[selected, cardByID, cardByID,];
|
|
312
|
+
},
|
|
313
|
+
};
|
|
314
|
+
void __VLS_47;
|
|
315
|
+
const { default: __VLS_48 } = __VLS_nonNull(__VLS_44.slots);
|
|
316
|
+
(__VLS_unwrap(t, {})("bi.workbench.move_before", { name: "" }));
|
|
317
|
+
// @ts-ignore
|
|
318
|
+
[t,];
|
|
319
|
+
var __VLS_44;
|
|
320
|
+
var __VLS_45;
|
|
321
|
+
let __VLS_49;
|
|
322
|
+
/** @ts-ignore @type { | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button'] | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button']} */
|
|
323
|
+
elButton;
|
|
324
|
+
// @ts-ignore
|
|
325
|
+
const __VLS_50 = __VLS_asFunctionalComponent1(__VLS_49, new __VLS_49({
|
|
326
|
+
// @ts-ignore
|
|
327
|
+
...{ 'onClick': {} }, link: true, disabled: (index === __VLS_ctx.modelValue.cards.length - 1),
|
|
328
|
+
}));
|
|
329
|
+
const __VLS_51 = __VLS_50({
|
|
330
|
+
...{ 'onClick': {} },
|
|
331
|
+
link: true,
|
|
332
|
+
disabled: (index === __VLS_ctx.modelValue.cards.length - 1),
|
|
333
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_50));
|
|
334
|
+
let __VLS_54;
|
|
335
|
+
const __VLS_55 = {
|
|
336
|
+
/** @type {typeof __VLS_54.click} */
|
|
337
|
+
onClick: // @ts-ignore
|
|
338
|
+
(...[$event]) => {
|
|
339
|
+
void $event;
|
|
340
|
+
if (!(cardByID.value.get(item.card_id)))
|
|
341
|
+
throw 0;
|
|
342
|
+
return (move(index, index + 1));
|
|
343
|
+
// @ts-ignore
|
|
344
|
+
[modelValue,];
|
|
345
|
+
},
|
|
346
|
+
};
|
|
347
|
+
void __VLS_55;
|
|
348
|
+
const { default: __VLS_56 } = __VLS_nonNull(__VLS_52.slots);
|
|
349
|
+
(__VLS_unwrap(t, {})("bi.workbench.move_after", { name: "" }));
|
|
350
|
+
// @ts-ignore
|
|
351
|
+
[t,];
|
|
352
|
+
var __VLS_52;
|
|
353
|
+
var __VLS_53;
|
|
354
|
+
let __VLS_57;
|
|
355
|
+
/** @ts-ignore @type { | typeof __VLS_components.elPopover | typeof __VLS_components.ElPopover | typeof __VLS_components['el-popover'] | typeof __VLS_components.elPopover | typeof __VLS_components.ElPopover | typeof __VLS_components['el-popover']} */
|
|
356
|
+
elPopover;
|
|
357
|
+
// @ts-ignore
|
|
358
|
+
const __VLS_58 = __VLS_asFunctionalComponent1(__VLS_57, new __VLS_57({
|
|
359
|
+
// @ts-ignore
|
|
360
|
+
trigger: "click", width: (220),
|
|
361
|
+
}));
|
|
362
|
+
const __VLS_59 = __VLS_58({
|
|
363
|
+
trigger: "click",
|
|
364
|
+
width: (220),
|
|
365
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_58));
|
|
366
|
+
const { default: __VLS_62 } = __VLS_nonNull(__VLS_60.slots);
|
|
367
|
+
{
|
|
368
|
+
const { reference: __VLS_63 } = __VLS_nonNull(__VLS_60.slots);
|
|
369
|
+
let __VLS_64;
|
|
370
|
+
/** @ts-ignore @type { | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button'] | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button']} */
|
|
371
|
+
elButton;
|
|
372
|
+
// @ts-ignore
|
|
373
|
+
const __VLS_65 = __VLS_asFunctionalComponent1(__VLS_64, new __VLS_64({
|
|
374
|
+
// @ts-ignore
|
|
375
|
+
...{ 'onClick': {} }, link: true, type: "primary",
|
|
376
|
+
}));
|
|
377
|
+
const __VLS_66 = __VLS_65({
|
|
378
|
+
...{ 'onClick': {} },
|
|
379
|
+
link: true,
|
|
380
|
+
type: "primary",
|
|
381
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_65));
|
|
382
|
+
let __VLS_69;
|
|
383
|
+
const __VLS_70 = {
|
|
384
|
+
/** @type {typeof __VLS_69.click} */
|
|
385
|
+
onClick: // @ts-ignore
|
|
386
|
+
(...[$event]) => {
|
|
387
|
+
void $event;
|
|
388
|
+
if (!(cardByID.value.get(item.card_id)))
|
|
389
|
+
throw 0;
|
|
390
|
+
return (selected.value = item.id);
|
|
391
|
+
// @ts-ignore
|
|
392
|
+
[selected,];
|
|
393
|
+
},
|
|
394
|
+
};
|
|
395
|
+
void __VLS_70;
|
|
396
|
+
const { default: __VLS_71 } = __VLS_nonNull(__VLS_67.slots);
|
|
397
|
+
(__VLS_unwrap(t, {})("bi.dashboard.layout_settings"));
|
|
398
|
+
// @ts-ignore
|
|
399
|
+
[t,];
|
|
400
|
+
var __VLS_67;
|
|
401
|
+
var __VLS_68;
|
|
402
|
+
// @ts-ignore
|
|
403
|
+
[];
|
|
404
|
+
}
|
|
405
|
+
let __VLS_72;
|
|
406
|
+
/** @ts-ignore @type { | typeof __VLS_components.elForm | typeof __VLS_components.ElForm | typeof __VLS_components['el-form'] | typeof __VLS_components.elForm | typeof __VLS_components.ElForm | typeof __VLS_components['el-form']} */
|
|
407
|
+
elForm;
|
|
408
|
+
// @ts-ignore
|
|
409
|
+
const __VLS_73 = __VLS_asFunctionalComponent1(__VLS_72, new __VLS_72({
|
|
410
|
+
// @ts-ignore
|
|
411
|
+
labelPosition: "top", size: "small",
|
|
412
|
+
}));
|
|
413
|
+
const __VLS_74 = __VLS_73({
|
|
414
|
+
labelPosition: "top",
|
|
415
|
+
size: "small",
|
|
416
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_73));
|
|
417
|
+
const { default: __VLS_77 } = __VLS_nonNull(__VLS_75.slots);
|
|
418
|
+
let __VLS_78;
|
|
419
|
+
/** @ts-ignore @type { | typeof __VLS_components.elFormItem | typeof __VLS_components.ElFormItem | typeof __VLS_components['el-form-item'] | typeof __VLS_components.elFormItem | typeof __VLS_components.ElFormItem | typeof __VLS_components['el-form-item']} */
|
|
420
|
+
elFormItem;
|
|
421
|
+
// @ts-ignore
|
|
422
|
+
const __VLS_79 = __VLS_asFunctionalComponent1(__VLS_78, new __VLS_78({
|
|
423
|
+
// @ts-ignore
|
|
424
|
+
label: (__VLS_unwrap(t, {})('bi.dashboard.card_width')),
|
|
425
|
+
}));
|
|
426
|
+
const __VLS_80 = __VLS_79({
|
|
427
|
+
label: (__VLS_unwrap(t, {})('bi.dashboard.card_width')),
|
|
428
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_79));
|
|
429
|
+
const { default: __VLS_83 } = __VLS_nonNull(__VLS_81.slots);
|
|
430
|
+
let __VLS_84;
|
|
431
|
+
/** @ts-ignore @type { | typeof __VLS_components.elSelect | typeof __VLS_components.ElSelect | typeof __VLS_components['el-select'] | typeof __VLS_components.elSelect | typeof __VLS_components.ElSelect | typeof __VLS_components['el-select']} */
|
|
432
|
+
elSelect;
|
|
433
|
+
// @ts-ignore
|
|
434
|
+
const __VLS_85 = __VLS_asFunctionalComponent1(__VLS_84, new __VLS_84({
|
|
435
|
+
// @ts-ignore
|
|
436
|
+
...{ 'onChange': {} }, modelValue: (item.w),
|
|
437
|
+
}));
|
|
438
|
+
const __VLS_86 = __VLS_85({
|
|
439
|
+
...{ 'onChange': {} },
|
|
440
|
+
modelValue: (item.w),
|
|
441
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_85));
|
|
442
|
+
let __VLS_89;
|
|
443
|
+
const __VLS_90 = {
|
|
444
|
+
/** @type {typeof __VLS_89.change} */
|
|
445
|
+
onChange: // @ts-ignore
|
|
446
|
+
(...[$event]) => {
|
|
447
|
+
void $event;
|
|
448
|
+
if (!(cardByID.value.get(item.card_id)))
|
|
449
|
+
throw 0;
|
|
450
|
+
return (resize(item.id, { w: $event }));
|
|
451
|
+
// @ts-ignore
|
|
452
|
+
[t,];
|
|
453
|
+
},
|
|
454
|
+
};
|
|
455
|
+
void __VLS_90;
|
|
456
|
+
const { default: __VLS_91 } = __VLS_nonNull(__VLS_87.slots);
|
|
457
|
+
let __VLS_92;
|
|
458
|
+
/** @ts-ignore @type { | typeof __VLS_components.elOption | typeof __VLS_components.ElOption | typeof __VLS_components['el-option']} */
|
|
459
|
+
elOption;
|
|
460
|
+
// @ts-ignore
|
|
461
|
+
const __VLS_93 = __VLS_asFunctionalComponent1(__VLS_92, new __VLS_92({
|
|
462
|
+
// @ts-ignore
|
|
463
|
+
value: (3), label: (__VLS_unwrap(t, {})('bi.dashboard.width_quarter')),
|
|
464
|
+
}));
|
|
465
|
+
const __VLS_94 = __VLS_93({
|
|
466
|
+
value: (3),
|
|
467
|
+
label: (__VLS_unwrap(t, {})('bi.dashboard.width_quarter')),
|
|
468
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_93));
|
|
469
|
+
let __VLS_97;
|
|
470
|
+
/** @ts-ignore @type { | typeof __VLS_components.elOption | typeof __VLS_components.ElOption | typeof __VLS_components['el-option']} */
|
|
471
|
+
elOption;
|
|
472
|
+
// @ts-ignore
|
|
473
|
+
const __VLS_98 = __VLS_asFunctionalComponent1(__VLS_97, new __VLS_97({
|
|
474
|
+
// @ts-ignore
|
|
475
|
+
value: (6), label: (__VLS_unwrap(t, {})('bi.dashboard.width_half')),
|
|
476
|
+
}));
|
|
477
|
+
const __VLS_99 = __VLS_98({
|
|
478
|
+
value: (6),
|
|
479
|
+
label: (__VLS_unwrap(t, {})('bi.dashboard.width_half')),
|
|
480
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_98));
|
|
481
|
+
let __VLS_102;
|
|
482
|
+
/** @ts-ignore @type { | typeof __VLS_components.elOption | typeof __VLS_components.ElOption | typeof __VLS_components['el-option']} */
|
|
483
|
+
elOption;
|
|
484
|
+
// @ts-ignore
|
|
485
|
+
const __VLS_103 = __VLS_asFunctionalComponent1(__VLS_102, new __VLS_102({
|
|
486
|
+
// @ts-ignore
|
|
487
|
+
value: (12), label: (__VLS_unwrap(t, {})('bi.dashboard.width_full')),
|
|
488
|
+
}));
|
|
489
|
+
const __VLS_104 = __VLS_103({
|
|
490
|
+
value: (12),
|
|
491
|
+
label: (__VLS_unwrap(t, {})('bi.dashboard.width_full')),
|
|
492
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_103));
|
|
493
|
+
// @ts-ignore
|
|
494
|
+
[t, t, t,];
|
|
495
|
+
var __VLS_87;
|
|
496
|
+
var __VLS_88;
|
|
497
|
+
// @ts-ignore
|
|
498
|
+
[];
|
|
499
|
+
var __VLS_81;
|
|
500
|
+
let __VLS_107;
|
|
501
|
+
/** @ts-ignore @type { | typeof __VLS_components.elFormItem | typeof __VLS_components.ElFormItem | typeof __VLS_components['el-form-item'] | typeof __VLS_components.elFormItem | typeof __VLS_components.ElFormItem | typeof __VLS_components['el-form-item']} */
|
|
502
|
+
elFormItem;
|
|
503
|
+
// @ts-ignore
|
|
504
|
+
const __VLS_108 = __VLS_asFunctionalComponent1(__VLS_107, new __VLS_107({
|
|
505
|
+
// @ts-ignore
|
|
506
|
+
label: (__VLS_unwrap(t, {})('bi.dashboard.card_height')),
|
|
507
|
+
}));
|
|
508
|
+
const __VLS_109 = __VLS_108({
|
|
509
|
+
label: (__VLS_unwrap(t, {})('bi.dashboard.card_height')),
|
|
510
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_108));
|
|
511
|
+
const { default: __VLS_112 } = __VLS_nonNull(__VLS_110.slots);
|
|
512
|
+
let __VLS_113;
|
|
513
|
+
/** @ts-ignore @type { | typeof __VLS_components.elInputNumber | typeof __VLS_components.ElInputNumber | typeof __VLS_components['el-input-number']} */
|
|
514
|
+
elInputNumber;
|
|
515
|
+
// @ts-ignore
|
|
516
|
+
const __VLS_114 = __VLS_asFunctionalComponent1(__VLS_113, new __VLS_113({
|
|
517
|
+
// @ts-ignore
|
|
518
|
+
...{ 'onUpdate:modelValue': {} }, modelValue: (item.h), min: (3), max: (12), precision: (0),
|
|
519
|
+
}));
|
|
520
|
+
const __VLS_115 = __VLS_114({
|
|
521
|
+
...{ 'onUpdate:modelValue': {} },
|
|
522
|
+
modelValue: (item.h),
|
|
523
|
+
min: (3),
|
|
524
|
+
max: (12),
|
|
525
|
+
precision: (0),
|
|
526
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_114));
|
|
527
|
+
let __VLS_118;
|
|
528
|
+
const __VLS_119 = {
|
|
529
|
+
/** @type {typeof __VLS_118.'update:modelValue'} */
|
|
530
|
+
'onUpdate:modelValue': // @ts-ignore
|
|
531
|
+
(...[$event]) => {
|
|
532
|
+
void $event;
|
|
533
|
+
if (!(cardByID.value.get(item.card_id)))
|
|
534
|
+
throw 0;
|
|
535
|
+
return (resize(item.id, { h: $event || 4 }));
|
|
536
|
+
// @ts-ignore
|
|
537
|
+
[t,];
|
|
538
|
+
},
|
|
539
|
+
};
|
|
540
|
+
void __VLS_119;
|
|
541
|
+
var __VLS_116;
|
|
542
|
+
var __VLS_117;
|
|
543
|
+
// @ts-ignore
|
|
544
|
+
[];
|
|
545
|
+
var __VLS_110;
|
|
546
|
+
// @ts-ignore
|
|
547
|
+
[];
|
|
548
|
+
var __VLS_75;
|
|
549
|
+
// @ts-ignore
|
|
550
|
+
[];
|
|
551
|
+
var __VLS_60;
|
|
552
|
+
if (cardByID.value.get(item.card_id)?.can_edit) {
|
|
553
|
+
let __VLS_120;
|
|
554
|
+
/** @ts-ignore @type { | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button'] | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button']} */
|
|
555
|
+
elButton;
|
|
556
|
+
// @ts-ignore
|
|
557
|
+
const __VLS_121 = __VLS_asFunctionalComponent1(__VLS_120, new __VLS_120({
|
|
558
|
+
// @ts-ignore
|
|
559
|
+
...{ 'onClick': {} }, link: true, type: "primary",
|
|
560
|
+
}));
|
|
561
|
+
const __VLS_122 = __VLS_121({
|
|
562
|
+
...{ 'onClick': {} },
|
|
563
|
+
link: true,
|
|
564
|
+
type: "primary",
|
|
565
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_121));
|
|
566
|
+
let __VLS_125;
|
|
567
|
+
const __VLS_126 = {
|
|
568
|
+
/** @type {typeof __VLS_125.click} */
|
|
569
|
+
onClick: // @ts-ignore
|
|
570
|
+
(...[$event]) => {
|
|
571
|
+
void $event;
|
|
572
|
+
if (!(cardByID.value.get(item.card_id)))
|
|
573
|
+
throw 0;
|
|
574
|
+
if (!(cardByID.value.get(item.card_id)?.can_edit))
|
|
575
|
+
throw 0;
|
|
576
|
+
return (__VLS_unwrap(emit, {})('edit-card', cardByID.value.get(item.card_id)));
|
|
577
|
+
// @ts-ignore
|
|
578
|
+
[emit, cardByID, cardByID,];
|
|
579
|
+
},
|
|
580
|
+
};
|
|
581
|
+
void __VLS_126;
|
|
582
|
+
const { default: __VLS_127 } = __VLS_nonNull(__VLS_123.slots);
|
|
583
|
+
(__VLS_unwrap(t, {})("bi.card.edit"));
|
|
584
|
+
// @ts-ignore
|
|
585
|
+
[t,];
|
|
586
|
+
var __VLS_123;
|
|
587
|
+
var __VLS_124;
|
|
588
|
+
}
|
|
589
|
+
let __VLS_128;
|
|
590
|
+
/** @ts-ignore @type { | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button'] | typeof __VLS_components.elButton | typeof __VLS_components.ElButton | typeof __VLS_components['el-button']} */
|
|
591
|
+
elButton;
|
|
592
|
+
// @ts-ignore
|
|
593
|
+
const __VLS_129 = __VLS_asFunctionalComponent1(__VLS_128, new __VLS_128({
|
|
594
|
+
// @ts-ignore
|
|
595
|
+
...{ 'onClick': {} }, link: true, type: "danger",
|
|
596
|
+
}));
|
|
597
|
+
const __VLS_130 = __VLS_129({
|
|
598
|
+
...{ 'onClick': {} },
|
|
599
|
+
link: true,
|
|
600
|
+
type: "danger",
|
|
601
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_129));
|
|
602
|
+
let __VLS_133;
|
|
603
|
+
const __VLS_134 = {
|
|
604
|
+
/** @type {typeof __VLS_133.click} */
|
|
605
|
+
onClick: // @ts-ignore
|
|
606
|
+
(...[$event]) => {
|
|
607
|
+
void $event;
|
|
608
|
+
if (!(cardByID.value.get(item.card_id)))
|
|
609
|
+
throw 0;
|
|
610
|
+
return (remove(item.id));
|
|
611
|
+
// @ts-ignore
|
|
612
|
+
[];
|
|
613
|
+
},
|
|
614
|
+
};
|
|
615
|
+
void __VLS_134;
|
|
616
|
+
const { default: __VLS_135 } = __VLS_nonNull(__VLS_131.slots);
|
|
617
|
+
(__VLS_unwrap(t, {})("bi.workbench.remove", { name: "" }));
|
|
618
|
+
// @ts-ignore
|
|
619
|
+
[t,];
|
|
620
|
+
var __VLS_131;
|
|
621
|
+
var __VLS_132;
|
|
622
|
+
// @ts-ignore
|
|
623
|
+
[];
|
|
624
|
+
}
|
|
625
|
+
// @ts-ignore
|
|
626
|
+
[];
|
|
627
|
+
var __VLS_37;
|
|
628
|
+
}
|
|
629
|
+
else {
|
|
630
|
+
let __VLS_136;
|
|
631
|
+
/** @ts-ignore @type { | typeof __VLS_components.elAlert | typeof __VLS_components.ElAlert | typeof __VLS_components['el-alert']} */
|
|
632
|
+
elAlert;
|
|
633
|
+
// @ts-ignore
|
|
634
|
+
const __VLS_137 = __VLS_asFunctionalComponent1(__VLS_136, new __VLS_136({
|
|
635
|
+
// @ts-ignore
|
|
636
|
+
type: "warning", closable: (false), title: (__VLS_unwrap(t, {})('bi.dashboard.card_missing')),
|
|
637
|
+
}));
|
|
638
|
+
const __VLS_138 = __VLS_137({
|
|
639
|
+
type: "warning",
|
|
640
|
+
closable: (false),
|
|
641
|
+
title: (__VLS_unwrap(t, {})('bi.dashboard.card_missing')),
|
|
642
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_137));
|
|
643
|
+
}
|
|
644
|
+
// @ts-ignore
|
|
645
|
+
[t,];
|
|
646
|
+
}
|
|
647
|
+
if (!__VLS_ctx.modelValue.cards.length) {
|
|
648
|
+
let __VLS_141;
|
|
649
|
+
/** @ts-ignore @type { | typeof __VLS_components.elEmpty | typeof __VLS_components.ElEmpty | typeof __VLS_components['el-empty']} */
|
|
650
|
+
elEmpty;
|
|
651
|
+
// @ts-ignore
|
|
652
|
+
const __VLS_142 = __VLS_asFunctionalComponent1(__VLS_141, new __VLS_141({
|
|
653
|
+
// @ts-ignore
|
|
654
|
+
description: (__VLS_unwrap(t, {})('bi.dashboard.choose_cards')),
|
|
655
|
+
}));
|
|
656
|
+
const __VLS_143 = __VLS_142({
|
|
657
|
+
description: (__VLS_unwrap(t, {})('bi.dashboard.choose_cards')),
|
|
658
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_142));
|
|
659
|
+
}
|
|
660
|
+
// @ts-ignore
|
|
661
|
+
[t, modelValue,];
|
|
662
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
663
|
+
__typeEmits: {},
|
|
664
|
+
__typeProps: {},
|
|
665
|
+
});
|
|
666
|
+
export default {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { BiSource } from "../rpc/bi/admin/v1/bi_source";
|
|
2
|
+
import "@vue-flow/core/dist/style.css";
|
|
3
|
+
import "@vue-flow/controls/dist/style.css";
|
|
4
|
+
import "@vue-flow/minimap/dist/style.css";
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
modelValue: boolean;
|
|
7
|
+
source?: BiSource;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: boolean) => any;
|
|
11
|
+
saved: (source: BiSource) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
onSaved?: ((source: BiSource) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|