overview-components 0.1.2 → 0.1.4
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/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/components/lit-attachments-tab.d.ts +5 -5
- package/dist/components/lit-attachments-tab.d.ts.map +1 -1
- package/dist/components/lit-attachments-tab.js +121 -158
- package/dist/components/lit-attachments-tab.js.map +1 -1
- package/dist/components/lit-case-variables-tab.d.ts +0 -5
- package/dist/components/lit-case-variables-tab.d.ts.map +1 -1
- package/dist/components/lit-case-variables-tab.js +17 -56
- package/dist/components/lit-case-variables-tab.js.map +1 -1
- package/dist/components/lit-data-grid-tanstack.d.ts +0 -1
- package/dist/components/lit-data-grid-tanstack.d.ts.map +1 -1
- package/dist/components/lit-data-grid-tanstack.js +529 -530
- package/dist/components/lit-data-grid-tanstack.js.map +1 -1
- package/dist/components/lit-section-tab.d.ts +17 -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 +17 -6
- package/dist/components/lit-tabs-overview.d.ts.map +1 -1
- package/dist/components/lit-tabs-overview.js +90 -33
- package/dist/components/lit-tabs-overview.js.map +1 -1
- 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/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/lit-select.d.ts.map +1 -1
- package/dist/shared/lit-select.js +119 -117
- package/dist/shared/lit-select.js.map +1 -1
- package/dist/shared/lit-tooltip.js +50 -50
- package/package.json +1 -1
|
@@ -36,131 +36,133 @@ let LitSelect = class LitSelect extends LitElement {
|
|
|
36
36
|
render() {
|
|
37
37
|
const optionsWithAll = [...this.options];
|
|
38
38
|
const displayValue = this.value === '' ? '' : optionsWithAll.find((o) => o.value === this.value)?.label;
|
|
39
|
-
return html `
|
|
40
|
-
<lit-custom-popper
|
|
41
|
-
.open="${this.isOpen}"
|
|
42
|
-
placement="bottom-start"
|
|
43
|
-
@close="${this.closePopover}"
|
|
44
|
-
>
|
|
45
|
-
<div class="custom-icon-wrapper" slot="reference">
|
|
46
|
-
<input
|
|
47
|
-
type="text"
|
|
48
|
-
readonly
|
|
49
|
-
.value="${displayValue || ''}"
|
|
50
|
-
@click="${this.toggleCustomPopover}"
|
|
51
|
-
/>
|
|
52
|
-
<div class="dropdown-icon">
|
|
53
|
-
<lit-icon icon="chevronDownFilled" rotated="true"></lit-icon>
|
|
54
|
-
</div>
|
|
39
|
+
return html `
|
|
40
|
+
<lit-custom-popper
|
|
41
|
+
.open="${this.isOpen}"
|
|
42
|
+
placement="bottom-start"
|
|
43
|
+
@close="${this.closePopover}"
|
|
44
|
+
>
|
|
45
|
+
<div class="custom-icon-wrapper" slot="reference">
|
|
46
|
+
<input
|
|
47
|
+
type="text"
|
|
48
|
+
readonly
|
|
49
|
+
.value="${displayValue || ''}"
|
|
50
|
+
@click="${this.toggleCustomPopover}"
|
|
51
|
+
/>
|
|
52
|
+
<div class="dropdown-icon">
|
|
53
|
+
<lit-icon icon="chevronDownFilled" rotated="true"></lit-icon>
|
|
54
|
+
</div>
|
|
55
55
|
${this.value
|
|
56
|
-
? html `
|
|
57
|
-
<div class="custom-icon" @click="${this.clearValue}">
|
|
58
|
-
<lit-icon-button
|
|
59
|
-
icon="close"
|
|
60
|
-
size="small"
|
|
61
|
-
variant="text"
|
|
62
|
-
></lit-icon-button>
|
|
63
|
-
</div>
|
|
56
|
+
? html `
|
|
57
|
+
<div class="custom-icon" @click="${this.clearValue}">
|
|
58
|
+
<lit-icon-button
|
|
59
|
+
icon="close"
|
|
60
|
+
size="small"
|
|
61
|
+
variant="text"
|
|
62
|
+
></lit-icon-button>
|
|
63
|
+
</div>
|
|
64
64
|
`
|
|
65
|
-
: ''}
|
|
66
|
-
</div>
|
|
67
|
-
<div slot="content">
|
|
68
|
-
<div class="menu" style="overflow-y: auto">
|
|
69
|
-
${optionsWithAll.map((option) => html `
|
|
70
|
-
<div
|
|
65
|
+
: ''}
|
|
66
|
+
</div>
|
|
67
|
+
<div slot="content">
|
|
68
|
+
<div class="menu" style="overflow-y: auto">
|
|
69
|
+
${optionsWithAll.map((option) => html `
|
|
70
|
+
<div
|
|
71
71
|
class="menu-item ${this.value === option.value ||
|
|
72
72
|
(option.value === 'All' && this.value === '')
|
|
73
73
|
? 'selected'
|
|
74
|
-
: ''}"
|
|
75
|
-
@click="${() => this.selectOption(option.value)}"
|
|
76
|
-
>
|
|
77
|
-
${option.label}
|
|
78
|
-
</div>
|
|
79
|
-
`)}
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
</lit-custom-popper>
|
|
74
|
+
: ''}"
|
|
75
|
+
@click="${() => this.selectOption(option.value)}"
|
|
76
|
+
>
|
|
77
|
+
${option.label}
|
|
78
|
+
</div>
|
|
79
|
+
`)}
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</lit-custom-popper>
|
|
83
83
|
`;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
LitSelect.styles = css `
|
|
87
|
-
.custom-icon-wrapper {
|
|
88
|
-
position: relative;
|
|
89
|
-
width: 100%;
|
|
90
|
-
display: inline-block;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
input {
|
|
94
|
-
padding: 0.5rem 0.75rem;
|
|
95
|
-
border: 0.0625rem solid var(--color-divider, #d0d3db);
|
|
96
|
-
border-radius: 0.25rem;
|
|
97
|
-
min-width: 70px;
|
|
98
|
-
width: -webkit-fill-available;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
input:hover {
|
|
102
|
-
border: 0.0625rem solid var(--color-secondary-main, #111827);
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
input:focus {
|
|
107
|
-
outline: none;
|
|
108
|
-
border: 0.0625rem solid var(--color-secondary-dark, #010204);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.custom-icon-wrapper .custom-icon {
|
|
112
|
-
display: none;
|
|
113
|
-
position: absolute;
|
|
114
|
-
right: 30px;
|
|
115
|
-
top: 50%;
|
|
116
|
-
transform: translateY(-50%);
|
|
117
|
-
cursor: pointer;
|
|
118
|
-
pointer-events: auto;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
86
|
+
LitSelect.styles = css `
|
|
87
|
+
.custom-icon-wrapper {
|
|
88
|
+
position: relative;
|
|
89
|
+
width: 100%;
|
|
90
|
+
display: inline-block;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
input {
|
|
94
|
+
padding: 0.5rem 0.75rem;
|
|
95
|
+
border: 0.0625rem solid var(--color-divider, #d0d3db);
|
|
96
|
+
border-radius: 0.25rem;
|
|
97
|
+
min-width: 70px;
|
|
98
|
+
width: -webkit-fill-available;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
input:hover {
|
|
102
|
+
border: 0.0625rem solid var(--color-secondary-main, #111827);
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
input:focus {
|
|
107
|
+
outline: none;
|
|
108
|
+
border: 0.0625rem solid var(--color-secondary-dark, #010204);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.custom-icon-wrapper .custom-icon {
|
|
112
|
+
display: none;
|
|
113
|
+
position: absolute;
|
|
114
|
+
right: 30px;
|
|
115
|
+
top: 50%;
|
|
116
|
+
transform: translateY(-50%);
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
pointer-events: auto;
|
|
119
|
+
background: var(--background-paper);
|
|
120
|
+
}
|
|
121
|
+
.custom-icon-wrapper:hover .custom-icon {
|
|
122
|
+
display: inline-block;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.custom-icon-wrapper .dropdown-icon {
|
|
126
|
+
position: absolute;
|
|
127
|
+
right: 10px;
|
|
128
|
+
top: 50%;
|
|
129
|
+
transform: translateY(-50%);
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
background: var(--background-paper);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.menu {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
background: var(--background-paper, #fff);
|
|
138
|
+
border-radius: 4px;
|
|
139
|
+
|
|
140
|
+
max-height: 200px;
|
|
141
|
+
overflow-y: auto;
|
|
142
|
+
z-index: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.menu-item {
|
|
146
|
+
padding: 0.375rem 0.625rem;
|
|
147
|
+
margin: 0 0 0.25rem;
|
|
148
|
+
font-size: 0.8125rem;
|
|
149
|
+
font-weight: 500;
|
|
150
|
+
text-align: left;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
color: var(--text-primary, #111827);
|
|
153
|
+
transition: background-color 0.2s;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.menu-item:hover {
|
|
157
|
+
background: var(--color-primary-light, #f0fadf);
|
|
158
|
+
border-radius: 4px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.menu-item.selected {
|
|
162
|
+
background: var(--color-primary-light, #f0fadf); /* Rovnaký background ako hover */
|
|
163
|
+
font-weight: 600; /* Zvýraznenie písma */
|
|
164
|
+
border-radius: 4px;
|
|
165
|
+
}
|
|
164
166
|
`;
|
|
165
167
|
__decorate([
|
|
166
168
|
property({ type: String })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lit-select.js","sourceRoot":"","sources":["../../src/shared/lit-select.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,wBAAwB,CAAC;AAChC,OAAO,eAAe,CAAC;AACvB,OAAO,sBAAsB,CAAC;AAGvB,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QACyB,UAAK,GAAW,EAAE,CAAC,CAAC,2BAA2B;QAChD,YAAO,GAAuC,EAAE,CAAC,CAAC,WAAW;QAC1D,aAAQ,GAA4B,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC,mBAAmB;QAE9E,WAAM,GAAG,KAAK,CAAC,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"lit-select.js","sourceRoot":"","sources":["../../src/shared/lit-select.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,w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}
|
|
59
59
|
render() {
|
|
60
|
-
return html `
|
|
61
|
-
<div id="trigger" @mouseenter=${this.showTooltip} @mouseleave=${this.hideTooltip}>
|
|
62
|
-
<slot id="trigger" @mouseenter=${this.showTooltip} @mouseleave=${this.hideTooltip}
|
|
63
|
-
>Hover me</slot
|
|
64
|
-
>
|
|
65
|
-
</div>
|
|
66
|
-
<div id="tooltip">
|
|
67
|
-
${this.label}
|
|
68
|
-
<div id="arrow"></div>
|
|
69
|
-
</div>
|
|
60
|
+
return html `
|
|
61
|
+
<div id="trigger" @mouseenter=${this.showTooltip} @mouseleave=${this.hideTooltip}>
|
|
62
|
+
<slot id="trigger" @mouseenter=${this.showTooltip} @mouseleave=${this.hideTooltip}
|
|
63
|
+
>Hover me</slot
|
|
64
|
+
>
|
|
65
|
+
</div>
|
|
66
|
+
<div id="tooltip">
|
|
67
|
+
${this.label}
|
|
68
|
+
<div id="arrow"></div>
|
|
69
|
+
</div>
|
|
70
70
|
`;
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
LitTooltip.styles = css `
|
|
74
|
-
:host {
|
|
75
|
-
display: block;
|
|
76
|
-
max-width: 100%;
|
|
77
|
-
font-family: 'Inter', sans-serif;
|
|
78
|
-
}
|
|
79
|
-
#tooltip {
|
|
80
|
-
position: absolute;
|
|
81
|
-
background: black;
|
|
82
|
-
color: white;
|
|
83
|
-
padding: 8px;
|
|
84
|
-
border-radius: 8px;
|
|
85
|
-
font-size: 12px;
|
|
86
|
-
box-shadow: var(--box-shadow, 0px 4px 6px rgba(0, 0, 0, 0.1));
|
|
87
|
-
|
|
88
|
-
z-index: 1000;
|
|
89
|
-
visibility: hidden;
|
|
90
|
-
opacity: 0;
|
|
91
|
-
overflow-wrap: break-word;
|
|
92
|
-
width: max-content;
|
|
93
|
-
max-width: 300px;
|
|
94
|
-
transition:
|
|
95
|
-
opacity 0.2s ease-in-out,
|
|
96
|
-
visibility 0.2s ease-in-out;
|
|
97
|
-
}
|
|
98
|
-
#tooltip[visible] {
|
|
99
|
-
visibility: visible;
|
|
100
|
-
opacity: 1;
|
|
101
|
-
}
|
|
102
|
-
#trigger {
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
width: 100%;
|
|
105
|
-
}
|
|
106
|
-
#arrow {
|
|
107
|
-
position: absolute;
|
|
108
|
-
background: black;
|
|
109
|
-
width: 8px;
|
|
110
|
-
height: 8px;
|
|
111
|
-
transform: rotate(45deg);
|
|
112
|
-
}
|
|
73
|
+
LitTooltip.styles = css `
|
|
74
|
+
:host {
|
|
75
|
+
display: block;
|
|
76
|
+
max-width: 100%;
|
|
77
|
+
font-family: 'Inter', sans-serif;
|
|
78
|
+
}
|
|
79
|
+
#tooltip {
|
|
80
|
+
position: absolute;
|
|
81
|
+
background: black;
|
|
82
|
+
color: white;
|
|
83
|
+
padding: 8px;
|
|
84
|
+
border-radius: 8px;
|
|
85
|
+
font-size: 12px;
|
|
86
|
+
box-shadow: var(--box-shadow, 0px 4px 6px rgba(0, 0, 0, 0.1));
|
|
87
|
+
|
|
88
|
+
z-index: 1000;
|
|
89
|
+
visibility: hidden;
|
|
90
|
+
opacity: 0;
|
|
91
|
+
overflow-wrap: break-word;
|
|
92
|
+
width: max-content;
|
|
93
|
+
max-width: 300px;
|
|
94
|
+
transition:
|
|
95
|
+
opacity 0.2s ease-in-out,
|
|
96
|
+
visibility 0.2s ease-in-out;
|
|
97
|
+
}
|
|
98
|
+
#tooltip[visible] {
|
|
99
|
+
visibility: visible;
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
#trigger {
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
width: 100%;
|
|
105
|
+
}
|
|
106
|
+
#arrow {
|
|
107
|
+
position: absolute;
|
|
108
|
+
background: black;
|
|
109
|
+
width: 8px;
|
|
110
|
+
height: 8px;
|
|
111
|
+
transform: rotate(45deg);
|
|
112
|
+
}
|
|
113
113
|
`;
|
|
114
114
|
__decorate([
|
|
115
115
|
property({ type: String })
|