overview-components 1.0.0 → 1.0.2
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/lit-attachments-tab.d.ts +0 -1
- package/dist/components/lit-attachments-tab.d.ts.map +1 -1
- package/dist/components/lit-attachments-tab.js +219 -218
- package/dist/components/lit-attachments-tab.js.map +1 -1
- package/dist/components/lit-badge.d.ts +25 -0
- package/dist/components/lit-badge.d.ts.map +1 -0
- package/dist/components/lit-badge.js +95 -0
- package/dist/components/lit-badge.js.map +1 -0
- package/dist/components/lit-case-variables-tab.d.ts +5 -20
- package/dist/components/lit-case-variables-tab.d.ts.map +1 -1
- package/dist/components/lit-case-variables-tab.js +10 -22
- package/dist/components/lit-case-variables-tab.js.map +1 -1
- package/dist/components/lit-data-grid-tanstack.d.ts +10 -3
- package/dist/components/lit-data-grid-tanstack.d.ts.map +1 -1
- package/dist/components/lit-data-grid-tanstack.js +586 -471
- package/dist/components/lit-data-grid-tanstack.js.map +1 -1
- package/dist/components/lit-tabs-overview.d.ts +0 -1
- package/dist/components/lit-tabs-overview.d.ts.map +1 -1
- package/dist/components/lit-tabs-overview.js +0 -1
- package/dist/components/lit-tabs-overview.js.map +1 -1
- package/dist/components/react-wrappers/badge.d.ts +3 -0
- package/dist/components/react-wrappers/badge.d.ts.map +1 -0
- package/dist/components/react-wrappers/badge.js +9 -0
- package/dist/components/react-wrappers/badge.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/shared/filter-inputs.d.ts +5 -13
- package/dist/shared/filter-inputs.d.ts.map +1 -1
- package/dist/shared/filter-inputs.js +93 -275
- package/dist/shared/filter-inputs.js.map +1 -1
- package/dist/shared/lit-case-variables-tab-cell.d.ts +58 -0
- package/dist/shared/lit-case-variables-tab-cell.d.ts.map +1 -0
- package/dist/shared/lit-case-variables-tab-cell.js +226 -0
- package/dist/shared/lit-case-variables-tab-cell.js.map +1 -0
- package/dist/shared/lit-custom-popper.js +31 -31
- package/dist/shared/lit-data-grid-density-popover.d.ts +1 -4
- package/dist/shared/lit-data-grid-density-popover.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-density-popover.js +34 -52
- package/dist/shared/lit-data-grid-density-popover.js.map +1 -1
- package/dist/shared/lit-data-grid-export-popover.d.ts +1 -5
- package/dist/shared/lit-data-grid-export-popover.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-export-popover.js +28 -51
- package/dist/shared/lit-data-grid-export-popover.js.map +1 -1
- package/dist/shared/lit-data-grid-row-actions.d.ts +31 -0
- package/dist/shared/lit-data-grid-row-actions.d.ts.map +1 -0
- package/dist/shared/lit-data-grid-row-actions.js +71 -0
- package/dist/shared/lit-data-grid-row-actions.js.map +1 -0
- package/dist/shared/lit-date-picker.d.ts +33 -0
- package/dist/shared/lit-date-picker.d.ts.map +1 -0
- package/dist/shared/lit-date-picker.js +248 -0
- package/dist/shared/lit-date-picker.js.map +1 -0
- package/dist/shared/lit-menu-item.js +1 -1
- package/dist/shared/lit-menu-item.js.map +1 -1
- package/dist/shared/lit-overflow-tooltip.d.ts +1 -1
- package/dist/shared/lit-overflow-tooltip.d.ts.map +1 -1
- package/dist/shared/lit-overflow-tooltip.js +16 -16
- package/dist/shared/lit-overflow-tooltip.js.map +1 -1
- package/dist/shared/lit-select.d.ts +4 -1
- package/dist/shared/lit-select.d.ts.map +1 -1
- package/dist/shared/lit-select.js +15 -2
- package/dist/shared/lit-select.js.map +1 -1
- package/dist/shared/simple-popper.d.ts +36 -0
- package/dist/shared/simple-popper.d.ts.map +1 -0
- package/dist/shared/simple-popper.js +207 -0
- package/dist/shared/simple-popper.js.map +1 -0
- package/dist/shared/simple-tooltip.d.ts +34 -0
- package/dist/shared/simple-tooltip.d.ts.map +1 -0
- package/dist/shared/simple-tooltip.js +200 -0
- package/dist/shared/simple-tooltip.js.map +1 -0
- package/dist/utils/getOverviewValue.d.ts.map +1 -1
- package/dist/utils/getOverviewValue.js +0 -1
- package/dist/utils/getOverviewValue.js.map +1 -1
- package/package.json +1 -1
- package/dist/shared/lit-tooltip.d.ts +0 -20
- package/dist/shared/lit-tooltip.d.ts.map +0 -1
- package/dist/shared/lit-tooltip.js +0 -123
- package/dist/shared/lit-tooltip.js.map +0 -1
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, html, css } from 'lit';
|
|
8
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
9
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
10
|
+
// components
|
|
11
|
+
import '../shared/lit-icon.js';
|
|
12
|
+
import '../shared/lit-icon.js';
|
|
13
|
+
import '../shared/lit-button.js';
|
|
14
|
+
import '../shared/simple-tooltip.js';
|
|
15
|
+
// utils
|
|
16
|
+
import { formatDate } from '../utils/date.js';
|
|
17
|
+
let LitCaseVariablesTabCell = class LitCaseVariablesTabCell extends LitElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.type = 'string';
|
|
21
|
+
this.buttonVariant = 'contained';
|
|
22
|
+
this.buttonFullWidth = true;
|
|
23
|
+
this.userLang = 'cs';
|
|
24
|
+
this.BREAKPOINTS = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
25
|
+
}
|
|
26
|
+
getHeader() {
|
|
27
|
+
return html `
|
|
28
|
+
<div
|
|
29
|
+
style="${this.headerStyle ? styleMap(this.headerStyle) : ''}"
|
|
30
|
+
class="process-data-heading"
|
|
31
|
+
>
|
|
32
|
+
${this.headerName ? this.headerName : ''}
|
|
33
|
+
${this.tooltip
|
|
34
|
+
? html `
|
|
35
|
+
<lit-icon size="12px" icon="informative"></lit-icon>
|
|
36
|
+
<simple-tooltip placement="right"
|
|
37
|
+
>${this.tooltip ? this.tooltip : ''}</simple-tooltip
|
|
38
|
+
>
|
|
39
|
+
`
|
|
40
|
+
: ''}
|
|
41
|
+
</div>
|
|
42
|
+
`;
|
|
43
|
+
}
|
|
44
|
+
getCellButton() {
|
|
45
|
+
return html `
|
|
46
|
+
<lit-button
|
|
47
|
+
.fullWidth="${this.buttonFullWidth}"
|
|
48
|
+
variant="${this.buttonVariant}"
|
|
49
|
+
label="${this.headerName ? this.headerName : ''}"
|
|
50
|
+
@click=${this.buttonFn}
|
|
51
|
+
></lit-button>
|
|
52
|
+
`;
|
|
53
|
+
}
|
|
54
|
+
getCellLink() {
|
|
55
|
+
return html `
|
|
56
|
+
<div>${this.getHeader()}</div>
|
|
57
|
+
<a class="link" href=${this.value ? this.value : ''} target="_blank">
|
|
58
|
+
${this.value ? this.value : ''}
|
|
59
|
+
</a>
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
getCellValue() {
|
|
63
|
+
return html `
|
|
64
|
+
<div>${this.getHeader()}</div>
|
|
65
|
+
<div
|
|
66
|
+
style="${this.valueStyle ? styleMap(this.valueStyle) : ''}"
|
|
67
|
+
class="process-data-value"
|
|
68
|
+
>
|
|
69
|
+
${this.value ? this.value : ''}
|
|
70
|
+
</div>
|
|
71
|
+
`;
|
|
72
|
+
}
|
|
73
|
+
getCellDate() {
|
|
74
|
+
return html `
|
|
75
|
+
<div>${this.getHeader()}</div>
|
|
76
|
+
<div
|
|
77
|
+
style="${this.valueStyle ? styleMap(this.valueStyle) : ''}"
|
|
78
|
+
class="process-data-value"
|
|
79
|
+
>
|
|
80
|
+
${this.value
|
|
81
|
+
? formatDate(this.value, this.userLang || 'cs', !!this.dateFormat)
|
|
82
|
+
: ''}
|
|
83
|
+
</div>
|
|
84
|
+
`;
|
|
85
|
+
}
|
|
86
|
+
render() {
|
|
87
|
+
const breakpointIndex = this.BREAKPOINTS.indexOf(this.currentBreakpoint);
|
|
88
|
+
const spanSize = this.BREAKPOINTS.slice(0, breakpointIndex + 1)
|
|
89
|
+
.reverse()
|
|
90
|
+
.map((bp) => this.size?.[bp])
|
|
91
|
+
.find((size) => size !== undefined) ?? 2;
|
|
92
|
+
const classes = `cell--span${spanSize} cell`;
|
|
93
|
+
return html `
|
|
94
|
+
<div
|
|
95
|
+
class="${classes}"
|
|
96
|
+
style="${styleMap((this.cellStyle || {}))}"
|
|
97
|
+
>
|
|
98
|
+
${this.type === 'button'
|
|
99
|
+
? this.getCellButton()
|
|
100
|
+
: this.type === 'link'
|
|
101
|
+
? this.getCellLink()
|
|
102
|
+
: this.type === 'date'
|
|
103
|
+
? this.getCellDate()
|
|
104
|
+
: this.getCellValue()}
|
|
105
|
+
</div>
|
|
106
|
+
`;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
LitCaseVariablesTabCell.styles = css `
|
|
110
|
+
:host {
|
|
111
|
+
font-family: 'Inter', sans-serif;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.grid-container {
|
|
115
|
+
display: grid;
|
|
116
|
+
justify-content: start;
|
|
117
|
+
align-items: start;
|
|
118
|
+
gap: 0.5rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.process-data-heading {
|
|
122
|
+
font-size: 0.75rem;
|
|
123
|
+
color: var(--text-secondary, #5d6371);
|
|
124
|
+
font-weight: 400 !important;
|
|
125
|
+
display: flex;
|
|
126
|
+
gap: 5px;
|
|
127
|
+
align-items: center;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.process-data-value {
|
|
131
|
+
font-size: 0.8125rem;
|
|
132
|
+
color: var(--text-primary, #111827);
|
|
133
|
+
margin: 0;
|
|
134
|
+
padding-top: 0.3125rem;
|
|
135
|
+
font-weight: 500 !important;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.status {
|
|
139
|
+
color: var(--color-primary-main, #76b703);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.link {
|
|
143
|
+
font-size: 0.8125rem;
|
|
144
|
+
text-decoration: none;
|
|
145
|
+
color: inherit;
|
|
146
|
+
border-bottom: 0.0625rem solid var(--color-primary-main, #76b703);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.cell {
|
|
150
|
+
padding: 5px;
|
|
151
|
+
border-radius: 8px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.link:hover {
|
|
155
|
+
color: var(--color-primary-main, #76b703);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.cell--span1 {
|
|
159
|
+
grid-column: span 1 / span 1;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.cell--span2 {
|
|
163
|
+
grid-column: span 2 / span 2;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.cell--span3 {
|
|
167
|
+
grid-column: span 3 / span 3;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.cell--span4 {
|
|
171
|
+
grid-column: span 4 / span 4;
|
|
172
|
+
}
|
|
173
|
+
`;
|
|
174
|
+
__decorate([
|
|
175
|
+
property({ type: String })
|
|
176
|
+
], LitCaseVariablesTabCell.prototype, "field", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
property({ type: String })
|
|
179
|
+
], LitCaseVariablesTabCell.prototype, "type", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
property({ type: Function })
|
|
182
|
+
], LitCaseVariablesTabCell.prototype, "headerName", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
property({ type: Function })
|
|
185
|
+
], LitCaseVariablesTabCell.prototype, "value", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
property({ type: Object })
|
|
188
|
+
], LitCaseVariablesTabCell.prototype, "size", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
property({ type: String })
|
|
191
|
+
], LitCaseVariablesTabCell.prototype, "buttonVariant", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
property({ type: Boolean })
|
|
194
|
+
], LitCaseVariablesTabCell.prototype, "buttonFullWidth", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
property({ type: Function })
|
|
197
|
+
], LitCaseVariablesTabCell.prototype, "buttonFn", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
property({ type: String })
|
|
200
|
+
], LitCaseVariablesTabCell.prototype, "href", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
property({ type: Object })
|
|
203
|
+
], LitCaseVariablesTabCell.prototype, "headerStyle", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
property({ type: Object })
|
|
206
|
+
], LitCaseVariablesTabCell.prototype, "valueStyle", void 0);
|
|
207
|
+
__decorate([
|
|
208
|
+
property({ type: Object })
|
|
209
|
+
], LitCaseVariablesTabCell.prototype, "cellStyle", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
property({ type: Function })
|
|
212
|
+
], LitCaseVariablesTabCell.prototype, "tooltip", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
property({ type: String })
|
|
215
|
+
], LitCaseVariablesTabCell.prototype, "dateFormat", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
property({ type: String })
|
|
218
|
+
], LitCaseVariablesTabCell.prototype, "userLang", void 0);
|
|
219
|
+
__decorate([
|
|
220
|
+
property({ type: String })
|
|
221
|
+
], LitCaseVariablesTabCell.prototype, "currentBreakpoint", void 0);
|
|
222
|
+
LitCaseVariablesTabCell = __decorate([
|
|
223
|
+
customElement('lit-case-variables-tab-cell')
|
|
224
|
+
], LitCaseVariablesTabCell);
|
|
225
|
+
export { LitCaseVariablesTabCell };
|
|
226
|
+
//# sourceMappingURL=lit-case-variables-tab-cell.js.map
|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DAAgB;AACjB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAAe;AACd;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8DAA6C;AAC3C;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gEAAkC;AAChC;IAA7B,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;yDAAuB;AACxB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAAe;AACd;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4DAAsB;AACrB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2DAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DAAoB;AACjB;IAA7B,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;wDAAkB;AACnB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2DAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yDAA0B;AACzB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kEAAsD;AAhBxE,uBAAuB;IADnC,aAAa,CAAC,6BAA6B,CAAC;GAChC,uBAAuB,CA+KnC"}
|
|
@@ -66,40 +66,40 @@ let LitCustomPopper = class LitCustomPopper extends LitElement {
|
|
|
66
66
|
this.dispatchEvent(new CustomEvent('close', { detail: { closedBy: 'outside' } }));
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return html `
|
|
70
|
-
<slot name="reference"></slot>
|
|
71
|
-
<div class="popper ${this.open ? 'open' : ''}">
|
|
72
|
-
<slot name="content"></slot>
|
|
73
|
-
</div>
|
|
69
|
+
return html `
|
|
70
|
+
<slot name="reference"></slot>
|
|
71
|
+
<div class="popper ${this.open ? 'open' : ''}">
|
|
72
|
+
<slot name="content"></slot>
|
|
73
|
+
</div>
|
|
74
74
|
`;
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
LitCustomPopper.styles = css `
|
|
78
|
-
:host {
|
|
79
|
-
display: block;
|
|
80
|
-
position: relative;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.popper {
|
|
84
|
-
position: absolute;
|
|
85
|
-
min-width: max-content;
|
|
86
|
-
width: 100%;
|
|
87
|
-
top: 0;
|
|
88
|
-
left: 0;
|
|
89
|
-
background-color: var(--background-paper, #fff);
|
|
90
|
-
border-radius: 0.5rem;
|
|
91
|
-
padding: 0.375rem;
|
|
92
|
-
box-shadow: var(--box-shadow, 0px 4px 6px rgba(0, 0, 0, 0.1));
|
|
93
|
-
z-index: 9999;
|
|
94
|
-
display: none;
|
|
95
|
-
opacity: 0;
|
|
96
|
-
transition: opacity 0.2s ease-in-out;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.popper.open {
|
|
100
|
-
display: block;
|
|
101
|
-
opacity: 1;
|
|
102
|
-
}
|
|
77
|
+
LitCustomPopper.styles = css `
|
|
78
|
+
:host {
|
|
79
|
+
display: block;
|
|
80
|
+
position: relative;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.popper {
|
|
84
|
+
position: absolute;
|
|
85
|
+
min-width: max-content;
|
|
86
|
+
width: 100%;
|
|
87
|
+
top: 0;
|
|
88
|
+
left: 0;
|
|
89
|
+
background-color: var(--background-paper, #fff);
|
|
90
|
+
border-radius: 0.5rem;
|
|
91
|
+
padding: 0.375rem;
|
|
92
|
+
box-shadow: var(--box-shadow, 0px 4px 6px rgba(0, 0, 0, 0.1));
|
|
93
|
+
z-index: 9999;
|
|
94
|
+
display: none;
|
|
95
|
+
opacity: 0;
|
|
96
|
+
transition: opacity 0.2s ease-in-out;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.popper.open {
|
|
100
|
+
display: block;
|
|
101
|
+
opacity: 1;
|
|
102
|
+
}
|
|
103
103
|
`;
|
|
104
104
|
__decorate([
|
|
105
105
|
property({ type: Boolean })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import './
|
|
2
|
+
import './simple-popper.js';
|
|
3
3
|
import './lit-button.js';
|
|
4
4
|
import './lit-responsive-button.js';
|
|
5
5
|
import './lit-menu.js';
|
|
@@ -8,10 +8,7 @@ import type { Density } from '../components/lit-data-grid-tanstack.js';
|
|
|
8
8
|
export declare class LitDataGridDensityPopover extends LitElement {
|
|
9
9
|
setDensity: (density: Density) => void;
|
|
10
10
|
density?: Density;
|
|
11
|
-
private isOpen;
|
|
12
11
|
static styles: import("lit").CSSResult[];
|
|
13
|
-
private toggleCustomPopover;
|
|
14
|
-
private closePopover;
|
|
15
12
|
private handleDensity;
|
|
16
13
|
render(): import("lit-html").TemplateResult<1>;
|
|
17
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-data-grid-density-popover.d.ts","sourceRoot":"","sources":["../../src/shared/lit-data-grid-density-popover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,
|
|
1
|
+
{"version":3,"file":"lit-data-grid-density-popover.d.ts","sourceRoot":"","sources":["../../src/shared/lit-data-grid-density-popover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,4BAA4B,CAAC;AACpC,OAAO,eAAe,CAAC;AACvB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAEvE,qBACa,yBAA0B,SAAQ,UAAU;IACvB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAmB;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;IAE9C,MAAM,CAAC,MAAM,4BAOX;IAEF,OAAO,CAAC,aAAa;IAQrB,MAAM;CAqCT"}
|
|
@@ -5,9 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { LitElement, html, css } from 'lit';
|
|
8
|
-
import { customElement, property
|
|
8
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
9
9
|
import { msg } from '@lit/localize';
|
|
10
|
-
import './
|
|
10
|
+
import './simple-popper.js';
|
|
11
11
|
import './lit-button.js';
|
|
12
12
|
import './lit-responsive-button.js';
|
|
13
13
|
import './lit-menu.js';
|
|
@@ -16,13 +16,6 @@ let LitDataGridDensityPopover = class LitDataGridDensityPopover extends LitEleme
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
this.setDensity = (density) => { };
|
|
19
|
-
this.isOpen = false;
|
|
20
|
-
}
|
|
21
|
-
toggleCustomPopover() {
|
|
22
|
-
this.isOpen = !this.isOpen;
|
|
23
|
-
}
|
|
24
|
-
closePopover() {
|
|
25
|
-
this.isOpen = false;
|
|
26
19
|
}
|
|
27
20
|
handleDensity(density) {
|
|
28
21
|
if (typeof this.setDensity === 'function') {
|
|
@@ -31,50 +24,42 @@ let LitDataGridDensityPopover = class LitDataGridDensityPopover extends LitEleme
|
|
|
31
24
|
else {
|
|
32
25
|
console.error('setDensity is not a function');
|
|
33
26
|
}
|
|
34
|
-
this.closePopover(); // Close the popper
|
|
35
27
|
}
|
|
36
28
|
render() {
|
|
37
29
|
return html `
|
|
38
|
-
<lit-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
variant="text"
|
|
46
|
-
label=${msg('Zobrazení')}
|
|
47
|
-
icon="rowmedium"
|
|
48
|
-
slot="reference"
|
|
49
|
-
@click=${() => this.toggleCustomPopover()}
|
|
50
|
-
></lit-responsive-button>
|
|
30
|
+
<lit-responsive-button
|
|
31
|
+
size="small"
|
|
32
|
+
variant="text"
|
|
33
|
+
label=${msg('Zobrazení')}
|
|
34
|
+
icon="rowmedium"
|
|
35
|
+
slot="reference"
|
|
36
|
+
></lit-responsive-button>
|
|
51
37
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
</lit-custom-popper>
|
|
38
|
+
<simple-popper placement="top-end">
|
|
39
|
+
<lit-menu>
|
|
40
|
+
<lit-menu-item
|
|
41
|
+
id="${1}"
|
|
42
|
+
icon="rowmall"
|
|
43
|
+
.onClick="${() => this.handleDensity('compact')}"
|
|
44
|
+
.isActive="${this.density === 'compact'}"
|
|
45
|
+
>${msg('Kompaktní')}
|
|
46
|
+
</lit-menu-item>
|
|
47
|
+
<lit-menu-item
|
|
48
|
+
id="${2}"
|
|
49
|
+
icon="rowmedium"
|
|
50
|
+
.onClick="${() => this.handleDensity('standard')}"
|
|
51
|
+
.isActive="${this.density === 'standard'}"
|
|
52
|
+
>${msg('Standardní')}
|
|
53
|
+
</lit-menu-item>
|
|
54
|
+
<lit-menu-item
|
|
55
|
+
id="${3}"
|
|
56
|
+
icon="rowlarge"
|
|
57
|
+
.onClick="${() => this.handleDensity('comfort')}"
|
|
58
|
+
.isActive="${this.density === 'comfort'}"
|
|
59
|
+
>${msg('Komfortní')}
|
|
60
|
+
</lit-menu-item>
|
|
61
|
+
</lit-menu>
|
|
62
|
+
</simple-popper>
|
|
78
63
|
`;
|
|
79
64
|
}
|
|
80
65
|
};
|
|
@@ -92,9 +77,6 @@ __decorate([
|
|
|
92
77
|
__decorate([
|
|
93
78
|
property({ type: String })
|
|
94
79
|
], LitDataGridDensityPopover.prototype, "density", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
state()
|
|
97
|
-
], LitDataGridDensityPopover.prototype, "isOpen", void 0);
|
|
98
80
|
LitDataGridDensityPopover = __decorate([
|
|
99
81
|
customElement('lit-data-grid-density-popover')
|
|
100
82
|
], LitDataGridDensityPopover);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-data-grid-density-popover.js","sourceRoot":"","sources":["../../src/shared/lit-data-grid-density-popover.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"lit-data-grid-density-popover.js","sourceRoot":"","sources":["../../src/shared/lit-data-grid-density-popover.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,4BAA4B,CAAC;AACpC,OAAO,eAAe,CAAC;AACvB,OAAO,oBAAoB,CAAC;AAIrB,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,UAAU;IAAlD;;QAC2B,eAAU,GAA+B,CAAC,OAAO,EAAE,EAAE,GAAE,CAAC,CAAC;IAyD3F,CAAC;IA7CW,aAAa,CAAC,OAAgB;QAClC,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,UAAU,EAAE,CAAC;YACxC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,oCAAoC;QAClE,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;IACL,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAA;;;;wBAIK,GAAG,CAAC,WAAW,CAAC;;;;;;;;8BAQV,CAAC;;oCAEK,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC;qCAClC,IAAI,CAAC,OAAO,KAAK,SAAS;2BACpC,GAAG,CAAC,WAAW,CAAC;;;8BAGb,CAAC;;oCAEK,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC;qCACnC,IAAI,CAAC,OAAO,KAAK,UAAU;2BACrC,GAAG,CAAC,YAAY,CAAC;;;8BAGd,CAAC;;oCAEK,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC;qCAClC,IAAI,CAAC,OAAO,KAAK,SAAS;2BACpC,GAAG,CAAC,WAAW,CAAC;;;;SAIlC,CAAC;IACN,CAAC;;AArDM,gCAAM,GAAG;IACZ,UAAU;IACV,GAAG,CAAA;;;;SAIF;CACJ,AAPY,CAOX;AAV4B;IAA7B,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;6DAA0D;AAC3D;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DAAmB;AAFrC,yBAAyB;IADrC,aAAa,CAAC,+BAA+B,CAAC;GAClC,yBAAyB,CA0DrC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
-
import './
|
|
2
|
+
import './simple-popper.js';
|
|
3
3
|
import './lit-button.js';
|
|
4
4
|
import './lit-responsive-button.js';
|
|
5
5
|
import './lit-menu.js';
|
|
@@ -8,10 +8,6 @@ export declare class LitDataGridExportPopover extends LitElement {
|
|
|
8
8
|
exportToExcel: () => void;
|
|
9
9
|
exportToCsv: () => void;
|
|
10
10
|
disabledButtons: boolean;
|
|
11
|
-
private isOpen;
|
|
12
|
-
static styles: import("lit").CSSResult[];
|
|
13
|
-
private toggleCustomPopover;
|
|
14
|
-
private closePopover;
|
|
15
11
|
private handleExport;
|
|
16
12
|
render(): import("lit-html").TemplateResult<1>;
|
|
17
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-data-grid-export-popover.d.ts","sourceRoot":"","sources":["../../src/shared/lit-data-grid-export-popover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,
|
|
1
|
+
{"version":3,"file":"lit-data-grid-export-popover.d.ts","sourceRoot":"","sources":["../../src/shared/lit-data-grid-export-popover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,4BAA4B,CAAC;AACpC,OAAO,eAAe,CAAC;AACvB,OAAO,oBAAoB,CAAC;AAE5B,qBACa,wBAAyB,SAAQ,UAAU;IACtB,aAAa,EAAE,MAAM,IAAI,CAAY;IACrC,WAAW,EAAE,MAAM,IAAI,CAAY;IACpC,eAAe,EAAE,OAAO,CAAS;IAE9D,OAAO,CAAC,YAAY;IAIpB,MAAM;CA6BT"}
|
|
@@ -4,10 +4,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { LitElement, html
|
|
8
|
-
import { customElement, property
|
|
7
|
+
import { LitElement, html } from 'lit';
|
|
8
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
9
9
|
import { msg } from '@lit/localize';
|
|
10
|
-
import './
|
|
10
|
+
import './simple-popper.js';
|
|
11
11
|
import './lit-button.js';
|
|
12
12
|
import './lit-responsive-button.js';
|
|
13
13
|
import './lit-menu.js';
|
|
@@ -18,60 +18,40 @@ let LitDataGridExportPopover = class LitDataGridExportPopover extends LitElement
|
|
|
18
18
|
this.exportToExcel = () => { };
|
|
19
19
|
this.exportToCsv = () => { };
|
|
20
20
|
this.disabledButtons = false;
|
|
21
|
-
this.isOpen = false;
|
|
22
|
-
}
|
|
23
|
-
toggleCustomPopover() {
|
|
24
|
-
this.isOpen = !this.isOpen;
|
|
25
|
-
}
|
|
26
|
-
closePopover() {
|
|
27
|
-
this.isOpen = false;
|
|
28
21
|
}
|
|
29
22
|
handleExport(exportFn) {
|
|
30
23
|
exportFn(); // Trigger the provided export function
|
|
31
|
-
this.closePopover(); // Close the popper
|
|
32
24
|
}
|
|
33
25
|
render() {
|
|
34
26
|
return html `
|
|
35
|
-
<lit-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
icon="csv"
|
|
61
|
-
.onClick=${() => this.handleExport(this.exportToExcel)}
|
|
62
|
-
.disabled=${this.disabledButtons}
|
|
63
|
-
>${msg('Export do Excel')}
|
|
64
|
-
</lit-menu-item>
|
|
65
|
-
</lit-menu>
|
|
66
|
-
</div>
|
|
67
|
-
</lit-custom-popper>
|
|
27
|
+
<lit-responsive-button
|
|
28
|
+
size="small"
|
|
29
|
+
variant="text"
|
|
30
|
+
label=${msg('Export')}
|
|
31
|
+
icon="csv"
|
|
32
|
+
slot="reference"
|
|
33
|
+
></lit-responsive-button>
|
|
34
|
+
<simple-popper placement="top-end">
|
|
35
|
+
<lit-menu>
|
|
36
|
+
<lit-menu-item
|
|
37
|
+
id="${1}"
|
|
38
|
+
icon="csv"
|
|
39
|
+
.onClick=${() => this.handleExport(this.exportToCsv)}
|
|
40
|
+
.disabled=${this.disabledButtons}
|
|
41
|
+
>${msg('Export do CSV')}
|
|
42
|
+
</lit-menu-item>
|
|
43
|
+
<lit-menu-item
|
|
44
|
+
id="${1}"
|
|
45
|
+
icon="csv"
|
|
46
|
+
.onClick=${() => this.handleExport(this.exportToExcel)}
|
|
47
|
+
.disabled=${this.disabledButtons}
|
|
48
|
+
>${msg('Export do Excel')}
|
|
49
|
+
</lit-menu-item>
|
|
50
|
+
</lit-menu>
|
|
51
|
+
</simple-popper>
|
|
68
52
|
`;
|
|
69
53
|
}
|
|
70
54
|
};
|
|
71
|
-
LitDataGridExportPopover.styles = [
|
|
72
|
-
// styles,
|
|
73
|
-
css ``,
|
|
74
|
-
];
|
|
75
55
|
__decorate([
|
|
76
56
|
property({ type: Function })
|
|
77
57
|
], LitDataGridExportPopover.prototype, "exportToExcel", void 0);
|
|
@@ -81,9 +61,6 @@ __decorate([
|
|
|
81
61
|
__decorate([
|
|
82
62
|
property({ type: Boolean })
|
|
83
63
|
], LitDataGridExportPopover.prototype, "disabledButtons", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
state()
|
|
86
|
-
], LitDataGridExportPopover.prototype, "isOpen", void 0);
|
|
87
64
|
LitDataGridExportPopover = __decorate([
|
|
88
65
|
customElement('lit-data-grid-export-popover')
|
|
89
66
|
], LitDataGridExportPopover);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-data-grid-export-popover.js","sourceRoot":"","sources":["../../src/shared/lit-data-grid-export-popover.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,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EAAE,QAAQ,EAAE,CAAC;6DAAoC;AACpC;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iEAAkC;AAHrD,wBAAwB;IADpC,aAAa,CAAC,8BAA8B,CAAC;GACjC,wBAAwB,CAsCpC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import './lit-icon-button.js';
|
|
3
|
+
import './lit-responsive-button.js';
|
|
4
|
+
import './lit-menu.js';
|
|
5
|
+
import './lit-menu-item.js';
|
|
6
|
+
import './simple-tooltip.js';
|
|
7
|
+
import './simple-popper.js';
|
|
8
|
+
export type ActionButton = {
|
|
9
|
+
id: string | number;
|
|
10
|
+
icon: string;
|
|
11
|
+
label: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
showInMenu?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type LitDataGridRowActionsProps = {
|
|
17
|
+
buttons: ActionButton[];
|
|
18
|
+
};
|
|
19
|
+
export declare class LitDataGridRowActions extends LitElement {
|
|
20
|
+
buttons: Array<{
|
|
21
|
+
id: string;
|
|
22
|
+
icon: string;
|
|
23
|
+
label: string;
|
|
24
|
+
onClick: () => void;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
showInMenu: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
private handleOnClick;
|
|
29
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=lit-data-grid-row-actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lit-data-grid-row-actions.d.ts","sourceRoot":"","sources":["../../src/shared/lit-data-grid-row-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,sBAAsB,CAAC;AAC9B,OAAO,4BAA4B,CAAC;AACpC,OAAO,eAAe,CAAC;AACvB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,oBAAoB,CAAC;AAE5B,MAAM,MAAM,YAAY,GAAG;IACvB,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACrC,OAAO,EAAE,YAAY,EAAE,CAAC;CAC3B,CAAC;AACF,qBACa,qBAAsB,SAAQ,UAAU;IACtB,OAAO,EAAE,KAAK,CAAC;QACtC,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC;QAClB,UAAU,EAAE,OAAO,CAAC;KACvB,CAAC,CAAM;IAER,OAAO,CAAC,aAAa;IAIrB,MAAM;CA4CT"}
|