@sme.up/ketchup 8.0.0 → 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 (170) hide show
  1. package/dist/cjs/{f-button-49b2c37c.js → f-button-9524bbf7.js} +2 -2
  2. package/dist/cjs/{f-cell-9a6bc55c.js → f-cell-bcb75ade.js} +22 -13
  3. package/dist/cjs/{f-checkbox-593f72c3.js → f-checkbox-1148e791.js} +1 -1
  4. package/dist/cjs/{f-chip-dee84122.js → f-chip-2249b386.js} +3 -3
  5. package/dist/cjs/{f-image-27f965ff.js → f-image-47d74999.js} +2 -2
  6. package/dist/cjs/{f-paginator-utils-4a30189d.js → f-paginator-utils-b0a9ae5f.js} +64 -63
  7. package/dist/cjs/{f-text-field-04a663b4.js → f-text-field-579c0fc0.js} +83 -9
  8. package/dist/cjs/{index-74433248.js → index-1f177abc.js} +0 -3
  9. package/dist/cjs/ketchup.cjs.js +2 -2
  10. package/dist/cjs/kup-accordion.cjs.entry.js +3 -3
  11. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +798 -815
  12. package/dist/cjs/kup-box.cjs.entry.js +10 -10
  13. package/dist/cjs/kup-calendar.cjs.entry.js +5 -5
  14. package/dist/cjs/kup-cell.cjs.entry.js +7 -7
  15. package/dist/cjs/kup-dash-list.cjs.entry.js +3 -4
  16. package/dist/cjs/kup-dash_2.cjs.entry.js +2 -2
  17. package/dist/cjs/kup-dashboard.cjs.entry.js +6 -6
  18. package/dist/cjs/kup-drawer.cjs.entry.js +2 -2
  19. package/dist/cjs/kup-echart.cjs.entry.js +2 -2
  20. package/dist/cjs/kup-family-tree.cjs.entry.js +4 -4
  21. package/dist/cjs/kup-iframe.cjs.entry.js +2 -2
  22. package/dist/cjs/kup-image-list.cjs.entry.js +8 -8
  23. package/dist/cjs/kup-lazy.cjs.entry.js +2 -2
  24. package/dist/cjs/kup-magic-box.cjs.entry.js +3 -3
  25. package/dist/cjs/{kup-manager-2ff5d258.js → kup-manager-85b2a756.js} +758 -538
  26. package/dist/cjs/kup-nav-bar.cjs.entry.js +2 -2
  27. package/dist/cjs/kup-numeric-picker.cjs.entry.js +3 -3
  28. package/dist/cjs/kup-photo-frame.cjs.entry.js +2 -2
  29. package/dist/cjs/kup-planner.cjs.entry.js +3 -3
  30. package/dist/cjs/kup-probe.cjs.entry.js +2 -2
  31. package/dist/cjs/kup-qlik.cjs.entry.js +2 -2
  32. package/dist/cjs/kup-snackbar.cjs.entry.js +12 -4
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/collection/components/kup-card/built-in/kup-card-calendar.js +5 -61
  35. package/dist/collection/components/kup-card/built-in/kup-card-clock.js +1 -1
  36. package/dist/collection/components/kup-dash-list/kup-dash-list.js +1 -3
  37. package/dist/collection/components/kup-data-table/kup-data-table-helper.js +7 -8
  38. package/dist/collection/components/kup-data-table/kup-data-table.js +5 -4
  39. package/dist/collection/components/kup-gauge/kup-gauge.js +4 -4
  40. package/dist/collection/components/kup-snackbar/kup-snackbar.js +27 -0
  41. package/dist/collection/components/kup-text-field/kup-text-field-declarations.js +3 -0
  42. package/dist/collection/components/kup-text-field/kup-text-field.js +107 -9
  43. package/dist/collection/components/kup-time-picker/kup-time-picker.js +7 -7
  44. package/dist/collection/components/kup-tree/kup-tree.js +2 -2
  45. package/dist/collection/f-components/f-cell/f-cell.js +16 -8
  46. package/dist/collection/f-components/f-paginator/f-paginator-utils.js +3 -3
  47. package/dist/collection/f-components/f-text-field/f-text-field.js +80 -6
  48. package/dist/collection/managers/kup-data/kup-data.js +3 -1
  49. package/dist/collection/managers/kup-dates/kup-dates-declarations.js +21 -10
  50. package/dist/collection/managers/kup-dates/kup-dates.js +312 -1
  51. package/dist/collection/managers/kup-math/kup-math.js +258 -6
  52. package/dist/collection/utils/cell-utils.js +5 -6
  53. package/dist/collection/utils/filters/filters.js +11 -13
  54. package/dist/collection/utils/utils.js +18 -444
  55. package/dist/components/kup-autocomplete2.js +1301 -1002
  56. package/dist/components/kup-box2.js +1 -1
  57. package/dist/components/kup-calendar.js +1 -1
  58. package/dist/components/kup-cell.js +1 -1
  59. package/dist/components/kup-dash-list.js +2 -3
  60. package/dist/components/kup-dashboard.js +1 -1
  61. package/dist/components/kup-data-table.js +1 -1
  62. package/dist/components/kup-date-picker.js +1 -1
  63. package/dist/components/kup-dialog.js +1 -1
  64. package/dist/components/kup-dropdown-button.js +1 -1
  65. package/dist/components/kup-echart2.js +1 -1
  66. package/dist/components/kup-family-tree.js +1 -1
  67. package/dist/components/kup-form.js +1 -1
  68. package/dist/components/kup-gauge.js +1 -1
  69. package/dist/components/kup-grid2.js +1 -1
  70. package/dist/components/kup-iframe.js +1 -1
  71. package/dist/components/kup-image-list.js +1 -1
  72. package/dist/components/kup-image.js +1 -1
  73. package/dist/components/kup-list.js +1 -1
  74. package/dist/components/kup-magic-box.js +1 -1
  75. package/dist/components/kup-numeric-picker.js +1 -1
  76. package/dist/components/kup-planner.js +1 -1
  77. package/dist/components/kup-progress-bar.js +1 -1
  78. package/dist/components/kup-radio.js +1 -1
  79. package/dist/components/kup-rating.js +1 -1
  80. package/dist/components/kup-snackbar.js +8 -0
  81. package/dist/components/kup-spinner.js +1 -1
  82. package/dist/components/kup-switch.js +1 -1
  83. package/dist/components/kup-tab-bar.js +1 -1
  84. package/dist/components/kup-text-field.js +1 -1
  85. package/dist/components/kup-time-picker.js +1 -1
  86. package/dist/components/kup-tree.js +1 -1
  87. package/dist/esm/{f-button-744cf1f6.js → f-button-024f0cfe.js} +2 -2
  88. package/dist/esm/{f-cell-b319c869.js → f-cell-90240a8c.js} +22 -13
  89. package/dist/esm/{f-checkbox-ec85b437.js → f-checkbox-9b3f5f5b.js} +1 -1
  90. package/dist/esm/{f-chip-7e3e4180.js → f-chip-2238ad43.js} +3 -3
  91. package/dist/esm/{f-image-098c26ce.js → f-image-f2e9bf79.js} +2 -2
  92. package/dist/esm/{f-paginator-utils-674cb2ae.js → f-paginator-utils-8cb3c023.js} +64 -63
  93. package/dist/esm/{f-text-field-c38ef113.js → f-text-field-d231982c.js} +83 -9
  94. package/dist/esm/{index-b326ffc9.js → index-8bd38435.js} +1 -3
  95. package/dist/esm/ketchup.js +3 -3
  96. package/dist/esm/kup-accordion.entry.js +3 -3
  97. package/dist/esm/kup-autocomplete_27.entry.js +792 -809
  98. package/dist/esm/kup-box.entry.js +10 -10
  99. package/dist/esm/kup-calendar.entry.js +5 -5
  100. package/dist/esm/kup-cell.entry.js +7 -7
  101. package/dist/esm/kup-dash-list.entry.js +3 -4
  102. package/dist/esm/kup-dash_2.entry.js +2 -2
  103. package/dist/esm/kup-dashboard.entry.js +6 -6
  104. package/dist/esm/kup-drawer.entry.js +2 -2
  105. package/dist/esm/kup-echart.entry.js +2 -2
  106. package/dist/esm/kup-family-tree.entry.js +4 -4
  107. package/dist/esm/kup-iframe.entry.js +2 -2
  108. package/dist/esm/kup-image-list.entry.js +8 -8
  109. package/dist/esm/kup-lazy.entry.js +2 -2
  110. package/dist/esm/kup-magic-box.entry.js +3 -3
  111. package/dist/esm/{kup-manager-b41eb2a8.js → kup-manager-d1da769e.js} +758 -529
  112. package/dist/esm/kup-nav-bar.entry.js +2 -2
  113. package/dist/esm/kup-numeric-picker.entry.js +3 -3
  114. package/dist/esm/kup-photo-frame.entry.js +2 -2
  115. package/dist/esm/kup-planner.entry.js +3 -3
  116. package/dist/esm/kup-probe.entry.js +2 -2
  117. package/dist/esm/kup-qlik.entry.js +2 -2
  118. package/dist/esm/kup-snackbar.entry.js +12 -4
  119. package/dist/esm/loader.js +3 -3
  120. package/dist/ketchup/ketchup.esm.js +1 -1
  121. package/dist/ketchup/{p-5ce2b4fc.entry.js → p-063d4c27.entry.js} +1 -1
  122. package/dist/ketchup/{p-4325d965.entry.js → p-0bcda0e2.entry.js} +1 -1
  123. package/dist/ketchup/{p-af82131e.entry.js → p-0d7d59c7.entry.js} +1 -1
  124. package/dist/ketchup/{p-bd42562d.entry.js → p-163b18b9.entry.js} +1 -1
  125. package/dist/ketchup/{p-b244f5ca.entry.js → p-1ad628fb.entry.js} +1 -1
  126. package/dist/ketchup/{p-a9b7533b.entry.js → p-33aff1ca.entry.js} +1 -1
  127. package/dist/ketchup/p-3432ebaf.entry.js +9 -0
  128. package/dist/ketchup/{p-b032f47d.entry.js → p-35b29b22.entry.js} +1 -1
  129. package/dist/ketchup/{p-940a5feb.js → p-36dac88e.js} +3 -3
  130. package/dist/ketchup/{p-395e1960.entry.js → p-37067ee6.entry.js} +1 -1
  131. package/dist/ketchup/p-39a55c47.js +1 -0
  132. package/dist/ketchup/p-3cf64473.js +1 -0
  133. package/dist/ketchup/{p-5d398e42.js → p-410c102a.js} +1 -1
  134. package/dist/ketchup/p-43b67de4.entry.js +1 -0
  135. package/dist/ketchup/{p-a7e19620.entry.js → p-489d55ff.entry.js} +1 -1
  136. package/dist/ketchup/{p-77e3d537.js → p-5f3680f2.js} +1 -1
  137. package/dist/ketchup/p-651d89c8.entry.js +1 -0
  138. package/dist/ketchup/{p-da891093.entry.js → p-73c8d651.entry.js} +1 -1
  139. package/dist/ketchup/{p-bb17c1ba.entry.js → p-83435e6c.entry.js} +1 -1
  140. package/dist/ketchup/{p-3b41aca7.entry.js → p-89743989.entry.js} +1 -1
  141. package/dist/ketchup/{p-ef614656.js → p-8b46e7ce.js} +1 -1
  142. package/dist/ketchup/{p-d4ece435.js → p-9dcfbb1e.js} +2 -2
  143. package/dist/ketchup/{p-c26975bf.js → p-9f9b6656.js} +1 -1
  144. package/dist/ketchup/{p-c968e93d.entry.js → p-a84f1d24.entry.js} +1 -1
  145. package/dist/ketchup/{p-e02b5141.entry.js → p-b2fd2dbf.entry.js} +1 -1
  146. package/dist/ketchup/{p-d739710a.entry.js → p-c42b80c1.entry.js} +1 -1
  147. package/dist/ketchup/p-d1b050d0.entry.js +27 -0
  148. package/dist/ketchup/p-d6ea709e.entry.js +1 -0
  149. package/dist/ketchup/{p-0b91f5f8.entry.js → p-e1f1e661.entry.js} +1 -1
  150. package/dist/ketchup/p-eda7f130.js +1 -0
  151. package/dist/ketchup/{p-4ae2ca6f.entry.js → p-f876125d.entry.js} +1 -1
  152. package/dist/types/components/kup-snackbar/kup-snackbar.d.ts +5 -0
  153. package/dist/types/components/kup-text-field/kup-text-field-declarations.d.ts +3 -0
  154. package/dist/types/components/kup-text-field/kup-text-field.d.ts +20 -2
  155. package/dist/types/components.d.ts +34 -0
  156. package/dist/types/f-components/f-text-field/f-text-field-declarations.d.ts +3 -0
  157. package/dist/types/managers/kup-dates/kup-dates-declarations.d.ts +19 -9
  158. package/dist/types/managers/kup-dates/kup-dates.d.ts +94 -1
  159. package/dist/types/managers/kup-math/kup-math-declarations.d.ts +6 -0
  160. package/dist/types/managers/kup-math/kup-math.d.ts +88 -3
  161. package/dist/types/utils/utils.d.ts +13 -103
  162. package/package.json +1 -1
  163. package/dist/ketchup/p-0b0b61cb.entry.js +0 -1
  164. package/dist/ketchup/p-3efe7f43.entry.js +0 -27
  165. package/dist/ketchup/p-9700eb32.js +0 -1
  166. package/dist/ketchup/p-a877a87b.entry.js +0 -9
  167. package/dist/ketchup/p-c8b7790a.entry.js +0 -1
  168. package/dist/ketchup/p-d98fdb9b.js +0 -1
  169. package/dist/ketchup/p-df316daf.entry.js +0 -1
  170. package/dist/ketchup/p-e714f4dc.js +0 -1
@@ -6,7 +6,7 @@ import 'numeral/locales/it';
6
6
  import 'numeral/locales/pl';
7
7
  import 'numeral/locales/ru';
8
8
  import { KupComponent } from '../../types/GenericTypes';
9
- import { KupMathFormulas, KupMathLocales, KupMathNumbers } from './kup-math-declarations';
9
+ import { KupMathFormulas, KupMathLocales, KupMathNumbers, NumericFieldFormatOptions } from './kup-math-declarations';
10
10
  /**
11
11
  * Handles mathematical operations and number formatting/conversion.
12
12
  * @module KupMath
@@ -37,16 +37,101 @@ export declare class KupMath {
37
37
  * Formats the input number with the specified format of the currently set locale.
38
38
  * @param {string | String | number} input - Input number which will be automatically "numberified".
39
39
  * @param {string} format - Desired format. Defaults to '0,0.00' (i.e.: 2,000,000.51).
40
+ * @param {boolean} inputIsLocalized Numberifies assuming the input string is in the current KupMath locale's format.
40
41
  * @returns {string} Formatted number.
41
42
  */
42
- format(input: string | String | number, format?: string): string;
43
+ format(input: string | String | number, format?: string, inputIsLocalized?: boolean): string;
44
+ /**
45
+ * Create the pattern string for format a number
46
+ * @param {boolean} thousandPoint - show thousandPoint
47
+ * @param {number} decimals - number of decimals
48
+ * @returns {string} - formatter pattern
49
+ */
50
+ createFormatPattern(thousandPoint?: boolean, decimals?: number): string;
51
+ /**
52
+ * Returns the decimal separator of current browser
53
+ * @returns {string} current decimal separator, by locale
54
+ */
55
+ decimalSeparator(): string;
56
+ /**
57
+ * Returns the group separator of current browser
58
+ * @returns {string} current group separator, by locale
59
+ */
60
+ groupSeparator(): string;
61
+ /**
62
+ * Checks if an input string matches options, for desired formatted decimal number (integer digits, decimal digits)
63
+ * @param {string} value the input value to check
64
+ * @param {NumericFieldFormatOptions} options options for customize the check
65
+ * @returns {RegExpMatchArray} an object from applying the regular expression for check
66
+ */
67
+ matchNumericValueWithOptions(value: string, options: NumericFieldFormatOptions): RegExpMatchArray;
43
68
  /**
44
69
  * Returns a number from a non-specified input type between string, number, or String.
45
70
  * @param {string | String | number} input - Input value to numberify.
46
71
  * @param {boolean} inputIsLocalized - Numberifies assuming the input string is in the current KupMath locale's format.
72
+ * @param {string} type - type of number for calculate suffix
47
73
  * @returns {number} Resulting number or NaN (when not a number).
48
74
  */
49
- numberify(input: string | String | number, inputIsLocalized?: boolean): number;
75
+ numberify(input: string | String | number, inputIsLocalized?: boolean, type?: string): number;
76
+ /**
77
+ * Returns a number from a non-specified input type between string, number, or String.
78
+ * If value in is null, undefined or blank, returns 0
79
+ * @param {string} input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
80
+ * @param {boolean} inputIsLocalized - Numberifies assuming the input string is in the current KupMath locale's format.
81
+ * @param {string} type - type of number for calculate suffix
82
+ * @returns {number} Resulting number
83
+ **/
84
+ numberifySafe(input: string, inputIsLocalized?: boolean, type?: string): number;
85
+ /**
86
+ * Checks if input is a valid number
87
+ * @param {any} value input value to check
88
+ * @returns {boolean} if input value is valid number
89
+ */
90
+ isNumber(value: any): boolean;
91
+ /**
92
+ * Checks if string in input is a valid formatted number
93
+ * @param {string} value number as string, formatted by actual browser locale
94
+ * @param {string} type - type of number for calculate suffix
95
+ * @returns {boolean} true if number string in input is a valid number
96
+ */
97
+ isStringNumber(value: string, type: string): boolean;
98
+ /**
99
+ * Gets number as string, formatted by locale US, decimal separator . (like java decimal numbers)
100
+ * @param {string} input number as string, formatted by actual browser locale (maybe)
101
+ * @param {string} type - type of number for calculate suffix
102
+ * @param {string} decSeparator - decimal serparator of input string
103
+ * @returns {string} number as string, formatted by locale US, decimal separator . (like java decimal numbers), without group separator
104
+ **/
105
+ formattedStringToNumberString(input: string, type: string, decSeparator?: string): string;
106
+ /**
107
+ * Gets the number of decimals for current number
108
+ * @param {number} value numer input
109
+ * @returns {number} the number of decimals
110
+ */
111
+ countDecimals(value: number): number;
112
+ /**
113
+ * Gets the suffix for number, by type
114
+ * @param {string} type - type of number for calculate suffix
115
+ * @returns {string} suffix for number, by type
116
+ **/
117
+ getNumericValueSuffix(type: string): string;
118
+ /**
119
+ * Gets the number as string, formatted by actual browser locale, with suffix by type
120
+ * @param {number} input number
121
+ * @param {number} decimals number of significant decimal digits for output
122
+ * @param {string} type - type of number for calculate suffix
123
+ * @returns {string} number as string, formatted by actual browser locale, with suffix by type
124
+ **/
125
+ numberToFormattedString(input: number, decimals: number, type: string): string;
126
+ /**
127
+ * Gets the number as string, formatted by actual browser locale, with suffix by type
128
+ * @param {string} input number as string, formatted by locale US, decimal separator . (like java decimal numbers)
129
+ * @param {number} decimals number of significant decimal digits for output
130
+ * @param {string} type - type of number for calculate suffix
131
+ * @param {string} decSeparator decimal separator for outpu string
132
+ * @returns {string} number as string, formatted by actual browser locale (or using decimal separator param), with suffix by type
133
+ **/
134
+ numberStringToFormattedString(input: string, decimals: number, type: string, decSeparator?: string): string;
50
135
  /**
51
136
  * Registers a KupComponent in KupMath, in order to be properly handled whenever the locale changes.
52
137
  * @param {any} component - The Ketchup component to be registered.
@@ -1,112 +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 getDecimalSeparator(locale: any): string;
63
- export declare function _numberToString(input: number, decimals: number, locale: string, useGrouping: boolean): string;
64
- /**
65
- * @param time time as Date object
66
- * @param manageSeconds flag to set seconds managing
67
- * @return time as string, formatted
68
- **/
69
- export declare function formatTime(time: Date, manageSeconds: boolean): string;
70
- /**
71
- * @param value time string, formatted by actual browser locale
72
- * @returns true if time string in input is a valid time
73
- */
74
- export declare function isValidFormattedStringTime(value: string, manageSeconds: boolean): boolean;
75
- /**
76
- * @param value time as string, formatted by actual browser locale
77
- * @returns time as string, formatted ISO
78
- **/
79
- export declare function formattedStringToDefaultUnformattedStringTime(value: string): string;
80
- /**
81
- * @param value date/time as string, formatted by actual browser locale
82
- * @returns date/time as string, formatted ISO
83
- **/
84
- export declare function formattedStringToDefaultUnformattedStringTimestamp(value: string): string;
85
- /**
86
- * @param value time as string, formatted by actual browser locale
87
- * @param outputFormat time format to return
88
- * @param manageSeconds flag to set seconds managing
89
- * @returns time as string, formatted
90
- **/
91
- export declare function formattedStringToCustomUnformattedStringTime(value: string, outputFormat: string, manageSeconds: boolean): string;
92
- /**
93
- * @param value time as string, formatted ISO
94
- * @param manageSeconds flag to set seconds managing
95
- * @param valueTimeFormat time format (default ISO)
96
- * @param customedFormat time format from smeupObject
97
- * @returns time as string, formatted by actual browser locale
98
- **/
99
- export declare function unformattedStringToFormattedStringTime(value: string, manageSeconds: boolean, customedFormat?: string): string;
100
- /**
101
- * @param value date/time as string, formatted ISO
102
- * @param valueDateFormat date/time format (default ISO)
103
- * @returns date/time as string, formatted by actual browser locale
104
- **/
105
- export declare function unformattedStringToFormattedStringTimestamp(value: string): string;
106
- export declare function getMonthAsStringByLocale(month: number, format: DateTimeFormatOptionsMonth): string;
107
- export declare function getMonthsAsStringByLocale(format?: DateTimeFormatOptionsMonth): string[];
108
- export declare function getDayAsStringByLocale(date: Date): string;
109
- export declare function getDaysOfWeekAsStringByLocale(firstDayIndex?: number): string[];
110
13
  export declare function fillString(stringIn: string, stringForFill: string, finalLen: number, addBefore: boolean): string;
111
14
  /**
112
15
  * Used to retrieve component's props values.
@@ -123,3 +26,10 @@ export declare function getProps(comp: any, list: GenericObject, descriptions?:
123
26
  * @param {GenericObject} props - Prop to be set.
124
27
  */
125
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": "v8.0.0",
3
+ "version": "8.0.2",
4
4
  "keywords": [
5
5
  "smeup",
6
6
  "KetchUP",
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as i}from"./p-d4ece435.js";import{k as l,am as h,av as e}from"./p-940a5feb.js";const o=class{constructor(i){s(this,i),this.dashClick=t(this,"kup-dash-click",7),this.kupManager=l(),this.layout="1",this.fontsize="",this.active=!1,this.columnsNumber=1,this.fullWidth=!0,this.horizontal=!1,this.iconColor=[],this.valueColor=[],this.textColor=[],this.data=void 0}render(){let s=[];var t=0;return this.data.rows.forEach((l=>{let o="",d="",n="",a="",c="",r="",v={color:this.iconColor[t]?this.kupManager.theme.colorCheck(this.iconColor[t]).hexColor:null},u={color:this.textColor[t]?this.kupManager.theme.colorCheck(this.textColor[t]).hexColor:null},p={color:this.valueColor[t]?this.kupManager.theme.colorCheck(this.valueColor[t]).hexColor:null};if(o=this.data.columns[0]?i("div",{slot:"icon"},i("icon",{class:l.cells[this.data.columns[0].name].obj.k,style:v})):i("div",{slot:"icon"}),d=this.data.columns[1]?i("div",{slot:"unit",style:p},l.cells[this.data.columns[1].name].obj.k," "):i("div",{slot:"unit"}),n=this.data.columns[2]?i("div",{slot:"descr",style:u},l.cells[this.data.columns[2].name].obj.k):i("div",{slot:"descr"}),this.data.columns[3]){let s=this.data.columns[3];s.obj=l.cells[this.data.columns[3].name].obj;let t=h(s,l.cells[this.data.columns[3].name]);a=i("div",{slot:"value",style:p},t)}else a=i("div",{slot:"value"});if(this.data.columns[5]){let s=this.data.columns[5];s.obj=l.cells[this.data.columns[5].name].obj;let t=h(s,l.cells[this.data.columns[5].name]);this.data.columns[6]&&l.cells[this.data.columns[6].name].obj.k&&(t+=e(this.kupManager.dates.getLocale())),c=i("div",{slot:"value-int",style:p},t)}else c=i("div",{slot:"value-int"});r=this.data.columns[6]?i("div",{slot:"value-dec",style:p},l.cells[this.data.columns[6].name].obj.k):i("div",{slot:"value-dec"});const m=i("kup-dash",{layout:this.layout,fontsize:this.fontsize,index:t,active:this.active,slot:String(t)},o,d,n,a,c,r);s.push(m),t++})),i("div",null,i("link",{href:"https://cdn.materialdesignicons.com/4.5.95/css/materialdesignicons.min.css",rel:"stylesheet",type:"text/css"}),i("kup-grid",{columns:this.columnsNumber,singleLine:this.horizontal,class:this.fullWidth?"kup-full-width":""},s))}};o.style=".horizontal{display:inline-block;min-width:300px;max-width:100%;overflow:visible;white-space:nowrap;border:solid;border-width:1px;margin:2px}";export{o as kup_dash_list}