overview-components 1.0.98 → 1.0.100
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 +70 -72
- package/dist/assets/generated/locales/de.js.map +1 -0
- package/dist/assets/generated/locales/en.js +70 -72
- package/dist/assets/generated/locales/en.js.map +1 -0
- package/dist/assets/generated/locales/fr.js +70 -72
- package/dist/assets/generated/locales/fr.js.map +1 -0
- package/dist/assets/generated/locales/hr.js +70 -72
- package/dist/assets/generated/locales/hr.js.map +1 -0
- package/dist/assets/generated/locales/it.js +70 -72
- package/dist/assets/generated/locales/it.js.map +1 -0
- package/dist/assets/generated/locales/pl.js +70 -72
- package/dist/assets/generated/locales/pl.js.map +1 -0
- package/dist/assets/generated/locales/ro.js +70 -72
- package/dist/assets/generated/locales/ro.js.map +1 -0
- package/dist/assets/generated/locales/sk.js +70 -72
- package/dist/assets/generated/locales/sk.js.map +1 -0
- package/dist/assets/generated/locales/sr.js +70 -72
- package/dist/assets/generated/locales/sr.js.map +1 -0
- package/dist/assets/icons/iconGlyphs.js +678 -679
- package/dist/assets/icons/iconGlyphs.js.map +1 -0
- package/dist/assets/illustration/delete-illustration.js +96 -0
- package/dist/assets/illustration/delete-illustration.js.map +1 -0
- package/dist/assets/illustration/no-content.js +167 -0
- package/dist/assets/illustration/no-content.js.map +1 -0
- package/dist/assets/illustration/no-preview.js +133 -0
- package/dist/assets/illustration/no-preview.js.map +1 -0
- package/dist/assets/illustration/not-found.js +19 -22
- package/dist/assets/illustration/not-found.js.map +1 -0
- package/dist/assets/illustration/settings-illustration.js +176 -0
- package/dist/assets/illustration/settings-illustration.js.map +1 -0
- package/dist/components/components-settings/attachments-tab-settings.js +226 -0
- package/dist/components/components-settings/attachments-tab-settings.js.map +1 -0
- package/dist/components/components-settings/data-grid-settings.js +212 -182
- package/dist/components/components-settings/data-grid-settings.js.map +1 -0
- package/dist/components/components-settings/section-tab-settings.js +269 -0
- package/dist/components/components-settings/section-tab-settings.js.map +1 -0
- package/dist/components/components-settings/tabs-overview-settings.js +439 -0
- package/dist/components/components-settings/tabs-overview-settings.js.map +1 -0
- package/dist/components/lit-attachments-tab.js +432 -271
- package/dist/components/lit-attachments-tab.js.map +1 -0
- package/dist/components/lit-badge.js +40 -40
- package/dist/components/lit-badge.js.map +1 -0
- package/dist/components/lit-case-variables-tab.js +497 -382
- package/dist/components/lit-case-variables-tab.js.map +1 -0
- package/dist/components/lit-chart.js +406 -378
- package/dist/components/lit-chart.js.map +1 -0
- package/dist/components/lit-data-grid-tanstack.js +1663 -1150
- package/dist/components/lit-data-grid-tanstack.js.map +1 -0
- package/dist/components/lit-filter-modal.js +230 -198
- package/dist/components/lit-filter-modal.js.map +1 -0
- package/dist/components/lit-multiselect-item.js +477 -301
- package/dist/components/lit-multiselect-item.js.map +1 -0
- package/dist/components/lit-section-tab.js +85 -73
- package/dist/components/lit-section-tab.js.map +1 -0
- package/dist/components/lit-tabs-overview.js +232 -191
- package/dist/components/lit-tabs-overview.js.map +1 -0
- package/dist/components/modals/lit-confirm-modal.js +120 -0
- package/dist/components/modals/lit-confirm-modal.js.map +1 -0
- package/dist/components/modals/lit-delete-modal.js +128 -0
- package/dist/components/modals/lit-delete-modal.js.map +1 -0
- package/dist/components/react-wrappers/attachments-tab.js +8 -13
- package/dist/components/react-wrappers/attachments-tab.js.map +1 -0
- package/dist/components/react-wrappers/badge.js +8 -13
- package/dist/components/react-wrappers/badge.js.map +1 -0
- package/dist/components/react-wrappers/button.js +8 -13
- package/dist/components/react-wrappers/button.js.map +1 -0
- package/dist/components/react-wrappers/case-variables-tab.js +8 -13
- package/dist/components/react-wrappers/case-variables-tab.js.map +1 -0
- package/dist/components/react-wrappers/chart.js +8 -13
- package/dist/components/react-wrappers/chart.js.map +1 -0
- package/dist/components/react-wrappers/data-grid-tanstack.js +8 -13
- package/dist/components/react-wrappers/data-grid-tanstack.js.map +1 -0
- package/dist/components/react-wrappers/filter-modal.js +8 -13
- package/dist/components/react-wrappers/filter-modal.js.map +1 -0
- package/dist/components/react-wrappers/progress-bar.js +8 -13
- package/dist/components/react-wrappers/progress-bar.js.map +1 -0
- package/dist/components/react-wrappers/section-tab.js +8 -13
- package/dist/components/react-wrappers/section-tab.js.map +1 -0
- package/dist/components/react-wrappers/tabs-overview.js +8 -13
- package/dist/components/react-wrappers/tabs-overview.js.map +1 -0
- package/dist/data/translations.js +2763 -0
- package/dist/data/translations.js.map +1 -0
- package/dist/index.js +72 -80
- package/dist/index.js.map +1 -0
- package/dist/schemas/index.js +17 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/lit-attachments-tab-document.schema.js +20 -0
- package/dist/schemas/lit-attachments-tab-document.schema.js.map +1 -0
- package/dist/schemas/lit-attachments-tab-settings-value.schema.js +15 -0
- package/dist/schemas/lit-attachments-tab-settings-value.schema.js.map +1 -0
- package/dist/schemas/lit-attachments-tab.schema.js +32 -0
- package/dist/schemas/lit-attachments-tab.schema.js.map +1 -0
- package/dist/schemas/lit-case-variables-tab-cell.schema.js +43 -0
- package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +1 -0
- package/dist/schemas/lit-case-variables-tab-rows.schema.js +6 -0
- package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +1 -0
- package/dist/schemas/lit-case-variables-tab.schema.js +24 -0
- package/dist/schemas/lit-case-variables-tab.schema.js.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +6 -0
- package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +6 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +11 -0
- package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack-column.schema.js +55 -0
- package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +1 -0
- package/dist/schemas/lit-data-grid-tanstack.schema.js +99 -0
- package/dist/schemas/lit-data-grid-tanstack.schema.js.map +1 -0
- package/dist/schemas/lit-section-tab-schema.js +24 -0
- package/dist/schemas/lit-section-tab-schema.js.map +1 -0
- package/dist/schemas/lit-tabs-overview-tab-array.schema.js +6 -0
- package/dist/schemas/lit-tabs-overview-tab-array.schema.js.map +1 -0
- package/dist/schemas/lit-tabs-overview-tab.schema.js +32 -0
- package/dist/schemas/lit-tabs-overview-tab.schema.js.map +1 -0
- package/dist/schemas/lit-tabs-overview.schema.js +29 -0
- package/dist/schemas/lit-tabs-overview.schema.js.map +1 -0
- package/dist/scripts/translate-locales.js +69 -0
- package/dist/scripts/translate-locales.js.map +1 -0
- package/dist/shared/filter-inputs.js +335 -234
- package/dist/shared/filter-inputs.js.map +1 -0
- package/dist/shared/lit-button.js +80 -66
- package/dist/shared/lit-button.js.map +1 -0
- package/dist/shared/lit-case-variables-tab-cell.js +226 -0
- package/dist/shared/lit-case-variables-tab-cell.js.map +1 -0
- package/dist/shared/lit-checkbox.js +94 -78
- package/dist/shared/lit-checkbox.js.map +1 -0
- package/dist/shared/lit-custom-popper.js +117 -0
- package/dist/shared/lit-custom-popper.js.map +1 -0
- package/dist/shared/lit-data-grid-action-buttons-popover.js +178 -141
- package/dist/shared/lit-data-grid-action-buttons-popover.js.map +1 -0
- package/dist/shared/lit-data-grid-density-popover.js +54 -49
- package/dist/shared/lit-data-grid-density-popover.js.map +1 -0
- package/dist/shared/lit-data-grid-export-popover.js +43 -41
- package/dist/shared/lit-data-grid-export-popover.js.map +1 -0
- package/dist/shared/lit-data-grid-operators-popover.js +114 -0
- package/dist/shared/lit-data-grid-operators-popover.js.map +1 -0
- package/dist/shared/lit-data-grid-row-actions.js +54 -51
- package/dist/shared/lit-data-grid-row-actions.js.map +1 -0
- package/dist/shared/lit-date-picker.js +606 -0
- package/dist/shared/lit-date-picker.js.map +1 -0
- package/dist/shared/lit-icon-button.js +66 -52
- package/dist/shared/lit-icon-button.js.map +1 -0
- package/dist/shared/lit-icon.js +261 -259
- package/dist/shared/lit-icon.js.map +1 -0
- package/dist/shared/lit-input.js +239 -0
- package/dist/shared/lit-input.js.map +1 -0
- package/dist/shared/lit-label.js +104 -0
- package/dist/shared/lit-label.js.map +1 -0
- package/dist/shared/lit-loader.js +69 -0
- package/dist/shared/lit-loader.js.map +1 -0
- package/dist/shared/lit-loading-bar.js +57 -24
- package/dist/shared/lit-loading-bar.js.map +1 -0
- package/dist/shared/lit-menu-item.js +99 -0
- package/dist/shared/lit-menu-item.js.map +1 -0
- package/dist/shared/lit-menu.js +42 -0
- package/dist/shared/lit-menu.js.map +1 -0
- package/dist/shared/lit-modal-body.js +22 -0
- package/dist/shared/lit-modal-body.js.map +1 -0
- package/dist/shared/lit-modal-footer.js +29 -0
- package/dist/shared/lit-modal-footer.js.map +1 -0
- package/dist/shared/lit-modal-header.js +36 -0
- package/dist/shared/lit-modal-header.js.map +1 -0
- package/dist/shared/lit-modal.js +169 -0
- package/dist/shared/lit-modal.js.map +1 -0
- package/dist/shared/lit-overflow-tooltip.js +86 -68
- package/dist/shared/lit-overflow-tooltip.js.map +1 -0
- package/dist/shared/lit-pill.js +88 -0
- package/dist/shared/lit-pill.js.map +1 -0
- package/dist/shared/lit-progress-bar.js +33 -35
- package/dist/shared/lit-progress-bar.js.map +1 -0
- package/dist/shared/lit-responsive-button.js +74 -64
- package/dist/shared/lit-responsive-button.js.map +1 -0
- package/dist/shared/lit-select-field.js +459 -0
- package/dist/shared/lit-select-field.js.map +1 -0
- package/dist/shared/lit-select.js +413 -0
- package/dist/shared/lit-select.js.map +1 -0
- package/dist/shared/lit-settings.js +77 -0
- package/dist/shared/lit-settings.js.map +1 -0
- package/dist/shared/lit-text-field.js +222 -0
- package/dist/shared/lit-text-field.js.map +1 -0
- package/dist/shared/lit-toggle.js +222 -0
- package/dist/shared/lit-toggle.js.map +1 -0
- package/dist/shared/lit-tooltip.js +166 -0
- package/dist/shared/lit-tooltip.js.map +1 -0
- package/dist/shared/simple-popper.js +266 -0
- package/dist/shared/simple-popper.js.map +1 -0
- package/dist/shared/simple-tooltip.js +198 -124
- package/dist/shared/simple-tooltip.js.map +1 -0
- package/dist/shared/styles/button-shared-styles.js +4 -8
- package/dist/shared/styles/button-shared-styles.js.map +1 -0
- package/dist/styles.js +3 -8
- package/dist/styles.js.map +1 -0
- package/dist/utils/currency.js +15 -12
- package/dist/utils/currency.js.map +1 -0
- package/dist/utils/custom-filters.js +80 -46
- package/dist/utils/custom-filters.js.map +1 -0
- package/dist/utils/date.js +21 -14
- package/dist/utils/date.js.map +1 -0
- package/dist/utils/getOperatorByType.js +65 -51
- package/dist/utils/getOperatorByType.js.map +1 -0
- package/dist/utils/getOverviewValue.js +177 -0
- package/dist/utils/getOverviewValue.js.map +1 -0
- package/dist/utils/localization.js +431 -29
- package/dist/utils/localization.js.map +1 -0
- package/dist/utils/utils.js +12 -10
- package/dist/utils/utils.js.map +1 -0
- package/dist/utils/validate-json-schema.js +8 -0
- package/dist/utils/validate-json-schema.js.map +1 -0
- package/dist/validators/validator.js +7 -0
- package/dist/validators/validator.js.map +1 -0
- package/package.json +2 -2
- package/dist/_virtual/FileSaver.min.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/_virtual/lodash.js +0 -4
- package/dist/libs/xlsx.mini.min.js +0 -10
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -432
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -306
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -127
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -127
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +0 -448
- package/dist/node_modules/@lit/localize/init/install.js +0 -11
- package/dist/node_modules/@lit/localize/init/runtime.js +0 -42
- package/dist/node_modules/@lit/localize/internal/default-msg.js +0 -10
- package/dist/node_modules/@lit/localize/internal/deferred.js +0 -21
- package/dist/node_modules/@lit/localize/internal/fnv1a64.js +0 -17
- package/dist/node_modules/@lit/localize/internal/id-generation.js +0 -14
- package/dist/node_modules/@lit/localize/internal/locale-status-event.js +0 -9
- package/dist/node_modules/@lit/localize/internal/runtime-msg.js +0 -42
- package/dist/node_modules/@lit/localize/internal/str-tag.js +0 -15
- package/dist/node_modules/@lit/react/create-component.js +0 -35
- package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -50
- package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -9
- package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
- package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -37
- package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -20
- package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -12
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -250
- package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +0 -104
- package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +0 -40
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +0 -1956
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -490
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
- package/dist/node_modules/chart.js/dist/chart.js +0 -7122
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +0 -1691
- package/dist/node_modules/file-saver/dist/FileSaver.min.js +0 -74
- package/dist/node_modules/lit-element/lit-element.js +0 -51
- package/dist/node_modules/lit-html/async-directive.js +0 -69
- package/dist/node_modules/lit-html/directive-helpers.js +0 -45
- package/dist/node_modules/lit-html/directive.js +0 -27
- package/dist/node_modules/lit-html/directives/class-map.js +0 -34
- package/dist/node_modules/lit-html/directives/ref.js +0 -42
- package/dist/node_modules/lit-html/directives/repeat.js +0 -61
- package/dist/node_modules/lit-html/directives/style-map.js +0 -36
- package/dist/node_modules/lit-html/directives/unsafe-html.js +0 -27
- package/dist/node_modules/lit-html/lit-html.js +0 -243
- package/dist/node_modules/lodash/lodash.js +0 -3678
- package/dist/node_modules/luxon/src/datetime.js +0 -1793
- package/dist/node_modules/luxon/src/duration.js +0 -723
- package/dist/node_modules/luxon/src/errors.js +0 -40
- package/dist/node_modules/luxon/src/impl/conversions.js +0 -92
- package/dist/node_modules/luxon/src/impl/diff.js +0 -36
- package/dist/node_modules/luxon/src/impl/digits.js +0 -74
- package/dist/node_modules/luxon/src/impl/english.js +0 -138
- package/dist/node_modules/luxon/src/impl/formats.js +0 -150
- package/dist/node_modules/luxon/src/impl/formatter.js +0 -245
- package/dist/node_modules/luxon/src/impl/invalid.js +0 -11
- package/dist/node_modules/luxon/src/impl/locale.js +0 -282
- package/dist/node_modules/luxon/src/impl/regexParser.js +0 -202
- package/dist/node_modules/luxon/src/impl/tokenParser.js +0 -329
- package/dist/node_modules/luxon/src/impl/util.js +0 -206
- package/dist/node_modules/luxon/src/impl/zoneUtil.js +0 -19
- package/dist/node_modules/luxon/src/info.js +0 -180
- package/dist/node_modules/luxon/src/interval.js +0 -466
- package/dist/node_modules/luxon/src/settings.js +0 -150
- package/dist/node_modules/luxon/src/zone.js +0 -88
- package/dist/node_modules/luxon/src/zones/IANAZone.js +0 -178
- package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +0 -125
- package/dist/node_modules/luxon/src/zones/invalidZone.js +0 -41
- package/dist/node_modules/luxon/src/zones/systemZone.js +0 -47
- package/dist/node_modules/sortablejs/modular/sortable.esm.js +0 -1261
- package/dist/style.css +0 -1
- package/dist/vite.svg +0 -1
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
6
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
8
|
+
import { css, html, LitElement } from 'lit';
|
|
9
|
+
let LitProgressBar = class LitProgressBar extends LitElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.label = '';
|
|
13
|
+
this.progress = 0;
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
const clampedProgress = Math.min(100, Math.max(0, this.progress));
|
|
17
|
+
return html `
|
|
19
18
|
<div class="container">
|
|
20
19
|
<div class="label">${this.label}</div>
|
|
21
20
|
<div class="progress-bar-container">
|
|
22
|
-
<div class="percentage">${
|
|
21
|
+
<div class="percentage">${clampedProgress}%</div>
|
|
23
22
|
<div class="progress-bar">
|
|
24
|
-
<div class="progress-fill" style="width: ${
|
|
23
|
+
<div class="progress-fill" style="width: ${clampedProgress}%"></div>
|
|
25
24
|
</div>
|
|
26
25
|
</div>
|
|
27
26
|
</div>
|
|
28
27
|
`;
|
|
29
|
-
|
|
28
|
+
}
|
|
30
29
|
};
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
LitProgressBar.styles = [
|
|
31
|
+
css `
|
|
33
32
|
.container {
|
|
34
33
|
gap: 4px;
|
|
35
34
|
}
|
|
@@ -67,17 +66,16 @@ s.styles = [
|
|
|
67
66
|
font-weight: 500;
|
|
68
67
|
font-size: 14px;
|
|
69
68
|
}
|
|
70
|
-
|
|
69
|
+
`,
|
|
71
70
|
];
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
],
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
],
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
],
|
|
81
|
-
export {
|
|
82
|
-
|
|
83
|
-
};
|
|
71
|
+
__decorate([
|
|
72
|
+
property({ type: String })
|
|
73
|
+
], LitProgressBar.prototype, "label", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
property({ type: Number })
|
|
76
|
+
], LitProgressBar.prototype, "progress", void 0);
|
|
77
|
+
LitProgressBar = __decorate([
|
|
78
|
+
customElement('lit-progress-bar')
|
|
79
|
+
], LitProgressBar);
|
|
80
|
+
export { LitProgressBar };
|
|
81
|
+
//# sourceMappingURL=lit-progress-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lit-progress-bar.js","sourceRoot":"","sources":["../../src/shared/lit-progress-bar.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAQrC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU;IAAvC;;QACyB,UAAK,GAAY,EAAE,CAAC;QACpB,aAAQ,GAAW,CAAC,CAAC;IA0DrD,CAAC;IAfG,MAAM;QACF,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;QAElE,OAAO,IAAI,CAAA;;qCAEkB,IAAI,CAAC,KAAK;;8CAED,eAAe;;mEAEM,eAAe;;;;SAIzE,CAAC;IACN,CAAC;;AAvDM,qBAAM,GAAG;IACZ,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAsCF;CACJ,AAxCY,CAwCX;AA3C0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAAsB;AAFxC,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CA4D1B"}
|
|
@@ -1,30 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { LitElement as u } from "../node_modules/lit-element/lit-element.js";
|
|
7
|
-
var m = Object.defineProperty, b = Object.getOwnPropertyDescriptor, e = (p, o, r, n) => {
|
|
8
|
-
for (var s = n > 1 ? void 0 : n ? b(o, r) : o, a = p.length - 1, l; a >= 0; a--)
|
|
9
|
-
(l = p[a]) && (s = (n ? l(o, r, s) : l(s)) || s);
|
|
10
|
-
return n && s && m(o, r, s), s;
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
6
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
8
|
+
import { html, LitElement } from 'lit';
|
|
9
|
+
import './lit-icon-button.js';
|
|
10
|
+
import './lit-button.js';
|
|
11
|
+
let LitResponsiveButton = class LitResponsiveButton extends LitElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.variant = 'contained';
|
|
15
|
+
this.size = 'medium';
|
|
16
|
+
this.label = 'Button';
|
|
17
|
+
this.fullWidth = false;
|
|
18
|
+
this.disabled = false;
|
|
19
|
+
this.count = undefined;
|
|
20
|
+
this.active = false;
|
|
21
|
+
this.isSmallScreen = false; // Stav pre breakpoint
|
|
22
|
+
}
|
|
23
|
+
connectedCallback() {
|
|
24
|
+
super.connectedCallback();
|
|
25
|
+
this.updateScreenSize(); // Inicializácia
|
|
26
|
+
window.addEventListener('resize', this.updateScreenSize.bind(this)); // Počúvanie na zmenu veľkosti
|
|
27
|
+
}
|
|
28
|
+
disconnectedCallback() {
|
|
29
|
+
window.removeEventListener('resize', this.updateScreenSize.bind(this)); // Odstránenie listenera
|
|
30
|
+
super.disconnectedCallback();
|
|
31
|
+
}
|
|
32
|
+
updateScreenSize() {
|
|
33
|
+
this.isSmallScreen = window.matchMedia('(max-width: 600px)').matches; // Kontrola veľkosti obrazovky
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
return this.isSmallScreen
|
|
37
|
+
? html `
|
|
28
38
|
<lit-icon-button
|
|
29
39
|
.icon="${this.icon}"
|
|
30
40
|
.variant="${this.variant}"
|
|
@@ -32,7 +42,8 @@ let t = class extends u {
|
|
|
32
42
|
.disabled="${this.disabled}"
|
|
33
43
|
.active="${this.active}"
|
|
34
44
|
></lit-icon-button>
|
|
35
|
-
`
|
|
45
|
+
`
|
|
46
|
+
: html `
|
|
36
47
|
<lit-button
|
|
37
48
|
.icon="${this.icon}"
|
|
38
49
|
.variant="${this.variant}"
|
|
@@ -44,41 +55,40 @@ let t = class extends u {
|
|
|
44
55
|
.active="${this.active}"
|
|
45
56
|
></lit-button>
|
|
46
57
|
`;
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
e([
|
|
50
|
-
i({ type: String })
|
|
51
|
-
], t.prototype, "variant", 2);
|
|
52
|
-
e([
|
|
53
|
-
i({ type: String })
|
|
54
|
-
], t.prototype, "size", 2);
|
|
55
|
-
e([
|
|
56
|
-
i({ type: String })
|
|
57
|
-
], t.prototype, "label", 2);
|
|
58
|
-
e([
|
|
59
|
-
i({ type: String })
|
|
60
|
-
], t.prototype, "icon", 2);
|
|
61
|
-
e([
|
|
62
|
-
i({ type: Boolean })
|
|
63
|
-
], t.prototype, "fullWidth", 2);
|
|
64
|
-
e([
|
|
65
|
-
i({ type: Boolean })
|
|
66
|
-
], t.prototype, "disabled", 2);
|
|
67
|
-
e([
|
|
68
|
-
i({ type: Number })
|
|
69
|
-
], t.prototype, "count", 2);
|
|
70
|
-
e([
|
|
71
|
-
i({ type: Function })
|
|
72
|
-
], t.prototype, "onClick", 2);
|
|
73
|
-
e([
|
|
74
|
-
i({ type: Boolean })
|
|
75
|
-
], t.prototype, "active", 2);
|
|
76
|
-
e([
|
|
77
|
-
h()
|
|
78
|
-
], t.prototype, "isSmallScreen", 2);
|
|
79
|
-
t = e([
|
|
80
|
-
d("lit-responsive-button")
|
|
81
|
-
], t);
|
|
82
|
-
export {
|
|
83
|
-
t as LitResponsiveButton
|
|
58
|
+
}
|
|
84
59
|
};
|
|
60
|
+
__decorate([
|
|
61
|
+
property({ type: String })
|
|
62
|
+
], LitResponsiveButton.prototype, "variant", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
property({ type: String })
|
|
65
|
+
], LitResponsiveButton.prototype, "size", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
property({ type: String })
|
|
68
|
+
], LitResponsiveButton.prototype, "label", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
property({ type: String })
|
|
71
|
+
], LitResponsiveButton.prototype, "icon", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
property({ type: Boolean })
|
|
74
|
+
], LitResponsiveButton.prototype, "fullWidth", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
property({ type: Boolean })
|
|
77
|
+
], LitResponsiveButton.prototype, "disabled", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
property({ type: Number })
|
|
80
|
+
], LitResponsiveButton.prototype, "count", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
property({ type: Function })
|
|
83
|
+
], LitResponsiveButton.prototype, "onClick", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
property({ type: Boolean })
|
|
86
|
+
], LitResponsiveButton.prototype, "active", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
state()
|
|
89
|
+
], LitResponsiveButton.prototype, "isSmallScreen", void 0);
|
|
90
|
+
LitResponsiveButton = __decorate([
|
|
91
|
+
customElement('lit-responsive-button')
|
|
92
|
+
], LitResponsiveButton);
|
|
93
|
+
export { LitResponsiveButton };
|
|
94
|
+
//# sourceMappingURL=lit-responsive-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lit-responsive-button.js","sourceRoot":"","sources":["../../src/shared/lit-responsive-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,iBAAiB,CAAC;AAMlB,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,UAAU;IAA5C;;QACyB,YAAO,GAAmB,WAAW,CAAC;QACtC,SAAI,GAAkC,QAAQ,CAAC;QAC/C,UAAK,GAAY,QAAQ,C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