@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
@@ -1,111 +1,15 @@
1
1
  import { GenericObject } from '../types/GenericTypes';
2
2
  import { KupBoxRow } from '../components/kup-box/kup-box-declarations';
3
3
  import { KupDataRow } from '../managers/kup-data/kup-data-declarations';
4
- export declare enum DateTimeFormatOptionsMonth {
5
- NUMERIC = "numeric",
6
- DIGIT2 = "2-digit",
7
- LONG = "long",
8
- SHORT = "short",
9
- NARROW = "narrow"
10
- }
11
4
  export declare function identify(array: Array<KupBoxRow | KupDataRow>): void;
12
- export declare function getCurrentDateFormatFromBrowserLocale(): string;
13
5
  /**
14
- * @param value number as string, formatted by actual browser locale
15
- * @param type - type of number for calculate suffix
16
- * @returns true if number string in input is a valid number
6
+ * Fills a string with another string, eventually before
7
+ * @param {string} stringIn initial string
8
+ * @param {string} stringForFill string used for fill
9
+ * @param {number} finalLen final string length
10
+ * @param {boolean} addBefore flag for fill on left
11
+ * @returns the input string filled with stringForFill
17
12
  */
18
- export declare function isValidFormattedStringNumber(value: string, type: string): boolean;
19
- export declare function isNumber(value: any): boolean;
20
- /**
21
- * @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
22
- * @returns number
23
- **/
24
- export declare function stringToNumber(input: string): number;
25
- /**
26
- * @param input number
27
- * @param decimals number of significant decimal digits for output
28
- * @returns number as string, formatted by actual browser locale
29
- **/
30
- export declare function numberToString(input: number, decimals: number): string;
31
- /**
32
- * @param type - type of number for calculate suffix
33
- * @returns suffix for number, by type
34
- **/
35
- export declare function getNumericValueSuffixByType(type: string): string;
36
- /**
37
- * @param input number
38
- * @param decimals number of significant decimal digits for output
39
- * @param type - type of number for calculate suffix
40
- * @returns number as string, formatted by actual browser locale, with suffix by type
41
- **/
42
- export declare function numberToFormattedStringNumber(input: number, decimals: number, type: string): string;
43
- /**
44
- * @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
45
- * @param decimals number of significant decimal digits for output
46
- * @param type - type of number for calculate suffix
47
- * @returns number as string, formatted by actual browser locale, with suffix by type
48
- **/
49
- export declare function unformattedStringToFormattedStringNumber(input: string, decimals: number, type: string): string;
50
- /**
51
- * @param input number as string, formatted by actual browser locale
52
- * @param type - type of number for calculate suffix
53
- * @returns number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
54
- **/
55
- export declare function formattedStringToUnformattedStringNumber(input: string, type: string): string;
56
- /**
57
- * @param input number as string, formatted by locale US, decimal separator . (like java decimal numbers), with group separator
58
- * @param type - type of number for calculate suffix
59
- * @returns number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
60
- **/
61
- export declare function unformattedStringNumberToNumber(input: string, type: string): string;
62
- export declare function _numberToString(input: number, decimals: number, locale: string, useGrouping: boolean): string;
63
- /**
64
- * @param time time as Date object
65
- * @param manageSeconds flag to set seconds managing
66
- * @return time as string, formatted
67
- **/
68
- export declare function formatTime(time: Date, manageSeconds: boolean): string;
69
- /**
70
- * @param value time string, formatted by actual browser locale
71
- * @returns true if time string in input is a valid time
72
- */
73
- export declare function isValidFormattedStringTime(value: string, manageSeconds: boolean): boolean;
74
- /**
75
- * @param value time as string, formatted by actual browser locale
76
- * @returns time as string, formatted ISO
77
- **/
78
- export declare function formattedStringToDefaultUnformattedStringTime(value: string): string;
79
- /**
80
- * @param value date/time as string, formatted by actual browser locale
81
- * @returns date/time as string, formatted ISO
82
- **/
83
- export declare function formattedStringToDefaultUnformattedStringTimestamp(value: string): string;
84
- /**
85
- * @param value time as string, formatted by actual browser locale
86
- * @param outputFormat time format to return
87
- * @param manageSeconds flag to set seconds managing
88
- * @returns time as string, formatted
89
- **/
90
- export declare function formattedStringToCustomUnformattedStringTime(value: string, outputFormat: string, manageSeconds: boolean): string;
91
- /**
92
- * @param value time as string, formatted ISO
93
- * @param manageSeconds flag to set seconds managing
94
- * @param valueTimeFormat time format (default ISO)
95
- * @param customedFormat time format from smeupObject
96
- * @returns time as string, formatted by actual browser locale
97
- **/
98
- export declare function unformattedStringToFormattedStringTime(value: string, manageSeconds: boolean, customedFormat?: string): string;
99
- /**
100
- * @param value date/time as string, formatted ISO
101
- * @param valueDateFormat date/time format (default ISO)
102
- * @returns date/time as string, formatted by actual browser locale
103
- **/
104
- export declare function unformattedStringToFormattedStringTimestamp(value: string): string;
105
- export declare function getMonthAsStringByLocale(month: number, format: DateTimeFormatOptionsMonth): string;
106
- export declare function getMonthsAsStringByLocale(format?: DateTimeFormatOptionsMonth): string[];
107
- export declare function getDayAsStringByLocale(date: Date): string;
108
- export declare function getDaysOfWeekAsStringByLocale(firstDayIndex?: number): string[];
109
13
  export declare function fillString(stringIn: string, stringForFill: string, finalLen: number, addBefore: boolean): string;
110
14
  /**
111
15
  * Used to retrieve component's props values.
@@ -122,3 +26,10 @@ export declare function getProps(comp: any, list: GenericObject, descriptions?:
122
26
  * @param {GenericObject} props - Prop to be set.
123
27
  */
124
28
  export declare function setProps(comp: any, list: GenericObject, props: GenericObject): void;
29
+ /**
30
+ * Creates a regular expression object, from a string un-escaped
31
+ * @param s string to use for create regular expression (not escaped)
32
+ * @param flags flags used for the regular expression
33
+ * @returns the regular expression object
34
+ */
35
+ export declare function getRegExpFromString(s: string, flags?: string): RegExp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "keywords": [
5
5
  "smeup",
6
6
  "KetchUP",