@o3r/core 14.1.0-prerelease.4 → 14.1.0-prerelease.41

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 (179) hide show
  1. package/package.json +15 -15
  2. package/core/application/build-properties.d.ts +0 -50
  3. package/core/application/build-properties.d.ts.map +0 -1
  4. package/core/application/build-properties.js +0 -17
  5. package/core/application/build-properties.js.map +0 -1
  6. package/core/application/dgp-interfaces.d.ts +0 -35
  7. package/core/application/dgp-interfaces.d.ts.map +0 -1
  8. package/core/application/dgp-interfaces.js +0 -2
  9. package/core/application/dgp-interfaces.js.map +0 -1
  10. package/core/application/index.d.ts +0 -4
  11. package/core/application/index.d.ts.map +0 -1
  12. package/core/application/index.js +0 -4
  13. package/core/application/index.js.map +0 -1
  14. package/core/application/runtime.d.ts +0 -14
  15. package/core/application/runtime.d.ts.map +0 -1
  16. package/core/application/runtime.js +0 -2
  17. package/core/application/runtime.js.map +0 -1
  18. package/core/common/index.d.ts +0 -3
  19. package/core/common/index.d.ts.map +0 -1
  20. package/core/common/index.js +0 -3
  21. package/core/common/index.js.map +0 -1
  22. package/core/common/interface-utils.d.ts +0 -7
  23. package/core/common/interface-utils.d.ts.map +0 -1
  24. package/core/common/interface-utils.js +0 -2
  25. package/core/common/interface-utils.js.map +0 -1
  26. package/core/common/label-value.d.ts +0 -8
  27. package/core/common/label-value.d.ts.map +0 -1
  28. package/core/common/label-value.js +0 -2
  29. package/core/common/label-value.js.map +0 -1
  30. package/core/devkit/devtools-interface.d.ts +0 -34
  31. package/core/devkit/devtools-interface.d.ts.map +0 -1
  32. package/core/devkit/devtools-interface.js +0 -2
  33. package/core/devkit/devtools-interface.js.map +0 -1
  34. package/core/devkit/index.d.ts +0 -2
  35. package/core/devkit/index.d.ts.map +0 -1
  36. package/core/devkit/index.js +0 -2
  37. package/core/devkit/index.js.map +0 -1
  38. package/core/index.d.ts +0 -7
  39. package/core/index.d.ts.map +0 -1
  40. package/core/index.js +0 -7
  41. package/core/index.js.map +0 -1
  42. package/core/interfaces/configuration.d.ts +0 -90
  43. package/core/interfaces/configuration.d.ts.map +0 -1
  44. package/core/interfaces/configuration.js +0 -2
  45. package/core/interfaces/configuration.js.map +0 -1
  46. package/core/interfaces/context.d.ts +0 -57
  47. package/core/interfaces/context.d.ts.map +0 -1
  48. package/core/interfaces/context.js +0 -2
  49. package/core/interfaces/context.js.map +0 -1
  50. package/core/interfaces/index.d.ts +0 -5
  51. package/core/interfaces/index.d.ts.map +0 -1
  52. package/core/interfaces/index.js +0 -5
  53. package/core/interfaces/index.js.map +0 -1
  54. package/core/interfaces/item-identifier.d.ts +0 -14
  55. package/core/interfaces/item-identifier.d.ts.map +0 -1
  56. package/core/interfaces/item-identifier.js +0 -2
  57. package/core/interfaces/item-identifier.js.map +0 -1
  58. package/core/interfaces/translation.d.ts +0 -7
  59. package/core/interfaces/translation.d.ts.map +0 -1
  60. package/core/interfaces/translation.js +0 -2
  61. package/core/interfaces/translation.js.map +0 -1
  62. package/core/metadata/component-decorator.d.ts +0 -32
  63. package/core/metadata/component-decorator.d.ts.map +0 -1
  64. package/core/metadata/component-decorator.js +0 -18
  65. package/core/metadata/component-decorator.js.map +0 -1
  66. package/core/metadata/component-identifier.d.ts +0 -7
  67. package/core/metadata/component-identifier.d.ts.map +0 -1
  68. package/core/metadata/component-identifier.js +0 -9
  69. package/core/metadata/component-identifier.js.map +0 -1
  70. package/core/metadata/index.d.ts +0 -4
  71. package/core/metadata/index.d.ts.map +0 -1
  72. package/core/metadata/index.js +0 -4
  73. package/core/metadata/index.js.map +0 -1
  74. package/core/metadata/metadata-interface.d.ts +0 -10
  75. package/core/metadata/metadata-interface.d.ts.map +0 -1
  76. package/core/metadata/metadata-interface.js +0 -2
  77. package/core/metadata/metadata-interface.js.map +0 -1
  78. package/core/rules-engine/index.d.ts +0 -2
  79. package/core/rules-engine/index.d.ts.map +0 -1
  80. package/core/rules-engine/index.js +0 -2
  81. package/core/rules-engine/index.js.map +0 -1
  82. package/core/rules-engine/rules-engine-interfaces.d.ts +0 -24
  83. package/core/rules-engine/rules-engine-interfaces.d.ts.map +0 -1
  84. package/core/rules-engine/rules-engine-interfaces.js +0 -2
  85. package/core/rules-engine/rules-engine-interfaces.js.map +0 -1
  86. package/index.d.ts +0 -954
  87. package/index.d.ts.map +0 -1
  88. package/log/index.d.ts +0 -2
  89. package/log/index.d.ts.map +0 -1
  90. package/log/index.js +0 -2
  91. package/log/index.js.map +0 -1
  92. package/log/logger.d.ts +0 -36
  93. package/log/logger.d.ts.map +0 -1
  94. package/log/logger.js +0 -2
  95. package/log/logger.js.map +0 -1
  96. package/messages/common-message-interface.d.ts +0 -17
  97. package/messages/common-message-interface.d.ts.map +0 -1
  98. package/messages/common-message-interface.js +0 -2
  99. package/messages/common-message-interface.js.map +0 -1
  100. package/messages/index.d.ts +0 -4
  101. package/messages/index.d.ts.map +0 -1
  102. package/messages/index.js +0 -4
  103. package/messages/index.js.map +0 -1
  104. package/messages/message-helpers.d.ts +0 -24
  105. package/messages/message-helpers.d.ts.map +0 -1
  106. package/messages/message-helpers.js +0 -54
  107. package/messages/message-helpers.js.map +0 -1
  108. package/messages/message-interfaces.d.ts +0 -26
  109. package/messages/message-interfaces.d.ts.map +0 -1
  110. package/messages/message-interfaces.js +0 -5
  111. package/messages/message-interfaces.js.map +0 -1
  112. package/public_api.d.ts +0 -6
  113. package/public_api.d.ts.map +0 -1
  114. package/public_api.js +0 -6
  115. package/public_api.js.map +0 -1
  116. package/schematics/rule-factories/component/design-token.d.ts +0 -4
  117. package/schematics/rule-factories/component/design-token.d.ts.map +0 -1
  118. package/schematics/rule-factories/component/design-token.js +0 -10
  119. package/schematics/rule-factories/component/design-token.js.map +0 -1
  120. package/schematics/rule-factories/component/theming.d.ts +0 -4
  121. package/schematics/rule-factories/component/theming.d.ts.map +0 -1
  122. package/schematics/rule-factories/component/theming.js +0 -7
  123. package/schematics/rule-factories/component/theming.js.map +0 -1
  124. package/store/async/async-entity.adapter.d.ts +0 -62
  125. package/store/async/async-entity.adapter.d.ts.map +0 -1
  126. package/store/async/async-entity.adapter.js +0 -49
  127. package/store/async/async-entity.adapter.js.map +0 -1
  128. package/store/async/async.adapter.d.ts +0 -91
  129. package/store/async/async.adapter.d.ts.map +0 -1
  130. package/store/async/async.adapter.js +0 -94
  131. package/store/async/async.adapter.js.map +0 -1
  132. package/store/async/async.helpers.d.ts +0 -17
  133. package/store/async/async.helpers.d.ts.map +0 -1
  134. package/store/async/async.helpers.js +0 -25
  135. package/store/async/async.helpers.js.map +0 -1
  136. package/store/async/async.interfaces.d.ts +0 -91
  137. package/store/async/async.interfaces.d.ts.map +0 -1
  138. package/store/async/async.interfaces.js +0 -2
  139. package/store/async/async.interfaces.js.map +0 -1
  140. package/store/async/async.operators.d.ts +0 -22
  141. package/store/async/async.operators.d.ts.map +0 -1
  142. package/store/async/async.operators.js +0 -75
  143. package/store/async/async.operators.js.map +0 -1
  144. package/store/async/async.props.d.ts +0 -7
  145. package/store/async/async.props.d.ts.map +0 -1
  146. package/store/async/async.props.js +0 -10
  147. package/store/async/async.props.js.map +0 -1
  148. package/store/async/async.serializer.d.ts +0 -29
  149. package/store/async/async.serializer.d.ts.map +0 -1
  150. package/store/async/async.serializer.js +0 -34
  151. package/store/async/async.serializer.js.map +0 -1
  152. package/store/async/index.d.ts +0 -8
  153. package/store/async/index.d.ts.map +0 -1
  154. package/store/async/index.js +0 -8
  155. package/store/async/index.js.map +0 -1
  156. package/store/index.d.ts +0 -3
  157. package/store/index.d.ts.map +0 -1
  158. package/store/index.js +0 -3
  159. package/store/index.js.map +0 -1
  160. package/store/types.d.ts +0 -95
  161. package/store/types.d.ts.map +0 -1
  162. package/store/types.js +0 -11
  163. package/store/types.js.map +0 -1
  164. package/utils/debug/debug-helper.d.ts +0 -14
  165. package/utils/debug/debug-helper.d.ts.map +0 -1
  166. package/utils/debug/debug-helper.js +0 -19
  167. package/utils/debug/debug-helper.js.map +0 -1
  168. package/utils/deep-fill/deep-fill.d.ts +0 -37
  169. package/utils/deep-fill/deep-fill.d.ts.map +0 -1
  170. package/utils/deep-fill/deep-fill.js +0 -71
  171. package/utils/deep-fill/deep-fill.js.map +0 -1
  172. package/utils/index.d.ts +0 -4
  173. package/utils/index.d.ts.map +0 -1
  174. package/utils/index.js +0 -4
  175. package/utils/index.js.map +0 -1
  176. package/utils/rendering/rendering-helpers.d.ts +0 -10
  177. package/utils/rendering/rendering-helpers.d.ts.map +0 -1
  178. package/utils/rendering/rendering-helpers.js +0 -31
  179. package/utils/rendering/rendering-helpers.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/store/types.ts"],"names":[],"mappings":"AAWA,MAAM,OAAO,eAAe;IAM1B,YAAY,UAAyB;QAQ9B,YAAO,GAAG,CAAC,CAAS,EAAE,KAAU,EAAO,EAAE,CAAC,KAAK,CAAC;QAPrD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC;QACxD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,IAAI,IAAI,CAAC,WAAW,CAAC;QAC9D,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC;QAClD,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC;QACrD,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY,CAAC;IACnE,CAAC;CAGF"}
@@ -1,14 +0,0 @@
1
- import type { Dataset } from '../../core/application/dgp-interfaces';
2
- /**
3
- * Pad number
4
- * @param val
5
- * @param digits
6
- */
7
- export declare function padNumber(val: number, digits?: number): string;
8
- /**
9
- * Returns TRUE if bootstrap config environment is production FALSE otherwise
10
- * @param dataset
11
- * @returns TRUE if bootstrap config environment is production FALSE otherwise
12
- */
13
- export declare function isProductionEnvironment(dataset: Dataset): boolean;
14
- //# sourceMappingURL=debug-helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-helper.d.ts","sourceRoot":"","sources":["../../../src/utils/debug/debug-helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,OAAO,EACR,MAAM,uCAAuC,CAAC;AAE/C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,SAAI,GAAG,MAAM,CAGzD;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAGjE"}
@@ -1,19 +0,0 @@
1
- /**
2
- * Pad number
3
- * @param val
4
- * @param digits
5
- */
6
- export function padNumber(val, digits = 2) {
7
- const str = `${val}`;
8
- return '0'.repeat(Math.max(0, digits - str.length)) + str;
9
- }
10
- /**
11
- * Returns TRUE if bootstrap config environment is production FALSE otherwise
12
- * @param dataset
13
- * @returns TRUE if bootstrap config environment is production FALSE otherwise
14
- */
15
- export function isProductionEnvironment(dataset) {
16
- const bootstrapConfig = dataset.bootstrapconfig && JSON.parse(dataset.bootstrapconfig);
17
- return bootstrapConfig?.environment === 'prod';
18
- }
19
- //# sourceMappingURL=debug-helper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-helper.js","sourceRoot":"","sources":["../../../src/utils/debug/debug-helper.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,GAAW,EAAE,MAAM,GAAG,CAAC;IAC/C,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;IACrB,OAAO,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC;AAC5D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,OAAgB;IACtD,MAAM,eAAe,GAAoB,OAAO,CAAC,eAAe,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IACxG,OAAO,eAAe,EAAE,WAAW,KAAK,MAAM,CAAC;AACjD,CAAC"}
@@ -1,37 +0,0 @@
1
- /** Reviver Mapper to detect and create object on deepFill */
2
- export interface PrimitiveReviverMapper<T = any> {
3
- /** Condition to fill to be determine as */
4
- condition: (data: any) => boolean;
5
- /**
6
- * Construct the primitive type if needed
7
- * @param data to be constructed
8
- * @default {@link defaultConstruct}
9
- */
10
- construct?: (data: any) => T;
11
- }
12
- /**
13
- * Check if an object is not an array or a date
14
- * @param obj
15
- * @param additionalMappers
16
- */
17
- export declare function isObject(obj: any, additionalMappers?: PrimitiveReviverMapper[]): boolean;
18
- /**
19
- * Return a new reference of the given object
20
- * @param obj
21
- * @param additionalMappers
22
- */
23
- export declare function immutablePrimitive(obj: any, additionalMappers?: PrimitiveReviverMapper[]): any;
24
- /**
25
- * Deep fill of base object using source
26
- * It will do a deep merge of the objects, overriding arrays
27
- * All properties not present in source, but present in base, will remain
28
- * @param base
29
- * @param source
30
- * @param additionalMappers Map of conditions of type mapper
31
- */
32
- export declare function deepFill<T extends {
33
- [x: string]: any;
34
- }>(base: T, source?: {
35
- [x: string]: any;
36
- }, additionalMappers?: PrimitiveReviverMapper[]): T;
37
- //# sourceMappingURL=deep-fill.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deep-fill.d.ts","sourceRoot":"","sources":["../../../src/utils/deep-fill/deep-fill.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,MAAM,WAAW,sBAAsB,CAAC,CAAC,GAAG,GAAG;IAC7C,4CAA4C;IAC5C,SAAS,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC;IAElC;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,CAAC,CAAC;CAC9B;AAMD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,iBAAiB,CAAC,EAAE,sBAAsB,EAAE,WAE9E;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,iBAAiB,CAAC,EAAE,sBAAsB,EAAE,OAiBxF;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAAE,iBAAiB,CAAC,EAAE,sBAAsB,EAAE,GAAG,CAAC,CA0BhJ"}
@@ -1,71 +0,0 @@
1
- const defaultConstruct = (data) => data;
2
- const isDate = (data) => data instanceof Date && !Number.isNaN(data);
3
- /**
4
- * Check if an object is not an array or a date
5
- * @param obj
6
- * @param additionalMappers
7
- */
8
- export function isObject(obj, additionalMappers) {
9
- return obj instanceof Object && !Array.isArray(obj) && !additionalMappers?.some((mapper) => mapper.condition(obj)) && !isDate(obj);
10
- }
11
- /**
12
- * Return a new reference of the given object
13
- * @param obj
14
- * @param additionalMappers
15
- */
16
- export function immutablePrimitive(obj, additionalMappers) {
17
- if (Array.isArray(obj)) {
18
- return obj.slice();
19
- }
20
- const matchingPrimitive = additionalMappers?.find((mapper) => mapper.condition(obj));
21
- const resolvedType = matchingPrimitive && ((matchingPrimitive.construct || defaultConstruct)(obj));
22
- if (resolvedType !== undefined) {
23
- return resolvedType;
24
- }
25
- if (isDate(obj)) {
26
- return new Date(obj);
27
- }
28
- else if (obj instanceof Object) {
29
- return deepFill(obj, obj, additionalMappers);
30
- }
31
- else {
32
- return obj;
33
- }
34
- }
35
- /**
36
- * Deep fill of base object using source
37
- * It will do a deep merge of the objects, overriding arrays
38
- * All properties not present in source, but present in base, will remain
39
- * @param base
40
- * @param source
41
- * @param additionalMappers Map of conditions of type mapper
42
- */
43
- export function deepFill(base, source, additionalMappers) {
44
- if (typeof source === 'undefined') {
45
- return deepFill(base, base, additionalMappers);
46
- }
47
- if (!isObject(base, additionalMappers)) {
48
- return immutablePrimitive(typeof source === 'undefined' ? base : source, additionalMappers);
49
- }
50
- const newObj = { ...base };
51
- for (const key in base) {
52
- if (source[key] === null) {
53
- newObj[key] = immutablePrimitive(null, additionalMappers);
54
- }
55
- else if (key in source && typeof base[key] === typeof source[key]) {
56
- const keyOfSource = source[key];
57
- newObj[key] = typeof keyOfSource === 'undefined' ? immutablePrimitive(base[key], additionalMappers) : deepFill(base[key], keyOfSource, additionalMappers);
58
- }
59
- else {
60
- newObj[key] = immutablePrimitive(base[key], additionalMappers);
61
- }
62
- }
63
- // getting keys present in source and not present in base
64
- for (const key in source) {
65
- if (!(key in newObj)) {
66
- newObj[key] = immutablePrimitive(source[key], additionalMappers);
67
- }
68
- }
69
- return newObj;
70
- }
71
- //# sourceMappingURL=deep-fill.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deep-fill.js","sourceRoot":"","sources":["../../../src/utils/deep-fill/deep-fill.ts"],"names":[],"mappings":"AAaA,MAAM,gBAAgB,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC;AAE7C,MAAM,MAAM,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,YAAY,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAW,CAAC,CAAC;AAEjF;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,GAAQ,EAAE,iBAA4C;IAC7E,OAAO,GAAG,YAAY,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACrI,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,kBAAk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CAAC;IAC3B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC;YACzB,MAAM,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAC5D,CAAC;aAAM,IAAI,GAAG,IAAI,MAAM,IAAI,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,OAAO,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YACpE,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;YAChC,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,WAAW,KAAK,WAAW,CAAC,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC;QAC5J,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,iBAAiB,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED,yDAAyD;IACzD,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QACzB,IAAI,CAAC,CAAC,GAAG,IAAI,MAAM,CAAC,EAAE,CAAC;YACrB,MAAM,CAAC,GAAc,CAAC,GAAG,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,iBAAiB,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/utils/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './debug/debug-helper';
2
- export * from './deep-fill/deep-fill';
3
- export * from './rendering/rendering-helpers';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC"}
package/utils/index.js DELETED
@@ -1,4 +0,0 @@
1
- export * from './debug/debug-helper';
2
- export * from './deep-fill/deep-fill';
3
- export * from './rendering/rendering-helpers';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC"}
@@ -1,10 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- /**
3
- * Buffers and emits data for lazy/progressive rendering of big lists
4
- * That could solve issues with long-running tasks when trying to render an array
5
- * of similar components.
6
- * @param delayMs Delay between data emits
7
- * @param concurrency Amount of elements that should be emitted at once
8
- */
9
- export declare function lazyArray<T>(delayMs?: number, concurrency?: number): (source$: Observable<T[]>) => Observable<T[]>;
10
- //# sourceMappingURL=rendering-helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rendering-helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/rendering/rendering-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAGX,MAAM,MAAM,CAAC;AAUd;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,SAAI,EAAE,WAAW,SAAI,IAE/C,SAAS,UAAU,CAAC,CAAC,EAAE,CAAC,qBA+BjC"}
@@ -1,31 +0,0 @@
1
- import { animationFrameScheduler, from, observeOn, of, } from 'rxjs';
2
- import { bufferCount, concatMap, delay, mergeMap, scan, tap, } from 'rxjs/operators';
3
- /**
4
- * Buffers and emits data for lazy/progressive rendering of big lists
5
- * That could solve issues with long-running tasks when trying to render an array
6
- * of similar components.
7
- * @param delayMs Delay between data emits
8
- * @param concurrency Amount of elements that should be emitted at once
9
- */
10
- export function lazyArray(delayMs = 0, concurrency = 2) {
11
- let isFirstEmission = true;
12
- return (source$) => {
13
- return source$.pipe(mergeMap((items) => {
14
- if (!isFirstEmission) {
15
- return of(items);
16
- }
17
- const items$ = from(items);
18
- return items$.pipe(bufferCount(concurrency), concatMap((value, index) => {
19
- return of(value).pipe(observeOn(animationFrameScheduler), delay(index * delayMs));
20
- }), scan((acc, steps) => {
21
- return [...acc, ...steps];
22
- }, []), tap((scannedItems) => {
23
- const scanDidComplete = scannedItems.length === items.length;
24
- if (scanDidComplete) {
25
- isFirstEmission = false;
26
- }
27
- }));
28
- }));
29
- };
30
- }
31
- //# sourceMappingURL=rendering-helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rendering-helpers.js","sourceRoot":"","sources":["../../../src/utils/rendering/rendering-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,IAAI,EAEJ,SAAS,EACT,EAAE,GACH,MAAM,MAAM,CAAC;AACd,OAAO,EACL,WAAW,EACX,SAAS,EACT,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAI,OAAO,GAAG,CAAC,EAAE,WAAW,GAAG,CAAC;IACvD,IAAI,eAAe,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,OAAwB,EAAE,EAAE;QAClC,OAAO,OAAO,CAAC,IAAI,CACjB,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;YACjB,IAAI,CAAC,eAAe,EAAE,CAAC;gBACrB,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;YACnB,CAAC;YAED,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;YAE3B,OAAO,MAAM,CAAC,IAAI,CAChB,WAAW,CAAC,WAAW,CAAC,EACxB,SAAS,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;gBACzB,OAAO,EAAE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