overview-components 1.0.93 → 1.0.96
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/___vite-browser-external.js +6 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/dist/_virtual/_commonjsHelpers.js +28 -0
- package/dist/_virtual/lodash.js +4 -0
- package/dist/_virtual/pdf.js +4 -0
- 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 +271 -432
- package/dist/components/lit-badge.js +40 -40
- package/dist/components/lit-case-variables-tab.js +382 -497
- package/dist/components/lit-chart.js +378 -406
- package/dist/components/lit-data-grid-tanstack.js +1150 -1663
- package/dist/components/lit-filter-modal.js +198 -230
- package/dist/components/lit-multiselect-item.js +301 -477
- package/dist/components/lit-section-tab.js +73 -85
- package/dist/components/lit-tabs-overview.js +191 -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.js +42 -43
- package/dist/libs/xlsx.mini.min.js +10 -0
- 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 +306 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +448 -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 +50 -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 +250 -0
- 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/chart.js/dist/chart.js +7122 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +1691 -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/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 +243 -0
- package/dist/node_modules/lodash/lodash.js +3678 -0
- 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/pdfjs-dist/build/pdf.js +10310 -0
- package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
- package/dist/shared/lit-button.js +66 -80
- package/dist/shared/lit-progress-bar.js +35 -33
- package/dist/shared/simple-tooltip.js +124 -198
- package/dist/shared/styles/button-shared-styles.js +8 -4
- package/dist/utils/currency.js +12 -15
- package/dist/utils/custom-filters.js +46 -80
- package/dist/utils/date.js +14 -21
- package/dist/utils/getOperatorByType.js +51 -65
- package/dist/utils/localization.js +29 -431
- package/dist/vite.svg +1 -0
- package/package.json +76 -74
- 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/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,65 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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";
|
|
5
|
+
import { property as e } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
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--)
|
|
10
|
+
(c = s[p]) && (o = (l ? c(n, a, o) : c(o)) || o);
|
|
11
|
+
return l && o && b(n, a, o), o;
|
|
6
12
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
let LitButton = class LitButton extends LitElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.variant = 'contained';
|
|
19
|
-
this.size = 'medium';
|
|
20
|
-
this.label = 'Button';
|
|
21
|
-
this.fullWidth = false;
|
|
22
|
-
this.disabled = false;
|
|
23
|
-
this.count = undefined;
|
|
24
|
-
this.active = false;
|
|
25
|
-
this.isLoading = false;
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
const classes = `button--${this.size} button--${this.variant} ${this.fullWidth ? 'button--fullWidth' : ''} ${this.active ? 'active' : ''}`;
|
|
29
|
-
const hasCount = this.count !== undefined && this.count !== null && this.count >= 0;
|
|
30
|
-
return html `
|
|
31
|
-
<button ?disabled=${this.disabled} @click=${this.onClick} class=${classes}>
|
|
13
|
+
let t = class extends d {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.variant = "contained", this.size = "medium", this.label = "Button", this.fullWidth = !1, this.disabled = !1, this.count = void 0, this.active = !1, this.isLoading = !1;
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
const s = `button--${this.size} button--${this.variant} ${this.fullWidth ? "button--fullWidth" : ""} ${this.active ? "active" : ""}`, n = this.count !== void 0 && this.count !== null && this.count >= 0;
|
|
19
|
+
return r`
|
|
20
|
+
<button ?disabled=${this.disabled} @click=${this.onClick} class=${s}>
|
|
32
21
|
<div class="button--content">
|
|
33
|
-
${this.isLoading
|
|
34
|
-
? html ` <lit-loader size="small" class="button--loader"></lit-loader> `
|
|
35
|
-
: null}
|
|
22
|
+
${this.isLoading ? r` <lit-loader size="small" class="button--loader"></lit-loader> ` : null}
|
|
36
23
|
|
|
37
24
|
<div
|
|
38
25
|
class="button-inner"
|
|
39
|
-
style="visibility: ${this.isLoading ?
|
|
26
|
+
style="visibility: ${this.isLoading ? "hidden" : "visible"};
|
|
40
27
|
"
|
|
41
28
|
>
|
|
42
29
|
<slot name="start-icon">
|
|
43
|
-
${this.icon
|
|
44
|
-
? html `<lit-icon
|
|
30
|
+
${this.icon ? r`<lit-icon
|
|
45
31
|
class="start-icon"
|
|
46
32
|
size="1.25rem"
|
|
47
33
|
icon="${this.icon}"
|
|
48
|
-
></lit-icon>`
|
|
49
|
-
: ''}
|
|
34
|
+
></lit-icon>` : ""}
|
|
50
35
|
</slot>
|
|
51
36
|
${this.label}
|
|
52
|
-
${
|
|
37
|
+
${n ? r`<lit-pill count=${this.count}></lit-pill>` : ""}
|
|
53
38
|
</div>
|
|
54
39
|
</div>
|
|
55
40
|
</button>
|
|
56
41
|
`;
|
|
57
|
-
|
|
42
|
+
}
|
|
58
43
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
44
|
+
t.styles = [
|
|
45
|
+
// styles,
|
|
46
|
+
m,
|
|
47
|
+
h`
|
|
63
48
|
/* Basic button styles */
|
|
64
49
|
button {
|
|
65
50
|
line-height: 1.5rem;
|
|
@@ -117,40 +102,41 @@ LitButton.styles = [
|
|
|
117
102
|
gap: 0.5rem;
|
|
118
103
|
visibility: visible;
|
|
119
104
|
}
|
|
120
|
-
|
|
105
|
+
`
|
|
121
106
|
];
|
|
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
|
-
export {
|
|
156
|
-
|
|
107
|
+
i([
|
|
108
|
+
e({ type: String })
|
|
109
|
+
], t.prototype, "variant", 2);
|
|
110
|
+
i([
|
|
111
|
+
e({ type: String })
|
|
112
|
+
], t.prototype, "size", 2);
|
|
113
|
+
i([
|
|
114
|
+
e({ type: String })
|
|
115
|
+
], t.prototype, "label", 2);
|
|
116
|
+
i([
|
|
117
|
+
e({ type: String })
|
|
118
|
+
], t.prototype, "icon", 2);
|
|
119
|
+
i([
|
|
120
|
+
e({ type: Boolean })
|
|
121
|
+
], t.prototype, "fullWidth", 2);
|
|
122
|
+
i([
|
|
123
|
+
e({ type: Boolean })
|
|
124
|
+
], t.prototype, "disabled", 2);
|
|
125
|
+
i([
|
|
126
|
+
e({ type: Number })
|
|
127
|
+
], t.prototype, "count", 2);
|
|
128
|
+
i([
|
|
129
|
+
e({ type: Function })
|
|
130
|
+
], t.prototype, "onClick", 2);
|
|
131
|
+
i([
|
|
132
|
+
e({ type: Boolean })
|
|
133
|
+
], t.prototype, "active", 2);
|
|
134
|
+
i([
|
|
135
|
+
e({ type: Boolean })
|
|
136
|
+
], t.prototype, "isLoading", 2);
|
|
137
|
+
t = i([
|
|
138
|
+
u("lit-button")
|
|
139
|
+
], t);
|
|
140
|
+
export {
|
|
141
|
+
t as LitButton
|
|
142
|
+
};
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { customElement as c } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
2
|
+
import { property as n } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
3
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
4
|
+
import { html as g } from "../node_modules/lit-html/lit-html.js";
|
|
5
|
+
import { LitElement as d } from "../node_modules/lit-element/lit-element.js";
|
|
6
|
+
import { css as m } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
7
|
+
var f = Object.defineProperty, v = Object.getOwnPropertyDescriptor, l = (e, t, i, o) => {
|
|
8
|
+
for (var r = o > 1 ? void 0 : o ? v(t, i) : t, a = e.length - 1, p; a >= 0; a--)
|
|
9
|
+
(p = e[a]) && (r = (o ? p(t, i, r) : p(r)) || r);
|
|
10
|
+
return o && r && f(t, i, r), r;
|
|
6
11
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
const clampedProgress = Math.min(100, Math.max(0, this.progress));
|
|
17
|
-
return html `
|
|
12
|
+
let s = class extends d {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.label = "", this.progress = 0;
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
const e = Math.min(100, Math.max(0, this.progress));
|
|
18
|
+
return g`
|
|
18
19
|
<div class="container">
|
|
19
20
|
<div class="label">${this.label}</div>
|
|
20
21
|
<div class="progress-bar-container">
|
|
21
|
-
<div class="percentage">${
|
|
22
|
+
<div class="percentage">${e}%</div>
|
|
22
23
|
<div class="progress-bar">
|
|
23
|
-
<div class="progress-fill" style="width: ${
|
|
24
|
+
<div class="progress-fill" style="width: ${e}%"></div>
|
|
24
25
|
</div>
|
|
25
26
|
</div>
|
|
26
27
|
</div>
|
|
27
28
|
`;
|
|
28
|
-
|
|
29
|
+
}
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
s.styles = [
|
|
32
|
+
m`
|
|
32
33
|
.container {
|
|
33
34
|
gap: 4px;
|
|
34
35
|
}
|
|
@@ -66,16 +67,17 @@ LitProgressBar.styles = [
|
|
|
66
67
|
font-weight: 500;
|
|
67
68
|
font-size: 14px;
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
+
`
|
|
70
71
|
];
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
],
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
],
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
],
|
|
80
|
-
export {
|
|
81
|
-
|
|
72
|
+
l([
|
|
73
|
+
n({ type: String })
|
|
74
|
+
], s.prototype, "label", 2);
|
|
75
|
+
l([
|
|
76
|
+
n({ type: Number })
|
|
77
|
+
], s.prototype, "progress", 2);
|
|
78
|
+
s = l([
|
|
79
|
+
c("lit-progress-bar")
|
|
80
|
+
], s);
|
|
81
|
+
export {
|
|
82
|
+
s as LitProgressBar
|
|
83
|
+
};
|
|
@@ -1,135 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import "../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { render as p, html as d } from "../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import { LitElement as f } from "../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { customElement as u } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
|
|
5
|
+
import { property as h } from "../node_modules/@lit/reactive-element/decorators/property.js";
|
|
6
|
+
import { directive as g, Directive as v } from "../node_modules/lit-html/directive.js";
|
|
7
|
+
import { computePosition as w, offset as y, flip as E, shift as b, size as x, arrow as T } from "../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
8
|
+
import { css as _ } from "../node_modules/@lit/reactive-element/css-tag.js";
|
|
9
|
+
var k = Object.defineProperty, L = Object.getOwnPropertyDescriptor, a = (i, t, n, r) => {
|
|
10
|
+
for (var o = r > 1 ? void 0 : r ? L(t, n) : t, e = i.length - 1, s; e >= 0; e--)
|
|
11
|
+
(s = i[e]) && (o = (r ? s(t, n, o) : s(o)) || o);
|
|
12
|
+
return r && o && k(t, n, o), o;
|
|
6
13
|
};
|
|
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 `
|
|
14
|
+
const m = ["pointerenter", "mouseenter"], c = ["pointerleave", "mouseleave", "blur", "keydown", "click", "scroll"];
|
|
15
|
+
let l = class extends f {
|
|
16
|
+
constructor() {
|
|
17
|
+
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 = () => {
|
|
18
|
+
this.clearOpenTimeout(), this.openTimeout = window.setTimeout(() => {
|
|
19
|
+
this._target && this.isHoveringTarget && this.showTooltipNow();
|
|
20
|
+
}, this.openDelayMs);
|
|
21
|
+
}, this.showTooltipNow = () => {
|
|
22
|
+
this.style.removeProperty("display"), this.style.zIndex = "100000", this.showing = !0, !(!this.target || !this.arrowElement) && w(this.target, this, {
|
|
23
|
+
placement: this.placement,
|
|
24
|
+
strategy: "absolute",
|
|
25
|
+
middleware: [
|
|
26
|
+
y(this.offset),
|
|
27
|
+
E(),
|
|
28
|
+
b({ padding: 8 }),
|
|
29
|
+
x({ padding: 8 }),
|
|
30
|
+
T({ element: this.arrowElement })
|
|
31
|
+
]
|
|
32
|
+
}).then(({ x: i, y: t, placement: n, middlewareData: r }) => {
|
|
33
|
+
r.hide && Object.assign(this.style, {
|
|
34
|
+
display: r.hide.referenceHidden || !this.showing ? "none" : "block"
|
|
35
|
+
}), Object.assign(this.style, {
|
|
36
|
+
left: `${i}px`,
|
|
37
|
+
top: `${t}px`
|
|
38
|
+
});
|
|
39
|
+
const o = {
|
|
40
|
+
top: "bottom",
|
|
41
|
+
bottom: "top",
|
|
42
|
+
left: "right",
|
|
43
|
+
right: "left"
|
|
44
|
+
}[n.split("-")[0]], { x: e, y: s } = r.arrow || {};
|
|
45
|
+
Object.assign(this.arrowElement.style, {
|
|
46
|
+
left: e != null ? `${e}px` : "",
|
|
47
|
+
top: s != null ? `${s}px` : "",
|
|
48
|
+
right: "",
|
|
49
|
+
bottom: "",
|
|
50
|
+
[o]: "-4px"
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}, this.clearOpenTimeout = () => {
|
|
54
|
+
this.openTimeout !== null && (clearTimeout(this.openTimeout), this.openTimeout = null);
|
|
55
|
+
}, this.markHovering = () => {
|
|
56
|
+
this.isHoveringTarget = !0;
|
|
57
|
+
}, this.markNotHovering = () => {
|
|
58
|
+
this.isHoveringTarget = !1, this.clearOpenTimeout();
|
|
59
|
+
}, this.hide = () => {
|
|
60
|
+
this.showing = !1, this.style.display = "none";
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
get target() {
|
|
64
|
+
return this._target;
|
|
65
|
+
}
|
|
66
|
+
set target(i) {
|
|
67
|
+
this._target && (m.forEach((t) => {
|
|
68
|
+
this._target.removeEventListener(t, this.scheduleShow), this._target.removeEventListener(t, this.markHovering);
|
|
69
|
+
}), c.forEach((t) => this._target.removeEventListener(t, this.hide))), i && (m.forEach((t) => {
|
|
70
|
+
i.addEventListener(t, this.scheduleShow), i.addEventListener(t, this.markHovering);
|
|
71
|
+
}), c.forEach((t) => {
|
|
72
|
+
i.addEventListener(t, this.markNotHovering), i.addEventListener(t, this.hide);
|
|
73
|
+
})), this._target = i;
|
|
74
|
+
}
|
|
75
|
+
connectedCallback() {
|
|
76
|
+
super.connectedCallback(), this.style.display = "none";
|
|
77
|
+
}
|
|
78
|
+
firstUpdated() {
|
|
79
|
+
this.arrowElement = this.shadowRoot.getElementById("arrow");
|
|
80
|
+
}
|
|
81
|
+
render() {
|
|
82
|
+
return d`
|
|
127
83
|
<div id="arrow"></div>
|
|
128
84
|
<slot></slot>
|
|
129
85
|
`;
|
|
130
|
-
|
|
86
|
+
}
|
|
131
87
|
};
|
|
132
|
-
|
|
88
|
+
l.styles = _`
|
|
133
89
|
:host {
|
|
134
90
|
position: absolute;
|
|
135
91
|
display: inline-block;
|
|
@@ -173,76 +129,46 @@ SimpleTooltip.styles = css `
|
|
|
173
129
|
max-height: 70vh;
|
|
174
130
|
}
|
|
175
131
|
`;
|
|
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
|
-
}
|
|
132
|
+
a([
|
|
133
|
+
h({ type: Boolean, reflect: !0 })
|
|
134
|
+
], l.prototype, "showing", 2);
|
|
135
|
+
a([
|
|
136
|
+
h({ type: String, reflect: !0 })
|
|
137
|
+
], l.prototype, "placement", 2);
|
|
138
|
+
a([
|
|
139
|
+
h({ type: Number })
|
|
140
|
+
], l.prototype, "offset", 2);
|
|
141
|
+
a([
|
|
142
|
+
h({ type: Number })
|
|
143
|
+
], l.prototype, "openDelayMs", 2);
|
|
144
|
+
l = a([
|
|
145
|
+
u("simple-tooltip")
|
|
146
|
+
], l);
|
|
147
|
+
class H extends v {
|
|
148
|
+
constructor() {
|
|
149
|
+
super(...arguments), this.initialized = !1;
|
|
150
|
+
}
|
|
151
|
+
disconnect() {
|
|
152
|
+
this.tooltip && (this.tooltip.hide(), this.tooltip.parentElement && this.tooltip.parentElement.removeChild(this.tooltip), this.tooltip = void 0, this.initialized = !1);
|
|
153
|
+
}
|
|
154
|
+
render() {
|
|
155
|
+
}
|
|
156
|
+
// required override
|
|
157
|
+
update(t, [n, r = "top", o = 200]) {
|
|
158
|
+
this.part = t, this.content = n, this.placement = r, this.delay = o;
|
|
159
|
+
const e = this.part.element;
|
|
160
|
+
if (!this.initialized) {
|
|
161
|
+
this.initialized = !0;
|
|
162
|
+
const s = () => {
|
|
163
|
+
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);
|
|
164
|
+
};
|
|
165
|
+
e.addEventListener("mouseenter", s), e.addEventListener("pointerenter", s);
|
|
245
166
|
}
|
|
167
|
+
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());
|
|
168
|
+
}
|
|
246
169
|
}
|
|
247
|
-
|
|
248
|
-
|
|
170
|
+
const j = g(H);
|
|
171
|
+
export {
|
|
172
|
+
l as SimpleTooltip,
|
|
173
|
+
j as tooltip
|
|
174
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import "../../node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as o } from "../../node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const e = o`
|
|
3
6
|
button {
|
|
4
7
|
font-family: inherit;
|
|
5
8
|
border-radius: var(--border-radius-small, 0.5rem);
|
|
@@ -197,5 +200,6 @@ const buttonStyles = css `
|
|
|
197
200
|
border: none;
|
|
198
201
|
}
|
|
199
202
|
`;
|
|
200
|
-
export
|
|
201
|
-
|
|
203
|
+
export {
|
|
204
|
+
e as default
|
|
205
|
+
};
|