@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,292 @@
|
|
|
1
|
+
@use 'pkg:@veltra/styles/mixins' as m;
|
|
2
|
+
@use 'pkg:@veltra/styles/functions' as fn;
|
|
3
|
+
|
|
4
|
+
@include m.b(report-hub) {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: fn.use-var(gap, default);
|
|
8
|
+
height: 100%;
|
|
9
|
+
min-height: 0;
|
|
10
|
+
padding: fn.use-var(gap, default);
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
|
|
13
|
+
@include m.e(head) {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
gap: fn.use-var(gap, default);
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@include m.e(title) {
|
|
22
|
+
margin: 0;
|
|
23
|
+
font-size: fn.use-var(font-size-title, default);
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include m.e(body) {
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: fn.use-var(gap, large);
|
|
30
|
+
flex: 1;
|
|
31
|
+
min-height: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include m.e(sidebar) {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: fn.use-var(gap, default);
|
|
38
|
+
width: 240px;
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
min-height: 0;
|
|
41
|
+
padding-right: fn.use-var(gap, default);
|
|
42
|
+
border-right: fn.use-var(border);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include m.e(sidebar-head) {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
gap: fn.use-var(gap, small);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@include m.e(sidebar-title) {
|
|
53
|
+
font-size: fn.use-var(font-size-main, small);
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
color: fn.use-var(text-color, second);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@include m.e(tree) {
|
|
59
|
+
flex: 1;
|
|
60
|
+
min-height: 0;
|
|
61
|
+
overflow: auto;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: fn.use-var(gap, default);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@include m.e(conn) {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
gap: fn.use-var(gap, small);
|
|
72
|
+
padding: fn.use-var(gap, small) fn.use-var(gap, default);
|
|
73
|
+
border-radius: fn.use-var(radius, small);
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
|
|
76
|
+
&:hover {
|
|
77
|
+
background: fn.use-var(bg-color, hover);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@include m.is(active) {
|
|
81
|
+
background: fn.use-var(color, primary, light-9);
|
|
82
|
+
color: fn.use-var(color, primary);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@include m.e(conn-label) {
|
|
87
|
+
font-size: fn.use-var(font-size-main, small);
|
|
88
|
+
font-weight: 600;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@include m.e(dataset-list) {
|
|
92
|
+
margin: 4px 0 0;
|
|
93
|
+
padding: 0 0 0 fn.use-var(gap, large);
|
|
94
|
+
list-style: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@include m.e(dataset-item) {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
gap: 2px;
|
|
101
|
+
padding: fn.use-var(gap, small) fn.use-var(gap, default);
|
|
102
|
+
margin-bottom: 2px;
|
|
103
|
+
border-radius: fn.use-var(radius, small);
|
|
104
|
+
font-size: fn.use-var(font-size-main, small);
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
background: fn.use-var(bg-color, hover);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@include m.is(active) {
|
|
112
|
+
background: fn.use-var(color, primary, light-9);
|
|
113
|
+
color: fn.use-var(color, primary);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@include m.e(dataset-id) {
|
|
118
|
+
font-size: 11px;
|
|
119
|
+
font-family: ui-monospace, monospace;
|
|
120
|
+
color: fn.use-var(text-color, second);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@include m.e(add-dataset) {
|
|
124
|
+
margin-left: fn.use-var(gap, small);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@include m.e(sidebar-empty) {
|
|
128
|
+
margin: fn.use-var(gap, small) 0 0;
|
|
129
|
+
font-size: fn.use-var(font-size-main, small);
|
|
130
|
+
line-height: 1.5;
|
|
131
|
+
color: fn.use-var(text-color, second);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@include m.e(main) {
|
|
135
|
+
flex: 1;
|
|
136
|
+
min-width: 0;
|
|
137
|
+
min-height: 0;
|
|
138
|
+
overflow: auto;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@include m.e(empty) {
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
height: 100%;
|
|
146
|
+
font-size: fn.use-var(font-size-main, small);
|
|
147
|
+
color: fn.use-var(text-color, second);
|
|
148
|
+
text-align: center;
|
|
149
|
+
padding: fn.use-var(gap, large);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@include m.b(report-hub-connection-form) {
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
gap: fn.use-var(gap, default);
|
|
157
|
+
height: 100%;
|
|
158
|
+
|
|
159
|
+
@include m.e(title) {
|
|
160
|
+
margin: 0;
|
|
161
|
+
font-size: fn.use-var(font-size-title, small);
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@include m.e(grid) {
|
|
166
|
+
display: grid;
|
|
167
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
168
|
+
gap: fn.use-var(gap, default) fn.use-var(gap, large);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@include m.e(field) {
|
|
172
|
+
display: flex;
|
|
173
|
+
flex-direction: column;
|
|
174
|
+
gap: 4px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@include m.e(label) {
|
|
178
|
+
font-size: fn.use-var(font-size-main, small);
|
|
179
|
+
color: fn.use-var(text-color, second);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@include m.e(test) {
|
|
183
|
+
padding: fn.use-var(gap, small) fn.use-var(gap, default);
|
|
184
|
+
border-radius: fn.use-var(radius, small);
|
|
185
|
+
font-size: fn.use-var(font-size-main, small);
|
|
186
|
+
background: fn.use-var(color, danger, light-9);
|
|
187
|
+
color: fn.use-var(color, danger);
|
|
188
|
+
|
|
189
|
+
@include m.is(ok) {
|
|
190
|
+
background: fn.use-var(color, success, light-9);
|
|
191
|
+
color: fn.use-var(color, success);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
@include m.e(actions) {
|
|
196
|
+
display: flex;
|
|
197
|
+
flex-wrap: wrap;
|
|
198
|
+
gap: fn.use-var(gap, small);
|
|
199
|
+
margin-top: auto;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@include m.b(report-hub-dataset-editor) {
|
|
204
|
+
display: flex;
|
|
205
|
+
flex-direction: column;
|
|
206
|
+
gap: fn.use-var(gap, default);
|
|
207
|
+
height: 100%;
|
|
208
|
+
min-height: 0;
|
|
209
|
+
|
|
210
|
+
@include m.e(head) {
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: center;
|
|
213
|
+
justify-content: space-between;
|
|
214
|
+
gap: fn.use-var(gap, default);
|
|
215
|
+
flex-shrink: 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@include m.e(rename) {
|
|
219
|
+
display: flex;
|
|
220
|
+
align-items: center;
|
|
221
|
+
gap: fn.use-var(gap, small);
|
|
222
|
+
flex: 1;
|
|
223
|
+
min-width: 0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@include m.e(label) {
|
|
227
|
+
margin: 0;
|
|
228
|
+
font-size: fn.use-var(font-size-main, small);
|
|
229
|
+
color: fn.use-var(text-color, second);
|
|
230
|
+
flex-shrink: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@include m.e(section-title) {
|
|
234
|
+
margin: 0 0 fn.use-var(gap, small);
|
|
235
|
+
font-size: fn.use-var(font-size-main, small);
|
|
236
|
+
font-weight: 600;
|
|
237
|
+
color: fn.use-var(text-color, second);
|
|
238
|
+
flex-shrink: 0;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@include m.e(sql) {
|
|
242
|
+
flex-shrink: 0;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@include m.e(sql-error) {
|
|
246
|
+
margin: fn.use-var(gap, small) 0 0;
|
|
247
|
+
font-size: fn.use-var(font-size-main, small);
|
|
248
|
+
color: fn.use-var(color, danger);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@include m.e(preview-error) {
|
|
252
|
+
margin: fn.use-var(gap, small) 0 0;
|
|
253
|
+
font-size: fn.use-var(font-size-main, small);
|
|
254
|
+
color: fn.use-var(color, danger);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@include m.e(params) {
|
|
258
|
+
flex-shrink: 0;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@include m.e(param-table) {
|
|
262
|
+
max-height: 180px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@include m.e(tabs) {
|
|
266
|
+
flex: 1;
|
|
267
|
+
min-height: 0;
|
|
268
|
+
display: flex;
|
|
269
|
+
flex-direction: column;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
@include m.e(schema-table) {
|
|
273
|
+
min-height: 220px;
|
|
274
|
+
height: 280px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@include m.e(preview-table) {
|
|
278
|
+
min-height: 220px;
|
|
279
|
+
height: 280px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@include m.e(preview-actions) {
|
|
283
|
+
display: flex;
|
|
284
|
+
justify-content: flex-end;
|
|
285
|
+
margin-bottom: fn.use-var(gap, small);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
@include m.e(muted) {
|
|
289
|
+
font-size: fn.use-var(font-size-main, small);
|
|
290
|
+
color: fn.use-var(text-color, second);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
@use 'pkg:@veltra/styles/mixins' as m;
|
|
2
|
+
@use 'pkg:@veltra/styles/functions' as fn;
|
|
3
|
+
|
|
4
|
+
@include m.b(report-viewer) {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: fn.use-var(gap, small);
|
|
8
|
+
min-height: 0;
|
|
9
|
+
|
|
10
|
+
@include m.e(body) {
|
|
11
|
+
position: relative;
|
|
12
|
+
flex: 1;
|
|
13
|
+
min-width: 0;
|
|
14
|
+
min-height: 0;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: fn.use-var(gap, small);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* USheet 根为 flex 列,grid 区 flex:1;宿主必须给 .u-sheet 明确高度 */
|
|
21
|
+
@include m.e(sheet) {
|
|
22
|
+
flex: 1;
|
|
23
|
+
min-height: 0;
|
|
24
|
+
min-width: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include m.e(loading) {
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset: 0;
|
|
30
|
+
z-index: 20;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
gap: fn.use-var(gap, small);
|
|
36
|
+
background: color-mix(in srgb, fn.use-var(bg-color, top) 72%, transparent);
|
|
37
|
+
font-size: fn.use-var(font-size-main, small);
|
|
38
|
+
color: fn.use-var(text-color, second);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include m.e(loading-spinner) {
|
|
42
|
+
width: 28px;
|
|
43
|
+
height: 28px;
|
|
44
|
+
border: 3px solid fn.use-var(border, muted-color);
|
|
45
|
+
border-top-color: fn.use-var(color, primary);
|
|
46
|
+
border-radius: 50%;
|
|
47
|
+
animation: u-report-viewer-spin 0.8s linear infinite;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include m.e(error) {
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
padding: fn.use-var(gap, small);
|
|
53
|
+
border: 1px solid fn.use-var(color, danger);
|
|
54
|
+
border-radius: fn.use-var(radius, default);
|
|
55
|
+
background-color: fn.use-var(color, danger, light-9);
|
|
56
|
+
color: fn.use-var(color, danger);
|
|
57
|
+
font-size: fn.use-var(font-size-main, small);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@keyframes u-report-viewer-spin {
|
|
62
|
+
to {
|
|
63
|
+
transform: rotate(360deg);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@include m.b(report-filter-bar) {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-wrap: wrap;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: fn.use-var(gap, small);
|
|
72
|
+
padding: fn.use-var(gap, small);
|
|
73
|
+
border: fn.use-var(border);
|
|
74
|
+
border-radius: fn.use-var(radius, default);
|
|
75
|
+
background: fn.use-var(bg-color, top);
|
|
76
|
+
|
|
77
|
+
@include m.e(label) {
|
|
78
|
+
flex-shrink: 0;
|
|
79
|
+
font-size: fn.use-var(font-size-main, small);
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
color: fn.use-var(text-color, second);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@include m.e(fields) {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-wrap: wrap;
|
|
87
|
+
gap: fn.use-var(gap, small);
|
|
88
|
+
flex: 1;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@include m.e(field) {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: fn.use-var(gap, small);
|
|
96
|
+
min-width: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@include m.e(field-label) {
|
|
100
|
+
flex-shrink: 0;
|
|
101
|
+
font-size: fn.use-var(font-size-main, small);
|
|
102
|
+
color: fn.use-var(text-color, second);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// UReportViewer / UReportDesigner 内嵌 USheet 与实际渲染的 desktop 组件样式(同 #15 先例:
|
|
2
|
+
// 缺项会导致仅依赖本入口的宿主拿到无样式组件)
|
|
3
|
+
import '@veltra/desktop/components/input/style'
|
|
4
|
+
import '@veltra/desktop/components/number-input/style'
|
|
5
|
+
import '@veltra/desktop/components/select/style'
|
|
6
|
+
import '@veltra/desktop/components/date-picker/style'
|
|
7
|
+
import '@veltra/desktop/components/date-range-picker/style'
|
|
8
|
+
import '@veltra/desktop/components/button/style'
|
|
9
|
+
import '@veltra/desktop/components/drawer/style'
|
|
10
|
+
import '@veltra/desktop/components/dialog/style'
|
|
11
|
+
import '@veltra/desktop/components/radio-group/style'
|
|
12
|
+
import '@veltra/desktop/components/switch/style'
|
|
13
|
+
import '@veltra/desktop/components/palette/style'
|
|
14
|
+
import '@veltra/desktop/components/table/style'
|
|
15
|
+
import '@veltra/desktop/components/tabs/style'
|
|
16
|
+
import '@veltra/desktop/components/tag/style'
|
|
17
|
+
import '@veltra/desktop/components/pop-confirm/style'
|
|
18
|
+
import '@veltra/desktop/components/code-editor/style'
|
|
19
|
+
import '../sheet/style'
|
|
20
|
+
import './style.scss'
|