overview-components 1.0.83 → 1.0.89
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.js +72 -70
- package/dist/assets/generated/locales/en.js +72 -70
- package/dist/assets/generated/locales/fr.js +72 -70
- package/dist/assets/generated/locales/hr.js +72 -70
- package/dist/assets/generated/locales/it.js +72 -70
- package/dist/assets/generated/locales/pl.js +72 -70
- package/dist/assets/generated/locales/ro.js +72 -70
- package/dist/assets/generated/locales/sk.js +72 -70
- package/dist/assets/generated/locales/sr.js +72 -70
- package/dist/components/lit-attachments-tab.js +267 -432
- package/dist/components/lit-badge.js +37 -40
- package/dist/components/lit-case-variables-tab.js +378 -497
- package/dist/components/lit-chart.js +375 -406
- package/dist/components/lit-data-grid-tanstack.js +1145 -1663
- package/dist/components/lit-filter-modal.js +194 -230
- package/dist/components/lit-multiselect-item.js +297 -477
- package/dist/components/lit-section-tab.js +69 -85
- package/dist/components/lit-tabs-overview.js +187 -232
- package/dist/components/react-wrappers/attachments-tab.js +13 -8
- package/dist/components/react-wrappers/badge.js +13 -8
- package/dist/components/react-wrappers/button.js +13 -8
- package/dist/components/react-wrappers/case-variables-tab.js +13 -8
- package/dist/components/react-wrappers/chart.js +13 -8
- package/dist/components/react-wrappers/data-grid-tanstack.js +13 -8
- package/dist/components/react-wrappers/filter-modal.js +13 -8
- package/dist/components/react-wrappers/progress-bar.js +13 -8
- package/dist/components/react-wrappers/section-tab.js +13 -8
- package/dist/components/react-wrappers/tabs-overview.js +13 -8
- package/dist/index.d.ts +1 -64
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -4819
- package/dist/node_modules/@lit/reactive-element/css-tag.js +42 -0
- package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
- package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
- package/dist/node_modules/@lit/reactive-element/decorators/query.js +20 -0
- package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +249 -0
- package/dist/node_modules/lit-html/async-directive.js +69 -0
- package/dist/node_modules/lit-html/directive-helpers.js +45 -0
- package/dist/node_modules/lit-html/directive.js +27 -0
- package/dist/node_modules/lit-html/directives/ref.js +42 -0
- package/dist/node_modules/lit-html/directives/repeat.js +61 -0
- package/dist/node_modules/lit-html/directives/style-map.js +36 -0
- package/dist/node_modules/lit-html/directives/unsafe-html.js +27 -0
- package/dist/node_modules/lit-html/lit-html.js +242 -0
- package/dist/shared/lit-button.js +63 -80
- package/dist/shared/lit-icon-button.d.ts +1 -1
- package/dist/shared/lit-icon-button.d.ts.map +1 -1
- package/dist/shared/lit-loader.d.ts +1 -1
- package/dist/shared/lit-loader.d.ts.map +1 -1
- package/dist/shared/lit-loading-bar.d.ts +1 -1
- package/dist/shared/lit-loading-bar.d.ts.map +1 -1
- package/dist/shared/lit-menu-item.d.ts +1 -1
- package/dist/shared/lit-menu-item.d.ts.map +1 -1
- package/dist/shared/lit-progress-bar.js +32 -33
- package/dist/shared/lit-text-field.d.ts +1 -1
- package/dist/shared/lit-text-field.d.ts.map +1 -1
- package/dist/shared/simple-tooltip.js +122 -198
- package/dist/shared/styles/button-shared-styles.js +5 -4
- package/dist/utils/currency.js +12 -15
- package/dist/utils/custom-filters.js +45 -80
- package/dist/utils/date.js +13 -21
- package/dist/utils/getOperatorByType.js +50 -65
- package/dist/utils/localization.js +29 -431
- package/package.json +74 -87
- package/dist/assets/generated/locales/de.js.map +0 -1
- package/dist/assets/generated/locales/en.js.map +0 -1
- package/dist/assets/generated/locales/fr.js.map +0 -1
- package/dist/assets/generated/locales/hr.js.map +0 -1
- package/dist/assets/generated/locales/it.js.map +0 -1
- package/dist/assets/generated/locales/pl.js.map +0 -1
- package/dist/assets/generated/locales/ro.js.map +0 -1
- package/dist/assets/generated/locales/sk.js.map +0 -1
- package/dist/assets/generated/locales/sr.js.map +0 -1
- package/dist/assets/icons/iconGlyphs.js +0 -679
- package/dist/assets/icons/iconGlyphs.js.map +0 -1
- package/dist/assets/illustration/delete-illustration.js +0 -96
- package/dist/assets/illustration/delete-illustration.js.map +0 -1
- package/dist/assets/illustration/no-content.js +0 -167
- package/dist/assets/illustration/no-content.js.map +0 -1
- package/dist/assets/illustration/no-preview.js +0 -133
- package/dist/assets/illustration/no-preview.js.map +0 -1
- package/dist/assets/illustration/not-found.js +0 -106
- package/dist/assets/illustration/not-found.js.map +0 -1
- package/dist/assets/illustration/settings-illustration.js +0 -176
- package/dist/assets/illustration/settings-illustration.js.map +0 -1
- package/dist/components/components-settings/attachments-tab-settings.js +0 -226
- package/dist/components/components-settings/attachments-tab-settings.js.map +0 -1
- package/dist/components/components-settings/data-grid-settings.js +0 -318
- package/dist/components/components-settings/data-grid-settings.js.map +0 -1
- package/dist/components/components-settings/section-tab-settings.js +0 -269
- package/dist/components/components-settings/section-tab-settings.js.map +0 -1
- package/dist/components/components-settings/tabs-overview-settings.js +0 -439
- package/dist/components/components-settings/tabs-overview-settings.js.map +0 -1
- package/dist/components/lit-attachments-tab.js.map +0 -1
- package/dist/components/lit-badge.js.map +0 -1
- package/dist/components/lit-case-variables-tab.js.map +0 -1
- package/dist/components/lit-chart.js.map +0 -1
- package/dist/components/lit-data-grid-tanstack.js.map +0 -1
- package/dist/components/lit-filter-modal.js.map +0 -1
- package/dist/components/lit-multiselect-item.js.map +0 -1
- package/dist/components/lit-section-tab.js.map +0 -1
- package/dist/components/lit-tabs-overview.js.map +0 -1
- package/dist/components/modals/lit-confirm-modal.js +0 -120
- package/dist/components/modals/lit-confirm-modal.js.map +0 -1
- package/dist/components/modals/lit-delete-modal.js +0 -128
- package/dist/components/modals/lit-delete-modal.js.map +0 -1
- package/dist/components/react-wrappers/attachments-tab.js.map +0 -1
- package/dist/components/react-wrappers/badge.js.map +0 -1
- package/dist/components/react-wrappers/button.js.map +0 -1
- package/dist/components/react-wrappers/case-variables-tab.js.map +0 -1
- package/dist/components/react-wrappers/chart.js.map +0 -1
- package/dist/components/react-wrappers/data-grid-tanstack.js.map +0 -1
- package/dist/components/react-wrappers/filter-modal.js.map +0 -1
- package/dist/components/react-wrappers/progress-bar.js.map +0 -1
- package/dist/components/react-wrappers/section-tab.js.map +0 -1
- package/dist/components/react-wrappers/tabs-overview.js.map +0 -1
- package/dist/data/translations.js +0 -2763
- package/dist/data/translations.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/schemas/index.js +0 -17
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/lit-attachments-tab-document.schema.js +0 -20
- package/dist/schemas/lit-attachments-tab-document.schema.js.map +0 -1
- package/dist/schemas/lit-attachments-tab-settings-value.schema.js +0 -15
- package/dist/schemas/lit-attachments-tab-settings-value.schema.js.map +0 -1
- package/dist/schemas/lit-attachments-tab.schema.js +0 -32
- package/dist/schemas/lit-attachments-tab.schema.js.map +0 -1
- package/dist/schemas/lit-case-variables-tab-cell.schema.js +0 -43
- package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +0 -1
- package/dist/schemas/lit-case-variables-tab-rows.schema.js +0 -6
- package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +0 -1
- package/dist/schemas/lit-case-variables-tab.schema.js +0 -24
- package/dist/schemas/lit-case-variables-tab.schema.js.map +0 -1
- package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +0 -6
- package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +0 -1
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +0 -6
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +0 -1
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +0 -11
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +0 -1
- package/dist/schemas/lit-data-grid-tanstack-column.schema.js +0 -55
- package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +0 -1
- package/dist/schemas/lit-data-grid-tanstack.schema.js +0 -99
- package/dist/schemas/lit-data-grid-tanstack.schema.js.map +0 -1
- package/dist/schemas/lit-section-tab-schema.js +0 -24
- package/dist/schemas/lit-section-tab-schema.js.map +0 -1
- package/dist/schemas/lit-tabs-overview-tab-array.schema.js +0 -6
- package/dist/schemas/lit-tabs-overview-tab-array.schema.js.map +0 -1
- package/dist/schemas/lit-tabs-overview-tab.schema.js +0 -32
- package/dist/schemas/lit-tabs-overview-tab.schema.js.map +0 -1
- package/dist/schemas/lit-tabs-overview.schema.js +0 -29
- package/dist/schemas/lit-tabs-overview.schema.js.map +0 -1
- package/dist/scripts/translate-locales.js +0 -69
- package/dist/scripts/translate-locales.js.map +0 -1
- package/dist/shared/filter-inputs.js +0 -427
- package/dist/shared/filter-inputs.js.map +0 -1
- package/dist/shared/lit-button.js.map +0 -1
- package/dist/shared/lit-case-variables-tab-cell.js +0 -226
- package/dist/shared/lit-case-variables-tab-cell.js.map +0 -1
- package/dist/shared/lit-checkbox.js +0 -171
- package/dist/shared/lit-checkbox.js.map +0 -1
- package/dist/shared/lit-custom-popper.js +0 -117
- package/dist/shared/lit-custom-popper.js.map +0 -1
- package/dist/shared/lit-data-grid-action-buttons-popover.js +0 -295
- package/dist/shared/lit-data-grid-action-buttons-popover.js.map +0 -1
- package/dist/shared/lit-data-grid-density-popover.js +0 -84
- package/dist/shared/lit-data-grid-density-popover.js.map +0 -1
- package/dist/shared/lit-data-grid-export-popover.js +0 -68
- package/dist/shared/lit-data-grid-export-popover.js.map +0 -1
- package/dist/shared/lit-data-grid-operators-popover.js +0 -114
- package/dist/shared/lit-data-grid-operators-popover.js.map +0 -1
- package/dist/shared/lit-data-grid-row-actions.js +0 -76
- package/dist/shared/lit-data-grid-row-actions.js.map +0 -1
- package/dist/shared/lit-date-picker.js +0 -606
- package/dist/shared/lit-date-picker.js.map +0 -1
- package/dist/shared/lit-icon-button.js +0 -105
- package/dist/shared/lit-icon-button.js.map +0 -1
- package/dist/shared/lit-icon.js +0 -284
- package/dist/shared/lit-icon.js.map +0 -1
- package/dist/shared/lit-input.js +0 -239
- package/dist/shared/lit-input.js.map +0 -1
- package/dist/shared/lit-label.js +0 -104
- package/dist/shared/lit-label.js.map +0 -1
- package/dist/shared/lit-loader.js +0 -69
- package/dist/shared/lit-loader.js.map +0 -1
- package/dist/shared/lit-loading-bar.js +0 -127
- package/dist/shared/lit-loading-bar.js.map +0 -1
- package/dist/shared/lit-menu-item.js +0 -99
- package/dist/shared/lit-menu-item.js.map +0 -1
- package/dist/shared/lit-menu.js +0 -42
- package/dist/shared/lit-menu.js.map +0 -1
- package/dist/shared/lit-modal-body.js +0 -22
- package/dist/shared/lit-modal-body.js.map +0 -1
- package/dist/shared/lit-modal-footer.js +0 -29
- package/dist/shared/lit-modal-footer.js.map +0 -1
- package/dist/shared/lit-modal-header.js +0 -36
- package/dist/shared/lit-modal-header.js.map +0 -1
- package/dist/shared/lit-modal.js +0 -169
- package/dist/shared/lit-modal.js.map +0 -1
- package/dist/shared/lit-overflow-tooltip.js +0 -103
- package/dist/shared/lit-overflow-tooltip.js.map +0 -1
- package/dist/shared/lit-pill.js +0 -88
- package/dist/shared/lit-pill.js.map +0 -1
- package/dist/shared/lit-progress-bar.js.map +0 -1
- package/dist/shared/lit-responsive-button.js +0 -94
- package/dist/shared/lit-responsive-button.js.map +0 -1
- package/dist/shared/lit-select-field.js +0 -459
- package/dist/shared/lit-select-field.js.map +0 -1
- package/dist/shared/lit-select.js +0 -413
- package/dist/shared/lit-select.js.map +0 -1
- package/dist/shared/lit-settings.js +0 -77
- package/dist/shared/lit-settings.js.map +0 -1
- package/dist/shared/lit-text-field.js +0 -222
- package/dist/shared/lit-text-field.js.map +0 -1
- package/dist/shared/lit-toggle.js +0 -222
- package/dist/shared/lit-toggle.js.map +0 -1
- package/dist/shared/lit-tooltip.js +0 -166
- package/dist/shared/lit-tooltip.js.map +0 -1
- package/dist/shared/simple-popper.js +0 -266
- package/dist/shared/simple-popper.js.map +0 -1
- package/dist/shared/simple-tooltip.js.map +0 -1
- package/dist/shared/styles/button-shared-styles.js.map +0 -1
- package/dist/style.css +0 -1
- package/dist/styles.js +0 -169
- package/dist/styles.js.map +0 -1
- package/dist/utils/currency.js.map +0 -1
- package/dist/utils/custom-filters.js.map +0 -1
- package/dist/utils/date.js.map +0 -1
- package/dist/utils/getOperatorByType.js.map +0 -1
- package/dist/utils/getOverviewValue.js +0 -177
- package/dist/utils/getOverviewValue.js.map +0 -1
- package/dist/utils/localization.js.map +0 -1
- package/dist/utils/utils.js +0 -13
- package/dist/utils/utils.js.map +0 -1
- package/dist/utils/validate-json-schema.js +0 -8
- package/dist/utils/validate-json-schema.js.map +0 -1
- package/dist/validators/validator.js +0 -7
- package/dist/validators/validator.js.map +0 -1
|
@@ -1,135 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { css as m, LitElement as f, html as u } from "lit";
|
|
2
|
+
import { customElement as g } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
3
|
+
import { property as a } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
4
|
+
import { directive as v, Directive as w } from "../node_modules/lit-html/directive.js";
|
|
5
|
+
import { render as p } from "../node_modules/lit-html/lit-html.js";
|
|
6
|
+
import { computePosition as y, offset as E, flip as b, shift as x, size as T, arrow as _ } from "@floating-ui/dom";
|
|
7
|
+
var k = Object.defineProperty, L = Object.getOwnPropertyDescriptor, h = (i, t, n, r) => {
|
|
8
|
+
for (var o = r > 1 ? void 0 : r ? L(t, n) : t, e = i.length - 1, s; e >= 0; e--)
|
|
9
|
+
(s = i[e]) && (o = (r ? s(t, n, o) : s(o)) || o);
|
|
10
|
+
return r && o && k(t, n, o), o;
|
|
6
11
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
this.clearOpenTimeout = () => {
|
|
78
|
-
if (this.openTimeout !== null) {
|
|
79
|
-
clearTimeout(this.openTimeout);
|
|
80
|
-
this.openTimeout = null;
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
this.markHovering = () => {
|
|
84
|
-
this.isHoveringTarget = true;
|
|
85
|
-
};
|
|
86
|
-
this.markNotHovering = () => {
|
|
87
|
-
this.isHoveringTarget = false;
|
|
88
|
-
this.clearOpenTimeout();
|
|
89
|
-
};
|
|
90
|
-
this.hide = () => {
|
|
91
|
-
this.showing = false;
|
|
92
|
-
this.style.display = 'none';
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
get target() {
|
|
96
|
-
return this._target;
|
|
97
|
-
}
|
|
98
|
-
set target(el) {
|
|
99
|
-
if (this._target) {
|
|
100
|
-
ENTER_EVENTS.forEach((evt) => {
|
|
101
|
-
this._target.removeEventListener(evt, this.scheduleShow);
|
|
102
|
-
this._target.removeEventListener(evt, this.markHovering);
|
|
103
|
-
});
|
|
104
|
-
LEAVE_EVENTS.forEach((evt) => this._target.removeEventListener(evt, this.hide));
|
|
105
|
-
}
|
|
106
|
-
if (el) {
|
|
107
|
-
ENTER_EVENTS.forEach((evt) => {
|
|
108
|
-
el.addEventListener(evt, this.scheduleShow);
|
|
109
|
-
el.addEventListener(evt, this.markHovering);
|
|
110
|
-
});
|
|
111
|
-
LEAVE_EVENTS.forEach((evt) => {
|
|
112
|
-
el.addEventListener(evt, this.markNotHovering);
|
|
113
|
-
el.addEventListener(evt, this.hide);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
this._target = el;
|
|
117
|
-
}
|
|
118
|
-
connectedCallback() {
|
|
119
|
-
super.connectedCallback();
|
|
120
|
-
this.style.display = 'none';
|
|
121
|
-
}
|
|
122
|
-
firstUpdated() {
|
|
123
|
-
this.arrowElement = this.shadowRoot.getElementById('arrow');
|
|
124
|
-
}
|
|
125
|
-
render() {
|
|
126
|
-
return html `
|
|
12
|
+
const c = ["pointerenter", "mouseenter"], d = ["pointerleave", "mouseleave", "blur", "keydown", "click", "scroll"];
|
|
13
|
+
let l = class extends f {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.showing = !1, this.placement = "top", this.offset = 8, this.openDelayMs = 300, this._target = null, this.openTimeout = null, this.isHoveringTarget = !1, this.scheduleShow = () => {
|
|
16
|
+
this.clearOpenTimeout(), this.openTimeout = window.setTimeout(() => {
|
|
17
|
+
this._target && this.isHoveringTarget && this.showTooltipNow();
|
|
18
|
+
}, this.openDelayMs);
|
|
19
|
+
}, this.showTooltipNow = () => {
|
|
20
|
+
this.style.removeProperty("display"), this.style.zIndex = "100000", this.showing = !0, !(!this.target || !this.arrowElement) && y(this.target, this, {
|
|
21
|
+
placement: this.placement,
|
|
22
|
+
strategy: "absolute",
|
|
23
|
+
middleware: [
|
|
24
|
+
E(this.offset),
|
|
25
|
+
b(),
|
|
26
|
+
x({ padding: 8 }),
|
|
27
|
+
T({ padding: 8 }),
|
|
28
|
+
_({ element: this.arrowElement })
|
|
29
|
+
]
|
|
30
|
+
}).then(({ x: i, y: t, placement: n, middlewareData: r }) => {
|
|
31
|
+
r.hide && Object.assign(this.style, {
|
|
32
|
+
display: r.hide.referenceHidden || !this.showing ? "none" : "block"
|
|
33
|
+
}), Object.assign(this.style, {
|
|
34
|
+
left: `${i}px`,
|
|
35
|
+
top: `${t}px`
|
|
36
|
+
});
|
|
37
|
+
const o = {
|
|
38
|
+
top: "bottom",
|
|
39
|
+
bottom: "top",
|
|
40
|
+
left: "right",
|
|
41
|
+
right: "left"
|
|
42
|
+
}[n.split("-")[0]], { x: e, y: s } = r.arrow || {};
|
|
43
|
+
Object.assign(this.arrowElement.style, {
|
|
44
|
+
left: e != null ? `${e}px` : "",
|
|
45
|
+
top: s != null ? `${s}px` : "",
|
|
46
|
+
right: "",
|
|
47
|
+
bottom: "",
|
|
48
|
+
[o]: "-4px"
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
}, this.clearOpenTimeout = () => {
|
|
52
|
+
this.openTimeout !== null && (clearTimeout(this.openTimeout), this.openTimeout = null);
|
|
53
|
+
}, this.markHovering = () => {
|
|
54
|
+
this.isHoveringTarget = !0;
|
|
55
|
+
}, this.markNotHovering = () => {
|
|
56
|
+
this.isHoveringTarget = !1, this.clearOpenTimeout();
|
|
57
|
+
}, this.hide = () => {
|
|
58
|
+
this.showing = !1, this.style.display = "none";
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
get target() {
|
|
62
|
+
return this._target;
|
|
63
|
+
}
|
|
64
|
+
set target(i) {
|
|
65
|
+
this._target && (c.forEach((t) => {
|
|
66
|
+
this._target.removeEventListener(t, this.scheduleShow), this._target.removeEventListener(t, this.markHovering);
|
|
67
|
+
}), d.forEach((t) => this._target.removeEventListener(t, this.hide))), i && (c.forEach((t) => {
|
|
68
|
+
i.addEventListener(t, this.scheduleShow), i.addEventListener(t, this.markHovering);
|
|
69
|
+
}), d.forEach((t) => {
|
|
70
|
+
i.addEventListener(t, this.markNotHovering), i.addEventListener(t, this.hide);
|
|
71
|
+
})), this._target = i;
|
|
72
|
+
}
|
|
73
|
+
connectedCallback() {
|
|
74
|
+
super.connectedCallback(), this.style.display = "none";
|
|
75
|
+
}
|
|
76
|
+
firstUpdated() {
|
|
77
|
+
this.arrowElement = this.shadowRoot.getElementById("arrow");
|
|
78
|
+
}
|
|
79
|
+
render() {
|
|
80
|
+
return u`
|
|
127
81
|
<div id="arrow"></div>
|
|
128
82
|
<slot></slot>
|
|
129
83
|
`;
|
|
130
|
-
|
|
84
|
+
}
|
|
131
85
|
};
|
|
132
|
-
|
|
86
|
+
l.styles = m`
|
|
133
87
|
:host {
|
|
134
88
|
position: absolute;
|
|
135
89
|
display: inline-block;
|
|
@@ -173,76 +127,46 @@ SimpleTooltip.styles = css `
|
|
|
173
127
|
max-height: 70vh;
|
|
174
128
|
}
|
|
175
129
|
`;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
],
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
],
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
],
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
],
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
],
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
this.part = part;
|
|
211
|
-
this.content = content;
|
|
212
|
-
this.placement = placement;
|
|
213
|
-
this.delay = delay;
|
|
214
|
-
const target = this.part.element;
|
|
215
|
-
if (!this.initialized) {
|
|
216
|
-
this.initialized = true;
|
|
217
|
-
const onEnter = () => {
|
|
218
|
-
if (!this.tooltip) {
|
|
219
|
-
this.tooltip = document.createElement('simple-tooltip');
|
|
220
|
-
this.tooltip.placement = this.placement;
|
|
221
|
-
this.tooltip.openDelayMs = this.delay;
|
|
222
|
-
document.body.appendChild(this.tooltip);
|
|
223
|
-
render(this.content, this.tooltip, this.part.options);
|
|
224
|
-
}
|
|
225
|
-
this.tooltip.target = target;
|
|
226
|
-
this.tooltip.openDelayMs = this.delay;
|
|
227
|
-
this.tooltip.placement = this.placement;
|
|
228
|
-
this.tooltip.scheduleShow();
|
|
229
|
-
// Lazy mounting done — clean up listener
|
|
230
|
-
target.removeEventListener('mouseenter', onEnter);
|
|
231
|
-
target.removeEventListener('pointerenter', onEnter);
|
|
232
|
-
};
|
|
233
|
-
target.addEventListener('mouseenter', onEnter);
|
|
234
|
-
target.addEventListener('pointerenter', onEnter);
|
|
235
|
-
}
|
|
236
|
-
if (this.tooltip) {
|
|
237
|
-
this.tooltip.openDelayMs = this.delay;
|
|
238
|
-
this.tooltip.placement = this.placement;
|
|
239
|
-
render(this.content, this.tooltip, this.part.options);
|
|
240
|
-
// Hide tooltip if target is not in DOM
|
|
241
|
-
if (!document.body.contains(target)) {
|
|
242
|
-
this.tooltip.hide();
|
|
243
|
-
}
|
|
244
|
-
}
|
|
130
|
+
h([
|
|
131
|
+
a({ type: Boolean, reflect: !0 })
|
|
132
|
+
], l.prototype, "showing", 2);
|
|
133
|
+
h([
|
|
134
|
+
a({ type: String, reflect: !0 })
|
|
135
|
+
], l.prototype, "placement", 2);
|
|
136
|
+
h([
|
|
137
|
+
a({ type: Number })
|
|
138
|
+
], l.prototype, "offset", 2);
|
|
139
|
+
h([
|
|
140
|
+
a({ type: Number })
|
|
141
|
+
], l.prototype, "openDelayMs", 2);
|
|
142
|
+
l = h([
|
|
143
|
+
g("simple-tooltip")
|
|
144
|
+
], l);
|
|
145
|
+
class H extends w {
|
|
146
|
+
constructor() {
|
|
147
|
+
super(...arguments), this.initialized = !1;
|
|
148
|
+
}
|
|
149
|
+
disconnect() {
|
|
150
|
+
this.tooltip && (this.tooltip.hide(), this.tooltip.parentElement && this.tooltip.parentElement.removeChild(this.tooltip), this.tooltip = void 0, this.initialized = !1);
|
|
151
|
+
}
|
|
152
|
+
render() {
|
|
153
|
+
}
|
|
154
|
+
// required override
|
|
155
|
+
update(t, [n, r = "top", o = 200]) {
|
|
156
|
+
this.part = t, this.content = n, this.placement = r, this.delay = o;
|
|
157
|
+
const e = this.part.element;
|
|
158
|
+
if (!this.initialized) {
|
|
159
|
+
this.initialized = !0;
|
|
160
|
+
const s = () => {
|
|
161
|
+
this.tooltip || (this.tooltip = document.createElement("simple-tooltip"), this.tooltip.placement = this.placement, this.tooltip.openDelayMs = this.delay, document.body.appendChild(this.tooltip), p(this.content, this.tooltip, this.part.options)), this.tooltip.target = e, this.tooltip.openDelayMs = this.delay, this.tooltip.placement = this.placement, this.tooltip.scheduleShow(), e.removeEventListener("mouseenter", s), e.removeEventListener("pointerenter", s);
|
|
162
|
+
};
|
|
163
|
+
e.addEventListener("mouseenter", s), e.addEventListener("pointerenter", s);
|
|
245
164
|
}
|
|
165
|
+
this.tooltip && (this.tooltip.openDelayMs = this.delay, this.tooltip.placement = this.placement, p(this.content, this.tooltip, this.part.options), document.body.contains(e) || this.tooltip.hide());
|
|
166
|
+
}
|
|
246
167
|
}
|
|
247
|
-
|
|
248
|
-
|
|
168
|
+
const P = v(H);
|
|
169
|
+
export {
|
|
170
|
+
l as SimpleTooltip,
|
|
171
|
+
P as tooltip
|
|
172
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { css } from
|
|
2
|
-
const
|
|
1
|
+
import { css as o } from "lit";
|
|
2
|
+
const t = o`
|
|
3
3
|
button {
|
|
4
4
|
font-family: inherit;
|
|
5
5
|
border-radius: var(--border-radius-small, 0.5rem);
|
|
@@ -197,5 +197,6 @@ const buttonStyles = css `
|
|
|
197
197
|
border: none;
|
|
198
198
|
}
|
|
199
199
|
`;
|
|
200
|
-
export
|
|
201
|
-
|
|
200
|
+
export {
|
|
201
|
+
t as default
|
|
202
|
+
};
|
package/dist/utils/currency.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
style: 'decimal',
|
|
14
|
-
}).format(number);
|
|
1
|
+
const e = (r, t) => {
|
|
2
|
+
if (r === null)
|
|
3
|
+
return null;
|
|
4
|
+
if (r === "")
|
|
5
|
+
return "";
|
|
6
|
+
const n = typeof r == "string" ? parseFloat(r) : r;
|
|
7
|
+
return isNaN(n) ? "Invalid number" : new Intl.NumberFormat(t, {
|
|
8
|
+
style: "decimal"
|
|
9
|
+
}).format(n);
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
e as formatCurrency
|
|
15
13
|
};
|
|
16
|
-
//# sourceMappingURL=currency.js.map
|
|
@@ -1,84 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const rowDate = parseDate(rowValue);
|
|
8
|
-
const startDate = filterValue.startDate;
|
|
9
|
-
const endDate = filterValue.endDate;
|
|
10
|
-
// console.log('rowDate', rowDate);
|
|
11
|
-
// console.log('startDate', startDate);
|
|
12
|
-
// console.log('endDate', endDate);
|
|
13
|
-
if (startDate && endDate) {
|
|
14
|
-
return rowDate >= startDate && rowDate <= endDate;
|
|
15
|
-
}
|
|
16
|
-
else if (startDate) {
|
|
17
|
-
return rowDate >= startDate;
|
|
18
|
-
}
|
|
19
|
-
else if (endDate) {
|
|
20
|
-
return rowDate <= endDate;
|
|
21
|
-
}
|
|
22
|
-
return true;
|
|
1
|
+
import { DateTime as M } from "luxon";
|
|
2
|
+
const i = (e, r, y) => {
|
|
3
|
+
const t = e.getValue(r);
|
|
4
|
+
if (!t) return !1;
|
|
5
|
+
const s = a(t), d = y.startDate, n = y.endDate;
|
|
6
|
+
return d && n ? s >= d && s <= n : d ? s >= d : n ? s <= n : !0;
|
|
23
7
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const date2 = filterValue;
|
|
30
|
-
// console.log('rowDate', rowValue);
|
|
31
|
-
// console.log('date1', date1);
|
|
32
|
-
// console.log('date2', date2);
|
|
33
|
-
// Check if both dates are valid
|
|
34
|
-
if (!date1 || !date2) {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
// Compare year, month, and day directly
|
|
38
|
-
const isEqual = date1 === date2;
|
|
39
|
-
return isEqual;
|
|
8
|
+
function l(e, r, y) {
|
|
9
|
+
const t = e.getValue(r);
|
|
10
|
+
if (!t) return !1;
|
|
11
|
+
const s = a(t), d = y;
|
|
12
|
+
return !s || !d ? !1 : s === d;
|
|
40
13
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return false;
|
|
45
|
-
return filterValue.includes(rowValue);
|
|
14
|
+
const u = (e, r, y) => {
|
|
15
|
+
const t = e.getValue(r);
|
|
16
|
+
return t ? y.includes(t) : !1;
|
|
46
17
|
};
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (const format of possibleFormats) {
|
|
74
|
-
date = DateTime.fromFormat(dateStr, format);
|
|
75
|
-
if (date.isValid)
|
|
76
|
-
break; // Stop if a valid date is found
|
|
77
|
-
}
|
|
78
|
-
// If all formats fail, try as ISO string
|
|
79
|
-
if (!date || !date.isValid) {
|
|
80
|
-
date = DateTime.fromISO(dateStr);
|
|
81
|
-
}
|
|
82
|
-
return date.isValid ? date.toJSDate().toISOString() : null;
|
|
18
|
+
function a(e) {
|
|
19
|
+
if (!e) return null;
|
|
20
|
+
const r = [
|
|
21
|
+
"yyyy-MM-dd",
|
|
22
|
+
"dd-MM-yyyy",
|
|
23
|
+
"MM-dd-yyyy",
|
|
24
|
+
"d. M. yyyy",
|
|
25
|
+
"d. M. yyyy.",
|
|
26
|
+
"d.M.yyyy",
|
|
27
|
+
"yyyy/MM/dd",
|
|
28
|
+
"dd/MM/yyyy",
|
|
29
|
+
"M/d/yyyy",
|
|
30
|
+
"MM/dd/yyyy",
|
|
31
|
+
"dd MMMM yyyy",
|
|
32
|
+
"yyyy-MM-dd'T'HH:mm:ss",
|
|
33
|
+
"yyyy-MM-dd'T'HH:mm:ss.SSS",
|
|
34
|
+
"yyyy-MM-dd'T'HH:mm:ss.SSSZ",
|
|
35
|
+
"dd.MM.yyyy",
|
|
36
|
+
"MM.dd.yyyy",
|
|
37
|
+
"EEE, d MMM yyyy",
|
|
38
|
+
"EEE, d MMM yyyy HH:mm:ss Z"
|
|
39
|
+
];
|
|
40
|
+
let y;
|
|
41
|
+
for (const t of r)
|
|
42
|
+
if (y = M.fromFormat(e, t), y.isValid) break;
|
|
43
|
+
return (!y || !y.isValid) && (y = M.fromISO(e)), y.isValid ? y.toJSDate().toISOString() : null;
|
|
83
44
|
}
|
|
84
|
-
|
|
45
|
+
export {
|
|
46
|
+
l as dateFilterFn,
|
|
47
|
+
i as dateRangeFilterFn,
|
|
48
|
+
u as multiselectFilterFn
|
|
49
|
+
};
|
package/dist/utils/date.js
CHANGED
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import { DateTime } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
if (dateFormat) {
|
|
16
|
-
return DateTime.fromISO(date).toFormat(format);
|
|
17
|
-
}
|
|
18
|
-
return DateTime.fromISO(date)
|
|
19
|
-
.setLocale(locale)
|
|
20
|
-
.toLocaleString(time ? DateTime.DATETIME_SHORT : undefined);
|
|
1
|
+
import { DateTime as t } from "luxon";
|
|
2
|
+
const m = (r, e, n = !1, o) => {
|
|
3
|
+
if (r === null)
|
|
4
|
+
return null;
|
|
5
|
+
if (r === "")
|
|
6
|
+
return "";
|
|
7
|
+
const f = n ? `${o} HH:mm` : `${o}`, i = new Date(r);
|
|
8
|
+
return isNaN(i.getTime()) ? "Invalid date" : o ? t.fromISO(r).toFormat(f) : t.fromISO(r).setLocale(e).toLocaleString(
|
|
9
|
+
n ? t.DATETIME_SHORT : void 0
|
|
10
|
+
);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
m as formatDate
|
|
21
14
|
};
|
|
22
|
-
//# sourceMappingURL=date.js.map
|