overview-components 0.9.0 → 1.0.1
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/generated/locales/de.d.ts +9 -0
- package/dist/assets/generated/locales/de.d.ts.map +1 -1
- package/dist/assets/generated/locales/de.js +9 -0
- package/dist/assets/generated/locales/de.js.map +1 -1
- package/dist/assets/generated/locales/en.d.ts +17 -8
- package/dist/assets/generated/locales/en.d.ts.map +1 -1
- package/dist/assets/generated/locales/en.js +18 -9
- package/dist/assets/generated/locales/en.js.map +1 -1
- package/dist/assets/generated/locales/pl.d.ts +9 -0
- package/dist/assets/generated/locales/pl.d.ts.map +1 -1
- package/dist/assets/generated/locales/pl.js +9 -0
- package/dist/assets/generated/locales/pl.js.map +1 -1
- package/dist/assets/generated/locales/sk.d.ts +9 -0
- package/dist/assets/generated/locales/sk.d.ts.map +1 -1
- package/dist/assets/generated/locales/sk.js +9 -0
- package/dist/assets/generated/locales/sk.js.map +1 -1
- package/dist/assets/ilustration/no-content.d.ts +6 -0
- package/dist/assets/ilustration/no-content.d.ts.map +1 -0
- package/dist/assets/ilustration/no-content.js +167 -0
- package/dist/assets/ilustration/no-content.js.map +1 -0
- package/dist/assets/ilustration/no-preview.d.ts +1 -0
- package/dist/assets/ilustration/no-preview.d.ts.map +1 -1
- package/dist/assets/ilustration/no-preview.js +116 -114
- package/dist/assets/ilustration/no-preview.js.map +1 -1
- package/dist/assets/ilustration/not-found.d.ts +1 -0
- package/dist/assets/ilustration/not-found.d.ts.map +1 -1
- package/dist/assets/ilustration/not-found.js +89 -86
- package/dist/assets/ilustration/not-found.js.map +1 -1
- package/dist/components/lit-attachments-tab.d.ts +29 -15
- package/dist/components/lit-attachments-tab.d.ts.map +1 -1
- package/dist/components/lit-attachments-tab.js +352 -318
- package/dist/components/lit-attachments-tab.js.map +1 -1
- package/dist/components/lit-case-variables-tab.d.ts +4 -23
- package/dist/components/lit-case-variables-tab.d.ts.map +1 -1
- package/dist/components/lit-case-variables-tab.js +148 -224
- package/dist/components/lit-case-variables-tab.js.map +1 -1
- package/dist/components/lit-chart.d.ts +46 -0
- package/dist/components/lit-chart.d.ts.map +1 -0
- package/dist/components/lit-chart.js +423 -0
- package/dist/components/lit-chart.js.map +1 -0
- package/dist/components/lit-data-grid-tanstack.d.ts +56 -7
- package/dist/components/lit-data-grid-tanstack.d.ts.map +1 -1
- package/dist/components/lit-data-grid-tanstack.js +748 -564
- package/dist/components/lit-data-grid-tanstack.js.map +1 -1
- package/dist/components/lit-section-tab.d.ts +22 -0
- package/dist/components/lit-section-tab.d.ts.map +1 -0
- package/dist/components/lit-section-tab.js +70 -0
- package/dist/components/lit-section-tab.js.map +1 -0
- package/dist/components/lit-tabs-overview.d.ts +33 -0
- package/dist/components/lit-tabs-overview.d.ts.map +1 -0
- package/dist/components/lit-tabs-overview.js +143 -0
- package/dist/components/lit-tabs-overview.js.map +1 -0
- package/dist/components/react-wrappers/chart.d.ts +3 -0
- package/dist/components/react-wrappers/chart.d.ts.map +1 -0
- package/dist/components/react-wrappers/chart.js +9 -0
- package/dist/components/react-wrappers/chart.js.map +1 -0
- package/dist/components/react-wrappers/section-tab.d.ts +3 -0
- package/dist/components/react-wrappers/section-tab.d.ts.map +1 -0
- package/dist/components/react-wrappers/section-tab.js +9 -0
- package/dist/components/react-wrappers/section-tab.js.map +1 -0
- package/dist/components/react-wrappers/tabs-overview.d.ts +3 -0
- package/dist/components/react-wrappers/tabs-overview.d.ts.map +1 -0
- package/dist/components/react-wrappers/tabs-overview.js +9 -0
- package/dist/components/react-wrappers/tabs-overview.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/scripts/translate-locales.js +1 -0
- package/dist/scripts/translate-locales.js.map +1 -1
- package/dist/shared/filter-inputs.d.ts +14 -4
- package/dist/shared/filter-inputs.d.ts.map +1 -1
- package/dist/shared/filter-inputs.js +207 -51
- package/dist/shared/filter-inputs.js.map +1 -1
- package/dist/shared/lit-button.js +2 -2
- 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 +224 -0
- package/dist/shared/lit-case-variables-tab-cell.js.map +1 -0
- package/dist/shared/lit-custom-popper.d.ts.map +1 -1
- package/dist/shared/lit-custom-popper.js +31 -31
- package/dist/shared/lit-custom-popper.js.map +1 -1
- package/dist/shared/lit-data-grid-action-buttons-popover.d.ts +14 -5
- package/dist/shared/lit-data-grid-action-buttons-popover.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-action-buttons-popover.js +197 -102
- package/dist/shared/lit-data-grid-action-buttons-popover.js.map +1 -1
- package/dist/shared/lit-data-grid-density-popover.d.ts +18 -0
- package/dist/shared/lit-data-grid-density-popover.d.ts.map +1 -0
- package/dist/shared/lit-data-grid-density-popover.js +102 -0
- package/dist/shared/lit-data-grid-density-popover.js.map +1 -0
- package/dist/shared/lit-data-grid-export-popover.d.ts +3 -0
- package/dist/shared/lit-data-grid-export-popover.d.ts.map +1 -1
- package/dist/shared/lit-data-grid-export-popover.js +41 -46
- package/dist/shared/lit-data-grid-export-popover.js.map +1 -1
- package/dist/shared/lit-loader.d.ts +7 -0
- package/dist/shared/lit-loader.d.ts.map +1 -0
- package/dist/shared/lit-loader.js +51 -0
- package/dist/shared/lit-loader.js.map +1 -0
- package/dist/shared/lit-loading-bar.d.ts +20 -0
- package/dist/shared/lit-loading-bar.d.ts.map +1 -0
- package/dist/shared/lit-loading-bar.js +92 -0
- package/dist/shared/lit-loading-bar.js.map +1 -0
- package/dist/shared/lit-menu-item.d.ts +24 -0
- package/dist/shared/lit-menu-item.d.ts.map +1 -0
- package/dist/shared/lit-menu-item.js +77 -0
- package/dist/shared/lit-menu-item.js.map +1 -0
- package/dist/shared/lit-menu.d.ts +6 -0
- package/dist/shared/lit-menu.d.ts.map +1 -0
- package/dist/shared/lit-menu.js +38 -0
- package/dist/shared/lit-menu.js.map +1 -0
- package/dist/shared/lit-overflow-tooltip.d.ts +16 -0
- package/dist/shared/lit-overflow-tooltip.d.ts.map +1 -0
- package/dist/shared/lit-overflow-tooltip.js +86 -0
- package/dist/shared/lit-overflow-tooltip.js.map +1 -0
- package/dist/shared/lit-select.d.ts +24 -3
- package/dist/shared/lit-select.d.ts.map +1 -1
- package/dist/shared/lit-select.js +234 -130
- package/dist/shared/lit-select.js.map +1 -1
- package/dist/shared/lit-tooltip.d.ts.map +1 -1
- package/dist/shared/lit-tooltip.js +4 -3
- package/dist/shared/lit-tooltip.js.map +1 -1
- package/dist/utils/custom-filters.d.ts +3 -0
- package/dist/utils/custom-filters.d.ts.map +1 -0
- package/dist/{components → utils}/custom-filters.js +6 -0
- package/dist/utils/custom-filters.js.map +1 -0
- package/dist/utils/date.d.ts +1 -1
- package/dist/utils/date.d.ts.map +1 -1
- package/dist/utils/date.js +6 -3
- package/dist/utils/date.js.map +1 -1
- package/dist/utils/localization.d.ts.map +1 -1
- package/dist/utils/localization.js +195 -5
- package/dist/utils/localization.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/custom-filters.d.ts +0 -2
- package/dist/components/custom-filters.d.ts.map +0 -1
- package/dist/components/custom-filters.js.map +0 -1
|
@@ -0,0 +1,224 @@
|
|
|
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/lit-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 `<lit-tooltip label="${this.tooltip ? this.tooltip : ''}" variant="right">
|
|
35
|
+
<lit-icon size="12px" icon="informative"></lit-icon>
|
|
36
|
+
</lit-tooltip>`
|
|
37
|
+
: ''}
|
|
38
|
+
</div>
|
|
39
|
+
`;
|
|
40
|
+
}
|
|
41
|
+
getCellButton() {
|
|
42
|
+
return html `
|
|
43
|
+
<lit-button
|
|
44
|
+
.fullWidth="${this.buttonFullWidth}"
|
|
45
|
+
variant="${this.buttonVariant}"
|
|
46
|
+
label="${this.headerName ? this.headerName : ''}"
|
|
47
|
+
@click=${this.buttonFn}
|
|
48
|
+
></lit-button>
|
|
49
|
+
`;
|
|
50
|
+
}
|
|
51
|
+
getCellLink() {
|
|
52
|
+
return html `
|
|
53
|
+
<div>${this.getHeader()}</div>
|
|
54
|
+
<a class="link" href=${this.value ? this.value : ''} target="_blank">
|
|
55
|
+
${this.value ? this.value : ''}
|
|
56
|
+
</a>
|
|
57
|
+
`;
|
|
58
|
+
}
|
|
59
|
+
getCellValue() {
|
|
60
|
+
return html `
|
|
61
|
+
<div>${this.getHeader()}</div>
|
|
62
|
+
<div
|
|
63
|
+
style="${this.valueStyle ? styleMap(this.valueStyle) : ''}"
|
|
64
|
+
class="process-data-value"
|
|
65
|
+
>
|
|
66
|
+
${this.value ? this.value : ''}
|
|
67
|
+
</div>
|
|
68
|
+
`;
|
|
69
|
+
}
|
|
70
|
+
getCellDate() {
|
|
71
|
+
return html `
|
|
72
|
+
<div>${this.getHeader()}</div>
|
|
73
|
+
<div
|
|
74
|
+
style="${this.valueStyle ? styleMap(this.valueStyle) : ''}"
|
|
75
|
+
class="process-data-value"
|
|
76
|
+
>
|
|
77
|
+
${this.value
|
|
78
|
+
? formatDate(this.value, this.userLang || 'cs', !!this.dateFormat)
|
|
79
|
+
: ''}
|
|
80
|
+
</div>
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
const breakpointIndex = this.BREAKPOINTS.indexOf(this.currentBreakpoint);
|
|
85
|
+
const spanSize = this.BREAKPOINTS.slice(0, breakpointIndex + 1)
|
|
86
|
+
.reverse()
|
|
87
|
+
.map((bp) => this.size?.[bp])
|
|
88
|
+
.find((size) => size !== undefined) ?? 2;
|
|
89
|
+
const classes = `cell--span${spanSize} cell`;
|
|
90
|
+
return html `
|
|
91
|
+
<div
|
|
92
|
+
class="${classes}"
|
|
93
|
+
style="${styleMap((this.cellStyle || {}))}"
|
|
94
|
+
>
|
|
95
|
+
${this.type === 'button'
|
|
96
|
+
? this.getCellButton()
|
|
97
|
+
: this.type === 'link'
|
|
98
|
+
? this.getCellLink()
|
|
99
|
+
: this.type === 'date'
|
|
100
|
+
? this.getCellDate()
|
|
101
|
+
: this.getCellValue()}
|
|
102
|
+
</div>
|
|
103
|
+
`;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
LitCaseVariablesTabCell.styles = css `
|
|
107
|
+
:host {
|
|
108
|
+
font-family: 'Inter', sans-serif;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.grid-container {
|
|
112
|
+
display: grid;
|
|
113
|
+
justify-content: start;
|
|
114
|
+
align-items: start;
|
|
115
|
+
gap: 0.5rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.process-data-heading {
|
|
119
|
+
font-size: 0.75rem;
|
|
120
|
+
color: var(--text-secondary, #5d6371);
|
|
121
|
+
font-weight: 400 !important;
|
|
122
|
+
display: flex;
|
|
123
|
+
gap: 5px;
|
|
124
|
+
align-items: center;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.process-data-value {
|
|
128
|
+
font-size: 0.8125rem;
|
|
129
|
+
color: var(--text-primary, #111827);
|
|
130
|
+
margin: 0;
|
|
131
|
+
padding-top: 0.3125rem;
|
|
132
|
+
font-weight: 500 !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.status {
|
|
136
|
+
color: var(--color-primary-main, #76b703);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.link {
|
|
140
|
+
font-size: 0.8125rem;
|
|
141
|
+
text-decoration: none;
|
|
142
|
+
color: inherit;
|
|
143
|
+
border-bottom: 0.0625rem solid var(--color-primary-main, #76b703);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.cell {
|
|
147
|
+
padding: 5px;
|
|
148
|
+
border-radius: 8px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.link:hover {
|
|
152
|
+
color: var(--color-primary-main, #76b703);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.cell--span1 {
|
|
156
|
+
grid-column: span 1 / span 1;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.cell--span2 {
|
|
160
|
+
grid-column: span 2 / span 2;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.cell--span3 {
|
|
164
|
+
grid-column: span 3 / span 3;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.cell--span4 {
|
|
168
|
+
grid-column: span 4 / span 4;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
`;
|
|
172
|
+
__decorate([
|
|
173
|
+
property({ type: String })
|
|
174
|
+
], LitCaseVariablesTabCell.prototype, "field", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
property({ type: String })
|
|
177
|
+
], LitCaseVariablesTabCell.prototype, "type", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
property({ type: Function })
|
|
180
|
+
], LitCaseVariablesTabCell.prototype, "headerName", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
property({ type: Function })
|
|
183
|
+
], LitCaseVariablesTabCell.prototype, "value", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
property({ type: Object })
|
|
186
|
+
], LitCaseVariablesTabCell.prototype, "size", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
property({ type: String })
|
|
189
|
+
], LitCaseVariablesTabCell.prototype, "buttonVariant", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
property({ type: Boolean })
|
|
192
|
+
], LitCaseVariablesTabCell.prototype, "buttonFullWidth", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
property({ type: Function })
|
|
195
|
+
], LitCaseVariablesTabCell.prototype, "buttonFn", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
property({ type: String })
|
|
198
|
+
], LitCaseVariablesTabCell.prototype, "href", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
property({ type: Object })
|
|
201
|
+
], LitCaseVariablesTabCell.prototype, "headerStyle", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
property({ type: Object })
|
|
204
|
+
], LitCaseVariablesTabCell.prototype, "valueStyle", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
property({ type: Object })
|
|
207
|
+
], LitCaseVariablesTabCell.prototype, "cellStyle", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
property({ type: Function })
|
|
210
|
+
], LitCaseVariablesTabCell.prototype, "tooltip", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
property({ type: String })
|
|
213
|
+
], LitCaseVariablesTabCell.prototype, "dateFormat", void 0);
|
|
214
|
+
__decorate([
|
|
215
|
+
property({ type: String })
|
|
216
|
+
], LitCaseVariablesTabCell.prototype, "userLang", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
property({ type: String })
|
|
219
|
+
], LitCaseVariablesTabCell.prototype, "currentBreakpoint", void 0);
|
|
220
|
+
LitCaseVariablesTabCell = __decorate([
|
|
221
|
+
customElement('lit-case-variables-tab-cell')
|
|
222
|
+
], LitCaseVariablesTabCell);
|
|
223
|
+
export { LitCaseVariablesTabCell };
|
|
224
|
+
//# sourceMappingURL=lit-case-variables-tab-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lit-case-variables-tab-cell.js","sourceRoot":"","sources":["../../src/shared/lit-case-variables-tab-cell.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAa,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAC;AACnE,aAAa;AACb,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAGlC,QAAQ;AACR,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAsBvC,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU;IAAhD;;QAEyB,SAAI,GAA2C,QAAQ,CAAC;QAIxD,kBAAa,GAAmB,WAAW,CAAC;QAC3C,oBAAe,GAAa,I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AAQ,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,CA6KnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-custom-popper.d.ts","sourceRoot":"","sources":["../../src/shared/lit-custom-popper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,
|
|
1
|
+
{"version":3,"file":"lit-custom-popper.d.ts","sourceRoot":"","sources":["../../src/shared/lit-custom-popper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAA+C,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE1F,qBACa,eAAgB,SAAQ,UAAU;IACd,IAAI,UAAS;IACd,SAAS,EAAE,SAAS,CAAa;IAChC,WAAW,UAAS;IAEjD,OAAO,CAAC,gBAAgB,CAA4B;IACpD,OAAO,CAAC,aAAa,CAA4B;IAEjD,MAAM,CAAC,MAAM,0BA0BX;IAEF,iBAAiB;IAKjB,oBAAoB;IAKpB,YAAY;IASZ,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC;YAMnD,oBAAoB;IAkBlC,OAAO,CAAC,kBAAkB,CAWxB;IAEF,OAAO,CAAC,WAAW;IAKnB,MAAM;CAQT"}
|
|
@@ -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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-custom-popper.js","sourceRoot":"","sources":["../../src/shared/lit-custom-popper.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"lit-custom-popper.js","sourceRoot":"","sources":["../../src/shared/lit-custom-popper.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAoB,MAAM,kBAAkB,CAAC;AAGnF,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QAC0B,SAAI,GAAG,KAAK,CAAC,CAAC,qCAAqC;QACpD,cAAS,GAAc,SAAS,CAAC,CAAC,0BAA0B;QAC3D,gBAAW,GAAG,KAAK,CAAC,CAAC,kCAAkC;QAE5E,qBAAgB,GAAuB,IAAI,CAAC;QAC5C,kBAAa,GAAuB,IAAI,CAAC;QAyEzC,uBAAkB,GAAG,CAAC,KAAiB,EAAQ,EAAE;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AAHxC,eAAe;IAD3B,aAAa,CAAC,mBAAmB,CAAC;GACtB,eAAe,CAyG3B"}
|
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import './lit-custom-popper.js';
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
3
2
|
import './lit-icon.js';
|
|
4
3
|
import './lit-icon-button.js';
|
|
5
|
-
import './lit-tooltip.js';
|
|
6
|
-
import './lit-select.js';
|
|
7
4
|
export declare class LitDataGridActionButtonsPopover extends LitElement {
|
|
8
5
|
pin: () => void;
|
|
9
6
|
group: () => void;
|
|
10
|
-
private isOpen;
|
|
11
7
|
header: any;
|
|
12
8
|
table: any;
|
|
9
|
+
private isOpen;
|
|
10
|
+
private isSubmenuOpen;
|
|
11
|
+
private currentAggregation;
|
|
12
|
+
private mainTrigger;
|
|
13
|
+
private mainMenuEl;
|
|
14
|
+
private submenuTriggerEl;
|
|
15
|
+
private submenuEl;
|
|
13
16
|
static styles: import("lit").CSSResult[];
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
disconnectedCallback(): void;
|
|
19
|
+
private _handleOutsideClick;
|
|
14
20
|
private toggleCustomPopover;
|
|
15
21
|
private closePopover;
|
|
16
22
|
private handleAction;
|
|
23
|
+
private openSubmenu;
|
|
24
|
+
private setAggregation;
|
|
25
|
+
protected updated(changedProps: PropertyValues): void;
|
|
17
26
|
render(): import("lit-html").TemplateResult<1>;
|
|
18
27
|
}
|
|
19
28
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-data-grid-action-buttons-popover.d.ts","sourceRoot":"","sources":["../../src/shared/lit-data-grid-action-buttons-popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"lit-data-grid-action-buttons-popover.d.ts","sourceRoot":"","sources":["../../src/shared/lit-data-grid-action-buttons-popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAI5D,OAAO,eAAe,CAAC;AACvB,OAAO,sBAAsB,CAAC;AAE9B,qBACa,+BAAgC,SAAQ,UAAU;IAC7B,GAAG,EAAE,MAAM,IAAI,CAAY;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAY;IAC/B,MAAM,EAAE,GAAG,CAAQ;IACnB,KAAK,EAAE,GAAG,CAAQ;IAErC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,aAAa,CAAS;IAE9B,OAAO,CAAC,kBAAkB,CAAc;IAGjD,OAAO,CAAC,WAAW,CAAqB;IAGxC,OAAO,CAAC,UAAU,CAAkB;IAGpC,OAAO,CAAC,gBAAgB,CAAkB;IAG1C,OAAO,CAAC,SAAS,CAAkB;IAEnC,MAAM,CAAC,MAAM,4BA0EX;IAEF,iBAAiB,IAAI,IAAI;IAQzB,oBAAoB;IAKpB,OAAO,CAAC,mBAAmB,CAMzB;IAEF,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,cAAc;IAkBtB,SAAS,CAAC,OAAO,CAAC,YAAY,EAAE,cAAc;IA4B9C,MAAM;CAwFT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,sCAAsC,EAAE,+BAA+B,CAAC;KAC3E;CACJ"}
|