@veltra/sheet 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/report/binding-badge.js +76 -0
- package/dist/components/report/designer/cell-coords.js +46 -0
- package/dist/components/report/designer/col-widths.js +15 -0
- package/dist/components/report/designer/conditional-rules/helpers.js +139 -0
- package/dist/components/report/designer/drop-highlight-overlay.js +76 -0
- package/dist/components/report/designer/float-panel.js +385 -0
- package/dist/components/report/designer/role.js +17 -0
- package/dist/components/report/designer/rule-preview.js +33 -0
- package/dist/components/report/designer/rule-row.js +269 -0
- package/dist/components/report/designer/rules-dialog.js +135 -0
- package/dist/components/report/designer/topology-overlay.js +122 -0
- package/dist/components/report/designer/topology.js +64 -0
- package/dist/components/report/designer/use-grid-overlay.js +75 -0
- package/dist/components/report/designer-hub.js +177 -0
- package/dist/components/report/field-panel-helpers.js +33 -0
- package/dist/components/report/field-panel.js +132 -0
- package/dist/components/report/filter-bar.js +74 -0
- package/dist/components/report/hub-connection-form.js +145 -0
- package/dist/components/report/hub-dataset-editor.js +394 -0
- package/dist/components/report/report-designer.js +343 -0
- package/dist/components/report/report-viewer.js +111 -0
- package/dist/components/report/style.d.ts +17 -0
- package/dist/components/report/style.js +18 -0
- package/dist/components/report/style2.css +869 -0
- package/dist/components/report/use-report-designer.js +360 -0
- package/dist/components/report/use-report-viewer.js +50 -0
- package/dist/{vue → components/sheet}/formula-bar.js +1 -1
- package/dist/{vue → components/sheet}/formula-suggest-list.js +1 -1
- package/dist/{vue → components/sheet}/import-file.js +1 -1
- package/dist/{vue → components/sheet}/insert-count-menu-item.js +1 -1
- package/dist/{vue → components/sheet}/insert-image.js +1 -1
- package/dist/{vue → components/sheet}/popup-helpers.js +1 -1
- package/dist/{vue → components/sheet}/popups/border-popup.js +1 -1
- package/dist/{vue → components/sheet}/popups/border-preset-glyph.js +1 -1
- package/dist/{vue → components/sheet}/popups/export-popup.js +2 -2
- package/dist/{vue → components/sheet}/popups/fill-color-popup.js +1 -1
- package/dist/{vue → components/sheet}/popups/find-popup.js +1 -1
- package/dist/{vue → components/sheet}/popups/font-color-popup.js +1 -1
- package/dist/{vue → components/sheet}/popups/font-size-popup.js +1 -1
- package/dist/{vue → components/sheet}/popups/import.worker.d.ts +1 -1
- package/dist/{vue → components/sheet}/popups/import.worker.js +1 -1
- package/dist/{vue → components/sheet}/popups/insert-image-popup.js +1 -1
- package/dist/{vue → components/sheet}/sheet-context-menu.js +1 -1
- package/dist/{vue → components/sheet}/sheet-tabs.js +1 -1
- package/dist/{vue → components/sheet}/sheet-toolbar.js +1 -1
- package/dist/{vue → components/sheet}/sheet.js +8 -1
- package/dist/{vue → components/sheet}/use-find-replace.js +1 -1
- package/dist/{vue → components/sheet}/use-formula-ref-select.js +1 -1
- package/dist/{vue → components/sheet}/use-sheet-grid.js +10 -2
- package/dist/{vue → components/sheet}/use-sheet-state.js +3 -3
- package/dist/{vue → components/sheet}/use-sheet-tabs-bar.js +1 -1
- package/dist/{vue → components/sheet}/use-tool-groups.js +2 -2
- package/dist/{vue → components/sheet}/use-tool-popup.js +2 -2
- package/dist/{vue → components/sheet}/use-toolbar-scroll.js +1 -1
- package/dist/index.d.ts +17 -3
- package/dist/index.js +13 -3
- package/dist/report/binding.d.ts +45 -0
- package/dist/report/binding.js +175 -0
- package/dist/report/connector.d.ts +66 -0
- package/dist/report/connector.js +159 -0
- package/dist/report/export-xlsx.d.ts +19 -0
- package/dist/report/export-xlsx.js +95 -0
- package/dist/report/filter-bar.d.ts +10 -0
- package/dist/report/filter-bar.js +31 -0
- package/dist/report/index.d.ts +12 -0
- package/dist/report/params.d.ts +13 -0
- package/dist/report/params.js +61 -0
- package/dist/report/render/aggregate.js +157 -0
- package/dist/report/render/builder.d.ts +12 -0
- package/dist/report/render/builder.js +139 -0
- package/dist/report/render/coordinate.d.ts +25 -0
- package/dist/report/render/coordinate.js +733 -0
- package/dist/report/render/index.d.ts +14 -0
- package/dist/report/render/index.js +21 -0
- package/dist/report/render/style-resolver.js +50 -0
- package/dist/report/render/template-index.d.ts +24 -0
- package/dist/report/render/template-index.js +137 -0
- package/dist/report/rules/evaluate.d.ts +25 -0
- package/dist/report/rules/evaluate.js +82 -0
- package/dist/report/rules/index.d.ts +2 -0
- package/dist/report/template.d.ts +59 -0
- package/dist/report/template.js +80 -0
- package/dist/report/types.d.ts +85 -0
- package/dist/tools/context.d.ts +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/report-designer.d.ts +36 -0
- package/dist/types/report-viewer.d.ts +38 -0
- package/dist/types/sheet.d.ts +17 -1
- package/package.json +3 -5
- package/src/components/report/__test__/conditional-rules-helpers.test.ts +87 -0
- package/src/components/report/__test__/field-panel-helpers.test.ts +65 -0
- package/src/components/report/__test__/float-panel-position.test.ts +45 -0
- package/src/components/report/__test__/report-designer.test.ts +388 -0
- package/src/components/report/__test__/report-viewer.test.ts +334 -0
- package/src/components/report/__test__/topology.test.ts +143 -0
- package/src/components/report/__test__/use-report-designer.test.ts +565 -0
- package/src/components/report/binding-badge.ts +73 -0
- package/src/components/report/designer/cell-coords.ts +94 -0
- package/src/components/report/designer/col-widths.ts +33 -0
- package/src/components/report/designer/conditional-rules/helpers.ts +186 -0
- package/src/components/report/designer/drop-highlight-overlay.vue +74 -0
- package/src/components/report/designer/float-panel.vue +387 -0
- package/src/components/report/designer/role.ts +32 -0
- package/src/components/report/designer/rule-preview.vue +40 -0
- package/src/components/report/designer/rule-row.vue +252 -0
- package/src/components/report/designer/rules-dialog.vue +126 -0
- package/src/components/report/designer/topology-overlay.vue +127 -0
- package/src/components/report/designer/topology.ts +124 -0
- package/src/components/report/designer/use-grid-overlay.ts +113 -0
- package/src/components/report/designer-hub.vue +198 -0
- package/src/components/report/field-panel-helpers.ts +44 -0
- package/src/components/report/field-panel.vue +136 -0
- package/src/components/report/filter-bar.vue +77 -0
- package/src/components/report/hub-connection-form.vue +124 -0
- package/src/components/report/hub-dataset-editor.vue +369 -0
- package/src/components/report/index.ts +2 -0
- package/src/components/report/report-designer.vue +356 -0
- package/src/components/report/report-viewer.vue +128 -0
- package/src/components/report/style-designer.scss +583 -0
- package/src/components/report/style-hub.scss +292 -0
- package/src/components/report/style-viewer.scss +104 -0
- package/src/components/report/style.scss +3 -0
- package/src/components/report/style.ts +20 -0
- package/src/components/report/use-report-designer.ts +547 -0
- package/src/components/report/use-report-viewer.ts +79 -0
- package/src/{vue → components/sheet}/__test__/formula-bar.test.ts +37 -18
- package/src/{vue → components/sheet}/__test__/insert-image-popup.test.ts +1 -1
- package/src/{vue → components/sheet}/__test__/insert-image.test.ts +1 -1
- package/src/{vue → components/sheet}/__test__/sheet-component.test.ts +40 -3
- package/src/{vue → components/sheet}/__test__/sheet-context-menu.test.ts +1 -1
- package/src/{vue → components/sheet}/formula-bar.vue +1 -1
- package/src/{vue → components/sheet}/insert-image.ts +1 -1
- package/src/{vue → components/sheet}/popup-helpers.ts +1 -1
- package/src/{vue → components/sheet}/popups/border-popup.vue +1 -1
- package/src/{vue → components/sheet}/popups/export-popup.vue +2 -2
- package/src/{vue → components/sheet}/popups/fill-color-popup.vue +1 -1
- package/src/{vue → components/sheet}/popups/find-popup.vue +1 -1
- package/src/{vue → components/sheet}/popups/font-color-popup.vue +1 -1
- package/src/{vue → components/sheet}/popups/font-size-popup.vue +1 -1
- package/src/{vue → components/sheet}/popups/insert-image-popup.vue +1 -1
- package/src/{vue → components/sheet}/sheet-context-menu.ts +2 -2
- package/src/{vue → components/sheet}/sheet-toolbar.vue +2 -2
- package/src/{vue → components/sheet}/sheet.vue +4 -3
- package/src/{vue → components/sheet}/use-find-replace.ts +1 -1
- package/src/{vue → components/sheet}/use-sheet-grid.ts +7 -3
- package/src/{vue → components/sheet}/use-sheet-state.ts +3 -3
- package/src/{vue → components/sheet}/use-tool-groups.ts +2 -2
- package/src/{vue → components/sheet}/use-tool-popup.ts +2 -2
- package/src/index.ts +24 -188
- package/src/report/__test__/binding.test.ts +218 -0
- package/src/report/__test__/connector.test.ts +218 -0
- package/src/report/__test__/export-xlsx.test.ts +118 -0
- package/src/report/__test__/filter-bar.test.ts +58 -0
- package/src/report/__test__/params.test.ts +156 -0
- package/src/report/__test__/render.test.ts +728 -0
- package/src/report/__test__/rules.test.ts +131 -0
- package/src/report/__test__/template.test.ts +355 -0
- package/src/report/binding.ts +243 -0
- package/src/report/connector.ts +205 -0
- package/src/report/export-xlsx.ts +118 -0
- package/src/report/filter-bar.ts +36 -0
- package/src/report/index.ts +13 -0
- package/src/report/params.ts +96 -0
- package/src/report/render/__test__/aggregate.test.ts +16 -0
- package/src/report/render/__test__/coordinate.test.ts +405 -0
- package/src/report/render/aggregate.ts +240 -0
- package/src/report/render/builder.ts +211 -0
- package/src/report/render/coordinate.ts +1239 -0
- package/src/report/render/index.ts +30 -0
- package/src/report/render/style-resolver.ts +68 -0
- package/src/report/render/template-index.ts +200 -0
- package/src/report/rules/evaluate.ts +113 -0
- package/src/report/rules/index.ts +7 -0
- package/src/report/template.ts +141 -0
- package/src/report/types.ts +96 -0
- package/src/tools/builtin.ts +2 -2
- package/src/types/index.ts +2 -6
- package/src/types/report-designer.ts +36 -0
- package/src/types/report-viewer.ts +37 -0
- package/src/types/sheet.ts +22 -1
- /package/dist/{vue → components/sheet}/style.d.ts +0 -0
- /package/dist/{vue → components/sheet}/style.js +0 -0
- /package/dist/{vue → components/sheet}/style2.css +0 -0
- /package/dist/{vue → components/sheet}/use-formula-suggest.js +0 -0
- /package/src/{vue → components/sheet}/__test__/import-file.test.ts +0 -0
- /package/src/{vue → components/sheet}/__test__/insert-count-menu-item.test.ts +0 -0
- /package/src/{vue → components/sheet}/__test__/use-formula-ref-select.test.ts +0 -0
- /package/src/{vue → components/sheet}/__test__/use-formula-suggest.test.ts +0 -0
- /package/src/{vue → components/sheet}/formula-suggest-list.vue +0 -0
- /package/src/{vue → components/sheet}/import-file.ts +0 -0
- /package/src/{vue → components/sheet}/index.ts +0 -0
- /package/src/{vue → components/sheet}/insert-count-menu-item.vue +0 -0
- /package/src/{vue → components/sheet}/parsing.ts +0 -0
- /package/src/{vue → components/sheet}/popups/border-preset-glyph.vue +0 -0
- /package/src/{vue → components/sheet}/popups/import.worker.ts +0 -0
- /package/src/{vue → components/sheet}/sheet-tabs.vue +0 -0
- /package/src/{vue → components/sheet}/style.scss +0 -0
- /package/src/{vue → components/sheet}/style.ts +0 -0
- /package/src/{vue → components/sheet}/use-formula-ref-select.ts +0 -0
- /package/src/{vue → components/sheet}/use-formula-suggest.ts +0 -0
- /package/src/{vue → components/sheet}/use-sheet-tabs-bar.ts +0 -0
- /package/src/{vue → components/sheet}/use-toolbar-scroll.ts +0 -0
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
@use 'pkg:@veltra/styles/mixins' as m;
|
|
2
|
+
@use 'pkg:@veltra/styles/functions' as fn;
|
|
3
|
+
|
|
4
|
+
@include m.b(report-designer) {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: fn.use-var(gap, default);
|
|
8
|
+
min-height: 0;
|
|
9
|
+
height: 100%;
|
|
10
|
+
|
|
11
|
+
@include m.e(toolbar) {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-wrap: wrap;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: fn.use-var(gap, small);
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include m.e(hint) {
|
|
20
|
+
font-size: fn.use-var(font-size-main, small);
|
|
21
|
+
color: fn.use-var(text-color, second);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@include m.e(body) {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex: 1;
|
|
27
|
+
min-height: 0;
|
|
28
|
+
gap: fn.use-var(gap, default);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include m.e(mode-toggle) {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
gap: 4px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* 预览态:内嵌查看器路径(UReportViewer 撑满) */
|
|
37
|
+
@include m.e(preview) {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
flex: 1;
|
|
41
|
+
min-height: 0;
|
|
42
|
+
|
|
43
|
+
.u-report-viewer {
|
|
44
|
+
flex: 1;
|
|
45
|
+
min-height: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@include m.e(grid) {
|
|
50
|
+
position: relative;
|
|
51
|
+
flex: 1;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
min-height: 0;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* USheet 根为 flex 列,grid 区 flex:1;宿主必须给 .u-sheet 明确高度 */
|
|
59
|
+
@include m.e(sheet) {
|
|
60
|
+
flex: 1;
|
|
61
|
+
min-height: 0;
|
|
62
|
+
min-width: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* 数据中枢 drawer 面板宽度(class 经 $attrs 落到 .u-drawer 面板;须压过 .u-drawer.is-right 的 320px) */
|
|
66
|
+
@include m.e(hub-drawer) {
|
|
67
|
+
&.u-drawer {
|
|
68
|
+
width: min(960px, 92vw);
|
|
69
|
+
max-width: 92vw;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* 拓扑连线覆层(SVG 弧线,选中绑定格时高亮父子扩展依赖) */
|
|
75
|
+
@include m.b(report-topology) {
|
|
76
|
+
position: absolute;
|
|
77
|
+
inset: 0;
|
|
78
|
+
z-index: 12;
|
|
79
|
+
pointer-events: none;
|
|
80
|
+
overflow: visible;
|
|
81
|
+
|
|
82
|
+
@include m.e(arc) {
|
|
83
|
+
fill: none;
|
|
84
|
+
stroke-width: 2;
|
|
85
|
+
stroke-linecap: round;
|
|
86
|
+
opacity: 0.72;
|
|
87
|
+
|
|
88
|
+
@include m.em(arc, row) {
|
|
89
|
+
stroke: fn.use-var(color, primary);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@include m.em(arc, col) {
|
|
93
|
+
stroke: fn.use-var(color, warning);
|
|
94
|
+
stroke-dasharray: 6 4;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* 字段拖拽落点高亮(虚线框;落空时提示回退当前选区) */
|
|
100
|
+
@include m.b(report-drop-highlight) {
|
|
101
|
+
position: absolute;
|
|
102
|
+
z-index: 16;
|
|
103
|
+
box-sizing: border-box;
|
|
104
|
+
border: 2px dashed fn.use-var(color, primary);
|
|
105
|
+
border-radius: 2px;
|
|
106
|
+
background: color-mix(in srgb, fn.use-var(color, primary) 10%, transparent);
|
|
107
|
+
pointer-events: none;
|
|
108
|
+
|
|
109
|
+
@include m.e(fallback) {
|
|
110
|
+
position: absolute;
|
|
111
|
+
left: 50%;
|
|
112
|
+
bottom: fn.use-var(gap, small);
|
|
113
|
+
z-index: 16;
|
|
114
|
+
transform: translateX(-50%);
|
|
115
|
+
padding: 4px fn.use-var(gap, small);
|
|
116
|
+
border-radius: fn.use-var(radius, default);
|
|
117
|
+
background: color-mix(in srgb, fn.use-var(bg-color, top) 92%, transparent);
|
|
118
|
+
border: 1px dashed fn.use-var(color, primary);
|
|
119
|
+
font-size: fn.use-var(font-size-main, small);
|
|
120
|
+
color: fn.use-var(text-color, second);
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Action Pill:选中绑定格上方的悬浮编辑卡(角色 / 聚合 / 条件样式 / 排序 / 清除绑定) */
|
|
127
|
+
@include m.b(report-float-panel) {
|
|
128
|
+
position: absolute;
|
|
129
|
+
z-index: 18;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
width: max-content;
|
|
133
|
+
min-width: 400px;
|
|
134
|
+
max-width: min(480px, calc(100% - 20px));
|
|
135
|
+
border: fn.use-var(border);
|
|
136
|
+
border-radius: 10px;
|
|
137
|
+
background: fn.use-var(bg-color, top);
|
|
138
|
+
box-shadow: 0 8px 24px rgb(15 23 42 / 12%);
|
|
139
|
+
pointer-events: auto;
|
|
140
|
+
|
|
141
|
+
@include m.m(above) {
|
|
142
|
+
transform: translate(-50%, -100%);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@include m.m(below) {
|
|
146
|
+
transform: translate(-50%, 0);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@include m.e(bar) {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-direction: column;
|
|
152
|
+
gap: 6px;
|
|
153
|
+
padding: 8px 10px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@include m.e(summary) {
|
|
157
|
+
font-size: 12px;
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
line-height: 1.35;
|
|
160
|
+
color: fn.use-var(color, primary);
|
|
161
|
+
white-space: nowrap;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
text-overflow: ellipsis;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@include m.e(toolbar) {
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: center;
|
|
169
|
+
gap: 6px;
|
|
170
|
+
flex-wrap: wrap;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@include m.e(select) {
|
|
174
|
+
flex: none;
|
|
175
|
+
|
|
176
|
+
@include m.em(select, role) {
|
|
177
|
+
width: 84px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
@include m.em(select, aggregate) {
|
|
181
|
+
width: 76px;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@include m.e(expand) {
|
|
186
|
+
flex: none;
|
|
187
|
+
margin-left: auto;
|
|
188
|
+
padding-inline: 6px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@include m.e(body) {
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
gap: 10px;
|
|
195
|
+
padding: 10px 12px 12px;
|
|
196
|
+
border-top: fn.use-var(border-muted);
|
|
197
|
+
background: fn.use-var(bg-color, middle);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@include m.e(section) {
|
|
201
|
+
display: flex;
|
|
202
|
+
flex-direction: column;
|
|
203
|
+
gap: 6px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@include m.e(section-label) {
|
|
207
|
+
font-size: 12px;
|
|
208
|
+
font-weight: 600;
|
|
209
|
+
color: fn.use-var(text-color, second);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
@include m.e(hint) {
|
|
213
|
+
margin: 0;
|
|
214
|
+
font-size: 12px;
|
|
215
|
+
color: fn.use-var(text-color, second);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@include m.e(parent-actions) {
|
|
219
|
+
display: flex;
|
|
220
|
+
align-items: center;
|
|
221
|
+
gap: 6px;
|
|
222
|
+
flex-wrap: wrap;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@include m.e(parent-select) {
|
|
226
|
+
width: 88px;
|
|
227
|
+
flex: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@include m.em(select, expand) {
|
|
231
|
+
width: 76px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@include m.e(footer) {
|
|
235
|
+
display: flex;
|
|
236
|
+
justify-content: flex-end;
|
|
237
|
+
padding-top: 4px;
|
|
238
|
+
margin-top: 2px;
|
|
239
|
+
border-top: fn.use-var(border-muted);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* 条件样式规则对话框内容 */
|
|
244
|
+
@include m.b(report-rules-dialog) {
|
|
245
|
+
display: flex;
|
|
246
|
+
flex-direction: column;
|
|
247
|
+
gap: 12px;
|
|
248
|
+
|
|
249
|
+
@include m.e(hint) {
|
|
250
|
+
margin: 0;
|
|
251
|
+
font-size: 12px;
|
|
252
|
+
color: fn.use-var(text-color, second);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@include m.e(list) {
|
|
256
|
+
margin: 0;
|
|
257
|
+
padding: 0;
|
|
258
|
+
list-style: none;
|
|
259
|
+
display: flex;
|
|
260
|
+
flex-direction: column;
|
|
261
|
+
gap: 8px;
|
|
262
|
+
max-height: 420px;
|
|
263
|
+
overflow: auto;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@include m.e(item) {
|
|
267
|
+
margin: 0;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@include m.e(empty) {
|
|
271
|
+
margin: 0;
|
|
272
|
+
font-size: 12px;
|
|
273
|
+
color: fn.use-var(text-color, second);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@include m.b(report-rule-row) {
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: flex-start;
|
|
280
|
+
gap: 8px;
|
|
281
|
+
padding: 10px;
|
|
282
|
+
border: fn.use-var(border-muted);
|
|
283
|
+
border-radius: 8px;
|
|
284
|
+
background: fn.use-var(bg-color, top);
|
|
285
|
+
|
|
286
|
+
@include m.e(handle) {
|
|
287
|
+
flex: none;
|
|
288
|
+
width: 20px;
|
|
289
|
+
margin-top: 4px;
|
|
290
|
+
color: fn.use-var(text-color, second);
|
|
291
|
+
font-size: 16px;
|
|
292
|
+
line-height: 1;
|
|
293
|
+
cursor: grab;
|
|
294
|
+
user-select: none;
|
|
295
|
+
text-align: center;
|
|
296
|
+
|
|
297
|
+
&:active {
|
|
298
|
+
cursor: grabbing;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@include m.e(main) {
|
|
303
|
+
flex: 1;
|
|
304
|
+
min-width: 0;
|
|
305
|
+
display: flex;
|
|
306
|
+
flex-direction: column;
|
|
307
|
+
gap: 8px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@include m.e(meta) {
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
gap: 8px;
|
|
314
|
+
flex-wrap: wrap;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@include m.e(field-select) {
|
|
318
|
+
width: 120px;
|
|
319
|
+
flex: none;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@include m.e(scope-select) {
|
|
323
|
+
width: 72px;
|
|
324
|
+
flex: none;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
@include m.e(condition) {
|
|
328
|
+
display: grid;
|
|
329
|
+
grid-template-columns: 72px minmax(0, 1fr) auto;
|
|
330
|
+
align-items: center;
|
|
331
|
+
gap: 8px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
@include m.e(operator) {
|
|
335
|
+
width: 72px;
|
|
336
|
+
flex: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
@include m.e(value) {
|
|
340
|
+
display: flex;
|
|
341
|
+
align-items: center;
|
|
342
|
+
gap: 6px;
|
|
343
|
+
flex: 0 1 auto;
|
|
344
|
+
min-width: 0;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
@include m.e(scalar-input) {
|
|
348
|
+
width: 112px;
|
|
349
|
+
flex: none;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
@include m.e(between-input) {
|
|
353
|
+
width: 96px;
|
|
354
|
+
flex: none;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@include m.e(between-sep) {
|
|
358
|
+
font-size: 12px;
|
|
359
|
+
color: fn.use-var(text-color, second);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@include m.e(style) {
|
|
363
|
+
display: flex;
|
|
364
|
+
align-items: center;
|
|
365
|
+
gap: 8px;
|
|
366
|
+
flex-wrap: wrap;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
@include m.e(style-label) {
|
|
370
|
+
font-size: 12px;
|
|
371
|
+
color: fn.use-var(text-color, second);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
@include m.e(toggle) {
|
|
375
|
+
min-width: 28px;
|
|
376
|
+
padding-inline: 6px;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
@include m.e(preview) {
|
|
380
|
+
flex: none;
|
|
381
|
+
margin-top: 2px;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
@include m.e(actions) {
|
|
385
|
+
flex: none;
|
|
386
|
+
display: flex;
|
|
387
|
+
flex-direction: column;
|
|
388
|
+
gap: 2px;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
@include m.b(report-rule-preview) {
|
|
393
|
+
display: inline-flex;
|
|
394
|
+
align-items: center;
|
|
395
|
+
justify-content: center;
|
|
396
|
+
min-width: 36px;
|
|
397
|
+
height: 28px;
|
|
398
|
+
padding: 0 8px;
|
|
399
|
+
border: fn.use-var(border);
|
|
400
|
+
border-radius: 4px;
|
|
401
|
+
font-size: 13px;
|
|
402
|
+
line-height: 1;
|
|
403
|
+
box-sizing: border-box;
|
|
404
|
+
|
|
405
|
+
@include m.m(row) {
|
|
406
|
+
min-width: 48px;
|
|
407
|
+
font-size: 11px;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
@include m.b(report-field-panel) {
|
|
412
|
+
width: 220px;
|
|
413
|
+
flex-shrink: 0;
|
|
414
|
+
overflow: auto;
|
|
415
|
+
padding: fn.use-var(gap, default);
|
|
416
|
+
border: fn.use-var(border);
|
|
417
|
+
border-radius: fn.use-var(radius, default);
|
|
418
|
+
background: fn.use-var(bg-color, top);
|
|
419
|
+
|
|
420
|
+
@include m.e(title) {
|
|
421
|
+
margin: 0 0 4px;
|
|
422
|
+
font-size: fn.use-var(font-size-title, small);
|
|
423
|
+
font-weight: 600;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
@include m.e(meta) {
|
|
427
|
+
display: flex;
|
|
428
|
+
align-items: center;
|
|
429
|
+
gap: fn.use-var(gap, small);
|
|
430
|
+
margin: 0 0 fn.use-var(gap, small);
|
|
431
|
+
font-size: fn.use-var(font-size-main, small);
|
|
432
|
+
color: fn.use-var(text-color, second);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
@include m.e(search) {
|
|
436
|
+
margin-bottom: fn.use-var(gap, small);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
@include m.e(hint) {
|
|
440
|
+
margin: 0 0 fn.use-var(gap, default);
|
|
441
|
+
font-size: fn.use-var(font-size-assist, small);
|
|
442
|
+
line-height: 1.45;
|
|
443
|
+
color: fn.use-var(text-color, second);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@include m.e(empty) {
|
|
447
|
+
margin: fn.use-var(gap, small) 0 0;
|
|
448
|
+
font-size: fn.use-var(font-size-main, small);
|
|
449
|
+
color: fn.use-var(text-color, second);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
@include m.e(dataset) {
|
|
453
|
+
margin-bottom: fn.use-var(gap, default);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
@include m.e(dataset-toggle) {
|
|
457
|
+
display: flex;
|
|
458
|
+
align-items: center;
|
|
459
|
+
gap: fn.use-var(gap, small);
|
|
460
|
+
width: 100%;
|
|
461
|
+
margin: 0 0 fn.use-var(gap, small);
|
|
462
|
+
padding: 0;
|
|
463
|
+
justify-content: flex-start;
|
|
464
|
+
height: auto;
|
|
465
|
+
min-height: 0;
|
|
466
|
+
color: inherit;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
@include m.e(dataset-chevron) {
|
|
470
|
+
display: inline-block;
|
|
471
|
+
font-size: 11px;
|
|
472
|
+
color: fn.use-var(text-color, second);
|
|
473
|
+
transition: transform 0.15s ease;
|
|
474
|
+
transform: rotate(0deg);
|
|
475
|
+
|
|
476
|
+
@include m.is(expanded) {
|
|
477
|
+
transform: rotate(90deg);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
@include m.e(dataset-name) {
|
|
482
|
+
flex: 1;
|
|
483
|
+
min-width: 0;
|
|
484
|
+
font-size: fn.use-var(font-size-main, small);
|
|
485
|
+
font-weight: 500;
|
|
486
|
+
overflow: hidden;
|
|
487
|
+
text-overflow: ellipsis;
|
|
488
|
+
white-space: nowrap;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
@include m.e(dataset-count) {
|
|
492
|
+
flex-shrink: 0;
|
|
493
|
+
min-width: 18px;
|
|
494
|
+
padding: 0 6px;
|
|
495
|
+
border-radius: 999px;
|
|
496
|
+
background: fn.use-var(bg-color, hover);
|
|
497
|
+
font-size: 11px;
|
|
498
|
+
line-height: 18px;
|
|
499
|
+
text-align: center;
|
|
500
|
+
color: fn.use-var(text-color, second);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
@include m.e(fields) {
|
|
504
|
+
display: flex;
|
|
505
|
+
flex-wrap: wrap;
|
|
506
|
+
gap: fn.use-var(gap, small);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
@include m.e(pill) {
|
|
510
|
+
display: inline-flex;
|
|
511
|
+
align-items: center;
|
|
512
|
+
gap: 4px;
|
|
513
|
+
flex: 0 0 calc(50% - 3px);
|
|
514
|
+
min-width: 0;
|
|
515
|
+
max-width: calc(50% - 3px);
|
|
516
|
+
height: 24px;
|
|
517
|
+
padding: 0 8px 0 4px;
|
|
518
|
+
border: fn.use-var(border-muted);
|
|
519
|
+
border-radius: 999px;
|
|
520
|
+
background: fn.use-var(bg-color, top);
|
|
521
|
+
cursor: grab;
|
|
522
|
+
transition:
|
|
523
|
+
background 0.15s,
|
|
524
|
+
border-color 0.15s;
|
|
525
|
+
outline: none;
|
|
526
|
+
|
|
527
|
+
&:hover {
|
|
528
|
+
background: fn.use-var(bg-color, hover);
|
|
529
|
+
border-color: fn.use-var(color, primary);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
&:active {
|
|
533
|
+
cursor: grabbing;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
@include m.is(bound) {
|
|
537
|
+
border-color: fn.use-var(color, success);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
@include m.e(pill-icon) {
|
|
542
|
+
flex-shrink: 0;
|
|
543
|
+
display: inline-flex;
|
|
544
|
+
align-items: center;
|
|
545
|
+
justify-content: center;
|
|
546
|
+
width: 16px;
|
|
547
|
+
height: 16px;
|
|
548
|
+
border-radius: 999px;
|
|
549
|
+
font-size: 10px;
|
|
550
|
+
font-weight: 700;
|
|
551
|
+
line-height: 1;
|
|
552
|
+
color: fn.use-var(color, info);
|
|
553
|
+
background: fn.use-var(color, info, light-9);
|
|
554
|
+
|
|
555
|
+
&[data-type='number'] {
|
|
556
|
+
color: fn.use-var(color, success);
|
|
557
|
+
background: fn.use-var(color, success, light-9);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
&[data-type='date'] {
|
|
561
|
+
color: fn.use-var(color, warning);
|
|
562
|
+
background: fn.use-var(color, warning, light-9);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
@include m.e(pill-label) {
|
|
567
|
+
flex: 1;
|
|
568
|
+
min-width: 0;
|
|
569
|
+
font-size: 11px;
|
|
570
|
+
font-weight: 500;
|
|
571
|
+
overflow: hidden;
|
|
572
|
+
text-overflow: ellipsis;
|
|
573
|
+
white-space: nowrap;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
@include m.e(pill-bound) {
|
|
577
|
+
flex-shrink: 0;
|
|
578
|
+
color: fn.use-var(color, success);
|
|
579
|
+
font-size: 11px;
|
|
580
|
+
font-weight: 700;
|
|
581
|
+
line-height: 1;
|
|
582
|
+
}
|
|
583
|
+
}
|