evui 3.3.36 → 3.3.39
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/LICENSE +21 -21
- package/README.md +40 -40
- package/dist/evui.common.js +1907 -1832
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +1907 -1832
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/dist/img/{EVUI.7f3588fb.svg → EVUI.b82ee81a.svg} +292 -292
- package/dist/img/{icon_mysql.7ea26d5d.svg → icon_mysql.1085fdc9.svg} +78 -78
- package/dist/img/{icon_oracle.9009b108.svg → icon_oracle.0572d3ee.svg} +13 -13
- package/dist/img/{icon_postgresql.f8fffba9.svg → icon_postgresql.ee12bde8.svg} +58 -58
- package/package.json +61 -61
- package/src/common/emitter.js +20 -20
- package/src/common/utils.debounce.js +223 -223
- package/src/common/utils.js +134 -134
- package/src/common/utils.table.js +78 -78
- package/src/common/utils.throttle.js +83 -83
- package/src/common/utils.tree.js +18 -18
- package/src/components/button/Button.vue +198 -198
- package/src/components/button/index.js +7 -7
- package/src/components/buttonGroup/ButtonGroup.vue +11 -11
- package/src/components/buttonGroup/index.js +7 -7
- package/src/components/calendar/Calendar.vue +661 -661
- package/src/components/calendar/index.js +7 -7
- package/src/components/calendar/uses.js +1272 -1272
- package/src/components/chart/Chart.vue +189 -192
- package/src/components/chart/chart.core.js +870 -870
- package/src/components/chart/element/element.bar.js +524 -524
- package/src/components/chart/element/element.bar.time.js +156 -156
- package/src/components/chart/element/element.heatmap.js +533 -533
- package/src/components/chart/element/element.line.js +339 -339
- package/src/components/chart/element/element.pie.js +197 -197
- package/src/components/chart/element/element.scatter.js +184 -184
- package/src/components/chart/element/element.tip.js +550 -542
- package/src/components/chart/helpers/helpers.canvas.js +265 -265
- package/src/components/chart/helpers/helpers.constant.js +206 -206
- package/src/components/chart/helpers/helpers.util.js +346 -338
- package/src/components/chart/index.js +9 -9
- package/src/components/chart/model/index.js +4 -4
- package/src/components/chart/model/model.series.js +93 -93
- package/src/components/chart/model/model.store.js +977 -967
- package/src/components/chart/plugins/plugins.interaction.js +769 -769
- package/src/components/chart/plugins/plugins.legend.gradient.js +602 -602
- package/src/components/chart/plugins/plugins.legend.js +1155 -1151
- package/src/components/chart/plugins/plugins.pie.js +254 -254
- package/src/components/chart/plugins/plugins.title.js +56 -56
- package/src/components/chart/plugins/plugins.tooltip.js +692 -692
- package/src/components/chart/scale/scale.js +848 -848
- package/src/components/chart/scale/scale.linear.js +38 -38
- package/src/components/chart/scale/scale.logarithmic.js +128 -128
- package/src/components/chart/scale/scale.step.js +336 -336
- package/src/components/chart/scale/scale.time.category.js +277 -277
- package/src/components/chart/scale/scale.time.js +48 -48
- package/src/components/chart/style/chart.scss +312 -312
- package/src/components/chart/uses.js +264 -252
- package/src/components/checkbox/Checkbox.vue +200 -200
- package/src/components/checkbox/index.js +7 -7
- package/src/components/checkboxGroup/CheckboxGroup.vue +44 -44
- package/src/components/checkboxGroup/index.js +7 -7
- package/src/components/contextMenu/ContextMenu.vue +80 -80
- package/src/components/contextMenu/MenuList.vue +149 -149
- package/src/components/contextMenu/index.js +7 -7
- package/src/components/contextMenu/uses.js +203 -203
- package/src/components/datePicker/DatePicker.vue +437 -437
- package/src/components/datePicker/index.js +7 -7
- package/src/components/datePicker/uses.js +419 -419
- package/src/components/grid/Grid.vue +827 -827
- package/src/components/grid/grid.filter.window.vue +493 -493
- package/src/components/grid/grid.pagination.vue +75 -75
- package/src/components/grid/grid.summary.vue +265 -265
- package/src/components/grid/grid.toolbar.vue +26 -26
- package/src/components/grid/index.js +11 -11
- package/src/components/grid/style/grid.scss +263 -263
- package/src/components/grid/uses.js +1002 -1007
- package/src/components/icon/Icon.vue +49 -49
- package/src/components/icon/index.js +8 -8
- package/src/components/inputNumber/InputNumber.vue +212 -212
- package/src/components/inputNumber/index.js +7 -7
- package/src/components/inputNumber/uses.js +217 -217
- package/src/components/loading/Loading.vue +125 -125
- package/src/components/loading/index.js +7 -7
- package/src/components/menu/Menu.vue +68 -68
- package/src/components/menu/MenuItem.vue +187 -187
- package/src/components/menu/index.js +7 -7
- package/src/components/message/Message.vue +223 -223
- package/src/components/message/index.js +31 -31
- package/src/components/messageBox/MessageBox.vue +358 -358
- package/src/components/messageBox/index.js +22 -22
- package/src/components/notification/Notification.vue +316 -316
- package/src/components/notification/index.js +49 -49
- package/src/components/pagination/Pagination.vue +271 -271
- package/src/components/pagination/index.js +7 -7
- package/src/components/pagination/pageButton.vue +30 -30
- package/src/components/progress/Progress.vue +139 -139
- package/src/components/progress/index.js +7 -7
- package/src/components/radio/Radio.vue +159 -159
- package/src/components/radio/index.js +7 -7
- package/src/components/radioGroup/RadioGroup.vue +41 -41
- package/src/components/radioGroup/index.js +7 -7
- package/src/components/scheduler/Scheduler.vue +149 -149
- package/src/components/scheduler/index.js +7 -7
- package/src/components/scheduler/uses.js +183 -183
- package/src/components/select/Select.vue +440 -440
- package/src/components/select/index.js +7 -7
- package/src/components/select/uses.js +270 -270
- package/src/components/slider/Slider.vue +505 -505
- package/src/components/slider/index.js +7 -7
- package/src/components/slider/uses.js +390 -390
- package/src/components/tabPanel/TabPanel.vue +74 -74
- package/src/components/tabPanel/index.js +7 -7
- package/src/components/tabs/Tabs.vue +517 -517
- package/src/components/tabs/index.js +7 -7
- package/src/components/textField/TextField.vue +375 -375
- package/src/components/textField/index.js +7 -7
- package/src/components/timePicker/TimePicker.vue +352 -352
- package/src/components/timePicker/index.js +7 -7
- package/src/components/toggle/Toggle.vue +115 -115
- package/src/components/toggle/index.js +7 -7
- package/src/components/tree/Tree.vue +313 -313
- package/src/components/tree/TreeNode.vue +293 -293
- package/src/components/tree/index.js +7 -7
- package/src/components/treeGrid/TreeGrid.vue +758 -758
- package/src/components/treeGrid/TreeGridNode.vue +275 -275
- package/src/components/treeGrid/index.js +9 -9
- package/src/components/treeGrid/style/treeGrid.scss +261 -261
- package/src/components/treeGrid/treeGrid.toolbar.vue +26 -26
- package/src/components/treeGrid/uses.js +867 -867
- package/src/components/window/Window.vue +329 -329
- package/src/components/window/index.js +7 -7
- package/src/components/window/uses.js +899 -899
- package/src/directives/clickoutside.js +90 -90
- package/src/main.js +116 -116
- package/src/style/components/input.scss +108 -108
- package/src/style/functions.scss +3 -3
- package/src/style/index.scss +6 -6
- package/src/style/lib/fonts/EVUI.svg +292 -292
- package/src/style/lib/icon.css +888 -888
- package/src/style/mixins.scss +94 -94
- package/src/style/themes.scss +67 -67
- package/src/style/variables.scss +22 -22
|
@@ -1,493 +1,493 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<ev-window
|
|
4
|
-
v-model:visible="showWindow"
|
|
5
|
-
:title="`Setting Filter(${targetColumn.caption})`"
|
|
6
|
-
>
|
|
7
|
-
<!--Contents-->
|
|
8
|
-
<div class="grid-filter">
|
|
9
|
-
<div class="grid-filter-header">
|
|
10
|
-
<!--Add Button-->
|
|
11
|
-
<ev-button
|
|
12
|
-
size="small"
|
|
13
|
-
@click="onAdd"
|
|
14
|
-
>
|
|
15
|
-
Add
|
|
16
|
-
</ev-button>
|
|
17
|
-
<ev-button
|
|
18
|
-
size="small"
|
|
19
|
-
:disabled="!checked.length"
|
|
20
|
-
@click="onDelete"
|
|
21
|
-
>
|
|
22
|
-
Delete
|
|
23
|
-
</ev-button>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="grid-filter-body">
|
|
26
|
-
<!--Add Form-->
|
|
27
|
-
<div
|
|
28
|
-
v-if="showAddForm"
|
|
29
|
-
class="grid-filter-add-wrap"
|
|
30
|
-
>
|
|
31
|
-
<div class="grid-filter-add-item">
|
|
32
|
-
<div class="form-row-contents">
|
|
33
|
-
<div class="form-row">
|
|
34
|
-
<span class="form-row-title wide">Type</span>
|
|
35
|
-
<div class="form-row-contents">
|
|
36
|
-
<ev-select
|
|
37
|
-
v-model="addInfo.type"
|
|
38
|
-
:items="types"
|
|
39
|
-
class="item-input"
|
|
40
|
-
/>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
<div class="form-row">
|
|
44
|
-
<span class="form-row-title wide">Comparison</span>
|
|
45
|
-
<div class="form-row-contents">
|
|
46
|
-
<ev-select
|
|
47
|
-
v-model="addInfo.comparison"
|
|
48
|
-
:items="getList(targetColumn.type)"
|
|
49
|
-
class="item-input"
|
|
50
|
-
/>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<div class="form-row">
|
|
54
|
-
<span class="form-row-title wide">Value</span>
|
|
55
|
-
<div class="form-row-contents">
|
|
56
|
-
<ev-text-field
|
|
57
|
-
v-model.trim="addInfo.value"
|
|
58
|
-
type="text"
|
|
59
|
-
placeholder="Please enter the content"
|
|
60
|
-
class="item-input"
|
|
61
|
-
/>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</div>
|
|
66
|
-
<div class="split-line"/>
|
|
67
|
-
<div class="confirm-wrap">
|
|
68
|
-
<!--Save Button-->
|
|
69
|
-
<ev-button
|
|
70
|
-
size="small"
|
|
71
|
-
@click="onSave"
|
|
72
|
-
>
|
|
73
|
-
Save
|
|
74
|
-
</ev-button>
|
|
75
|
-
<ev-button
|
|
76
|
-
size="small"
|
|
77
|
-
@click="onCancel"
|
|
78
|
-
>
|
|
79
|
-
Cancel
|
|
80
|
-
</ev-button>
|
|
81
|
-
</div>
|
|
82
|
-
</div>
|
|
83
|
-
<!--Grid-->
|
|
84
|
-
<ev-grid
|
|
85
|
-
v-model:checked="checked"
|
|
86
|
-
:rows="tableData"
|
|
87
|
-
:columns="columns"
|
|
88
|
-
:width="`100%`"
|
|
89
|
-
:height="gridHeight"
|
|
90
|
-
:option="{
|
|
91
|
-
adjust: true,
|
|
92
|
-
useFilter: false,
|
|
93
|
-
useCheckbox: {
|
|
94
|
-
use: true,
|
|
95
|
-
mode: 'multi',
|
|
96
|
-
headerCheck: true,
|
|
97
|
-
}
|
|
98
|
-
}"
|
|
99
|
-
/>
|
|
100
|
-
<!--Apply Button-->
|
|
101
|
-
<ev-button
|
|
102
|
-
class="applyBtn"
|
|
103
|
-
type="primary"
|
|
104
|
-
@click="onApply"
|
|
105
|
-
>
|
|
106
|
-
Apply
|
|
107
|
-
</ev-button>
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
|
-
</ev-window>
|
|
111
|
-
</div>
|
|
112
|
-
</template>
|
|
113
|
-
|
|
114
|
-
<script>
|
|
115
|
-
import { ref, reactive, toRefs, watch, computed } from 'vue';
|
|
116
|
-
|
|
117
|
-
export default {
|
|
118
|
-
name: 'EvGridFilterWindow',
|
|
119
|
-
props: {
|
|
120
|
-
/**
|
|
121
|
-
* 필터 팝업 표시 유무
|
|
122
|
-
*/
|
|
123
|
-
isShow: {
|
|
124
|
-
type: Boolean,
|
|
125
|
-
default: false,
|
|
126
|
-
},
|
|
127
|
-
/**
|
|
128
|
-
* 필터 대상 컬럼 정보
|
|
129
|
-
*/
|
|
130
|
-
targetColumn: {
|
|
131
|
-
type: Object,
|
|
132
|
-
default: () => ({}),
|
|
133
|
-
},
|
|
134
|
-
/**
|
|
135
|
-
* 설정된 필터 목록
|
|
136
|
-
*/
|
|
137
|
-
filterItems: {
|
|
138
|
-
type: Array,
|
|
139
|
-
default: () => [],
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
emits: {
|
|
143
|
-
'apply-filter': null,
|
|
144
|
-
'before-close': null,
|
|
145
|
-
},
|
|
146
|
-
setup(props, { emit }) {
|
|
147
|
-
const showAddForm = ref(false);
|
|
148
|
-
const gridHeight = ref(320);
|
|
149
|
-
const gridInfo = reactive({
|
|
150
|
-
tableData: [],
|
|
151
|
-
checked: [],
|
|
152
|
-
columns: [
|
|
153
|
-
{ caption: 'Type', field: 'type', type: 'string', width: 60 },
|
|
154
|
-
{ caption: 'Comparison', field: 'comparison', type: 'string', width: 120 },
|
|
155
|
-
{ caption: 'Value', field: 'value', type: 'string' },
|
|
156
|
-
],
|
|
157
|
-
addInfo: {
|
|
158
|
-
type: 'AND',
|
|
159
|
-
comparison: props.targetColumn.type === 'string' ? 'Equal' : '>',
|
|
160
|
-
value: '',
|
|
161
|
-
},
|
|
162
|
-
types: [
|
|
163
|
-
{ name: 'OR', value: 'OR' },
|
|
164
|
-
{ name: 'AND', value: 'AND' },
|
|
165
|
-
],
|
|
166
|
-
defaultComparison: {
|
|
167
|
-
string: [
|
|
168
|
-
{ name: 'Equal', value: 'Equal' },
|
|
169
|
-
{ name: 'Not Equal', value: 'Not Equal' },
|
|
170
|
-
{ name: 'Like', value: 'Like' },
|
|
171
|
-
{ name: 'Not Like', value: 'Not Like' },
|
|
172
|
-
],
|
|
173
|
-
number: [
|
|
174
|
-
{ name: '>', value: '>' },
|
|
175
|
-
{ name: '<', value: '<' },
|
|
176
|
-
{ name: '=', value: '=' },
|
|
177
|
-
],
|
|
178
|
-
float: [
|
|
179
|
-
{ name: '>', value: '>' },
|
|
180
|
-
{ name: '<', value: '<' },
|
|
181
|
-
{ name: '=', value: '=' },
|
|
182
|
-
],
|
|
183
|
-
},
|
|
184
|
-
});
|
|
185
|
-
const showWindow = computed({
|
|
186
|
-
get: () => props.isShow,
|
|
187
|
-
set: (val) => {
|
|
188
|
-
if (!val) {
|
|
189
|
-
gridInfo.checked.length = 0;
|
|
190
|
-
gridInfo.tableData.length = 0;
|
|
191
|
-
gridHeight.value = 320;
|
|
192
|
-
showAddForm.value = false;
|
|
193
|
-
/**
|
|
194
|
-
* 필터 팝업 종료 전 이벤트
|
|
195
|
-
*/
|
|
196
|
-
emit('before-close');
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
});
|
|
200
|
-
/**
|
|
201
|
-
* 데이터 유형에 맞는 필터 목록을 반환한다.
|
|
202
|
-
*
|
|
203
|
-
* @param {string} type - 데이터 유형
|
|
204
|
-
* @returns {array} 필터 목록
|
|
205
|
-
*/
|
|
206
|
-
const getList = (type) => {
|
|
207
|
-
let result = gridInfo.defaultComparison[type];
|
|
208
|
-
|
|
209
|
-
if (!result) {
|
|
210
|
-
result = gridInfo.defaultComparison.string;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
return result;
|
|
214
|
-
};
|
|
215
|
-
/**
|
|
216
|
-
* 선택한 필터를 테이블에 적용하도록 요청한다.
|
|
217
|
-
*/
|
|
218
|
-
const onApply = () => {
|
|
219
|
-
const filterItems = [];
|
|
220
|
-
const rowList = gridInfo.tableData;
|
|
221
|
-
const columnList = gridInfo.columns;
|
|
222
|
-
const checkedItems = gridInfo.checked;
|
|
223
|
-
|
|
224
|
-
for (let ix = 0; ix < rowList.length; ix++) {
|
|
225
|
-
const row = rowList[ix];
|
|
226
|
-
const item = columnList.reduce((acc, column, index) => {
|
|
227
|
-
acc[column.field] = row[index];
|
|
228
|
-
return acc;
|
|
229
|
-
}, {});
|
|
230
|
-
|
|
231
|
-
item.use = !!checkedItems.find(checkItem => checkItem === row);
|
|
232
|
-
|
|
233
|
-
filterItems.push(item);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* 필터 적용 요청 이벤트
|
|
238
|
-
*
|
|
239
|
-
* @property {string} field - 컬럼 field
|
|
240
|
-
* @property {array} filterItems - 필터 목록
|
|
241
|
-
*/
|
|
242
|
-
if (props.targetColumn.field) {
|
|
243
|
-
emit('apply-filter', props.targetColumn.field, filterItems);
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* 필터 팝업 종료 전 이벤트
|
|
247
|
-
*/
|
|
248
|
-
emit('before-close');
|
|
249
|
-
};
|
|
250
|
-
/**
|
|
251
|
-
* 작성한 필터 정보를 저장한다.
|
|
252
|
-
*/
|
|
253
|
-
const onSave = () => {
|
|
254
|
-
const item = gridInfo.addInfo;
|
|
255
|
-
const tempData = JSON.parse(JSON.stringify(gridInfo.tableData));
|
|
256
|
-
tempData.push(gridInfo.columns.reduce((acc, column) => {
|
|
257
|
-
acc.push(item[column.field]);
|
|
258
|
-
return acc;
|
|
259
|
-
}, []));
|
|
260
|
-
gridInfo.tableData = tempData;
|
|
261
|
-
gridHeight.value = 320;
|
|
262
|
-
showAddForm.value = false;
|
|
263
|
-
};
|
|
264
|
-
/**
|
|
265
|
-
* 새로운 필터 추가 양식을 표시한다.
|
|
266
|
-
*/
|
|
267
|
-
const onAdd = () => {
|
|
268
|
-
gridInfo.addInfo = {
|
|
269
|
-
type: 'AND',
|
|
270
|
-
comparison: props.targetColumn.type === 'string' ? 'Equal' : '>',
|
|
271
|
-
value: '',
|
|
272
|
-
};
|
|
273
|
-
gridHeight.value = 153;
|
|
274
|
-
showAddForm.value = true;
|
|
275
|
-
};
|
|
276
|
-
/**
|
|
277
|
-
* 선택한 필터를 필터 목록에서 삭제한다.
|
|
278
|
-
*/
|
|
279
|
-
const onDelete = () => {
|
|
280
|
-
if (!gridInfo.checked.length) {
|
|
281
|
-
return;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
const checkList = gridInfo.checked;
|
|
285
|
-
const rowList = gridInfo.tableData;
|
|
286
|
-
const tempData = [];
|
|
287
|
-
for (let ix = 0; ix < rowList.length; ix++) {
|
|
288
|
-
const row = rowList[ix];
|
|
289
|
-
if (checkList.indexOf(row) === -1) {
|
|
290
|
-
tempData.push(row);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
gridInfo.checked.length = 0;
|
|
295
|
-
gridInfo.tableData = tempData;
|
|
296
|
-
};
|
|
297
|
-
/**
|
|
298
|
-
* 필터 추가 작성을 취소한다.
|
|
299
|
-
*/
|
|
300
|
-
const onCancel = () => {
|
|
301
|
-
gridHeight.value = 320;
|
|
302
|
-
showAddForm.value = false;
|
|
303
|
-
};
|
|
304
|
-
/**
|
|
305
|
-
* 필터 팝업을 종료한다.
|
|
306
|
-
*/
|
|
307
|
-
const onCloseWindow = (state) => {
|
|
308
|
-
if (!state) {
|
|
309
|
-
gridInfo.checked.length = 0;
|
|
310
|
-
gridInfo.tableData.length = 0;
|
|
311
|
-
gridHeight.value = 320;
|
|
312
|
-
showAddForm.value = false;
|
|
313
|
-
/**
|
|
314
|
-
* 필터 팝업 종료 전 이벤트
|
|
315
|
-
*/
|
|
316
|
-
emit('before-close');
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
watch(
|
|
320
|
-
() => props.filterItems,
|
|
321
|
-
(items) => {
|
|
322
|
-
const columns = gridInfo.columns;
|
|
323
|
-
const rowList = [];
|
|
324
|
-
const checkList = [];
|
|
325
|
-
|
|
326
|
-
for (let ix = 0; ix < items.length; ix++) {
|
|
327
|
-
const item = items[ix];
|
|
328
|
-
const value = columns.reduce((acc, column) => {
|
|
329
|
-
acc.push(item[column.field]);
|
|
330
|
-
return acc;
|
|
331
|
-
}, []);
|
|
332
|
-
|
|
333
|
-
if (item.use) {
|
|
334
|
-
checkList.push(value);
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
rowList.push(value);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
gridInfo.checked = checkList;
|
|
341
|
-
gridInfo.tableData = rowList;
|
|
342
|
-
},
|
|
343
|
-
);
|
|
344
|
-
return {
|
|
345
|
-
showWindow,
|
|
346
|
-
showAddForm,
|
|
347
|
-
gridHeight,
|
|
348
|
-
...toRefs(gridInfo),
|
|
349
|
-
getList,
|
|
350
|
-
onApply,
|
|
351
|
-
onSave,
|
|
352
|
-
onAdd,
|
|
353
|
-
onDelete,
|
|
354
|
-
onCancel,
|
|
355
|
-
onCloseWindow,
|
|
356
|
-
};
|
|
357
|
-
},
|
|
358
|
-
};
|
|
359
|
-
</script>
|
|
360
|
-
|
|
361
|
-
<style lang="scss" scoped>
|
|
362
|
-
@import '../../style/index.scss';
|
|
363
|
-
|
|
364
|
-
.grid-filter {
|
|
365
|
-
display: flex;
|
|
366
|
-
width: 100%;
|
|
367
|
-
height: 100%;
|
|
368
|
-
flex-direction: column;
|
|
369
|
-
text-align: initial;
|
|
370
|
-
|
|
371
|
-
.grid-filter-header {
|
|
372
|
-
height: 24px;
|
|
373
|
-
margin-bottom: 12px;
|
|
374
|
-
text-align: right;
|
|
375
|
-
|
|
376
|
-
.ev-button {
|
|
377
|
-
width: 70px;
|
|
378
|
-
margin-left: 5px;
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
.grid-filter-body {
|
|
384
|
-
display: flex;
|
|
385
|
-
width: 100%;
|
|
386
|
-
height: 100%;
|
|
387
|
-
flex-direction: column;
|
|
388
|
-
align-items: center;
|
|
389
|
-
|
|
390
|
-
.ev-button {
|
|
391
|
-
width: 100px;
|
|
392
|
-
margin-top: 8px;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.applyBtn {
|
|
396
|
-
position: absolute;
|
|
397
|
-
bottom: 17px;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.grid-filter-add-wrap {
|
|
402
|
-
display: flex;
|
|
403
|
-
width: 100%;
|
|
404
|
-
//height: 100%;
|
|
405
|
-
padding: 10px;
|
|
406
|
-
background-color: lightgray;
|
|
407
|
-
margin-bottom: 10px;
|
|
408
|
-
|
|
409
|
-
@include evThemify() {
|
|
410
|
-
background-color: evThemed('grid-filter-add-background');
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
.split-line {
|
|
414
|
-
width: 1px;
|
|
415
|
-
margin: 0 20px;
|
|
416
|
-
|
|
417
|
-
@include evThemify() {
|
|
418
|
-
background-color: evThemed('grid-filter-add-background');
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.confirm-wrap {
|
|
423
|
-
display: flex;
|
|
424
|
-
width: 70px;
|
|
425
|
-
margin-right: 10px;
|
|
426
|
-
flex-direction: column;
|
|
427
|
-
align-items: center;
|
|
428
|
-
|
|
429
|
-
.ev-button {
|
|
430
|
-
width: 70px;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.grid-filter-add-item {
|
|
436
|
-
display: flex;
|
|
437
|
-
align-items: center;
|
|
438
|
-
flex: 1;
|
|
439
|
-
|
|
440
|
-
.item-labels {
|
|
441
|
-
margin-right: 10px;
|
|
442
|
-
list-style-type: none;
|
|
443
|
-
|
|
444
|
-
li {
|
|
445
|
-
height: 24px;
|
|
446
|
-
line-height: 24px;
|
|
447
|
-
margin-bottom: 8px;
|
|
448
|
-
font-size: 13px;
|
|
449
|
-
|
|
450
|
-
@include evThemify() {
|
|
451
|
-
color: evThemed('grid-filter-add-label');
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
&:last-child {
|
|
455
|
-
margin-bottom: 0;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
.item-inputs {
|
|
461
|
-
display: flex;
|
|
462
|
-
flex-direction: column;
|
|
463
|
-
flex: 1;
|
|
464
|
-
|
|
465
|
-
.item-input {
|
|
466
|
-
width: 100%;
|
|
467
|
-
height: 24px;
|
|
468
|
-
margin-bottom: 8px;
|
|
469
|
-
|
|
470
|
-
&:last-child {
|
|
471
|
-
margin-bottom: 0;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.form-row-contents {
|
|
477
|
-
min-height: 35px;
|
|
478
|
-
flex: 1;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
.form-row {
|
|
482
|
-
display: flex;
|
|
483
|
-
width: 100%;
|
|
484
|
-
margin: 8px 0;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.form-row-title.wide {
|
|
488
|
-
width: 30%;
|
|
489
|
-
line-height: 33px;
|
|
490
|
-
vertical-align: middle;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<ev-window
|
|
4
|
+
v-model:visible="showWindow"
|
|
5
|
+
:title="`Setting Filter(${targetColumn.caption})`"
|
|
6
|
+
>
|
|
7
|
+
<!--Contents-->
|
|
8
|
+
<div class="grid-filter">
|
|
9
|
+
<div class="grid-filter-header">
|
|
10
|
+
<!--Add Button-->
|
|
11
|
+
<ev-button
|
|
12
|
+
size="small"
|
|
13
|
+
@click="onAdd"
|
|
14
|
+
>
|
|
15
|
+
Add
|
|
16
|
+
</ev-button>
|
|
17
|
+
<ev-button
|
|
18
|
+
size="small"
|
|
19
|
+
:disabled="!checked.length"
|
|
20
|
+
@click="onDelete"
|
|
21
|
+
>
|
|
22
|
+
Delete
|
|
23
|
+
</ev-button>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="grid-filter-body">
|
|
26
|
+
<!--Add Form-->
|
|
27
|
+
<div
|
|
28
|
+
v-if="showAddForm"
|
|
29
|
+
class="grid-filter-add-wrap"
|
|
30
|
+
>
|
|
31
|
+
<div class="grid-filter-add-item">
|
|
32
|
+
<div class="form-row-contents">
|
|
33
|
+
<div class="form-row">
|
|
34
|
+
<span class="form-row-title wide">Type</span>
|
|
35
|
+
<div class="form-row-contents">
|
|
36
|
+
<ev-select
|
|
37
|
+
v-model="addInfo.type"
|
|
38
|
+
:items="types"
|
|
39
|
+
class="item-input"
|
|
40
|
+
/>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="form-row">
|
|
44
|
+
<span class="form-row-title wide">Comparison</span>
|
|
45
|
+
<div class="form-row-contents">
|
|
46
|
+
<ev-select
|
|
47
|
+
v-model="addInfo.comparison"
|
|
48
|
+
:items="getList(targetColumn.type)"
|
|
49
|
+
class="item-input"
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="form-row">
|
|
54
|
+
<span class="form-row-title wide">Value</span>
|
|
55
|
+
<div class="form-row-contents">
|
|
56
|
+
<ev-text-field
|
|
57
|
+
v-model.trim="addInfo.value"
|
|
58
|
+
type="text"
|
|
59
|
+
placeholder="Please enter the content"
|
|
60
|
+
class="item-input"
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="split-line"/>
|
|
67
|
+
<div class="confirm-wrap">
|
|
68
|
+
<!--Save Button-->
|
|
69
|
+
<ev-button
|
|
70
|
+
size="small"
|
|
71
|
+
@click="onSave"
|
|
72
|
+
>
|
|
73
|
+
Save
|
|
74
|
+
</ev-button>
|
|
75
|
+
<ev-button
|
|
76
|
+
size="small"
|
|
77
|
+
@click="onCancel"
|
|
78
|
+
>
|
|
79
|
+
Cancel
|
|
80
|
+
</ev-button>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
<!--Grid-->
|
|
84
|
+
<ev-grid
|
|
85
|
+
v-model:checked="checked"
|
|
86
|
+
:rows="tableData"
|
|
87
|
+
:columns="columns"
|
|
88
|
+
:width="`100%`"
|
|
89
|
+
:height="gridHeight"
|
|
90
|
+
:option="{
|
|
91
|
+
adjust: true,
|
|
92
|
+
useFilter: false,
|
|
93
|
+
useCheckbox: {
|
|
94
|
+
use: true,
|
|
95
|
+
mode: 'multi',
|
|
96
|
+
headerCheck: true,
|
|
97
|
+
}
|
|
98
|
+
}"
|
|
99
|
+
/>
|
|
100
|
+
<!--Apply Button-->
|
|
101
|
+
<ev-button
|
|
102
|
+
class="applyBtn"
|
|
103
|
+
type="primary"
|
|
104
|
+
@click="onApply"
|
|
105
|
+
>
|
|
106
|
+
Apply
|
|
107
|
+
</ev-button>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
</ev-window>
|
|
111
|
+
</div>
|
|
112
|
+
</template>
|
|
113
|
+
|
|
114
|
+
<script>
|
|
115
|
+
import { ref, reactive, toRefs, watch, computed } from 'vue';
|
|
116
|
+
|
|
117
|
+
export default {
|
|
118
|
+
name: 'EvGridFilterWindow',
|
|
119
|
+
props: {
|
|
120
|
+
/**
|
|
121
|
+
* 필터 팝업 표시 유무
|
|
122
|
+
*/
|
|
123
|
+
isShow: {
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: false,
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* 필터 대상 컬럼 정보
|
|
129
|
+
*/
|
|
130
|
+
targetColumn: {
|
|
131
|
+
type: Object,
|
|
132
|
+
default: () => ({}),
|
|
133
|
+
},
|
|
134
|
+
/**
|
|
135
|
+
* 설정된 필터 목록
|
|
136
|
+
*/
|
|
137
|
+
filterItems: {
|
|
138
|
+
type: Array,
|
|
139
|
+
default: () => [],
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
emits: {
|
|
143
|
+
'apply-filter': null,
|
|
144
|
+
'before-close': null,
|
|
145
|
+
},
|
|
146
|
+
setup(props, { emit }) {
|
|
147
|
+
const showAddForm = ref(false);
|
|
148
|
+
const gridHeight = ref(320);
|
|
149
|
+
const gridInfo = reactive({
|
|
150
|
+
tableData: [],
|
|
151
|
+
checked: [],
|
|
152
|
+
columns: [
|
|
153
|
+
{ caption: 'Type', field: 'type', type: 'string', width: 60 },
|
|
154
|
+
{ caption: 'Comparison', field: 'comparison', type: 'string', width: 120 },
|
|
155
|
+
{ caption: 'Value', field: 'value', type: 'string' },
|
|
156
|
+
],
|
|
157
|
+
addInfo: {
|
|
158
|
+
type: 'AND',
|
|
159
|
+
comparison: props.targetColumn.type === 'string' ? 'Equal' : '>',
|
|
160
|
+
value: '',
|
|
161
|
+
},
|
|
162
|
+
types: [
|
|
163
|
+
{ name: 'OR', value: 'OR' },
|
|
164
|
+
{ name: 'AND', value: 'AND' },
|
|
165
|
+
],
|
|
166
|
+
defaultComparison: {
|
|
167
|
+
string: [
|
|
168
|
+
{ name: 'Equal', value: 'Equal' },
|
|
169
|
+
{ name: 'Not Equal', value: 'Not Equal' },
|
|
170
|
+
{ name: 'Like', value: 'Like' },
|
|
171
|
+
{ name: 'Not Like', value: 'Not Like' },
|
|
172
|
+
],
|
|
173
|
+
number: [
|
|
174
|
+
{ name: '>', value: '>' },
|
|
175
|
+
{ name: '<', value: '<' },
|
|
176
|
+
{ name: '=', value: '=' },
|
|
177
|
+
],
|
|
178
|
+
float: [
|
|
179
|
+
{ name: '>', value: '>' },
|
|
180
|
+
{ name: '<', value: '<' },
|
|
181
|
+
{ name: '=', value: '=' },
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
const showWindow = computed({
|
|
186
|
+
get: () => props.isShow,
|
|
187
|
+
set: (val) => {
|
|
188
|
+
if (!val) {
|
|
189
|
+
gridInfo.checked.length = 0;
|
|
190
|
+
gridInfo.tableData.length = 0;
|
|
191
|
+
gridHeight.value = 320;
|
|
192
|
+
showAddForm.value = false;
|
|
193
|
+
/**
|
|
194
|
+
* 필터 팝업 종료 전 이벤트
|
|
195
|
+
*/
|
|
196
|
+
emit('before-close');
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
});
|
|
200
|
+
/**
|
|
201
|
+
* 데이터 유형에 맞는 필터 목록을 반환한다.
|
|
202
|
+
*
|
|
203
|
+
* @param {string} type - 데이터 유형
|
|
204
|
+
* @returns {array} 필터 목록
|
|
205
|
+
*/
|
|
206
|
+
const getList = (type) => {
|
|
207
|
+
let result = gridInfo.defaultComparison[type];
|
|
208
|
+
|
|
209
|
+
if (!result) {
|
|
210
|
+
result = gridInfo.defaultComparison.string;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return result;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* 선택한 필터를 테이블에 적용하도록 요청한다.
|
|
217
|
+
*/
|
|
218
|
+
const onApply = () => {
|
|
219
|
+
const filterItems = [];
|
|
220
|
+
const rowList = gridInfo.tableData;
|
|
221
|
+
const columnList = gridInfo.columns;
|
|
222
|
+
const checkedItems = gridInfo.checked;
|
|
223
|
+
|
|
224
|
+
for (let ix = 0; ix < rowList.length; ix++) {
|
|
225
|
+
const row = rowList[ix];
|
|
226
|
+
const item = columnList.reduce((acc, column, index) => {
|
|
227
|
+
acc[column.field] = row[index];
|
|
228
|
+
return acc;
|
|
229
|
+
}, {});
|
|
230
|
+
|
|
231
|
+
item.use = !!checkedItems.find(checkItem => checkItem === row);
|
|
232
|
+
|
|
233
|
+
filterItems.push(item);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* 필터 적용 요청 이벤트
|
|
238
|
+
*
|
|
239
|
+
* @property {string} field - 컬럼 field
|
|
240
|
+
* @property {array} filterItems - 필터 목록
|
|
241
|
+
*/
|
|
242
|
+
if (props.targetColumn.field) {
|
|
243
|
+
emit('apply-filter', props.targetColumn.field, filterItems);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* 필터 팝업 종료 전 이벤트
|
|
247
|
+
*/
|
|
248
|
+
emit('before-close');
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* 작성한 필터 정보를 저장한다.
|
|
252
|
+
*/
|
|
253
|
+
const onSave = () => {
|
|
254
|
+
const item = gridInfo.addInfo;
|
|
255
|
+
const tempData = JSON.parse(JSON.stringify(gridInfo.tableData));
|
|
256
|
+
tempData.push(gridInfo.columns.reduce((acc, column) => {
|
|
257
|
+
acc.push(item[column.field]);
|
|
258
|
+
return acc;
|
|
259
|
+
}, []));
|
|
260
|
+
gridInfo.tableData = tempData;
|
|
261
|
+
gridHeight.value = 320;
|
|
262
|
+
showAddForm.value = false;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* 새로운 필터 추가 양식을 표시한다.
|
|
266
|
+
*/
|
|
267
|
+
const onAdd = () => {
|
|
268
|
+
gridInfo.addInfo = {
|
|
269
|
+
type: 'AND',
|
|
270
|
+
comparison: props.targetColumn.type === 'string' ? 'Equal' : '>',
|
|
271
|
+
value: '',
|
|
272
|
+
};
|
|
273
|
+
gridHeight.value = 153;
|
|
274
|
+
showAddForm.value = true;
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* 선택한 필터를 필터 목록에서 삭제한다.
|
|
278
|
+
*/
|
|
279
|
+
const onDelete = () => {
|
|
280
|
+
if (!gridInfo.checked.length) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
const checkList = gridInfo.checked;
|
|
285
|
+
const rowList = gridInfo.tableData;
|
|
286
|
+
const tempData = [];
|
|
287
|
+
for (let ix = 0; ix < rowList.length; ix++) {
|
|
288
|
+
const row = rowList[ix];
|
|
289
|
+
if (checkList.indexOf(row) === -1) {
|
|
290
|
+
tempData.push(row);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
gridInfo.checked.length = 0;
|
|
295
|
+
gridInfo.tableData = tempData;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* 필터 추가 작성을 취소한다.
|
|
299
|
+
*/
|
|
300
|
+
const onCancel = () => {
|
|
301
|
+
gridHeight.value = 320;
|
|
302
|
+
showAddForm.value = false;
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* 필터 팝업을 종료한다.
|
|
306
|
+
*/
|
|
307
|
+
const onCloseWindow = (state) => {
|
|
308
|
+
if (!state) {
|
|
309
|
+
gridInfo.checked.length = 0;
|
|
310
|
+
gridInfo.tableData.length = 0;
|
|
311
|
+
gridHeight.value = 320;
|
|
312
|
+
showAddForm.value = false;
|
|
313
|
+
/**
|
|
314
|
+
* 필터 팝업 종료 전 이벤트
|
|
315
|
+
*/
|
|
316
|
+
emit('before-close');
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
watch(
|
|
320
|
+
() => props.filterItems,
|
|
321
|
+
(items) => {
|
|
322
|
+
const columns = gridInfo.columns;
|
|
323
|
+
const rowList = [];
|
|
324
|
+
const checkList = [];
|
|
325
|
+
|
|
326
|
+
for (let ix = 0; ix < items.length; ix++) {
|
|
327
|
+
const item = items[ix];
|
|
328
|
+
const value = columns.reduce((acc, column) => {
|
|
329
|
+
acc.push(item[column.field]);
|
|
330
|
+
return acc;
|
|
331
|
+
}, []);
|
|
332
|
+
|
|
333
|
+
if (item.use) {
|
|
334
|
+
checkList.push(value);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
rowList.push(value);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
gridInfo.checked = checkList;
|
|
341
|
+
gridInfo.tableData = rowList;
|
|
342
|
+
},
|
|
343
|
+
);
|
|
344
|
+
return {
|
|
345
|
+
showWindow,
|
|
346
|
+
showAddForm,
|
|
347
|
+
gridHeight,
|
|
348
|
+
...toRefs(gridInfo),
|
|
349
|
+
getList,
|
|
350
|
+
onApply,
|
|
351
|
+
onSave,
|
|
352
|
+
onAdd,
|
|
353
|
+
onDelete,
|
|
354
|
+
onCancel,
|
|
355
|
+
onCloseWindow,
|
|
356
|
+
};
|
|
357
|
+
},
|
|
358
|
+
};
|
|
359
|
+
</script>
|
|
360
|
+
|
|
361
|
+
<style lang="scss" scoped>
|
|
362
|
+
@import '../../style/index.scss';
|
|
363
|
+
|
|
364
|
+
.grid-filter {
|
|
365
|
+
display: flex;
|
|
366
|
+
width: 100%;
|
|
367
|
+
height: 100%;
|
|
368
|
+
flex-direction: column;
|
|
369
|
+
text-align: initial;
|
|
370
|
+
|
|
371
|
+
.grid-filter-header {
|
|
372
|
+
height: 24px;
|
|
373
|
+
margin-bottom: 12px;
|
|
374
|
+
text-align: right;
|
|
375
|
+
|
|
376
|
+
.ev-button {
|
|
377
|
+
width: 70px;
|
|
378
|
+
margin-left: 5px;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.grid-filter-body {
|
|
384
|
+
display: flex;
|
|
385
|
+
width: 100%;
|
|
386
|
+
height: 100%;
|
|
387
|
+
flex-direction: column;
|
|
388
|
+
align-items: center;
|
|
389
|
+
|
|
390
|
+
.ev-button {
|
|
391
|
+
width: 100px;
|
|
392
|
+
margin-top: 8px;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.applyBtn {
|
|
396
|
+
position: absolute;
|
|
397
|
+
bottom: 17px;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.grid-filter-add-wrap {
|
|
402
|
+
display: flex;
|
|
403
|
+
width: 100%;
|
|
404
|
+
//height: 100%;
|
|
405
|
+
padding: 10px;
|
|
406
|
+
background-color: lightgray;
|
|
407
|
+
margin-bottom: 10px;
|
|
408
|
+
|
|
409
|
+
@include evThemify() {
|
|
410
|
+
background-color: evThemed('grid-filter-add-background');
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.split-line {
|
|
414
|
+
width: 1px;
|
|
415
|
+
margin: 0 20px;
|
|
416
|
+
|
|
417
|
+
@include evThemify() {
|
|
418
|
+
background-color: evThemed('grid-filter-add-background');
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.confirm-wrap {
|
|
423
|
+
display: flex;
|
|
424
|
+
width: 70px;
|
|
425
|
+
margin-right: 10px;
|
|
426
|
+
flex-direction: column;
|
|
427
|
+
align-items: center;
|
|
428
|
+
|
|
429
|
+
.ev-button {
|
|
430
|
+
width: 70px;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.grid-filter-add-item {
|
|
436
|
+
display: flex;
|
|
437
|
+
align-items: center;
|
|
438
|
+
flex: 1;
|
|
439
|
+
|
|
440
|
+
.item-labels {
|
|
441
|
+
margin-right: 10px;
|
|
442
|
+
list-style-type: none;
|
|
443
|
+
|
|
444
|
+
li {
|
|
445
|
+
height: 24px;
|
|
446
|
+
line-height: 24px;
|
|
447
|
+
margin-bottom: 8px;
|
|
448
|
+
font-size: 13px;
|
|
449
|
+
|
|
450
|
+
@include evThemify() {
|
|
451
|
+
color: evThemed('grid-filter-add-label');
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
&:last-child {
|
|
455
|
+
margin-bottom: 0;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.item-inputs {
|
|
461
|
+
display: flex;
|
|
462
|
+
flex-direction: column;
|
|
463
|
+
flex: 1;
|
|
464
|
+
|
|
465
|
+
.item-input {
|
|
466
|
+
width: 100%;
|
|
467
|
+
height: 24px;
|
|
468
|
+
margin-bottom: 8px;
|
|
469
|
+
|
|
470
|
+
&:last-child {
|
|
471
|
+
margin-bottom: 0;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.form-row-contents {
|
|
477
|
+
min-height: 35px;
|
|
478
|
+
flex: 1;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.form-row {
|
|
482
|
+
display: flex;
|
|
483
|
+
width: 100%;
|
|
484
|
+
margin: 8px 0;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.form-row-title.wide {
|
|
488
|
+
width: 30%;
|
|
489
|
+
line-height: 33px;
|
|
490
|
+
vertical-align: middle;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
</style>
|