@jscrpt/common 1.2.0 → 2.0.0-beta.20211108120022

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 (238) hide show
  1. package/changelog.md +24 -0
  2. package/dist/es2015/decorators/bindThis.decorator.js +24 -24
  3. package/dist/es2015/decorators/bindThis.decorator.js.map +1 -0
  4. package/dist/es2015/decorators/callOnce.decorator.js +29 -28
  5. package/dist/es2015/decorators/callOnce.decorator.js.map +1 -0
  6. package/dist/es2015/decorators/debounceCall.decorator.js +25 -26
  7. package/dist/es2015/decorators/debounceCall.decorator.js.map +1 -0
  8. package/dist/es2015/decorators/index.js +4 -4
  9. package/dist/es2015/decorators/index.js.map +1 -0
  10. package/dist/es2015/encoder/encoder.js +220 -231
  11. package/dist/es2015/encoder/encoder.js.map +1 -0
  12. package/dist/es2015/enums/index.js +2 -2
  13. package/dist/es2015/enums/index.js.map +1 -0
  14. package/dist/es2015/enums/orderByDirection.js +15 -15
  15. package/dist/es2015/enums/orderByDirection.js.map +1 -0
  16. package/dist/es2015/index.js +10 -24
  17. package/dist/es2015/index.js.map +1 -0
  18. package/dist/es2015/indexNode.js +2 -2
  19. package/dist/es2015/indexNode.js.map +1 -0
  20. package/dist/es2015/initJsDevMode.js +8 -0
  21. package/dist/es2015/initJsDevMode.js.map +1 -0
  22. package/dist/es2015/jsDevMode.js +8 -8
  23. package/dist/es2015/jsDevMode.js.map +1 -0
  24. package/dist/es2015/normalizer/charMaps.js +20 -27
  25. package/dist/es2015/normalizer/charMaps.js.map +1 -0
  26. package/dist/es2015/normalizer/index.js +3 -3
  27. package/dist/es2015/normalizer/index.js.map +1 -0
  28. package/dist/es2015/normalizer/normalizer.js +14 -14
  29. package/dist/es2015/normalizer/normalizer.js.map +1 -0
  30. package/dist/es2015/paginator/paginator.js +230 -224
  31. package/dist/es2015/paginator/paginator.js.map +1 -0
  32. package/dist/es2015/types/dictionaries.js +2 -1
  33. package/dist/es2015/types/dictionaries.js.map +1 -0
  34. package/dist/es2015/types/enums.js +2 -0
  35. package/dist/es2015/types/enums.js.map +1 -0
  36. package/dist/es2015/types/functions.js +2 -0
  37. package/dist/es2015/types/functions.js.map +1 -0
  38. package/dist/es2015/types/index.js +5 -3
  39. package/dist/es2015/types/index.js.map +1 -0
  40. package/dist/es2015/types/valueNamePair.js +2 -1
  41. package/dist/es2015/types/valueNamePair.js.map +1 -0
  42. package/dist/es2015/utils/common.js +209 -215
  43. package/dist/es2015/utils/common.js.map +1 -0
  44. package/dist/es2015/utils/index.js +4 -4
  45. package/dist/es2015/utils/index.js.map +1 -0
  46. package/dist/es2015/utils/lang.js +79 -79
  47. package/dist/es2015/utils/lang.js.map +1 -0
  48. package/dist/es2015/utils/nameof.js +6 -6
  49. package/dist/es2015/utils/nameof.js.map +1 -0
  50. package/dist/es2020/decorators/bindThis.decorator.js +23 -0
  51. package/dist/es2020/decorators/bindThis.decorator.js.map +1 -0
  52. package/dist/es2020/decorators/callOnce.decorator.js +28 -0
  53. package/dist/es2020/decorators/callOnce.decorator.js.map +1 -0
  54. package/dist/es2020/decorators/debounceCall.decorator.js +24 -0
  55. package/dist/es2020/decorators/debounceCall.decorator.js.map +1 -0
  56. package/dist/es2020/decorators/index.js +4 -0
  57. package/dist/es2020/decorators/index.js.map +1 -0
  58. package/dist/es2020/encoder/encoder.js +220 -0
  59. package/dist/es2020/encoder/encoder.js.map +1 -0
  60. package/dist/es2020/enums/index.js +2 -0
  61. package/dist/es2020/enums/index.js.map +1 -0
  62. package/dist/es2020/enums/orderByDirection.js +15 -0
  63. package/dist/es2020/enums/orderByDirection.js.map +1 -0
  64. package/dist/es2020/index.js +10 -0
  65. package/dist/es2020/index.js.map +1 -0
  66. package/dist/es2020/indexNode.js +2 -0
  67. package/dist/es2020/indexNode.js.map +1 -0
  68. package/dist/es2020/initJsDevMode.js +8 -0
  69. package/dist/es2020/initJsDevMode.js.map +1 -0
  70. package/dist/es2020/jsDevMode.js +8 -0
  71. package/dist/es2020/jsDevMode.js.map +1 -0
  72. package/dist/es2020/normalizer/charMaps.js +20 -0
  73. package/dist/es2020/normalizer/charMaps.js.map +1 -0
  74. package/dist/es2020/normalizer/index.js +3 -0
  75. package/dist/es2020/normalizer/index.js.map +1 -0
  76. package/dist/es2020/normalizer/normalizer.js +14 -0
  77. package/dist/es2020/normalizer/normalizer.js.map +1 -0
  78. package/dist/es2020/paginator/paginator.js +230 -0
  79. package/dist/es2020/paginator/paginator.js.map +1 -0
  80. package/dist/es2020/types/dictionaries.js +2 -0
  81. package/dist/es2020/types/dictionaries.js.map +1 -0
  82. package/dist/es2020/types/enums.js +2 -0
  83. package/dist/es2020/types/enums.js.map +1 -0
  84. package/dist/es2020/types/functions.js +2 -0
  85. package/dist/es2020/types/functions.js.map +1 -0
  86. package/dist/es2020/types/index.js +5 -0
  87. package/dist/es2020/types/index.js.map +1 -0
  88. package/dist/es2020/types/valueNamePair.js +2 -0
  89. package/dist/es2020/types/valueNamePair.js.map +1 -0
  90. package/dist/es2020/utils/common.js +208 -0
  91. package/dist/es2020/utils/common.js.map +1 -0
  92. package/dist/es2020/utils/index.js +4 -0
  93. package/dist/es2020/utils/index.js.map +1 -0
  94. package/dist/es2020/utils/lang.js +79 -0
  95. package/dist/es2020/utils/lang.js.map +1 -0
  96. package/dist/es2020/utils/nameof.js +6 -0
  97. package/dist/es2020/utils/nameof.js.map +1 -0
  98. package/dist/es5/decorators/bindThis.decorator.js +24 -24
  99. package/dist/es5/decorators/bindThis.decorator.js.map +1 -0
  100. package/dist/es5/decorators/callOnce.decorator.js +33 -28
  101. package/dist/es5/decorators/callOnce.decorator.js.map +1 -0
  102. package/dist/es5/decorators/debounceCall.decorator.js +30 -27
  103. package/dist/es5/decorators/debounceCall.decorator.js.map +1 -0
  104. package/dist/es5/decorators/index.js +4 -4
  105. package/dist/es5/decorators/index.js.map +1 -0
  106. package/dist/es5/encoder/encoder.js +222 -233
  107. package/dist/es5/encoder/encoder.js.map +1 -0
  108. package/dist/es5/enums/index.js +2 -2
  109. package/dist/es5/enums/index.js.map +1 -0
  110. package/dist/es5/enums/orderByDirection.js +15 -15
  111. package/dist/es5/enums/orderByDirection.js.map +1 -0
  112. package/dist/es5/index.js +10 -24
  113. package/dist/es5/index.js.map +1 -0
  114. package/dist/es5/indexNode.js +2 -2
  115. package/dist/es5/indexNode.js.map +1 -0
  116. package/dist/es5/initJsDevMode.js +8 -0
  117. package/dist/es5/initJsDevMode.js.map +1 -0
  118. package/dist/es5/jsDevMode.js +8 -8
  119. package/dist/es5/jsDevMode.js.map +1 -0
  120. package/dist/es5/normalizer/charMaps.js +20 -35
  121. package/dist/es5/normalizer/charMaps.js.map +1 -0
  122. package/dist/es5/normalizer/index.js +3 -3
  123. package/dist/es5/normalizer/index.js.map +1 -0
  124. package/dist/es5/normalizer/normalizer.js +14 -14
  125. package/dist/es5/normalizer/normalizer.js.map +1 -0
  126. package/dist/es5/paginator/paginator.js +232 -226
  127. package/dist/es5/paginator/paginator.js.map +1 -0
  128. package/dist/es5/types/dictionaries.js +2 -1
  129. package/dist/es5/types/dictionaries.js.map +1 -0
  130. package/dist/es5/types/enums.js +2 -0
  131. package/dist/es5/types/enums.js.map +1 -0
  132. package/dist/es5/types/functions.js +2 -0
  133. package/dist/es5/types/functions.js.map +1 -0
  134. package/dist/es5/types/index.js +5 -3
  135. package/dist/es5/types/index.js.map +1 -0
  136. package/dist/es5/types/valueNamePair.js +2 -1
  137. package/dist/es5/types/valueNamePair.js.map +1 -0
  138. package/dist/es5/utils/common.js +220 -232
  139. package/dist/es5/utils/common.js.map +1 -0
  140. package/dist/es5/utils/index.js +4 -4
  141. package/dist/es5/utils/index.js.map +1 -0
  142. package/dist/es5/utils/lang.js +79 -79
  143. package/dist/es5/utils/lang.js.map +1 -0
  144. package/dist/es5/utils/nameof.js +6 -6
  145. package/dist/es5/utils/nameof.js.map +1 -0
  146. package/dist/module/decorators/bindThis.decorator.js +28 -28
  147. package/dist/module/decorators/bindThis.decorator.js.map +1 -0
  148. package/dist/module/decorators/callOnce.decorator.js +33 -32
  149. package/dist/module/decorators/callOnce.decorator.js.map +1 -0
  150. package/dist/module/decorators/debounceCall.decorator.js +29 -30
  151. package/dist/module/decorators/debounceCall.decorator.js.map +1 -0
  152. package/dist/module/decorators/index.js +7 -16
  153. package/dist/module/decorators/index.js.map +1 -0
  154. package/dist/module/encoder/encoder.js +224 -235
  155. package/dist/module/encoder/encoder.js.map +1 -0
  156. package/dist/module/enums/index.js +5 -14
  157. package/dist/module/enums/index.js.map +1 -0
  158. package/dist/module/enums/orderByDirection.js +18 -18
  159. package/dist/module/enums/orderByDirection.js.map +1 -0
  160. package/dist/module/index.js +13 -37
  161. package/dist/module/index.js.map +1 -0
  162. package/dist/module/indexNode.js +5 -14
  163. package/dist/module/indexNode.js.map +1 -0
  164. package/dist/module/initJsDevMode.js +10 -0
  165. package/dist/module/initJsDevMode.js.map +1 -0
  166. package/dist/module/jsDevMode.js +12 -12
  167. package/dist/module/jsDevMode.js.map +1 -0
  168. package/dist/module/normalizer/charMaps.js +23 -31
  169. package/dist/module/normalizer/charMaps.js.map +1 -0
  170. package/dist/module/normalizer/index.js +6 -15
  171. package/dist/module/normalizer/index.js.map +1 -0
  172. package/dist/module/normalizer/normalizer.js +18 -18
  173. package/dist/module/normalizer/normalizer.js.map +1 -0
  174. package/dist/module/paginator/paginator.js +234 -228
  175. package/dist/module/paginator/paginator.js.map +1 -0
  176. package/dist/module/types/dictionaries.js +3 -3
  177. package/dist/module/types/dictionaries.js.map +1 -0
  178. package/dist/module/types/enums.js +3 -0
  179. package/dist/module/types/enums.js.map +1 -0
  180. package/dist/module/types/functions.js +3 -0
  181. package/dist/module/types/functions.js.map +1 -0
  182. package/dist/module/types/index.js +8 -15
  183. package/dist/module/types/index.js.map +1 -0
  184. package/dist/module/types/valueNamePair.js +3 -3
  185. package/dist/module/types/valueNamePair.js.map +1 -0
  186. package/dist/module/utils/common.js +232 -240
  187. package/dist/module/utils/common.js.map +1 -0
  188. package/dist/module/utils/index.js +7 -16
  189. package/dist/module/utils/index.js.map +1 -0
  190. package/dist/module/utils/lang.js +99 -99
  191. package/dist/module/utils/lang.js.map +1 -0
  192. package/dist/module/utils/nameof.js +10 -9
  193. package/dist/module/utils/nameof.js.map +1 -0
  194. package/package.json +45 -16
  195. package/src/decorators/bindThis.decorator.d.ts +5 -7
  196. package/src/decorators/bindThis.decorator.d.ts.map +1 -1
  197. package/src/decorators/callOnce.decorator.d.ts +5 -5
  198. package/src/decorators/callOnce.decorator.d.ts.map +1 -1
  199. package/src/decorators/debounceCall.decorator.d.ts +5 -5
  200. package/src/decorators/debounceCall.decorator.d.ts.map +1 -1
  201. package/src/decorators/index.d.ts +3 -3
  202. package/src/encoder/encoder.d.ts +45 -45
  203. package/src/encoder/encoder.d.ts.map +1 -1
  204. package/src/enums/index.d.ts +1 -1
  205. package/src/enums/orderByDirection.d.ts +13 -13
  206. package/src/index.d.ts +9 -17
  207. package/src/index.d.ts.map +1 -1
  208. package/src/indexNode.d.ts +1 -1
  209. package/src/initJsDevMode.d.ts +2 -0
  210. package/src/initJsDevMode.d.ts.map +1 -0
  211. package/src/jsDevMode.d.ts +8 -8
  212. package/src/jsDevMode.d.ts.map +1 -1
  213. package/src/normalizer/charMaps.d.ts +5 -9
  214. package/src/normalizer/charMaps.d.ts.map +1 -1
  215. package/src/normalizer/index.d.ts +2 -2
  216. package/src/normalizer/normalizer.d.ts +7 -6
  217. package/src/normalizer/normalizer.d.ts.map +1 -1
  218. package/src/paginator/paginator.d.ts +129 -129
  219. package/src/paginator/paginator.d.ts.map +1 -1
  220. package/src/types/dictionaries.d.ts +15 -6
  221. package/src/types/dictionaries.d.ts.map +1 -1
  222. package/src/types/enums.d.ts +7 -0
  223. package/src/types/enums.d.ts.map +1 -0
  224. package/src/types/functions.d.ts +14 -0
  225. package/src/types/functions.d.ts.map +1 -0
  226. package/src/types/index.d.ts +4 -2
  227. package/src/types/index.d.ts.map +1 -1
  228. package/src/types/valueNamePair.d.ts +13 -13
  229. package/src/utils/common.d.ts +181 -122
  230. package/src/utils/common.d.ts.map +1 -1
  231. package/src/utils/index.d.ts +3 -3
  232. package/src/utils/lang.d.ts +41 -41
  233. package/src/utils/lang.d.ts.map +1 -1
  234. package/src/utils/nameof.d.ts +5 -5
  235. package/src/utils/nameof.d.ts.map +1 -1
  236. package/version.bak +1 -1
  237. package/.jsbeautifyrc +0 -7
  238. package/appveyor.yml +0 -67
@@ -1,123 +1,182 @@
1
- import { ValueNamePair } from '../types';
2
- /**
3
- * Reverse current string and returns new reverse string
4
- * @param str - String to be reversed
5
- * @returns string Reverse string
6
- */
7
- export declare function reverseString(str: string): string;
8
- /**
9
- * Extends one object with additional properties from other objects, supports deep extend
10
- * @param deepOrObject - Object to be extended or indication that deep copy should be performed
11
- * @param objectN - Objects that will be used for extending, if deep is used first here is target object
12
- * @returns Object Extended object with properties from other objects
13
- */
14
- export declare function extend<TResult>(deepOrObject: boolean | Object, ...objectN: Object[]): TResult;
15
- /**
16
- * Merges properties of two separate object into new third one
17
- * @param source1 - First source object
18
- * @param source2 - Second source object
19
- * @returns Object Object containing properties from source1 and source2 objects
20
- */
21
- export declare function merge(source1: {
22
- [key: string]: any;
23
- }, source2: {
24
- [key: string]: any;
25
- }): Object;
26
- /**
27
- * Generates random string consisting from lowercase letters
28
- * @param length - Length of generated string
29
- * @returns number Generated string
30
- */
31
- export declare function generateId(length: number): string;
32
- /**
33
- * Generates random string of specified length from possible characters
34
- * @param length - Length of generated string
35
- * @param possible - Possible characters used for generation of string
36
- */
37
- export declare function generateRandomString(length: number, possible?: string): string;
38
- /**
39
- * Converts string in that way that first letter will be lowerCase
40
- * @param text - Text to be converted
41
- */
42
- export declare function firstToLowerCase(text: string): string;
43
- /**
44
- * Gets indication whether is child descendand of parent
45
- * @param parent - Parent to be tested
46
- * @param child - Child to be looked for
47
- */
48
- export declare function isDescendant(parent: HTMLElement, child: HTMLElement): boolean;
49
- /**
50
- * Computes offset of element against document
51
- * @param element - Html element which offset is counted
52
- * @param doc - Html document to be used for extracting scroll offset
53
- */
54
- export declare function offset(element: HTMLElement, doc?: Document): {
55
- top: number;
56
- left: number;
57
- bottom: number;
58
- right: number;
59
- };
60
- /**
61
- * Converts html string into html DOM
62
- * @param html - Html string to be converted to DOM
63
- * @param doc - Optional html document to be used
64
- */
65
- export declare function htmlToElement(html: string, doc?: Document): HTMLElement;
66
- /**
67
- * Extract values from enum type
68
- * @param enumType - Enum type that will have extracted values
69
- */
70
- export declare function getEnumValues(enumType: any): ValueNamePair[];
71
- /**
72
- * Safely returns value from object property using string expression
73
- * @param object - Object which property value will be obtained
74
- * @param expression - Expression for obtaining value
75
- */
76
- export declare function getValue(object: any, expression: string): any;
77
- /**
78
- * Sets value to objects property using string expression
79
- * @param object - Object which property value will be set
80
- * @param value - Value that will be set
81
- * @param expression - Expression for setting value
82
- */
83
- export declare function setValue(object: any, value: any, expression: string): void;
84
- /**
85
- * Formats string using '%s', to print '%s' you have to use '%%s'
86
- * @param str - String containing substitution constants
87
- * @param args - Arguments that are used for replacement
88
- */
89
- export declare function format(str: string, ...args: any[]): string;
90
- /**
91
- * Performs flatMap over provided array
92
- * @param array - Array to be reduced using flatMap
93
- */
94
- export declare function flatMapArray<TItem>(array: TItem[][]): TItem[];
95
- /**
96
- * Serialize object to string that is usable as url query parameter
97
- * @param obj - Object to be serialized
98
- * @param replacer - Function that can be used for replacing provided values
99
- */
100
- export declare function serializeToUrlQuery<TObj>(obj: TObj, replacer?: (this: any, key: string, value: any) => any): string;
101
- /**
102
- * Deserialize value from url query string into object
103
- * @param queryParamValue - Query param string value
104
- * @param reviver - Function that can be used for correctly deserializing value
105
- */
106
- export declare function deserializeFromUrlQuery<TObj>(queryParamValue: string, reviver?: (this: any, key: string, value: any) => any): TObj;
107
- /**
108
- * Converts id to valid html id
109
- * @param id - Id that is going to be converted to valid html id
110
- * @param charMap - Character map used during normalization
111
- */
112
- export declare function validHtmlId(id: string, charMap?: Object): string;
113
- /**
114
- * Checks whether is element overflown either horizontal, or vertical
115
- * @param element - Element to be tested for overflow
116
- */
117
- export declare function isOverflown(element: HTMLElement): boolean;
118
- /**
119
- * Normalizes string, removing accent
120
- * @param value - String to be normalized
121
- */
122
- export declare function normalizeAccent(value: string): string;
1
+ import { AsDictionary, Dictionary, Enum, StringDictionary, ValueNamePair } from '../types';
2
+ /**
3
+ * Reverse current string and returns new reverse string
4
+ * @param str - String to be reversed
5
+ * @returns string Reverse string
6
+ */
7
+ export declare function reverseString(str: string): string;
8
+ /**
9
+ * Extends target object with source
10
+ * @param deep - Indication whether deep copy should be performed
11
+ * @param target - Object that will extended
12
+ * @param source - Object that will be used for extending
13
+ */
14
+ export declare function extend<T, U>(deep: boolean, target: T, source: U): T & U;
15
+ /**
16
+ * Extends target object with source objects
17
+ * @param deep - Indication whether deep copy should be performed
18
+ * @param target - Object that will extended
19
+ * @param source1 - Object that will be used for extending
20
+ * @param source2 - Object that will be used for extending
21
+ */
22
+ export declare function extend<T, U, V>(deep: boolean, target: T, source1: U, source2: V): T & U & V;
23
+ /**
24
+ * Extends target object with source objects
25
+ * @param deep - Indication whether deep copy should be performed
26
+ * @param target - Object that will extended
27
+ * @param source1 - Object that will be used for extending
28
+ * @param source2 - Object that will be used for extending
29
+ * @param source3 - Object that will be used for extending
30
+ */
31
+ export declare function extend<T, U, V, W>(deep: boolean, target: T, source1: U, source2: V, source3: W): T & U & V & W;
32
+ /**
33
+ * Extends target object with source objects
34
+ * @param deep - Indication whether deep copy should be performed
35
+ * @param target - Object that will extended
36
+ * @param source1 - Object that will be used for extending
37
+ * @param source2 - Object that will be used for extending
38
+ * @param source3 - Object that will be used for extending
39
+ * @param source4 - Object that will be used for extending
40
+ */
41
+ export declare function extend<T, U, V, W, X>(deep: boolean, target: T, source1: U, source2: V, source3: W, source4: X): T & U & V & W & X;
42
+ /**
43
+ * Extends target object with source
44
+ * @param target - Object that will extended
45
+ * @param source - Object that will be used for extending
46
+ */
47
+ export declare function extend<T, U>(target: T, source: U): T & U;
48
+ /**
49
+ * Extends target object with source
50
+ * @param target - Object that will extended
51
+ * @param source1 - Object that will be used for extending
52
+ * @param source2 - Object that will be used for extending
53
+ */
54
+ export declare function extend<T, U, V>(target: T, source1: U, source2: V): T & U & V;
55
+ /**
56
+ * Extends target object with source
57
+ * @param target - Object that will extended
58
+ * @param source1 - Object that will be used for extending
59
+ * @param source2 - Object that will be used for extending
60
+ * @param source3 - Object that will be used for extending
61
+ */
62
+ export declare function extend<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
63
+ /**
64
+ * Extends target object with source
65
+ * @param target - Object that will extended
66
+ * @param source1 - Object that will be used for extending
67
+ * @param source2 - Object that will be used for extending
68
+ * @param source3 - Object that will be used for extending
69
+ * @param source4 - Object that will be used for extending
70
+ */
71
+ export declare function extend<T, U, V, W, X>(target: T, source1: U, source2: V, source3: W, source4: X): T & U & V & W & X;
72
+ /**
73
+ * Extends one object with additional properties from other objects, supports deep extend
74
+ * @param deepOrObject - Object to be extended or indication that deep copy should be performed
75
+ * @param objectN - Objects that will be used for extending, if deep is used first here is target object
76
+ * @returns Object Extended object with properties from other objects
77
+ */
78
+ export declare function extend<TResult>(deepOrObject: boolean | Dictionary<any>, ...objectN: Dictionary<any>[]): TResult;
79
+ /**
80
+ * Generates random string consisting from lowercase letters
81
+ * @param length - Length of generated string
82
+ * @returns number Generated string
83
+ */
84
+ export declare function generateId(length: number): string;
85
+ /**
86
+ * Generates random string of specified length from possible characters
87
+ * @param length - Length of generated string
88
+ * @param possible - Possible characters used for generation of string
89
+ */
90
+ export declare function generateRandomString(length: number, possible?: string): string;
91
+ /**
92
+ * Converts string in that way that first letter will be lowerCase
93
+ * @param text - Text to be converted
94
+ */
95
+ export declare function firstToLowerCase(text: string): string;
96
+ /**
97
+ * Gets indication whether is child descendand of parent
98
+ * @param parent - Parent to be tested
99
+ * @param child - Child to be looked for
100
+ */
101
+ export declare function isDescendant(parent: HTMLElement, child: HTMLElement): boolean;
102
+ /**
103
+ * Computes offset of element against document
104
+ * @param element - Html element which offset is counted
105
+ * @param doc - Html document to be used for extracting scroll offset
106
+ */
107
+ export declare function offset(element: HTMLElement, doc?: Document): {
108
+ top: number;
109
+ left: number;
110
+ bottom: number;
111
+ right: number;
112
+ };
113
+ /**
114
+ * Converts html string into html DOM
115
+ * @param html - Html string to be converted to DOM
116
+ * @param doc - Optional html document to be used
117
+ */
118
+ export declare function htmlToElement(html: string, doc?: Document): HTMLElement;
119
+ /**
120
+ * Extract values from enum type
121
+ * @param enumType - Enum type that will have extracted values
122
+ */
123
+ export declare function getEnumValues<TEnum extends Enum>(enumType: TEnum): ValueNamePair[];
124
+ /**
125
+ * Safely returns value from object property using string expression
126
+ * @param object - Object which property value will be obtained
127
+ * @param expression - Expression for obtaining value
128
+ */
129
+ export declare function getValue<TValue = unknown>(object: Dictionary<any>, expression: string): TValue;
130
+ /**
131
+ * Sets value to objects property using string expression
132
+ * @param object - Object which property value will be set
133
+ * @param value - Value that will be set
134
+ * @param expression - Expression for setting value
135
+ */
136
+ export declare function setValue(object: Dictionary<any>, value: unknown, expression: string): void;
137
+ /**
138
+ * Formats string using '%s', to print '%s' you have to use '%%s'
139
+ * @param str - String containing substitution constants
140
+ * @param args - Arguments that are used for replacement
141
+ */
142
+ export declare function format(str: string, ...args: unknown[]): string;
143
+ /**
144
+ * Performs flatMap over provided array
145
+ * @param array - Array to be reduced using flatMap
146
+ */
147
+ export declare function flatMapArray<TItem>(array: TItem[][]): TItem[];
148
+ /**
149
+ * Serialize object to string that is usable as url query parameter
150
+ * @param obj - Object to be serialized
151
+ * @param replacer - Function that can be used for replacing provided values
152
+ */
153
+ export declare function serializeToUrlQuery<TObj>(obj: TObj, replacer?: (this: any, key: string, value: any) => any): string;
154
+ /**
155
+ * Deserialize value from url query string into object
156
+ * @param queryParamValue - Query param string value
157
+ * @param reviver - Function that can be used for correctly deserializing value
158
+ */
159
+ export declare function deserializeFromUrlQuery<TObj>(queryParamValue: string, reviver?: (this: any, key: string, value: any) => any): TObj;
160
+ /**
161
+ * Converts id to valid html id
162
+ * @param id - Id that is going to be converted to valid html id
163
+ * @param charMap - Character map used during normalization
164
+ */
165
+ export declare function validHtmlId(id: string, charMap?: StringDictionary): string;
166
+ /**
167
+ * Checks whether is element overflown either horizontal, or vertical
168
+ * @param element - Element to be tested for overflow
169
+ */
170
+ export declare function isOverflown(element: HTMLElement): boolean;
171
+ /**
172
+ * Normalizes string, removing accent
173
+ * @param value - String to be normalized
174
+ */
175
+ export declare function normalizeAccent(value: string): string;
176
+ /**
177
+ * Converts instance of Class to equivalent Record type
178
+ * @param instance - Instance which type to be converted
179
+ * @typeparam TType - Type of instance
180
+ */
181
+ export declare function asDictionary<TType>(instance: TType): AsDictionary<TType>;
123
182
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AAGvC;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGjD;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;AAM/F;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,EAAE,OAAO,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,GAAG,MAAM,CAe1F;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAUjD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAyE,GAAG,MAAM,CAUhJ;AAED;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AE,EAAE,GAAG,KAAK,EAAE,CAG7D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,GAAG,MAAM,CAGnH;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,GAAG,IAAI,CAGlI;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB,GAAG,MAAM,CAU9E;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAGzD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGrD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAGxE"}
@@ -1,4 +1,4 @@
1
- export * from './common';
2
- export * from './lang';
3
- export * from './nameof';
1
+ export * from './common';
2
+ export * from './lang';
3
+ export * from './nameof';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,42 +1,42 @@
1
- /**
2
- * Tests whether is object not `null` and not `undefined` at the same time
3
- * @param obj - Object to be tested
4
- */
5
- export declare function isPresent<TObj>(obj: TObj): obj is NonNullable<TObj>;
6
- /**
7
- * Tests whether is object `null` or `undefined`
8
- * @param obj - Object to be tested
9
- */
10
- export declare function isBlank(obj: any): obj is null | undefined;
11
- /**
12
- * Tests whether is object instance of `boolean`
13
- * @param obj - Object to be tested
14
- */
15
- export declare function isBoolean(obj: any): obj is boolean;
16
- /**
17
- * Tests whether is object instance of number
18
- * @param obj - Object to be tested
19
- */
20
- export declare function isNumber(obj: any): obj is number;
21
- /**
22
- * Tests whether is object instance of string
23
- * @param obj - Object to be tested
24
- */
25
- export declare function isString(obj: any): obj is string;
26
- /**
27
- * Tests whether is object instance of function
28
- * @param obj - Object to be tested
29
- */
30
- export declare function isFunction(obj: any): obj is Function;
31
- export declare function isType(obj: any): obj is Function;
32
- export declare function isStringMap(obj: any): obj is Object;
33
- export declare function isStrictStringMap(obj: any): boolean;
34
- export declare function isArray(obj: any): obj is Array<any>;
35
- export declare function isDate(obj: any): obj is Date;
36
- export declare function noop(): void;
37
- export declare function normalizeBlank<TObj extends Object>(obj: TObj | undefined | null): TObj | null;
38
- export declare function isJsObject(o: any): o is Function | Object;
39
- export declare function isPrimitive(obj: any): boolean;
40
- export declare function hasConstructor(value: Object, type: any): boolean;
41
- export declare function isEmptyObject(obj: any): boolean;
1
+ /**
2
+ * Tests whether is object not `null` and not `undefined` at the same time
3
+ * @param obj - Object to be tested
4
+ */
5
+ export declare function isPresent<TObj>(obj: TObj): obj is NonNullable<TObj>;
6
+ /**
7
+ * Tests whether is object `null` or `undefined`
8
+ * @param obj - Object to be tested
9
+ */
10
+ export declare function isBlank(obj: any): obj is null | undefined;
11
+ /**
12
+ * Tests whether is object instance of `boolean`
13
+ * @param obj - Object to be tested
14
+ */
15
+ export declare function isBoolean(obj: any): obj is boolean;
16
+ /**
17
+ * Tests whether is object instance of number
18
+ * @param obj - Object to be tested
19
+ */
20
+ export declare function isNumber(obj: any): obj is number;
21
+ /**
22
+ * Tests whether is object instance of string
23
+ * @param obj - Object to be tested
24
+ */
25
+ export declare function isString(obj: any): obj is string;
26
+ /**
27
+ * Tests whether is object instance of function
28
+ * @param obj - Object to be tested
29
+ */
30
+ export declare function isFunction(obj: any): obj is Function;
31
+ export declare function isType(obj: any): obj is Function;
32
+ export declare function isStringMap(obj: any): obj is Object;
33
+ export declare function isStrictStringMap(obj: any): boolean;
34
+ export declare function isArray(obj: any): obj is Array<any>;
35
+ export declare function isDate(obj: any): obj is Date;
36
+ export declare function noop(): void;
37
+ export declare function normalizeBlank<TObj extends Object>(obj: TObj | undefined | null): TObj | null;
38
+ export declare function isJsObject(o: any): o is Function | Object;
39
+ export declare function isPrimitive(obj: any): boolean;
40
+ export declare function hasConstructor(value: Object, type: any): boolean;
41
+ export declare function isEmptyObject(obj: any): boolean;
42
42
  //# sourceMappingURL=lang.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lang.d.ts","sourceRoot":"","sources":["lang.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAGnE;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,IAAI,GAAC,SAAS,CAGvD;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,OAAO,CAGlD;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM,CAGhD;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM,CAGhD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ,CAGpD;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ,CAGhD;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM,CAGnD;AAID,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAGnD;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,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,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,QAAQ,CAGhD;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,MAAM,CAGnD;AAID,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAGnD;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,CAGnD;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,IAAI,CAG5C;AAED,wBAAgB,IAAI,IAAI,IAAI,CAG3B;AAED,wBAAgB,cAAc,CAAC,IAAI,SAAS,MAAM,EAAE,GAAG,EAAE,IAAI,GAAC,SAAS,GAAC,IAAI,GAAG,IAAI,GAAC,IAAI,CAGvF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,QAAQ,GAAC,MAAM,CAGvD;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAG7C;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAGhE;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAQ/C"}
@@ -1,6 +1,6 @@
1
- /**
2
- * Returns name of property, checked by typescript
3
- * @param name - Name of property that should be returned
4
- */
5
- export declare const nameof: <T>(name: keyof T) => keyof T;
1
+ /**
2
+ * Returns name of property, checked by typescript
3
+ * @param name - Name of property that should be returned
4
+ */
5
+ export declare const nameof: <T>(name: Extract<keyof T, string>) => string;
6
6
  //# sourceMappingURL=nameof.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nameof.d.ts","sourceRoot":"","sources":["nameof.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,MAAM,+BAA6B,CAAC"}
1
+ {"version":3,"file":"nameof.d.ts","sourceRoot":"","sources":["nameof.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,MAAM,yCAAwC,MAAc,CAAC"}
package/version.bak CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 2.0.0-beta.20211108120022
package/.jsbeautifyrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "indent_size": 4,
3
- "brace_style": "expand",
4
- "newline_between_rules": true,
5
- "indent_inner_html": true,
6
- "max_preserve_newlines": 2
7
- }
package/appveyor.yml DELETED
@@ -1,67 +0,0 @@
1
- image: Visual Studio 2019
2
-
3
- environment:
4
- nodejs_version: "10"
5
-
6
- branches:
7
- only:
8
- - /^\d+\.\d+/
9
- - /^v\d+\.\d+\.\d+/
10
-
11
- init:
12
- - ps: |
13
- Install-Product node $env:nodejs_version
14
- "//registry.npmjs.org/:_authToken=$env:npm_auth_token`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII
15
-
16
- cache:
17
- - node_modules
18
-
19
- install:
20
- - cmd: npm install --loglevel error
21
- - cmd: npm run clean
22
-
23
- build: off
24
-
25
- build_script:
26
- - ps: |
27
- $env:NGV_BUILD_NUMBER = $env:APPVEYOR_BUILD_NUMBER
28
-
29
- #stable version build
30
- if($env:APPVEYOR_REPO_TAG -eq "true")
31
- {
32
- $env:APPVEYOR_REPO_TAG_NAME -match "^v(\d+\.\d+)\.\d+"
33
- git checkout "$($Matches[1])" -q
34
-
35
- npm run version:build
36
- Update-AppveyorBuild -Version "$(cat version.bak)"
37
-
38
- $env:NGV_BUILD_NUMBER = -1
39
- npm run deploy
40
-
41
- #release on github
42
- $match = [System.Text.RegularExpressions.Regex]::Match((Get-Content "./changelog.md" -Encoding UTF8 | Out-String).TrimEnd(), "## Version \d+\.\d+\.\d+ (?<date>\(\d+-\d+-\d+\))(?<content>.*?)(?:## Version|`$)", [System.Text.RegularExpressions.RegexOptions]::Singleline)
43
-
44
- Set-AppveyorBuildVariable 'Changelog' $match.Groups["content"].Value
45
- Set-AppveyorBuildVariable 'ChangeDate' $match.Groups["date"].Value
46
- }
47
- else
48
- {
49
- git checkout $env:APPVEYOR_REPO_BRANCH -q
50
-
51
- npm run version:build
52
- Update-AppveyorBuild -Version "$(cat version.bak)"
53
-
54
- $env:NGV_BUILD_NUMBER = -1
55
- npm run deploy:next
56
- }
57
-
58
- - ps: Update-AppveyorBuild -Version "$(cat version.bak)"
59
-
60
- deploy:
61
- - provider: GitHub
62
- description: '$(Changelog)'
63
- auth_token:
64
- secure: FOD7P4H4NF3p30wWrc/CUbtuP1YDUtMGeJgiHGo9P8uwpf+fBcKLxLZ/CLCjTsx1
65
- force_update: true
66
- on:
67
- APPVEYOR_REPO_TAG: true