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.
Files changed (289) hide show
  1. package/dist/_virtual/FileSaver.min.js +4 -0
  2. package/dist/_virtual/___vite-browser-external.js +6 -0
  3. package/dist/_virtual/__vite-browser-external.js +4 -0
  4. package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
  5. package/dist/_virtual/_commonjsHelpers.js +28 -0
  6. package/dist/_virtual/index.js +4 -0
  7. package/dist/_virtual/lodash.js +4 -0
  8. package/dist/_virtual/pdf.js +4 -0
  9. package/dist/_virtual/react.production.js +4 -0
  10. package/dist/assets/generated/locales/de.js +72 -70
  11. package/dist/assets/generated/locales/en.js +72 -70
  12. package/dist/assets/generated/locales/fr.js +72 -70
  13. package/dist/assets/generated/locales/hr.js +72 -70
  14. package/dist/assets/generated/locales/it.js +72 -70
  15. package/dist/assets/generated/locales/pl.js +72 -70
  16. package/dist/assets/generated/locales/ro.js +72 -70
  17. package/dist/assets/generated/locales/sk.js +72 -70
  18. package/dist/assets/generated/locales/sr.js +72 -70
  19. package/dist/components/lit-attachments-tab.js +271 -432
  20. package/dist/components/lit-badge.js +40 -40
  21. package/dist/components/lit-case-variables-tab.js +382 -497
  22. package/dist/components/lit-chart.js +378 -406
  23. package/dist/components/lit-data-grid-tanstack.js +1150 -1663
  24. package/dist/components/lit-filter-modal.js +198 -230
  25. package/dist/components/lit-multiselect-item.js +301 -477
  26. package/dist/components/lit-section-tab.js +73 -85
  27. package/dist/components/lit-tabs-overview.js +191 -232
  28. package/dist/components/react-wrappers/attachments-tab.js +13 -8
  29. package/dist/components/react-wrappers/badge.js +13 -8
  30. package/dist/components/react-wrappers/button.js +13 -8
  31. package/dist/components/react-wrappers/case-variables-tab.js +13 -8
  32. package/dist/components/react-wrappers/chart.js +13 -8
  33. package/dist/components/react-wrappers/data-grid-tanstack.js +13 -8
  34. package/dist/components/react-wrappers/filter-modal.js +13 -8
  35. package/dist/components/react-wrappers/progress-bar.js +13 -8
  36. package/dist/components/react-wrappers/section-tab.js +13 -8
  37. package/dist/components/react-wrappers/tabs-overview.js +13 -8
  38. package/dist/index.js +42 -43
  39. package/dist/libs/xlsx.mini.min.js +10 -0
  40. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +432 -0
  41. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +306 -0
  42. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +127 -0
  43. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +127 -0
  44. package/dist/node_modules/@kurkle/color/dist/color.esm.js +448 -0
  45. package/dist/node_modules/@lit/localize/init/install.js +11 -0
  46. package/dist/node_modules/@lit/localize/init/runtime.js +42 -0
  47. package/dist/node_modules/@lit/localize/internal/default-msg.js +10 -0
  48. package/dist/node_modules/@lit/localize/internal/deferred.js +21 -0
  49. package/dist/node_modules/@lit/localize/internal/fnv1a64.js +17 -0
  50. package/dist/node_modules/@lit/localize/internal/id-generation.js +14 -0
  51. package/dist/node_modules/@lit/localize/internal/locale-status-event.js +9 -0
  52. package/dist/node_modules/@lit/localize/internal/runtime-msg.js +42 -0
  53. package/dist/node_modules/@lit/localize/internal/str-tag.js +15 -0
  54. package/dist/node_modules/@lit/react/create-component.js +35 -0
  55. package/dist/node_modules/@lit/reactive-element/css-tag.js +50 -0
  56. package/dist/node_modules/@lit/reactive-element/decorators/base.js +9 -0
  57. package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +13 -0
  58. package/dist/node_modules/@lit/reactive-element/decorators/property.js +37 -0
  59. package/dist/node_modules/@lit/reactive-element/decorators/query.js +20 -0
  60. package/dist/node_modules/@lit/reactive-element/decorators/state.js +12 -0
  61. package/dist/node_modules/@lit/reactive-element/reactive-element.js +250 -0
  62. package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +104 -0
  63. package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +40 -0
  64. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1956 -0
  65. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +490 -0
  66. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  67. package/dist/node_modules/chart.js/dist/chart.js +7122 -0
  68. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +1691 -0
  69. package/dist/node_modules/file-saver/dist/FileSaver.min.js +74 -0
  70. package/dist/node_modules/lit-element/lit-element.js +51 -0
  71. package/dist/node_modules/lit-html/async-directive.js +69 -0
  72. package/dist/node_modules/lit-html/directive-helpers.js +45 -0
  73. package/dist/node_modules/lit-html/directive.js +27 -0
  74. package/dist/node_modules/lit-html/directives/ref.js +42 -0
  75. package/dist/node_modules/lit-html/directives/repeat.js +61 -0
  76. package/dist/node_modules/lit-html/directives/style-map.js +36 -0
  77. package/dist/node_modules/lit-html/directives/unsafe-html.js +27 -0
  78. package/dist/node_modules/lit-html/lit-html.js +243 -0
  79. package/dist/node_modules/lodash/lodash.js +3678 -0
  80. package/dist/node_modules/luxon/src/datetime.js +1793 -0
  81. package/dist/node_modules/luxon/src/duration.js +723 -0
  82. package/dist/node_modules/luxon/src/errors.js +40 -0
  83. package/dist/node_modules/luxon/src/impl/conversions.js +92 -0
  84. package/dist/node_modules/luxon/src/impl/diff.js +36 -0
  85. package/dist/node_modules/luxon/src/impl/digits.js +74 -0
  86. package/dist/node_modules/luxon/src/impl/english.js +138 -0
  87. package/dist/node_modules/luxon/src/impl/formats.js +150 -0
  88. package/dist/node_modules/luxon/src/impl/formatter.js +245 -0
  89. package/dist/node_modules/luxon/src/impl/invalid.js +11 -0
  90. package/dist/node_modules/luxon/src/impl/locale.js +282 -0
  91. package/dist/node_modules/luxon/src/impl/regexParser.js +202 -0
  92. package/dist/node_modules/luxon/src/impl/tokenParser.js +329 -0
  93. package/dist/node_modules/luxon/src/impl/util.js +206 -0
  94. package/dist/node_modules/luxon/src/impl/zoneUtil.js +19 -0
  95. package/dist/node_modules/luxon/src/info.js +180 -0
  96. package/dist/node_modules/luxon/src/interval.js +466 -0
  97. package/dist/node_modules/luxon/src/settings.js +150 -0
  98. package/dist/node_modules/luxon/src/zone.js +88 -0
  99. package/dist/node_modules/luxon/src/zones/IANAZone.js +178 -0
  100. package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +125 -0
  101. package/dist/node_modules/luxon/src/zones/invalidZone.js +41 -0
  102. package/dist/node_modules/luxon/src/zones/systemZone.js +47 -0
  103. package/dist/node_modules/pdfjs-dist/build/pdf.js +10310 -0
  104. package/dist/node_modules/react/cjs/react.production.js +417 -0
  105. package/dist/node_modules/react/index.js +10 -0
  106. package/dist/node_modules/sortablejs/modular/sortable.esm.js +1261 -0
  107. package/dist/shared/lit-button.js +66 -80
  108. package/dist/shared/lit-progress-bar.js +35 -33
  109. package/dist/shared/simple-tooltip.js +124 -198
  110. package/dist/shared/styles/button-shared-styles.js +8 -4
  111. package/dist/utils/currency.js +12 -15
  112. package/dist/utils/custom-filters.js +46 -80
  113. package/dist/utils/date.js +14 -21
  114. package/dist/utils/getOperatorByType.js +51 -65
  115. package/dist/utils/localization.js +29 -431
  116. package/dist/vite.svg +1 -0
  117. package/package.json +76 -74
  118. package/dist/assets/generated/locales/de.js.map +0 -1
  119. package/dist/assets/generated/locales/en.js.map +0 -1
  120. package/dist/assets/generated/locales/fr.js.map +0 -1
  121. package/dist/assets/generated/locales/hr.js.map +0 -1
  122. package/dist/assets/generated/locales/it.js.map +0 -1
  123. package/dist/assets/generated/locales/pl.js.map +0 -1
  124. package/dist/assets/generated/locales/ro.js.map +0 -1
  125. package/dist/assets/generated/locales/sk.js.map +0 -1
  126. package/dist/assets/generated/locales/sr.js.map +0 -1
  127. package/dist/assets/icons/iconGlyphs.js +0 -679
  128. package/dist/assets/icons/iconGlyphs.js.map +0 -1
  129. package/dist/assets/illustration/delete-illustration.js +0 -96
  130. package/dist/assets/illustration/delete-illustration.js.map +0 -1
  131. package/dist/assets/illustration/no-content.js +0 -167
  132. package/dist/assets/illustration/no-content.js.map +0 -1
  133. package/dist/assets/illustration/no-preview.js +0 -133
  134. package/dist/assets/illustration/no-preview.js.map +0 -1
  135. package/dist/assets/illustration/not-found.js +0 -106
  136. package/dist/assets/illustration/not-found.js.map +0 -1
  137. package/dist/assets/illustration/settings-illustration.js +0 -176
  138. package/dist/assets/illustration/settings-illustration.js.map +0 -1
  139. package/dist/components/components-settings/attachments-tab-settings.js +0 -226
  140. package/dist/components/components-settings/attachments-tab-settings.js.map +0 -1
  141. package/dist/components/components-settings/data-grid-settings.js +0 -318
  142. package/dist/components/components-settings/data-grid-settings.js.map +0 -1
  143. package/dist/components/components-settings/section-tab-settings.js +0 -269
  144. package/dist/components/components-settings/section-tab-settings.js.map +0 -1
  145. package/dist/components/components-settings/tabs-overview-settings.js +0 -439
  146. package/dist/components/components-settings/tabs-overview-settings.js.map +0 -1
  147. package/dist/components/lit-attachments-tab.js.map +0 -1
  148. package/dist/components/lit-badge.js.map +0 -1
  149. package/dist/components/lit-case-variables-tab.js.map +0 -1
  150. package/dist/components/lit-chart.js.map +0 -1
  151. package/dist/components/lit-data-grid-tanstack.js.map +0 -1
  152. package/dist/components/lit-filter-modal.js.map +0 -1
  153. package/dist/components/lit-multiselect-item.js.map +0 -1
  154. package/dist/components/lit-section-tab.js.map +0 -1
  155. package/dist/components/lit-tabs-overview.js.map +0 -1
  156. package/dist/components/modals/lit-confirm-modal.js +0 -120
  157. package/dist/components/modals/lit-confirm-modal.js.map +0 -1
  158. package/dist/components/modals/lit-delete-modal.js +0 -128
  159. package/dist/components/modals/lit-delete-modal.js.map +0 -1
  160. package/dist/components/react-wrappers/attachments-tab.js.map +0 -1
  161. package/dist/components/react-wrappers/badge.js.map +0 -1
  162. package/dist/components/react-wrappers/button.js.map +0 -1
  163. package/dist/components/react-wrappers/case-variables-tab.js.map +0 -1
  164. package/dist/components/react-wrappers/chart.js.map +0 -1
  165. package/dist/components/react-wrappers/data-grid-tanstack.js.map +0 -1
  166. package/dist/components/react-wrappers/filter-modal.js.map +0 -1
  167. package/dist/components/react-wrappers/progress-bar.js.map +0 -1
  168. package/dist/components/react-wrappers/section-tab.js.map +0 -1
  169. package/dist/components/react-wrappers/tabs-overview.js.map +0 -1
  170. package/dist/data/translations.js +0 -2763
  171. package/dist/data/translations.js.map +0 -1
  172. package/dist/index.js.map +0 -1
  173. package/dist/schemas/index.js +0 -17
  174. package/dist/schemas/index.js.map +0 -1
  175. package/dist/schemas/lit-attachments-tab-document.schema.js +0 -20
  176. package/dist/schemas/lit-attachments-tab-document.schema.js.map +0 -1
  177. package/dist/schemas/lit-attachments-tab-settings-value.schema.js +0 -15
  178. package/dist/schemas/lit-attachments-tab-settings-value.schema.js.map +0 -1
  179. package/dist/schemas/lit-attachments-tab.schema.js +0 -32
  180. package/dist/schemas/lit-attachments-tab.schema.js.map +0 -1
  181. package/dist/schemas/lit-case-variables-tab-cell.schema.js +0 -43
  182. package/dist/schemas/lit-case-variables-tab-cell.schema.js.map +0 -1
  183. package/dist/schemas/lit-case-variables-tab-rows.schema.js +0 -6
  184. package/dist/schemas/lit-case-variables-tab-rows.schema.js.map +0 -1
  185. package/dist/schemas/lit-case-variables-tab.schema.js +0 -24
  186. package/dist/schemas/lit-case-variables-tab.schema.js.map +0 -1
  187. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js +0 -6
  188. package/dist/schemas/lit-data-grid-tanstack-column-array.schema.js.map +0 -1
  189. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js +0 -6
  190. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter-array.schema.js.map +0 -1
  191. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js +0 -11
  192. package/dist/schemas/lit-data-grid-tanstack-column-custom-filter.schema.js.map +0 -1
  193. package/dist/schemas/lit-data-grid-tanstack-column.schema.js +0 -55
  194. package/dist/schemas/lit-data-grid-tanstack-column.schema.js.map +0 -1
  195. package/dist/schemas/lit-data-grid-tanstack.schema.js +0 -99
  196. package/dist/schemas/lit-data-grid-tanstack.schema.js.map +0 -1
  197. package/dist/schemas/lit-section-tab-schema.js +0 -24
  198. package/dist/schemas/lit-section-tab-schema.js.map +0 -1
  199. package/dist/schemas/lit-tabs-overview-tab-array.schema.js +0 -6
  200. package/dist/schemas/lit-tabs-overview-tab-array.schema.js.map +0 -1
  201. package/dist/schemas/lit-tabs-overview-tab.schema.js +0 -32
  202. package/dist/schemas/lit-tabs-overview-tab.schema.js.map +0 -1
  203. package/dist/schemas/lit-tabs-overview.schema.js +0 -29
  204. package/dist/schemas/lit-tabs-overview.schema.js.map +0 -1
  205. package/dist/scripts/translate-locales.js +0 -69
  206. package/dist/scripts/translate-locales.js.map +0 -1
  207. package/dist/shared/filter-inputs.js +0 -427
  208. package/dist/shared/filter-inputs.js.map +0 -1
  209. package/dist/shared/lit-button.js.map +0 -1
  210. package/dist/shared/lit-case-variables-tab-cell.js +0 -226
  211. package/dist/shared/lit-case-variables-tab-cell.js.map +0 -1
  212. package/dist/shared/lit-checkbox.js +0 -171
  213. package/dist/shared/lit-checkbox.js.map +0 -1
  214. package/dist/shared/lit-custom-popper.js +0 -117
  215. package/dist/shared/lit-custom-popper.js.map +0 -1
  216. package/dist/shared/lit-data-grid-action-buttons-popover.js +0 -295
  217. package/dist/shared/lit-data-grid-action-buttons-popover.js.map +0 -1
  218. package/dist/shared/lit-data-grid-density-popover.js +0 -84
  219. package/dist/shared/lit-data-grid-density-popover.js.map +0 -1
  220. package/dist/shared/lit-data-grid-export-popover.js +0 -68
  221. package/dist/shared/lit-data-grid-export-popover.js.map +0 -1
  222. package/dist/shared/lit-data-grid-operators-popover.js +0 -114
  223. package/dist/shared/lit-data-grid-operators-popover.js.map +0 -1
  224. package/dist/shared/lit-data-grid-row-actions.js +0 -76
  225. package/dist/shared/lit-data-grid-row-actions.js.map +0 -1
  226. package/dist/shared/lit-date-picker.js +0 -606
  227. package/dist/shared/lit-date-picker.js.map +0 -1
  228. package/dist/shared/lit-icon-button.js +0 -105
  229. package/dist/shared/lit-icon-button.js.map +0 -1
  230. package/dist/shared/lit-icon.js +0 -284
  231. package/dist/shared/lit-icon.js.map +0 -1
  232. package/dist/shared/lit-input.js +0 -239
  233. package/dist/shared/lit-input.js.map +0 -1
  234. package/dist/shared/lit-label.js +0 -104
  235. package/dist/shared/lit-label.js.map +0 -1
  236. package/dist/shared/lit-loader.js +0 -69
  237. package/dist/shared/lit-loader.js.map +0 -1
  238. package/dist/shared/lit-loading-bar.js +0 -127
  239. package/dist/shared/lit-loading-bar.js.map +0 -1
  240. package/dist/shared/lit-menu-item.js +0 -99
  241. package/dist/shared/lit-menu-item.js.map +0 -1
  242. package/dist/shared/lit-menu.js +0 -42
  243. package/dist/shared/lit-menu.js.map +0 -1
  244. package/dist/shared/lit-modal-body.js +0 -22
  245. package/dist/shared/lit-modal-body.js.map +0 -1
  246. package/dist/shared/lit-modal-footer.js +0 -29
  247. package/dist/shared/lit-modal-footer.js.map +0 -1
  248. package/dist/shared/lit-modal-header.js +0 -36
  249. package/dist/shared/lit-modal-header.js.map +0 -1
  250. package/dist/shared/lit-modal.js +0 -169
  251. package/dist/shared/lit-modal.js.map +0 -1
  252. package/dist/shared/lit-overflow-tooltip.js +0 -103
  253. package/dist/shared/lit-overflow-tooltip.js.map +0 -1
  254. package/dist/shared/lit-pill.js +0 -88
  255. package/dist/shared/lit-pill.js.map +0 -1
  256. package/dist/shared/lit-progress-bar.js.map +0 -1
  257. package/dist/shared/lit-responsive-button.js +0 -94
  258. package/dist/shared/lit-responsive-button.js.map +0 -1
  259. package/dist/shared/lit-select-field.js +0 -459
  260. package/dist/shared/lit-select-field.js.map +0 -1
  261. package/dist/shared/lit-select.js +0 -413
  262. package/dist/shared/lit-select.js.map +0 -1
  263. package/dist/shared/lit-settings.js +0 -77
  264. package/dist/shared/lit-settings.js.map +0 -1
  265. package/dist/shared/lit-text-field.js +0 -222
  266. package/dist/shared/lit-text-field.js.map +0 -1
  267. package/dist/shared/lit-toggle.js +0 -222
  268. package/dist/shared/lit-toggle.js.map +0 -1
  269. package/dist/shared/lit-tooltip.js +0 -166
  270. package/dist/shared/lit-tooltip.js.map +0 -1
  271. package/dist/shared/simple-popper.js +0 -266
  272. package/dist/shared/simple-popper.js.map +0 -1
  273. package/dist/shared/simple-tooltip.js.map +0 -1
  274. package/dist/shared/styles/button-shared-styles.js.map +0 -1
  275. package/dist/styles.js +0 -169
  276. package/dist/styles.js.map +0 -1
  277. package/dist/utils/currency.js.map +0 -1
  278. package/dist/utils/custom-filters.js.map +0 -1
  279. package/dist/utils/date.js.map +0 -1
  280. package/dist/utils/getOperatorByType.js.map +0 -1
  281. package/dist/utils/getOverviewValue.js +0 -177
  282. package/dist/utils/getOverviewValue.js.map +0 -1
  283. package/dist/utils/localization.js.map +0 -1
  284. package/dist/utils/utils.js +0 -13
  285. package/dist/utils/utils.js.map +0 -1
  286. package/dist/utils/validate-json-schema.js +0 -8
  287. package/dist/utils/validate-json-schema.js.map +0 -1
  288. package/dist/validators/validator.js +0 -7
  289. package/dist/validators/validator.js.map +0 -1
@@ -1,16 +1,13 @@
1
- export const formatCurrency = (value, locale) => {
2
- if (value === null) {
3
- return null;
4
- }
5
- if (value === '') {
6
- return '';
7
- }
8
- const number = typeof value === 'string' ? parseFloat(value) : value;
9
- if (isNaN(number)) {
10
- return 'Invalid number';
11
- }
12
- return new Intl.NumberFormat(locale, {
13
- style: 'decimal',
14
- }).format(number);
1
+ const e = (r, t) => {
2
+ if (r === null)
3
+ return null;
4
+ if (r === "")
5
+ return "";
6
+ const n = typeof r == "string" ? parseFloat(r) : r;
7
+ return isNaN(n) ? "Invalid number" : new Intl.NumberFormat(t, {
8
+ style: "decimal"
9
+ }).format(n);
10
+ };
11
+ export {
12
+ e as formatCurrency
15
13
  };
16
- //# sourceMappingURL=currency.js.map
@@ -1,84 +1,50 @@
1
- // @ts-nocheck
2
- import { DateTime } from 'luxon';
3
- export const dateRangeFilterFn = (row, columnId, filterValue) => {
4
- const rowValue = row.getValue(columnId);
5
- if (!rowValue)
6
- return false;
7
- const rowDate = parseDate(rowValue);
8
- const startDate = filterValue.startDate;
9
- const endDate = filterValue.endDate;
10
- // console.log('rowDate', rowDate);
11
- // console.log('startDate', startDate);
12
- // console.log('endDate', endDate);
13
- if (startDate && endDate) {
14
- return rowDate >= startDate && rowDate <= endDate;
15
- }
16
- else if (startDate) {
17
- return rowDate >= startDate;
18
- }
19
- else if (endDate) {
20
- return rowDate <= endDate;
21
- }
22
- return true;
1
+ import M from "../node_modules/luxon/src/datetime.js";
2
+ import "../node_modules/luxon/src/duration.js";
3
+ const l = (e, r, y) => {
4
+ const t = e.getValue(r);
5
+ if (!t) return !1;
6
+ const s = a(t), d = y.startDate, n = y.endDate;
7
+ return d && n ? s >= d && s <= n : d ? s >= d : n ? s <= n : !0;
23
8
  };
24
- export function dateFilterFn(row, columnId, filterValue) {
25
- const rowValue = row.getValue(columnId);
26
- if (!rowValue)
27
- return false;
28
- const date1 = parseDate(rowValue);
29
- const date2 = filterValue;
30
- // console.log('rowDate', rowValue);
31
- // console.log('date1', date1);
32
- // console.log('date2', date2);
33
- // Check if both dates are valid
34
- if (!date1 || !date2) {
35
- return false;
36
- }
37
- // Compare year, month, and day directly
38
- const isEqual = date1 === date2;
39
- return isEqual;
9
+ function u(e, r, y) {
10
+ const t = e.getValue(r);
11
+ if (!t) return !1;
12
+ const s = a(t), d = y;
13
+ return !s || !d ? !1 : s === d;
40
14
  }
41
- export const multiselectFilterFn = (row, columnId, filterValue) => {
42
- const rowValue = row.getValue(columnId);
43
- if (!rowValue)
44
- return false;
45
- return filterValue.includes(rowValue);
15
+ const f = (e, r, y) => {
16
+ const t = e.getValue(r);
17
+ return t ? y.includes(t) : !1;
46
18
  };
47
- function parseDate(dateStr) {
48
- if (!dateStr)
49
- return null;
50
- // Define possible date formats
51
- const possibleFormats = [
52
- 'yyyy-MM-dd',
53
- 'dd-MM-yyyy',
54
- 'MM-dd-yyyy',
55
- 'd. M. yyyy',
56
- 'd. M. yyyy.',
57
- 'd.M.yyyy',
58
- 'yyyy/MM/dd',
59
- 'dd/MM/yyyy',
60
- 'M/d/yyyy',
61
- 'MM/dd/yyyy',
62
- 'dd MMMM yyyy',
63
- "yyyy-MM-dd'T'HH:mm:ss",
64
- "yyyy-MM-dd'T'HH:mm:ss.SSS",
65
- "yyyy-MM-dd'T'HH:mm:ss.SSSZ",
66
- 'dd.MM.yyyy',
67
- 'MM.dd.yyyy',
68
- 'EEE, d MMM yyyy',
69
- 'EEE, d MMM yyyy HH:mm:ss Z',
70
- ];
71
- let date;
72
- // Try each format until one is valid
73
- for (const format of possibleFormats) {
74
- date = DateTime.fromFormat(dateStr, format);
75
- if (date.isValid)
76
- break; // Stop if a valid date is found
77
- }
78
- // If all formats fail, try as ISO string
79
- if (!date || !date.isValid) {
80
- date = DateTime.fromISO(dateStr);
81
- }
82
- return date.isValid ? date.toJSDate().toISOString() : null;
19
+ function a(e) {
20
+ if (!e) return null;
21
+ const r = [
22
+ "yyyy-MM-dd",
23
+ "dd-MM-yyyy",
24
+ "MM-dd-yyyy",
25
+ "d. M. yyyy",
26
+ "d. M. yyyy.",
27
+ "d.M.yyyy",
28
+ "yyyy/MM/dd",
29
+ "dd/MM/yyyy",
30
+ "M/d/yyyy",
31
+ "MM/dd/yyyy",
32
+ "dd MMMM yyyy",
33
+ "yyyy-MM-dd'T'HH:mm:ss",
34
+ "yyyy-MM-dd'T'HH:mm:ss.SSS",
35
+ "yyyy-MM-dd'T'HH:mm:ss.SSSZ",
36
+ "dd.MM.yyyy",
37
+ "MM.dd.yyyy",
38
+ "EEE, d MMM yyyy",
39
+ "EEE, d MMM yyyy HH:mm:ss Z"
40
+ ];
41
+ let y;
42
+ for (const t of r)
43
+ if (y = M.fromFormat(e, t), y.isValid) break;
44
+ return (!y || !y.isValid) && (y = M.fromISO(e)), y.isValid ? y.toJSDate().toISOString() : null;
83
45
  }
84
- //# sourceMappingURL=custom-filters.js.map
46
+ export {
47
+ u as dateFilterFn,
48
+ l as dateRangeFilterFn,
49
+ f as multiselectFilterFn
50
+ };
@@ -1,22 +1,15 @@
1
- import { DateTime } from 'luxon';
2
- export const formatDate = (date, locale, time = false, dateFormat) => {
3
- if (date === null) {
4
- return null;
5
- }
6
- if (date === '') {
7
- return '';
8
- }
9
- const format = time ? `${dateFormat} HH:mm` : `${dateFormat}`;
10
- const dateObj = new Date(date);
11
- // if invalid date return Invalid Date
12
- if (isNaN(dateObj.getTime())) {
13
- return 'Invalid date';
14
- }
15
- if (dateFormat) {
16
- return DateTime.fromISO(date).toFormat(format);
17
- }
18
- return DateTime.fromISO(date)
19
- .setLocale(locale)
20
- .toLocaleString(time ? DateTime.DATETIME_SHORT : undefined);
1
+ import t from "../node_modules/luxon/src/datetime.js";
2
+ import "../node_modules/luxon/src/duration.js";
3
+ const u = (r, e, n = !1, o) => {
4
+ if (r === null)
5
+ return null;
6
+ if (r === "")
7
+ return "";
8
+ const i = n ? `${o} HH:mm` : `${o}`, f = new Date(r);
9
+ return isNaN(f.getTime()) ? "Invalid date" : o ? t.fromISO(r).toFormat(i) : t.fromISO(r).setLocale(e).toLocaleString(
10
+ n ? t.DATETIME_SHORT : void 0
11
+ );
12
+ };
13
+ export {
14
+ u as formatDate
21
15
  };
22
- //# sourceMappingURL=date.js.map
@@ -1,66 +1,52 @@
1
- import { msg } from '@lit/localize';
2
- export function getOperatorsByColumnType(type) {
3
- switch (type) {
4
- case 'string':
5
- return [
6
- { label: msg('obsahuje'), value: 'contains' },
7
- { label: msg('rovná se'), value: '=' },
8
- { label: msg('nerovná se'), value: '!=' },
9
- { label: msg('začíná na'), value: 'startsWith' },
10
- { label: msg('končí na'), value: 'endsWith' },
11
- { label: msg('neobsahuje'), value: 'doesNotContain' },
12
- { label: msg('je prázdné'), value: 'isEmpty' },
13
- { label: msg('není prázdné'), value: 'isNotEmpty' },
14
- ];
15
- case 'select':
16
- return [
17
- { value: 'is', label: msg('Je') },
18
- { value: 'not', label: msg('Není') },
19
- ];
20
- case 'multiselect':
21
- return [{ value: 'isAnyOfValue', label: msg('Je libovolná hodnota z') }];
22
- case 'number':
23
- return [
24
- { label: msg('rovná se'), value: '=' },
25
- { label: msg('nerovná se'), value: '!=' },
26
- { label: msg('větší než'), value: '>' },
27
- { label: msg('větší nebo rovné'), value: '>=' },
28
- { label: msg('menší než'), value: '<' },
29
- { label: msg('menší nebo rovné'), value: '<=' },
30
- { label: msg('je prázdné'), value: 'isEmpty' },
31
- { label: msg('není prázdné'), value: 'isNotEmpty' },
32
- ];
33
- case 'date':
34
- return [
35
- { label: msg('rovná se'), value: '=' },
36
- { label: msg('nerovná se'), value: '!=' },
37
- { label: msg('větší než'), value: '>' },
38
- { label: msg('větší nebo rovné'), value: '>=' },
39
- { label: msg('menší než'), value: '<' },
40
- { label: msg('menší nebo rovné'), value: '<=' },
41
- { label: msg('je prázdné'), value: 'isEmpty' },
42
- { label: msg('není prázdné'), value: 'isNotEmpty' },
43
- { label: msg('od - do'), value: 'fromTo' },
44
- ];
45
- default:
46
- return [];
47
- }
1
+ import { msg as e } from "../node_modules/@lit/localize/init/install.js";
2
+ import "../node_modules/@lit/localize/init/runtime.js";
3
+ function v(l) {
4
+ switch (l) {
5
+ case "string":
6
+ return [
7
+ { label: e("obsahuje"), value: "contains" },
8
+ { label: e("rovná se"), value: "=" },
9
+ { label: e("nerovná se"), value: "!=" },
10
+ { label: e("začíná na"), value: "startsWith" },
11
+ { label: e("končí na"), value: "endsWith" },
12
+ { label: e("neobsahuje"), value: "doesNotContain" },
13
+ { label: e("je prázdné"), value: "isEmpty" },
14
+ { label: e("není prázdné"), value: "isNotEmpty" }
15
+ ];
16
+ case "select":
17
+ return [
18
+ { value: "is", label: e("Je") },
19
+ { value: "not", label: e("Není") }
20
+ ];
21
+ case "multiselect":
22
+ return [{ value: "isAnyOfValue", label: e("Je libovolná hodnota z") }];
23
+ case "number":
24
+ return [
25
+ { label: e("rovná se"), value: "=" },
26
+ { label: e("nerovná se"), value: "!=" },
27
+ { label: e("větší než"), value: ">" },
28
+ { label: e("větší nebo rovné"), value: ">=" },
29
+ { label: e("menší než"), value: "<" },
30
+ { label: e("menší nebo rovné"), value: "<=" },
31
+ { label: e("je prázdné"), value: "isEmpty" },
32
+ { label: e("není prázdné"), value: "isNotEmpty" }
33
+ ];
34
+ case "date":
35
+ return [
36
+ { label: e("rovná se"), value: "=" },
37
+ { label: e("nerovná se"), value: "!=" },
38
+ { label: e("větší než"), value: ">" },
39
+ { label: e("větší nebo rovné"), value: ">=" },
40
+ { label: e("menší než"), value: "<" },
41
+ { label: e("menší nebo rovné"), value: "<=" },
42
+ { label: e("je prázdné"), value: "isEmpty" },
43
+ { label: e("není prázdné"), value: "isNotEmpty" },
44
+ { label: e("od - do"), value: "fromTo" }
45
+ ];
46
+ default:
47
+ return [];
48
+ }
48
49
  }
49
- export function getDefaultOperator(type) {
50
- switch (type) {
51
- case 'string':
52
- return 'contains';
53
- case 'select':
54
- return 'is';
55
- case 'multiselect':
56
- return 'isAnyOfValue';
57
- case 'number':
58
- return '=';
59
- case 'date':
60
- return '=';
61
- }
62
- }
63
- export function isAllowedType(type) {
64
- return ['string', 'select', 'multiselect', 'number', 'date'].includes(type);
65
- }
66
- //# sourceMappingURL=getOperatorByType.js.map
50
+ export {
51
+ v as getOperatorsByColumnType
52
+ };