overview-components 1.1.41 → 1.1.43
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/assets/illustration/delete-illustration.js +16 -16
- package/dist/components/components-settings/attachments-tab-settings.d.ts.map +1 -1
- package/dist/components/components-settings/attachments-tab-settings.js +5 -3
- package/dist/components/components-settings/attachments-tab-settings.js.map +1 -1
- package/dist/components/components-settings/data-grid-settings.d.ts +31 -2
- package/dist/components/components-settings/data-grid-settings.d.ts.map +1 -1
- package/dist/components/components-settings/data-grid-settings.js +279 -147
- package/dist/components/components-settings/data-grid-settings.js.map +1 -1
- package/dist/components/components-settings/section-tab-settings.d.ts +28 -1
- package/dist/components/components-settings/section-tab-settings.d.ts.map +1 -1
- package/dist/components/components-settings/section-tab-settings.js +439 -125
- package/dist/components/components-settings/section-tab-settings.js.map +1 -1
- package/dist/components/components-settings/tabs-overview-settings.d.ts.map +1 -1
- package/dist/components/components-settings/tabs-overview-settings.js +7 -15
- package/dist/components/components-settings/tabs-overview-settings.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/lit-ai-filter-assistant.d.ts.map +1 -1
- package/dist/components/lit-ai-filter-assistant.js +6 -2
- package/dist/components/lit-ai-filter-assistant.js.map +1 -1
- package/dist/components/lit-attachments-tab.d.ts +1 -0
- package/dist/components/lit-attachments-tab.d.ts.map +1 -1
- package/dist/components/lit-attachments-tab.js +14 -2
- package/dist/components/lit-attachments-tab.js.map +1 -1
- package/dist/components/lit-badge.d.ts +2 -0
- package/dist/components/lit-badge.d.ts.map +1 -1
- package/dist/components/lit-badge.js +17 -1
- package/dist/components/lit-badge.js.map +1 -1
- package/dist/components/lit-case-variables-tab.d.ts +61 -3
- package/dist/components/lit-case-variables-tab.d.ts.map +1 -1
- package/dist/components/lit-case-variables-tab.js +1443 -87
- package/dist/components/lit-case-variables-tab.js.map +1 -1
- package/dist/components/lit-data-grid-tanstack.d.ts +3 -14
- package/dist/components/lit-data-grid-tanstack.d.ts.map +1 -1
- package/dist/components/lit-data-grid-tanstack.js +19 -7
- package/dist/components/lit-data-grid-tanstack.js.map +1 -1
- package/dist/components/lit-filter-builder.d.ts +67 -0
- package/dist/components/lit-filter-builder.d.ts.map +1 -0
- package/dist/components/lit-filter-builder.js +446 -0
- package/dist/components/lit-filter-builder.js.map +1 -0
- package/dist/components/lit-filter-modal.d.ts +1 -1
- package/dist/components/lit-filter-modal.d.ts.map +1 -1
- package/dist/components/lit-filter-modal.js +7 -1
- package/dist/components/lit-filter-modal.js.map +1 -1
- package/dist/components/lit-multiselect-item.d.ts.map +1 -1
- package/dist/components/lit-multiselect-item.js +4 -2
- package/dist/components/lit-multiselect-item.js.map +1 -1
- package/dist/components/lit-section-tab.d.ts +12 -0
- package/dist/components/lit-section-tab.d.ts.map +1 -1
- package/dist/components/lit-section-tab.js +89 -0
- package/dist/components/lit-section-tab.js.map +1 -1
- package/dist/components/lit-tabs-overview.d.ts.map +1 -1
- package/dist/components/lit-tabs-overview.js +10 -6
- package/dist/components/lit-tabs-overview.js.map +1 -1
- package/dist/components/modals/lit-confirm-modal.d.ts.map +1 -1
- package/dist/components/modals/lit-confirm-modal.js +4 -2
- package/dist/components/modals/lit-confirm-modal.js.map +1 -1
- package/dist/components/modals/lit-delete-modal.d.ts.map +1 -1
- package/dist/components/modals/lit-delete-modal.js +11 -7
- package/dist/components/modals/lit-delete-modal.js.map +1 -1
- package/dist/components/react-wrappers/filter-builder.d.ts +5 -0
- package/dist/components/react-wrappers/filter-builder.d.ts.map +1 -0
- package/dist/components/react-wrappers/filter-builder.js +12 -0
- package/dist/components/react-wrappers/filter-builder.js.map +1 -0
- package/dist/components/react-wrappers/index.d.ts +2 -0
- package/dist/components/react-wrappers/index.d.ts.map +1 -1
- package/dist/components/react-wrappers/index.js +2 -0
- package/dist/components/react-wrappers/index.js.map +1 -1
- package/dist/schemas/index.d.ts +2 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +2 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/lit-attachments-tab-document.schema.d.ts +6 -0
- package/dist/schemas/lit-attachments-tab-document.schema.d.ts.map +1 -1
- package/dist/schemas/lit-attachments-tab-document.schema.js +6 -0
- package/dist/schemas/lit-attachments-tab-document.schema.js.map +1 -1
- package/dist/schemas/lit-attachments-tab.schema.d.ts +6 -0
- package/dist/schemas/lit-attachments-tab.schema.d.ts.map +1 -1
- package/dist/schemas/lit-case-variables-tab-cell.schema.d.ts +81 -0
- package/dist/schemas/lit-case-variables-tab-cell.schema.d.ts.map +1 -1
- package/dist/schemas/lit-case-variables-tab-cell.schema.js +60 -1
- package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +1 -1
- package/dist/schemas/lit-case-variables-tab-rows.schema.d.ts +81 -0
- package/dist/schemas/lit-case-variables-tab-rows.schema.d.ts.map +1 -1
- package/dist/schemas/lit-case-variables-tab.schema.d.ts +81 -0
- package/dist/schemas/lit-case-variables-tab.schema.d.ts.map +1 -1
- package/dist/schemas/lit-data-grid-tanstack.schema.d.ts +39 -1
- package/dist/schemas/lit-data-grid-tanstack.schema.d.ts.map +1 -1
- package/dist/schemas/lit-data-grid-tanstack.schema.js +2 -1
- package/dist/schemas/lit-data-grid-tanstack.schema.js.map +1 -1
- package/dist/schemas/lit-filter-builder.schema.d.ts +67 -0
- package/dist/schemas/lit-filter-builder.schema.d.ts.map +1 -0
- package/dist/schemas/lit-filter-builder.schema.js +49 -0
- package/dist/schemas/lit-filter-builder.schema.js.map +1 -0
- package/dist/schemas/lit-section-tab-schema.d.ts +45 -0
- package/dist/schemas/lit-section-tab-schema.d.ts.map +1 -1
- package/dist/schemas/lit-section-tab-schema.js +7 -0
- package/dist/schemas/lit-section-tab-schema.js.map +1 -1
- package/dist/shared/lit-button.d.ts +3 -1
- package/dist/shared/lit-button.d.ts.map +1 -1
- package/dist/shared/lit-button.js +6 -2
- package/dist/shared/lit-button.js.map +1 -1
- package/dist/shared/lit-checkbox.d.ts +1 -0
- package/dist/shared/lit-checkbox.d.ts.map +1 -1
- package/dist/shared/lit-checkbox.js +5 -0
- package/dist/shared/lit-checkbox.js.map +1 -1
- package/dist/shared/lit-data-grid-action-buttons-popover.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-action-buttons-popover.js +1 -0
- package/dist/shared/lit-data-grid-action-buttons-popover.js.map +1 -1
- package/dist/shared/lit-data-grid-density-popover.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-density-popover.js +1 -0
- package/dist/shared/lit-data-grid-density-popover.js.map +1 -1
- package/dist/shared/lit-data-grid-export-popover.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-export-popover.js +1 -0
- package/dist/shared/lit-data-grid-export-popover.js.map +1 -1
- package/dist/shared/lit-data-grid-operators-popover.d.ts +3 -3
- package/dist/shared/lit-data-grid-operators-popover.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-operators-popover.js +1 -0
- package/dist/shared/lit-data-grid-operators-popover.js.map +1 -1
- package/dist/shared/lit-data-grid-row-actions.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-row-actions.js +2 -0
- package/dist/shared/lit-data-grid-row-actions.js.map +1 -1
- package/dist/shared/lit-date-picker.d.ts +1 -1
- package/dist/shared/lit-date-picker.d.ts.map +1 -1
- package/dist/shared/lit-date-picker.js +2 -0
- package/dist/shared/lit-date-picker.js.map +1 -1
- package/dist/shared/lit-icon-button.d.ts +7 -3
- package/dist/shared/lit-icon-button.d.ts.map +1 -1
- package/dist/shared/lit-icon-button.js +6 -2
- package/dist/shared/lit-icon-button.js.map +1 -1
- package/dist/shared/lit-icon.d.ts +1 -0
- package/dist/shared/lit-icon.d.ts.map +1 -1
- package/dist/shared/lit-icon.js +28 -2
- package/dist/shared/lit-icon.js.map +1 -1
- package/dist/shared/lit-input.d.ts +3 -1
- package/dist/shared/lit-input.d.ts.map +1 -1
- package/dist/shared/lit-input.js +35 -28
- package/dist/shared/lit-input.js.map +1 -1
- package/dist/shared/lit-modal-body.js +1 -1
- package/dist/shared/lit-modal-footer.js +1 -1
- package/dist/shared/lit-modal-header.d.ts.map +1 -1
- package/dist/shared/lit-modal-header.js +1 -2
- package/dist/shared/lit-modal-header.js.map +1 -1
- package/dist/shared/lit-progress-bar.d.ts +2 -0
- package/dist/shared/lit-progress-bar.d.ts.map +1 -1
- package/dist/shared/lit-progress-bar.js +57 -7
- package/dist/shared/lit-progress-bar.js.map +1 -1
- package/dist/shared/lit-responsive-button.d.ts +17 -2
- package/dist/shared/lit-responsive-button.d.ts.map +1 -1
- package/dist/shared/lit-responsive-button.js +8 -0
- package/dist/shared/lit-responsive-button.js.map +1 -1
- package/dist/shared/lit-select-field.d.ts.map +1 -1
- package/dist/shared/lit-select-field.js +1 -2
- package/dist/shared/lit-select-field.js.map +1 -1
- package/dist/shared/lit-select.d.ts +5 -1
- package/dist/shared/lit-select.d.ts.map +1 -1
- package/dist/shared/lit-select.js +218 -6
- package/dist/shared/lit-select.js.map +1 -1
- package/dist/shared/lit-text-field.d.ts +2 -0
- package/dist/shared/lit-text-field.d.ts.map +1 -1
- package/dist/shared/lit-text-field.js +27 -10
- package/dist/shared/lit-text-field.js.map +1 -1
- package/dist/shared/styles/button-shared-styles.d.ts.map +1 -1
- package/dist/shared/styles/button-shared-styles.js +321 -28
- package/dist/shared/styles/button-shared-styles.js.map +1 -1
- package/dist/utils/getOperatorByType.d.ts +5 -5
- package/dist/utils/getOperatorByType.d.ts.map +1 -1
- package/dist/utils/getOperatorByType.js +5 -1
- package/dist/utils/getOperatorByType.js.map +1 -1
- package/package.json +5 -2
|
@@ -18,6 +18,8 @@ import '../../shared/lit-modal-footer.js';
|
|
|
18
18
|
import '../../shared/lit-modal-body.js';
|
|
19
19
|
import '../../shared/lit-label.js';
|
|
20
20
|
import '../../shared/lit-toggle.js';
|
|
21
|
+
import '../lit-filter-builder.js';
|
|
22
|
+
import '../lit-tabs-overview.js';
|
|
21
23
|
let DataGridSettings = class DataGridSettings extends LitElement {
|
|
22
24
|
constructor() {
|
|
23
25
|
super(...arguments);
|
|
@@ -29,10 +31,16 @@ let DataGridSettings = class DataGridSettings extends LitElement {
|
|
|
29
31
|
this.exportData = true;
|
|
30
32
|
this.actionButtonsInMenu = false;
|
|
31
33
|
this.hideFooter = false;
|
|
32
|
-
this.
|
|
34
|
+
this.columns = [];
|
|
33
35
|
this.isOpenModal = false;
|
|
36
|
+
this.activeTab = 'general';
|
|
37
|
+
this.alwaysFilterActive = false;
|
|
34
38
|
this.originalValues = {};
|
|
35
39
|
this.currentValues = {};
|
|
40
|
+
this._onAlwaysFilterChange = (event) => {
|
|
41
|
+
const { filterGroup } = event.detail;
|
|
42
|
+
this.updateCurrentValue('alwaysFilter', filterGroup);
|
|
43
|
+
};
|
|
36
44
|
}
|
|
37
45
|
get isSmallScreen() {
|
|
38
46
|
return (window.innerWidth <=
|
|
@@ -56,6 +64,7 @@ let DataGridSettings = class DataGridSettings extends LitElement {
|
|
|
56
64
|
'hideFooter',
|
|
57
65
|
'enableColumnPinning',
|
|
58
66
|
'alwaysFilter',
|
|
67
|
+
'columns',
|
|
59
68
|
];
|
|
60
69
|
if (settingsProperties.some((prop) => changedProperties.has(prop))) {
|
|
61
70
|
this.initializeValues();
|
|
@@ -74,7 +83,7 @@ let DataGridSettings = class DataGridSettings extends LitElement {
|
|
|
74
83
|
columnDefaultSize: this.columnDefaultSize || 0,
|
|
75
84
|
columnGroupedColor: this.columnGroupedColor || '#f0fadf',
|
|
76
85
|
rowAggregationColor: this.rowAggregationColor || '#ffe1a8',
|
|
77
|
-
alwaysFilter: this.alwaysFilter ||
|
|
86
|
+
alwaysFilter: this.alwaysFilter || undefined,
|
|
78
87
|
};
|
|
79
88
|
// Initialize current values with original values
|
|
80
89
|
this.currentValues = { ...this.originalValues };
|
|
@@ -84,6 +93,11 @@ let DataGridSettings = class DataGridSettings extends LitElement {
|
|
|
84
93
|
this.currentValues = { ...this.currentValues, [key]: value };
|
|
85
94
|
this.localSettingsValue = { ...this.localSettingsValue, [key]: value };
|
|
86
95
|
}
|
|
96
|
+
updateAlwaysFilterActive(value) {
|
|
97
|
+
this.alwaysFilterActive = value;
|
|
98
|
+
this.currentValues = { ...this.currentValues, alwaysFilterActive: value };
|
|
99
|
+
this.localSettingsValue = { ...this.localSettingsValue, alwaysFilterActive: value };
|
|
100
|
+
}
|
|
87
101
|
trySendSettingsUpdate() {
|
|
88
102
|
this.onSettingsChangedModal?.(this.localSettingsValue);
|
|
89
103
|
this.onClose?.();
|
|
@@ -94,169 +108,263 @@ let DataGridSettings = class DataGridSettings extends LitElement {
|
|
|
94
108
|
this.requestUpdate();
|
|
95
109
|
this.onClose?.();
|
|
96
110
|
}
|
|
97
|
-
|
|
111
|
+
_getFilterFieldsFromColumns() {
|
|
112
|
+
return this.columns.map((column) => ({
|
|
113
|
+
value: String(column.field || column.accessorKey || ''),
|
|
114
|
+
label: String(column.headerName || column.header || column.field || column.accessorKey || ''),
|
|
115
|
+
type: this._mapColumnTypeToFilterType(column.type),
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
_mapColumnTypeToFilterType(columnType) {
|
|
119
|
+
switch (columnType) {
|
|
120
|
+
case 'number':
|
|
121
|
+
return 'number';
|
|
122
|
+
case 'date':
|
|
123
|
+
return 'date';
|
|
124
|
+
case 'select':
|
|
125
|
+
return 'select';
|
|
126
|
+
case 'multiselect':
|
|
127
|
+
return 'multiselect';
|
|
128
|
+
default:
|
|
129
|
+
return 'string';
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
_convertToFilterBuilderData() {
|
|
133
|
+
const fields = this._getFilterFieldsFromColumns();
|
|
134
|
+
// Use existing alwaysFilter or create empty filter group
|
|
135
|
+
const filterGroup = this.currentValues.alwaysFilter || {
|
|
136
|
+
id: 'always-filter-group',
|
|
137
|
+
logicOperator: 'AND',
|
|
138
|
+
conditions: [],
|
|
139
|
+
};
|
|
140
|
+
return {
|
|
141
|
+
fields,
|
|
142
|
+
operators: [], // Will be populated by utility functions
|
|
143
|
+
filterGroup,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
_getTabDefinitions() {
|
|
147
|
+
return [
|
|
148
|
+
{
|
|
149
|
+
id: 'general',
|
|
150
|
+
label: {
|
|
151
|
+
default: 'General Settings',
|
|
152
|
+
},
|
|
153
|
+
icon: 'administration',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
id: 'alwaysFilter',
|
|
157
|
+
label: {
|
|
158
|
+
default: 'Always Filter',
|
|
159
|
+
},
|
|
160
|
+
icon: 'filter',
|
|
161
|
+
},
|
|
162
|
+
];
|
|
163
|
+
}
|
|
164
|
+
_renderGeneralSettings() {
|
|
98
165
|
return html `
|
|
99
|
-
<
|
|
100
|
-
.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
style="display: flex; align-items: center; justify-content: flex-end;"
|
|
110
|
-
>
|
|
111
|
-
<lit-icon-button
|
|
112
|
-
.icon="${'close'}"
|
|
113
|
-
variant="${'text'}"
|
|
114
|
-
size="${'small'}"
|
|
115
|
-
@click=${() => this.onClose?.()}
|
|
116
|
-
></lit-icon-button>
|
|
117
|
-
</lit-modal-header>
|
|
118
|
-
<lit-modal-body style="height: calc(100vh - 37px - 54px);">
|
|
119
|
-
<div style="display: flex; flex-direction: column; gap: 0.5rem">
|
|
120
|
-
<div
|
|
121
|
-
style="display: flex; flex-direction: column; align-items: center; font-size: 1rem; font-weight: 500;"
|
|
122
|
-
>
|
|
123
|
-
<div style="max-height: 5rem; max-width: 5rem">
|
|
124
|
-
<settings-illustration></settings-illustration>
|
|
125
|
-
</div>
|
|
126
|
-
<span
|
|
127
|
-
style="font-size: 0.875rem; font-weight: 500 ; color: var(--text-secondary, #777);"
|
|
128
|
-
>
|
|
129
|
-
${msg('Konfigurace') + '- DataGrid'}
|
|
130
|
-
</span>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
<div style="display: flex;flex-direction: column; gap: 0.5rem">
|
|
134
|
-
<div
|
|
135
|
-
style="display: flex; flex-direction: column;justify-content: center;gap: 2px"
|
|
136
|
-
>
|
|
137
|
-
<lit-toggle
|
|
138
|
-
.tooltip="${'Enables or disables column filtering.'}"
|
|
139
|
-
.label="${'enableFiltering'}"
|
|
140
|
-
.checked=${this.currentValues.enableFiltering}
|
|
141
|
-
@change=${(e) => {
|
|
166
|
+
<div class="tab-content">
|
|
167
|
+
<div style="display: flex; flex-direction: column; gap: 0.5rem">
|
|
168
|
+
<div
|
|
169
|
+
style="display: flex; flex-direction: column;justify-content: center;gap: 2px"
|
|
170
|
+
>
|
|
171
|
+
<lit-toggle
|
|
172
|
+
.tooltip="${msg('Enables or disables column filtering.')}"
|
|
173
|
+
.label="${msg('enableFiltering')}"
|
|
174
|
+
.checked=${this.currentValues.enableFiltering}
|
|
175
|
+
@change=${(e) => {
|
|
142
176
|
this.updateCurrentValue('enableFiltering', e.detail);
|
|
143
177
|
}}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
178
|
+
></lit-toggle>
|
|
179
|
+
<lit-toggle
|
|
180
|
+
.tooltip="${msg('Enables or disables column sorting.')}"
|
|
181
|
+
.label="${msg('enableSorting')}"
|
|
182
|
+
.checked=${this.currentValues.enableSorting}
|
|
183
|
+
@change=${(e) => {
|
|
150
184
|
this.updateCurrentValue('enableSorting', e.detail);
|
|
151
185
|
}}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
186
|
+
></lit-toggle>
|
|
187
|
+
<lit-toggle
|
|
188
|
+
.tooltip="${msg('Enable or disable the export to CSV and Excel feature.')}"
|
|
189
|
+
.label="${msg('enableExportData')}"
|
|
190
|
+
.checked=${this.currentValues.exportData}
|
|
191
|
+
@change=${(e) => {
|
|
158
192
|
this.updateCurrentValue('exportData', e.detail);
|
|
159
193
|
}}
|
|
160
|
-
|
|
194
|
+
></lit-toggle>
|
|
161
195
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
196
|
+
<lit-toggle
|
|
197
|
+
.tooltip="${msg('Enables or disables column grouping functionality. If true, users can group rows by specific columns.')}"
|
|
198
|
+
.label="${msg('enableGrouping')}"
|
|
199
|
+
.checked=${this.currentValues.enableGrouping}
|
|
200
|
+
@change=${(e) => {
|
|
167
201
|
this.updateCurrentValue('enableGrouping', e.detail);
|
|
168
202
|
}}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
203
|
+
></lit-toggle>
|
|
204
|
+
<lit-toggle
|
|
205
|
+
.tooltip="${msg('Enables or disables column pinning. If true, columns can be pinned to the left.')}"
|
|
206
|
+
.label="${msg('enableColumnPinning')}"
|
|
207
|
+
.checked=${this.currentValues.enableColumnPinning}
|
|
208
|
+
@change=${(e) => {
|
|
175
209
|
this.updateCurrentValue('enableColumnPinning', e.detail);
|
|
176
210
|
}}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
211
|
+
></lit-toggle>
|
|
212
|
+
<lit-toggle
|
|
213
|
+
.tooltip="${msg('If true, column actions like pinning and grouping are moved into a popover menu instead of displaying individual buttons in the column header.')}"
|
|
214
|
+
.label="${msg('actionButtonsInMenu')}"
|
|
215
|
+
.checked=${this.currentValues.actionButtonsInMenu}
|
|
216
|
+
@change=${(e) => {
|
|
183
217
|
this.updateCurrentValue('actionButtonsInMenu', e.detail);
|
|
184
218
|
}}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
219
|
+
></lit-toggle>
|
|
220
|
+
<lit-toggle
|
|
221
|
+
.tooltip="${msg('Hides the footer of the data grid.')}"
|
|
222
|
+
.label="${msg('hideFooter')}"
|
|
223
|
+
.checked=${this.currentValues.hideFooter}
|
|
224
|
+
@change=${(e) => {
|
|
191
225
|
this.updateCurrentValue('hideFooter', e.detail);
|
|
192
226
|
}}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
227
|
+
></lit-toggle>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
<div
|
|
231
|
+
style="display: flex; flex-direction: column;justify-content: center;gap: 8px; margin-top: 16px;"
|
|
232
|
+
>
|
|
233
|
+
<lit-label
|
|
234
|
+
.label="${msg('columnDefaultSize')}"
|
|
235
|
+
.tooltip="${msg('The default width of all columns.')}"
|
|
236
|
+
></lit-label>
|
|
237
|
+
<lit-input
|
|
238
|
+
style="margin: 4px 0 4px 14px"
|
|
239
|
+
type="number"
|
|
240
|
+
disableClearButton="true"
|
|
241
|
+
.value="${this.currentValues.columnDefaultSize}"
|
|
242
|
+
.onInput=${(val) => {
|
|
204
243
|
this.updateCurrentValue('columnDefaultSize', Number(val));
|
|
205
244
|
}}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
245
|
+
></lit-input>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
<div
|
|
249
|
+
style="display: flex; flex-direction: column;justify-content: center;gap: 8px"
|
|
250
|
+
>
|
|
251
|
+
<lit-label
|
|
252
|
+
.label="${msg('columnGroupedColor')}"
|
|
253
|
+
.tooltip="${msg('The background color for grouped column headers.')}"
|
|
254
|
+
></lit-label>
|
|
255
|
+
<input
|
|
256
|
+
style="margin: 4px 0 4px 14px;"
|
|
257
|
+
type="color"
|
|
258
|
+
id="colorPickerCustom"
|
|
259
|
+
value="${this.currentValues.columnGroupedColor}"
|
|
260
|
+
@change=${(e) => {
|
|
221
261
|
const color = e.target.value;
|
|
222
262
|
this.updateCurrentValue('columnGroupedColor', color);
|
|
223
263
|
}}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
264
|
+
/>
|
|
265
|
+
</div>
|
|
266
|
+
|
|
267
|
+
<div
|
|
268
|
+
style="display: flex; flex-direction: column;justify-content: center;gap: 8px"
|
|
269
|
+
>
|
|
270
|
+
<lit-label
|
|
271
|
+
.label="${msg('rowAggregationColor')}"
|
|
272
|
+
.tooltip="${msg('The background color for rows affected by aggregation.')}"
|
|
273
|
+
></lit-label>
|
|
274
|
+
<input
|
|
275
|
+
style="margin: 4px 0 4px 14px"
|
|
276
|
+
type="color"
|
|
277
|
+
id="colorPickerCustom"
|
|
278
|
+
value="${this.currentValues.rowAggregationColor}"
|
|
279
|
+
@change=${(e) => {
|
|
239
280
|
const color = e.target.value;
|
|
240
281
|
this.updateCurrentValue('rowAggregationColor', color);
|
|
241
282
|
}}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
283
|
+
/>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
</div>
|
|
287
|
+
`;
|
|
288
|
+
}
|
|
289
|
+
_renderAlwaysFilterTab() {
|
|
290
|
+
return html `
|
|
291
|
+
<div class="tab-content">
|
|
292
|
+
<div style="display: flex; flex-direction: column; gap: 8px;">
|
|
293
|
+
<lit-label
|
|
294
|
+
.label="${msg('alwaysFilter')}"
|
|
295
|
+
.tooltip="${msg('Global filter conditions applied to all data. These filters are always active and hidden from users.')}"
|
|
296
|
+
></lit-label>
|
|
297
|
+
<div style="margin-bottom: 8px;">
|
|
298
|
+
<lit-toggle
|
|
299
|
+
.label="${msg('Active Filter Builder')}"
|
|
300
|
+
.checked=${this.alwaysFilterActive}
|
|
301
|
+
@change=${(e) => {
|
|
302
|
+
this.updateAlwaysFilterActive(e.detail);
|
|
258
303
|
}}
|
|
259
|
-
|
|
304
|
+
></lit-toggle>
|
|
305
|
+
</div>
|
|
306
|
+
<div>
|
|
307
|
+
${this.alwaysFilterActive ? this._renderAlwaysFilterBuilder() : html ``}
|
|
308
|
+
</div>
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
`;
|
|
312
|
+
}
|
|
313
|
+
_renderAlwaysFilterBuilder() {
|
|
314
|
+
if (this.columns.length === 0) {
|
|
315
|
+
return html `
|
|
316
|
+
<div
|
|
317
|
+
style="padding: 16px; text-align: center; color: var(--text-secondary, #777); font-style: italic;"
|
|
318
|
+
>
|
|
319
|
+
${msg('Žádné sloupce nejsou k dispozici pro filtrování')}
|
|
320
|
+
</div>
|
|
321
|
+
`;
|
|
322
|
+
}
|
|
323
|
+
return html `
|
|
324
|
+
<lit-filter-builder
|
|
325
|
+
.data="${this._convertToFilterBuilderData()}"
|
|
326
|
+
.disabled="${false}"
|
|
327
|
+
.locale="${'cs'}"
|
|
328
|
+
@filter-change="${this._onAlwaysFilterChange}"
|
|
329
|
+
></lit-filter-builder>
|
|
330
|
+
`;
|
|
331
|
+
}
|
|
332
|
+
render() {
|
|
333
|
+
return html `
|
|
334
|
+
<lit-modal
|
|
335
|
+
.open=${this.isOpenModal}
|
|
336
|
+
.onClose=${() => {
|
|
337
|
+
this.onClose?.();
|
|
338
|
+
}}
|
|
339
|
+
.closeOnOutsideClick=${false}
|
|
340
|
+
.fullScreen=${window.innerWidth <=
|
|
341
|
+
(parseInt(getComputedStyle(document.documentElement).getPropertyValue('--breakpoint-sm')) || 600)}
|
|
342
|
+
style="min-width: 60vw;"
|
|
343
|
+
>
|
|
344
|
+
<lit-modal-header
|
|
345
|
+
style="display: flex; align-items: center; justify-content: space-between; color: var(--text-secondary, #777);"
|
|
346
|
+
>
|
|
347
|
+
${msg('Konfigurace') + ' - DataGrid'}
|
|
348
|
+
<lit-icon-button
|
|
349
|
+
.icon="${'close'}"
|
|
350
|
+
variant="text"
|
|
351
|
+
color="secondary"
|
|
352
|
+
size="${'small'}"
|
|
353
|
+
@click=${() => this.onClose?.()}
|
|
354
|
+
></lit-icon-button>
|
|
355
|
+
</lit-modal-header>
|
|
356
|
+
<lit-modal-body>
|
|
357
|
+
<div style="display: flex; flex-direction: column; gap: 0.5rem">
|
|
358
|
+
<div class="settings-tabs">
|
|
359
|
+
<lit-tabs-overview
|
|
360
|
+
.tabs="${this._getTabDefinitions()}"
|
|
361
|
+
.initialSelectedTabId="${this.activeTab}"
|
|
362
|
+
.userLang="${'cs'}"
|
|
363
|
+
.allowedLang="${['cs']}"
|
|
364
|
+
>
|
|
365
|
+
<div slot="general">${this._renderGeneralSettings()}</div>
|
|
366
|
+
<div slot="alwaysFilter">${this._renderAlwaysFilterTab()}</div>
|
|
367
|
+
</lit-tabs-overview>
|
|
260
368
|
</div>
|
|
261
369
|
</div>
|
|
262
370
|
</lit-modal-body>
|
|
@@ -265,15 +373,16 @@ let DataGridSettings = class DataGridSettings extends LitElement {
|
|
|
265
373
|
>
|
|
266
374
|
<lit-button
|
|
267
375
|
.label="${msg('Uložit')}"
|
|
268
|
-
.icon="
|
|
269
|
-
.size="
|
|
376
|
+
.icon="check"
|
|
377
|
+
.size="medium"
|
|
270
378
|
@click=${() => this.trySendSettingsUpdate()}
|
|
271
379
|
></lit-button>
|
|
272
380
|
<lit-button
|
|
381
|
+
color="secondary"
|
|
273
382
|
.label="${msg('Zrušit')}"
|
|
274
|
-
variant="
|
|
275
|
-
.icon="
|
|
276
|
-
.size="
|
|
383
|
+
variant="text"
|
|
384
|
+
.icon="close"
|
|
385
|
+
.size="medium"
|
|
277
386
|
@click=${() => this.discardChanges()}
|
|
278
387
|
></lit-button>
|
|
279
388
|
</lit-modal-footer>
|
|
@@ -281,7 +390,21 @@ let DataGridSettings = class DataGridSettings extends LitElement {
|
|
|
281
390
|
`;
|
|
282
391
|
}
|
|
283
392
|
};
|
|
284
|
-
DataGridSettings.styles = [
|
|
393
|
+
DataGridSettings.styles = [
|
|
394
|
+
css `
|
|
395
|
+
/* Tab content styles */
|
|
396
|
+
.tab-content {
|
|
397
|
+
padding: 1rem;
|
|
398
|
+
height: calc(100% - 3rem);
|
|
399
|
+
overflow-y: auto;
|
|
400
|
+
background-color: var(--background-paper, #fff);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.settings-tabs {
|
|
404
|
+
height: 400px;
|
|
405
|
+
}
|
|
406
|
+
`,
|
|
407
|
+
];
|
|
285
408
|
__decorate([
|
|
286
409
|
property({ type: Function })
|
|
287
410
|
], DataGridSettings.prototype, "onClose", void 0);
|
|
@@ -319,14 +442,23 @@ __decorate([
|
|
|
319
442
|
property({ type: Boolean })
|
|
320
443
|
], DataGridSettings.prototype, "hideFooter", void 0);
|
|
321
444
|
__decorate([
|
|
322
|
-
property({ type:
|
|
445
|
+
property({ type: Object })
|
|
323
446
|
], DataGridSettings.prototype, "alwaysFilter", void 0);
|
|
447
|
+
__decorate([
|
|
448
|
+
property({ type: Array })
|
|
449
|
+
], DataGridSettings.prototype, "columns", void 0);
|
|
324
450
|
__decorate([
|
|
325
451
|
state()
|
|
326
452
|
], DataGridSettings.prototype, "isOpenModal", void 0);
|
|
327
453
|
__decorate([
|
|
328
454
|
state()
|
|
329
455
|
], DataGridSettings.prototype, "localSettingsValue", void 0);
|
|
456
|
+
__decorate([
|
|
457
|
+
state()
|
|
458
|
+
], DataGridSettings.prototype, "activeTab", void 0);
|
|
459
|
+
__decorate([
|
|
460
|
+
state()
|
|
461
|
+
], DataGridSettings.prototype, "alwaysFilterActive", void 0);
|
|
330
462
|
__decorate([
|
|
331
463
|
state()
|
|
332
464
|
], DataGridSettings.prototype, "originalValues", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-grid-settings.js","sourceRoot":"","sources":["../../../src/components/components-settings/data-grid-settings.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"data-grid-settings.js","sourceRoot":"","sources":["../../../src/components/components-settings/data-grid-settings.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAGpC,YAAY;AACZ,OAAO,2BAA2B,CAAC;AACnC,OAAO,oDAAoD,CAAC;AAC5D,OAAO,4BAA4B,CAAC;AACpC,OAAO,iCAAiC,CAAC;AACzC,OAAO,2BAA2B,CAAC;AACnC,OAAO,kCAAkC,CAAC;AAC1C,OAAO,kCAAkC,CAAC;AAC1C,OAAO,gCAAgC,CAAC;AACxC,OAAO,2BAA2B,CAAC;AACnC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,OAAO,yBAAyB,CAAC;AAkB1B,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAE2B,2BAAsB,GA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|
2
2
|
import { FromSchema } from 'json-schema-to-ts';
|
|
3
|
-
import { litSectionTabSchema } from '../../schemas/index.js';
|
|
3
|
+
import { litSectionTabSchema, litFilterBuilderSchema } from '../../schemas/index.js';
|
|
4
|
+
import { TCaseVariable } from '../lit-case-variables-tab.js';
|
|
4
5
|
import '../../shared/lit-icon.js';
|
|
5
6
|
import '../../shared/lit-input.js';
|
|
7
|
+
import '../../shared/lit-select.js';
|
|
8
|
+
import '../../shared/lit-toggle.js';
|
|
9
|
+
import '../../shared/lit-select-field.js';
|
|
10
|
+
import '../../shared/lit-text-field.js';
|
|
11
|
+
import '../lit-filter-builder.js';
|
|
6
12
|
import '../../shared/simple-popper.js';
|
|
13
|
+
import '../lit-tabs-overview.js';
|
|
7
14
|
import '../../assets/illustration/not-found.js';
|
|
8
15
|
import '../../assets/illustration/settings-illustration.js';
|
|
9
16
|
import '../../shared/lit-menu.js';
|
|
@@ -18,28 +25,48 @@ import '../../shared/lit-modal-header.js';
|
|
|
18
25
|
import '../../shared/lit-modal-footer.js';
|
|
19
26
|
import '../../shared/lit-modal-body.js';
|
|
20
27
|
import '../../shared/lit-label.js';
|
|
28
|
+
export type GridFilterDataType = FromSchema<typeof litFilterBuilderSchema>;
|
|
29
|
+
export type HideTabWhenType = boolean | GridFilterDataType;
|
|
21
30
|
export type SectionTabSettingsProps = {
|
|
22
31
|
settingsValue?: FromSchema<typeof litSectionTabSchema>;
|
|
23
32
|
onSettingsChanged?: Function;
|
|
24
33
|
allowedLang: string[];
|
|
25
34
|
showAutomaticHeightOptionInSettings?: boolean;
|
|
35
|
+
variables: TCaseVariable[];
|
|
36
|
+
onClose?: () => void;
|
|
37
|
+
userLang: string;
|
|
26
38
|
};
|
|
27
39
|
export declare class SectionTabSettings extends LitElement {
|
|
28
40
|
settingsValue?: FromSchema<typeof litSectionTabSchema>;
|
|
29
41
|
onSettingsChangedModal?: Function;
|
|
30
42
|
showAutomaticHeightOptionInSettings: boolean;
|
|
31
43
|
allowedLang: string[];
|
|
44
|
+
variables: TCaseVariable[];
|
|
32
45
|
onClose: (() => void) | undefined;
|
|
46
|
+
userLang: string;
|
|
33
47
|
private isOpen;
|
|
48
|
+
private showHideCondition;
|
|
34
49
|
private filterText;
|
|
35
50
|
private localSettingsValue?;
|
|
36
51
|
private isOpenModal;
|
|
52
|
+
private filterData;
|
|
53
|
+
private activeTab;
|
|
54
|
+
static styles: import("lit").CSSResult[];
|
|
37
55
|
updated(changedProperties: Map<string, any>): void;
|
|
38
56
|
private trySendSettingsUpdate;
|
|
57
|
+
private _getFilterFieldsFromVariables;
|
|
58
|
+
private _onFilterChange;
|
|
59
|
+
private _getTabDefinitions;
|
|
39
60
|
private updateLocalSettings;
|
|
40
61
|
private closePopover;
|
|
41
62
|
private toggleCustomPopover;
|
|
42
63
|
private discardChanges;
|
|
64
|
+
private _resetConditionBuilderState;
|
|
65
|
+
private _renderHideWhenControl;
|
|
66
|
+
private _toggleCondition;
|
|
67
|
+
private _clearCondition;
|
|
68
|
+
private _convertToFilterBuilderData;
|
|
69
|
+
private _renderGeneralSettings;
|
|
43
70
|
render(): TemplateResult;
|
|
44
71
|
}
|
|
45
72
|
declare global {
|