@taiga-ui/cdk 3.0.0-rc.4 → 3.0.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.
- package/abstract/dialog.service.d.ts +4 -4
- package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +1 -1
- package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js +1 -1
- package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-directives.umd.js +4 -10
- package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-enums.umd.js +0 -56
- package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-observables.umd.js +8 -0
- package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js +0 -1
- package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/directives/index.d.ts +0 -1
- package/directives/let/let.directive.d.ts +1 -1
- package/enums/index.d.ts +0 -1
- package/esm2015/abstract/dialog.service.js +1 -1
- package/esm2015/components/dialog-host/dialog-host.component.js +2 -2
- package/esm2015/constants/version.js +2 -2
- package/esm2015/directives/index.js +1 -2
- package/esm2015/directives/let/let.directive.js +1 -1
- package/esm2015/enums/index.js +1 -2
- package/esm2015/observables/index.js +2 -1
- package/esm2015/observables/is-observed.js +7 -0
- package/esm2015/types/autocomplete.js +2 -0
- package/esm2015/types/index.js +3 -1
- package/esm2015/types/injection-token-type.js +2 -0
- package/esm2015/utils/dom/element-checks.js +1 -2
- package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js +1 -1
- package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js +1 -1
- package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-directives.js +0 -1
- package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-enums.js +1 -57
- package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-observables.js +8 -1
- package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js +0 -1
- package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
- package/observables/index.d.ts +1 -0
- package/observables/is-observed.d.ts +5 -0
- package/package.json +1 -1
- package/schematics/ng-add/index.js +12 -0
- package/schematics/ng-add/steps/add-taiga-styles.js +2 -2
- package/schematics/ng-update/constants/consts.js +50 -0
- package/schematics/ng-update/constants/enums.js +72 -0
- package/schematics/ng-update/constants/modules.js +1 -0
- package/schematics/ng-update/constants/templates.js +108 -0
- package/schematics/ng-update/constants/tui-interactive-selectors.js +1 -1
- package/schematics/ng-update/index.js +8 -6
- package/schematics/ng-update/steps/migrate-taiga-proprietary-icons.js +11 -2
- package/schematics/ng-update/steps/migrate-templates.js +2 -0
- package/schematics/ng-update/steps/migrate-textfield-controller.d.ts +8 -0
- package/schematics/ng-update/steps/migrate-textfield-controller.js +98 -0
- package/schematics/utils/{add-styles.d.ts → angular-json-manipulations.d.ts} +1 -0
- package/schematics/utils/{add-styles.js → angular-json-manipulations.js} +14 -1
- package/schematics/utils/templates/elements.d.ts +1 -0
- package/schematics/utils/templates/elements.js +9 -1
- package/types/autocomplete.d.ts +1 -0
- package/types/index.d.ts +2 -0
- package/types/injection-token-type.d.ts +2 -0
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.js +0 -102
- package/bundles/taiga-ui-cdk-directives-input-mode.umd.js.map +0 -1
- package/directives/input-mode/index.d.ts +0 -2
- package/directives/input-mode/input-mode.directive.d.ts +0 -14
- package/directives/input-mode/input-mode.module.d.ts +0 -7
- package/directives/input-mode/package.json +0 -10
- package/directives/input-mode/taiga-ui-cdk-directives-input-mode.d.ts +0 -5
- package/enums/autocomplete.d.ts +0 -48
- package/esm2015/directives/input-mode/index.js +0 -3
- package/esm2015/directives/input-mode/input-mode.directive.js +0 -45
- package/esm2015/directives/input-mode/input-mode.module.js +0 -16
- package/esm2015/directives/input-mode/taiga-ui-cdk-directives-input-mode.js +0 -5
- package/esm2015/enums/autocomplete.js +0 -56
- package/fesm2015/taiga-ui-cdk-directives-input-mode.js +0 -65
- package/fesm2015/taiga-ui-cdk-directives-input-mode.js.map +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TemplateResource } from '../interfaces/template-resourse';
|
|
2
|
+
import { UpdateRecorder } from '@angular-devkit/schematics';
|
|
3
|
+
import { DevkitFileSystem } from 'ng-morph/project/classes/devkit-file-system';
|
|
4
|
+
export declare function migrateTextfieldController({ resource, fileSystem, recorder, }: {
|
|
5
|
+
resource: TemplateResource;
|
|
6
|
+
recorder: UpdateRecorder;
|
|
7
|
+
fileSystem: DevkitFileSystem;
|
|
8
|
+
}): void;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.migrateTextfieldController = void 0;
|
|
4
|
+
const template_resource_1 = require("../../utils/templates/template-resource");
|
|
5
|
+
const elements_1 = require("../../utils/templates/elements");
|
|
6
|
+
const ng_component_input_manipulations_1 = require("../../utils/templates/ng-component-input-manipulations");
|
|
7
|
+
const ng_morph_1 = require("ng-morph");
|
|
8
|
+
const TEXTFIELDS = [
|
|
9
|
+
'tui-input',
|
|
10
|
+
'tui-primitive-textfield',
|
|
11
|
+
'tui-text-area',
|
|
12
|
+
'tui-combo-box',
|
|
13
|
+
'tui-input-copy',
|
|
14
|
+
'tui-input-date',
|
|
15
|
+
'tui-input-date-range',
|
|
16
|
+
'tui-input-date-time',
|
|
17
|
+
'tui-input-number',
|
|
18
|
+
'tui-input-password',
|
|
19
|
+
'tui-input-count',
|
|
20
|
+
'tui-input-number',
|
|
21
|
+
'tui-input-phone',
|
|
22
|
+
'tui-input-slider',
|
|
23
|
+
'tui-input-card',
|
|
24
|
+
];
|
|
25
|
+
const ATTRS_MAP = {
|
|
26
|
+
tuitextfieldautocomplete: 'autocomplete',
|
|
27
|
+
tuitextfieldinputMode: 'inputmode',
|
|
28
|
+
tuitextfieldmaxlength: 'maxlength',
|
|
29
|
+
tuitextfieldtype: 'type',
|
|
30
|
+
tuitextfieldexampletext: 'placeholder',
|
|
31
|
+
'[tuitextfieldautocomplete]': '[attr.autocomplete]',
|
|
32
|
+
'[tuitextfieldinputMode]': '[attr.inputmode]',
|
|
33
|
+
'[tuitextfieldmaxlength]': '[attr.maxlength]',
|
|
34
|
+
'[tuitextfieldtype]': '[attr.type]',
|
|
35
|
+
'[tuitextfieldexampletext]': '[attr.placeholder]',
|
|
36
|
+
};
|
|
37
|
+
const CONTROLLER_ITEMS = Object.keys(ATTRS_MAP).map(attr => attr.toLowerCase());
|
|
38
|
+
function migrateTextfieldController({ resource, fileSystem, recorder, }) {
|
|
39
|
+
const template = template_resource_1.getTemplateFromTemplateResource(resource, fileSystem);
|
|
40
|
+
const templateOffset = template_resource_1.getTemplateOffset(resource);
|
|
41
|
+
const elements = elements_1.findElementsByTagNames(template, TEXTFIELDS);
|
|
42
|
+
elements.forEach(element => {
|
|
43
|
+
const attrs = element.attrs.filter(attr => CONTROLLER_ITEMS.includes(attr.name) && !exclusion(element, attr.name));
|
|
44
|
+
if (!attrs.length) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const existingInput = elements_1.findElementsByFn(element.childNodes, el => (el.tagName === 'input' || el.tagName === 'textarea') &&
|
|
48
|
+
elements_1.hasElementAttribute(el, 'tuiTextfield'))[0];
|
|
49
|
+
if (existingInput) {
|
|
50
|
+
addAttrToExistingInput({ existingInput, attrs, recorder, templateOffset });
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
insertTuiTextfieldInput({ element, attrs, recorder, templateOffset });
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
removeOldInputs(recorder, template, templateOffset);
|
|
57
|
+
}
|
|
58
|
+
exports.migrateTextfieldController = migrateTextfieldController;
|
|
59
|
+
function insertTuiTextfieldInput({ element, attrs, recorder, templateOffset, }) {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
const newAttrs = attrs
|
|
62
|
+
.map(attr => `${ATTRS_MAP[attr.name]}="${attr.value}"`)
|
|
63
|
+
.join(`\n`);
|
|
64
|
+
const content = element.tagName === 'tui-text-area'
|
|
65
|
+
? `<textarea tuiTextfield ${newAttrs}></textarea> `
|
|
66
|
+
: `<input tuiTextfield ${newAttrs}/> `;
|
|
67
|
+
const insertTo = (_b = (_a = element.sourceCodeLocation) === null || _a === void 0 ? void 0 : _a.endTag) === null || _b === void 0 ? void 0 : _b.startOffset;
|
|
68
|
+
if (insertTo) {
|
|
69
|
+
recorder.insertRight(insertTo + templateOffset, content);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function addAttrToExistingInput({ existingInput, attrs, recorder, templateOffset, }) {
|
|
73
|
+
attrs.forEach(attr => {
|
|
74
|
+
var _a, _b, _c;
|
|
75
|
+
const insertTo = (_c = (_b = (_a = existingInput.sourceCodeLocation) === null || _a === void 0 ? void 0 : _a.attrs) === null || _b === void 0 ? void 0 : _b['tuitextfield']) === null || _c === void 0 ? void 0 : _c.endOffset;
|
|
76
|
+
if (insertTo) {
|
|
77
|
+
recorder.insertLeft(insertTo + templateOffset, ` ${ATTRS_MAP[attr.name]}="${attr.value}"`);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function removeOldInputs(recorder, template, templateOffset) {
|
|
82
|
+
const offsets = ng_morph_1.arrayFlat(CONTROLLER_ITEMS.map(item => ng_component_input_manipulations_1.getInputPropertyOffsets(template, item, getTagsToRemove(item))));
|
|
83
|
+
offsets.forEach(([start, end]) => {
|
|
84
|
+
recorder.remove(start + templateOffset, end - start);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function getTagsToRemove(attrName) {
|
|
88
|
+
return ['[tuitextfieldmaxlength]', 'tuitextfieldmaxlength'].includes(attrName)
|
|
89
|
+
? TEXTFIELDS.filter(tag => tag !== 'tui-text-area')
|
|
90
|
+
: TEXTFIELDS;
|
|
91
|
+
}
|
|
92
|
+
const excludedAttrs = {
|
|
93
|
+
'tui-text-area': ['[tuitextfieldmaxlength]', 'tuitextfieldmaxlength'],
|
|
94
|
+
};
|
|
95
|
+
function exclusion({ tagName }, attrName) {
|
|
96
|
+
var _a;
|
|
97
|
+
return (_a = excludedAttrs[tagName]) === null || _a === void 0 ? void 0 : _a.includes(attrName);
|
|
98
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Schema } from '../ng-add/schema';
|
|
2
2
|
import { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
3
3
|
import { JsonArray } from '@angular-devkit/core';
|
|
4
|
+
export declare function isInvalidAngularJson(tree: Tree): Promise<boolean>;
|
|
4
5
|
export declare function addStylesToAngularJson(options: Schema, context: SchematicContext, taigaStyles: string[], filter?: (styles: JsonArray | undefined) => boolean, stylesToReplace?: {
|
|
5
6
|
from: string;
|
|
6
7
|
to: string[];
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addStylesToAngularJson = void 0;
|
|
3
|
+
exports.addStylesToAngularJson = exports.isInvalidAngularJson = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const get_project_1 = require("./get-project");
|
|
5
6
|
const get_project_target_options_1 = require("./get-project-target-options");
|
|
6
7
|
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
7
8
|
const ng_morph_1 = require("ng-morph");
|
|
8
9
|
const versions_1 = require("../ng-add/constants/versions");
|
|
9
10
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
11
|
+
function isInvalidAngularJson(tree) {
|
|
12
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13
|
+
return (workspace_1.getWorkspace(tree)
|
|
14
|
+
.then(() => false)
|
|
15
|
+
/**
|
|
16
|
+
* Possible error – "Invalid format version detected - Expected:[ 1 ] Found: [ 2 ]"
|
|
17
|
+
* @see https://github.com/angular/angular-cli/blob/main/packages/angular_devkit/core/src/workspace/json/reader.ts#L67-L69
|
|
18
|
+
*/
|
|
19
|
+
.catch(() => true));
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
exports.isInvalidAngularJson = isInvalidAngularJson;
|
|
10
23
|
function addStylesToAngularJson(options, context, taigaStyles, filter, stylesToReplace, tree) {
|
|
11
24
|
return workspace_1.updateWorkspace(workspace => {
|
|
12
25
|
const project = get_project_1.getProject(options, workspace);
|
|
@@ -2,6 +2,7 @@ import { ChildNode, Element } from 'parse5';
|
|
|
2
2
|
export declare function findElementsByFn(nodes: ChildNode[], predicateFn: (el: Element) => boolean): Element[];
|
|
3
3
|
export declare function findElementsInTemplateByFn(html: string, predicateFn: (el: Element) => boolean): Element[];
|
|
4
4
|
export declare function findElementsByTagName(html: string, tagName: string): Element[];
|
|
5
|
+
export declare function findElementsByTagNames(html: string, tagNames: string[]): Element[];
|
|
5
6
|
/**
|
|
6
7
|
* Parses a HTML fragment and traverses all AST nodes in order find elements that
|
|
7
8
|
* include the specified attribute.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getStartOffsetOfAttribute = exports.hasElementAttribute = exports.findAttributeOnElementWithAttrs = exports.findAttributeOnElementWithTag = exports.findElementsWithAttribute = exports.findElementsByTagName = exports.findElementsInTemplateByFn = exports.findElementsByFn = void 0;
|
|
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
5
|
const ALWAYS_TRUE_HANDLER = () => true;
|
|
6
6
|
function findElementsByFn(nodes, predicateFn) {
|
|
@@ -21,6 +21,10 @@ function findElementsByFn(nodes, predicateFn) {
|
|
|
21
21
|
}
|
|
22
22
|
exports.findElementsByFn = findElementsByFn;
|
|
23
23
|
function findElementsInTemplateByFn(html, predicateFn) {
|
|
24
|
+
// utf8 with BOM adds an extra character to the beginning of the string
|
|
25
|
+
if (html.charCodeAt(0) === 0xfeff) {
|
|
26
|
+
html = html.substr(1);
|
|
27
|
+
}
|
|
24
28
|
const document = parse5_1.parseFragment(html, { sourceCodeLocationInfo: true });
|
|
25
29
|
return findElementsByFn(document.childNodes, predicateFn);
|
|
26
30
|
}
|
|
@@ -29,6 +33,10 @@ function findElementsByTagName(html, tagName) {
|
|
|
29
33
|
return findElementsInTemplateByFn(html, el => el.tagName === tagName);
|
|
30
34
|
}
|
|
31
35
|
exports.findElementsByTagName = findElementsByTagName;
|
|
36
|
+
function findElementsByTagNames(html, tagNames) {
|
|
37
|
+
return findElementsInTemplateByFn(html, el => tagNames.includes(el.tagName));
|
|
38
|
+
}
|
|
39
|
+
exports.findElementsByTagNames = findElementsByTagNames;
|
|
32
40
|
/**
|
|
33
41
|
* Parses a HTML fragment and traverses all AST nodes in order find elements that
|
|
34
42
|
* include the specified attribute.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type TuiAutofillFieldName = 'off' | 'cc-name' | 'cc-number' | 'cc-csc' | 'cc-exp-month' | 'cc-exp-year' | 'cc-exp' | 'cc-type' | 'name' | 'given-name' | 'additional-name' | 'family-name' | 'username' | 'new-password' | 'current-password' | 'email' | 'street-address' | 'postal-code' | 'country-name' | 'tel' | 'bday' | 'transaction-currency' | 'transaction-amount';
|
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
export * from './autocomplete';
|
|
1
2
|
export * from './date-mode';
|
|
2
3
|
export * from './dialog';
|
|
3
4
|
export * from './event-with';
|
|
4
5
|
export * from './handler';
|
|
6
|
+
export * from './injection-token-type';
|
|
5
7
|
export * from './input-mode';
|
|
6
8
|
export * from './input-type';
|
|
7
9
|
export * from './mapper';
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk/tokens')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/cdk/directives/input-mode', ['exports', '@angular/core', '@taiga-ui/cdk/tokens'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"].cdk = global["taiga-ui"].cdk || {}, global["taiga-ui"].cdk.directives = global["taiga-ui"].cdk.directives || {}, global["taiga-ui"].cdk.directives["input-mode"] = {}), global.ng.core, global["taiga-ui"].cdk.tokens));
|
|
5
|
-
})(this, (function (exports, i0, tokens) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () { return e[k]; }
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
n["default"] = e;
|
|
22
|
-
return Object.freeze(n);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Abstraction over `inputMode` attribute
|
|
29
|
-
*/
|
|
30
|
-
var TuiInputModeDirective = /** @class */ (function () {
|
|
31
|
-
function TuiInputModeDirective(pattern, isIOS) {
|
|
32
|
-
this.pattern = pattern;
|
|
33
|
-
this.isIOS = isIOS;
|
|
34
|
-
this.mode = "text";
|
|
35
|
-
}
|
|
36
|
-
Object.defineProperty(TuiInputModeDirective.prototype, "patternAttribute", {
|
|
37
|
-
get: function () {
|
|
38
|
-
return this.mode === "numeric" && this.isIOS && !this.pattern
|
|
39
|
-
? "[0-9]*"
|
|
40
|
-
: this.pattern;
|
|
41
|
-
},
|
|
42
|
-
enumerable: false,
|
|
43
|
-
configurable: true
|
|
44
|
-
});
|
|
45
|
-
return TuiInputModeDirective;
|
|
46
|
-
}());
|
|
47
|
-
TuiInputModeDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputModeDirective, deps: [{ token: "pattern", attribute: true }, { token: tokens.TUI_IS_IOS }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
48
|
-
TuiInputModeDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiInputModeDirective, selector: "input[tuiInputMode]", inputs: { mode: ["tuiInputMode", "mode"] }, host: { properties: { "attr.inputmode": "this.mode", "attr.x-inputmode": "this.mode", "attr.pattern": "this.patternAttribute" } }, ngImport: i0__namespace });
|
|
49
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputModeDirective, decorators: [{
|
|
50
|
-
type: i0.Directive,
|
|
51
|
-
args: [{
|
|
52
|
-
selector: "input[tuiInputMode]",
|
|
53
|
-
}]
|
|
54
|
-
}], ctorParameters: function () {
|
|
55
|
-
return [{ type: undefined, decorators: [{
|
|
56
|
-
type: i0.Attribute,
|
|
57
|
-
args: ["pattern"]
|
|
58
|
-
}] }, { type: undefined, decorators: [{
|
|
59
|
-
type: i0.Inject,
|
|
60
|
-
args: [tokens.TUI_IS_IOS]
|
|
61
|
-
}] }];
|
|
62
|
-
}, propDecorators: { mode: [{
|
|
63
|
-
type: i0.Input,
|
|
64
|
-
args: ["tuiInputMode"]
|
|
65
|
-
}, {
|
|
66
|
-
type: i0.HostBinding,
|
|
67
|
-
args: ["attr.inputmode"]
|
|
68
|
-
}, {
|
|
69
|
-
type: i0.HostBinding,
|
|
70
|
-
args: ["attr.x-inputmode"]
|
|
71
|
-
}], patternAttribute: [{
|
|
72
|
-
type: i0.HostBinding,
|
|
73
|
-
args: ["attr.pattern"]
|
|
74
|
-
}] } });
|
|
75
|
-
|
|
76
|
-
var TuiInputModeModule = /** @class */ (function () {
|
|
77
|
-
function TuiInputModeModule() {
|
|
78
|
-
}
|
|
79
|
-
return TuiInputModeModule;
|
|
80
|
-
}());
|
|
81
|
-
TuiInputModeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputModeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
82
|
-
TuiInputModeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputModeModule, declarations: [TuiInputModeDirective], exports: [TuiInputModeDirective] });
|
|
83
|
-
TuiInputModeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputModeModule });
|
|
84
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TuiInputModeModule, decorators: [{
|
|
85
|
-
type: i0.NgModule,
|
|
86
|
-
args: [{
|
|
87
|
-
declarations: [TuiInputModeDirective],
|
|
88
|
-
exports: [TuiInputModeDirective],
|
|
89
|
-
}]
|
|
90
|
-
}] });
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Generated bundle index. Do not edit.
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
exports.TuiInputModeDirective = TuiInputModeDirective;
|
|
97
|
-
exports.TuiInputModeModule = TuiInputModeModule;
|
|
98
|
-
|
|
99
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
100
|
-
|
|
101
|
-
}));
|
|
102
|
-
//# sourceMappingURL=taiga-ui-cdk-directives-input-mode.umd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-cdk-directives-input-mode.umd.js","sources":["../../../projects/cdk/directives/input-mode/input-mode.directive.ts","../../../projects/cdk/directives/input-mode/input-mode.module.ts","../../../projects/cdk/directives/input-mode/taiga-ui-cdk-directives-input-mode.ts"],"sourcesContent":["import {Attribute, Directive, HostBinding, Inject, Input} from '@angular/core';\nimport {TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {TuiInputMode} from '@taiga-ui/cdk/types';\n\n/**\n * Abstraction over `inputMode` attribute\n */\n@Directive({\n selector: `input[tuiInputMode]`,\n})\nexport class TuiInputModeDirective {\n @Input(`tuiInputMode`)\n @HostBinding(`attr.inputmode`)\n @HostBinding(`attr.x-inputmode`)\n mode: TuiInputMode = `text`;\n\n constructor(\n @Attribute(`pattern`) private readonly pattern: string | null,\n @Inject(TUI_IS_IOS) private readonly isIOS: boolean,\n ) {}\n\n @HostBinding(`attr.pattern`)\n get patternAttribute(): string | null {\n return this.mode === `numeric` && this.isIOS && !this.pattern\n ? `[0-9]*`\n : this.pattern;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiInputModeDirective} from './input-mode.directive';\n\n@NgModule({\n declarations: [TuiInputModeDirective],\n exports: [TuiInputModeDirective],\n})\nexport class TuiInputModeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["TUI_IS_IOS","i0","Directive","Attribute","Inject","Input","HostBinding","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;IAIA;;IAEG;AAIH,QAAA,qBAAA,kBAAA,YAAA;QAMI,SAC2C,qBAAA,CAAA,OAAsB,EACxB,KAAc,EAAA;IADZ,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAe;IACxB,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAS;IAJvD,QAAA,IAAI,CAAA,IAAA,GAAiB,MAAM,CAAC;SAKxB;IAEJ,IAAA,MAAA,CAAA,cAAA,CACI,qBAAgB,CAAA,SAAA,EAAA,kBAAA,EAAA;IADpB,QAAA,GAAA,EAAA,YAAA;IAEI,YAAA,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO;IACzD,kBAAE,QAAQ;IACV,kBAAE,IAAI,CAAC,OAAO,CAAC;aACtB;;;IAAA,KAAA,CAAA,CAAA;;;6IAhBQ,qBAAqB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAOf,SAAS,EAAA,SAAA,EAAA,IAAA,EAAA,EAAA,EAAA,KAAA,EACZA,iBAAU,EAAA,CAAA,EAAA,MAAA,EAAAC,aAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;sHARb,qBAAqB,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,CAAA,cAAA,EAAA,MAAA,CAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,kBAAA,EAAA,WAAA,EAAA,cAAA,EAAA,uBAAA,EAAA,EAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,CAAA,CAAA;sHAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;sBAHjCC,YAAS;IAAC,YAAA,IAAA,EAAA,CAAA;IACP,oBAAA,QAAQ,EAAE,qBAAqB;qBAClC,CAAA;;;kCAQQC,YAAS;mCAAC,SAAS,CAAA;;kCACnBC,SAAM;mCAACJ,iBAAU,CAAA;;6BAJtB,IAAI,EAAA,CAAA;0BAHHK,QAAK;2BAAC,cAAc,CAAA;;0BACpBC,cAAW;2BAAC,gBAAgB,CAAA;;0BAC5BA,cAAW;2BAAC,kBAAkB,CAAA;oBAS3B,gBAAgB,EAAA,CAAA;0BADnBA,cAAW;2BAAC,cAAc,CAAA;;;ACb/B,QAAA,kBAAA,kBAAA,YAAA;IAAA,IAAA,SAAA,kBAAA,GAAA;;;;0IAAa,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAAL,aAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;2IAAlB,kBAAkB,EAAA,YAAA,EAAA,CAHZ,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA;2IAEtB,kBAAkB,EAAA,CAAA,CAAA;sHAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;sBAJ9BM,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;wBACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;wBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;qBACnC,CAAA;;;ICPD;;IAEG;;;;;;;;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TuiInputMode } from '@taiga-ui/cdk/types';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Abstraction over `inputMode` attribute
|
|
5
|
-
*/
|
|
6
|
-
export declare class TuiInputModeDirective {
|
|
7
|
-
private readonly pattern;
|
|
8
|
-
private readonly isIOS;
|
|
9
|
-
mode: TuiInputMode;
|
|
10
|
-
constructor(pattern: string | null, isIOS: boolean);
|
|
11
|
-
get patternAttribute(): string | null;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputModeDirective, [{ attribute: "pattern"; }, null]>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiInputModeDirective, "input[tuiInputMode]", never, { "mode": "tuiInputMode"; }, {}, never>;
|
|
14
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./input-mode.directive";
|
|
3
|
-
export declare class TuiInputModeModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputModeModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputModeModule, [typeof i1.TuiInputModeDirective], never, [typeof i1.TuiInputModeDirective]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TuiInputModeModule>;
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "../../bundles/taiga-ui-cdk-directives-input-mode.umd.js",
|
|
3
|
-
"module": "../../fesm2015/taiga-ui-cdk-directives-input-mode.js",
|
|
4
|
-
"es2015": "../../fesm2015/taiga-ui-cdk-directives-input-mode.js",
|
|
5
|
-
"esm2015": "../../esm2015/directives/input-mode/taiga-ui-cdk-directives-input-mode.js",
|
|
6
|
-
"fesm2015": "../../fesm2015/taiga-ui-cdk-directives-input-mode.js",
|
|
7
|
-
"typings": "taiga-ui-cdk-directives-input-mode.d.ts",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"name": "@taiga-ui/cdk/directives/input-mode"
|
|
10
|
-
}
|
package/enums/autocomplete.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export declare const enum TuiCreditCardAutofillName {
|
|
2
|
-
Off = "off",
|
|
3
|
-
CcName = "cc-name",
|
|
4
|
-
CcNumber = "cc-number",
|
|
5
|
-
CcCsc = "cc-csc",
|
|
6
|
-
CcExpMonth = "cc-exp-month",
|
|
7
|
-
CcExpYear = "cc-exp-year",
|
|
8
|
-
CcExp = "cc-exp",
|
|
9
|
-
CcType = "cc-type"
|
|
10
|
-
}
|
|
11
|
-
export declare const enum TuiNameAutofillName {
|
|
12
|
-
Off = "off",
|
|
13
|
-
Name = "name",
|
|
14
|
-
GivenName = "given-name",
|
|
15
|
-
AdditionalName = "additional-name",
|
|
16
|
-
FamilyName = "family-name"
|
|
17
|
-
}
|
|
18
|
-
export declare const enum TuiAccountAutofillName {
|
|
19
|
-
Off = "off",
|
|
20
|
-
Username = "username",
|
|
21
|
-
NewPassword = "new-password",
|
|
22
|
-
CurrentPassword = "current-password"
|
|
23
|
-
}
|
|
24
|
-
export declare const enum TuiEmailAutofillName {
|
|
25
|
-
Off = "off",
|
|
26
|
-
Email = "email"
|
|
27
|
-
}
|
|
28
|
-
export declare const enum TuiAddressAutofillName {
|
|
29
|
-
Off = "off",
|
|
30
|
-
StreetAddress = "street-address",
|
|
31
|
-
PostalCode = "postal-code",
|
|
32
|
-
CountryName = "country-name"
|
|
33
|
-
}
|
|
34
|
-
export declare const enum TuiPhoneAutofillName {
|
|
35
|
-
Off = "off",
|
|
36
|
-
Tel = "tel"
|
|
37
|
-
}
|
|
38
|
-
export declare const enum TuiDateAutofillName {
|
|
39
|
-
Off = "off",
|
|
40
|
-
Bday = "bday"
|
|
41
|
-
}
|
|
42
|
-
export declare const enum TuiTransactionAutofillName {
|
|
43
|
-
Off = "off",
|
|
44
|
-
TransactionCurrency = "transaction-currency",
|
|
45
|
-
TransactionAmount = "transaction-amount"
|
|
46
|
-
}
|
|
47
|
-
export declare type TuiAutofillFieldNameT = 'off' | 'cc-name' | 'cc-number' | 'cc-csc' | 'cc-exp-month' | 'cc-exp-year' | 'cc-exp' | 'cc-type' | 'name' | 'given-name' | 'additional-name' | 'family-name' | 'username' | 'new-password' | 'current-password' | 'email' | 'street-address' | 'postal-code' | 'country-name' | 'tel' | 'bday' | 'transaction-currency' | 'transaction-amount';
|
|
48
|
-
export declare type TuiAutofillFieldName = TuiAutofillFieldNameT | TuiCreditCardAutofillName | TuiNameAutofillName | TuiAccountAutofillName | TuiEmailAutofillName | TuiAddressAutofillName | TuiPhoneAutofillName | TuiDateAutofillName | TuiTransactionAutofillName;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './input-mode.directive';
|
|
2
|
-
export * from './input-mode.module';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9pbnB1dC1tb2RlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW5wdXQtbW9kZS5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9pbnB1dC1tb2RlLm1vZHVsZSc7XG4iXX0=
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Attribute, Directive, HostBinding, Inject, Input } from '@angular/core';
|
|
2
|
-
import { TUI_IS_IOS } from '@taiga-ui/cdk/tokens';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Abstraction over `inputMode` attribute
|
|
6
|
-
*/
|
|
7
|
-
export class TuiInputModeDirective {
|
|
8
|
-
constructor(pattern, isIOS) {
|
|
9
|
-
this.pattern = pattern;
|
|
10
|
-
this.isIOS = isIOS;
|
|
11
|
-
this.mode = `text`;
|
|
12
|
-
}
|
|
13
|
-
get patternAttribute() {
|
|
14
|
-
return this.mode === `numeric` && this.isIOS && !this.pattern
|
|
15
|
-
? `[0-9]*`
|
|
16
|
-
: this.pattern;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
TuiInputModeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeDirective, deps: [{ token: `pattern`, attribute: true }, { token: TUI_IS_IOS }], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
-
TuiInputModeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiInputModeDirective, selector: "input[tuiInputMode]", inputs: { mode: ["tuiInputMode", "mode"] }, host: { properties: { "attr.inputmode": "this.mode", "attr.x-inputmode": "this.mode", "attr.pattern": "this.patternAttribute" } }, ngImport: i0 });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeDirective, decorators: [{
|
|
22
|
-
type: Directive,
|
|
23
|
-
args: [{
|
|
24
|
-
selector: `input[tuiInputMode]`,
|
|
25
|
-
}]
|
|
26
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
27
|
-
type: Attribute,
|
|
28
|
-
args: [`pattern`]
|
|
29
|
-
}] }, { type: undefined, decorators: [{
|
|
30
|
-
type: Inject,
|
|
31
|
-
args: [TUI_IS_IOS]
|
|
32
|
-
}] }]; }, propDecorators: { mode: [{
|
|
33
|
-
type: Input,
|
|
34
|
-
args: [`tuiInputMode`]
|
|
35
|
-
}, {
|
|
36
|
-
type: HostBinding,
|
|
37
|
-
args: [`attr.inputmode`]
|
|
38
|
-
}, {
|
|
39
|
-
type: HostBinding,
|
|
40
|
-
args: [`attr.x-inputmode`]
|
|
41
|
-
}], patternAttribute: [{
|
|
42
|
-
type: HostBinding,
|
|
43
|
-
args: [`attr.pattern`]
|
|
44
|
-
}] } });
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQ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bCB7XG4gICAgICAgIHJldHVybiB0aGlzLm1vZGUgPT09IGBudW1lcmljYCAmJiB0aGlzLmlzSU9TICYmICF0aGlzLnBhdHRlcm5cbiAgICAgICAgICAgID8gYFswLTldKmBcbiAgICAgICAgICAgIDogdGhpcy5wYXR0ZXJuO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { TuiInputModeDirective } from './input-mode.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class TuiInputModeModule {
|
|
5
|
-
}
|
|
6
|
-
TuiInputModeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7
|
-
TuiInputModeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeModule, declarations: [TuiInputModeDirective], exports: [TuiInputModeDirective] });
|
|
8
|
-
TuiInputModeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeModule });
|
|
9
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeModule, decorators: [{
|
|
10
|
-
type: NgModule,
|
|
11
|
-
args: [{
|
|
12
|
-
declarations: [TuiInputModeDirective],
|
|
13
|
-
exports: [TuiInputModeDirective],
|
|
14
|
-
}]
|
|
15
|
-
}] });
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtbW9kZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jZGsvZGlyZWN0aXZlcy9pbnB1dC1tb2RlL2lucHV0LW1vZGUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFdkMsT0FBTyxFQUFDLHFCQUFxQixFQUFDLE1BQU0sd0JBQXdCLENBQUM7O0FBTTdELE1BQU0sT0FBTyxrQkFBa0I7O2dIQUFsQixrQkFBa0I7aUhBQWxCLGtCQUFrQixpQkFIWixxQkFBcUIsYUFDMUIscUJBQXFCO2lIQUV0QixrQkFBa0I7NEZBQWxCLGtCQUFrQjtrQkFKOUIsUUFBUTttQkFBQztvQkFDTixZQUFZLEVBQUUsQ0FBQyxxQkFBcUIsQ0FBQztvQkFDckMsT0FBTyxFQUFFLENBQUMscUJBQXFCLENBQUM7aUJBQ25DIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbmltcG9ydCB7VHVpSW5wdXRNb2RlRGlyZWN0aXZlfSBmcm9tICcuL2lucHV0LW1vZGUuZGlyZWN0aXZlJztcblxuQE5nTW9kdWxlKHtcbiAgICBkZWNsYXJhdGlvbnM6IFtUdWlJbnB1dE1vZGVEaXJlY3RpdmVdLFxuICAgIGV4cG9ydHM6IFtUdWlJbnB1dE1vZGVEaXJlY3RpdmVdLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlJbnB1dE1vZGVNb2R1bGUge31cbiJdfQ==
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktY2RrLWRpcmVjdGl2ZXMtaW5wdXQtbW9kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nkay9kaXJlY3RpdmVzL2lucHV0LW1vZGUvdGFpZ2EtdWktY2RrLWRpcmVjdGl2ZXMtaW5wdXQtbW9kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
-
export var TuiCreditCardAutofillName;
|
|
3
|
-
(function (TuiCreditCardAutofillName) {
|
|
4
|
-
TuiCreditCardAutofillName["Off"] = "off";
|
|
5
|
-
TuiCreditCardAutofillName["CcName"] = "cc-name";
|
|
6
|
-
TuiCreditCardAutofillName["CcNumber"] = "cc-number";
|
|
7
|
-
TuiCreditCardAutofillName["CcCsc"] = "cc-csc";
|
|
8
|
-
TuiCreditCardAutofillName["CcExpMonth"] = "cc-exp-month";
|
|
9
|
-
TuiCreditCardAutofillName["CcExpYear"] = "cc-exp-year";
|
|
10
|
-
TuiCreditCardAutofillName["CcExp"] = "cc-exp";
|
|
11
|
-
TuiCreditCardAutofillName["CcType"] = "cc-type";
|
|
12
|
-
})(TuiCreditCardAutofillName || (TuiCreditCardAutofillName = {}));
|
|
13
|
-
export var TuiNameAutofillName;
|
|
14
|
-
(function (TuiNameAutofillName) {
|
|
15
|
-
TuiNameAutofillName["Off"] = "off";
|
|
16
|
-
TuiNameAutofillName["Name"] = "name";
|
|
17
|
-
TuiNameAutofillName["GivenName"] = "given-name";
|
|
18
|
-
TuiNameAutofillName["AdditionalName"] = "additional-name";
|
|
19
|
-
TuiNameAutofillName["FamilyName"] = "family-name";
|
|
20
|
-
})(TuiNameAutofillName || (TuiNameAutofillName = {}));
|
|
21
|
-
export var TuiAccountAutofillName;
|
|
22
|
-
(function (TuiAccountAutofillName) {
|
|
23
|
-
TuiAccountAutofillName["Off"] = "off";
|
|
24
|
-
TuiAccountAutofillName["Username"] = "username";
|
|
25
|
-
TuiAccountAutofillName["NewPassword"] = "new-password";
|
|
26
|
-
TuiAccountAutofillName["CurrentPassword"] = "current-password";
|
|
27
|
-
})(TuiAccountAutofillName || (TuiAccountAutofillName = {}));
|
|
28
|
-
export var TuiEmailAutofillName;
|
|
29
|
-
(function (TuiEmailAutofillName) {
|
|
30
|
-
TuiEmailAutofillName["Off"] = "off";
|
|
31
|
-
TuiEmailAutofillName["Email"] = "email";
|
|
32
|
-
})(TuiEmailAutofillName || (TuiEmailAutofillName = {}));
|
|
33
|
-
export var TuiAddressAutofillName;
|
|
34
|
-
(function (TuiAddressAutofillName) {
|
|
35
|
-
TuiAddressAutofillName["Off"] = "off";
|
|
36
|
-
TuiAddressAutofillName["StreetAddress"] = "street-address";
|
|
37
|
-
TuiAddressAutofillName["PostalCode"] = "postal-code";
|
|
38
|
-
TuiAddressAutofillName["CountryName"] = "country-name";
|
|
39
|
-
})(TuiAddressAutofillName || (TuiAddressAutofillName = {}));
|
|
40
|
-
export var TuiPhoneAutofillName;
|
|
41
|
-
(function (TuiPhoneAutofillName) {
|
|
42
|
-
TuiPhoneAutofillName["Off"] = "off";
|
|
43
|
-
TuiPhoneAutofillName["Tel"] = "tel";
|
|
44
|
-
})(TuiPhoneAutofillName || (TuiPhoneAutofillName = {}));
|
|
45
|
-
export var TuiDateAutofillName;
|
|
46
|
-
(function (TuiDateAutofillName) {
|
|
47
|
-
TuiDateAutofillName["Off"] = "off";
|
|
48
|
-
TuiDateAutofillName["Bday"] = "bday";
|
|
49
|
-
})(TuiDateAutofillName || (TuiDateAutofillName = {}));
|
|
50
|
-
export var TuiTransactionAutofillName;
|
|
51
|
-
(function (TuiTransactionAutofillName) {
|
|
52
|
-
TuiTransactionAutofillName["Off"] = "off";
|
|
53
|
-
TuiTransactionAutofillName["TransactionCurrency"] = "transaction-currency";
|
|
54
|
-
TuiTransactionAutofillName["TransactionAmount"] = "transaction-amount";
|
|
55
|
-
})(TuiTransactionAutofillName || (TuiTransactionAutofillName = {}));
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2NvbXBsZXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvY2RrL2VudW1zL2F1dG9jb21wbGV0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx5REFBeUQ7QUFDekQsTUFBTSxDQUFOLElBQWtCLHlCQVNqQjtBQVRELFdBQWtCLHlCQUF5QjtJQUN2Qyx3Q0FBVyxDQUFBO0lBQ1gsK0NBQWtCLENBQUE7SUFDbEIsbURBQXNCLENBQUE7SUFDdEIsNkNBQWdCLENBQUE7SUFDaEIsd0RBQTJCLENBQUE7SUFDM0Isc0RBQXlCLENBQUE7SUFDekIsNkNBQWdCLENBQUE7SUFDaEIsK0NBQWtCLENBQUE7QUFDdEIsQ0FBQyxFQVRpQix5QkFBeUIsS0FBekIseUJBQXlCLFFBUzFDO0FBRUQsTUFBTSxDQUFOLElBQWtCLG1CQU1qQjtBQU5ELFdBQWtCLG1CQUFtQjtJQUNqQyxrQ0FBVyxDQUFBO0lBQ1gsb0NBQWEsQ0FBQTtJQUNiLCtDQUF3QixDQUFBO0lBQ3hCLHlEQUFrQyxDQUFBO0lBQ2xDLGlEQUEwQixDQUFBO0FBQzlCLENBQUMsRUFOaUIsbUJBQW1CLEtBQW5CLG1CQUFtQixRQU1wQztBQUVELE1BQU0sQ0FBTixJQUFrQixzQkFLakI7QUFMRCxXQUFrQixzQkFBc0I7SUFDcEMscUNBQVcsQ0FBQTtJQUNYLCtDQUFxQixDQUFBO0lBQ3JCLHNEQUE0QixDQUFBO0lBQzVCLDhEQUFvQyxDQUFBO0FBQ3hDL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fCAnY3VycmVudC1wYXNzd29yZCdcbiAgICAvLyBUdWlFbWFpbEF1dG9maWxsTmFtZVxuICAgIHwgJ2VtYWlsJ1xuICAgIC8vIFR1aUFkZHJlc3NBdXRvZmlsbE5hbWVcbiAgICB8ICdzdHJlZXQtYWRkcmVzcydcbiAgICB8ICdwb3N0YWwtY29kZSdcbiAgICB8ICdjb3VudHJ5LW5hbWUnXG4gICAgLy8gVHVpUGhvbmVBdXRvZmlsbE5hbWVcbiAgICB8ICd0ZWwnXG4gICAgLy8gVHVpRGF0ZUF1dG9maWxsTmFtZVxuICAgIHwgJ2JkYXknXG4gICAgLy8gVHVpVHJhbnNhY3Rpb25BdXRvZmlsbE5hbWVcbiAgICB8ICd0cmFuc2FjdGlvbi1jdXJyZW5jeSdcbiAgICB8ICd0cmFuc2FjdGlvbi1hbW91bnQnO1xuXG5leHBvcnQgdHlwZSBUdWlBdXRvZmlsbEZpZWxkTmFtZSA9XG4gICAgfCBUdWlBdXRvZmlsbEZpZWxkTmFtZVRcbiAgICB8IFR1aUNyZWRpdENhcmRBdXRvZmlsbE5hbWVcbiAgICB8IFR1aU5hbWVBdXRvZmlsbE5hbWVcbiAgICB8IFR1aUFjY291bnRBdXRvZmlsbE5hbWVcbiAgICB8IFR1aUVtYWlsQXV0b2ZpbGxOYW1lXG4gICAgfCBUdWlBZGRyZXNzQXV0b2ZpbGxOYW1lXG4gICAgfCBUdWlQaG9uZUF1dG9maWxsTmFtZVxuICAgIHwgVHVpRGF0ZUF1dG9maWxsTmFtZVxuICAgIHwgVHVpVHJhbnNhY3Rpb25BdXRvZmlsbE5hbWU7XG4iXX0=
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Attribute, Inject, Input, HostBinding, NgModule } from '@angular/core';
|
|
3
|
-
import { TUI_IS_IOS } from '@taiga-ui/cdk/tokens';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Abstraction over `inputMode` attribute
|
|
7
|
-
*/
|
|
8
|
-
class TuiInputModeDirective {
|
|
9
|
-
constructor(pattern, isIOS) {
|
|
10
|
-
this.pattern = pattern;
|
|
11
|
-
this.isIOS = isIOS;
|
|
12
|
-
this.mode = `text`;
|
|
13
|
-
}
|
|
14
|
-
get patternAttribute() {
|
|
15
|
-
return this.mode === `numeric` && this.isIOS && !this.pattern
|
|
16
|
-
? `[0-9]*`
|
|
17
|
-
: this.pattern;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
TuiInputModeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeDirective, deps: [{ token: `pattern`, attribute: true }, { token: TUI_IS_IOS }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
-
TuiInputModeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: TuiInputModeDirective, selector: "input[tuiInputMode]", inputs: { mode: ["tuiInputMode", "mode"] }, host: { properties: { "attr.inputmode": "this.mode", "attr.x-inputmode": "this.mode", "attr.pattern": "this.patternAttribute" } }, ngImport: i0 });
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeDirective, decorators: [{
|
|
23
|
-
type: Directive,
|
|
24
|
-
args: [{
|
|
25
|
-
selector: `input[tuiInputMode]`,
|
|
26
|
-
}]
|
|
27
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
28
|
-
type: Attribute,
|
|
29
|
-
args: [`pattern`]
|
|
30
|
-
}] }, { type: undefined, decorators: [{
|
|
31
|
-
type: Inject,
|
|
32
|
-
args: [TUI_IS_IOS]
|
|
33
|
-
}] }]; }, propDecorators: { mode: [{
|
|
34
|
-
type: Input,
|
|
35
|
-
args: [`tuiInputMode`]
|
|
36
|
-
}, {
|
|
37
|
-
type: HostBinding,
|
|
38
|
-
args: [`attr.inputmode`]
|
|
39
|
-
}, {
|
|
40
|
-
type: HostBinding,
|
|
41
|
-
args: [`attr.x-inputmode`]
|
|
42
|
-
}], patternAttribute: [{
|
|
43
|
-
type: HostBinding,
|
|
44
|
-
args: [`attr.pattern`]
|
|
45
|
-
}] } });
|
|
46
|
-
|
|
47
|
-
class TuiInputModeModule {
|
|
48
|
-
}
|
|
49
|
-
TuiInputModeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
50
|
-
TuiInputModeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeModule, declarations: [TuiInputModeDirective], exports: [TuiInputModeDirective] });
|
|
51
|
-
TuiInputModeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeModule });
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiInputModeModule, decorators: [{
|
|
53
|
-
type: NgModule,
|
|
54
|
-
args: [{
|
|
55
|
-
declarations: [TuiInputModeDirective],
|
|
56
|
-
exports: [TuiInputModeDirective],
|
|
57
|
-
}]
|
|
58
|
-
}] });
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Generated bundle index. Do not edit.
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
export { TuiInputModeDirective, TuiInputModeModule };
|
|
65
|
-
//# sourceMappingURL=taiga-ui-cdk-directives-input-mode.js.map
|