overview-components 1.0.93 → 1.0.95
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/index.js +4 -0
- package/dist/_virtual/lodash.js +4 -0
- package/dist/_virtual/pdf.js +4 -0
- package/dist/_virtual/react.production.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/react/cjs/react.production.js +417 -0
- package/dist/node_modules/react/index.js +10 -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,105 +0,0 @@
|
|
|
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;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, css } from 'lit';
|
|
8
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
-
import './lit-icon.js';
|
|
10
|
-
// styles
|
|
11
|
-
import buttonStyles from './styles/button-shared-styles.js';
|
|
12
|
-
let IconButton = class IconButton extends LitElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
// Define properties for size and variant with default values
|
|
16
|
-
this.variant = 'contained';
|
|
17
|
-
this.size = 'medium';
|
|
18
|
-
this.disabled = false;
|
|
19
|
-
this.active = false;
|
|
20
|
-
this.icon = 'add';
|
|
21
|
-
this.marked = false;
|
|
22
|
-
}
|
|
23
|
-
// Render method to define the component's template
|
|
24
|
-
render() {
|
|
25
|
-
const classes = `button--${this.size} button--${this.variant} ${this.active ? 'active' : ''}`;
|
|
26
|
-
const iconSize = this.size === 'large'
|
|
27
|
-
? '1.5rem'
|
|
28
|
-
: this.size === 'medium' || this.marked
|
|
29
|
-
? '1.25rem'
|
|
30
|
-
: this.size === 'small'
|
|
31
|
-
? '1rem'
|
|
32
|
-
: '0.75rem';
|
|
33
|
-
return html `
|
|
34
|
-
<button ?disabled=${this.disabled} class=${classes}>
|
|
35
|
-
<slot name="icon"
|
|
36
|
-
>${this.icon &&
|
|
37
|
-
html `<lit-icon
|
|
38
|
-
class="out-ai"
|
|
39
|
-
.isActive="${this.marked}"
|
|
40
|
-
size="${iconSize}"
|
|
41
|
-
icon=${this.icon}
|
|
42
|
-
></lit-icon>`}</slot
|
|
43
|
-
>
|
|
44
|
-
</button>
|
|
45
|
-
`;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
// Define CSS styles for different sizes and variants
|
|
49
|
-
IconButton.styles = [
|
|
50
|
-
// styles,
|
|
51
|
-
buttonStyles,
|
|
52
|
-
css `
|
|
53
|
-
/* Base styles for icon button */
|
|
54
|
-
|
|
55
|
-
button {
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
font-size: inherit;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Size variations */
|
|
61
|
-
|
|
62
|
-
.button--mini {
|
|
63
|
-
width: 12px;
|
|
64
|
-
height: 12px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.button--small {
|
|
68
|
-
width: 20px;
|
|
69
|
-
height: 20px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.button--medium {
|
|
73
|
-
width: 48px;
|
|
74
|
-
height: 36px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.button--large {
|
|
78
|
-
width: 48px;
|
|
79
|
-
height: 48px;
|
|
80
|
-
}
|
|
81
|
-
`,
|
|
82
|
-
];
|
|
83
|
-
__decorate([
|
|
84
|
-
property({ type: String })
|
|
85
|
-
], IconButton.prototype, "variant", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
property({ type: String })
|
|
88
|
-
], IconButton.prototype, "size", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
property({ type: Boolean })
|
|
91
|
-
], IconButton.prototype, "disabled", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
property({ type: Boolean, reflect: true })
|
|
94
|
-
], IconButton.prototype, "active", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
property({ type: String })
|
|
97
|
-
], IconButton.prototype, "icon", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
property({ type: Boolean })
|
|
100
|
-
], IconButton.prototype, "marked", void 0);
|
|
101
|
-
IconButton = __decorate([
|
|
102
|
-
customElement('lit-icon-button')
|
|
103
|
-
], IconButton);
|
|
104
|
-
export { IconButton };
|
|
105
|
-
//# sourceMappingURL=lit-icon-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lit-icon-button.js","sourceRoot":"","sources":["../../src/shared/lit-icon-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,eAAe,CAAC;AAEvB,SAAS;AACT,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAYrD,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QACH,6DAA6D;QACjC,YAAO,GAOb,WAAW,CAAC;QACN,SAAI,GAAkC,QAAQ,CAAC;QAC9C,aAAQ,GAAa,KAAK,CAAC;QACZ,WAAM,GAAa,KAAK,CAAC;QACzC,SAAI,GAAU,KAAK,CAAC;QACnB,WAAM,GAAa,KAAK,CAAC;IA+D1D,CAAC;IAzBG,mDAAmD;IACnD,MAAM;QACF,MAAM,OAAO,GAAG,WAAW,IAAI,CAAC,IAAI,YAAY,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAC9F,MAAM,QAAQ,GACV,IAAI,CAAC,IAAI,KAAK,OAAO;YACjB,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM;gBACrC,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO;oBACrB,CAAC,CAAC,MAAM;oBACR,CAAC,CAAC,SAAS,CAAC;QACxB,OAAO,IAAI,CAAA;gCACa,IAAI,CAAC,QAAQ,UAAU,OAAO;;uBAEvC,IAAI,CAAC,IAAI;YACZ,IAAI,CAAA;;qCAEa,IAAI,CAAC,MAAM;gCAChB,QAAQ;+BACT,IAAI,CAAC,IAAI;iCACP;;;SAGxB,CAAC;IACN,CAAC;;AA5DD,qDAAqD;AAC9C,iBAAM,GAAG;IACZ,UAAU;IACV,YAAY;IACZ,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA6BF;CACJ,AAjCY,CAiCX;AAhD0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CAOO;AACN;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCAAgD;AAC9C;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;4CAA4B;AACZ;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAA0B;AACzC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCAAqB;AACnB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0CAA0B;AAd7C,UAAU;IADtB,aAAa,CAAC,iBAAiB,CAAC;GACpB,UAAU,CA6EtB"}
|
package/dist/shared/lit-icon.js
DELETED
|
@@ -1,284 +0,0 @@
|
|
|
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;
|
|
6
|
-
};
|
|
7
|
-
import { LitElement, html, css } from 'lit';
|
|
8
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
-
import styles from '../styles.js';
|
|
10
|
-
import glyphs from '../assets/icons/iconGlyphs.js';
|
|
11
|
-
export const IconArray = [
|
|
12
|
-
'archive',
|
|
13
|
-
'requiredFilled',
|
|
14
|
-
'account',
|
|
15
|
-
'add',
|
|
16
|
-
'administration',
|
|
17
|
-
'arrowLeft',
|
|
18
|
-
'arrowRight',
|
|
19
|
-
'bell',
|
|
20
|
-
'bellNotify',
|
|
21
|
-
'cases',
|
|
22
|
-
'darkMode',
|
|
23
|
-
'documents',
|
|
24
|
-
'events',
|
|
25
|
-
'favorite',
|
|
26
|
-
'help',
|
|
27
|
-
'home',
|
|
28
|
-
'leave',
|
|
29
|
-
'lightMode',
|
|
30
|
-
'manuals',
|
|
31
|
-
'overviews',
|
|
32
|
-
'planning',
|
|
33
|
-
'reports',
|
|
34
|
-
'roles',
|
|
35
|
-
'search',
|
|
36
|
-
'settings',
|
|
37
|
-
'structure',
|
|
38
|
-
'tasks',
|
|
39
|
-
'templates',
|
|
40
|
-
'users',
|
|
41
|
-
'close',
|
|
42
|
-
'curveArrow',
|
|
43
|
-
'administrator',
|
|
44
|
-
'delegate',
|
|
45
|
-
'download',
|
|
46
|
-
'assume',
|
|
47
|
-
'calculator',
|
|
48
|
-
'check',
|
|
49
|
-
'chevronDown',
|
|
50
|
-
'handover',
|
|
51
|
-
'flag',
|
|
52
|
-
'filter',
|
|
53
|
-
'favoriteAdd',
|
|
54
|
-
'note',
|
|
55
|
-
'more',
|
|
56
|
-
'minus',
|
|
57
|
-
'success',
|
|
58
|
-
'time',
|
|
59
|
-
'trash',
|
|
60
|
-
'pen',
|
|
61
|
-
'unlike',
|
|
62
|
-
'user',
|
|
63
|
-
'puzzle',
|
|
64
|
-
'informative',
|
|
65
|
-
'save',
|
|
66
|
-
'warning',
|
|
67
|
-
'help2',
|
|
68
|
-
'accomplish',
|
|
69
|
-
'addDocument',
|
|
70
|
-
'addNote',
|
|
71
|
-
'checkboxEmpty',
|
|
72
|
-
'expand',
|
|
73
|
-
'duplicate',
|
|
74
|
-
'history',
|
|
75
|
-
'instruction',
|
|
76
|
-
'radioEmpty',
|
|
77
|
-
'print',
|
|
78
|
-
'zoomIn',
|
|
79
|
-
'view',
|
|
80
|
-
'reading',
|
|
81
|
-
'reload',
|
|
82
|
-
'logs',
|
|
83
|
-
'flow',
|
|
84
|
-
'csv',
|
|
85
|
-
'contact',
|
|
86
|
-
'columns',
|
|
87
|
-
'hamburger',
|
|
88
|
-
'beginning',
|
|
89
|
-
'signal',
|
|
90
|
-
'variable',
|
|
91
|
-
'up',
|
|
92
|
-
'upload',
|
|
93
|
-
'revision',
|
|
94
|
-
'typing',
|
|
95
|
-
'tasksFilled',
|
|
96
|
-
'overviewsFilled',
|
|
97
|
-
'homeFilled',
|
|
98
|
-
'favoriteFilled',
|
|
99
|
-
'flagFilled',
|
|
100
|
-
'darkModeFilled',
|
|
101
|
-
'bellFilled',
|
|
102
|
-
'administrationFilled',
|
|
103
|
-
'administratorFilled',
|
|
104
|
-
'casesFilled',
|
|
105
|
-
'manualsFilled',
|
|
106
|
-
'reportsFilled',
|
|
107
|
-
'structureFilled',
|
|
108
|
-
'usersFilled',
|
|
109
|
-
'userFilled',
|
|
110
|
-
'settingsFilled',
|
|
111
|
-
'lightModeFilled',
|
|
112
|
-
'leaveFilled',
|
|
113
|
-
'searchFilled',
|
|
114
|
-
'checkboxFilled',
|
|
115
|
-
'checkFilled',
|
|
116
|
-
'chevronDownFilled',
|
|
117
|
-
'chevronUpFilled',
|
|
118
|
-
'chevronRightFilled',
|
|
119
|
-
'chevronLeftFilled',
|
|
120
|
-
'logsFilled',
|
|
121
|
-
'radioFilled',
|
|
122
|
-
'historyFilled',
|
|
123
|
-
'sortFilled',
|
|
124
|
-
'variableFilled',
|
|
125
|
-
'dangerFilled',
|
|
126
|
-
'eventsFilled',
|
|
127
|
-
'helpFilled',
|
|
128
|
-
'rolesFilled',
|
|
129
|
-
'clean',
|
|
130
|
-
'dms',
|
|
131
|
-
'cog',
|
|
132
|
-
'email',
|
|
133
|
-
'files',
|
|
134
|
-
'chevron',
|
|
135
|
-
'hand',
|
|
136
|
-
'hide',
|
|
137
|
-
'hierarchy',
|
|
138
|
-
'import',
|
|
139
|
-
'index',
|
|
140
|
-
'infinity',
|
|
141
|
-
'infinity2',
|
|
142
|
-
'reset',
|
|
143
|
-
'rest',
|
|
144
|
-
'sleep',
|
|
145
|
-
'sorting',
|
|
146
|
-
'totake',
|
|
147
|
-
'totakedelegate',
|
|
148
|
-
'shredding',
|
|
149
|
-
'show',
|
|
150
|
-
'share',
|
|
151
|
-
'table',
|
|
152
|
-
'url',
|
|
153
|
-
'schema',
|
|
154
|
-
'stats',
|
|
155
|
-
'zoomout',
|
|
156
|
-
'book',
|
|
157
|
-
'authentication',
|
|
158
|
-
'apphealth',
|
|
159
|
-
'certificate',
|
|
160
|
-
'console',
|
|
161
|
-
'folder',
|
|
162
|
-
'hragenda',
|
|
163
|
-
'script',
|
|
164
|
-
'sequence',
|
|
165
|
-
'serviceoperation',
|
|
166
|
-
'archiveFilled',
|
|
167
|
-
'planningFilled',
|
|
168
|
-
'approval',
|
|
169
|
-
'certificate2',
|
|
170
|
-
'change',
|
|
171
|
-
'chevrondown',
|
|
172
|
-
'cursor',
|
|
173
|
-
'copylink',
|
|
174
|
-
'column',
|
|
175
|
-
'documentsFilled',
|
|
176
|
-
'filterFilled',
|
|
177
|
-
'filteroff',
|
|
178
|
-
'hr',
|
|
179
|
-
'image',
|
|
180
|
-
'outoftime',
|
|
181
|
-
'news',
|
|
182
|
-
'newsFilled',
|
|
183
|
-
'morevertical',
|
|
184
|
-
'spinner',
|
|
185
|
-
'userFilled2',
|
|
186
|
-
'tasksii',
|
|
187
|
-
'rowlarge',
|
|
188
|
-
'rowmedium',
|
|
189
|
-
'rowmall',
|
|
190
|
-
'touchid',
|
|
191
|
-
'acces',
|
|
192
|
-
'agenda',
|
|
193
|
-
'annoncement',
|
|
194
|
-
'email2',
|
|
195
|
-
'export',
|
|
196
|
-
'faceid',
|
|
197
|
-
'deviceregister',
|
|
198
|
-
'lock',
|
|
199
|
-
'outoftime2',
|
|
200
|
-
'qr',
|
|
201
|
-
'unlock',
|
|
202
|
-
'zastupovany',
|
|
203
|
-
'csvFilled',
|
|
204
|
-
'qrFilled',
|
|
205
|
-
'knowledgeFilled',
|
|
206
|
-
'hragendaFilled',
|
|
207
|
-
'deviceregisterFilled',
|
|
208
|
-
'agregation',
|
|
209
|
-
'code',
|
|
210
|
-
'flowii',
|
|
211
|
-
'cursor2',
|
|
212
|
-
'drag',
|
|
213
|
-
'link',
|
|
214
|
-
'lang',
|
|
215
|
-
'pinFilled',
|
|
216
|
-
'pin',
|
|
217
|
-
'play',
|
|
218
|
-
'return',
|
|
219
|
-
'sorting2',
|
|
220
|
-
'switch',
|
|
221
|
-
'test',
|
|
222
|
-
'stop',
|
|
223
|
-
'zoom',
|
|
224
|
-
'wrapitup',
|
|
225
|
-
'web',
|
|
226
|
-
];
|
|
227
|
-
let LitIcon = class LitIcon extends LitElement {
|
|
228
|
-
constructor() {
|
|
229
|
-
super(...arguments);
|
|
230
|
-
this.icon = 'add';
|
|
231
|
-
this.size = '1.375rem';
|
|
232
|
-
this.isActive = false;
|
|
233
|
-
this.notRotateIcon = ['arrowLeft', 'arrowRight'];
|
|
234
|
-
}
|
|
235
|
-
render() {
|
|
236
|
-
const glyph = this.icon ? glyphs[this.icon] : undefined;
|
|
237
|
-
if (!glyph) {
|
|
238
|
-
return html `<span>Icon not found</span>`;
|
|
239
|
-
}
|
|
240
|
-
return html `
|
|
241
|
-
<svg
|
|
242
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
243
|
-
viewBox="0 0 512 512"
|
|
244
|
-
style="width: ${this.size || ' 1.5rem'} ; height: ${this.size || ' 1.5rem'};"
|
|
245
|
-
class="rotated"
|
|
246
|
-
fill="${this.isActive ? 'var(--color-primary-main, #76b703)' : 'currentColor'}"
|
|
247
|
-
>
|
|
248
|
-
<g transform="translate(0,20)">
|
|
249
|
-
<path d="${glyph.d}" />
|
|
250
|
-
</g>
|
|
251
|
-
</svg>
|
|
252
|
-
`;
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
LitIcon.styles = [
|
|
256
|
-
styles,
|
|
257
|
-
css `
|
|
258
|
-
:host {
|
|
259
|
-
position: relative;
|
|
260
|
-
display: inline-block;
|
|
261
|
-
}
|
|
262
|
-
svg {
|
|
263
|
-
position: relative;
|
|
264
|
-
top: 0.0625rem;
|
|
265
|
-
}
|
|
266
|
-
svg.rotated {
|
|
267
|
-
transform: scaleY(-1);
|
|
268
|
-
}
|
|
269
|
-
`,
|
|
270
|
-
];
|
|
271
|
-
__decorate([
|
|
272
|
-
property({ type: String })
|
|
273
|
-
], LitIcon.prototype, "icon", void 0);
|
|
274
|
-
__decorate([
|
|
275
|
-
property({ type: String })
|
|
276
|
-
], LitIcon.prototype, "size", void 0);
|
|
277
|
-
__decorate([
|
|
278
|
-
property({ type: Boolean, reflect: true })
|
|
279
|
-
], LitIcon.prototype, "isActive", void 0);
|
|
280
|
-
LitIcon = __decorate([
|
|
281
|
-
customElement('lit-icon')
|
|
282
|
-
], LitIcon);
|
|
283
|
-
export { LitIcon };
|
|
284
|
-
//# sourceMappingURL=lit-icon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lit-icon.js","sourceRoot":"","sources":["../../src/shared/lit-icon.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAEnD,MA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,MAAM;IACN,UAAU;IACV,KAAK;CACR,CAAC;AA+NK,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,UAAU;IAAhC;;QACyB,SAAI,GAAU,KAAK,CAAC;QACpB,SAAI,GAAY,UAAU,CAAC;QACX,aAAQ,GAAa,KAAK,CAAC;QAE/D,kBAAa,GAAa,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;IAsClE,CAAC;IApBG,MAAM;QACF,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACxD,IAAI,CAAC,KAAK,EAAE,CAAC;YACT,OAAO,IAAI,CAAA,6BAA6B,CAAC;QAC7C,CAAC;QAED,OAAO,IAAI,CAAA;;;;gCAIa,IAAI,CAAC,IAAI,IAAI,SAAS,cAAc,IAAI,CAAC,IAAI,IAAI,SAAS;;wBAElE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC,cAAc;;;+BAG9D,KAAK,CAAC,CAAC;;;SAG7B,CAAC;IACN,CAAC;;AApCM,cAAM,GAAG;IACZ,MAAM;IACN,GAAG,CAAA;;;;;;;;;;;;SAYF;CACJ,AAfY,CAeX;AApB0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qCAA4B;AACX;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCAA4B;AAH9D,OAAO;IADnB,aAAa,CAAC,UAAU,CAAC;GACb,OAAO,CA2CnB"}
|
package/dist/shared/lit-input.js
DELETED
|
@@ -1,239 +0,0 @@
|
|
|
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;
|
|
6
|
-
};
|
|
7
|
-
import { customElement, property } from 'lit/decorators.js';
|
|
8
|
-
import { css, html, LitElement } from 'lit';
|
|
9
|
-
import '../shared/lit-icon-button.js';
|
|
10
|
-
import '../shared/lit-data-grid-operators-popover.js';
|
|
11
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
12
|
-
let LitInput = class LitInput extends LitElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.type = 'text';
|
|
16
|
-
this.placeholder = '';
|
|
17
|
-
this.value = null;
|
|
18
|
-
this.disableClearButton = false;
|
|
19
|
-
this.required = false;
|
|
20
|
-
this.server = false;
|
|
21
|
-
this.disabled = false;
|
|
22
|
-
this.filterOperators = [];
|
|
23
|
-
this.size = 'small';
|
|
24
|
-
this.setOperator = (operator) => { };
|
|
25
|
-
}
|
|
26
|
-
connectedCallback() {
|
|
27
|
-
super.connectedCallback();
|
|
28
|
-
this.addEventListener('focus', () => this.focus());
|
|
29
|
-
}
|
|
30
|
-
disconnectedCallback() {
|
|
31
|
-
super.disconnectedCallback();
|
|
32
|
-
this.removeEventListener('focus', () => this.focus());
|
|
33
|
-
}
|
|
34
|
-
reportValidity() {
|
|
35
|
-
const inputElement = this.shadowRoot.querySelector('input');
|
|
36
|
-
if (inputElement) {
|
|
37
|
-
return inputElement.reportValidity();
|
|
38
|
-
}
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
focus() {
|
|
42
|
-
const firstFocusable = this.shadowRoot?.querySelector('input');
|
|
43
|
-
firstFocusable?.focus();
|
|
44
|
-
}
|
|
45
|
-
render() {
|
|
46
|
-
const classes = `${this.size}-size`;
|
|
47
|
-
return html `
|
|
48
|
-
<div class="custom-icon-wrapper">
|
|
49
|
-
<input
|
|
50
|
-
class=${classes}
|
|
51
|
-
type="${this.type}"
|
|
52
|
-
placeholder="${this.placeholder}"
|
|
53
|
-
step="any"
|
|
54
|
-
@input=${(e) => {
|
|
55
|
-
const input = e.target;
|
|
56
|
-
const value = input.value;
|
|
57
|
-
//this.value = value;
|
|
58
|
-
if (this.onInput) {
|
|
59
|
-
this.onInput(value);
|
|
60
|
-
}
|
|
61
|
-
}}
|
|
62
|
-
@blur=${(e) => {
|
|
63
|
-
const input = e.target;
|
|
64
|
-
const value = input.value;
|
|
65
|
-
//this.value = value;
|
|
66
|
-
if (this.onBlur) {
|
|
67
|
-
this.onBlur(value);
|
|
68
|
-
}
|
|
69
|
-
}}
|
|
70
|
-
.value="${typeof this.value === 'object'
|
|
71
|
-
? this.value?.value || ''
|
|
72
|
-
: this.value || ''}"
|
|
73
|
-
?required="${this.required}"
|
|
74
|
-
.disabled="${this.disabled}"
|
|
75
|
-
/>
|
|
76
|
-
${(this.value || this.operator === 'isEmpty' || this.operator === 'isNotEmpty') &&
|
|
77
|
-
!this.disableClearButton
|
|
78
|
-
? html `<div
|
|
79
|
-
class=${classMap({
|
|
80
|
-
'custom-icon': true,
|
|
81
|
-
'custom-icon--no-filter': !this.server, // Trieda ak filter nie je
|
|
82
|
-
})}
|
|
83
|
-
@click=${() => {
|
|
84
|
-
this.value = '';
|
|
85
|
-
if (this.onClear) {
|
|
86
|
-
this.onClear();
|
|
87
|
-
}
|
|
88
|
-
}}
|
|
89
|
-
style="cursor: pointer; pointer-events: auto"
|
|
90
|
-
>
|
|
91
|
-
<lit-icon-button
|
|
92
|
-
icon="close"
|
|
93
|
-
size="small"
|
|
94
|
-
variant="text"
|
|
95
|
-
></lit-icon-button>
|
|
96
|
-
</div>`
|
|
97
|
-
: ''}
|
|
98
|
-
${this.server
|
|
99
|
-
? html `<lit-data-grid-operators-popover
|
|
100
|
-
class="filter-icon"
|
|
101
|
-
b
|
|
102
|
-
.type="${this.type === 'text' ? 'string' : 'number'}"
|
|
103
|
-
.setOperator="${(value) => {
|
|
104
|
-
this.setOperator(value);
|
|
105
|
-
}}"
|
|
106
|
-
.operator="${this.operator}"
|
|
107
|
-
@mousedown=${(e) => {
|
|
108
|
-
e.preventDefault();
|
|
109
|
-
e.stopPropagation();
|
|
110
|
-
}}
|
|
111
|
-
.disabled="${this.disabled}"
|
|
112
|
-
.filterOperators="${this.filterOperators}"
|
|
113
|
-
></lit-data-grid-operators-popover>`
|
|
114
|
-
: null}
|
|
115
|
-
</div>
|
|
116
|
-
`;
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
LitInput.styles = [
|
|
120
|
-
css `
|
|
121
|
-
input {
|
|
122
|
-
padding: 0.5rem;
|
|
123
|
-
border: 0.0625rem solid var(--color-divider, #d0d3db);
|
|
124
|
-
border-radius: 0.25rem;
|
|
125
|
-
min-width: unset;
|
|
126
|
-
width: -webkit-fill-available;
|
|
127
|
-
width: -moz-available;
|
|
128
|
-
width: fill-available;
|
|
129
|
-
background-color: var(--background-paper, #fff);
|
|
130
|
-
color: var(--text-primary, #111827);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
input[type='number']::-webkit-inner-spin-button,
|
|
134
|
-
input[type='number']::-webkit-outer-spin-button {
|
|
135
|
-
-webkit-appearance: none;
|
|
136
|
-
margin: 0;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
input:hover:not(:disabled) {
|
|
140
|
-
border: 0.0625rem solid var(--color-secondary-main, #111827);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
input:focus {
|
|
144
|
-
outline: none;
|
|
145
|
-
border: 0.0625rem solid var(--color-secondary-dark, #010204);
|
|
146
|
-
}
|
|
147
|
-
input:disabled {
|
|
148
|
-
background-color: var(--background-paper, #fff);
|
|
149
|
-
cursor: not-allowed;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.custom-icon-wrapper {
|
|
153
|
-
position: relative;
|
|
154
|
-
width: 100%;
|
|
155
|
-
display: inline-block;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.custom-icon-wrapper .custom-icon {
|
|
159
|
-
display: none;
|
|
160
|
-
position: absolute;
|
|
161
|
-
right: 34px;
|
|
162
|
-
top: 50%;
|
|
163
|
-
transform: translateY(-50%);
|
|
164
|
-
cursor: pointer;
|
|
165
|
-
pointer-events: auto;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.custom-icon-wrapper .custom-icon--no-filter {
|
|
169
|
-
right: 10px;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.custom-icon-wrapper:hover .custom-icon {
|
|
173
|
-
display: block;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.custom-icon-wrapper .filter-icon {
|
|
177
|
-
display: block;
|
|
178
|
-
position: absolute;
|
|
179
|
-
right: 10px;
|
|
180
|
-
top: 50%;
|
|
181
|
-
transform: translateY(-50%);
|
|
182
|
-
cursor: pointer;
|
|
183
|
-
pointer-events: auto;
|
|
184
|
-
}
|
|
185
|
-
.medium-size {
|
|
186
|
-
height: 1.43rem;
|
|
187
|
-
}
|
|
188
|
-
.small-size {
|
|
189
|
-
height: 0.94rem;
|
|
190
|
-
}
|
|
191
|
-
`,
|
|
192
|
-
];
|
|
193
|
-
__decorate([
|
|
194
|
-
property({ type: String })
|
|
195
|
-
], LitInput.prototype, "type", void 0);
|
|
196
|
-
__decorate([
|
|
197
|
-
property({ type: String })
|
|
198
|
-
], LitInput.prototype, "placeholder", void 0);
|
|
199
|
-
__decorate([
|
|
200
|
-
property({ type: String })
|
|
201
|
-
], LitInput.prototype, "value", void 0);
|
|
202
|
-
__decorate([
|
|
203
|
-
property({ type: Function })
|
|
204
|
-
], LitInput.prototype, "onInput", void 0);
|
|
205
|
-
__decorate([
|
|
206
|
-
property({ type: Function })
|
|
207
|
-
], LitInput.prototype, "onBlur", void 0);
|
|
208
|
-
__decorate([
|
|
209
|
-
property({ type: Function })
|
|
210
|
-
], LitInput.prototype, "onClear", void 0);
|
|
211
|
-
__decorate([
|
|
212
|
-
property({ type: Boolean })
|
|
213
|
-
], LitInput.prototype, "disableClearButton", void 0);
|
|
214
|
-
__decorate([
|
|
215
|
-
property({ type: Boolean })
|
|
216
|
-
], LitInput.prototype, "required", void 0);
|
|
217
|
-
__decorate([
|
|
218
|
-
property({ type: Boolean })
|
|
219
|
-
], LitInput.prototype, "server", void 0);
|
|
220
|
-
__decorate([
|
|
221
|
-
property({ type: String })
|
|
222
|
-
], LitInput.prototype, "operator", void 0);
|
|
223
|
-
__decorate([
|
|
224
|
-
property({ type: Boolean })
|
|
225
|
-
], LitInput.prototype, "disabled", void 0);
|
|
226
|
-
__decorate([
|
|
227
|
-
property({ type: Array })
|
|
228
|
-
], LitInput.prototype, "filterOperators", void 0);
|
|
229
|
-
__decorate([
|
|
230
|
-
property({ type: String })
|
|
231
|
-
], LitInput.prototype, "size", void 0);
|
|
232
|
-
__decorate([
|
|
233
|
-
property({ type: Function })
|
|
234
|
-
], LitInput.prototype, "setOperator", void 0);
|
|
235
|
-
LitInput = __decorate([
|
|
236
|
-
customElement('lit-input')
|
|
237
|
-
], LitInput);
|
|
238
|
-
export { LitInput };
|
|
239
|
-
//# sourceMappingURL=lit-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lit-input.js","sourceRoot":"","sources":["../../src/shared/lit-input.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,MAAM,KAAK,CAAC;AAC5D,OAAO,8BAA8B,CAAC;AACtC,OAAO,8CAA8C,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B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