@taiga-ui/cdk 2.49.2 → 2.50.2
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-directives-auto-focus.umd.js +3 -2
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.min.js +1 -1
- package/bundles/taiga-ui-cdk-directives-auto-focus.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.js +3 -1
- package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-services.umd.min.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-tokens.umd.min.js.map +1 -1
- package/directives/auto-focus/autofocus.options.d.ts +1 -1
- package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.metadata.json +1 -1
- package/esm2015/directives/auto-focus/autofocus.options.js +5 -4
- package/esm2015/services/directive-styles.service.js +4 -2
- package/esm2015/tokens/is-cypress.js +1 -1
- package/esm5/directives/auto-focus/autofocus.options.js +5 -4
- package/esm5/services/directive-styles.service.js +4 -2
- package/esm5/tokens/is-cypress.js +1 -1
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +4 -3
- package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-services.js +3 -1
- package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
- package/fesm5/taiga-ui-cdk-directives-auto-focus.js +4 -3
- package/fesm5/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
- package/fesm5/taiga-ui-cdk-services.js +3 -1
- package/fesm5/taiga-ui-cdk-services.js.map +1 -1
- package/fesm5/taiga-ui-cdk-tokens.js.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/steps/add-taiga-icons.d.ts +1 -2
- package/schematics/ng-add/steps/add-taiga-icons.js +9 -15
- package/schematics/ng-add/steps/add-taiga-styles.d.ts +1 -2
- package/schematics/ng-add/steps/add-taiga-styles.js +12 -16
- package/schematics/ng-update/constants/consts.js +21 -0
- package/schematics/ng-update/constants/functions.d.ts +0 -0
- package/schematics/ng-update/constants/functions.js +1 -0
- package/schematics/ng-update/constants/templates.js +41 -1
- package/schematics/ng-update/constants/types.js +45 -0
- package/schematics/ng-update/constants/warnings.js +10 -0
- package/schematics/ng-update/index.js +4 -0
- package/schematics/ng-update/steps/migrate-sliders/index.js +2 -0
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-range.d.ts +2 -0
- package/schematics/ng-update/steps/migrate-sliders/migrate-input-range.js +80 -0
- package/schematics/ng-update/steps/migrate-templates.js +88 -29
- package/schematics/ng-update/steps/miscellaneous.d.ts +1 -0
- package/schematics/ng-update/steps/miscellaneous.js +65 -0
- package/schematics/ng-update/steps/replace-functions.d.ts +1 -0
- package/schematics/ng-update/steps/replace-functions.js +61 -0
- package/schematics/utils/get-project.js +2 -1
- package/services/directive-styles.service.d.ts +3 -1
- package/tokens/taiga-ui-cdk-tokens.metadata.json +1 -1
|
@@ -10,27 +10,37 @@ const ng_morph_1 = require("ng-morph");
|
|
|
10
10
|
const START_TAG_OFFSET = 1;
|
|
11
11
|
const END_TAG_OFFSET = 2;
|
|
12
12
|
function migrateTemplates(tree) {
|
|
13
|
-
const templateResources = get_component_templates_1.getComponentTemplates('**/**');
|
|
14
13
|
const fileSystem = new devkit_file_system_1.DevkitFileSystem(tree);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
const componentWithTemplatesPaths = get_component_templates_1.getComponentTemplates('**/**').map(({ componentPath }) => componentPath);
|
|
15
|
+
const actions = [
|
|
16
|
+
replaceTags,
|
|
17
|
+
replaceAttrs,
|
|
18
|
+
replaceAttrsByDirective,
|
|
19
|
+
replaceBreadcrumbs,
|
|
20
|
+
replaceFieldError,
|
|
21
|
+
];
|
|
22
|
+
actions.forEach(action => {
|
|
23
|
+
componentWithTemplatesPaths.forEach(componentPath => {
|
|
24
|
+
// get updated version of template after the previous action
|
|
25
|
+
const [resource] = get_component_templates_1.getComponentTemplates(componentPath);
|
|
26
|
+
const path = fileSystem.resolve(template_resource_1.getPathFromTemplateResource(resource));
|
|
27
|
+
const recorder = fileSystem.edit(path);
|
|
28
|
+
action({ resource, fileSystem, recorder });
|
|
29
|
+
});
|
|
30
|
+
save(fileSystem);
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
33
|
exports.migrateTemplates = migrateTemplates;
|
|
33
|
-
|
|
34
|
+
/**
|
|
35
|
+
* We should update virtual file tree
|
|
36
|
+
* otherwise all following ng-morph commands will overwrite all previous template manipulations
|
|
37
|
+
* */
|
|
38
|
+
function save(fileSystem) {
|
|
39
|
+
fileSystem.commitEdits();
|
|
40
|
+
ng_morph_1.saveActiveProject();
|
|
41
|
+
ng_morph_1.setActiveProject(ng_morph_1.createProject(fileSystem.tree, '/', '**/**'));
|
|
42
|
+
}
|
|
43
|
+
function replaceAttrsByDirective({ resource, fileSystem, }) {
|
|
34
44
|
templates_1.ATTR_TO_DIRECTIVE.forEach(({ componentSelector, directiveModule, directive, inputProperty }) => {
|
|
35
45
|
ng_component_input_manipulations_1.replaceInputPropertyByDirective({
|
|
36
46
|
componentSelector,
|
|
@@ -38,11 +48,13 @@ function replaceAttrsByDirective(fileSystem, templateResource) {
|
|
|
38
48
|
directive,
|
|
39
49
|
inputProperty,
|
|
40
50
|
fileSystem,
|
|
41
|
-
templateResource,
|
|
51
|
+
templateResource: resource,
|
|
42
52
|
});
|
|
43
53
|
});
|
|
44
54
|
}
|
|
45
|
-
function replaceAttrs(
|
|
55
|
+
function replaceAttrs({ resource, recorder, fileSystem, }) {
|
|
56
|
+
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
|
57
|
+
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
|
46
58
|
templates_1.ATTRS_TO_REPLACE.forEach(({ from, to }) => {
|
|
47
59
|
const offsets = [
|
|
48
60
|
...elements_1.findAttributeOnElementWithTag(template, from.attrName, from.withTagNames || []),
|
|
@@ -54,21 +66,68 @@ function replaceAttrs(template, recorder, templateOffset = 0) {
|
|
|
54
66
|
});
|
|
55
67
|
});
|
|
56
68
|
}
|
|
57
|
-
function replaceTags(
|
|
69
|
+
function replaceTags({ resource, recorder, fileSystem, }) {
|
|
70
|
+
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
|
71
|
+
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
|
58
72
|
templates_1.TAGS_TO_REPLACE.forEach(({ from, to, addAttributes }) => {
|
|
59
73
|
const elements = elements_1.findElementsByTagName(template, from);
|
|
60
74
|
elements.forEach(({ sourceCodeLocation }) => {
|
|
61
|
-
var _a;
|
|
62
75
|
if (sourceCodeLocation) {
|
|
63
|
-
|
|
64
|
-
const endTagOffset = (_a = sourceCodeLocation.endTag) === null || _a === void 0 ? void 0 : _a.startOffset;
|
|
65
|
-
if (endTagOffset) {
|
|
66
|
-
recorder.remove(endTagOffset + templateOffset + END_TAG_OFFSET, from.length);
|
|
67
|
-
recorder.insertRight(endTagOffset + templateOffset + END_TAG_OFFSET, to);
|
|
68
|
-
}
|
|
69
|
-
recorder.remove(startTagOffset + templateOffset + START_TAG_OFFSET, from.length);
|
|
70
|
-
recorder.insertRight(startTagOffset + templateOffset + START_TAG_OFFSET, `${to} ${addAttributes.join(' ')}`);
|
|
76
|
+
replaceTag(recorder, sourceCodeLocation, from, to, templateOffset, addAttributes);
|
|
71
77
|
}
|
|
72
78
|
});
|
|
73
79
|
});
|
|
74
80
|
}
|
|
81
|
+
function replaceBreadcrumbs({ resource, recorder, fileSystem, }) {
|
|
82
|
+
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
|
83
|
+
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
|
84
|
+
const elements = elements_1.findElementsByTagName(template, 'tui-breadcrumbs');
|
|
85
|
+
elements.forEach(element => {
|
|
86
|
+
var _a, _b, _c;
|
|
87
|
+
const itemsAttr = element.attrs.find(attr => attr.name === '[items]');
|
|
88
|
+
const itemsValue = itemsAttr === null || itemsAttr === void 0 ? void 0 : itemsAttr.value;
|
|
89
|
+
const insertTo = (_a = element === null || element === void 0 ? void 0 : element.sourceCodeLocation) === null || _a === void 0 ? void 0 : _a.startTag.endOffset;
|
|
90
|
+
if (!itemsValue || !insertTo) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
recorder.insertRight(insertTo + templateOffset, `
|
|
94
|
+
<ng-container *ngFor="let item of ${itemsValue}">
|
|
95
|
+
<a
|
|
96
|
+
*tuiBreadcrumb
|
|
97
|
+
tuiLink
|
|
98
|
+
[routerLink]="item.routerLink"
|
|
99
|
+
>
|
|
100
|
+
{{ item.caption }}
|
|
101
|
+
</a>
|
|
102
|
+
</ng-container>`);
|
|
103
|
+
const { startOffset = 0, endOffset = 0 } = ((_c = (_b = element.sourceCodeLocation) === null || _b === void 0 ? void 0 : _b.attrs) === null || _c === void 0 ? void 0 : _c['[items]']) || {};
|
|
104
|
+
recorder.remove(templateOffset + startOffset - 1, endOffset - startOffset + 1);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function replaceFieldError({ resource, recorder, fileSystem, }) {
|
|
108
|
+
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
|
109
|
+
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
|
110
|
+
const elements = elements_1.findElementsByTagName(template, 'tui-field-error');
|
|
111
|
+
elements.forEach(element => {
|
|
112
|
+
var _a, _b;
|
|
113
|
+
const orderAttr = element.attrs.find(attr => attr.name === '[order]');
|
|
114
|
+
const orderVal = orderAttr === null || orderAttr === void 0 ? void 0 : orderAttr.value;
|
|
115
|
+
if (orderAttr) {
|
|
116
|
+
const { startOffset = 0, endOffset = 0 } = ((_b = (_a = element.sourceCodeLocation) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b['[order]']) || {};
|
|
117
|
+
recorder.remove(templateOffset + startOffset - 1, endOffset - startOffset + 1);
|
|
118
|
+
}
|
|
119
|
+
const input = `[error]="${orderVal !== null && orderVal !== void 0 ? orderVal : '[]'} | tuiFieldError | async"`;
|
|
120
|
+
replaceTag(recorder, element.sourceCodeLocation, 'tui-field-error', 'tui-error', templateOffset, [input]);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function replaceTag(recorder, sourceCodeLocation, from, to, templateOffset = 0, addAttributes = []) {
|
|
124
|
+
var _a;
|
|
125
|
+
const startTagOffset = sourceCodeLocation.startTag.startOffset;
|
|
126
|
+
const endTagOffset = (_a = sourceCodeLocation.endTag) === null || _a === void 0 ? void 0 : _a.startOffset;
|
|
127
|
+
if (endTagOffset) {
|
|
128
|
+
recorder.remove(endTagOffset + templateOffset + END_TAG_OFFSET, from.length);
|
|
129
|
+
recorder.insertRight(endTagOffset + templateOffset + END_TAG_OFFSET, to);
|
|
130
|
+
}
|
|
131
|
+
recorder.remove(startTagOffset + templateOffset + START_TAG_OFFSET, from.length);
|
|
132
|
+
recorder.insertRight(startTagOffset + templateOffset + START_TAG_OFFSET, `${to} ${addAttributes.join(' ')}`);
|
|
133
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function miscellaneousMigrations(): void;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const get_named_import_references_1 = require("../../utils/get-named-import-references");
|
|
4
|
+
const ng_morph_1 = require("ng-morph");
|
|
5
|
+
function miscellaneousMigrations() {
|
|
6
|
+
replaceEnumProperty({
|
|
7
|
+
enumName: 'TuiCurrency',
|
|
8
|
+
from: 'HongKong_dollar',
|
|
9
|
+
to: 'HongKongDollar',
|
|
10
|
+
});
|
|
11
|
+
replaceEnumProperty({
|
|
12
|
+
enumName: 'TuiCurrencyCode',
|
|
13
|
+
from: 'HongKong_dollar',
|
|
14
|
+
to: 'HongKongDollar',
|
|
15
|
+
});
|
|
16
|
+
addWarningToMethod('TuiDirectiveStylesService', 'addStyle', 'addStyle method has been removed. Use components approach');
|
|
17
|
+
}
|
|
18
|
+
exports.miscellaneousMigrations = miscellaneousMigrations;
|
|
19
|
+
function addWarningToMethod(className, method, message) {
|
|
20
|
+
const references = get_named_import_references_1.getNamedImportReferences(className);
|
|
21
|
+
references.forEach(ref => {
|
|
22
|
+
const parent = ref.getParent();
|
|
23
|
+
if (ng_morph_1.Node.isTypeReferenceNode(parent)) {
|
|
24
|
+
checkMethod(parent, method, message);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function replaceEnumProperty({ enumName, from, to, }) {
|
|
29
|
+
const references = get_named_import_references_1.getNamedImportReferences(enumName);
|
|
30
|
+
references.forEach(ref => {
|
|
31
|
+
const parent = ref.getParent();
|
|
32
|
+
if (!ng_morph_1.Node.isPropertyAccessExpression(parent)) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
parent.getChildren().forEach(node => {
|
|
36
|
+
if (node.getText() === from) {
|
|
37
|
+
node.replaceWithText(to);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function checkMethod(node, method, message) {
|
|
43
|
+
const statement = node.getParent();
|
|
44
|
+
const identifier = statement.getChildrenOfKind(ng_morph_1.SyntaxKind.Identifier)[0];
|
|
45
|
+
identifier.findReferencesAsNodes().forEach(ref => {
|
|
46
|
+
let parent = ref.getParent();
|
|
47
|
+
if ((ng_morph_1.Node.isPropertyAccessExpression(parent) &&
|
|
48
|
+
parent.getText().startsWith('this.')) ||
|
|
49
|
+
ng_morph_1.Node.isCallExpression(parent)) {
|
|
50
|
+
parent = parent.getParentIfKind(ng_morph_1.SyntaxKind.PropertyAccessExpression);
|
|
51
|
+
}
|
|
52
|
+
if (ng_morph_1.Node.isPropertyAccessExpression(parent)) {
|
|
53
|
+
parent.getChildrenOfKind(ng_morph_1.SyntaxKind.Identifier).forEach(identifier => {
|
|
54
|
+
if (identifier.getText() === method) {
|
|
55
|
+
insertTodo(identifier, message);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function insertTodo(identifier, message) {
|
|
62
|
+
const startLinePos = identifier.getStartLinePos();
|
|
63
|
+
const sourceFile = identifier.getSourceFile();
|
|
64
|
+
sourceFile.insertText(startLinePos, `// TODO: ${message}\n`);
|
|
65
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function replaceFunctions(): void;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const get_named_import_references_1 = require("../../utils/get-named-import-references");
|
|
4
|
+
const ng_morph_1 = require("ng-morph");
|
|
5
|
+
const import_manipulations_1 = require("../../utils/import-manipulations");
|
|
6
|
+
function replaceFunctions() {
|
|
7
|
+
replacePadStart(get_named_import_references_1.getNamedImportReferences('padStart', '@taiga-ui/cdk'));
|
|
8
|
+
replaceFallbackValue(get_named_import_references_1.getNamedImportReferences('fallbackValue', '@taiga-ui/cdk'));
|
|
9
|
+
replaceCustomEvent(get_named_import_references_1.getNamedImportReferences('tuiCustomEvent', '@taiga-ui/cdk'));
|
|
10
|
+
replaceClosestElement(get_named_import_references_1.getNamedImportReferences('getClosestElement', '@taiga-ui/cdk'));
|
|
11
|
+
}
|
|
12
|
+
exports.replaceFunctions = replaceFunctions;
|
|
13
|
+
function replacePadStart(references) {
|
|
14
|
+
references.forEach(ref => {
|
|
15
|
+
var _a;
|
|
16
|
+
const parent = ref.getParent();
|
|
17
|
+
if (ng_morph_1.Node.isImportSpecifier(parent)) {
|
|
18
|
+
import_manipulations_1.removeImport(parent);
|
|
19
|
+
}
|
|
20
|
+
else if (ng_morph_1.Node.isCallExpression(parent)) {
|
|
21
|
+
const [targetString, length, pad] = parent.getArguments();
|
|
22
|
+
parent.replaceWithText(`${targetString.getText()}.padStart(${length.getText()}, ${(_a = pad === null || pad === void 0 ? void 0 : pad.getText()) !== null && _a !== void 0 ? _a : '" "'})`);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function replaceClosestElement(references) {
|
|
27
|
+
references.forEach(ref => {
|
|
28
|
+
const parent = ref.getParent();
|
|
29
|
+
if (ng_morph_1.Node.isImportSpecifier(parent)) {
|
|
30
|
+
import_manipulations_1.removeImport(parent);
|
|
31
|
+
}
|
|
32
|
+
else if (ng_morph_1.Node.isCallExpression(parent)) {
|
|
33
|
+
const [firstArg, secondArg] = parent.getArguments();
|
|
34
|
+
parent.replaceWithText(`${firstArg.getText()}.closest(${secondArg.getText()})`);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function replaceCustomEvent(references) {
|
|
39
|
+
references.forEach(ref => {
|
|
40
|
+
const parent = ref.getParent();
|
|
41
|
+
if (ng_morph_1.Node.isImportSpecifier(parent)) {
|
|
42
|
+
import_manipulations_1.removeImport(parent);
|
|
43
|
+
}
|
|
44
|
+
else if (ng_morph_1.Node.isCallExpression(parent)) {
|
|
45
|
+
const [firstArg, secondArg] = parent.getArguments();
|
|
46
|
+
parent.replaceWithText(`new CustomEvent(${firstArg.getText()}, ${secondArg.getText()})`);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function replaceFallbackValue(references) {
|
|
51
|
+
references.forEach(ref => {
|
|
52
|
+
const parent = ref.getParent();
|
|
53
|
+
if (ng_morph_1.Node.isImportSpecifier(parent)) {
|
|
54
|
+
import_manipulations_1.removeImport(parent);
|
|
55
|
+
}
|
|
56
|
+
else if (ng_morph_1.Node.isCallExpression(parent)) {
|
|
57
|
+
const [firstArg, secondArg] = parent.getArguments();
|
|
58
|
+
parent.replaceWithText(`${firstArg.getText()} ?? ${secondArg.getText()}`);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
4
|
function getProject(options, workspace) {
|
|
5
|
-
|
|
5
|
+
var _a;
|
|
6
|
+
const projectName = options.project || ((_a = workspace.extensions.defaultProject) === null || _a === void 0 ? void 0 : _a.toString()) || '';
|
|
6
7
|
const project = workspace.projects.get(projectName);
|
|
7
8
|
if (!project) {
|
|
8
9
|
throw new schematics_1.SchematicsException(`Unable to find project '${projectName}' in the workspace`);
|
|
@@ -11,6 +11,8 @@ export declare class TuiDirectiveStylesService {
|
|
|
11
11
|
private readonly map;
|
|
12
12
|
constructor(resolver: ComponentFactoryResolver, injector: Injector, documentRef: Document, renderer: Renderer2);
|
|
13
13
|
addComponent(component: Type<unknown>): void;
|
|
14
|
-
/** @deprecated use components approach
|
|
14
|
+
/** @deprecated use components approach
|
|
15
|
+
* TODO: delete in v3.0
|
|
16
|
+
*/
|
|
15
17
|
addStyle(styles: string, attribute: string): void;
|
|
16
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"TUI_ACTIVE_ELEMENT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":22,"character":38},"arguments":["Active element on the document for ActiveZone",{"__symbolic":"error","message":"Lambda not supported","line":25,"character":17,"module":"./active-element"}]},"TUI_ALERTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":30},"arguments":["A stream of alerts",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./alerts"}]},"TUI_DEFAULT_RENDERER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":40},"arguments":["A Renderer2 for global services",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":17,"module":"./default-renderer"}]},"TUI_DIALOGS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":31},"arguments":["A stream of dialogs",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./dialogs"}]},"TUI_FOCUSABLE_ITEM_ACCESSOR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":8},"arguments":["A component that can be focused"]},"TUI_IS_ANDROID":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":34},"arguments":["Mobile browser that is not iOS (technically includes Windows Phone, Blackberry etc.)",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./is-android"}]},"TUI_IS_APPLE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":32},"arguments":["Apple(safari/webkit) detection",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":14,"module":"./is-apple"}]},"TUI_IS_CHROMIUM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":35},"arguments":["Chromium browser engine detection",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./is-chromium"}]},"WindowWithCypress":{"__symbolic":"interface"},"TUI_IS_CYPRESS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"TUI_ACTIVE_ELEMENT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":22,"character":38},"arguments":["Active element on the document for ActiveZone",{"__symbolic":"error","message":"Lambda not supported","line":25,"character":17,"module":"./active-element"}]},"TUI_ALERTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":30},"arguments":["A stream of alerts",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./alerts"}]},"TUI_DEFAULT_RENDERER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":40},"arguments":["A Renderer2 for global services",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":17,"module":"./default-renderer"}]},"TUI_DIALOGS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":31},"arguments":["A stream of dialogs",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./dialogs"}]},"TUI_FOCUSABLE_ITEM_ACCESSOR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":8},"arguments":["A component that can be focused"]},"TUI_IS_ANDROID":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":34},"arguments":["Mobile browser that is not iOS (technically includes Windows Phone, Blackberry etc.)",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./is-android"}]},"TUI_IS_APPLE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":32},"arguments":["Apple(safari/webkit) detection",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":14,"module":"./is-apple"}]},"TUI_IS_CHROMIUM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":35},"arguments":["Chromium browser engine detection",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./is-chromium"}]},"WindowWithCypress":{"__symbolic":"interface"},"TUI_IS_CYPRESS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":11,"character":34},"arguments":["Detect if app is running under Cypress",{"__symbolic":"error","message":"Lambda not supported","line":14,"character":17,"module":"./is-cypress"}]},"TUI_IS_FIREFOX":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":34},"arguments":["Firefox browser engine detection",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./is-firefox"}]},"TUI_IS_IOS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":30},"arguments":["iOS browser detection",{"__symbolic":"error","message":"Lambda not supported","line":5,"character":13,"module":"./is-ios"}]},"TUI_IS_MOBILE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":33},"arguments":["Mobile browser detection",{"__symbolic":"error","message":"Lambda not supported","line":10,"character":13,"module":"./is-mobile"}]},"TUI_IS_WEBKIT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":33},"arguments":["Webkit browser engine detection",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./is-webkit"}]},"TUI_REMOVED_ELEMENT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":39},"arguments":["Element currently being removed by AnimationEngine",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./removed-element"}]},"TUI_SANITIZER":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":33},"arguments":["A custom Sanitizer to sanitize source before inlining"]},"TUI_SWIPE_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":37},"arguments":["Swipe options",{"__symbolic":"error","message":"Lambda not supported","line":4,"character":13,"module":"./swipe-options"}]},"TUI_TAKE_ONLY_TRUSTED_EVENTS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":8},"arguments":["This token need for override behavior the `pressedObservable` function",{"__symbolic":"error","message":"Lambda not supported","line":12,"character":21,"module":"./take-only-trusted-events"}]},"TUI_TOUCH_SUPPORTED":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":39},"arguments":["Touch support detection",{"__symbolic":"error","message":"Lambda not supported","line":4,"character":13,"module":"./touch-supported"}]},"TUI_WINDOW_HEIGHT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":6,"character":37},"arguments":["Window height accounting for disappearing address bar",{"__symbolic":"error","message":"Lambda not supported","line":9,"character":17,"module":"./window-height"}]},"TUI_ZOOM_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":36},"arguments":["Zoom options",{"__symbolic":"error","message":"Lambda not supported","line":4,"character":13,"module":"./zoom-options"}]}},"origins":{"TUI_ACTIVE_ELEMENT":"./active-element","TUI_ALERTS":"./alerts","TUI_DEFAULT_RENDERER":"./default-renderer","TUI_DIALOGS":"./dialogs","TUI_FOCUSABLE_ITEM_ACCESSOR":"./focusable-item-accessor","TUI_IS_ANDROID":"./is-android","TUI_IS_APPLE":"./is-apple","TUI_IS_CHROMIUM":"./is-chromium","WindowWithCypress":"./is-cypress","TUI_IS_CYPRESS":"./is-cypress","TUI_IS_FIREFOX":"./is-firefox","TUI_IS_IOS":"./is-ios","TUI_IS_MOBILE":"./is-mobile","TUI_IS_WEBKIT":"./is-webkit","TUI_REMOVED_ELEMENT":"./removed-element","TUI_SANITIZER":"./sanitizer","TUI_SWIPE_OPTIONS":"./swipe-options","TUI_TAKE_ONLY_TRUSTED_EVENTS":"./take-only-trusted-events","TUI_TOUCH_SUPPORTED":"./touch-supported","TUI_WINDOW_HEIGHT":"./window-height","TUI_ZOOM_OPTIONS":"./zoom-options"},"importAs":"@taiga-ui/cdk/tokens"}
|