piral-ng 1.6.0-beta.7216 → 1.6.0-beta.7243

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 (62) hide show
  1. package/convert.d.ts +2 -2
  2. package/convert.js +1 -1
  3. package/lib/CoreRoutingService.js +17 -20
  4. package/lib/CoreRoutingService.js.map +1 -1
  5. package/lib/RoutingService.js +20 -23
  6. package/lib/RoutingService.js.map +1 -1
  7. package/lib/bootstrap.js +15 -20
  8. package/lib/bootstrap.js.map +1 -1
  9. package/lib/converter.js +13 -17
  10. package/lib/converter.js.map +1 -1
  11. package/lib/create.js +5 -9
  12. package/lib/create.js.map +1 -1
  13. package/lib/index.js +2 -5
  14. package/lib/index.js.map +1 -1
  15. package/lib/module.js +28 -36
  16. package/lib/module.js.map +1 -1
  17. package/lib/queue.js +1 -5
  18. package/lib/queue.js.map +1 -1
  19. package/lib/standalone.js +11 -15
  20. package/lib/standalone.js.map +1 -1
  21. package/lib/startup.js +17 -22
  22. package/lib/startup.js.map +1 -1
  23. package/lib/types.js +1 -2
  24. package/lib/utils.js +8 -17
  25. package/lib/utils.js.map +1 -1
  26. package/package.json +14 -40
  27. package/esm/CoreRoutingService.d.ts +0 -12
  28. package/esm/CoreRoutingService.js +0 -77
  29. package/esm/CoreRoutingService.js.map +0 -1
  30. package/esm/RoutingService.d.ts +0 -13
  31. package/esm/RoutingService.js +0 -113
  32. package/esm/RoutingService.js.map +0 -1
  33. package/esm/bootstrap.d.ts +0 -5
  34. package/esm/bootstrap.js +0 -52
  35. package/esm/bootstrap.js.map +0 -1
  36. package/esm/converter.d.ts +0 -10
  37. package/esm/converter.js +0 -38
  38. package/esm/converter.js.map +0 -1
  39. package/esm/create.d.ts +0 -12
  40. package/esm/create.js +0 -22
  41. package/esm/create.js.map +0 -1
  42. package/esm/index.d.ts +0 -2
  43. package/esm/index.js +0 -3
  44. package/esm/index.js.map +0 -1
  45. package/esm/module.d.ts +0 -26
  46. package/esm/module.js +0 -139
  47. package/esm/module.js.map +0 -1
  48. package/esm/queue.d.ts +0 -1
  49. package/esm/queue.js +0 -7
  50. package/esm/queue.js.map +0 -1
  51. package/esm/standalone.d.ts +0 -11
  52. package/esm/standalone.js +0 -72
  53. package/esm/standalone.js.map +0 -1
  54. package/esm/startup.d.ts +0 -8
  55. package/esm/startup.js +0 -122
  56. package/esm/startup.js.map +0 -1
  57. package/esm/types.d.ts +0 -110
  58. package/esm/types.js +0 -2
  59. package/esm/types.js.map +0 -1
  60. package/esm/utils.d.ts +0 -18
  61. package/esm/utils.js +0 -46
  62. package/esm/utils.js.map +0 -1
package/esm/utils.js DELETED
@@ -1,46 +0,0 @@
1
- import { VERSION } from '@angular/core';
2
- export function getId() {
3
- return Math.random().toString(36);
4
- }
5
- export function getNgVersion() {
6
- return VERSION.major || VERSION.full.split('.')[0];
7
- }
8
- export function getMinVersion() {
9
- const major = getNgVersion();
10
- return `${major}.0.0`;
11
- }
12
- export function getAnnotations(component) {
13
- let annotations = component?.__annotations__;
14
- if (!annotations && typeof Reflect !== 'undefined' && 'getOwnMetadata' in Reflect) {
15
- annotations = Reflect.getOwnMetadata('annotations', component);
16
- }
17
- if (!annotations && typeof component.ɵcmp !== 'undefined') {
18
- annotations = [{}];
19
- }
20
- if (!annotations && typeof component.ɵmod !== 'undefined') {
21
- annotations = [component.ɵmod];
22
- }
23
- return annotations || [];
24
- }
25
- export function hasSelector(component, selector) {
26
- const [annotation] = getAnnotations(component);
27
- return annotation && annotation.selector === selector;
28
- }
29
- export function findComponents(exports) {
30
- const components = [];
31
- if (Array.isArray(exports)) {
32
- for (const ex of exports) {
33
- const [annotation] = getAnnotations(ex);
34
- if (annotation) {
35
- if (annotation.exports) {
36
- components.push(...findComponents(annotation.exports));
37
- }
38
- else if (!annotation.imports || annotation.standalone) {
39
- components.push(ex);
40
- }
41
- }
42
- }
43
- }
44
- return components;
45
- }
46
- //# sourceMappingURL=utils.js.map
package/esm/utils.js.map DELETED
@@ -1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