@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.
- package/bundles/taiga-ui-cdk-constants.umd.js +2 -0
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js +1 -1
- package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js +6 -6
- package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +15 -11
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +3 -3
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js +23 -12
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/constants/always-false-handler.js +9 -0
- package/constants/always-true-handler.js +9 -0
- package/constants/browser.js +8 -0
- package/constants/empty.js +26 -0
- package/constants/index.js +14 -0
- package/constants/matcher.js +32 -0
- package/constants/parent-animation.js +10 -0
- package/constants/polling-time.js +4 -0
- package/constants/stringify.js +8 -0
- package/constants/svg-node-filter.js +8 -0
- package/constants/unicode-chars.js +66 -0
- package/esm2015/constants/always-false-handler.js +2 -1
- package/esm2015/constants/always-true-handler.js +2 -1
- package/esm2015/directives/droppable/droppable.directive.js +3 -3
- package/esm2015/directives/hovered/hovered.service.js +5 -4
- package/esm2015/observables/focus-visible-observable.js +4 -3
- package/esm2015/observables/is-alive.js +4 -3
- package/esm2015/observables/is-observed.js +5 -5
- package/esm2015/observables/pressed-observable.js +4 -3
- package/esm2015/observables/typed-from-event.js +5 -1
- package/esm2015/services/pan.service.js +3 -3
- package/esm2015/services/parents-scroll.service.js +1 -1
- package/esm2015/services/resize.service.js +3 -3
- package/esm2015/tokens/active-element.js +19 -6
- package/esm2015/tokens/removed-element.js +5 -5
- package/esm2015/tokens/take-only-trusted-events.js +3 -4
- package/fesm2015/taiga-ui-cdk-constants.js +2 -0
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-droppable.js +2 -2
- package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-hovered.js +4 -3
- package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +13 -8
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +3 -3
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js +21 -9
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/interfaces/alert-context.js +2 -0
- package/interfaces/aria-dialog-context.js +2 -0
- package/interfaces/base-dialog-context.js +2 -0
- package/interfaces/base-dialog.js +2 -0
- package/interfaces/context-with-implicit.js +2 -0
- package/interfaces/control-value-transformer.js +2 -0
- package/interfaces/day-like.js +2 -0
- package/interfaces/focusable-element-accessor.js +2 -0
- package/interfaces/index.js +16 -0
- package/interfaces/month-like.js +2 -0
- package/interfaces/swipe.js +2 -0
- package/interfaces/time-like.js +2 -0
- package/interfaces/year-like.js +2 -0
- package/interfaces/zoom.js +2 -0
- package/observables/is-observed.d.ts +0 -3
- package/package.json +1 -1
- package/schematics/utils/angular-json-manipulations.js +3 -2
- package/schematics/utils/templates/elements.js +3 -3
- package/schematics/utils/templates/ng-component-input-manipulations.js +2 -1
- package/types/autocomplete.js +2 -0
- package/types/date-mode.js +2 -0
- package/types/dialog.js +2 -0
- package/types/event-with.js +2 -0
- package/types/handler.js +2 -0
- package/types/index.js +15 -0
- package/types/injection-token-type.js +2 -0
- package/types/input-mode.js +2 -0
- package/types/input-type.js +2 -0
- package/types/mapper.js +2 -0
- package/types/matcher.js +2 -0
- package/types/overscroll-mode.js +2 -0
- package/types/time-mode.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/cdk",
|
|
3
|
-
"version": "3.15.0-dev.main-
|
|
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(
|
|
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(
|
|
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
|
|
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 =
|
|
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))
|
package/types/dialog.js
ADDED
package/types/handler.js
ADDED
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);
|
package/types/mapper.js
ADDED
package/types/matcher.js
ADDED