@taiga-ui/cdk 3.15.0-dev.main-0a2daff → 3.15.0-dev.main-0804b74

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 (82) hide show
  1. package/bundles/taiga-ui-cdk-constants.umd.js +2 -0
  2. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  3. package/bundles/taiga-ui-cdk-directives-droppable.umd.js +1 -1
  4. package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
  5. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +6 -6
  6. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  7. package/bundles/taiga-ui-cdk-observables.umd.js +15 -11
  8. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-services.umd.js +3 -3
  10. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-tokens.umd.js +23 -12
  12. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  13. package/constants/always-false-handler.js +9 -0
  14. package/constants/always-true-handler.js +9 -0
  15. package/constants/browser.js +8 -0
  16. package/constants/empty.js +26 -0
  17. package/constants/index.js +14 -0
  18. package/constants/matcher.js +32 -0
  19. package/constants/parent-animation.js +10 -0
  20. package/constants/polling-time.js +4 -0
  21. package/constants/stringify.js +8 -0
  22. package/constants/svg-node-filter.js +8 -0
  23. package/constants/unicode-chars.js +66 -0
  24. package/esm2015/constants/always-false-handler.js +2 -1
  25. package/esm2015/constants/always-true-handler.js +2 -1
  26. package/esm2015/directives/droppable/droppable.directive.js +3 -3
  27. package/esm2015/directives/hovered/hovered.service.js +5 -4
  28. package/esm2015/observables/focus-visible-observable.js +4 -3
  29. package/esm2015/observables/is-alive.js +4 -3
  30. package/esm2015/observables/is-observed.js +5 -5
  31. package/esm2015/observables/pressed-observable.js +4 -3
  32. package/esm2015/observables/typed-from-event.js +5 -1
  33. package/esm2015/services/pan.service.js +3 -3
  34. package/esm2015/services/parents-scroll.service.js +1 -1
  35. package/esm2015/services/resize.service.js +3 -3
  36. package/esm2015/tokens/active-element.js +19 -6
  37. package/esm2015/tokens/removed-element.js +5 -5
  38. package/esm2015/tokens/take-only-trusted-events.js +3 -4
  39. package/fesm2015/taiga-ui-cdk-constants.js +2 -0
  40. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  41. package/fesm2015/taiga-ui-cdk-directives-droppable.js +2 -2
  42. package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
  43. package/fesm2015/taiga-ui-cdk-directives-hovered.js +4 -3
  44. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  45. package/fesm2015/taiga-ui-cdk-observables.js +13 -8
  46. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  47. package/fesm2015/taiga-ui-cdk-services.js +3 -3
  48. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  49. package/fesm2015/taiga-ui-cdk-tokens.js +21 -9
  50. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  51. package/interfaces/alert-context.js +2 -0
  52. package/interfaces/aria-dialog-context.js +2 -0
  53. package/interfaces/base-dialog-context.js +2 -0
  54. package/interfaces/base-dialog.js +2 -0
  55. package/interfaces/context-with-implicit.js +2 -0
  56. package/interfaces/control-value-transformer.js +2 -0
  57. package/interfaces/day-like.js +2 -0
  58. package/interfaces/focusable-element-accessor.js +2 -0
  59. package/interfaces/index.js +16 -0
  60. package/interfaces/month-like.js +2 -0
  61. package/interfaces/swipe.js +2 -0
  62. package/interfaces/time-like.js +2 -0
  63. package/interfaces/year-like.js +2 -0
  64. package/interfaces/zoom.js +2 -0
  65. package/observables/is-observed.d.ts +0 -3
  66. package/package.json +1 -1
  67. package/schematics/utils/angular-json-manipulations.js +3 -2
  68. package/schematics/utils/templates/elements.js +3 -3
  69. package/schematics/utils/templates/ng-component-input-manipulations.js +2 -1
  70. package/types/autocomplete.js +2 -0
  71. package/types/date-mode.js +2 -0
  72. package/types/dialog.js +2 -0
  73. package/types/event-with.js +2 -0
  74. package/types/handler.js +2 -0
  75. package/types/index.js +15 -0
  76. package/types/injection-token-type.js +2 -0
  77. package/types/input-mode.js +2 -0
  78. package/types/input-type.js +2 -0
  79. package/types/mapper.js +2 -0
  80. package/types/matcher.js +2 -0
  81. package/types/overscroll-mode.js +2 -0
  82. package/types/time-mode.js +2 -0
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,2 @@
1
1
  import { Subject } from 'rxjs';
2
- /**
3
- * In RxJS 8 `observers` will be removed, this util is for future safety
4
- */
5
2
  export declare function tuiIsObserved<T>(observable: Subject<T>): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/cdk",
3
- "version": "3.15.0-dev.main-0a2daff",
3
+ "version": "3.15.0-dev.main-0804b74",
4
4
  "description": "Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance",
5
5
  "keywords": [
6
6
  "angular",
@@ -5,18 +5,19 @@ const tslib_1 = require("tslib");
5
5
  const tasks_1 = require("@angular-devkit/schematics/tasks");
6
6
  const workspace_1 = require("@schematics/angular/utility/workspace");
7
7
  const ng_morph_1 = require("ng-morph");
8
+ const constants_1 = require("../../constants");
8
9
  const versions_1 = require("../ng-add/constants/versions");
9
10
  const get_project_target_options_1 = require("./get-project-target-options");
10
11
  const get_projects_1 = require("./get-projects");
11
12
  function isInvalidAngularJson(tree) {
12
13
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
13
14
  return (workspace_1.getWorkspace(tree)
14
- .then(() => false)
15
+ .then(constants_1.ALWAYS_FALSE_HANDLER)
15
16
  /**
16
17
  * Possible error – "Invalid format version detected - Expected:[ 1 ] Found: [ 2 ]"
17
18
  * @see https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/reader.ts#L67-L69
18
19
  */
19
- .catch(() => true));
20
+ .catch(constants_1.ALWAYS_TRUE_HANDLER));
20
21
  });
21
22
  }
22
23
  exports.isInvalidAngularJson = isInvalidAngularJson;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getStartOffsetOfAttribute = exports.hasElementAttribute = exports.findAttributeOnElementWithAttrs = exports.findAttributeOnElementWithTag = exports.findElementsWithAttribute = exports.findElementsByTagNames = exports.findElementsByTagName = exports.findElementsInTemplateByFn = exports.findElementsByFn = void 0;
4
4
  const parse5_1 = require("parse5");
5
- const ALWAYS_TRUE_HANDLER = () => true;
5
+ const constants_1 = require("../../../constants");
6
6
  function findElementsByFn(nodes, predicateFn) {
7
7
  const elements = [];
8
8
  const visitNodes = (nodes) => {
@@ -49,7 +49,7 @@ exports.findElementsWithAttribute = findElementsWithAttribute;
49
49
  * Finds elements with explicit tag names that also contain the specified attribute. Returns the
50
50
  * attribute start offset based on the specified HTML.
51
51
  */
52
- function findAttributeOnElementWithTag(html, name, tagNames, filterFn = ALWAYS_TRUE_HANDLER) {
52
+ function findAttributeOnElementWithTag(html, name, tagNames, filterFn = constants_1.ALWAYS_TRUE_HANDLER) {
53
53
  return findElementsWithAttribute(html, name)
54
54
  .filter(element => (tagNames.includes(element.tagName) || tagNames.includes(`*`)) &&
55
55
  filterFn(element))
@@ -60,7 +60,7 @@ exports.findAttributeOnElementWithTag = findAttributeOnElementWithTag;
60
60
  * Finds elements that contain the given attribute and contain at least one of the other
61
61
  * specified attributes. Returns the primary attribute's start offset based on the specified HTML.
62
62
  */
63
- function findAttributeOnElementWithAttrs(html, name, attrs, filterFn = ALWAYS_TRUE_HANDLER) {
63
+ function findAttributeOnElementWithAttrs(html, name, attrs, filterFn = constants_1.ALWAYS_TRUE_HANDLER) {
64
64
  return findElementsWithAttribute(html, name)
65
65
  .filter(element => attrs.some(attr => hasElementAttribute(element, attr)) &&
66
66
  filterFn(element))
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.removeInputProperty = exports.replaceInputPropertyByDirective = exports.getInputPropertyValueOffsets = exports.getInputPropertyOffsets = exports.replaceInputProperty = void 0;
4
+ const constants_1 = require("../../../constants");
4
5
  const add_import_to_closest_module_1 = require("../add-import-to-closest-module");
5
6
  const elements_1 = require("./elements");
6
7
  const template_resource_1 = require("./template-resource");
@@ -76,7 +77,7 @@ exports.replaceInputProperty = replaceInputProperty;
76
77
  *
77
78
  * getInputPropertyOffsets(template, 'size', ['tui-card']) // [[10, 18]]
78
79
  */
79
- function getInputPropertyOffsets(html, attrName, tags, filterFn = () => true) {
80
+ function getInputPropertyOffsets(html, attrName, tags, filterFn = constants_1.ALWAYS_TRUE_HANDLER) {
80
81
  return elements_1.findElementsWithAttribute(html, attrName)
81
82
  .filter(element => (tags.includes(element.tagName) || tags.includes(`*`)) &&
82
83
  filterFn(element))
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/types/index.js ADDED
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./autocomplete"), exports);
5
+ tslib_1.__exportStar(require("./date-mode"), exports);
6
+ tslib_1.__exportStar(require("./dialog"), exports);
7
+ tslib_1.__exportStar(require("./event-with"), exports);
8
+ tslib_1.__exportStar(require("./handler"), exports);
9
+ tslib_1.__exportStar(require("./injection-token-type"), exports);
10
+ tslib_1.__exportStar(require("./input-mode"), exports);
11
+ tslib_1.__exportStar(require("./input-type"), exports);
12
+ tslib_1.__exportStar(require("./mapper"), exports);
13
+ tslib_1.__exportStar(require("./matcher"), exports);
14
+ tslib_1.__exportStar(require("./overscroll-mode"), exports);
15
+ tslib_1.__exportStar(require("./time-mode"), exports);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });