overview-components 1.0.79 → 1.0.81

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.
Files changed (211) hide show
  1. package/dist/assets/generated/locales/de.js +70 -72
  2. package/dist/assets/generated/locales/de.js.map +1 -0
  3. package/dist/assets/generated/locales/en.js +70 -72
  4. package/dist/assets/generated/locales/en.js.map +1 -0
  5. package/dist/assets/generated/locales/fr.js +70 -72
  6. package/dist/assets/generated/locales/fr.js.map +1 -0
  7. package/dist/assets/generated/locales/hr.js +70 -72
  8. package/dist/assets/generated/locales/hr.js.map +1 -0
  9. package/dist/assets/generated/locales/it.js +70 -72
  10. package/dist/assets/generated/locales/it.js.map +1 -0
  11. package/dist/assets/generated/locales/pl.js +70 -72
  12. package/dist/assets/generated/locales/pl.js.map +1 -0
  13. package/dist/assets/generated/locales/ro.js +70 -72
  14. package/dist/assets/generated/locales/ro.js.map +1 -0
  15. package/dist/assets/generated/locales/sk.js +70 -72
  16. package/dist/assets/generated/locales/sk.js.map +1 -0
  17. package/dist/assets/generated/locales/sr.js +70 -72
  18. package/dist/assets/generated/locales/sr.js.map +1 -0
  19. package/dist/assets/icons/iconGlyphs.js +678 -679
  20. package/dist/assets/icons/iconGlyphs.js.map +1 -0
  21. package/dist/assets/illustration/delete-illustration.js +96 -0
  22. package/dist/assets/illustration/delete-illustration.js.map +1 -0
  23. package/dist/assets/illustration/no-content.js +167 -0
  24. package/dist/assets/illustration/no-content.js.map +1 -0
  25. package/dist/assets/illustration/no-preview.js +133 -0
  26. package/dist/assets/illustration/no-preview.js.map +1 -0
  27. package/dist/assets/illustration/not-found.js +106 -0
  28. package/dist/assets/illustration/not-found.js.map +1 -0
  29. package/dist/assets/illustration/settings-illustration.js +176 -0
  30. package/dist/assets/illustration/settings-illustration.js.map +1 -0
  31. package/dist/components/components-settings/attachments-tab-settings.js +226 -0
  32. package/dist/components/components-settings/attachments-tab-settings.js.map +1 -0
  33. package/dist/components/components-settings/data-grid-settings.js +318 -0
  34. package/dist/components/components-settings/data-grid-settings.js.map +1 -0
  35. package/dist/components/components-settings/section-tab-settings.js +269 -0
  36. package/dist/components/components-settings/section-tab-settings.js.map +1 -0
  37. package/dist/components/components-settings/tabs-overview-settings.js +439 -0
  38. package/dist/components/components-settings/tabs-overview-settings.js.map +1 -0
  39. package/dist/components/lit-attachments-tab.js +432 -271
  40. package/dist/components/lit-attachments-tab.js.map +1 -0
  41. package/dist/components/lit-badge.js +40 -40
  42. package/dist/components/lit-badge.js.map +1 -0
  43. package/dist/components/lit-case-variables-tab.js +497 -382
  44. package/dist/components/lit-case-variables-tab.js.map +1 -0
  45. package/dist/components/lit-chart.js +406 -378
  46. package/dist/components/lit-chart.js.map +1 -0
  47. package/dist/components/lit-data-grid-tanstack.js +1663 -1150
  48. package/dist/components/lit-data-grid-tanstack.js.map +1 -0
  49. package/dist/components/lit-filter-modal.js +230 -198
  50. package/dist/components/lit-filter-modal.js.map +1 -0
  51. package/dist/components/lit-multiselect-item.js +477 -301
  52. package/dist/components/lit-multiselect-item.js.map +1 -0
  53. package/dist/components/lit-section-tab.js +85 -73
  54. package/dist/components/lit-section-tab.js.map +1 -0
  55. package/dist/components/lit-tabs-overview.js +232 -191
  56. package/dist/components/lit-tabs-overview.js.map +1 -0
  57. package/dist/components/modals/lit-confirm-modal.js +120 -0
  58. package/dist/components/modals/lit-confirm-modal.js.map +1 -0
  59. package/dist/components/modals/lit-delete-modal.js +128 -0
  60. package/dist/components/modals/lit-delete-modal.js.map +1 -0
  61. package/dist/components/react-wrappers/attachments-tab.js +8 -13
  62. package/dist/components/react-wrappers/attachments-tab.js.map +1 -0
  63. package/dist/components/react-wrappers/badge.js +8 -13
  64. package/dist/components/react-wrappers/badge.js.map +1 -0
  65. package/dist/components/react-wrappers/button.js +8 -13
  66. package/dist/components/react-wrappers/button.js.map +1 -0
  67. package/dist/components/react-wrappers/case-variables-tab.js +8 -13
  68. package/dist/components/react-wrappers/case-variables-tab.js.map +1 -0
  69. package/dist/components/react-wrappers/chart.js +8 -13
  70. package/dist/components/react-wrappers/chart.js.map +1 -0
  71. package/dist/components/react-wrappers/data-grid-tanstack.js +8 -13
  72. package/dist/components/react-wrappers/data-grid-tanstack.js.map +1 -0
  73. package/dist/components/react-wrappers/filter-modal.js +8 -13
  74. package/dist/components/react-wrappers/filter-modal.js.map +1 -0
  75. package/dist/components/react-wrappers/progress-bar.js +8 -13
  76. package/dist/components/react-wrappers/progress-bar.js.map +1 -0
  77. package/dist/components/react-wrappers/section-tab.js +8 -13
  78. package/dist/components/react-wrappers/section-tab.js.map +1 -0
  79. package/dist/components/react-wrappers/tabs-overview.js +8 -13
  80. package/dist/components/react-wrappers/tabs-overview.js.map +1 -0
  81. package/dist/data/translations.js +2763 -0
  82. package/dist/data/translations.js.map +1 -0
  83. package/dist/index.js +107 -113
  84. package/dist/index.js.map +1 -0
  85. package/dist/schemas/index.js +17 -0
  86. package/dist/schemas/index.js.map +1 -0
  87. package/dist/schemas/lit-attachments-tab-document.schema.js +20 -0
  88. package/dist/schemas/lit-attachments-tab-document.schema.js.map +1 -0
  89. package/dist/schemas/lit-attachments-tab-settings-value.schema.js +15 -0
  90. package/dist/schemas/lit-attachments-tab-settings-value.schema.js.map +1 -0
  91. package/dist/schemas/lit-attachments-tab.schema.js +32 -0
  92. package/dist/schemas/lit-attachments-tab.schema.js.map +1 -0
  93. package/dist/schemas/lit-case-variables-tab-cell.schema.js +43 -0
  94. package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +1 -0
  95. package/dist/schemas/lit-case-variables-tab-rows.schema.js +6 -0
  96. package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +1 -0
  97. package/dist/schemas/lit-case-variables-tab.schema.js +24 -0
  98. package/dist/schemas/lit-case-variables-tab.schema.js.map +1 -0
  99. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +6 -0
  100. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +1 -0
  101. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +6 -0
  102. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +1 -0
  103. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +11 -0
  104. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +1 -0
  105. package/dist/schemas/lit-data-grid-tanstack-column.schema.js +55 -0
  106. package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +1 -0
  107. package/dist/schemas/lit-data-grid-tanstack.schema.js +99 -0
  108. package/dist/schemas/lit-data-grid-tanstack.schema.js.map +1 -0
  109. package/dist/schemas/lit-section-tab-schema.js +24 -0
  110. package/dist/schemas/lit-section-tab-schema.js.map +1 -0
  111. package/dist/schemas/lit-tabs-overview-tab-array.schema.js +6 -0
  112. package/dist/schemas/lit-tabs-overview-tab-array.schema.js.map +1 -0
  113. package/dist/schemas/lit-tabs-overview-tab.schema.js +32 -0
  114. package/dist/schemas/lit-tabs-overview-tab.schema.js.map +1 -0
  115. package/dist/schemas/lit-tabs-overview.schema.js +29 -0
  116. package/dist/schemas/lit-tabs-overview.schema.js.map +1 -0
  117. package/dist/scripts/translate-locales.js +69 -0
  118. package/dist/scripts/translate-locales.js.map +1 -0
  119. package/dist/shared/filter-inputs.js +335 -234
  120. package/dist/shared/filter-inputs.js.map +1 -0
  121. package/dist/shared/lit-button.js +80 -66
  122. package/dist/shared/lit-button.js.map +1 -0
  123. package/dist/shared/lit-case-variables-tab-cell.js +127 -108
  124. package/dist/shared/lit-case-variables-tab-cell.js.map +1 -0
  125. package/dist/shared/lit-checkbox.js +94 -78
  126. package/dist/shared/lit-checkbox.js.map +1 -0
  127. package/dist/shared/lit-custom-popper.js +84 -66
  128. package/dist/shared/lit-custom-popper.js.map +1 -0
  129. package/dist/shared/lit-data-grid-action-buttons-popover.js +178 -141
  130. package/dist/shared/lit-data-grid-action-buttons-popover.js.map +1 -0
  131. package/dist/shared/lit-data-grid-density-popover.js +54 -49
  132. package/dist/shared/lit-data-grid-density-popover.js.map +1 -0
  133. package/dist/shared/lit-data-grid-export-popover.js +43 -41
  134. package/dist/shared/lit-data-grid-export-popover.js.map +1 -0
  135. package/dist/shared/lit-data-grid-operators-popover.js +90 -70
  136. package/dist/shared/lit-data-grid-operators-popover.js.map +1 -0
  137. package/dist/shared/lit-data-grid-row-actions.js +54 -51
  138. package/dist/shared/lit-data-grid-row-actions.js.map +1 -0
  139. package/dist/shared/lit-date-picker.js +451 -370
  140. package/dist/shared/lit-date-picker.js.map +1 -0
  141. package/dist/shared/lit-icon-button.js +66 -52
  142. package/dist/shared/lit-icon-button.js.map +1 -0
  143. package/dist/shared/lit-icon.js +261 -259
  144. package/dist/shared/lit-icon.js.map +1 -0
  145. package/dist/shared/lit-input.js +143 -115
  146. package/dist/shared/lit-input.js.map +1 -0
  147. package/dist/shared/lit-label.js +63 -55
  148. package/dist/shared/lit-label.js.map +1 -0
  149. package/dist/shared/lit-loader.js +26 -27
  150. package/dist/shared/lit-loader.js.map +1 -0
  151. package/dist/shared/lit-loading-bar.js +57 -24
  152. package/dist/shared/lit-loading-bar.js.map +1 -0
  153. package/dist/shared/lit-menu-item.js +56 -51
  154. package/dist/shared/lit-menu-item.js.map +1 -0
  155. package/dist/shared/lit-menu.js +22 -20
  156. package/dist/shared/lit-menu.js.map +1 -0
  157. package/dist/shared/lit-modal-body.js +9 -15
  158. package/dist/shared/lit-modal-body.js.map +1 -0
  159. package/dist/shared/lit-modal-footer.js +17 -20
  160. package/dist/shared/lit-modal-footer.js.map +1 -0
  161. package/dist/shared/lit-modal-header.js +24 -27
  162. package/dist/shared/lit-modal-header.js.map +1 -0
  163. package/dist/shared/lit-modal.js +112 -71
  164. package/dist/shared/lit-modal.js.map +1 -0
  165. package/dist/shared/lit-overflow-tooltip.js +86 -68
  166. package/dist/shared/lit-overflow-tooltip.js.map +1 -0
  167. package/dist/shared/lit-pill.js +39 -37
  168. package/dist/shared/lit-pill.js.map +1 -0
  169. package/dist/shared/lit-progress-bar.js +33 -35
  170. package/dist/shared/lit-progress-bar.js.map +1 -0
  171. package/dist/shared/lit-responsive-button.js +74 -64
  172. package/dist/shared/lit-responsive-button.js.map +1 -0
  173. package/dist/shared/lit-select-field.js +266 -183
  174. package/dist/shared/lit-select-field.js.map +1 -0
  175. package/dist/shared/lit-select.js +276 -202
  176. package/dist/shared/lit-select.js.map +1 -0
  177. package/dist/shared/lit-settings.js +68 -51
  178. package/dist/shared/lit-settings.js.map +1 -0
  179. package/dist/shared/lit-text-field.js +99 -82
  180. package/dist/shared/lit-text-field.js.map +1 -0
  181. package/dist/shared/lit-toggle.js +74 -65
  182. package/dist/shared/lit-toggle.js.map +1 -0
  183. package/dist/shared/lit-tooltip.js +113 -84
  184. package/dist/shared/lit-tooltip.js.map +1 -0
  185. package/dist/shared/simple-popper.js +229 -149
  186. package/dist/shared/simple-popper.js.map +1 -0
  187. package/dist/shared/simple-tooltip.js +198 -124
  188. package/dist/shared/simple-tooltip.js.map +1 -0
  189. package/dist/shared/styles/button-shared-styles.js +4 -8
  190. package/dist/shared/styles/button-shared-styles.js.map +1 -0
  191. package/dist/styles.js +3 -8
  192. package/dist/styles.js.map +1 -0
  193. package/dist/utils/currency.js +15 -12
  194. package/dist/utils/currency.js.map +1 -0
  195. package/dist/utils/custom-filters.js +80 -46
  196. package/dist/utils/custom-filters.js.map +1 -0
  197. package/dist/utils/date.js +21 -14
  198. package/dist/utils/date.js.map +1 -0
  199. package/dist/utils/getOperatorByType.js +65 -51
  200. package/dist/utils/getOperatorByType.js.map +1 -0
  201. package/dist/utils/getOverviewValue.js +177 -0
  202. package/dist/utils/getOverviewValue.js.map +1 -0
  203. package/dist/utils/localization.js +429 -412
  204. package/dist/utils/localization.js.map +1 -0
  205. package/dist/utils/utils.js +12 -10
  206. package/dist/utils/utils.js.map +1 -0
  207. package/dist/utils/validate-json-schema.js +8 -0
  208. package/dist/utils/validate-json-schema.js.map +1 -0
  209. package/dist/validators/validator.js +7 -0
  210. package/dist/validators/validator.js.map +1 -0
  211. package/package.json +2 -2
@@ -1,244 +1,302 @@
1
- import "../node_modules/@lit/reactive-element/reactive-element.js";
2
- import { html as h } from "../node_modules/lit-html/lit-html.js";
3
- import { LitElement as v } from "../node_modules/lit-element/lit-element.js";
4
- import { customElement as b } from "../node_modules/@lit/reactive-element/decorators/custom-element.js";
5
- import { property as n } from "../node_modules/@lit/reactive-element/decorators/property.js";
6
- import { state as f } from "../node_modules/@lit/reactive-element/decorators/state.js";
7
- import { query as g } from "../node_modules/@lit/reactive-element/decorators/query.js";
8
- import { isEqual as k, isEmpty as D } from "lodash";
9
- import l from "../node_modules/luxon/src/datetime.js";
10
- import "../node_modules/luxon/src/duration.js";
11
- import { msg as d } from "../node_modules/@lit/localize/init/install.js";
12
- import "../node_modules/@lit/localize/init/runtime.js";
13
- /* empty css */
14
- import $ from "../node_modules/air-datepicker/air-datepicker.js";
15
- import { localizedDatePicker as S } from "../utils/localization.js";
16
- import { classMap as y } from "../node_modules/lit-html/directives/class-map.js";
17
- import { debounce as O } from "../utils/utils.js";
18
- import { autoUpdate as P, computePosition as w, offset as C, flip as M, hide as x, shift as E } from "../node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
19
- import { css as T } from "../node_modules/@lit/reactive-element/css-tag.js";
20
- var L = Object.defineProperty, I = Object.getOwnPropertyDescriptor, o = (e, t, a, i) => {
21
- for (var s = i > 1 ? void 0 : i ? I(t, a) : t, p = e.length - 1, c; p >= 0; p--)
22
- (c = e[p]) && (s = (i ? c(t, a, s) : c(s)) || s);
23
- return i && s && L(t, a, 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;
24
6
  };
25
- let r = class extends v {
26
- constructor() {
27
- super(), this.pickerVariant = "date", this.userLang = "cs", this.placeholder = "", this.disableClearButton = !1, this.range = !1, this.server = !1, this.disabled = !1, this.setOperator = (e, t) => {
28
- }, this.filterOperators = [], this.displayValue = "", this.isSubmenuOpen = !1, this.submenuTriggerEl = null, this.handleOutsideClick = (e) => {
29
- const t = e.composedPath(), a = t.some(
30
- (i) => i instanceof HTMLElement && i.classList.contains("air-datepicker")
31
- );
32
- !t.includes(this) && !a && this.datePicker.visible && (this.datePicker.clear(), this.datePicker.hide());
33
- }, this.debouncedHandleInput = O(this.handleDateInput, 500);
34
- }
35
- connectedCallback() {
36
- super.connectedCallback(), this.addEventListener("focus", () => this.focus());
37
- }
38
- disconnectedCallback() {
39
- super.disconnectedCallback(), document.removeEventListener("click", this.handleOutsideClick, { capture: !0 }), this.removeEventListener("focus", () => this.focus());
40
- }
41
- updated(e) {
42
- if (e.has("operator")) {
43
- const t = e.get("operator");
44
- (this.operator === "fromTo" || t === "fromTo") && this.datePicker.update(
45
- {
46
- range: this.operator === "fromTo"
47
- },
48
- { silent: !0 }
49
- );
7
+ import { LitElement, html, css } from 'lit';
8
+ import { property, customElement, query, state } from 'lit/decorators.js';
9
+ import { isEmpty, isEqual } from 'lodash';
10
+ import { DateTime } from 'luxon';
11
+ import { msg } from '@lit/localize';
12
+ import 'air-datepicker/air-datepicker.css';
13
+ // components
14
+ import './lit-icon-button.js';
15
+ import './lit-icon.js';
16
+ import './simple-popper.js';
17
+ import './lit-menu.js';
18
+ import './lit-menu-item.js';
19
+ import AirDatepicker from 'air-datepicker';
20
+ import { localizedDatePicker } from '../utils/localization.js';
21
+ import { classMap } from 'lit/directives/class-map.js';
22
+ import { debounce } from '../utils/utils.js';
23
+ import { autoUpdate, computePosition, flip, hide, offset, shift } from '@floating-ui/dom';
24
+ let LitDatePicker = class LitDatePicker extends LitElement {
25
+ constructor() {
26
+ super();
27
+ this.pickerVariant = 'date';
28
+ this.userLang = 'cs';
29
+ this.placeholder = '';
30
+ this.disableClearButton = false;
31
+ this.range = false;
32
+ this.server = false;
33
+ this.disabled = false;
34
+ this.setOperator = (operator, opt) => { };
35
+ this.filterOperators = [];
36
+ this.displayValue = '';
37
+ this.isSubmenuOpen = false;
38
+ this.submenuTriggerEl = null;
39
+ this.handleOutsideClick = (event) => {
40
+ const path = event.composedPath();
41
+ const isClickInsideDatepicker = path.some((element) => element instanceof HTMLElement && element.classList.contains('air-datepicker'));
42
+ // Check if the date picker is visible before trying to hide it
43
+ if (!path.includes(this) && !isClickInsideDatepicker && this.datePicker.visible) {
44
+ this.datePicker.clear();
45
+ this.datePicker.hide();
46
+ }
47
+ };
48
+ this.debouncedHandleInput = debounce(this.handleDateInput, 500);
49
+ }
50
+ connectedCallback() {
51
+ super.connectedCallback();
52
+ this.addEventListener('focus', () => this.focus());
53
+ }
54
+ disconnectedCallback() {
55
+ super.disconnectedCallback();
56
+ document.removeEventListener('click', this.handleOutsideClick, { capture: true });
57
+ this.removeEventListener('focus', () => this.focus());
58
+ }
59
+ updated(changedProperties) {
60
+ if (changedProperties.has('operator')) {
61
+ const oldValue = changedProperties.get('operator');
62
+ if (this.operator === 'fromTo' || oldValue === 'fromTo') {
63
+ this.datePicker.update({
64
+ range: this.operator === 'fromTo',
65
+ }, { silent: true });
66
+ }
67
+ }
68
+ if (changedProperties.has('range')) {
69
+ this.datePicker.update({
70
+ range: this.range,
71
+ }, { silent: true });
72
+ }
73
+ if (changedProperties.has('value') &&
74
+ !isEqual(this.value, changedProperties.get('value'))) {
75
+ if (typeof this.value === 'undefined' || this.value === '') {
76
+ this.datePicker.clear({ silent: true });
77
+ return;
78
+ }
79
+ if (this.value) {
80
+ this.datePicker.selectDate(this.value, { silent: true });
81
+ }
82
+ }
83
+ }
84
+ reinitializeDatePicker() {
85
+ if (this.datePicker) {
86
+ this.datePicker.destroy();
87
+ }
88
+ this.datePicker = new AirDatepicker(this.dateInputEl, {
89
+ timepicker: this.pickerVariant === 'dateTime',
90
+ multipleDatesSeparator: ' - ',
91
+ // isMobile: window.matchMedia('(max-width: 600px)').matches,
92
+ dateFormat: this.dateFormat || undefined,
93
+ locale: this.getLocale(),
94
+ autoClose: true,
95
+ range: this.operator === 'fromTo',
96
+ onRenderCell: ({ date, cellType, }) => {
97
+ const isDay = cellType === 'day';
98
+ const _date = date.getDate();
99
+ },
100
+ onShow: () => {
101
+ const dpRoot = this.datePicker.$datepicker;
102
+ this.submenuTriggerEl = dpRoot?.querySelector('.submenu-trigger');
103
+ if (this.submenuTriggerEl) {
104
+ this.submenuTriggerEl.addEventListener('mouseenter', () => {
105
+ this.openSubmenu(true);
106
+ });
107
+ this.submenuTriggerEl?.addEventListener('mouseleave', (e) => {
108
+ const related = e.relatedTarget;
109
+ const isGoingToPopper = related?.closest('simple-popper');
110
+ if (!isGoingToPopper) {
111
+ this.openSubmenu(false);
112
+ }
113
+ });
114
+ }
115
+ const $datepicker = this.datePicker?.$datepicker;
116
+ const $target = this.dateInputEl;
117
+ if (!$datepicker || !$target)
118
+ return;
119
+ // Destroy previous observer
120
+ this.cleanupAutoUpdate?.();
121
+ this.cleanupAutoUpdate = autoUpdate($target, $datepicker, () => {
122
+ computePosition($target, $datepicker, {
123
+ placement: 'bottom-start',
124
+ middleware: [offset(4), flip(), hide(), shift({ padding: 8 })],
125
+ }).then(({ x, y, middlewareData }) => {
126
+ if (middlewareData.hide) {
127
+ Object.assign($datepicker.style, {
128
+ display: middlewareData.hide.referenceHidden ? 'none' : 'block',
129
+ });
130
+ }
131
+ Object.assign($datepicker.style, {
132
+ position: 'absolute',
133
+ left: `${x}px`,
134
+ top: `${y}px`,
135
+ overflow: 'visible',
136
+ });
137
+ });
138
+ });
139
+ },
140
+ onHide: () => {
141
+ this.cleanupAutoUpdate?.();
142
+ this.openSubmenu(false);
143
+ },
144
+ buttons: [
145
+ {
146
+ content: msg('Dnes'), // Button text
147
+ className: 'custom-today-btn', // Custom class (optional)
148
+ onClick: (dp) => {
149
+ this.handleSetOperator('=');
150
+ dp.update({
151
+ range: false,
152
+ selectedDates: [new Date()],
153
+ });
154
+ },
155
+ },
156
+ ...(this.server
157
+ ? [
158
+ {
159
+ content: '<lit-icon icon="arrowLeft" size="1rem" style="margin-right: 0.5rem"></lit-icon> ' +
160
+ msg('Rychlé volby'),
161
+ className: 'custom-today-btn submenu-trigger',
162
+ onClick: () => { },
163
+ },
164
+ ]
165
+ : []),
166
+ ],
167
+ onSelect: ({ date, formattedDate, datepicker, }) => {
168
+ if (Array.isArray(date) && date.length === 2) {
169
+ const from = date[0].toISOString();
170
+ const to = date[1].toISOString();
171
+ this.value = [from, to];
172
+ }
173
+ else if (date instanceof Date) {
174
+ this.value = date.toISOString();
175
+ }
176
+ else if ((Array.isArray(date) && date.length === 0) || !date) {
177
+ this.value = undefined;
178
+ }
179
+ if (this.onChange) {
180
+ this.onChange(this.value);
181
+ }
182
+ this.displayValue = formattedDate;
183
+ },
184
+ });
50
185
  }
51
- if (e.has("range") && this.datePicker.update(
52
- {
53
- range: this.range
54
- },
55
- { silent: !0 }
56
- ), e.has("value") && !k(this.value, e.get("value"))) {
57
- if (typeof this.value > "u" || this.value === "") {
58
- this.datePicker.clear({ silent: !0 });
59
- return;
60
- }
61
- this.value && this.datePicker.selectDate(this.value, { silent: !0 });
186
+ firstUpdated() {
187
+ this.reinitializeDatePicker();
188
+ document.addEventListener('click', this.handleOutsideClick, { capture: true });
62
189
  }
63
- }
64
- reinitializeDatePicker() {
65
- this.datePicker && this.datePicker.destroy(), this.datePicker = new $(this.dateInputEl, {
66
- timepicker: this.pickerVariant === "dateTime",
67
- multipleDatesSeparator: " - ",
68
- // isMobile: window.matchMedia('(max-width: 600px)').matches,
69
- dateFormat: this.dateFormat || void 0,
70
- locale: this.getLocale(),
71
- autoClose: !0,
72
- range: this.operator === "fromTo",
73
- onRenderCell: ({
74
- date: e,
75
- cellType: t
76
- }) => {
77
- e.getDate();
78
- },
79
- onShow: () => {
80
- var i, s, p;
81
- const e = this.datePicker.$datepicker;
82
- this.submenuTriggerEl = e == null ? void 0 : e.querySelector(".submenu-trigger"), this.submenuTriggerEl && (this.submenuTriggerEl.addEventListener("mouseenter", () => {
83
- this.openSubmenu(!0);
84
- }), (i = this.submenuTriggerEl) == null || i.addEventListener("mouseleave", (c) => {
85
- const u = c.relatedTarget;
86
- (u == null ? void 0 : u.closest("simple-popper")) || this.openSubmenu(!1);
87
- }));
88
- const t = (s = this.datePicker) == null ? void 0 : s.$datepicker, a = this.dateInputEl;
89
- !t || !a || ((p = this.cleanupAutoUpdate) == null || p.call(this), this.cleanupAutoUpdate = P(a, t, () => {
90
- w(a, t, {
91
- placement: "bottom-start",
92
- middleware: [C(4), M(), x(), E({ padding: 8 })]
93
- }).then(({ x: c, y: u, middlewareData: m }) => {
94
- m.hide && Object.assign(t.style, {
95
- display: m.hide.referenceHidden ? "none" : "block"
96
- }), Object.assign(t.style, {
97
- position: "absolute",
98
- left: `${c}px`,
99
- top: `${u}px`,
100
- overflow: "visible"
101
- });
102
- });
103
- }));
104
- },
105
- onHide: () => {
106
- var e;
107
- (e = this.cleanupAutoUpdate) == null || e.call(this), this.openSubmenu(!1);
108
- },
109
- buttons: [
110
- {
111
- content: d("Dnes"),
112
- // Button text
113
- className: "custom-today-btn",
114
- // Custom class (optional)
115
- onClick: (e) => {
116
- this.handleSetOperator("="), e.update({
117
- range: !1,
118
- selectedDates: [/* @__PURE__ */ new Date()]
119
- });
120
- }
121
- },
122
- ...this.server ? [
123
- {
124
- content: '<lit-icon icon="arrowLeft" size="1rem" style="margin-right: 0.5rem"></lit-icon> ' + d("Rychlé volby"),
125
- className: "custom-today-btn submenu-trigger",
126
- onClick: () => {
190
+ openSubmenu(open) {
191
+ this.isSubmenuOpen = open;
192
+ }
193
+ getLocale() {
194
+ const lang = this.userLang || localStorage.getItem('userLang') || 'cs';
195
+ return localizedDatePicker.get(lang);
196
+ }
197
+ handleDateInput(dateStr) {
198
+ const parsedDate = this._parseDate(dateStr);
199
+ if (parsedDate) {
200
+ // this.value = parsedDate;
201
+ this.datePicker.selectDate(parsedDate);
202
+ }
203
+ if (dateStr === '') {
204
+ this.datePicker.clear();
205
+ }
206
+ }
207
+ _parseDate(dateStr) {
208
+ // Regular expressions for different date formats
209
+ // Patterns for different formats
210
+ const patterns = [
211
+ { regex: /^(\d{1,2})\.(\d{1,2})\.(\d{4})$/, format: 'd.M.yyyy' }, // d.M.yyyy
212
+ { regex: /^(\d{2})\.(\d{2})\.(\d{4})$/, format: 'dd.MM.yyyy' }, // dd.MM.yyyy
213
+ { regex: /^(\d{2})\/(\d{2})\/(\d{4})$/, format: 'MM/dd/yyyy' }, // MM/dd/yyyy
214
+ { regex: /^(\d{2})\/(\d{2})\/(\d{4})$/, format: 'dd/MM/yyyy' }, // dd/MM/yyyy
215
+ { regex: /^(\d{4})-(\d{2})-(\d{2})$/, format: 'yyyy-MM-dd' }, // yyyy-MM-dd
216
+ // Ranges
217
+ {
218
+ regex: /^(\d{2})\.(\d{2})\.(\d{4})\s*-\s*(\d{2})\.(\d{2})\.(\d{4})$/,
219
+ format: 'dd.MM.yyyy - dd.MM.yyyy',
220
+ },
221
+ {
222
+ regex: /^(\d{1,2})\.(\d{1,2})\.(\d{4})\s*-\s*(\d{1,2})\.(\d{1,2})\.(\d{4})$/,
223
+ format: 'd.M.yyyy - d.M.yyyy',
224
+ },
225
+ {
226
+ regex: /^(\d{2})\/(\d{2})\/(\d{4})\s*-\s*(\d{2})\/(\d{2})\/(\d{4})$/,
227
+ format: 'MM/dd/yyyy - MM/dd/yyyy',
228
+ },
229
+ {
230
+ regex: /^(\d{2})\/(\d{2})\/(\d{4})\s*-\s*(\d{2})\/(\d{2})\/(\d{4})$/,
231
+ format: 'dd/MM/yyyy - dd/MM/yyyy',
232
+ },
233
+ {
234
+ regex: /^(\d{4})-(\d{2})-(\d{2})\s*-\s*(\d{4})-(\d{2})-(\d{2})$/,
235
+ format: 'yyyy-MM-dd - yyyy-MM-dd',
236
+ },
237
+ ];
238
+ for (const { regex, format } of patterns) {
239
+ const match = dateStr.match(regex);
240
+ if (match) {
241
+ // Handle ranges
242
+ if (format.includes(' - ')) {
243
+ // Extract start and end dates from the match groups
244
+ const startDateStr = match[0].split(' - ')[0];
245
+ const endDateStr = match[0].split(' - ')[1];
246
+ // Parse both start and end dates
247
+ const startDate = DateTime.fromFormat(startDateStr, this.dateFormat || format.split(' - ')[0]).toJSDate();
248
+ console.log('startDateStr', startDateStr);
249
+ console.log(format.split(' - ')[0]);
250
+ console.log('startDate', startDate);
251
+ const endDate = DateTime.fromFormat(endDateStr, this.dateFormat || format.split(' - ')[1]).toJSDate();
252
+ return [startDate, endDate];
253
+ }
254
+ else {
255
+ // Single date match
256
+ return DateTime.fromFormat(dateStr, this.dateFormat || format).toJSDate();
257
+ }
127
258
  }
128
- }
129
- ] : []
130
- ],
131
- onSelect: ({
132
- date: e,
133
- formattedDate: t,
134
- datepicker: a
135
- }) => {
136
- if (Array.isArray(e) && e.length === 2) {
137
- const i = e[0].toISOString(), s = e[1].toISOString();
138
- this.value = [i, s];
139
- } else e instanceof Date ? this.value = e.toISOString() : (Array.isArray(e) && e.length === 0 || !e) && (this.value = void 0);
140
- this.onChange && this.onChange(this.value), this.displayValue = t;
141
- }
142
- });
143
- }
144
- firstUpdated() {
145
- this.reinitializeDatePicker(), document.addEventListener("click", this.handleOutsideClick, { capture: !0 });
146
- }
147
- openSubmenu(e) {
148
- this.isSubmenuOpen = e;
149
- }
150
- getLocale() {
151
- const e = this.userLang || localStorage.getItem("userLang") || "cs";
152
- return S.get(e);
153
- }
154
- handleDateInput(e) {
155
- const t = this._parseDate(e);
156
- t && this.datePicker.selectDate(t), e === "" && this.datePicker.clear();
157
- }
158
- _parseDate(e) {
159
- const t = [
160
- { regex: /^(\d{1,2})\.(\d{1,2})\.(\d{4})$/, format: "d.M.yyyy" },
161
- // d.M.yyyy
162
- { regex: /^(\d{2})\.(\d{2})\.(\d{4})$/, format: "dd.MM.yyyy" },
163
- // dd.MM.yyyy
164
- { regex: /^(\d{2})\/(\d{2})\/(\d{4})$/, format: "MM/dd/yyyy" },
165
- // MM/dd/yyyy
166
- { regex: /^(\d{2})\/(\d{2})\/(\d{4})$/, format: "dd/MM/yyyy" },
167
- // dd/MM/yyyy
168
- { regex: /^(\d{4})-(\d{2})-(\d{2})$/, format: "yyyy-MM-dd" },
169
- // yyyy-MM-dd
170
- // Ranges
171
- {
172
- regex: /^(\d{2})\.(\d{2})\.(\d{4})\s*-\s*(\d{2})\.(\d{2})\.(\d{4})$/,
173
- format: "dd.MM.yyyy - dd.MM.yyyy"
174
- },
175
- {
176
- regex: /^(\d{1,2})\.(\d{1,2})\.(\d{4})\s*-\s*(\d{1,2})\.(\d{1,2})\.(\d{4})$/,
177
- format: "d.M.yyyy - d.M.yyyy"
178
- },
179
- {
180
- regex: /^(\d{2})\/(\d{2})\/(\d{4})\s*-\s*(\d{2})\/(\d{2})\/(\d{4})$/,
181
- format: "MM/dd/yyyy - MM/dd/yyyy"
182
- },
183
- {
184
- regex: /^(\d{2})\/(\d{2})\/(\d{4})\s*-\s*(\d{2})\/(\d{2})\/(\d{4})$/,
185
- format: "dd/MM/yyyy - dd/MM/yyyy"
186
- },
187
- {
188
- regex: /^(\d{4})-(\d{2})-(\d{2})\s*-\s*(\d{4})-(\d{2})-(\d{2})$/,
189
- format: "yyyy-MM-dd - yyyy-MM-dd"
190
- }
191
- ];
192
- for (const { regex: a, format: i } of t) {
193
- const s = e.match(a);
194
- if (s)
195
- if (i.includes(" - ")) {
196
- const p = s[0].split(" - ")[0], c = s[0].split(" - ")[1], u = l.fromFormat(p, this.dateFormat || i.split(" - ")[0]).toJSDate();
197
- console.log("startDateStr", p), console.log(i.split(" - ")[0]), console.log("startDate", u);
198
- const m = l.fromFormat(c, this.dateFormat || i.split(" - ")[1]).toJSDate();
199
- return [u, m];
200
- } else
201
- return l.fromFormat(e, this.dateFormat || i).toJSDate();
259
+ }
260
+ return null;
202
261
  }
203
- return null;
204
- }
205
- handleSetOperator(e) {
206
- this.datePicker.update(
207
- {
208
- range: e === "fromTo",
209
- selectedDates: []
210
- },
211
- { silent: !0 }
212
- ), ["isEmpty", "isNotEmpty"].includes(e) || this.datePicker.show(), this.setOperator(e, { silent: !0 });
213
- }
214
- focus() {
215
- var t;
216
- const e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("input");
217
- e == null || e.focus();
218
- }
219
- _handleClearButtonClick() {
220
- this.datePicker.clear();
221
- }
222
- render() {
223
- return h`
262
+ handleSetOperator(value) {
263
+ this.datePicker.update({
264
+ range: value === 'fromTo',
265
+ selectedDates: [],
266
+ }, { silent: true });
267
+ if (!['isEmpty', 'isNotEmpty'].includes(value)) {
268
+ // this.focus();
269
+ this.datePicker.show();
270
+ }
271
+ this.setOperator(value, { silent: true });
272
+ }
273
+ focus() {
274
+ const firstFocusable = this.shadowRoot?.querySelector('input');
275
+ firstFocusable?.focus();
276
+ }
277
+ _handleClearButtonClick() {
278
+ this.datePicker.clear();
279
+ }
280
+ render() {
281
+ return html `
224
282
  <div class="custom-icon-wrapper">
225
283
  <input
226
284
  id="dateInput"
227
285
  class="inputs customCell"
228
286
  type="text"
229
- placeholder="${d(this.placeholder)}"
230
- value="${this.displayValue || ""}"
287
+ placeholder="${msg(this.placeholder)}"
288
+ value="${this.displayValue || ''}"
231
289
  @input=${(e) => this.debouncedHandleInput(e.target.value)}
232
290
  .disabled="${this.disabled}"
233
291
  />
234
292
  <div
235
- class=${y({
236
- "events-icon": !0,
237
- "events-icon--no-filter": !this.server
238
- })}
293
+ class=${classMap({
294
+ 'events-icon': true,
295
+ 'events-icon--no-filter': !this.server,
296
+ })}
239
297
  @click=${() => {
240
- this.datePicker.show();
241
- }}
298
+ this.datePicker.show();
299
+ }}
242
300
  >
243
301
  <lit-icon-button
244
302
  icon="events"
@@ -247,15 +305,19 @@ let r = class extends v {
247
305
  .disabled="${this.disabled}"
248
306
  ></lit-icon-button>
249
307
  </div>
250
- ${(!D(this.value) || this.operator === "isEmpty" || this.operator === "isNotEmpty") && !this.disableClearButton ? h`
308
+ ${(!isEmpty(this.value) ||
309
+ this.operator === 'isEmpty' ||
310
+ this.operator === 'isNotEmpty') &&
311
+ !this.disableClearButton
312
+ ? html `
251
313
  <div
252
- class=${y({
253
- "clear-icon": !0,
254
- "clear-icon--no-filter": !this.server
255
- })}
314
+ class=${classMap({
315
+ 'clear-icon': true,
316
+ 'clear-icon--no-filter': !this.server,
317
+ })}
256
318
  @click=${() => {
257
- this._handleClearButtonClick();
258
- }}
319
+ this._handleClearButtonClick();
320
+ }}
259
321
  >
260
322
  <lit-icon-button
261
323
  icon="close"
@@ -263,22 +325,27 @@ let r = class extends v {
263
325
  variant="text"
264
326
  ></lit-icon-button>
265
327
  </div>
266
- ` : ""}
267
- ${this.server ? h`<lit-data-grid-operators-popover
328
+ `
329
+ : ''}
330
+ ${this.server
331
+ ? html `<lit-data-grid-operators-popover
268
332
  class="filter-icon"
269
- .type="${"date"}"
270
- .setOperator="${(e) => {
271
- this.handleSetOperator(e);
272
- }}"
333
+ .type="${'date'}"
334
+ .setOperator="${(value) => {
335
+ this.handleSetOperator(value);
336
+ }}"
273
337
  .operator="${this.operator}"
274
338
  @mousedown=${(e) => {
275
- e.preventDefault(), e.stopPropagation();
276
- }}
339
+ e.preventDefault();
340
+ e.stopPropagation();
341
+ }}
277
342
  .disabled="${this.disabled}"
278
343
  .filterOperators="${this.filterOperators}"
279
- ></lit-data-grid-operators-popover>` : null}
344
+ ></lit-data-grid-operators-popover>`
345
+ : null}
280
346
  </div>
281
- ${this.server ? h`<simple-popper
347
+ ${this.server
348
+ ? html `<simple-popper
282
349
  placement="left-end"
283
350
  manualOpening
284
351
  .offset="${0}"
@@ -289,111 +356,126 @@ let r = class extends v {
289
356
  <lit-menu-item
290
357
  icon="events"
291
358
  .onClick="${() => {
292
- this.handleSetOperator("fromTo"), this.datePicker.update({
293
- range: !0,
294
- selectedDates: [
295
- l.now().minus({ days: 7 }).toJSDate(),
296
- /* @__PURE__ */ new Date()
297
- ]
298
- }), this.isSubmenuOpen = !1;
299
- }}"
359
+ this.handleSetOperator('fromTo');
360
+ this.datePicker.update({
361
+ range: true,
362
+ selectedDates: [
363
+ DateTime.now().minus({ days: 7 }).toJSDate(),
364
+ new Date(),
365
+ ],
366
+ });
367
+ this.isSubmenuOpen = false;
368
+ }}"
300
369
  >
301
- ${d("Posledních 7 dní")}
370
+ ${msg('Posledních 7 dní')}
302
371
  </lit-menu-item>
303
372
  <lit-menu-item
304
373
  icon="events"
305
374
  .onClick="${() => {
306
- this.handleSetOperator("fromTo"), this.datePicker.update({
307
- range: !0,
308
- selectedDates: [
309
- l.now().minus({ days: 14 }).toJSDate(),
310
- /* @__PURE__ */ new Date()
311
- ]
312
- }), this.isSubmenuOpen = !1;
313
- }}"
375
+ this.handleSetOperator('fromTo');
376
+ this.datePicker.update({
377
+ range: true,
378
+ selectedDates: [
379
+ DateTime.now().minus({ days: 14 }).toJSDate(),
380
+ new Date(),
381
+ ],
382
+ });
383
+ this.isSubmenuOpen = false;
384
+ }}"
314
385
  >
315
- ${d("Posledních 14 dní")}
386
+ ${msg('Posledních 14 dní')}
316
387
  </lit-menu-item>
317
388
  <lit-menu-item
318
389
  icon="events"
319
390
  .onClick="${() => {
320
- this.handleSetOperator("fromTo"), this.datePicker.update({
321
- range: !0,
322
- selectedDates: [
323
- l.now().minus({ days: 30 }).toJSDate(),
324
- /* @__PURE__ */ new Date()
325
- ]
326
- }), this.isSubmenuOpen = !1;
327
- }}"
391
+ this.handleSetOperator('fromTo');
392
+ this.datePicker.update({
393
+ range: true,
394
+ selectedDates: [
395
+ DateTime.now().minus({ days: 30 }).toJSDate(),
396
+ new Date(),
397
+ ],
398
+ });
399
+ this.isSubmenuOpen = false;
400
+ }}"
328
401
  >
329
- ${d("Posledních 30 dní")}
402
+ ${msg('Posledních 30 dní')}
330
403
  </lit-menu-item>
331
404
  <lit-menu-item
332
405
  icon="events"
333
406
  .onClick="${() => {
334
- this.handleSetOperator("fromTo"), this.datePicker.update({
335
- range: !0,
336
- selectedDates: [
337
- l.now().minus({ months: 1 }).startOf("month").toJSDate(),
338
- /* @__PURE__ */ new Date()
339
- ]
340
- });
341
- }}"
407
+ this.handleSetOperator('fromTo');
408
+ this.datePicker.update({
409
+ range: true,
410
+ selectedDates: [
411
+ DateTime.now()
412
+ .minus({ months: 1 })
413
+ .startOf('month')
414
+ .toJSDate(),
415
+ new Date(),
416
+ ],
417
+ });
418
+ }}"
342
419
  >
343
- ${d("Poslední kalendářní měsíc")}
420
+ ${msg('Poslední kalendářní měsíc')}
344
421
  </lit-menu-item>
345
422
  <lit-menu-item
346
423
  icon="events"
347
424
  .onClick="${() => {
348
- this.handleSetOperator("fromTo");
349
- const e = l.now();
350
- e.quarter;
351
- const t = e.minus({ quarters: 1 }), a = t.startOf("quarter"), i = t.endOf("quarter");
352
- this.datePicker.update({
353
- range: !0,
354
- selectedDates: [
355
- a.toJSDate(),
356
- i.toJSDate()
357
- ]
358
- });
359
- }}"
425
+ this.handleSetOperator('fromTo');
426
+ const now = DateTime.now();
427
+ const currentQuarter = now.quarter;
428
+ const lastQuarterDate = now.minus({ quarters: 1 });
429
+ const startOfLastQuarter = lastQuarterDate.startOf('quarter');
430
+ const endOfLastQuarter = lastQuarterDate.endOf('quarter');
431
+ this.datePicker.update({
432
+ range: true,
433
+ selectedDates: [
434
+ startOfLastQuarter.toJSDate(),
435
+ endOfLastQuarter.toJSDate(),
436
+ ],
437
+ });
438
+ }}"
360
439
  >
361
- ${d("Poslední kvartál")}
440
+ ${msg('Poslední kvartál')}
362
441
  </lit-menu-item>
363
442
  <lit-menu-item
364
443
  icon="events"
365
444
  .onClick="${() => {
366
- this.handleSetOperator("fromTo"), this.datePicker.update({
367
- range: !0,
368
- selectedDates: [
369
- l.now().minus({ months: 12 }).toJSDate(),
370
- /* @__PURE__ */ new Date()
371
- ]
372
- });
373
- }}"
445
+ this.handleSetOperator('fromTo');
446
+ this.datePicker.update({
447
+ range: true,
448
+ selectedDates: [
449
+ DateTime.now().minus({ months: 12 }).toJSDate(),
450
+ new Date(),
451
+ ],
452
+ });
453
+ }}"
374
454
  >
375
- ${d("Poslední 12 měsíců")}
455
+ ${msg('Poslední 12 měsíců')}
376
456
  </lit-menu-item>
377
457
  <lit-menu-item
378
458
  icon="events"
379
459
  .onClick="${() => {
380
- this.handleSetOperator("fromTo"), this.datePicker.update({
381
- range: !0,
382
- selectedDates: [
383
- l.now().startOf("year").toJSDate(),
384
- l.now().endOf("year").toJSDate()
385
- ]
386
- });
387
- }}"
460
+ this.handleSetOperator('fromTo');
461
+ this.datePicker.update({
462
+ range: true,
463
+ selectedDates: [
464
+ DateTime.now().startOf('year').toJSDate(),
465
+ DateTime.now().endOf('year').toJSDate(),
466
+ ],
467
+ });
468
+ }}"
388
469
  >
389
- ${d("Poslední kalendářní rok")}
470
+ ${msg('Poslední kalendářní rok')}
390
471
  </lit-menu-item>
391
472
  </lit-menu>
392
- </simple-popper>` : ""}
473
+ </simple-popper>`
474
+ : ''}
393
475
  `;
394
- }
476
+ }
395
477
  };
396
- r.styles = T`
478
+ LitDatePicker.styles = css `
397
479
  .custom-icon-wrapper {
398
480
  position: relative;
399
481
  width: 100%;
@@ -466,60 +548,59 @@ r.styles = T`
466
548
  pointer-events: auto;
467
549
  }
468
550
  `;
469
- o([
470
- n({ type: String })
471
- ], r.prototype, "dateFormat", 2);
472
- o([
473
- n({ type: String })
474
- ], r.prototype, "pickerVariant", 2);
475
- o([
476
- n({ type: String })
477
- ], r.prototype, "value", 2);
478
- o([
479
- n({ type: String })
480
- ], r.prototype, "userLang", 2);
481
- o([
482
- n({ type: String })
483
- ], r.prototype, "placeholder", 2);
484
- o([
485
- n({ type: Function })
486
- ], r.prototype, "onChange", 2);
487
- o([
488
- n({ type: Boolean })
489
- ], r.prototype, "disableClearButton", 2);
490
- o([
491
- n({ type: Boolean })
492
- ], r.prototype, "range", 2);
493
- o([
494
- n({ type: Boolean })
495
- ], r.prototype, "server", 2);
496
- o([
497
- n({ type: String })
498
- ], r.prototype, "operator", 2);
499
- o([
500
- n({ type: Boolean })
501
- ], r.prototype, "disabled", 2);
502
- o([
503
- n({ type: Function })
504
- ], r.prototype, "setOperator", 2);
505
- o([
506
- n({ type: Array })
507
- ], r.prototype, "filterOperators", 2);
508
- o([
509
- f()
510
- ], r.prototype, "displayValue", 2);
511
- o([
512
- g("#dateInput")
513
- ], r.prototype, "dateInputEl", 2);
514
- o([
515
- f()
516
- ], r.prototype, "isSubmenuOpen", 2);
517
- o([
518
- g("simple-popper")
519
- ], r.prototype, "simplePopperEl", 2);
520
- r = o([
521
- b("lit-date-picker")
522
- ], r);
523
- export {
524
- r as LitDatePicker
525
- };
551
+ __decorate([
552
+ property({ type: String })
553
+ ], LitDatePicker.prototype, "dateFormat", void 0);
554
+ __decorate([
555
+ property({ type: String })
556
+ ], LitDatePicker.prototype, "pickerVariant", void 0);
557
+ __decorate([
558
+ property({ type: String })
559
+ ], LitDatePicker.prototype, "value", void 0);
560
+ __decorate([
561
+ property({ type: String })
562
+ ], LitDatePicker.prototype, "userLang", void 0);
563
+ __decorate([
564
+ property({ type: String })
565
+ ], LitDatePicker.prototype, "placeholder", void 0);
566
+ __decorate([
567
+ property({ type: Function })
568
+ ], LitDatePicker.prototype, "onChange", void 0);
569
+ __decorate([
570
+ property({ type: Boolean })
571
+ ], LitDatePicker.prototype, "disableClearButton", void 0);
572
+ __decorate([
573
+ property({ type: Boolean })
574
+ ], LitDatePicker.prototype, "range", void 0);
575
+ __decorate([
576
+ property({ type: Boolean })
577
+ ], LitDatePicker.prototype, "server", void 0);
578
+ __decorate([
579
+ property({ type: String })
580
+ ], LitDatePicker.prototype, "operator", void 0);
581
+ __decorate([
582
+ property({ type: Boolean })
583
+ ], LitDatePicker.prototype, "disabled", void 0);
584
+ __decorate([
585
+ property({ type: Function })
586
+ ], LitDatePicker.prototype, "setOperator", void 0);
587
+ __decorate([
588
+ property({ type: Array })
589
+ ], LitDatePicker.prototype, "filterOperators", void 0);
590
+ __decorate([
591
+ state()
592
+ ], LitDatePicker.prototype, "displayValue", void 0);
593
+ __decorate([
594
+ query('#dateInput')
595
+ ], LitDatePicker.prototype, "dateInputEl", void 0);
596
+ __decorate([
597
+ state()
598
+ ], LitDatePicker.prototype, "isSubmenuOpen", void 0);
599
+ __decorate([
600
+ query('simple-popper')
601
+ ], LitDatePicker.prototype, "simplePopperEl", void 0);
602
+ LitDatePicker = __decorate([
603
+ customElement('lit-date-picker')
604
+ ], LitDatePicker);
605
+ export { LitDatePicker };
606
+ //# sourceMappingURL=lit-date-picker.js.map