@taiga-ui/cdk 3.4.0 → 3.6.0

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 (36) hide show
  1. package/bundles/taiga-ui-cdk-components-alert-host.umd.js +3 -2
  2. package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
  3. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +3 -2
  4. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  5. package/bundles/taiga-ui-cdk-constants.umd.js +1 -1
  6. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  7. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +0 -1
  8. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-utils-dom.umd.js +5 -1
  10. package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
  11. package/constants/version.d.ts +1 -1
  12. package/constants/version.js +1 -1
  13. package/esm2015/components/alert-host/alert-host.component.js +4 -3
  14. package/esm2015/components/dialog-host/dialog-host.component.js +4 -3
  15. package/esm2015/constants/version.js +2 -2
  16. package/esm2015/directives/autofilled/autofilled.module.js +1 -2
  17. package/esm2015/utils/dom/get-element-obscurers.js +6 -2
  18. package/fesm2015/taiga-ui-cdk-components-alert-host.js +3 -2
  19. package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
  20. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +3 -2
  21. package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  22. package/fesm2015/taiga-ui-cdk-constants.js +1 -1
  23. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  24. package/fesm2015/taiga-ui-cdk-directives-autofilled.js +0 -1
  25. package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  26. package/fesm2015/taiga-ui-cdk-utils-dom.js +5 -1
  27. package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
  28. package/package.json +1 -1
  29. package/schematics/migration.json +5 -0
  30. package/schematics/ng-update/constants/templates.js +0 -4
  31. package/schematics/ng-update/index.d.ts +1 -0
  32. package/schematics/ng-update/index.js +12 -1
  33. package/schematics/ng-update/v3-5/steps/migrate-expand-templates.d.ts +2 -0
  34. package/schematics/ng-update/v3-5/steps/migrate-expand-templates.js +42 -0
  35. package/schematics/utils/templates/get-component-templates.js +4 -2
  36. package/utils/dom/get-element-obscurers.d.ts +4 -0
@@ -8,7 +8,8 @@ function getComponentTemplates(pattern, query) {
8
8
  return ng_morph_1.getClasses(pattern, query)
9
9
  .map(declaration => declaration.getDecorator('Component'))
10
10
  .filter((decorator) => !!decorator)
11
- .map(decoratorToTemplateResource);
11
+ .map(decoratorToTemplateResource)
12
+ .filter((x) => Boolean(x));
12
13
  }
13
14
  exports.getComponentTemplates = getComponentTemplates;
14
15
  function decoratorToTemplateResource(decorator) {
@@ -24,13 +25,14 @@ function decoratorToTemplateResource(decorator) {
24
25
  templatePath: getFullTemplatePath(templatePath, path.parse(componentPath)),
25
26
  };
26
27
  }
27
- else {
28
+ else if (template) {
28
29
  return {
29
30
  componentPath,
30
31
  template: ((_b = template.getInitializer()) === null || _b === void 0 ? void 0 : _b.getText()) || '',
31
32
  offset: ((_c = template.getInitializer()) === null || _c === void 0 ? void 0 : _c.getStart()) || 0,
32
33
  };
33
34
  }
35
+ return null;
34
36
  }
35
37
  function getFullTemplatePath(templatePath, componentPath) {
36
38
  return path.join(componentPath.dir, templatePath.dir, templatePath.name + templatePath.ext);
@@ -2,5 +2,9 @@
2
2
  * Returns array of Elements covering edges of given element or null if at least one edge middle point is visible
3
3
  *
4
4
  * CAUTION: Empty array means element if offscreen i.e. covered by no elements, rather than not covered
5
+ * TODO: v4.0 change function signature to
6
+ * ```ts
7
+ * function tuiGetElementObscures(element: Element): readonly [Element, Element, Element, Element] | [] | null
8
+ * ```
5
9
  */
6
10
  export declare function tuiGetElementObscures(element: Element): readonly Element[] | null;