@qrvey/utils 1.1.0-9 → 1.1.2-1

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 (444) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.json +37 -0
  3. package/README.md +474 -285
  4. package/bitbucket-pipelines.yml +25 -0
  5. package/dist/cjs/constants/COLUMN.js +0 -1
  6. package/dist/cjs/constants/COLUMN_PROPERTY.d.ts +6 -0
  7. package/dist/cjs/constants/COLUMN_PROPERTY.js +0 -1
  8. package/dist/cjs/constants/COLUMN_PROPERTY_VALUE.js +4 -1
  9. package/dist/cjs/date/constants/DATE_DAY_HOURS.d.ts +1 -0
  10. package/dist/cjs/date/constants/DATE_DAY_HOURS.js +29 -0
  11. package/dist/cjs/date/constants/DATE_HOUR_MINUTES.d.ts +1 -0
  12. package/dist/cjs/date/constants/DATE_HOUR_MINUTES.js +65 -0
  13. package/dist/cjs/date/constants/DATE_MINUTE_SECONDS.d.ts +1 -0
  14. package/dist/cjs/date/constants/DATE_MINUTE_SECONDS.js +5 -0
  15. package/dist/cjs/date/constants/DATE_MONTH_DAYS.d.ts +1 -0
  16. package/dist/cjs/date/constants/DATE_MONTH_DAYS.js +36 -0
  17. package/dist/cjs/date/constants/DATE_PROPERTY.js +0 -1
  18. package/dist/cjs/date/constants/DATE_PROPERTY_VALUE.d.ts +8 -0
  19. package/dist/cjs/date/constants/DATE_PROPERTY_VALUE.js +17 -0
  20. package/dist/cjs/date/constants/DATE_P_PROPERTIES.d.ts +2 -0
  21. package/dist/cjs/date/constants/DATE_P_PROPERTIES.js +11 -0
  22. package/dist/cjs/date/constants/DATE_P_VALUES.d.ts +6 -0
  23. package/dist/cjs/date/constants/DATE_P_VALUES.js +8 -0
  24. package/dist/cjs/date/constants/DATE_TIME_P_VALUES.d.ts +6 -0
  25. package/dist/cjs/date/constants/DATE_TIME_P_VALUES.js +8 -0
  26. package/dist/cjs/date/constants/DATE_TIME_VALUES.js +1 -1
  27. package/dist/cjs/date/constants/DATE_WEEK_DAYS.d.ts +1 -0
  28. package/dist/cjs/date/constants/DATE_WEEK_DAYS.js +6 -0
  29. package/dist/cjs/date/constants/DATE_YEAR_DAYS.d.ts +1 -0
  30. package/dist/cjs/date/constants/DATE_YEAR_DAYS.js +370 -0
  31. package/dist/cjs/date/constants/DATE_YEAR_MONTHS.d.ts +1 -0
  32. package/dist/cjs/date/constants/DATE_YEAR_MONTHS.js +4 -0
  33. package/dist/cjs/date/constants/DATE_YEAR_QUARTERS.d.ts +1 -0
  34. package/dist/cjs/date/constants/DATE_YEAR_QUARTERS.js +4 -0
  35. package/dist/cjs/date/constants/index.d.ts +12 -0
  36. package/dist/cjs/date/constants/index.js +12 -0
  37. package/dist/cjs/date/range/getDateRange.js +26 -21
  38. package/dist/cjs/date/relative/Adapter.js +1 -1
  39. package/dist/cjs/date/relative/constants/DATE_FORMATS.d.ts +1 -1
  40. package/dist/cjs/date/relative/constants/DATE_FORMATS.js +3 -3
  41. package/dist/cjs/date/relative/helpers/formatStatement.js +6 -6
  42. package/dist/cjs/filters/adapters/FDToFlatUI.js +5 -12
  43. package/dist/cjs/filters/adapters/FDToUI.js +2 -3
  44. package/dist/cjs/filters/adapters/UIToFlatUI.js +5 -12
  45. package/dist/cjs/filters/adapters/UIToOldLogic.js +9 -1
  46. package/dist/cjs/filters/adapters/adaptFilterData.js +1 -1
  47. package/dist/cjs/filters/adapters/flatUIToFD.js +3 -7
  48. package/dist/cjs/filters/adapters/flatUIToOldLogic.js +41 -62
  49. package/dist/cjs/filters/adapters/flatUIToUI.js +2 -7
  50. package/dist/cjs/filters/adapters/logicToFlatUI.js +89 -74
  51. package/dist/cjs/filters/adapters/transformFilters.d.ts +1 -1
  52. package/dist/cjs/filters/adapters/transformFilters.js +18 -25
  53. package/dist/cjs/filters/constants/backend/FILTER_BACKEND_VALIDATOR.js +0 -1
  54. package/dist/cjs/filters/constants/common/FILTER_GROUPED_COLUMN_OPERATOR.d.ts +2 -0
  55. package/dist/cjs/filters/constants/common/FILTER_GROUPED_COLUMN_OPERATOR.js +4 -0
  56. package/dist/cjs/filters/constants/common/FILTER_OPERATOR.js +0 -1
  57. package/dist/cjs/filters/constants/common/FILTER_VALIDATOR.js +0 -1
  58. package/dist/cjs/filters/constants/common/index.d.ts +1 -0
  59. package/dist/cjs/filters/constants/common/index.js +1 -0
  60. package/dist/cjs/filters/helpers/backend/buildExpression.d.ts +6 -0
  61. package/dist/cjs/filters/helpers/backend/buildExpression.js +9 -2
  62. package/dist/cjs/filters/helpers/backend/getBackendGroupValue.js +2 -1
  63. package/dist/cjs/filters/helpers/backend/getBackendProperty.js +7 -2
  64. package/dist/cjs/filters/helpers/backend/getBackendValues.js +34 -18
  65. package/dist/cjs/filters/helpers/common/arePropertiesDateP.d.ts +8 -0
  66. package/dist/cjs/filters/helpers/common/arePropertiesDateP.js +16 -0
  67. package/dist/cjs/filters/helpers/common/getFilterColumnLabel.js +1 -1
  68. package/dist/cjs/filters/helpers/common/getFilterid.js +1 -1
  69. package/dist/cjs/filters/helpers/common/getFiltersByParams.js +5 -5
  70. package/dist/cjs/filters/helpers/common/getFiltersByVisibility.js +1 -1
  71. package/dist/cjs/filters/helpers/common/getMergeFiltersSettings.d.ts +7 -0
  72. package/dist/cjs/filters/helpers/common/getMergeFiltersSettings.js +16 -0
  73. package/dist/cjs/filters/helpers/common/getParamsToGetFilterSettings.d.ts +5 -0
  74. package/dist/cjs/filters/helpers/common/getParamsToGetFilterSettings.js +11 -1
  75. package/dist/cjs/filters/helpers/common/index.d.ts +2 -0
  76. package/dist/cjs/filters/helpers/common/index.js +2 -0
  77. package/dist/cjs/filters/helpers/common/mergeFilters.d.ts +2 -1
  78. package/dist/cjs/filters/helpers/common/mergeFilters.js +27 -10
  79. package/dist/cjs/filters/helpers/common/resolveDatasetConditions.js +1 -1
  80. package/dist/cjs/filters/helpers/common/resolveFilterConditions.js +2 -3
  81. package/dist/cjs/filters/helpers/common/resolveScopeConditions.js +1 -1
  82. package/dist/cjs/filters/helpers/getAggFiltersFromFilterData.d.ts +1 -1
  83. package/dist/cjs/filters/helpers/getAggFiltersFromFilterData.js +18 -19
  84. package/dist/cjs/filters/helpers/getScopesByHierarchy.js +2 -2
  85. package/dist/cjs/filters/helpers/ui/excludeUIFlatFiltersByScopes.d.ts +1 -1
  86. package/dist/cjs/filters/helpers/ui/excludeUIFlatFiltersByScopes.js +1 -1
  87. package/dist/cjs/filters/helpers/ui/getUIFlatFilterByParams.d.ts +1 -1
  88. package/dist/cjs/filters/helpers/ui/getUIFlatFilterByParams.js +1 -1
  89. package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByParams.d.ts +1 -1
  90. package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByParams.js +1 -1
  91. package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByScopes.d.ts +1 -1
  92. package/dist/cjs/filters/helpers/ui/getUIFlatFiltersByScopes.js +1 -1
  93. package/dist/cjs/filters/helpers/ui/getUIValues.js +6 -5
  94. package/dist/cjs/filters/interfaces/OLD_IFilterDetail.d.ts +3 -0
  95. package/dist/cjs/filters/interfaces/common/IFSFilterExtras.d.ts +3 -0
  96. package/dist/cjs/filters/interfaces/common/IFSFilterExtrasInfo.d.ts +4 -0
  97. package/dist/cjs/filters/interfaces/common/IFSFilterExtrasInfo.js +2 -0
  98. package/dist/cjs/filters/interfaces/common/IFSMergeFiltersSettings.d.ts +7 -0
  99. package/dist/cjs/filters/interfaces/common/IFSMergeFiltersSettings.js +2 -0
  100. package/dist/cjs/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -1
  101. package/dist/cjs/filters/interfaces/common/IFSParamsToGetFilterEnableds.d.ts +9 -0
  102. package/dist/cjs/filters/interfaces/common/IFSParamsToGetFilterEnableds.js +2 -0
  103. package/dist/cjs/filters/interfaces/common/IFSParamsToGetFilterSettings.d.ts +5 -0
  104. package/dist/cjs/filters/interfaces/common/index.d.ts +3 -0
  105. package/dist/cjs/filters/interfaces/common/index.js +3 -0
  106. package/dist/cjs/filters/interfaces/panel/IFPSettingsFilterPanelBodyScopeScope.d.ts +1 -0
  107. package/dist/cjs/filters/interfaces/panel/IFPSettingsFilterPanelHeader.d.ts +1 -0
  108. package/dist/cjs/filters/interfaces/panel/IFPSettingsFilterPanelSettings.d.ts +4 -0
  109. package/dist/cjs/filters/interfaces/panel/IFPSettingsFilterPanelSettingsScope.d.ts +7 -0
  110. package/dist/cjs/filters/interfaces/panel/IFPSettingsFilterPanelSettingsScope.js +2 -0
  111. package/dist/cjs/filters/interfaces/panel/index.d.ts +1 -0
  112. package/dist/cjs/filters/interfaces/panel/index.js +1 -0
  113. package/dist/cjs/format/definition.d.ts +3 -2
  114. package/dist/cjs/format/format.d.ts +1 -1
  115. package/dist/cjs/format/format.js +25 -26
  116. package/dist/cjs/general/array/delete.d.ts +4 -4
  117. package/dist/cjs/general/array/delete.js +8 -6
  118. package/dist/cjs/general/array/filterNestedTree.js +1 -1
  119. package/dist/cjs/general/array/flattenDeep.d.ts +1 -1
  120. package/dist/cjs/general/array/flattenDeep.js +4 -2
  121. package/dist/cjs/general/array/getFirstIndexFromArray.d.ts +1 -1
  122. package/dist/cjs/general/array/getFirstIndexFromArray.js +7 -5
  123. package/dist/cjs/general/array/getLastIndexFromArray.d.ts +1 -1
  124. package/dist/cjs/general/array/getLastIndexFromArray.js +6 -4
  125. package/dist/cjs/general/function/debounce.d.ts +1 -1
  126. package/dist/cjs/general/function/throttled.d.ts +1 -1
  127. package/dist/cjs/general/function/throttled.js +1 -1
  128. package/dist/cjs/general/mix/importScripts.d.ts +1 -1
  129. package/dist/cjs/general/mix/isEmpty.d.ts +5 -4
  130. package/dist/cjs/general/mix/isEmpty.js +12 -6
  131. package/dist/cjs/general/mix/randomId.d.ts +1 -1
  132. package/dist/cjs/general/mix/randomId.js +1 -2
  133. package/dist/cjs/general/mix/size.d.ts +1 -1
  134. package/dist/cjs/general/object/cloneDeep.d.ts +4 -4
  135. package/dist/cjs/general/object/cloneDeep.js +14 -6
  136. package/dist/cjs/general/object/get.d.ts +47 -15
  137. package/dist/cjs/general/object/get.js +61 -37
  138. package/dist/cjs/general/object/getAttribute.d.ts +1 -1
  139. package/dist/cjs/general/object/hasProperty.d.ts +1 -1
  140. package/dist/cjs/general/object/hasProperty.js +1 -1
  141. package/dist/cjs/general/object/index.d.ts +1 -0
  142. package/dist/cjs/general/object/index.js +1 -0
  143. package/dist/cjs/general/object/isObject.d.ts +6 -0
  144. package/dist/cjs/general/object/isObject.js +12 -0
  145. package/dist/cjs/general/object/mapValues.d.ts +1 -1
  146. package/dist/cjs/general/object/mapValues.js +0 -1
  147. package/dist/cjs/general/object/omit.js +1 -1
  148. package/dist/cjs/general/object/pick.js +0 -1
  149. package/dist/cjs/index.d.ts +2 -0
  150. package/dist/cjs/index.js +2 -0
  151. package/dist/cjs/qrvey/getColumnsLabel.js +4 -4
  152. package/dist/cjs/qrvey/index.d.ts +3 -0
  153. package/dist/cjs/qrvey/index.js +15 -0
  154. package/dist/cjs/tokens/index.d.ts +1 -0
  155. package/dist/cjs/tokens/index.js +13 -0
  156. package/dist/cjs/tokens/isTokenLabel.d.ts +6 -0
  157. package/dist/cjs/tokens/isTokenLabel.js +16 -0
  158. package/dist/constants/COLUMN.js +0 -1
  159. package/dist/constants/COLUMN_PROPERTY.d.ts +6 -0
  160. package/dist/constants/COLUMN_PROPERTY.js +0 -1
  161. package/dist/constants/COLUMN_PROPERTY_VALUE.js +4 -1
  162. package/dist/date/constants/DATE_DAY_HOURS.d.ts +1 -0
  163. package/dist/date/constants/DATE_DAY_HOURS.js +26 -0
  164. package/dist/date/constants/DATE_HOUR_MINUTES.d.ts +1 -0
  165. package/dist/date/constants/DATE_HOUR_MINUTES.js +62 -0
  166. package/dist/date/constants/DATE_MINUTE_SECONDS.d.ts +1 -0
  167. package/dist/date/constants/DATE_MINUTE_SECONDS.js +2 -0
  168. package/dist/date/constants/DATE_MONTH_DAYS.d.ts +1 -0
  169. package/dist/date/constants/DATE_MONTH_DAYS.js +33 -0
  170. package/dist/date/constants/DATE_PROPERTY.js +0 -1
  171. package/dist/date/constants/DATE_PROPERTY_VALUE.d.ts +8 -0
  172. package/dist/date/constants/DATE_PROPERTY_VALUE.js +14 -0
  173. package/dist/date/constants/DATE_P_PROPERTIES.d.ts +2 -0
  174. package/dist/date/constants/DATE_P_PROPERTIES.js +8 -0
  175. package/dist/date/constants/DATE_P_VALUES.d.ts +6 -0
  176. package/dist/date/constants/DATE_P_VALUES.js +5 -0
  177. package/dist/date/constants/DATE_TIME_P_VALUES.d.ts +6 -0
  178. package/dist/date/constants/DATE_TIME_P_VALUES.js +5 -0
  179. package/dist/date/constants/DATE_TIME_VALUES.js +1 -1
  180. package/dist/date/constants/DATE_WEEK_DAYS.d.ts +1 -0
  181. package/dist/date/constants/DATE_WEEK_DAYS.js +3 -0
  182. package/dist/date/constants/DATE_YEAR_DAYS.d.ts +1 -0
  183. package/dist/date/constants/DATE_YEAR_DAYS.js +367 -0
  184. package/dist/date/constants/DATE_YEAR_MONTHS.d.ts +1 -0
  185. package/dist/date/constants/DATE_YEAR_MONTHS.js +1 -0
  186. package/dist/date/constants/DATE_YEAR_QUARTERS.d.ts +1 -0
  187. package/dist/date/constants/DATE_YEAR_QUARTERS.js +1 -0
  188. package/dist/date/constants/index.d.ts +12 -0
  189. package/dist/date/constants/index.js +12 -0
  190. package/dist/date/range/getDateRange.js +26 -21
  191. package/dist/date/relative/Adapter.js +2 -2
  192. package/dist/date/relative/constants/DATE_FORMATS.d.ts +1 -1
  193. package/dist/date/relative/constants/DATE_FORMATS.js +3 -3
  194. package/dist/date/relative/helpers/formatStatement.js +7 -7
  195. package/dist/filters/adapters/FDToFlatUI.js +5 -12
  196. package/dist/filters/adapters/FDToUI.js +2 -3
  197. package/dist/filters/adapters/UIToFlatUI.js +5 -12
  198. package/dist/filters/adapters/UIToOldLogic.js +9 -1
  199. package/dist/filters/adapters/adaptFilterData.js +1 -1
  200. package/dist/filters/adapters/flatUIToFD.js +3 -7
  201. package/dist/filters/adapters/flatUIToOldLogic.js +42 -63
  202. package/dist/filters/adapters/flatUIToUI.js +3 -8
  203. package/dist/filters/adapters/logicToFlatUI.js +91 -76
  204. package/dist/filters/adapters/transformFilters.d.ts +1 -1
  205. package/dist/filters/adapters/transformFilters.js +19 -26
  206. package/dist/filters/constants/backend/FILTER_BACKEND_VALIDATOR.js +0 -1
  207. package/dist/filters/constants/common/FILTER_GROUPED_COLUMN_OPERATOR.d.ts +2 -0
  208. package/dist/filters/constants/common/FILTER_GROUPED_COLUMN_OPERATOR.js +1 -0
  209. package/dist/filters/constants/common/FILTER_OPERATOR.js +0 -1
  210. package/dist/filters/constants/common/FILTER_VALIDATOR.js +0 -1
  211. package/dist/filters/constants/common/index.d.ts +1 -0
  212. package/dist/filters/constants/common/index.js +1 -0
  213. package/dist/filters/helpers/backend/buildExpression.d.ts +6 -0
  214. package/dist/filters/helpers/backend/buildExpression.js +9 -2
  215. package/dist/filters/helpers/backend/getBackendGroupValue.js +2 -1
  216. package/dist/filters/helpers/backend/getBackendProperty.js +8 -3
  217. package/dist/filters/helpers/backend/getBackendValues.js +34 -18
  218. package/dist/filters/helpers/common/arePropertiesDateP.d.ts +8 -0
  219. package/dist/filters/helpers/common/arePropertiesDateP.js +12 -0
  220. package/dist/filters/helpers/common/getFilterColumnLabel.js +1 -1
  221. package/dist/filters/helpers/common/getFilterid.js +1 -1
  222. package/dist/filters/helpers/common/getFiltersByParams.js +6 -6
  223. package/dist/filters/helpers/common/getFiltersByVisibility.js +1 -1
  224. package/dist/filters/helpers/common/getMergeFiltersSettings.d.ts +7 -0
  225. package/dist/filters/helpers/common/getMergeFiltersSettings.js +12 -0
  226. package/dist/filters/helpers/common/getParamsToGetFilterSettings.d.ts +5 -0
  227. package/dist/filters/helpers/common/getParamsToGetFilterSettings.js +11 -1
  228. package/dist/filters/helpers/common/index.d.ts +2 -0
  229. package/dist/filters/helpers/common/index.js +2 -0
  230. package/dist/filters/helpers/common/mergeFilters.d.ts +2 -1
  231. package/dist/filters/helpers/common/mergeFilters.js +27 -10
  232. package/dist/filters/helpers/common/resolveDatasetConditions.js +1 -1
  233. package/dist/filters/helpers/common/resolveFilterConditions.js +2 -3
  234. package/dist/filters/helpers/common/resolveScopeConditions.js +1 -1
  235. package/dist/filters/helpers/getAggFiltersFromFilterData.d.ts +1 -1
  236. package/dist/filters/helpers/getAggFiltersFromFilterData.js +18 -19
  237. package/dist/filters/helpers/getScopesByHierarchy.js +2 -2
  238. package/dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.d.ts +1 -1
  239. package/dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js +1 -1
  240. package/dist/filters/helpers/ui/getUIFlatFilterByParams.d.ts +1 -1
  241. package/dist/filters/helpers/ui/getUIFlatFilterByParams.js +1 -1
  242. package/dist/filters/helpers/ui/getUIFlatFiltersByParams.d.ts +1 -1
  243. package/dist/filters/helpers/ui/getUIFlatFiltersByParams.js +1 -1
  244. package/dist/filters/helpers/ui/getUIFlatFiltersByScopes.d.ts +1 -1
  245. package/dist/filters/helpers/ui/getUIFlatFiltersByScopes.js +1 -1
  246. package/dist/filters/helpers/ui/getUIValues.js +6 -5
  247. package/dist/filters/interfaces/OLD_IFilterDetail.d.ts +3 -0
  248. package/dist/filters/interfaces/common/IFSFilterExtras.d.ts +3 -0
  249. package/dist/filters/interfaces/common/IFSFilterExtrasInfo.d.ts +4 -0
  250. package/dist/filters/interfaces/common/IFSFilterExtrasInfo.js +1 -0
  251. package/dist/filters/interfaces/common/IFSMergeFiltersSettings.d.ts +7 -0
  252. package/dist/filters/interfaces/common/IFSMergeFiltersSettings.js +1 -0
  253. package/dist/filters/interfaces/common/IFSParamsToGetFilter.d.ts +2 -1
  254. package/dist/filters/interfaces/common/IFSParamsToGetFilterEnableds.d.ts +9 -0
  255. package/dist/filters/interfaces/common/IFSParamsToGetFilterEnableds.js +1 -0
  256. package/dist/filters/interfaces/common/IFSParamsToGetFilterSettings.d.ts +5 -0
  257. package/dist/filters/interfaces/common/index.d.ts +3 -0
  258. package/dist/filters/interfaces/common/index.js +3 -0
  259. package/dist/filters/interfaces/panel/IFPSettingsFilterPanelBodyScopeScope.d.ts +1 -0
  260. package/dist/filters/interfaces/panel/IFPSettingsFilterPanelHeader.d.ts +1 -0
  261. package/dist/filters/interfaces/panel/IFPSettingsFilterPanelSettings.d.ts +4 -0
  262. package/dist/filters/interfaces/panel/IFPSettingsFilterPanelSettingsScope.d.ts +7 -0
  263. package/dist/filters/interfaces/panel/IFPSettingsFilterPanelSettingsScope.js +1 -0
  264. package/dist/filters/interfaces/panel/index.d.ts +1 -0
  265. package/dist/filters/interfaces/panel/index.js +1 -0
  266. package/dist/format/definition.d.ts +3 -2
  267. package/dist/format/format.d.ts +1 -1
  268. package/dist/format/format.js +12 -13
  269. package/dist/general/array/delete.d.ts +4 -4
  270. package/dist/general/array/delete.js +8 -6
  271. package/dist/general/array/filterNestedTree.js +1 -1
  272. package/dist/general/array/flattenDeep.d.ts +1 -1
  273. package/dist/general/array/flattenDeep.js +4 -2
  274. package/dist/general/array/getFirstIndexFromArray.d.ts +1 -1
  275. package/dist/general/array/getFirstIndexFromArray.js +7 -5
  276. package/dist/general/array/getLastIndexFromArray.d.ts +1 -1
  277. package/dist/general/array/getLastIndexFromArray.js +6 -4
  278. package/dist/general/function/debounce.d.ts +1 -1
  279. package/dist/general/function/throttled.d.ts +1 -1
  280. package/dist/general/function/throttled.js +1 -1
  281. package/dist/general/mix/importScripts.d.ts +1 -1
  282. package/dist/general/mix/isEmpty.d.ts +5 -4
  283. package/dist/general/mix/isEmpty.js +12 -6
  284. package/dist/general/mix/randomId.d.ts +1 -1
  285. package/dist/general/mix/randomId.js +1 -2
  286. package/dist/general/mix/size.d.ts +1 -1
  287. package/dist/general/object/cloneDeep.d.ts +4 -4
  288. package/dist/general/object/cloneDeep.js +14 -6
  289. package/dist/general/object/get.d.ts +47 -15
  290. package/dist/general/object/get.js +59 -34
  291. package/dist/general/object/getAttribute.d.ts +1 -1
  292. package/dist/general/object/hasProperty.d.ts +1 -1
  293. package/dist/general/object/hasProperty.js +1 -1
  294. package/dist/general/object/index.d.ts +1 -0
  295. package/dist/general/object/index.js +1 -0
  296. package/dist/general/object/isObject.d.ts +6 -0
  297. package/dist/general/object/isObject.js +8 -0
  298. package/dist/general/object/mapValues.d.ts +1 -1
  299. package/dist/general/object/mapValues.js +0 -1
  300. package/dist/general/object/omit.js +1 -1
  301. package/dist/general/object/pick.js +0 -1
  302. package/dist/index.d.ts +2 -0
  303. package/dist/index.js +2 -0
  304. package/dist/qrvey/getColumnsLabel.js +5 -5
  305. package/dist/qrvey/index.d.ts +3 -0
  306. package/dist/qrvey/index.js +3 -0
  307. package/dist/tokens/index.d.ts +1 -0
  308. package/dist/tokens/index.js +1 -0
  309. package/dist/tokens/isTokenLabel.d.ts +6 -0
  310. package/dist/tokens/isTokenLabel.js +12 -0
  311. package/package.json +17 -10
  312. package/prepareToPublish.js +52 -0
  313. package/src/constants/COLUMN.ts +1 -1
  314. package/src/constants/COLUMN_PROPERTY.ts +13 -2
  315. package/src/constants/COLUMN_PROPERTY_VALUE.ts +6 -1
  316. package/src/date/constants/DATE_DAY_HOURS.ts +27 -0
  317. package/src/date/constants/DATE_HOUR_MINUTES.ts +63 -0
  318. package/src/date/constants/DATE_MINUTE_SECONDS.ts +3 -0
  319. package/src/date/constants/DATE_MONTH_DAYS.ts +34 -0
  320. package/src/date/constants/DATE_PROPERTY.ts +1 -1
  321. package/src/date/constants/DATE_PROPERTY_VALUE.ts +16 -0
  322. package/src/date/constants/DATE_P_PROPERTIES.ts +10 -0
  323. package/src/date/constants/DATE_P_VALUES.ts +7 -0
  324. package/src/date/constants/DATE_TIME_PROPERTIES.ts +0 -1
  325. package/src/date/constants/DATE_TIME_P_VALUES.ts +7 -0
  326. package/src/date/constants/DATE_TIME_VALUES.ts +1 -1
  327. package/src/date/constants/DATE_WEEK_DAYS.ts +4 -0
  328. package/src/date/constants/DATE_YEAR_DAYS.ts +368 -0
  329. package/src/date/constants/DATE_YEAR_MONTHS.ts +2 -0
  330. package/src/date/constants/DATE_YEAR_QUARTERS.ts +1 -0
  331. package/src/date/constants/index.ts +12 -0
  332. package/src/date/range/getDateRange.ts +46 -42
  333. package/src/date/relative/Adapter.ts +2 -2
  334. package/src/date/relative/constants/DATE_FORMATS.ts +3 -4
  335. package/src/date/relative/constants/RELATIVE_CURSOR_VALUE.ts +1 -1
  336. package/src/date/relative/helpers/formatStatement.ts +8 -8
  337. package/src/date/relative/index.ts +1 -1
  338. package/src/filters/adapters/FDToFlatUI.ts +7 -3
  339. package/src/filters/adapters/FDToUI.ts +5 -6
  340. package/src/filters/adapters/UIToFD.ts +1 -1
  341. package/src/filters/adapters/UIToFlatUI.ts +9 -5
  342. package/src/filters/adapters/UIToOldLogic.ts +11 -3
  343. package/src/filters/adapters/adaptFilterData.ts +1 -1
  344. package/src/filters/adapters/flatUIToFD.ts +5 -1
  345. package/src/filters/adapters/flatUIToOldLogic.ts +57 -71
  346. package/src/filters/adapters/flatUIToUI.ts +4 -1
  347. package/src/filters/adapters/logicToFlatUI.ts +101 -77
  348. package/src/filters/adapters/transformFilters.ts +22 -30
  349. package/src/filters/constants/backend/FILTER_BACKEND_VALIDATOR.ts +1 -1
  350. package/src/filters/constants/common/FILTER_GROUPED_COLUMN_OPERATOR.ts +3 -0
  351. package/src/filters/constants/common/FILTER_OPERATOR.ts +1 -1
  352. package/src/filters/constants/common/FILTER_VALIDATOR.ts +1 -1
  353. package/src/filters/constants/common/index.ts +1 -0
  354. package/src/filters/helpers/backend/buildExpression.ts +11 -3
  355. package/src/filters/helpers/backend/buildFilters.ts +2 -2
  356. package/src/filters/helpers/backend/getBackendGroupValue.ts +2 -1
  357. package/src/filters/helpers/backend/getBackendProperty.ts +6 -3
  358. package/src/filters/helpers/backend/getBackendValues.ts +27 -23
  359. package/src/filters/helpers/builder/getFilterBuilderGeneralConfig.ts +1 -1
  360. package/src/filters/helpers/common/areFiltersEquals.ts +1 -1
  361. package/src/filters/helpers/common/arePropertiesDateP.ts +14 -0
  362. package/src/filters/helpers/common/excludeFiltersByParams.ts +1 -1
  363. package/src/filters/helpers/common/getFilterColumnLabel.ts +1 -1
  364. package/src/filters/helpers/common/getFilterLabel.ts +1 -1
  365. package/src/filters/helpers/common/getFilterid.ts +1 -1
  366. package/src/filters/helpers/common/getFiltersByAggregateColumn.ts +1 -1
  367. package/src/filters/helpers/common/getFiltersByParams.ts +6 -7
  368. package/src/filters/helpers/common/getFiltersByVisibility.ts +1 -1
  369. package/src/filters/helpers/common/getMergeFiltersSettings.ts +13 -0
  370. package/src/filters/helpers/common/getParamsToGetFilterSettings.ts +11 -1
  371. package/src/filters/helpers/common/index.ts +2 -0
  372. package/src/filters/helpers/common/isInValidator.ts +1 -1
  373. package/src/filters/helpers/common/mergeFilters.ts +30 -17
  374. package/src/filters/helpers/common/resolveDatasetConditions.ts +1 -1
  375. package/src/filters/helpers/common/resolveFilterConditions.ts +2 -3
  376. package/src/filters/helpers/common/resolveScopeConditions.ts +1 -1
  377. package/src/filters/helpers/getAggFiltersFromFilterData.ts +20 -23
  378. package/src/filters/helpers/getAvailableScopesIDsByConfig.ts +1 -1
  379. package/src/filters/helpers/getScopesByHierarchy.ts +2 -2
  380. package/src/filters/helpers/ui/excludeUIFlatFiltersByScopes.ts +2 -2
  381. package/src/filters/helpers/ui/getUIFlatFilterByParams.ts +1 -1
  382. package/src/filters/helpers/ui/getUIFlatFiltersByParams.ts +1 -1
  383. package/src/filters/helpers/ui/getUIFlatFiltersByScopes.ts +1 -1
  384. package/src/filters/helpers/ui/getUIValues.ts +9 -9
  385. package/src/filters/helpers/ui/resolveUIFlatFiltersByParams.ts +1 -1
  386. package/src/filters/interfaces/OLD_IFilterDetail.ts +4 -0
  387. package/src/filters/interfaces/backend/IFBExpression.ts +1 -1
  388. package/src/filters/interfaces/common/IFSFilterExtras.ts +4 -0
  389. package/src/filters/interfaces/common/IFSFilterExtrasInfo.ts +5 -0
  390. package/src/filters/interfaces/common/IFSMergeFiltersSettings.ts +8 -0
  391. package/src/filters/interfaces/common/IFSParamsToGetFilter.ts +2 -1
  392. package/src/filters/interfaces/common/IFSParamsToGetFilterEnableds.ts +9 -0
  393. package/src/filters/interfaces/common/IFSParamsToGetFilterSettings.ts +5 -0
  394. package/src/filters/interfaces/common/index.ts +3 -0
  395. package/src/filters/interfaces/panel/IFPSettingsFilterPanelBodyScopeScope.ts +1 -0
  396. package/src/filters/interfaces/panel/IFPSettingsFilterPanelHeader.ts +1 -0
  397. package/src/filters/interfaces/panel/IFPSettingsFilterPanelSettings.ts +4 -0
  398. package/src/filters/interfaces/panel/IFPSettingsFilterPanelSettingsScope.ts +7 -0
  399. package/src/filters/interfaces/panel/IFilterPanelConfig.ts +0 -2
  400. package/src/filters/interfaces/panel/index.ts +1 -0
  401. package/src/filters/interfaces/ui/IFUFilterExtras.ts +1 -1
  402. package/src/format/definition.ts +7 -8
  403. package/src/format/format.ts +19 -22
  404. package/src/general/array/delete.ts +10 -6
  405. package/src/general/array/filterNestedTree.ts +1 -1
  406. package/src/general/array/flattenDeep.ts +3 -2
  407. package/src/general/array/getFirstIndexFromArray.ts +8 -6
  408. package/src/general/array/getLastIndexFromArray.ts +7 -5
  409. package/src/general/function/debounce.ts +2 -2
  410. package/src/general/function/throttled.ts +3 -3
  411. package/src/general/mix/importScripts.ts +1 -1
  412. package/src/general/mix/isEmpty.ts +12 -7
  413. package/src/general/mix/isNull.ts +2 -2
  414. package/src/general/mix/randomId.ts +2 -2
  415. package/src/general/mix/size.ts +1 -1
  416. package/src/general/object/cloneDeep.ts +15 -6
  417. package/src/general/object/get.ts +59 -31
  418. package/src/general/object/getAttribute.ts +1 -1
  419. package/src/general/object/hasProperty.ts +1 -1
  420. package/src/general/object/index.ts +3 -2
  421. package/src/general/object/isObject.ts +8 -0
  422. package/src/general/object/mapValues.ts +2 -2
  423. package/src/general/object/omit.ts +2 -2
  424. package/src/general/object/pick.ts +1 -1
  425. package/src/general/string/capitalize.ts +1 -1
  426. package/src/index.ts +3 -1
  427. package/src/qrvey/getColumnsLabel.ts +5 -5
  428. package/src/qrvey/index.ts +3 -0
  429. package/src/qrvey/isComplexColumn.ts +1 -1
  430. package/src/qrvey/isDateColumn.ts +1 -1
  431. package/src/stencil/decorators/Config.ts +2 -2
  432. package/src/tokens/index.ts +1 -0
  433. package/src/tokens/isTokenLabel.ts +13 -0
  434. package/src/typescript/decorators/Debounce.ts +2 -2
  435. package/src/typescript/decorators/Throttled.ts +2 -2
  436. package/test/format.test.js +97 -5
  437. package/test/general/array/delete.test.js +64 -0
  438. package/test/general/array/flattenDeep.test.js +44 -0
  439. package/test/general/array/getFirstIndexFromArray.test.js +56 -0
  440. package/test/general/array/getLastIndexFromArray.test.js +56 -0
  441. package/test/general/mix/isEmpty.test.js +144 -0
  442. package/test/general/object/cloneDeep.test.js +152 -0
  443. package/test/general/object/get.test.js +247 -0
  444. package/test/relative.test.js +24 -24
package/.eslintignore ADDED
@@ -0,0 +1,5 @@
1
+ node_modules
2
+ dist
3
+ **/*.test.js
4
+
5
+ src/typescript/DeepPartial.ts
package/.eslintrc.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "root": true,
3
+ "parser": "@typescript-eslint/parser",
4
+ "parserOptions": {
5
+ "project": "./tsconfig.json"
6
+ },
7
+ "plugins": [
8
+ "@typescript-eslint"
9
+ ],
10
+ "env": {
11
+ "browser": true
12
+ },
13
+ "extends": [
14
+ "eslint:recommended",
15
+ "plugin:@typescript-eslint/recommended"
16
+ ],
17
+ "rules": {
18
+ "no-useless-escape": "warn",
19
+ "object-curly-spacing": "off",
20
+ "comma-spacing": "off",
21
+ "semi": "off",
22
+ "no-unused-vars": "off",
23
+
24
+ "@typescript-eslint/no-inferrable-types": "warn",
25
+ "@typescript-eslint/object-curly-spacing": ["warn", "always"],
26
+ "@typescript-eslint/no-extra-semi": ["warn"],
27
+ "@typescript-eslint/no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
28
+ "@typescript-eslint/no-duplicate-imports": ["error", { "includeExports": true }],
29
+ "@typescript-eslint/comma-spacing": ["warn"],
30
+ "@typescript-eslint/no-extra-parens": ["warn", "all", { "conditionalAssign": false, "nestedBinaryExpressions": false }],
31
+ "@typescript-eslint/semi": ["error", "always", { "omitLastInOneLineBlock": false }],
32
+ "@typescript-eslint/default-param-last": ["error"],
33
+ "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
34
+ "@typescript-eslint/no-var-requires": ["warn"],
35
+ "@typescript-eslint/no-this-alias": ["error", { "allowedNames": ["self", "ctx"] }]
36
+ }
37
+ }
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.1.0-9*
1
+ # [@qrvey/utils](https://bitbucket.org/qrvey/qrvey_utils/wiki/Home) *1.1.2-1*
2
2
 
3
3
  > Helper, Utils for all Qrvey Projects
4
4
 
@@ -80,6 +80,91 @@ Get an string of the properties of the given column.
80
80
 
81
81
 
82
82
 
83
+ ### dist/tokens/isTokenLabel.js
84
+
85
+
86
+ #### isTokenLabel(label)
87
+
88
+ Get a text and evaluate if it matchs with a token box label.
89
+
90
+
91
+
92
+
93
+ ##### Parameters
94
+
95
+ | Name | Type | Description | |
96
+ | ---- | ---- | ----------- | -------- |
97
+ | label | | string to evaluate |   |
98
+
99
+
100
+
101
+
102
+ ##### Returns
103
+
104
+
105
+ - True is label matchs; otherwise false
106
+
107
+
108
+
109
+
110
+ ### dist/date/range/getDateRange.js
111
+
112
+
113
+ #### getDateRange(value, dateGroupLabel, withTime)
114
+
115
+ Get date range object from a string date value
116
+
117
+
118
+
119
+
120
+ ##### Parameters
121
+
122
+ | Name | Type | Description | |
123
+ | ---- | ---- | ----------- | -------- |
124
+ | value | `String` | string date value |   |
125
+ | dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' |   |
126
+ | withTime | `Boolean` | determines if the date range will include time. Default is true |   |
127
+
128
+
129
+
130
+
131
+ ##### Examples
132
+
133
+ ```javascript
134
+ // 1) Year:
135
+ getDateRange('2020', 'YEAR');
136
+ // Will return:
137
+ {
138
+ from: '01/01/2020 00:00:00',
139
+ to: '12/31/2020 23:59:59'
140
+ }
141
+
142
+ // 2) Quarter:
143
+ getDateRange('Q3 2020', 'QUARTER');
144
+ // Will return:
145
+ {
146
+ from: '07/01/2020 00:00:00',
147
+ to: '09/30/2020 23:59:59'
148
+ }
149
+
150
+ // 3) Month:
151
+ getDateRange('Oct 2020', 'MONTH');
152
+ // Will return:
153
+ {
154
+ from: '10/01/2020 00:00:00',
155
+ to: '10/31/2020 23:59:59'
156
+ }
157
+ ```
158
+
159
+
160
+ ##### Returns
161
+
162
+
163
+ - `Object` an object with the date range with two string date properties: from and to
164
+
165
+
166
+
167
+
83
168
  ### dist/date/relative/Adapter.js
84
169
 
85
170
 
@@ -293,64 +378,6 @@ Output:
293
378
 
294
379
 
295
380
 
296
- ### dist/date/range/getDateRange.js
297
-
298
-
299
- #### getDateRange(value, dateGroupLabel, withTime)
300
-
301
- Get date range object from a string date value
302
-
303
-
304
-
305
-
306
- ##### Parameters
307
-
308
- | Name | Type | Description | |
309
- | ---- | ---- | ----------- | -------- |
310
- | value | `String` | string date value |   |
311
- | dateGroupLabel | `String` | could be 'YEAR', 'QUARTER', 'MONTH' or 'DAY'. Deafult is 'DAY' |   |
312
- | withTime | `Boolean` | determines if the date range will include time. Default is true |   |
313
-
314
-
315
-
316
-
317
- ##### Examples
318
-
319
- ```javascript
320
- // 1) Year:
321
- getDateRange('2020', 'YEAR');
322
- // Will return:
323
- {
324
- from: '01/01/2020 00:00:00',
325
- to: '12/31/2020 23:59:59'
326
- }
327
-
328
- // 2) Quarter:
329
- getDateRange('Q3 2020', 'QUARTER');
330
- // Will return:
331
- {
332
- from: '07/01/2020 00:00:00',
333
- to: '09/30/2020 23:59:59'
334
- }
335
-
336
- // 3) Month:
337
- getDateRange('Oct 2020', 'MONTH');
338
- // Will return:
339
- {
340
- from: '10/01/2020 00:00:00',
341
- to: '10/31/2020 23:59:59'
342
- }
343
- ```
344
-
345
-
346
- ##### Returns
347
-
348
-
349
- - `Object` an object with the date range with two string date properties: from and to
350
-
351
-
352
-
353
-
354
381
  ### dist/filters/adapters/FDToFlatUI.js
355
382
 
356
383
 
@@ -1144,29 +1171,6 @@ const filterData = transformFilters(oldPreferenceFilters, 'ANALYZE');
1144
1171
 
1145
1172
 
1146
1173
 
1147
- #### isTokenBoxLabel(label)
1148
-
1149
- Get a text and evaluate if it matchs with a token box label.
1150
-
1151
-
1152
-
1153
-
1154
- ##### Parameters
1155
-
1156
- | Name | Type | Description | |
1157
- | ---- | ---- | ----------- | -------- |
1158
- | label | | string to evaluate |   |
1159
-
1160
-
1161
-
1162
-
1163
- ##### Returns
1164
-
1165
-
1166
- - True is label matchs; otherwise false
1167
-
1168
-
1169
-
1170
1174
 
1171
1175
  ### dist/filters/helpers/applyHierarchyForAggFilters.js
1172
1176
 
@@ -1279,12 +1283,12 @@ Gets the Scopes IDS for the Available Scope function by any config
1279
1283
 
1280
1284
 
1281
1285
 
1282
- ### dist/general/array/delete.js
1286
+ ### dist/general/array/filterNestedTree.js
1283
1287
 
1284
1288
 
1285
- #### ArrayDelete(array, index)
1289
+ #### filterNestedTree(arr, childArrKey, condition)
1286
1290
 
1287
- Inmutable Array Item deletion
1291
+ Filters a nested tree array by a custom condition on the las child node
1288
1292
 
1289
1293
 
1290
1294
 
@@ -1293,8 +1297,9 @@ Inmutable Array Item deletion
1293
1297
 
1294
1298
  | Name | Type | Description | |
1295
1299
  | ---- | ---- | ----------- | -------- |
1296
- | array | `Array` | List to loo for item to delte |   |
1297
- | index | `Number` | position of item to delete |   |
1300
+ | arr | | nested tree array |   |
1301
+ | childArrKey | | property representing the children array on the nested tree |   |
1302
+ | condition | | function callback that determines if the filter is applied on the last child node of the nested tree |   |
1298
1303
 
1299
1304
 
1300
1305
 
@@ -1302,17 +1307,17 @@ Inmutable Array Item deletion
1302
1307
  ##### Returns
1303
1308
 
1304
1309
 
1305
- - new Array
1310
+ - array filtered
1306
1311
 
1307
1312
 
1308
1313
 
1309
1314
 
1310
- ### dist/general/array/filterNestedTree.js
1315
+ ### dist/general/array/delete.js
1311
1316
 
1312
1317
 
1313
- #### filterNestedTree(arr, childArrKey, condition)
1318
+ #### ArrayDelete(array, index)
1314
1319
 
1315
- Filters a nested tree array by a custom condition on the las child node
1320
+ Inmutable Array Item deletion
1316
1321
 
1317
1322
 
1318
1323
 
@@ -1321,9 +1326,8 @@ Filters a nested tree array by a custom condition on the las child node
1321
1326
 
1322
1327
  | Name | Type | Description | |
1323
1328
  | ---- | ---- | ----------- | -------- |
1324
- | arr | | nested tree array |   |
1325
- | childArrKey | | property representing the children array on the nested tree |   |
1326
- | condition | | function callback that determines if the filter is applied on the last child node of the nested tree |   |
1329
+ | array | `Array` | a collection of items to delete |   |
1330
+ | index | `Number` | the position of the item to delete |   |
1327
1331
 
1328
1332
 
1329
1333
 
@@ -1331,7 +1335,7 @@ Filters a nested tree array by a custom condition on the las child node
1331
1335
  ##### Returns
1332
1336
 
1333
1337
 
1334
- - array filtered
1338
+ - a new Array or the given parameter when is empty or not an array
1335
1339
 
1336
1340
 
1337
1341
 
@@ -1363,12 +1367,12 @@ Flat deeply an array
1363
1367
 
1364
1368
 
1365
1369
 
1366
- ### dist/general/array/getFirstIndexFromArray.js
1370
+ ### dist/general/array/getLastIndexFromArray.js
1367
1371
 
1368
1372
 
1369
- #### getFirstIndexFromArray(array, callback)
1373
+ #### getLastIndexFromArray(array, callback)
1370
1374
 
1371
- Gets the first index from the array by a callback condition
1375
+ Gets the last index from the array by a callback condition
1372
1376
 
1373
1377
 
1374
1378
 
@@ -1386,17 +1390,17 @@ Gets the first index from the array by a callback condition
1386
1390
  ##### Returns
1387
1391
 
1388
1392
 
1389
- - the first index of the array. -1 when the condition is not satisfied
1393
+ - the last index of the array. -1 when the condition is not satisfied
1390
1394
 
1391
1395
 
1392
1396
 
1393
1397
 
1394
- ### dist/general/array/getLastIndexFromArray.js
1398
+ ### dist/general/array/getFirstIndexFromArray.js
1395
1399
 
1396
1400
 
1397
- #### getLastIndexFromArray(array, callback)
1401
+ #### getFirstIndexFromArray(array, callback)
1398
1402
 
1399
- Gets the last index from the array by a callback condition
1403
+ Gets the first index from the array by a callback condition
1400
1404
 
1401
1405
 
1402
1406
 
@@ -1414,7 +1418,7 @@ Gets the last index from the array by a callback condition
1414
1418
  ##### Returns
1415
1419
 
1416
1420
 
1417
- - the last index of the array. -1 when the condition is not satisfied
1421
+ - the first index of the array. -1 when the condition is not satisfied
1418
1422
 
1419
1423
 
1420
1424
 
@@ -1475,12 +1479,12 @@ Make sure to only invokes _fn_ at most once per every _time_ milliseconds
1475
1479
 
1476
1480
 
1477
1481
 
1478
- ### dist/general/object/get.js
1482
+ ### dist/general/mix/importScripts.js
1479
1483
 
1480
1484
 
1481
- #### get(obj, path, def)
1485
+ #### importScripts(scripts)
1482
1486
 
1483
- Gets the value at `path` of `obj`. If the resolved value is _undefined_, the `def` is returned in its place.
1487
+ Import a set of external Scripts given the URL in both serie and cascade way
1484
1488
 
1485
1489
 
1486
1490
 
@@ -1489,9 +1493,12 @@ Gets the value at `path` of `obj`. If the resolved value is _undefined_, the `de
1489
1493
 
1490
1494
  | Name | Type | Description | |
1491
1495
  | ---- | ---- | ----------- | -------- |
1492
- | obj | | |   |
1493
- | path | | |   |
1494
- | def | | |   |
1496
+ | scripts | `Array.<String>` `Array.<Object>` | can be an array of string or an array of object with the follow structure: | &nbsp; |
1497
+ | scripts.url | `String` | CDN URL | &nbsp; |
1498
+ | scripts.namespace | `String` `Function` | (Optional) if is a String, that name is evaluated on Window[namespace] object otherwise the Function is invoked expecting a Thrutly value | &nbsp; |
1499
+ | scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
1500
+ | scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
1501
+ | scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | &nbsp; |
1495
1502
 
1496
1503
 
1497
1504
 
@@ -1499,12 +1506,56 @@ Gets the value at `path` of `obj`. If the resolved value is _undefined_, the `de
1499
1506
  ##### Examples
1500
1507
 
1501
1508
  ```javascript
1502
- const object = { 'a': [{ 'b': { 'c': 3 } }] };
1503
- get(object, 'a[0].b.c'); // => 3
1504
- get(object, 'a.b.c', 'default'); // => 'default'
1509
+ // 1) Simple script (paralell loading)
1510
+ importScripts(['http://myscript.js', 'http://another.js']);
1511
+
1512
+ // 2) Loading `.js` and `.esm.js` script (parallel loading)
1513
+ importScripts([
1514
+ { url: 'http://myscript.esm.js', type: 'module' },
1515
+ { url: 'http://myscript.js', noModule: true }
1516
+ ]);
1517
+
1518
+ // 3) import dependent scripts (cascade)
1519
+ importScripts([
1520
+ { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
1521
+ ]);
1522
+
1523
+ // 4) mix
1524
+ importScripts([
1525
+ { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
1526
+ { url: 'http://another.esm.js', type: 'module' },
1527
+ { url: 'http://another.js', noModule: true },
1528
+ 'http://simplescript.js'
1529
+ ]);
1505
1530
  ```
1506
1531
 
1507
1532
 
1533
+ ##### Returns
1534
+
1535
+
1536
+ - `Promise` Promise when all script have been loaded
1537
+
1538
+
1539
+
1540
+ #### loadScript(url, type, noModule)
1541
+
1542
+ Creates the script element and appends to document.head
1543
+ return a Promise that is resolved when the script is loaded
1544
+
1545
+
1546
+
1547
+
1548
+ ##### Parameters
1549
+
1550
+ | Name | Type | Description | |
1551
+ | ---- | ---- | ----------- | -------- |
1552
+ | url | `String` | Cdn Url | &nbsp; |
1553
+ | type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
1554
+ | noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
1555
+
1556
+
1557
+
1558
+
1508
1559
  ##### Returns
1509
1560
 
1510
1561
 
@@ -1513,13 +1564,12 @@ Gets the value at `path` of `obj`. If the resolved value is _undefined_, the `de
1513
1564
 
1514
1565
 
1515
1566
 
1516
- ### dist/general/object/getAttribute.js
1567
+ ### dist/general/mix/isEmpty.js
1517
1568
 
1518
1569
 
1519
- #### getAttribute(obj, key)
1570
+ #### isEmpty(variable, includeFalsy)
1520
1571
 
1521
- search for properties in different case styles such as: lower, upper, camel and pascal
1522
- But for this, is required ask for a property in snake_case style
1572
+ Validates if the given argument is empty
1523
1573
 
1524
1574
 
1525
1575
 
@@ -1528,33 +1578,54 @@ But for this, is required ask for a property in snake_case style
1528
1578
 
1529
1579
  | Name | Type | Description | |
1530
1580
  | ---- | ---- | ----------- | -------- |
1531
- | obj | `object` | object to look for | &nbsp; |
1532
- | key | `string` | String attribute in snake_case style | &nbsp; |
1581
+ | variable | | the given variable | &nbsp; |
1582
+ | includeFalsy | | flag to determine include the falsy variables into the validation | &nbsp; |
1533
1583
 
1534
1584
 
1535
1585
 
1536
1586
 
1537
- ##### Examples
1587
+ ##### Returns
1588
+
1589
+
1590
+ - true: the given argument is empty; false: is not.
1591
+
1592
+
1593
+
1594
+
1595
+ ### dist/general/mix/randomId.js
1596
+
1597
+
1598
+ #### randomId(length)
1599
+
1600
+ create random unique string
1601
+
1602
+
1603
+
1604
+
1605
+ ##### Parameters
1606
+
1607
+ | Name | Type | Description | |
1608
+ | ---- | ---- | ----------- | -------- |
1609
+ | length | `Number` | size of the generated string. Default 8 | &nbsp; |
1610
+
1538
1611
 
1539
- ```javascript
1540
- getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
1541
- ```
1542
1612
 
1543
1613
 
1544
1614
  ##### Returns
1545
1615
 
1546
1616
 
1547
- - `Void`
1617
+ - `String`
1548
1618
 
1549
1619
 
1550
1620
 
1551
1621
 
1552
- ### dist/general/object/hasProperty.js
1622
+ ### dist/general/mix/isNull.js
1553
1623
 
1554
1624
 
1555
- #### _hasProperty(obj, property)
1625
+ #### isNull(arg)
1556
1626
 
1557
- Use the hasOwnProperty in order to verify if the given property exists in the object.
1627
+ return if a given variable is either `null` or `undefined`
1628
+ useful to avoid falsify validating Number Zero (0)
1558
1629
 
1559
1630
 
1560
1631
 
@@ -1563,39 +1634,55 @@ Use the hasOwnProperty in order to verify if the given property exists in the ob
1563
1634
 
1564
1635
  | Name | Type | Description | |
1565
1636
  | ---- | ---- | ----------- | -------- |
1566
- | obj | `object` | an object | &nbsp; |
1567
- | property | `string` | String to verify if exists in the object as property | &nbsp; |
1637
+ | arg | `any` | | &nbsp; |
1568
1638
 
1569
1639
 
1570
1640
 
1571
1641
 
1572
- ##### Examples
1642
+ ##### Returns
1643
+
1644
+
1645
+ - `Boolean`
1646
+
1647
+
1648
+
1649
+
1650
+ ### dist/general/mix/size.js
1651
+
1652
+
1653
+ #### size(obj)
1654
+
1655
+ get the length of an Array or String and also the number of first level attributes
1656
+ in an Object.
1657
+ For `null` or `undefined` argument the returned value will be 0.
1658
+
1659
+
1660
+
1661
+
1662
+ ##### Parameters
1663
+
1664
+ | Name | Type | Description | |
1665
+ | ---- | ---- | ----------- | -------- |
1666
+ | obj | `Any` | | &nbsp; |
1573
1667
 
1574
- ```javascript
1575
- const prop = 'prop2'
1576
- const obj1 = { prop1: 'hello', prop2: 'world'}
1577
- _hasProperty(ob1, prop1) // true
1578
1668
 
1579
- const obj2 = { prop1: 'hello world' }
1580
- _hasProperty(ob1, prop2) // false
1581
- ```
1582
1669
 
1583
1670
 
1584
1671
  ##### Returns
1585
1672
 
1586
1673
 
1587
- - True if the object has the given property; otherwise, false.
1674
+ - `Number`
1588
1675
 
1589
1676
 
1590
1677
 
1591
1678
 
1592
- ### dist/general/object/mapValues.js
1679
+ ### dist/general/object/cloneDeep.js
1593
1680
 
1594
1681
 
1595
- #### mapValues(baseObject, iteratee)
1682
+ #### cloneDeep(obj)
1596
1683
 
1597
- Invoke iteratee (function) for each object key-value pair
1598
- and return a mapped object
1684
+ A simple Deep Cloning function. Valid only for primivite values and object with primitive values.
1685
+ Not to use this function with inner objects and functions
1599
1686
 
1600
1687
 
1601
1688
 
@@ -1604,8 +1691,7 @@ and return a mapped object
1604
1691
 
1605
1692
  | Name | Type | Description | |
1606
1693
  | ---- | ---- | ----------- | -------- |
1607
- | baseObject | `Object` | Base object. | &nbsp; |
1608
- | iteratee | `Function` | The executed per iteration. | &nbsp; |
1694
+ | obj | | The object | &nbsp; |
1609
1695
 
1610
1696
 
1611
1697
 
@@ -1613,17 +1699,21 @@ and return a mapped object
1613
1699
  ##### Returns
1614
1700
 
1615
1701
 
1616
- - `Object` New mapped object.
1702
+ - The new reference object or the given object if the parsing is incorrect or empty
1617
1703
 
1618
1704
 
1619
1705
 
1620
1706
 
1621
- ### dist/general/object/omit.js
1707
+ ### dist/general/object/get.js
1622
1708
 
1623
1709
 
1624
- #### omit(obj, props)
1710
+ #### _get(baseObject, path, defaultValue)
1625
1711
 
1626
- return a nwe Object excluding attributes in _props_ list
1712
+ Like lodash _.get.
1713
+ Gets the value at path of object. If the resolved value is undefined, the defaultValue is returned in its place.
1714
+
1715
+ Empty arrays and empty objects are returned but the defaultValue is not
1716
+ Undefined and null values will return the defaultValue.
1627
1717
 
1628
1718
 
1629
1719
 
@@ -1632,26 +1722,52 @@ return a nwe Object excluding attributes in _props_ list
1632
1722
 
1633
1723
  | Name | Type | Description | |
1634
1724
  | ---- | ---- | ----------- | -------- |
1635
- | obj | `Object` | base object | &nbsp; |
1636
- | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
1725
+ | baseObject | | The object to query | &nbsp; |
1726
+ | path | | The string path or collection of string paths of the property to get. | &nbsp; |
1727
+ | defaultValue | | The value returned for undefined resolved values. | &nbsp; |
1728
+
1729
+
1637
1730
 
1638
1731
 
1732
+ ##### Examples
1733
+
1734
+ ```javascript
1735
+ // returns 'Hello'
1736
+ _get({ item1: 'Hello', item2: 'World' }, 'item1')
1737
+ ```
1738
+ ```javascript
1739
+ // returns 'A simple Hello'
1740
+ _get({ item1: 'Hello', item2: 'World' }, 'item3', 'A simple Hello')
1741
+ ```
1742
+ ```javascript
1743
+ // returns 'Hello Again'
1744
+ _get({ item1: { item11: 'Hello Again' }, item2: {} }, 'item1.item11')
1745
+ ```
1746
+ ```javascript
1747
+ // returns 'Hello 2'
1748
+ _get({ item1: ['Hello 1', 'Hello 2' }, item2: [] }, 'item1[1]')
1749
+ ```
1750
+ ```javascript
1751
+ // returns 'Hello Again'
1752
+ _get({ item1: { item11: 'Hello Again' }, item2: {} }, ['item1', 'item11'])
1753
+ ```
1639
1754
 
1640
1755
 
1641
1756
  ##### Returns
1642
1757
 
1643
1758
 
1644
- - `Object` clean object
1759
+ - the resolved value.
1645
1760
 
1646
1761
 
1647
1762
 
1648
1763
 
1649
- ### dist/general/object/pick.js
1764
+ ### dist/general/object/getAttribute.js
1650
1765
 
1651
1766
 
1652
- #### pick(baseObject, keys)
1767
+ #### getAttribute(obj, key)
1653
1768
 
1654
- return a new object just with attributes in _keys_ list
1769
+ search for properties in different case styles such as: lower, upper, camel and pascal
1770
+ But for this, is required ask for a property in snake_case style
1655
1771
 
1656
1772
 
1657
1773
 
@@ -1660,26 +1776,33 @@ return a new object just with attributes in _keys_ list
1660
1776
 
1661
1777
  | Name | Type | Description | |
1662
1778
  | ---- | ---- | ----------- | -------- |
1663
- | baseObject | `Object` | base object | &nbsp; |
1664
- | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
1779
+ | obj | `object` | object to look for | &nbsp; |
1780
+ | key | `string` | String attribute in snake_case style | &nbsp; |
1781
+
1782
+
1665
1783
 
1666
1784
 
1785
+ ##### Examples
1786
+
1787
+ ```javascript
1788
+ getAttribute(obj, 'snake_case') //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
1789
+ ```
1667
1790
 
1668
1791
 
1669
1792
  ##### Returns
1670
1793
 
1671
1794
 
1672
- - `Object` new object just with desired attributes
1795
+ - `Void`
1673
1796
 
1674
1797
 
1675
1798
 
1676
1799
 
1677
- ### dist/general/mix/importScripts.js
1800
+ ### dist/general/object/hasProperty.js
1678
1801
 
1679
1802
 
1680
- #### importScripts(scripts)
1803
+ #### _hasProperty(obj, property)
1681
1804
 
1682
- Import a set of external Scripts given the URL in both serie and cascade way
1805
+ Use the hasOwnProperty in order to verify if the given property exists in the object.
1683
1806
 
1684
1807
 
1685
1808
 
@@ -1688,12 +1811,8 @@ Import a set of external Scripts given the URL in both serie and cascade way
1688
1811
 
1689
1812
  | Name | Type | Description | |
1690
1813
  | ---- | ---- | ----------- | -------- |
1691
- | scripts | `Array.<String>` `Array.<Object>` | can be an array of string or an array of object with the follow structure: | &nbsp; |
1692
- | scripts.url | `String` | CDN URL | &nbsp; |
1693
- | scripts.namespace | `String` `Function` | (Optional) if is a String, that name is evaluated on Window[namespace] object otherwise the Function is invoked expecting a Thrutly value | &nbsp; |
1694
- | scripts.type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
1695
- | scripts.noModule | `Boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
1696
- | scripts.dependencies | `Array.<Object>` | an array with the same structure to load in cascade mode | &nbsp; |
1814
+ | obj | `object` | an object | &nbsp; |
1815
+ | property | `string` | String to verify if exists in the object as property | &nbsp; |
1697
1816
 
1698
1817
 
1699
1818
 
@@ -1701,41 +1820,29 @@ Import a set of external Scripts given the URL in both serie and cascade way
1701
1820
  ##### Examples
1702
1821
 
1703
1822
  ```javascript
1704
- // 1) Simple script (paralell loading)
1705
- importScripts(['http://myscript.js', 'http://another.js']);
1706
-
1707
- // 2) Loading `.js` and `.esm.js` script (parallel loading)
1708
- importScripts([
1709
- { url: 'http://myscript.esm.js', type: 'module' },
1710
- { url: 'http://myscript.js', noModule: true }
1711
- ]);
1712
-
1713
- // 3) import dependent scripts (cascade)
1714
- importScripts([
1715
- { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] }
1716
- ]);
1823
+ const prop = 'prop2'
1824
+ const obj1 = { prop1: 'hello', prop2: 'world'}
1825
+ _hasProperty(ob1, prop1) // true
1717
1826
 
1718
- // 4) mix
1719
- importScripts([
1720
- { url: 'http://myscript.js', dependencies: ['http://myscript.plugin.js'] },
1721
- { url: 'http://another.esm.js', type: 'module' },
1722
- { url: 'http://another.js', noModule: true },
1723
- 'http://simplescript.js'
1724
- ]);
1827
+ const obj2 = { prop1: 'hello world' }
1828
+ _hasProperty(ob1, prop2) // false
1725
1829
  ```
1726
1830
 
1727
1831
 
1728
1832
  ##### Returns
1729
1833
 
1730
1834
 
1731
- - `Promise` Promise when all script have been loaded
1835
+ - True if the object has the given property; otherwise, false.
1732
1836
 
1733
1837
 
1734
1838
 
1735
- #### loadScript(url, type, noModule)
1736
1839
 
1737
- Creates the script element and appends to document.head
1738
- return a Promise that is resolved when the script is loaded
1840
+ ### dist/general/object/isObject.js
1841
+
1842
+
1843
+ #### isObject(obj)
1844
+
1845
+ Checks if the given argument is an object type
1739
1846
 
1740
1847
 
1741
1848
 
@@ -1744,9 +1851,7 @@ return a Promise that is resolved when the script is loaded
1744
1851
 
1745
1852
  | Name | Type | Description | |
1746
1853
  | ---- | ---- | ----------- | -------- |
1747
- | url | `String` | Cdn Url | &nbsp; |
1748
- | type | `String` | (Optional) it could be `module` of `text/javascript`. Default `text/javascript` | &nbsp; |
1749
- | noModule | `boolean` | (Optional) add `momodule` attribute to script tag. Default `false` | &nbsp; |
1854
+ | obj | | the variable to check | &nbsp; |
1750
1855
 
1751
1856
 
1752
1857
 
@@ -1754,17 +1859,17 @@ return a Promise that is resolved when the script is loaded
1754
1859
  ##### Returns
1755
1860
 
1756
1861
 
1757
- - `Void`
1862
+ - True: It is an object; False: It is not.
1758
1863
 
1759
1864
 
1760
1865
 
1761
1866
 
1762
- ### dist/general/mix/isEmpty.js
1867
+ ### dist/general/object/omit.js
1763
1868
 
1764
1869
 
1765
- #### isEmpty(obj)
1870
+ #### omit(obj, props)
1766
1871
 
1767
- return if an String, object or string is empty or not
1872
+ return a nwe Object excluding attributes in _props_ list
1768
1873
 
1769
1874
 
1770
1875
 
@@ -1773,7 +1878,8 @@ return if an String, object or string is empty or not
1773
1878
 
1774
1879
  | Name | Type | Description | |
1775
1880
  | ---- | ---- | ----------- | -------- |
1776
- | obj | `Any` | | &nbsp; |
1881
+ | obj | `Object` | base object | &nbsp; |
1882
+ | props | `Array.<String>` | list of attribute to exclude | &nbsp; |
1777
1883
 
1778
1884
 
1779
1885
 
@@ -1781,18 +1887,18 @@ return if an String, object or string is empty or not
1781
1887
  ##### Returns
1782
1888
 
1783
1889
 
1784
- - `boolean`
1890
+ - `Object` clean object
1785
1891
 
1786
1892
 
1787
1893
 
1788
1894
 
1789
- ### dist/general/mix/isNull.js
1895
+ ### dist/general/object/mapValues.js
1790
1896
 
1791
1897
 
1792
- #### isNull(arg)
1898
+ #### mapValues(baseObject, iteratee)
1793
1899
 
1794
- return if a given variable is either `null` or `undefined`
1795
- useful to avoid falsify validating Number Zero (0)
1900
+ Invoke iteratee (function) for each object key-value pair
1901
+ and return a mapped object
1796
1902
 
1797
1903
 
1798
1904
 
@@ -1801,7 +1907,8 @@ useful to avoid falsify validating Number Zero (0)
1801
1907
 
1802
1908
  | Name | Type | Description | |
1803
1909
  | ---- | ---- | ----------- | -------- |
1804
- | arg | `any` | | &nbsp; |
1910
+ | baseObject | `Object` | Base object. | &nbsp; |
1911
+ | iteratee | `Function` | The executed per iteration. | &nbsp; |
1805
1912
 
1806
1913
 
1807
1914
 
@@ -1809,17 +1916,17 @@ useful to avoid falsify validating Number Zero (0)
1809
1916
  ##### Returns
1810
1917
 
1811
1918
 
1812
- - `Boolean`
1919
+ - `Object` New mapped object.
1813
1920
 
1814
1921
 
1815
1922
 
1816
1923
 
1817
- ### dist/general/mix/randomId.js
1924
+ ### dist/general/object/pick.js
1818
1925
 
1819
1926
 
1820
- #### randomId(length)
1927
+ #### pick(baseObject, keys)
1821
1928
 
1822
- create random unique string
1929
+ return a new object just with attributes in _keys_ list
1823
1930
 
1824
1931
 
1825
1932
 
@@ -1828,7 +1935,8 @@ create random unique string
1828
1935
 
1829
1936
  | Name | Type | Description | |
1830
1937
  | ---- | ---- | ----------- | -------- |
1831
- | length | `Number` | size of the generated string. Default 8 | &nbsp; |
1938
+ | baseObject | `Object` | base object | &nbsp; |
1939
+ | keys | `Array.<String>` | list of attributes to preserve | &nbsp; |
1832
1940
 
1833
1941
 
1834
1942
 
@@ -1836,19 +1944,17 @@ create random unique string
1836
1944
  ##### Returns
1837
1945
 
1838
1946
 
1839
- - `String`
1947
+ - `Object` new object just with desired attributes
1840
1948
 
1841
1949
 
1842
1950
 
1843
1951
 
1844
- ### dist/general/mix/size.js
1952
+ ### dist/general/string/capitalize.js
1845
1953
 
1846
1954
 
1847
- #### size(obj)
1955
+ #### capitalize(text)
1848
1956
 
1849
- get the length of an Array or String and also the number of first level attributes
1850
- in an Object.
1851
- For `null` or `undefined` argument the returned value will be 0.
1957
+ Upper case teh first letter of a given text
1852
1958
 
1853
1959
 
1854
1960
 
@@ -1857,7 +1963,7 @@ For `null` or `undefined` argument the returned value will be 0.
1857
1963
 
1858
1964
  | Name | Type | Description | |
1859
1965
  | ---- | ---- | ----------- | -------- |
1860
- | obj | `Any` | | &nbsp; |
1966
+ | text | `String` | | &nbsp; |
1861
1967
 
1862
1968
 
1863
1969
 
@@ -1865,34 +1971,40 @@ For `null` or `undefined` argument the returned value will be 0.
1865
1971
  ##### Returns
1866
1972
 
1867
1973
 
1868
- - `Number`
1974
+ - `String`
1869
1975
 
1870
1976
 
1871
1977
 
1872
1978
 
1873
- ### dist/general/string/capitalize.js
1979
+ ### dist/stencil/decorators/Config.js
1874
1980
 
1875
1981
 
1876
- #### capitalize(text)
1982
+ #### Config()
1877
1983
 
1878
- Upper case teh first letter of a given text
1984
+ Stencil.js - Prop Decorator
1985
+ Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
1986
+ But for this, is required ask for a property in `snake_case` style
1879
1987
 
1880
1988
 
1881
1989
 
1882
1990
 
1883
- ##### Parameters
1884
1991
 
1885
- | Name | Type | Description | |
1886
- | ---- | ---- | ----------- | -------- |
1887
- | text | `String` | | &nbsp; |
1888
1992
 
1993
+ ##### Examples
1994
+
1995
+ ```javascript
1996
+ \ @Config() @Prop() settings;
1889
1997
 
1998
+ someMethod() {
1999
+ this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
2000
+ }
2001
+ ```
1890
2002
 
1891
2003
 
1892
2004
  ##### Returns
1893
2005
 
1894
2006
 
1895
- - `String`
2007
+ - `Void`
1896
2008
 
1897
2009
 
1898
2010
 
@@ -1948,29 +2060,23 @@ try to find this string as a variable on Windows object
1948
2060
 
1949
2061
 
1950
2062
 
1951
- ### dist/stencil/decorators/Config.js
1952
-
2063
+ ### dist/typescript/decorators/Throttled.js
1953
2064
 
1954
- #### Config()
1955
2065
 
1956
- Stencil.js - Prop Decorator
1957
- Get and Parse the Widget Configuration Object and also provide the ability to get properties in different case styles such as: lower, upper, camel and pascal
1958
- But for this, is required ask for a property in `snake_case` style
2066
+ #### Throttled(time)
1959
2067
 
2068
+ (Method Decorator) Throttled Class Method
1960
2069
 
1961
2070
 
1962
2071
 
1963
2072
 
2073
+ ##### Parameters
1964
2074
 
1965
- ##### Examples
2075
+ | Name | Type | Description | |
2076
+ | ---- | ---- | ----------- | -------- |
2077
+ | time | | (optional) deafult 500 | &nbsp; |
1966
2078
 
1967
- ```javascript
1968
- \ @Config() @Prop() settings;
1969
2079
 
1970
- someMethod() {
1971
- this.settings.snake_case //it search for: obj.snake_case || obj.snakeCase || obj.SnakeCase || obj.snakecase || obj.SNAKECASE
1972
- }
1973
- ```
1974
2080
 
1975
2081
 
1976
2082
  ##### Returns
@@ -2008,12 +2114,12 @@ someMethod() {
2008
2114
 
2009
2115
 
2010
2116
 
2011
- ### dist/typescript/decorators/Throttled.js
2117
+ ### dist/date/relative/helpers/formatStatement.js
2012
2118
 
2013
2119
 
2014
- #### Throttled(time)
2120
+ #### formatStatement(statement)
2015
2121
 
2016
- (Method Decorator) Throttled Class Method
2122
+ Build a proper relative date statement type
2017
2123
 
2018
2124
 
2019
2125
 
@@ -2022,7 +2128,7 @@ someMethod() {
2022
2128
 
2023
2129
  | Name | Type | Description | |
2024
2130
  | ---- | ---- | ----------- | -------- |
2025
- | time | | (optional) deafult 500 | &nbsp; |
2131
+ | statement | `RelativeStatement` | | &nbsp; |
2026
2132
 
2027
2133
 
2028
2134
 
@@ -2030,17 +2136,17 @@ someMethod() {
2030
2136
  ##### Returns
2031
2137
 
2032
2138
 
2033
- - `Void`
2139
+ - `RelativeStatement`
2034
2140
 
2035
2141
 
2036
2142
 
2037
2143
 
2038
- ### dist/date/relative/helpers/formatStatement.js
2144
+ ### dist/date/relative/helpers/getStatementCase.js
2039
2145
 
2040
2146
 
2041
- #### formatStatement(statement)
2147
+ #### getStatementCase(includeCurrent, isCalendarDate)
2042
2148
 
2043
- Build a proper relative date statement type
2149
+ Returns a number/constant that identifies a relative date case
2044
2150
 
2045
2151
 
2046
2152
 
@@ -2049,7 +2155,8 @@ Build a proper relative date statement type
2049
2155
 
2050
2156
  | Name | Type | Description | |
2051
2157
  | ---- | ---- | ----------- | -------- |
2052
- | statement | `RelativeStatement` | | &nbsp; |
2158
+ | includeCurrent | `boolean` | | &nbsp; |
2159
+ | isCalendarDate | `boolean` | | &nbsp; |
2053
2160
 
2054
2161
 
2055
2162
 
@@ -2057,17 +2164,17 @@ Build a proper relative date statement type
2057
2164
  ##### Returns
2058
2165
 
2059
2166
 
2060
- - `RelativeStatement`
2167
+ - `number`
2061
2168
 
2062
2169
 
2063
2170
 
2064
2171
 
2065
- ### dist/date/relative/helpers/getStatementCase.js
2172
+ ### dist/date/relative/helpers/parseDate.js
2066
2173
 
2067
2174
 
2068
- #### getStatementCase(includeCurrent, isCalendarDate)
2175
+ #### parseDate(date)
2069
2176
 
2070
- Returns a number/constant that identifies a relative date case
2177
+ Parses a string date and returns a dayjs date
2071
2178
 
2072
2179
 
2073
2180
 
@@ -2076,8 +2183,7 @@ Returns a number/constant that identifies a relative date case
2076
2183
 
2077
2184
  | Name | Type | Description | |
2078
2185
  | ---- | ---- | ----------- | -------- |
2079
- | includeCurrent | `boolean` | | &nbsp; |
2080
- | isCalendarDate | `boolean` | | &nbsp; |
2186
+ | date | `string` `Dayjs` `Date` | | &nbsp; |
2081
2187
 
2082
2188
 
2083
2189
 
@@ -2085,17 +2191,18 @@ Returns a number/constant that identifies a relative date case
2085
2191
  ##### Returns
2086
2192
 
2087
2193
 
2088
- - `number`
2194
+ - `Dayjs` A dayjs date
2089
2195
 
2090
2196
 
2091
2197
 
2092
2198
 
2093
- ### dist/date/relative/helpers/parseDate.js
2199
+ ### dist/filters/helpers/backend/buildExpression.js
2094
2200
 
2095
2201
 
2096
- #### parseDate(date)
2202
+ #### buildExpression(filter)
2097
2203
 
2098
- Parses a string date and returns a dayjs date
2204
+ Builds filter expression by the filter data.
2205
+ - If the resulting value array is empty the enabled property will be false.
2099
2206
 
2100
2207
 
2101
2208
 
@@ -2104,7 +2211,7 @@ Parses a string date and returns a dayjs date
2104
2211
 
2105
2212
  | Name | Type | Description | |
2106
2213
  | ---- | ---- | ----------- | -------- |
2107
- | date | `string` `Dayjs` `Date` | | &nbsp; |
2214
+ | filter | | The filter to transform | &nbsp; |
2108
2215
 
2109
2216
 
2110
2217
 
@@ -2112,7 +2219,7 @@ Parses a string date and returns a dayjs date
2112
2219
  ##### Returns
2113
2220
 
2114
2221
 
2115
- - `Dayjs` A dayjs date
2222
+ - a filter expression
2116
2223
 
2117
2224
 
2118
2225
 
@@ -2440,6 +2547,34 @@ Validates if both filters are the same
2440
2547
 
2441
2548
 
2442
2549
 
2550
+ ### dist/filters/helpers/common/arePropertiesDateP.js
2551
+
2552
+
2553
+ #### arePropertiesDateP(column, property)
2554
+
2555
+ Determines if the filter column and property is a distinct group dates type
2556
+
2557
+
2558
+
2559
+
2560
+ ##### Parameters
2561
+
2562
+ | Name | Type | Description | |
2563
+ | ---- | ---- | ----------- | -------- |
2564
+ | column | | The filter column | &nbsp; |
2565
+ | property | | The filter property | &nbsp; |
2566
+
2567
+
2568
+
2569
+
2570
+ ##### Returns
2571
+
2572
+
2573
+ - True if the given property is included from distinct group dates type
2574
+
2575
+
2576
+
2577
+
2443
2578
  ### dist/filters/helpers/common/excludeFiltersByAggregateColumn.js
2444
2579
 
2445
2580
 
@@ -2532,12 +2667,12 @@ Excludes and returns a filter data without filters by the given scopes
2532
2667
 
2533
2668
 
2534
2669
 
2535
- ### dist/filters/helpers/common/getFilterColumnLabel.js
2670
+ ### dist/filters/helpers/common/getFilterLabel.js
2536
2671
 
2537
2672
 
2538
- #### getFilterColumnLabel(column)
2673
+ #### getFilterLabel(filter)
2539
2674
 
2540
- Get an string of the properties of the given filter column.
2675
+ Gets the Filter Label + Column label
2541
2676
 
2542
2677
 
2543
2678
 
@@ -2546,7 +2681,7 @@ Get an string of the properties of the given filter column.
2546
2681
 
2547
2682
  | Name | Type | Description | |
2548
2683
  | ---- | ---- | ----------- | -------- |
2549
- | column | | The filter column | &nbsp; |
2684
+ | filter | | the UI filter | &nbsp; |
2550
2685
 
2551
2686
 
2552
2687
 
@@ -2554,17 +2689,17 @@ Get an string of the properties of the given filter column.
2554
2689
  ##### Returns
2555
2690
 
2556
2691
 
2557
- - an string with the property, aggregate or calculation label.
2692
+ - a sring label
2558
2693
 
2559
2694
 
2560
2695
 
2561
2696
 
2562
- ### dist/filters/helpers/common/getFilterLabel.js
2697
+ ### dist/filters/helpers/common/getFilterColumnLabel.js
2563
2698
 
2564
2699
 
2565
- #### getFilterLabel(filter)
2700
+ #### getFilterColumnLabel(column)
2566
2701
 
2567
- Gets the Filter Label + Column label
2702
+ Get an string of the properties of the given filter column.
2568
2703
 
2569
2704
 
2570
2705
 
@@ -2573,7 +2708,7 @@ Gets the Filter Label + Column label
2573
2708
 
2574
2709
  | Name | Type | Description | |
2575
2710
  | ---- | ---- | ----------- | -------- |
2576
- | filter | | the UI filter | &nbsp; |
2711
+ | column | | The filter column | &nbsp; |
2577
2712
 
2578
2713
 
2579
2714
 
@@ -2581,7 +2716,7 @@ Gets the Filter Label + Column label
2581
2716
  ##### Returns
2582
2717
 
2583
2718
 
2584
- - a sring label
2719
+ - an string with the property, aggregate or calculation label.
2585
2720
 
2586
2721
 
2587
2722
 
@@ -2716,6 +2851,61 @@ Filters and gets a Filter Data by the given scopes
2716
2851
 
2717
2852
 
2718
2853
 
2854
+ ### dist/filters/helpers/common/getFiltersByVisibility.js
2855
+
2856
+
2857
+ #### getFiltersByVisibility(filterData, scopes)
2858
+
2859
+ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
2860
+
2861
+
2862
+
2863
+
2864
+ ##### Parameters
2865
+
2866
+ | Name | Type | Description | |
2867
+ | ---- | ---- | ----------- | -------- |
2868
+ | filterData | | a Filter Data or UI Filter Data | &nbsp; |
2869
+ | scopes | | a Scopes/Scope IDs array | &nbsp; |
2870
+
2871
+
2872
+
2873
+
2874
+ ##### Returns
2875
+
2876
+
2877
+ - a new Filter Data
2878
+
2879
+
2880
+
2881
+
2882
+ ### dist/filters/helpers/common/getMergeFiltersSettings.js
2883
+
2884
+
2885
+ #### getMergeFiltersSettings(settings)
2886
+
2887
+ Transforms the given MergeFilters settings object. Adds the missing properties if they do not exist.
2888
+
2889
+
2890
+
2891
+
2892
+ ##### Parameters
2893
+
2894
+ | Name | Type | Description | |
2895
+ | ---- | ---- | ----------- | -------- |
2896
+ | settings | | an object to the MergeFilters settings | &nbsp; |
2897
+
2898
+
2899
+
2900
+
2901
+ ##### Returns
2902
+
2903
+
2904
+ - a new MergeFilters settings object.
2905
+
2906
+
2907
+
2908
+
2719
2909
  ### dist/filters/helpers/common/getFiltersByScopesIds.js
2720
2910
 
2721
2911
 
@@ -2744,12 +2934,12 @@ Gets filters from Filter Data by Scopes/Scope IDs.
2744
2934
 
2745
2935
 
2746
2936
 
2747
- ### dist/filters/helpers/common/getFiltersByVisibility.js
2937
+ ### dist/filters/helpers/common/getParamsToGetFilterSettings.js
2748
2938
 
2749
2939
 
2750
- #### getFiltersByVisibility(filterData, scopes)
2940
+ #### getParamsToGetFilterSettings(settings)
2751
2941
 
2752
- Get a new Filter Data by filtering scopes/scope IDs and enabled flags
2942
+ Transforms the given ParamsToGetFilter settings object. Adds the missing properties if they do not exist.
2753
2943
 
2754
2944
 
2755
2945
 
@@ -2758,8 +2948,7 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
2758
2948
 
2759
2949
  | Name | Type | Description | |
2760
2950
  | ---- | ---- | ----------- | -------- |
2761
- | filterData | | a Filter Data or UI Filter Data | &nbsp; |
2762
- | scopes | | a Scopes/Scope IDs array | &nbsp; |
2951
+ | settings | | an object to the ParamsToGetFilter settings | &nbsp; |
2763
2952
 
2764
2953
 
2765
2954
 
@@ -2767,7 +2956,7 @@ Get a new Filter Data by filtering scopes/scope IDs and enabled flags
2767
2956
  ##### Returns
2768
2957
 
2769
2958
 
2770
- - a new Filter Data
2959
+ - a new ParamsToGetFilter settings object.
2771
2960
 
2772
2961
 
2773
2962
 
@@ -3154,12 +3343,12 @@ Resolves the conditions by given params
3154
3343
 
3155
3344
 
3156
3345
 
3157
- ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
3346
+ ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
3158
3347
 
3159
3348
 
3160
- #### excludeUIFiltersByAggregate(uFilters)
3349
+ #### excludeUIFlatFiltersByScopes(uFilters, scopes)
3161
3350
 
3162
- Excludes Aggregate Filters in the Flattened UI Filters array
3351
+ Excludes and returns a UI Flat Filters without filters by the given scopes
3163
3352
 
3164
3353
 
3165
3354
 
@@ -3168,7 +3357,8 @@ Excludes Aggregate Filters in the Flattened UI Filters array
3168
3357
 
3169
3358
  | Name | Type | Description | |
3170
3359
  | ---- | ---- | ----------- | -------- |
3171
- | uFilters | | Collection of Flat UI Filters | &nbsp; |
3360
+ | uFilters | | The Flatten UI Filters | &nbsp; |
3361
+ | scopes | | collection of scopes types | &nbsp; |
3172
3362
 
3173
3363
 
3174
3364
 
@@ -3176,17 +3366,17 @@ Excludes Aggregate Filters in the Flattened UI Filters array
3176
3366
  ##### Returns
3177
3367
 
3178
3368
 
3179
- - a new Flat UI Filters that were excluded the aggregate filters
3369
+ - The new array of UI Flattened filters
3180
3370
 
3181
3371
 
3182
3372
 
3183
3373
 
3184
- ### dist/filters/helpers/ui/excludeUIFlatFiltersByScopes.js
3374
+ ### dist/filters/helpers/ui/excludeUIFiltersByAggregate.js
3185
3375
 
3186
3376
 
3187
- #### excludeUIFlatFiltersByScopes(uFilters, scopes)
3377
+ #### excludeUIFiltersByAggregate(uFilters)
3188
3378
 
3189
- Excludes and returns a UI Flat Filters without filters by the given scopes
3379
+ Excludes Aggregate Filters in the Flattened UI Filters array
3190
3380
 
3191
3381
 
3192
3382
 
@@ -3195,8 +3385,7 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
3195
3385
 
3196
3386
  | Name | Type | Description | |
3197
3387
  | ---- | ---- | ----------- | -------- |
3198
- | uFilters | | The Flatten UI Filters | &nbsp; |
3199
- | scopes | | collection of scopes types | &nbsp; |
3388
+ | uFilters | | Collection of Flat UI Filters | &nbsp; |
3200
3389
 
3201
3390
 
3202
3391
 
@@ -3204,7 +3393,7 @@ Excludes and returns a UI Flat Filters without filters by the given scopes
3204
3393
  ##### Returns
3205
3394
 
3206
3395
 
3207
- - The new array of UI Flattened filters
3396
+ - a new Flat UI Filters that were excluded the aggregate filters
3208
3397
 
3209
3398
 
3210
3399