@sme.up/ketchup 8.0.1 → 8.0.2

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 (132) hide show
  1. package/dist/cjs/{f-button-c0ede055.js → f-button-9524bbf7.js} +1 -1
  2. package/dist/cjs/{f-cell-1c17dbac.js → f-cell-bcb75ade.js} +10 -8
  3. package/dist/cjs/{f-chip-bace36bb.js → f-chip-2249b386.js} +2 -2
  4. package/dist/cjs/{f-image-22174590.js → f-image-47d74999.js} +1 -1
  5. package/dist/cjs/{f-paginator-utils-e21e1f06.js → f-paginator-utils-b0a9ae5f.js} +63 -62
  6. package/dist/cjs/{f-text-field-503f2bb0.js → f-text-field-579c0fc0.js} +1 -1
  7. package/dist/cjs/kup-accordion.cjs.entry.js +2 -2
  8. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +32 -87
  9. package/dist/cjs/kup-box.cjs.entry.js +7 -7
  10. package/dist/cjs/kup-calendar.cjs.entry.js +4 -4
  11. package/dist/cjs/kup-cell.cjs.entry.js +5 -5
  12. package/dist/cjs/kup-dash-list.cjs.entry.js +1 -1
  13. package/dist/cjs/kup-dash_2.cjs.entry.js +1 -1
  14. package/dist/cjs/kup-dashboard.cjs.entry.js +4 -4
  15. package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
  16. package/dist/cjs/kup-echart.cjs.entry.js +1 -1
  17. package/dist/cjs/kup-family-tree.cjs.entry.js +3 -3
  18. package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
  19. package/dist/cjs/kup-image-list.cjs.entry.js +6 -6
  20. package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
  21. package/dist/cjs/kup-magic-box.cjs.entry.js +2 -2
  22. package/dist/cjs/{kup-manager-b994cf71.js → kup-manager-85b2a756.js} +679 -531
  23. package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
  24. package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
  25. package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
  26. package/dist/cjs/kup-planner.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-probe.cjs.entry.js +1 -1
  28. package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
  29. package/dist/cjs/kup-snackbar.cjs.entry.js +3 -3
  30. package/dist/collection/assets/data-table.js +0 -44
  31. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +5 -61
  32. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  33. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +7 -8
  34. package/dist/collection/components/kup-data-table/kup-data-table-state.js +1 -1
  35. package/dist/collection/components/kup-data-table/kup-data-table.js +5 -4
  36. package/dist/collection/components/kup-gauge/kup-gauge.js +4 -4
  37. package/dist/collection/components/kup-text-field/kup-text-field.js +4 -5
  38. package/dist/collection/components/kup-time-picker/kup-time-picker.js +7 -7
  39. package/dist/collection/components/kup-tree/kup-tree.js +2 -2
  40. package/dist/collection/f-components/f-cell/f-cell.js +6 -5
  41. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +3 -3
  42. package/dist/collection/managers/kup-data/kup-data.js +3 -1
  43. package/dist/collection/managers/kup-dates/kup-dates-declarations.js +21 -10
  44. package/dist/collection/managers/kup-dates/kup-dates.js +312 -1
  45. package/dist/collection/managers/kup-math/kup-math.js +180 -9
  46. package/dist/collection/utils/cell-utils.js +5 -6
  47. package/dist/collection/utils/filters/filters.js +11 -13
  48. package/dist/collection/utils/utils.js +18 -435
  49. package/dist/components/kup-autocomplete2.js +915 -810
  50. package/dist/components/kup-box2.js +1 -1
  51. package/dist/components/kup-calendar.js +1 -1
  52. package/dist/components/kup-cell.js +1 -1
  53. package/dist/components/kup-dashboard.js +1 -1
  54. package/dist/components/kup-echart2.js +1 -1
  55. package/dist/components/kup-family-tree.js +1 -1
  56. package/dist/components/kup-grid2.js +1 -1
  57. package/dist/components/kup-iframe.js +1 -1
  58. package/dist/components/kup-image-list.js +1 -1
  59. package/dist/components/kup-magic-box.js +1 -1
  60. package/dist/components/kup-numeric-picker.js +1 -1
  61. package/dist/components/kup-planner.js +1 -1
  62. package/dist/esm/{f-button-c377973d.js → f-button-024f0cfe.js} +1 -1
  63. package/dist/esm/{f-cell-e5a98bc8.js → f-cell-90240a8c.js} +10 -8
  64. package/dist/esm/{f-chip-c8a18c48.js → f-chip-2238ad43.js} +2 -2
  65. package/dist/esm/{f-image-5cbdf39d.js → f-image-f2e9bf79.js} +1 -1
  66. package/dist/esm/{f-paginator-utils-a1dab059.js → f-paginator-utils-8cb3c023.js} +63 -62
  67. package/dist/esm/{f-text-field-dafb7c8b.js → f-text-field-d231982c.js} +1 -1
  68. package/dist/esm/kup-accordion.entry.js +2 -2
  69. package/dist/esm/kup-autocomplete_27.entry.js +26 -81
  70. package/dist/esm/kup-box.entry.js +7 -7
  71. package/dist/esm/kup-calendar.entry.js +4 -4
  72. package/dist/esm/kup-cell.entry.js +5 -5
  73. package/dist/esm/kup-dash-list.entry.js +1 -1
  74. package/dist/esm/kup-dash_2.entry.js +1 -1
  75. package/dist/esm/kup-dashboard.entry.js +4 -4
  76. package/dist/esm/kup-drawer.entry.js +1 -1
  77. package/dist/esm/kup-echart.entry.js +1 -1
  78. package/dist/esm/kup-family-tree.entry.js +3 -3
  79. package/dist/esm/kup-iframe.entry.js +1 -1
  80. package/dist/esm/kup-image-list.entry.js +6 -6
  81. package/dist/esm/kup-lazy.entry.js +1 -1
  82. package/dist/esm/kup-magic-box.entry.js +2 -2
  83. package/dist/esm/{kup-manager-3594cde8.js → kup-manager-d1da769e.js} +679 -522
  84. package/dist/esm/kup-nav-bar.entry.js +1 -1
  85. package/dist/esm/kup-numeric-picker.entry.js +2 -2
  86. package/dist/esm/kup-photo-frame.entry.js +1 -1
  87. package/dist/esm/kup-planner.entry.js +2 -2
  88. package/dist/esm/kup-probe.entry.js +1 -1
  89. package/dist/esm/kup-qlik.entry.js +1 -1
  90. package/dist/esm/kup-snackbar.entry.js +3 -3
  91. package/dist/ketchup/ketchup.esm.js +1 -1
  92. package/dist/ketchup/{p-31abf4b6.entry.js → p-063d4c27.entry.js} +1 -1
  93. package/dist/ketchup/{p-9fc6a9a8.entry.js → p-0bcda0e2.entry.js} +1 -1
  94. package/dist/ketchup/{p-473d2bea.entry.js → p-0d7d59c7.entry.js} +1 -1
  95. package/dist/ketchup/{p-b718af72.entry.js → p-163b18b9.entry.js} +1 -1
  96. package/dist/ketchup/{p-37ada0f0.entry.js → p-1ad628fb.entry.js} +1 -1
  97. package/dist/ketchup/{p-5205286a.entry.js → p-33aff1ca.entry.js} +1 -1
  98. package/dist/ketchup/p-3432ebaf.entry.js +9 -0
  99. package/dist/ketchup/{p-80815edf.entry.js → p-35b29b22.entry.js} +1 -1
  100. package/dist/ketchup/{p-acaa171f.js → p-36dac88e.js} +3 -3
  101. package/dist/ketchup/{p-22e72f06.entry.js → p-37067ee6.entry.js} +1 -1
  102. package/dist/ketchup/p-39a55c47.js +1 -0
  103. package/dist/ketchup/{p-8b248655.js → p-3cf64473.js} +1 -1
  104. package/dist/ketchup/p-410c102a.js +1 -0
  105. package/dist/ketchup/{p-d76be079.entry.js → p-43b67de4.entry.js} +1 -1
  106. package/dist/ketchup/{p-ef0b4f19.entry.js → p-489d55ff.entry.js} +1 -1
  107. package/dist/ketchup/{p-2d32e3cd.js → p-5f3680f2.js} +1 -1
  108. package/dist/ketchup/{p-cf322853.entry.js → p-651d89c8.entry.js} +1 -1
  109. package/dist/ketchup/{p-4c56e199.entry.js → p-73c8d651.entry.js} +1 -1
  110. package/dist/ketchup/{p-d1164680.entry.js → p-83435e6c.entry.js} +1 -1
  111. package/dist/ketchup/{p-7f4f5f0f.entry.js → p-89743989.entry.js} +1 -1
  112. package/dist/ketchup/{p-6762d447.js → p-8b46e7ce.js} +1 -1
  113. package/dist/ketchup/p-a84f1d24.entry.js +1 -0
  114. package/dist/ketchup/{p-ed7e118e.entry.js → p-b2fd2dbf.entry.js} +1 -1
  115. package/dist/ketchup/{p-ce5b6ce7.entry.js → p-c42b80c1.entry.js} +1 -1
  116. package/dist/ketchup/p-d1b050d0.entry.js +27 -0
  117. package/dist/ketchup/{p-d4eb9a76.entry.js → p-d6ea709e.entry.js} +1 -1
  118. package/dist/ketchup/{p-7be5ef32.entry.js → p-e1f1e661.entry.js} +1 -1
  119. package/dist/ketchup/p-eda7f130.js +1 -0
  120. package/dist/ketchup/{p-afff7a6e.entry.js → p-f876125d.entry.js} +1 -1
  121. package/dist/types/components/kup-data-table/kup-data-table-state.d.ts +1 -1
  122. package/dist/types/managers/kup-dates/kup-dates-declarations.d.ts +19 -9
  123. package/dist/types/managers/kup-dates/kup-dates.d.ts +94 -1
  124. package/dist/types/managers/kup-math/kup-math.d.ts +68 -7
  125. package/dist/types/utils/utils.d.ts +13 -102
  126. package/package.json +1 -1
  127. package/dist/ketchup/p-017418e7.entry.js +0 -27
  128. package/dist/ketchup/p-38f16697.entry.js +0 -9
  129. package/dist/ketchup/p-4638fbff.js +0 -1
  130. package/dist/ketchup/p-61319cfa.js +0 -1
  131. package/dist/ketchup/p-6c726886.entry.js +0 -1
  132. package/dist/ketchup/p-bf4a881b.js +0 -1
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1f177abc.js');
6
- const kupManager = require('./kup-manager-b994cf71.js');
6
+ const kupManager = require('./kup-manager-85b2a756.js');
7
7
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
8
8
 
9
9
  const navbarClass = 'nav-bar';
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1f177abc.js');
6
- const kupManager = require('./kup-manager-b994cf71.js');
6
+ const kupManager = require('./kup-manager-85b2a756.js');
7
7
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
8
- const fTextField = require('./f-text-field-503f2bb0.js');
8
+ const fTextField = require('./f-text-field-579c0fc0.js');
9
9
  const fTextFieldMdc = require('./f-text-field-mdc-0e22f3e3.js');
10
10
  require('./tslib.es6-386654de.js');
11
11
  require('./component-85c2bd4d.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1f177abc.js');
6
- const kupManager = require('./kup-manager-b994cf71.js');
6
+ const kupManager = require('./kup-manager-85b2a756.js');
7
7
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
8
8
 
9
9
  /**
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1f177abc.js');
6
- const kupManager$1 = require('./kup-manager-b994cf71.js');
6
+ const kupManager$1 = require('./kup-manager-85b2a756.js');
7
7
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
8
- const fTextField = require('./f-text-field-503f2bb0.js');
8
+ const fTextField = require('./f-text-field-579c0fc0.js');
9
9
  const fTextFieldMdc = require('./f-text-field-mdc-0e22f3e3.js');
10
10
  require('./tslib.es6-386654de.js');
11
11
  require('./component-85c2bd4d.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1f177abc.js');
6
- const kupManager = require('./kup-manager-b994cf71.js');
6
+ const kupManager = require('./kup-manager-85b2a756.js');
7
7
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
8
8
 
9
9
  const KupProbe = class {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1f177abc.js');
6
- const kupManager = require('./kup-manager-b994cf71.js');
6
+ const kupManager = require('./kup-manager-85b2a756.js');
7
7
 
8
8
  const kupQlikCss = ".kup-qlik-container-fluid{width:100%}.kup-qlik-container{width:100%}@media (min-width: 576px){.kup-qlik-container{width:576px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 768px){.kup-qlik-container{width:768px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 992px){.kup-qlik-container{width:992px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}@media (min-width: 1200px){.kup-qlik-container{width:1200px}.kup-qlik-row>.qvobject{flex:0 0 auto;min-width:100px;margin:0px auto 5px auto}}.kup-qlik-row{display:flex;display:ms-flexbox;flex-wrap:wrap;-ms-flex-wrap:wrap;margin-bottom:5px}.kup-qlik-row .size-M{height:var(--lyo_obj-height)}.kup-qlik-row .size-S{height:calc(var(--lyo_obj-height) / 2)}.kup-qlik-row .size-XS{height:calc(var(--lyo_obj-height) / 3)}.kup-qlik-row .size-L{height:calc(var(--lyo_obj-height) * 2)}.kup-qlik-row .size-XL{height:calc(var(--lyo_obj-height) * 3)}.kup-qlik-row .bordered{border:1px solid var(--kup-border-color, #969696)}.kup-qlik-row .width-1{width:8.3333%}.kup-qlik-row .width-2{width:16.6666%}.kup-qlik-row .width-3{width:25%}.kup-qlik-row .width-4{width:33.3333%}.kup-qlik-row .width-5{width:41.6666%}.kup-qlik-row .width-6{width:50%}.kup-qlik-row .width-7{width:58.3333%}.kup-qlik-row .width-8{width:66.6666%}.kup-qlik-row .width-9{width:75%}.kup-qlik-row .width-10{width:83.3333%}.kup-qlik-row .width-11{width:91.6666%}.kup-qlik-row .width-12{width:100%}";
9
9
 
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1f177abc.js');
6
- const kupManager = require('./kup-manager-b994cf71.js');
6
+ const kupManager = require('./kup-manager-85b2a756.js');
7
7
  const GenericVariables = require('./GenericVariables-a9ed17ee.js');
8
- const fButton = require('./f-button-c0ede055.js');
8
+ const fButton = require('./f-button-9524bbf7.js');
9
9
  require('./f-button-declarations-b611587f.js');
10
- require('./f-image-22174590.js');
10
+ require('./f-image-47d74999.js');
11
11
 
12
12
  const snackbarClass = 'snackbar';
13
13
  /**
@@ -952,50 +952,6 @@ const mockedRows = [
952
952
  },
953
953
  },
954
954
  },
955
- {
956
- cells: {
957
- FLD1: {
958
- obj: {
959
- t: 'CN',
960
- p: 'COL',
961
- k: 'CASFRA',
962
- },
963
- value: 'CASFRA',
964
- },
965
- FLD2: {
966
- obj: {
967
- t: 'NR',
968
- p: '',
969
- k: '10',
970
- },
971
- value: '10',
972
- },
973
- FLD3: {
974
- obj: {
975
- t: 'NR',
976
- p: '',
977
- k: '100000.60',
978
- },
979
- value: '100,000.60',
980
- },
981
- FLD4: {
982
- obj: {
983
- t: 'D8',
984
- p: '*YYMD',
985
- k: '20181101',
986
- },
987
- value: '2018-11-01',
988
- },
989
- FLD5: {
990
- obj: {
991
- t: 'NR',
992
- p: 'P',
993
- k: '0',
994
- },
995
- value: '0.00',
996
- },
997
- },
998
- },
999
955
  {
1000
956
  cells: {
1001
957
  FLD1: {
@@ -1,9 +1,9 @@
1
1
  import { h } from '@stencil/core';
2
2
  import { FButton } from '../../../f-components/f-button/f-button';
3
3
  import { FButtonStyling, } from '../../../f-components/f-button/f-button-declarations';
4
- import { KupDatesFormats } from '../../../managers/kup-dates/kup-dates-declarations';
5
- import { DateTimeFormatOptionsMonth, getMonthsAsStringByLocale, } from '../../../utils/utils';
4
+ import { KupDateTimeFormatOptionsMonth, KupDatesFormats, } from '../../../managers/kup-dates/kup-dates-declarations';
6
5
  import { SourceEvent } from '../../kup-date-picker/kup-date-picker-declarations';
6
+ import { fillString } from '../../../utils/utils';
7
7
  const dom = document.documentElement;
8
8
  export function prepareCalendar(component) {
9
9
  const el = component.rootElement;
@@ -29,7 +29,7 @@ export function prepareCalendar(component) {
29
29
  }
30
30
  if (!el.kupData.value)
31
31
  setValue(component, new Date());
32
- const months = getMonthsAsStringByLocale();
32
+ const months = dom.ketchup.dates.getMonthsAsString();
33
33
  const curYear = getYear(component);
34
34
  const curMonth = getMonth(component);
35
35
  const yearRange = getInitEndYear(curYear);
@@ -150,7 +150,7 @@ function createCalendar(component) {
150
150
  }
151
151
  }
152
152
  function createDaysCalendar(component) {
153
- const days = getDaysOfWeekAsStringByLocale(getFirstDayIndex(component));
153
+ const days = dom.ketchup.dates.getDaysOfWeekAsString(getFirstDayIndex(component));
154
154
  const selectedDate = getValue(component);
155
155
  const selectedDay = getDay(component);
156
156
  const selectedMonth = getMonth(component);
@@ -212,7 +212,7 @@ function createDaysCalendar(component) {
212
212
  return (h("table", { class: "calendar" }, h("thead", null, thead), h("tbody", null, tbody)));
213
213
  }
214
214
  function createMonthsCalendar(component) {
215
- const months = getMonthsAsStringByLocale(DateTimeFormatOptionsMonth.SHORT);
215
+ const months = dom.ketchup.dates.getMonthsAsString(KupDateTimeFormatOptionsMonth.SHORT);
216
216
  let selectedDay = getDay(component);
217
217
  const selectedMonth = getMonth(component);
218
218
  const selectedYear = getYear(component);
@@ -283,62 +283,6 @@ function createYearsCalendar(component) {
283
283
  }
284
284
  return (h("table", { class: "calendar" }, h("tbody", null, tbody)));
285
285
  }
286
- function getDaysOfWeekAsStringByLocale(firstDayIndex) {
287
- const thisWeekDays = thisWeek(firstDayIndex);
288
- const monday = thisWeekDays.startDate;
289
- const days = [];
290
- for (var i = 0; i < 7; i++) {
291
- var date = new Date(monday.toISOString());
292
- date.setDate(date.getDate() + i);
293
- days[i] = getDayAsStringByLocale(date);
294
- }
295
- return days;
296
- }
297
- function thisWeek(firstDayIndex) {
298
- const firstDay = firstDayThisWeek(firstDayIndex);
299
- return {
300
- startDate: firstDay,
301
- endDate: offsetDate(firstDay, 6),
302
- };
303
- }
304
- function firstDayThisWeek(firstDayIndex) {
305
- const d = new Date();
306
- const day = d.getDay();
307
- // dayIndex0
308
- d.setDate(d.getDate() - day);
309
- // dayIndexX
310
- d.setDate(d.getDate() + firstDayIndex);
311
- return d;
312
- }
313
- const offsetDate = (base, count) => {
314
- const date = new Date(base);
315
- date.setDate(base.getDate() + count);
316
- return date;
317
- };
318
- function getDayAsStringByLocale(date) {
319
- if (date == null) {
320
- return '';
321
- }
322
- const options = {
323
- weekday: 'narrow',
324
- /** weekday: 'narrow' 'short' 'long' */
325
- };
326
- const dateTimeFormat = new Intl.DateTimeFormat(dom.ketchup.dates.getLocale(), options);
327
- return dateTimeFormat.format(date);
328
- }
329
- function fillString(stringIn, stringForFill, finalLen, addBefore) {
330
- const initSize = stringIn.length;
331
- let stringOut = '';
332
- for (let i = initSize; i < finalLen; i += stringForFill.length) {
333
- stringOut += stringForFill;
334
- }
335
- if (addBefore) {
336
- return stringOut + stringIn;
337
- }
338
- else {
339
- return stringIn + stringOut;
340
- }
341
- }
342
286
  function prevPage(component) {
343
287
  let mm = getMonth(component);
344
288
  let yy = getYear(component);
@@ -1,8 +1,8 @@
1
1
  import { h } from '@stencil/core';
2
2
  import { FButton } from '../../../f-components/f-button/f-button';
3
3
  import { FButtonStyling, } from '../../../f-components/f-button/f-button-declarations';
4
- import { KupDatesFormats } from '../../../managers/kup-dates/kup-dates-declarations';
5
4
  import { KupCardBuiltInClockElements, KupCardCSSClasses, } from '../kup-card-declarations';
5
+ import { KupDatesFormats } from '../../../managers/kup-dates/kup-dates-declarations';
6
6
  const dom = document.documentElement;
7
7
  export function prepareClock(component) {
8
8
  const el = component.rootElement;
@@ -1,5 +1,4 @@
1
1
  import { SortMode, TotalMode, } from './kup-data-table-declarations';
2
- import { isNumber, stringToNumber } from '../../utils/utils';
3
2
  import { getCellValueForDisplay, getColumnByName, compareCell, } from '../../utils/cell-utils';
4
3
  import { FiltersRows } from '../../utils/filters/filters-rows';
5
4
  import { KupDatesFormats } from '../../managers/kup-dates/kup-dates-declarations';
@@ -253,7 +252,7 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
253
252
  case TotalMode.DISTINCT:
254
253
  let cellValue;
255
254
  if (_isNumber) {
256
- cellValue = dom.ketchup.math.numberify(stringToNumber(cell.value));
255
+ cellValue = dom.ketchup.math.numberify(dom.ketchup.math.numberifySafe(cell.value));
257
256
  }
258
257
  else {
259
258
  cellValue = cell.value;
@@ -305,7 +304,7 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
305
304
  case TotalMode.SUM:
306
305
  case TotalMode.AVERAGE:
307
306
  if (_isNumber) {
308
- const cellValue = dom.ketchup.math.numberify(stringToNumber(cell.value));
307
+ const cellValue = dom.ketchup.math.numberify(dom.ketchup.math.numberifySafe(cell.value));
309
308
  groupRow.group.totals[key] =
310
309
  cellValue + currentTotalValue;
311
310
  // updating parents
@@ -322,7 +321,7 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
322
321
  case TotalMode.MIN:
323
322
  if (_isNumber) {
324
323
  const currentTotalValue = groupRow.group.totals[key];
325
- const cellValue = dom.ketchup.math.numberify(stringToNumber(cell.value));
324
+ const cellValue = dom.ketchup.math.numberify(dom.ketchup.math.numberifySafe(cell.value));
326
325
  if (currentTotalValue) {
327
326
  groupRow.group.totals[key] = Math.min(currentTotalValue, cellValue);
328
327
  }
@@ -385,7 +384,7 @@ function updateGroupTotal(groupRow, totals, addedRow, distinctObj) {
385
384
  case TotalMode.MAX:
386
385
  if (_isNumber) {
387
386
  const currentTotalValue = groupRow.group.totals[key];
388
- const cellValue = dom.ketchup.math.numberify(stringToNumber(cell.value));
387
+ const cellValue = dom.ketchup.math.numberify(dom.ketchup.math.numberifySafe(cell.value));
389
388
  if (currentTotalValue) {
390
389
  groupRow.group.totals[key] = Math.max(currentTotalValue, cellValue);
391
390
  }
@@ -586,7 +585,7 @@ export function calcTotals(rows = [], totals = {}) {
586
585
  if (totals[key] === TotalMode.DISTINCT) {
587
586
  let cellValue;
588
587
  if (dom.ketchup.objects.isNumber(cell.obj)) {
589
- cellValue = dom.ketchup.math.numberify(stringToNumber(cell.value));
588
+ cellValue = dom.ketchup.math.numberify(dom.ketchup.math.numberifySafe(cell.value));
590
589
  }
591
590
  else {
592
591
  cellValue = cell.value;
@@ -603,7 +602,7 @@ export function calcTotals(rows = [], totals = {}) {
603
602
  }
604
603
  }
605
604
  else if (dom.ketchup.objects.isNumber(cell.obj)) {
606
- const cellValue = dom.ketchup.math.numberify(stringToNumber(cell.value));
605
+ const cellValue = dom.ketchup.math.numberify(dom.ketchup.math.numberifySafe(cell.value));
607
606
  let currentFooterValue = footerRow[key];
608
607
  switch (true) {
609
608
  // TODO DRY the MIN and MAX functions
@@ -706,7 +705,7 @@ export function calcTotals(rows = [], totals = {}) {
706
705
  if (dateColumns.indexOf(key) != -1) {
707
706
  footerRow[key] = dom.ketchup.dates.format(footerRow[key]);
708
707
  }
709
- else if (isNumber(footerRow[key])) {
708
+ else if (dom.ketchup.math.isNumber(footerRow[key])) {
710
709
  footerRow[key] = +footerRow[key].toFixed(2);
711
710
  }
712
711
  }
@@ -5,8 +5,8 @@ export class KupDataTableState {
5
5
  this.expandGroups = false;
6
6
  this.groupLabelDisplay = GroupLabelDisplayMode.BOTH;
7
7
  this.density = 'small';
8
- this.enableExtraColumns = true;
9
8
  this.enableSortableColumns = false;
9
+ this.enableExtraColumns = true;
10
10
  this.forceOneLine = false;
11
11
  this.globalFilter = false;
12
12
  this.globalFilterValue = '';
@@ -19,7 +19,7 @@ import { forceUpdate, h, Host, } from '@stencil/core';
19
19
  import { FixedCellsClasses, FixedCellsCSSVarsBase, GroupLabelDisplayMode, LoadMoreMode, PaginatorPos, ShowGrid, SortMode, TotalMode, TotalLabel, KupDataTableProps, fieldColumn, iconColumn, keyColumn, SelectionMode, } from './kup-data-table-declarations';
20
20
  import { getColumnByName } from '../../utils/cell-utils';
21
21
  import { calcTotals, normalizeRows, filterRows, groupRows, paginateRows, sortRows, } from './kup-data-table-helper';
22
- import { numberToFormattedStringNumber, identify, getProps, setProps, } from '../../utils/utils';
22
+ import { identify, getProps, setProps } from '../../utils/utils';
23
23
  import { ItemsDisplayMode, } from '../kup-list/kup-list-declarations';
24
24
  import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
25
25
  import { KupDataTableState } from './kup-data-table-state';
@@ -38,7 +38,6 @@ import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declaration
38
38
  import { KupLanguageDensity, KupLanguageFontsize, KupLanguageGeneric, KupLanguageGrid, KupLanguageRow, KupLanguageSearch, KupLanguageTotals, } from '../../managers/kup-language/kup-language-declarations';
39
39
  import { KupThemeColorValues, KupThemeIconValues, } from '../../managers/kup-theme/kup-theme-declarations';
40
40
  import { componentWrapperId } from '../../variables/GenericVariables';
41
- import { KupDatesFormats } from '../../managers/kup-dates/kup-dates-declarations';
42
41
  import { kupDragActiveAttr, KupDragEffect, kupDraggableCellAttr, kupDraggableColumnAttr, KupDropEventTypes, KupPointerEventTypes, } from '../../managers/kup-interact/kup-interact-declarations';
43
42
  import { FCellPadding, } from '../../f-components/f-cell/f-cell-declarations';
44
43
  import { FCell } from '../../f-components/f-cell/f-cell';
@@ -47,6 +46,7 @@ import { pageChange, rowsPerPageChange, } from '../../f-components/f-paginator/f
47
46
  import { KupDataNewColumnTypes, } from '../../managers/kup-data/kup-data-declarations';
48
47
  import { FButton } from '../../f-components/f-button/f-button';
49
48
  import { FButtonStyling } from '../../f-components/f-button/f-button-declarations';
49
+ import { KupDatesFormats } from '../../managers/kup-dates/kup-dates-declarations';
50
50
  export class KupDataTable {
51
51
  constructor() {
52
52
  _KupDataTable_instances.add(this);
@@ -1059,7 +1059,7 @@ export class KupDataTable {
1059
1059
  }
1060
1060
  }
1061
1061
  else {
1062
- value = numberToFormattedStringNumber(footerValue, column.decimals, column.obj ? column.obj.p : '');
1062
+ value = __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").math.numberToFormattedString(footerValue, column.decimals, column.obj ? column.obj.p : '');
1063
1063
  }
1064
1064
  return (h("td", { "data-column": column.name, class: fixedCellStyle && fixedCellStyle.fixedCellClasses
1065
1065
  ? fixedCellStyle.fixedCellClasses
@@ -5096,7 +5096,8 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
5096
5096
  }
5097
5097
  }
5098
5098
  else {
5099
- value = numberToFormattedStringNumber(totalValue, column.decimals, column.obj ? column.obj.p : '');
5099
+ value =
5100
+ __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").math.numberToFormattedString(totalValue, column.decimals, column.obj ? column.obj.p : '');
5100
5101
  }
5101
5102
  }
5102
5103
  cells.push(h("td", { class: totalClass }, value));
@@ -1,7 +1,7 @@
1
1
  import { forceUpdate, h, Host, } from '@stencil/core';
2
2
  import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
3
3
  import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
4
- import { getProps, setProps, unformattedStringToFormattedStringNumber, } from '../../utils/utils';
4
+ import { getProps, setProps } from '../../utils/utils';
5
5
  import { KupGaugeProps } from './kup-gauge-declarations';
6
6
  import { arc } from 'd3-shape';
7
7
  import { KupThemeColorValues } from '../../managers/kup-theme/kup-theme-declarations';
@@ -275,7 +275,7 @@ export class KupGauge {
275
275
  let retValue = '';
276
276
  if (thresholdPercentage > 0 && thresholdPercentage < 1) {
277
277
  if (this.showLabels && !this.onlyValue) {
278
- retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
278
+ retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, this.kupManager.math.numberStringToFormattedString(String(threshold), -1, '')));
279
279
  }
280
280
  }
281
281
  else {
@@ -288,7 +288,7 @@ export class KupGauge {
288
288
  topX = this.size - this.arcThickness;
289
289
  topY = halvedSize + this.labelDistance;
290
290
  }
291
- retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, unformattedStringToFormattedStringNumber(String(threshold), -1, '')));
291
+ retValue = (h("text", { class: "gauge__label-text", "text-anchor": textPosition, x: topX, y: topY }, this.kupManager.math.numberStringToFormattedString(String(threshold), -1, '')));
292
292
  }
293
293
  }
294
294
  return retValue;
@@ -297,7 +297,7 @@ export class KupGauge {
297
297
  const style = { fontSize: this.calculateValueFontSize() };
298
298
  let valueText = undefined;
299
299
  if (this.showValue) {
300
- valueText = (h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, unformattedStringToFormattedStringNumber(String(tempValue), -1, '') +
300
+ valueText = (h("text", { class: "gauge__label-text value", "text-anchor": "middle", x: halvedSize, y: valueLabelYPosition, style: style }, this.kupManager.math.numberStringToFormattedString(String(tempValue), -1, '') +
301
301
  ' ' +
302
302
  this.measurementUnit));
303
303
  }
@@ -12,9 +12,8 @@ import { FTextField } from '../../f-components/f-text-field/f-text-field';
12
12
  import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
13
13
  import { KupTextFieldProps, } from './kup-text-field-declarations';
14
14
  import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
15
- import { getProps, setProps, unformattedStringToFormattedStringNumber, } from '../../utils/utils';
15
+ import { getProps, setProps } from '../../utils/utils';
16
16
  import { componentWrapperId } from '../../variables/GenericVariables';
17
- import { formattedStringToUnformattedStringNumber } from '../../utils/utils';
18
17
  export class KupTextField {
19
18
  constructor() {
20
19
  _KupTextField_instances.add(this);
@@ -139,7 +138,7 @@ export class KupTextField {
139
138
  */
140
139
  async getValue() {
141
140
  if (this.inputType == 'number') {
142
- return formattedStringToUnformattedStringNumber(this.value, '');
141
+ return this.kupManager.math.formattedStringToNumberString(this.value, '');
143
142
  }
144
143
  return this.value;
145
144
  }
@@ -1178,11 +1177,11 @@ _KupTextField_instances = new WeakSet(), _KupTextField_getValueForOutput = funct
1178
1177
  if (this.value == null || this.value.trim() == '') {
1179
1178
  return '';
1180
1179
  }
1181
- let v1 = unformattedStringToFormattedStringNumber(this.value, this.decimals, '');
1180
+ let v1 = this.kupManager.math.numberStringToFormattedString(this.value, this.decimals, '');
1182
1181
  return v1;
1183
1182
  }, _KupTextField_setValueFromEventTaget = function _KupTextField_setValueFromEventTaget(target) {
1184
1183
  if (this.inputType == 'number') {
1185
- this.value = formattedStringToUnformattedStringNumber(target.value, '');
1184
+ this.value = this.kupManager.math.formattedStringToNumberString(target.value, '');
1186
1185
  }
1187
1186
  else {
1188
1187
  this.value = target.value;
@@ -1,14 +1,14 @@
1
1
  import { forceUpdate, h, Host, } from '@stencil/core';
2
2
  import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
3
- import { isValidFormattedStringTime, formattedStringToCustomUnformattedStringTime, unformattedStringToFormattedStringTime, formatTime, getProps, setProps, } from '../../utils/utils';
3
+ import { getProps, setProps } from '../../utils/utils';
4
4
  import { KupTimePickerProps, } from './kup-time-picker-declarations';
5
5
  import { KupDebugCategory } from '../../managers/kup-debug/kup-debug-declarations';
6
6
  import { componentWrapperId } from '../../variables/GenericVariables';
7
- import { KupDatesFormats } from '../../managers/kup-dates/kup-dates-declarations';
8
7
  import { FTextField } from '../../f-components/f-text-field/f-text-field';
9
8
  import { FTextFieldMDC } from '../../f-components/f-text-field/f-text-field-mdc';
10
9
  import { KupCardFamily, } from '../kup-card/kup-card-declarations';
11
10
  import { KupDynamicPositionPlacement } from '../../managers/kup-dynamic-position/kup-dynamic-position-declarations';
11
+ import { KupDatesFormats } from '../../managers/kup-dates/kup-dates-declarations';
12
12
  export class KupTimePicker {
13
13
  constructor() {
14
14
  /*-------------------------------------------------*/
@@ -193,13 +193,13 @@ export class KupTimePicker {
193
193
  /* P r i v a t e M e t h o d s */
194
194
  /*-------------------------------------------------*/
195
195
  getFormattedValue(value) {
196
- return formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
196
+ return this.kupManager.dates.formattedStringToCustomDateTime(value, this.manageSeconds
197
197
  ? KupDatesFormats.ISO_TIME
198
198
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
199
199
  }
200
200
  refreshPickerValue(eventDetailValue, eventToRaise) {
201
201
  let newValue = null;
202
- if (isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
202
+ if (this.kupManager.dates.isValidFormattedStringTime(eventDetailValue, this.manageSeconds)) {
203
203
  this.value = eventDetailValue;
204
204
  newValue = this.value;
205
205
  }
@@ -349,8 +349,8 @@ export class KupTimePicker {
349
349
  date.getMinutes() == selectedTime.getMinutes()) {
350
350
  selected = true;
351
351
  }
352
- const value = formatTime(date, this.manageSeconds);
353
- const id = formattedStringToCustomUnformattedStringTime(value, this.manageSeconds
352
+ const value = this.kupManager.dates.formatTime(date, this.manageSeconds);
353
+ const id = this.kupManager.dates.formattedStringToCustomDateTime(value, this.manageSeconds
354
354
  ? KupDatesFormats.ISO_TIME
355
355
  : KupDatesFormats.ISO_TIME_WITHOUT_SECONDS, this.manageSeconds);
356
356
  let item = {
@@ -367,7 +367,7 @@ export class KupTimePicker {
367
367
  if (this.value == null || this.value.trim() == '') {
368
368
  return '';
369
369
  }
370
- let v1 = unformattedStringToFormattedStringTime(this.value, this.manageSeconds);
370
+ let v1 = this.kupManager.dates.timeStringToFormattedString(this.value, this.manageSeconds);
371
371
  return v1;
372
372
  }
373
373
  /*-------------------------------------------------*/
@@ -14,7 +14,7 @@ import { kupManagerInstance, } from '../../managers/kup-manager/kup-manager';
14
14
  import { calcTotals, normalizeRows, } from '../kup-data-table/kup-data-table-helper';
15
15
  import { KupTreeState } from './kup-tree-state';
16
16
  import { getColumnByName } from '../../utils/cell-utils';
17
- import { getProps, numberToFormattedStringNumber, setProps, } from '../../utils/utils';
17
+ import { getProps, setProps } from '../../utils/utils';
18
18
  import { KupColumnMenu } from '../../utils/kup-column-menu/kup-column-menu';
19
19
  import { FiltersColumnMenu } from '../../utils/filters/filters-column-menu';
20
20
  import { KupGlobalFilterMode, } from '../../utils/filters/filters-declarations';
@@ -1142,7 +1142,7 @@ export class KupTree {
1142
1142
  value = this.footer[column.name];
1143
1143
  }
1144
1144
  else {
1145
- value = numberToFormattedStringNumber(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
1145
+ value = __classPrivateFieldGet(this, _KupTree_kupManager, "f").math.numberToFormattedString(this.footer[column.name], column.decimals, column.obj ? column.obj.p : '');
1146
1146
  }
1147
1147
  return (h("td", { "data-column": column.name }, totalMenu, h("span", { class: "totals-value", title: translation[menuLabel] }, value)));
1148
1148
  });
@@ -4,7 +4,6 @@ import { h } from '@stencil/core';
4
4
  import { getCellValueForDisplay } from '../../utils/cell-utils';
5
5
  import { FCheckbox } from '../f-checkbox/f-checkbox';
6
6
  import { FTextField } from '../f-text-field/f-text-field';
7
- import { formattedStringToUnformattedStringNumber, stringToNumber, } from '../../utils/utils';
8
7
  import { FImage } from '../f-image/f-image';
9
8
  import { FChip } from '../f-chip/f-chip';
10
9
  import { KupThemeColorValues } from '../../managers/kup-theme/kup-theme-declarations';
@@ -232,7 +231,9 @@ function setEditableCell(cellType, classObj, cell, column, props) {
232
231
  case FCellTypes.LINK:
233
232
  case FCellTypes.STRING:
234
233
  return (h(FTextField, Object.assign({ inputType: cellType === FCellTypes.NUMBER ? 'number' : null, fullWidth: isFullWidth(props) ? true : false }, cell.data, { icon: cell.icon ? cell.icon : column.icon ? column.icon : null, value: cellType === FCellTypes.NUMBER
235
- ? stringToNumber(cell.value).toString()
234
+ ? dom.ketchup.math
235
+ .numberifySafe(cell.value)
236
+ .toString()
236
237
  : cell.value, onChange: (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), onInput: (e) => cellEvent(e, props, cellType, FCellEvents.INPUT), onIconClick: (e) => cellEvent(e, props, cellType, FCellEvents.ICON_CLICK) })));
237
238
  }
238
239
  }
@@ -270,7 +271,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
270
271
  return (h("a", { href: content, target: "_blank" }, cell.value));
271
272
  case FCellTypes.NUMBER:
272
273
  if (content && content != '') {
273
- const cellValueNumber = stringToNumber(cell.value);
274
+ const cellValueNumber = dom.ketchup.math.numberifySafe(cell.value);
274
275
  const cellValue = getCellValueForDisplay(column, cell);
275
276
  if (cellValueNumber < 0) {
276
277
  classObj[FCellClasses.TEXT_DANGER] = true;
@@ -329,7 +330,7 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
329
330
  case FCellTypes.COLOR_PICKER:
330
331
  return (h("kup-color-picker", Object.assign({ key: column.name + props.row.id }, subcomponentProps, { class: isFullWidth(props) ? 'kup-full-width' : '', disabled: true })));
331
332
  case FCellTypes.GAUGE:
332
- return (h("kup-gauge", Object.assign({ key: column.name + props.row.id, value: stringToNumber(cell.value), "width-component": "280px" }, subcomponentProps)));
333
+ return (h("kup-gauge", Object.assign({ key: column.name + props.row.id, value: dom.ketchup.math.numberifySafe(cell.value), "width-component": "280px" }, subcomponentProps)));
333
334
  case FCellTypes.KNOB:
334
335
  case FCellTypes.PROGRESS_BAR:
335
336
  return (h("kup-progress-bar", Object.assign({ key: column.name + props.row.id }, subcomponentProps)));
@@ -414,7 +415,7 @@ function getValueFromEventTaget(e, cellType) {
414
415
  ? e.target.value
415
416
  : e.detail.value;
416
417
  if (cellType === FCellTypes.NUMBER && isInputEvent) {
417
- value = formattedStringToUnformattedStringNumber(value, '');
418
+ value = dom.ketchup.math.formattedStringToNumberString(value, '');
418
419
  }
419
420
  return value;
420
421
  }
@@ -1,6 +1,6 @@
1
- import { isNumber } from '../../utils/utils';
1
+ const dom = document.documentElement;
2
2
  export function pageChange(pageNumber, max, perPage) {
3
- if (isNumber(pageNumber)) {
3
+ if (dom.ketchup.math.isNumber(pageNumber)) {
4
4
  const numberOfPages = Math.ceil(max / perPage);
5
5
  let tmpNewPage = pageNumber;
6
6
  if (tmpNewPage > numberOfPages) {
@@ -14,7 +14,7 @@ export function pageChange(pageNumber, max, perPage) {
14
14
  return null;
15
15
  }
16
16
  export function rowsPerPageChange(rowsNumber, max) {
17
- if (isNumber(rowsNumber)) {
17
+ if (dom.ketchup.math.isNumber(rowsNumber)) {
18
18
  let tmpRowsPerPage = rowsNumber;
19
19
  if (tmpRowsPerPage > max) {
20
20
  tmpRowsPerPage = max;
@@ -219,9 +219,11 @@ export class KupData {
219
219
  }
220
220
  else {
221
221
  n = dom.ketchup.math.numberify(cell.value);
222
+ const nMax = dom.ketchup.math.numberify(max);
223
+ const nMin = dom.ketchup.math.numberify(min);
222
224
  if (n === max ||
223
225
  n === min ||
224
- (n < max && n > min)) {
226
+ (n < nMax && n > nMin)) {
225
227
  result.cells.push(cell);
226
228
  result.rows.push(row);
227
229
  }
@@ -7,16 +7,6 @@ export var KupDatesNormalize;
7
7
  KupDatesNormalize["TIME"] = "time";
8
8
  KupDatesNormalize["TIMESTAMP"] = "timestamp";
9
9
  })(KupDatesNormalize || (KupDatesNormalize = {}));
10
- /**
11
- * Common use formats
12
- */
13
- export var KupDatesFormats;
14
- (function (KupDatesFormats) {
15
- KupDatesFormats["ISO_DATE"] = "YYYY-MM-DD";
16
- KupDatesFormats["ISO_DATE_TIME"] = "YYYY-MM-DD HH:mm:ss";
17
- KupDatesFormats["ISO_TIME"] = "HH:mm:ss";
18
- KupDatesFormats["ISO_TIME_WITHOUT_SECONDS"] = "HH:mm";
19
- })(KupDatesFormats || (KupDatesFormats = {}));
20
10
  /**
21
11
  * Supported locales.
22
12
  */
@@ -30,3 +20,24 @@ export var KupDatesLocales;
30
20
  KupDatesLocales["RUSSIAN"] = "ru";
31
21
  KupDatesLocales["SPANISH"] = "es";
32
22
  })(KupDatesLocales || (KupDatesLocales = {}));
23
+ /**
24
+ * Format Months
25
+ */
26
+ export var KupDateTimeFormatOptionsMonth;
27
+ (function (KupDateTimeFormatOptionsMonth) {
28
+ KupDateTimeFormatOptionsMonth["NUMERIC"] = "numeric";
29
+ KupDateTimeFormatOptionsMonth["DIGIT2"] = "2-digit";
30
+ KupDateTimeFormatOptionsMonth["LONG"] = "long";
31
+ KupDateTimeFormatOptionsMonth["SHORT"] = "short";
32
+ KupDateTimeFormatOptionsMonth["NARROW"] = "narrow";
33
+ })(KupDateTimeFormatOptionsMonth || (KupDateTimeFormatOptionsMonth = {}));
34
+ /**
35
+ * Common use formats
36
+ */
37
+ export var KupDatesFormats;
38
+ (function (KupDatesFormats) {
39
+ KupDatesFormats["ISO_DATE"] = "YYYY-MM-DD";
40
+ KupDatesFormats["ISO_DATE_TIME"] = "YYYY-MM-DD HH:mm:ss";
41
+ KupDatesFormats["ISO_TIME"] = "HH:mm:ss";
42
+ KupDatesFormats["ISO_TIME_WITHOUT_SECONDS"] = "HH:mm";
43
+ })(KupDatesFormats || (KupDatesFormats = {}));