overview-components 1.0.75 → 1.0.77
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/_virtual/FileSaver.min.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +4 -0
- package/dist/assets/icons/iconGlyphs.js +680 -0
- package/dist/components/lit-attachments-tab.js +11 -7
- package/dist/components/lit-badge.js +10 -7
- package/dist/components/lit-case-variables-tab.js +23 -19
- package/dist/components/lit-chart.js +24 -21
- package/dist/components/lit-data-grid-tanstack.js +42 -37
- package/dist/components/lit-filter-modal.js +6 -2
- package/dist/components/lit-multiselect-item.js +7 -3
- package/dist/components/lit-section-tab.js +15 -11
- package/dist/components/lit-tabs-overview.js +9 -5
- package/dist/components/react-wrappers/attachments-tab.js +1 -1
- package/dist/components/react-wrappers/badge.js +1 -1
- package/dist/components/react-wrappers/button.js +3 -3
- package/dist/components/react-wrappers/case-variables-tab.js +3 -3
- package/dist/components/react-wrappers/chart.js +3 -3
- package/dist/components/react-wrappers/data-grid-tanstack.js +1 -1
- package/dist/components/react-wrappers/filter-modal.js +4 -4
- package/dist/components/react-wrappers/progress-bar.js +5 -5
- package/dist/components/react-wrappers/section-tab.js +4 -4
- package/dist/components/react-wrappers/tabs-overview.js +3 -3
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -32
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +390 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +131 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist/node_modules/@lit/localize/init/install.js +11 -0
- package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
- package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
- package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
- package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
- package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
- package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
- package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
- package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
- package/dist/node_modules/@lit/react/create-component.js +35 -0
- package/dist/node_modules/@lit/reactive-element/css-tag.js +32 -24
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +4 -3
- package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
- package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
- package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
- package/dist/node_modules/lit-element/lit-element.js +51 -0
- package/dist/node_modules/lit-html/directives/class-map.js +34 -0
- package/dist/node_modules/lit-html/lit-html.js +75 -74
- package/dist/node_modules/luxon/src/datetime.js +1793 -0
- package/dist/node_modules/luxon/src/duration.js +723 -0
- package/dist/node_modules/luxon/src/errors.js +40 -0
- package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
- package/dist/node_modules/luxon/src/impl/diff.js +36 -0
- package/dist/node_modules/luxon/src/impl/digits.js +74 -0
- package/dist/node_modules/luxon/src/impl/english.js +138 -0
- package/dist/node_modules/luxon/src/impl/formats.js +150 -0
- package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
- package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
- package/dist/node_modules/luxon/src/impl/locale.js +282 -0
- package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
- package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
- package/dist/node_modules/luxon/src/impl/util.js +206 -0
- package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
- package/dist/node_modules/luxon/src/info.js +180 -0
- package/dist/node_modules/luxon/src/interval.js +466 -0
- package/dist/node_modules/luxon/src/settings.js +150 -0
- package/dist/node_modules/luxon/src/zone.js +88 -0
- package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
- package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
- package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
- package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
- package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
- package/dist/shared/lit-button.js +11 -8
- package/dist/shared/lit-checkbox.js +155 -0
- package/dist/shared/lit-icon.js +282 -0
- package/dist/shared/lit-input.js +211 -0
- package/dist/shared/lit-menu.js +40 -0
- package/dist/shared/lit-modal.js +128 -0
- package/dist/shared/lit-pill.js +86 -0
- package/dist/shared/lit-progress-bar.js +10 -7
- package/dist/shared/lit-select.js +339 -0
- package/dist/shared/lit-tooltip.js +137 -0
- package/dist/shared/simple-tooltip.js +33 -31
- package/dist/shared/styles/button-shared-styles.js +6 -3
- package/dist/styles.js +174 -0
- package/dist/utils/custom-filters.js +8 -7
- package/dist/utils/date.js +6 -5
- package/dist/utils/getOperatorByType.js +4 -3
- package/dist/utils/localization.js +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as r } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as d } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as u } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
3
5
|
import { property as e } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
import m from "./styles/button-shared-styles.js";
|
|
7
|
+
import { css as h } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
8
|
+
var b = Object.defineProperty, f = Object.getOwnPropertyDescriptor, i = (s, n, a, l) => {
|
|
9
|
+
for (var o = l > 1 ? void 0 : l ? f(n, a) : n, p = s.length - 1, c; p >= 0; p--)
|
|
7
10
|
(c = s[p]) && (o = (l ? c(n, a, o) : c(o)) || o);
|
|
8
11
|
return l && o && b(n, a, o), o;
|
|
9
12
|
};
|
|
@@ -40,8 +43,8 @@ let t = class extends d {
|
|
|
40
43
|
};
|
|
41
44
|
t.styles = [
|
|
42
45
|
// styles,
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
m,
|
|
47
|
+
h`
|
|
45
48
|
/* Basic button styles */
|
|
46
49
|
button {
|
|
47
50
|
line-height: 1.5rem;
|
|
@@ -132,7 +135,7 @@ i([
|
|
|
132
135
|
e({ type: Boolean })
|
|
133
136
|
], t.prototype, "isLoading", 2);
|
|
134
137
|
t = i([
|
|
135
|
-
|
|
138
|
+
u("lit-button")
|
|
136
139
|
], t);
|
|
137
140
|
export {
|
|
138
141
|
t as LitButton
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as p } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as d } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as h } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { property as o } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
+
import { classMap as b } from "../node_modules/lit-html/directives/class-map.js";
|
|
7
|
+
import { css as m } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
8
|
+
var u = Object.defineProperty, f = Object.getOwnPropertyDescriptor, a = (e, i, c, n) => {
|
|
9
|
+
for (var r = n > 1 ? void 0 : n ? f(i, c) : i, s = e.length - 1, l; s >= 0; s--)
|
|
10
|
+
(l = e[s]) && (r = (n ? l(i, c, r) : l(r)) || r);
|
|
11
|
+
return n && r && u(i, c, r), r;
|
|
12
|
+
};
|
|
13
|
+
let t = class extends d {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.disabled = !1, this.checked = !1, this.indeterminate = !1, this.onChange = () => {
|
|
16
|
+
}, this.value = "", this.label = "";
|
|
17
|
+
}
|
|
18
|
+
// 1) Manually sync the indeterminate property on the <input>
|
|
19
|
+
updated(e) {
|
|
20
|
+
super.updated(e);
|
|
21
|
+
const i = this.renderRoot.querySelector(
|
|
22
|
+
'input[type="checkbox"]'
|
|
23
|
+
);
|
|
24
|
+
i && (i.indeterminate = this.indeterminate);
|
|
25
|
+
}
|
|
26
|
+
// 2) Intercept clicks when we're indeterminate
|
|
27
|
+
_onClick(e) {
|
|
28
|
+
this.indeterminate && (e.preventDefault(), this.indeterminate = !1, this._notifyChange(e));
|
|
29
|
+
}
|
|
30
|
+
// 3) Handle the native change event when not indeterminate
|
|
31
|
+
_onChange(e) {
|
|
32
|
+
this.checked = e.target.checked, this._notifyChange(e);
|
|
33
|
+
}
|
|
34
|
+
_notifyChange(e) {
|
|
35
|
+
this.dispatchEvent(
|
|
36
|
+
new CustomEvent("change", {
|
|
37
|
+
bubbles: !0,
|
|
38
|
+
composed: !0,
|
|
39
|
+
detail: e.target.checked
|
|
40
|
+
})
|
|
41
|
+
), typeof this.onChange == "function" && this.onChange(e);
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return p`
|
|
45
|
+
<div class="container">
|
|
46
|
+
${this.label ? p`
|
|
47
|
+
<lit-label label="${this.label}" ?disabled=${this.disabled}> </lit-label>
|
|
48
|
+
` : ""}
|
|
49
|
+
<input
|
|
50
|
+
class=${b({
|
|
51
|
+
indeterminate: this.indeterminate,
|
|
52
|
+
marginLeft: this.label !== ""
|
|
53
|
+
})}
|
|
54
|
+
type="checkbox"
|
|
55
|
+
.checked=${this.checked}
|
|
56
|
+
?disabled=${this.disabled}
|
|
57
|
+
@click=${this._onClick}
|
|
58
|
+
@change=${this._onChange}
|
|
59
|
+
.value=${this.value}
|
|
60
|
+
aria-label="${this.label || "checkbox"}"
|
|
61
|
+
aria-checked="${this.indeterminate ? "mixed" : this.checked ? "true" : "false"}"
|
|
62
|
+
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
`;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
t.styles = m`
|
|
69
|
+
:host {
|
|
70
|
+
display: inline-block;
|
|
71
|
+
font-family: Inter, sans-serif;
|
|
72
|
+
}
|
|
73
|
+
.container {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
}
|
|
77
|
+
/* Hide the default checkbox */
|
|
78
|
+
.marginLeft {
|
|
79
|
+
margin-left: 0.75rem;
|
|
80
|
+
}
|
|
81
|
+
input[type='checkbox'] {
|
|
82
|
+
position: relative;
|
|
83
|
+
appearance: none;
|
|
84
|
+
width: 20px;
|
|
85
|
+
height: 20px;
|
|
86
|
+
border: 1px solid var(--text-primary, #111827);
|
|
87
|
+
border-radius: 6px;
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
background-color: var(--background-paper, #fff);
|
|
92
|
+
transition: all 0.1s ease-in-out;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
input[type='checkbox'].indeterminate {
|
|
97
|
+
background-color: var(--color-primary-main, #76b703);
|
|
98
|
+
border-color: var(--color-primary-main, #76b703);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
input[type='checkbox'].indeterminate::after {
|
|
102
|
+
content: '−';
|
|
103
|
+
color: var(--background-default, #111827);
|
|
104
|
+
font-size: 16px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Custom checkmark */
|
|
108
|
+
input[type='checkbox']::after {
|
|
109
|
+
content: '✓';
|
|
110
|
+
color: var(--background-paper, #111827);
|
|
111
|
+
font-size: 16px;
|
|
112
|
+
visible: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* Checked state */
|
|
116
|
+
input[type='checkbox']:checked {
|
|
117
|
+
background-color: var(--color-primary-main, #76b703);
|
|
118
|
+
border-color: var(--color-primary-main, #76b703);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
input[type='checkbox']:checked::after {
|
|
122
|
+
visible: visibility;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Disabled state */
|
|
126
|
+
input[type='checkbox']:disabled {
|
|
127
|
+
background-color: var(--background-paper, #fff);
|
|
128
|
+
border-color: var(--color-primary-disabled, #d0d3db);
|
|
129
|
+
cursor: not-allowed;
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
132
|
+
a([
|
|
133
|
+
o({ type: Boolean })
|
|
134
|
+
], t.prototype, "disabled", 2);
|
|
135
|
+
a([
|
|
136
|
+
o({ type: Boolean })
|
|
137
|
+
], t.prototype, "checked", 2);
|
|
138
|
+
a([
|
|
139
|
+
o({ type: Boolean })
|
|
140
|
+
], t.prototype, "indeterminate", 2);
|
|
141
|
+
a([
|
|
142
|
+
o({ type: Function })
|
|
143
|
+
], t.prototype, "onChange", 2);
|
|
144
|
+
a([
|
|
145
|
+
o({ type: String })
|
|
146
|
+
], t.prototype, "value", 2);
|
|
147
|
+
a([
|
|
148
|
+
o({ type: String })
|
|
149
|
+
], t.prototype, "label", 2);
|
|
150
|
+
t = a([
|
|
151
|
+
h("lit-checkbox")
|
|
152
|
+
], t);
|
|
153
|
+
export {
|
|
154
|
+
t as LitCheckbox
|
|
155
|
+
};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { html as c } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as p } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as m } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { property as d } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
+
import h from "../styles.js";
|
|
7
|
+
import u from "../assets/icons/iconGlyphs.js";
|
|
8
|
+
import { css as v } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
9
|
+
var g = Object.defineProperty, F = Object.getOwnPropertyDescriptor, o = (l, t, s, r) => {
|
|
10
|
+
for (var e = r > 1 ? void 0 : r ? F(t, s) : t, a = l.length - 1, n; a >= 0; a--)
|
|
11
|
+
(n = l[a]) && (e = (r ? n(t, s, e) : n(e)) || e);
|
|
12
|
+
return r && e && g(t, s, e), e;
|
|
13
|
+
};
|
|
14
|
+
const _ = [
|
|
15
|
+
"archive",
|
|
16
|
+
"requiredFilled",
|
|
17
|
+
"account",
|
|
18
|
+
"add",
|
|
19
|
+
"administration",
|
|
20
|
+
"arrowLeft",
|
|
21
|
+
"arrowRight",
|
|
22
|
+
"bell",
|
|
23
|
+
"bellNotify",
|
|
24
|
+
"cases",
|
|
25
|
+
"darkMode",
|
|
26
|
+
"documents",
|
|
27
|
+
"events",
|
|
28
|
+
"favorite",
|
|
29
|
+
"help",
|
|
30
|
+
"home",
|
|
31
|
+
"leave",
|
|
32
|
+
"lightMode",
|
|
33
|
+
"manuals",
|
|
34
|
+
"overviews",
|
|
35
|
+
"planning",
|
|
36
|
+
"reports",
|
|
37
|
+
"roles",
|
|
38
|
+
"search",
|
|
39
|
+
"settings",
|
|
40
|
+
"structure",
|
|
41
|
+
"tasks",
|
|
42
|
+
"templates",
|
|
43
|
+
"users",
|
|
44
|
+
"close",
|
|
45
|
+
"curveArrow",
|
|
46
|
+
"administrator",
|
|
47
|
+
"delegate",
|
|
48
|
+
"download",
|
|
49
|
+
"assume",
|
|
50
|
+
"calculator",
|
|
51
|
+
"check",
|
|
52
|
+
"chevronDown",
|
|
53
|
+
"handover",
|
|
54
|
+
"flag",
|
|
55
|
+
"filter",
|
|
56
|
+
"favoriteAdd",
|
|
57
|
+
"note",
|
|
58
|
+
"more",
|
|
59
|
+
"minus",
|
|
60
|
+
"success",
|
|
61
|
+
"time",
|
|
62
|
+
"trash",
|
|
63
|
+
"pen",
|
|
64
|
+
"unlike",
|
|
65
|
+
"user",
|
|
66
|
+
"puzzle",
|
|
67
|
+
"informative",
|
|
68
|
+
"save",
|
|
69
|
+
"warning",
|
|
70
|
+
"help2",
|
|
71
|
+
"accomplish",
|
|
72
|
+
"addDocument",
|
|
73
|
+
"addNote",
|
|
74
|
+
"checkboxEmpty",
|
|
75
|
+
"expand",
|
|
76
|
+
"duplicate",
|
|
77
|
+
"history",
|
|
78
|
+
"instruction",
|
|
79
|
+
"radioEmpty",
|
|
80
|
+
"print",
|
|
81
|
+
"zoomIn",
|
|
82
|
+
"view",
|
|
83
|
+
"reading",
|
|
84
|
+
"reload",
|
|
85
|
+
"logs",
|
|
86
|
+
"flow",
|
|
87
|
+
"csv",
|
|
88
|
+
"contact",
|
|
89
|
+
"columns",
|
|
90
|
+
"hamburger",
|
|
91
|
+
"beginning",
|
|
92
|
+
"signal",
|
|
93
|
+
"variable",
|
|
94
|
+
"up",
|
|
95
|
+
"upload",
|
|
96
|
+
"revision",
|
|
97
|
+
"typing",
|
|
98
|
+
"tasksFilled",
|
|
99
|
+
"overviewsFilled",
|
|
100
|
+
"homeFilled",
|
|
101
|
+
"favoriteFilled",
|
|
102
|
+
"flagFilled",
|
|
103
|
+
"darkModeFilled",
|
|
104
|
+
"bellFilled",
|
|
105
|
+
"administrationFilled",
|
|
106
|
+
"administratorFilled",
|
|
107
|
+
"casesFilled",
|
|
108
|
+
"manualsFilled",
|
|
109
|
+
"reportsFilled",
|
|
110
|
+
"structureFilled",
|
|
111
|
+
"usersFilled",
|
|
112
|
+
"userFilled",
|
|
113
|
+
"settingsFilled",
|
|
114
|
+
"lightModeFilled",
|
|
115
|
+
"leaveFilled",
|
|
116
|
+
"searchFilled",
|
|
117
|
+
"checkboxFilled",
|
|
118
|
+
"checkFilled",
|
|
119
|
+
"chevronDownFilled",
|
|
120
|
+
"chevronUpFilled",
|
|
121
|
+
"chevronRightFilled",
|
|
122
|
+
"chevronLeftFilled",
|
|
123
|
+
"logsFilled",
|
|
124
|
+
"radioFilled",
|
|
125
|
+
"historyFilled",
|
|
126
|
+
"sortFilled",
|
|
127
|
+
"variableFilled",
|
|
128
|
+
"dangerFilled",
|
|
129
|
+
"eventsFilled",
|
|
130
|
+
"helpFilled",
|
|
131
|
+
"rolesFilled",
|
|
132
|
+
"clean",
|
|
133
|
+
"dms",
|
|
134
|
+
"cog",
|
|
135
|
+
"email",
|
|
136
|
+
"files",
|
|
137
|
+
"chevron",
|
|
138
|
+
"hand",
|
|
139
|
+
"hide",
|
|
140
|
+
"hierarchy",
|
|
141
|
+
"import",
|
|
142
|
+
"index",
|
|
143
|
+
"infinity",
|
|
144
|
+
"infinity2",
|
|
145
|
+
"reset",
|
|
146
|
+
"rest",
|
|
147
|
+
"sleep",
|
|
148
|
+
"sorting",
|
|
149
|
+
"totake",
|
|
150
|
+
"totakedelegate",
|
|
151
|
+
"shredding",
|
|
152
|
+
"show",
|
|
153
|
+
"share",
|
|
154
|
+
"table",
|
|
155
|
+
"url",
|
|
156
|
+
"schema",
|
|
157
|
+
"stats",
|
|
158
|
+
"zoomout",
|
|
159
|
+
"book",
|
|
160
|
+
"authentication",
|
|
161
|
+
"apphealth",
|
|
162
|
+
"certificate",
|
|
163
|
+
"console",
|
|
164
|
+
"folder",
|
|
165
|
+
"hragenda",
|
|
166
|
+
"script",
|
|
167
|
+
"sequence",
|
|
168
|
+
"serviceoperation",
|
|
169
|
+
"archiveFilled",
|
|
170
|
+
"planningFilled",
|
|
171
|
+
"approval",
|
|
172
|
+
"certificate2",
|
|
173
|
+
"change",
|
|
174
|
+
"chevrondown",
|
|
175
|
+
"cursor",
|
|
176
|
+
"copylink",
|
|
177
|
+
"column",
|
|
178
|
+
"documentsFilled",
|
|
179
|
+
"filterFilled",
|
|
180
|
+
"filteroff",
|
|
181
|
+
"hr",
|
|
182
|
+
"image",
|
|
183
|
+
"outoftime",
|
|
184
|
+
"news",
|
|
185
|
+
"newsFilled",
|
|
186
|
+
"morevertical",
|
|
187
|
+
"spinner",
|
|
188
|
+
"userFilled2",
|
|
189
|
+
"tasksii",
|
|
190
|
+
"rowlarge",
|
|
191
|
+
"rowmedium",
|
|
192
|
+
"rowmall",
|
|
193
|
+
"touchid",
|
|
194
|
+
"acces",
|
|
195
|
+
"agenda",
|
|
196
|
+
"annoncement",
|
|
197
|
+
"email2",
|
|
198
|
+
"export",
|
|
199
|
+
"faceid",
|
|
200
|
+
"deviceregister",
|
|
201
|
+
"lock",
|
|
202
|
+
"outoftime2",
|
|
203
|
+
"qr",
|
|
204
|
+
"unlock",
|
|
205
|
+
"zastupovany",
|
|
206
|
+
"csvFilled",
|
|
207
|
+
"qrFilled",
|
|
208
|
+
"knowledgeFilled",
|
|
209
|
+
"hragendaFilled",
|
|
210
|
+
"deviceregisterFilled",
|
|
211
|
+
"agregation",
|
|
212
|
+
"code",
|
|
213
|
+
"flowii",
|
|
214
|
+
"cursor2",
|
|
215
|
+
"drag",
|
|
216
|
+
"link",
|
|
217
|
+
"lang",
|
|
218
|
+
"pinFilled",
|
|
219
|
+
"pin",
|
|
220
|
+
"play",
|
|
221
|
+
"return",
|
|
222
|
+
"sorting2",
|
|
223
|
+
"switch",
|
|
224
|
+
"test",
|
|
225
|
+
"stop",
|
|
226
|
+
"zoom",
|
|
227
|
+
"wrapitup",
|
|
228
|
+
"web"
|
|
229
|
+
];
|
|
230
|
+
let i = class extends p {
|
|
231
|
+
constructor() {
|
|
232
|
+
super(...arguments), this.icon = "add", this.size = "1.375rem", this.isActive = !1, this.notRotateIcon = ["arrowLeft", "arrowRight"];
|
|
233
|
+
}
|
|
234
|
+
render() {
|
|
235
|
+
const l = this.icon ? u[this.icon] : void 0;
|
|
236
|
+
return l ? c`
|
|
237
|
+
<svg
|
|
238
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
239
|
+
viewBox="0 0 512 512"
|
|
240
|
+
style="width: ${this.size || " 1.5rem"} ; height: ${this.size || " 1.5rem"};"
|
|
241
|
+
class="rotated"
|
|
242
|
+
fill="${this.isActive ? "var(--color-primary-main, #76b703)" : "currentColor"}"
|
|
243
|
+
>
|
|
244
|
+
<g transform="translate(0,20)">
|
|
245
|
+
<path d="${l.d}" />
|
|
246
|
+
</g>
|
|
247
|
+
</svg>
|
|
248
|
+
` : c`<span>Icon not found</span>`;
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
i.styles = [
|
|
252
|
+
h,
|
|
253
|
+
v`
|
|
254
|
+
:host {
|
|
255
|
+
position: relative;
|
|
256
|
+
display: inline-block;
|
|
257
|
+
}
|
|
258
|
+
svg {
|
|
259
|
+
position: relative;
|
|
260
|
+
top: 0.0625rem;
|
|
261
|
+
}
|
|
262
|
+
svg.rotated {
|
|
263
|
+
transform: scaleY(-1);
|
|
264
|
+
}
|
|
265
|
+
`
|
|
266
|
+
];
|
|
267
|
+
o([
|
|
268
|
+
d({ type: String })
|
|
269
|
+
], i.prototype, "icon", 2);
|
|
270
|
+
o([
|
|
271
|
+
d({ type: String })
|
|
272
|
+
], i.prototype, "size", 2);
|
|
273
|
+
o([
|
|
274
|
+
d({ type: Boolean, reflect: !0 })
|
|
275
|
+
], i.prototype, "isActive", 2);
|
|
276
|
+
i = o([
|
|
277
|
+
m("lit-icon")
|
|
278
|
+
], i);
|
|
279
|
+
export {
|
|
280
|
+
_ as IconArray,
|
|
281
|
+
i as LitIcon
|
|
282
|
+
};
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { customElement as c } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
2
|
+
import { property as o } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
3
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
4
|
+
import { html as u } from "../node_modules/lit-html/lit-html.js";
|
|
5
|
+
import { LitElement as d } from "../node_modules/lit-element/lit-element.js";
|
|
6
|
+
import { classMap as h } from "../node_modules/lit-html/directives/class-map.js";
|
|
7
|
+
import { css as m } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
8
|
+
var y = Object.defineProperty, v = Object.getOwnPropertyDescriptor, e = (r, p, i, a) => {
|
|
9
|
+
for (var s = a > 1 ? void 0 : a ? v(p, i) : p, n = r.length - 1, l; n >= 0; n--)
|
|
10
|
+
(l = r[n]) && (s = (a ? l(p, i, s) : l(s)) || s);
|
|
11
|
+
return a && s && y(p, i, s), s;
|
|
12
|
+
};
|
|
13
|
+
let t = class extends d {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.type = "text", this.placeholder = "", this.value = null, this.disableClearButton = !1, this.required = !1, this.server = !1, this.disabled = !1, this.filterOperators = [], this.size = "small", this.setOperator = (r) => {
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
connectedCallback() {
|
|
19
|
+
super.connectedCallback(), this.addEventListener("focus", () => this.focus());
|
|
20
|
+
}
|
|
21
|
+
disconnectedCallback() {
|
|
22
|
+
super.disconnectedCallback(), this.removeEventListener("focus", () => this.focus());
|
|
23
|
+
}
|
|
24
|
+
reportValidity() {
|
|
25
|
+
const r = this.shadowRoot.querySelector("input");
|
|
26
|
+
return r ? r.reportValidity() : !1;
|
|
27
|
+
}
|
|
28
|
+
focus() {
|
|
29
|
+
var p;
|
|
30
|
+
const r = (p = this.shadowRoot) == null ? void 0 : p.querySelector("input");
|
|
31
|
+
r == null || r.focus();
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
var p;
|
|
35
|
+
const r = `${this.size}-size`;
|
|
36
|
+
return u`
|
|
37
|
+
<div class="custom-icon-wrapper">
|
|
38
|
+
<input
|
|
39
|
+
class=${r}
|
|
40
|
+
type="${this.type}"
|
|
41
|
+
placeholder="${this.placeholder}"
|
|
42
|
+
step="any"
|
|
43
|
+
@input=${(i) => {
|
|
44
|
+
const s = i.target.value;
|
|
45
|
+
this.onInput && this.onInput(s);
|
|
46
|
+
}}
|
|
47
|
+
@blur=${(i) => {
|
|
48
|
+
const s = i.target.value;
|
|
49
|
+
this.onBlur && this.onBlur(s);
|
|
50
|
+
}}
|
|
51
|
+
.value="${typeof this.value == "object" ? ((p = this.value) == null ? void 0 : p.value) || "" : this.value || ""}"
|
|
52
|
+
?required="${this.required}"
|
|
53
|
+
.disabled="${this.disabled}"
|
|
54
|
+
/>
|
|
55
|
+
${(this.value || this.operator === "isEmpty" || this.operator === "isNotEmpty") && !this.disableClearButton ? u`<div
|
|
56
|
+
class=${h({
|
|
57
|
+
"custom-icon": !0,
|
|
58
|
+
"custom-icon--no-filter": !this.server
|
|
59
|
+
// Trieda ak filter nie je
|
|
60
|
+
})}
|
|
61
|
+
@click=${() => {
|
|
62
|
+
this.value = "", this.onClear && this.onClear();
|
|
63
|
+
}}
|
|
64
|
+
style="cursor: pointer; pointer-events: auto"
|
|
65
|
+
>
|
|
66
|
+
<lit-icon-button
|
|
67
|
+
icon="close"
|
|
68
|
+
size="small"
|
|
69
|
+
variant="text"
|
|
70
|
+
></lit-icon-button>
|
|
71
|
+
</div>` : ""}
|
|
72
|
+
${this.server ? u`<lit-data-grid-operators-popover
|
|
73
|
+
class="filter-icon"
|
|
74
|
+
b
|
|
75
|
+
.type="${this.type === "text" ? "string" : "number"}"
|
|
76
|
+
.setOperator="${(i) => {
|
|
77
|
+
this.setOperator(i);
|
|
78
|
+
}}"
|
|
79
|
+
.operator="${this.operator}"
|
|
80
|
+
@mousedown=${(i) => {
|
|
81
|
+
i.preventDefault(), i.stopPropagation();
|
|
82
|
+
}}
|
|
83
|
+
.disabled="${this.disabled}"
|
|
84
|
+
.filterOperators="${this.filterOperators}"
|
|
85
|
+
></lit-data-grid-operators-popover>` : null}
|
|
86
|
+
</div>
|
|
87
|
+
`;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
t.styles = [
|
|
91
|
+
m`
|
|
92
|
+
input {
|
|
93
|
+
padding: 0.5rem;
|
|
94
|
+
border: 0.0625rem solid var(--color-divider, #d0d3db);
|
|
95
|
+
border-radius: 0.25rem;
|
|
96
|
+
min-width: unset;
|
|
97
|
+
width: -webkit-fill-available;
|
|
98
|
+
width: -moz-available;
|
|
99
|
+
width: fill-available;
|
|
100
|
+
background-color: var(--background-paper, #fff);
|
|
101
|
+
color: var(--text-primary, #111827);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
input[type='number']::-webkit-inner-spin-button,
|
|
105
|
+
input[type='number']::-webkit-outer-spin-button {
|
|
106
|
+
-webkit-appearance: none;
|
|
107
|
+
margin: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
input:hover:not(:disabled) {
|
|
111
|
+
border: 0.0625rem solid var(--color-secondary-main, #111827);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
input:focus {
|
|
115
|
+
outline: none;
|
|
116
|
+
border: 0.0625rem solid var(--color-secondary-dark, #010204);
|
|
117
|
+
}
|
|
118
|
+
input:disabled {
|
|
119
|
+
background-color: var(--background-paper, #fff);
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.custom-icon-wrapper {
|
|
124
|
+
position: relative;
|
|
125
|
+
width: 100%;
|
|
126
|
+
display: inline-block;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.custom-icon-wrapper .custom-icon {
|
|
130
|
+
display: none;
|
|
131
|
+
position: absolute;
|
|
132
|
+
right: 34px;
|
|
133
|
+
top: 50%;
|
|
134
|
+
transform: translateY(-50%);
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
pointer-events: auto;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.custom-icon-wrapper .custom-icon--no-filter {
|
|
140
|
+
right: 10px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.custom-icon-wrapper:hover .custom-icon {
|
|
144
|
+
display: block;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.custom-icon-wrapper .filter-icon {
|
|
148
|
+
display: block;
|
|
149
|
+
position: absolute;
|
|
150
|
+
right: 10px;
|
|
151
|
+
top: 50%;
|
|
152
|
+
transform: translateY(-50%);
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
pointer-events: auto;
|
|
155
|
+
}
|
|
156
|
+
.medium-size {
|
|
157
|
+
height: 1.43rem;
|
|
158
|
+
}
|
|
159
|
+
.small-size {
|
|
160
|
+
height: 0.94rem;
|
|
161
|
+
}
|
|
162
|
+
`
|
|
163
|
+
];
|
|
164
|
+
e([
|
|
165
|
+
o({ type: String })
|
|
166
|
+
], t.prototype, "type", 2);
|
|
167
|
+
e([
|
|
168
|
+
o({ type: String })
|
|
169
|
+
], t.prototype, "placeholder", 2);
|
|
170
|
+
e([
|
|
171
|
+
o({ type: String })
|
|
172
|
+
], t.prototype, "value", 2);
|
|
173
|
+
e([
|
|
174
|
+
o({ type: Function })
|
|
175
|
+
], t.prototype, "onInput", 2);
|
|
176
|
+
e([
|
|
177
|
+
o({ type: Function })
|
|
178
|
+
], t.prototype, "onBlur", 2);
|
|
179
|
+
e([
|
|
180
|
+
o({ type: Function })
|
|
181
|
+
], t.prototype, "onClear", 2);
|
|
182
|
+
e([
|
|
183
|
+
o({ type: Boolean })
|
|
184
|
+
], t.prototype, "disableClearButton", 2);
|
|
185
|
+
e([
|
|
186
|
+
o({ type: Boolean })
|
|
187
|
+
], t.prototype, "required", 2);
|
|
188
|
+
e([
|
|
189
|
+
o({ type: Boolean })
|
|
190
|
+
], t.prototype, "server", 2);
|
|
191
|
+
e([
|
|
192
|
+
o({ type: String })
|
|
193
|
+
], t.prototype, "operator", 2);
|
|
194
|
+
e([
|
|
195
|
+
o({ type: Boolean })
|
|
196
|
+
], t.prototype, "disabled", 2);
|
|
197
|
+
e([
|
|
198
|
+
o({ type: Array })
|
|
199
|
+
], t.prototype, "filterOperators", 2);
|
|
200
|
+
e([
|
|
201
|
+
o({ type: String })
|
|
202
|
+
], t.prototype, "size", 2);
|
|
203
|
+
e([
|
|
204
|
+
o({ type: Function })
|
|
205
|
+
], t.prototype, "setOperator", 2);
|
|
206
|
+
t = e([
|
|
207
|
+
c("lit-input")
|
|
208
|
+
], t);
|
|
209
|
+
export {
|
|
210
|
+
t as LitInput
|
|
211
|
+
};
|