@taiga-ui/addon-mobile 3.74.0 → 3.75.0-canary.45cfc56
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-addon-mobile-services.umd.js +90 -0
- package/bundles/taiga-ui-addon-mobile-services.umd.js.map +1 -0
- package/bundles/taiga-ui-addon-mobile.umd.js +10 -4
- package/bundles/taiga-ui-addon-mobile.umd.js.map +1 -1
- package/esm2015/index.js +2 -1
- package/esm2015/services/index.js +2 -0
- package/esm2015/services/keyboard.service.js +56 -0
- package/esm2015/services/taiga-ui-addon-mobile-services.js +5 -0
- package/fesm2015/taiga-ui-addon-mobile-services.js +63 -0
- package/fesm2015/taiga-ui-addon-mobile-services.js.map +1 -0
- package/fesm2015/taiga-ui-addon-mobile.js +1 -0
- package/fesm2015/taiga-ui-addon-mobile.js.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +32 -32
- package/services/index.d.ts +1 -0
- package/services/keyboard.service.d.ts +15 -0
- package/services/package.json +10 -0
- package/services/taiga-ui-addon-mobile-services.d.ts +5 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@taiga-ui/cdk'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-mobile/services', ['exports', '@angular/common', '@angular/core', '@taiga-ui/cdk', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-mobile"] = global["taiga-ui"]["addon-mobile"] || {}, global["taiga-ui"]["addon-mobile"].services = {}), global.ng.common, global.ng.core, global.cdk, global.rxjs, global.rxjs.operators));
|
|
5
|
+
})(this, (function (exports, common, i0, cdk, rxjs, operators) { '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
|
+
var TuiKeyboardService = /** @class */ (function () {
|
|
28
|
+
function TuiKeyboardService(doc) {
|
|
29
|
+
var _this = this;
|
|
30
|
+
this.doc = doc;
|
|
31
|
+
this.sub = rxjs.merge(rxjs.fromEvent(this.doc, 'focusout'), rxjs.fromEvent(this.doc, 'mousedown').pipe(operators.filter(function (e) { return Object.is(e.target, _this.element); }))).subscribe(function () {
|
|
32
|
+
_this.show();
|
|
33
|
+
});
|
|
34
|
+
this.inputMode = '';
|
|
35
|
+
}
|
|
36
|
+
TuiKeyboardService.prototype.ngOnDestroy = function () {
|
|
37
|
+
this.sub.unsubscribe();
|
|
38
|
+
this.show();
|
|
39
|
+
};
|
|
40
|
+
TuiKeyboardService.prototype.toggle = function () {
|
|
41
|
+
if (this.element) {
|
|
42
|
+
this.show();
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
this.hide();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
TuiKeyboardService.prototype.hide = function () {
|
|
49
|
+
var focused = cdk.tuiGetNativeFocused(this.doc);
|
|
50
|
+
if ((focused === null || focused === void 0 ? void 0 : focused.inputMode) === undefined || this.element) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this.element = focused;
|
|
54
|
+
this.inputMode = focused.inputMode;
|
|
55
|
+
focused.inputMode = 'none';
|
|
56
|
+
};
|
|
57
|
+
TuiKeyboardService.prototype.show = function () {
|
|
58
|
+
if (!this.element) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
this.element.inputMode = 'none';
|
|
62
|
+
this.element.inputMode = this.inputMode;
|
|
63
|
+
this.element = undefined;
|
|
64
|
+
};
|
|
65
|
+
return TuiKeyboardService;
|
|
66
|
+
}());
|
|
67
|
+
TuiKeyboardService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiKeyboardService, deps: [{ token: common.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
68
|
+
TuiKeyboardService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiKeyboardService, providedIn: 'root' });
|
|
69
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiKeyboardService, decorators: [{
|
|
70
|
+
type: i0.Injectable,
|
|
71
|
+
args: [{
|
|
72
|
+
providedIn: 'root',
|
|
73
|
+
}]
|
|
74
|
+
}], ctorParameters: function () {
|
|
75
|
+
return [{ type: Document, decorators: [{
|
|
76
|
+
type: i0.Inject,
|
|
77
|
+
args: [common.DOCUMENT]
|
|
78
|
+
}] }];
|
|
79
|
+
} });
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Generated bundle index. Do not edit.
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
exports.TuiKeyboardService = TuiKeyboardService;
|
|
86
|
+
|
|
87
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
88
|
+
|
|
89
|
+
}));
|
|
90
|
+
//# sourceMappingURL=taiga-ui-addon-mobile-services.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-services.umd.js","sources":["../../../projects/addon-mobile/services/keyboard.service.ts","../../../projects/addon-mobile/services/taiga-ui-addon-mobile-services.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Inject, Injectable, OnDestroy} from '@angular/core';\nimport {tuiGetNativeFocused} from '@taiga-ui/cdk';\nimport {fromEvent, merge} from 'rxjs';\nimport {filter} from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiKeyboardService implements OnDestroy {\n private readonly sub = merge(\n fromEvent(this.doc, 'focusout'),\n fromEvent(this.doc, 'mousedown').pipe(\n filter(e => Object.is(e.target, this.element)),\n ),\n ).subscribe(() => {\n this.show();\n });\n\n private element?: ElementContentEditable;\n private inputMode = '';\n\n constructor(@Inject(DOCUMENT) private readonly doc: Document) {}\n\n ngOnDestroy(): void {\n this.sub.unsubscribe();\n this.show();\n }\n\n toggle(): void {\n if (this.element) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n hide(): void {\n const focused: any = tuiGetNativeFocused(this.doc);\n\n if (focused?.inputMode === undefined || this.element) {\n return;\n }\n\n this.element = focused;\n this.inputMode = focused.inputMode;\n focused.inputMode = 'none';\n }\n\n show(): void {\n if (!this.element) {\n return;\n }\n\n this.element.inputMode = 'none';\n this.element.inputMode = this.inputMode;\n this.element = undefined;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["merge","fromEvent","filter","tuiGetNativeFocused","i0","DOCUMENT","Injectable","Inject"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AASA,QAAA,kBAAA,kBAAA,YAAA;IAaI,IAAA,SAAA,kBAAA,CAA+C,GAAa,EAAA;YAA5D,IAAgE,KAAA,GAAA,IAAA,CAAA;IAAjB,QAAA,IAAG,CAAA,GAAA,GAAH,GAAG,CAAU;YAZ3C,IAAG,CAAA,GAAA,GAAGA,UAAK,CACxBC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,SAAA,CAAA,IAAI,GAAJ,YAAA;IACI,QAAA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;gBACf,OAAO;IACV,SAAA;IAED,QAAA,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC;YAChC,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;IACxC,QAAA,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC;SAC5B,CAAA;;;IAhDQ,kBAAA,CAAA,IAAA,GAAAC,aAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,kBAAkB,kBAaPC,eAAQ,EAAA,CAAA,EAAA,MAAA,EAAAD,aAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;IAbnB,kBAAA,CAAA,KAAA,GAAAA,aAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,kBAAkB,cAFf,MAAM,EAAA,CAAA,CAAA;sHAET,kBAAkB,EAAA,UAAA,EAAA,CAAA;sBAH9BE,aAAU;IAAC,YAAA,IAAA,EAAA,CAAA;IACR,oBAAA,UAAU,EAAE,MAAM;qBACrB,CAAA;;4BAcuD,QAAQ,EAAA,UAAA,EAAA,CAAA;kCAA/CC,SAAM;mCAACF,eAAQ,CAAA;;;;ICtBhC;;IAEG;;;;;;;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/addon-mobile/components'), require('@taiga-ui/addon-mobile/const'), require('@taiga-ui/addon-mobile/directives'), require('@taiga-ui/addon-mobile/interfaces'), require('@taiga-ui/addon-mobile/types'), require('@taiga-ui/addon-mobile/utils')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-mobile', ['exports', '@taiga-ui/addon-mobile/components', '@taiga-ui/addon-mobile/const', '@taiga-ui/addon-mobile/directives', '@taiga-ui/addon-mobile/interfaces', '@taiga-ui/addon-mobile/types', '@taiga-ui/addon-mobile/utils'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-mobile"] = {}), global["taiga-ui"]["addon-mobile"].components, global["taiga-ui"]["addon-mobile"]["const"], global["taiga-ui"]["addon-mobile"].directives, global["taiga-ui"]["addon-mobile"].interfaces, global["taiga-ui"]["addon-mobile"].types, global["taiga-ui"]["addon-mobile"].utils));
|
|
5
|
-
})(this, (function (exports, components, _const, directives, interfaces, types, utils) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taiga-ui/addon-mobile/components'), require('@taiga-ui/addon-mobile/const'), require('@taiga-ui/addon-mobile/directives'), require('@taiga-ui/addon-mobile/interfaces'), require('@taiga-ui/addon-mobile/services'), require('@taiga-ui/addon-mobile/types'), require('@taiga-ui/addon-mobile/utils')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/addon-mobile', ['exports', '@taiga-ui/addon-mobile/components', '@taiga-ui/addon-mobile/const', '@taiga-ui/addon-mobile/directives', '@taiga-ui/addon-mobile/interfaces', '@taiga-ui/addon-mobile/services', '@taiga-ui/addon-mobile/types', '@taiga-ui/addon-mobile/utils'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-mobile"] = {}), global["taiga-ui"]["addon-mobile"].components, global["taiga-ui"]["addon-mobile"]["const"], global["taiga-ui"]["addon-mobile"].directives, global["taiga-ui"]["addon-mobile"].interfaces, global["taiga-ui"]["addon-mobile"].services, global["taiga-ui"]["addon-mobile"].types, global["taiga-ui"]["addon-mobile"].utils));
|
|
5
|
+
})(this, (function (exports, components, _const, directives, interfaces, services, types, utils) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Generated bundle index. Do not edit.
|
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
get: function () { return interfaces[k]; }
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
|
+
Object.keys(services).forEach(function (k) {
|
|
36
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return services[k]; }
|
|
39
|
+
});
|
|
40
|
+
});
|
|
35
41
|
Object.keys(types).forEach(function (k) {
|
|
36
42
|
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
37
43
|
enumerable: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile.umd.js","sources":["../../../projects/addon-mobile/taiga-ui-addon-mobile.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;CAAA;;CAEG
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile.umd.js","sources":["../../../projects/addon-mobile/taiga-ui-addon-mobile.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;CAAA;;CAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/esm2015/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from '@taiga-ui/addon-mobile/components';
|
|
|
2
2
|
export * from '@taiga-ui/addon-mobile/const';
|
|
3
3
|
export * from '@taiga-ui/addon-mobile/directives';
|
|
4
4
|
export * from '@taiga-ui/addon-mobile/interfaces';
|
|
5
|
+
export * from '@taiga-ui/addon-mobile/services';
|
|
5
6
|
export * from '@taiga-ui/addon-mobile/types';
|
|
6
7
|
export * from '@taiga-ui/addon-mobile/utils';
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi1tb2JpbGUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsbUNBQW1DLENBQUM7QUFDbEQsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsOEJBQThCLENBQUM7QUFDN0MsY0FBYyw4QkFBOEIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9hZGRvbi1tb2JpbGUvY29tcG9uZW50cyc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvYWRkb24tbW9iaWxlL2NvbnN0JztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9hZGRvbi1tb2JpbGUvZGlyZWN0aXZlcyc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvYWRkb24tbW9iaWxlL2ludGVyZmFjZXMnO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2FkZG9uLW1vYmlsZS9zZXJ2aWNlcyc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvYWRkb24tbW9iaWxlL3R5cGVzJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9hZGRvbi1tb2JpbGUvdXRpbHMnO1xuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './keyboard.service';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hZGRvbi1tb2JpbGUvc2VydmljZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4va2V5Ym9hcmQuc2VydmljZSc7XG4iXX0=
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import { Inject, Injectable } from '@angular/core';
|
|
3
|
+
import { tuiGetNativeFocused } from '@taiga-ui/cdk';
|
|
4
|
+
import { fromEvent, merge } from 'rxjs';
|
|
5
|
+
import { filter } from 'rxjs/operators';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export class TuiKeyboardService {
|
|
8
|
+
constructor(doc) {
|
|
9
|
+
this.doc = doc;
|
|
10
|
+
this.sub = merge(fromEvent(this.doc, 'focusout'), fromEvent(this.doc, 'mousedown').pipe(filter(e => Object.is(e.target, this.element)))).subscribe(() => {
|
|
11
|
+
this.show();
|
|
12
|
+
});
|
|
13
|
+
this.inputMode = '';
|
|
14
|
+
}
|
|
15
|
+
ngOnDestroy() {
|
|
16
|
+
this.sub.unsubscribe();
|
|
17
|
+
this.show();
|
|
18
|
+
}
|
|
19
|
+
toggle() {
|
|
20
|
+
if (this.element) {
|
|
21
|
+
this.show();
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
this.hide();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
hide() {
|
|
28
|
+
const focused = tuiGetNativeFocused(this.doc);
|
|
29
|
+
if ((focused === null || focused === void 0 ? void 0 : focused.inputMode) === undefined || this.element) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this.element = focused;
|
|
33
|
+
this.inputMode = focused.inputMode;
|
|
34
|
+
focused.inputMode = 'none';
|
|
35
|
+
}
|
|
36
|
+
show() {
|
|
37
|
+
if (!this.element) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
this.element.inputMode = 'none';
|
|
41
|
+
this.element.inputMode = this.inputMode;
|
|
42
|
+
this.element = undefined;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
TuiKeyboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiKeyboardService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
46
|
+
TuiKeyboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiKeyboardService, providedIn: 'root' });
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiKeyboardService, decorators: [{
|
|
48
|
+
type: Injectable,
|
|
49
|
+
args: [{
|
|
50
|
+
providedIn: 'root',
|
|
51
|
+
}]
|
|
52
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
53
|
+
type: Inject,
|
|
54
|
+
args: [DOCUMENT]
|
|
55
|
+
}] }]; } });
|
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5Ym9hcmQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2FkZG9uLW1vYmlsZS9zZXJ2aWNlcy9rZXlib2FyZC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUN6QyxPQUFPLEVBQUMsTUFBTSxFQUFFLFVBQVUsRUFBWSxNQUFNLGVBQWUsQ0FBQztBQUM1RC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uICAgICAgICB9XG4gICAgfVxuXG4gICAgaGlkZSgpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgZm9jdXNlZDogYW55ID0gdHVpR2V0TmF0aXZlRm9jdXNlZCh0aGlzLmRvYyk7XG5cbiAgICAgICAgaWYgKGZvY3VzZWQ/LmlucHV0TW9kZSA9PT0gdW5kZWZpbmVkIHx8IHRoaXMuZWxlbWVudCkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5lbGVtZW50ID0gZm9jdXNlZDtcbiAgICAgICAgdGhpcy5pbnB1dE1vZGUgPSBmb2N1c2VkLmlucHV0TW9kZTtcbiAgICAgICAgZm9jdXNlZC5pbnB1dE1vZGUgPSAnbm9uZSc7XG4gICAgfVxuXG4gICAgc2hvdygpOiB2b2lkIHtcbiAgICAgICAgaWYgKCF0aGlzLmVsZW1lbnQpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuZWxlbWVudC5pbnB1dE1vZGUgPSAnbm9uZSc7XG4gICAgICAgIHRoaXMuZWxlbWVudC5pbnB1dE1vZGUgPSB0aGlzLmlucHV0TW9kZTtcbiAgICAgICAgdGhpcy5lbGVtZW50ID0gdW5kZWZpbmVkO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktYWRkb24tbW9iaWxlLXNlcnZpY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYWRkb24tbW9iaWxlL3NlcnZpY2VzL3RhaWdhLXVpLWFkZG9uLW1vYmlsZS1zZXJ2aWNlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable, Inject } from '@angular/core';
|
|
4
|
+
import { tuiGetNativeFocused } from '@taiga-ui/cdk';
|
|
5
|
+
import { merge, fromEvent } from 'rxjs';
|
|
6
|
+
import { filter } from 'rxjs/operators';
|
|
7
|
+
|
|
8
|
+
class TuiKeyboardService {
|
|
9
|
+
constructor(doc) {
|
|
10
|
+
this.doc = doc;
|
|
11
|
+
this.sub = merge(fromEvent(this.doc, 'focusout'), fromEvent(this.doc, 'mousedown').pipe(filter(e => Object.is(e.target, this.element)))).subscribe(() => {
|
|
12
|
+
this.show();
|
|
13
|
+
});
|
|
14
|
+
this.inputMode = '';
|
|
15
|
+
}
|
|
16
|
+
ngOnDestroy() {
|
|
17
|
+
this.sub.unsubscribe();
|
|
18
|
+
this.show();
|
|
19
|
+
}
|
|
20
|
+
toggle() {
|
|
21
|
+
if (this.element) {
|
|
22
|
+
this.show();
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
this.hide();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
hide() {
|
|
29
|
+
const focused = tuiGetNativeFocused(this.doc);
|
|
30
|
+
if ((focused === null || focused === void 0 ? void 0 : focused.inputMode) === undefined || this.element) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.element = focused;
|
|
34
|
+
this.inputMode = focused.inputMode;
|
|
35
|
+
focused.inputMode = 'none';
|
|
36
|
+
}
|
|
37
|
+
show() {
|
|
38
|
+
if (!this.element) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
this.element.inputMode = 'none';
|
|
42
|
+
this.element.inputMode = this.inputMode;
|
|
43
|
+
this.element = undefined;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
TuiKeyboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiKeyboardService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
47
|
+
TuiKeyboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiKeyboardService, providedIn: 'root' });
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiKeyboardService, decorators: [{
|
|
49
|
+
type: Injectable,
|
|
50
|
+
args: [{
|
|
51
|
+
providedIn: 'root',
|
|
52
|
+
}]
|
|
53
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
54
|
+
type: Inject,
|
|
55
|
+
args: [DOCUMENT]
|
|
56
|
+
}] }]; } });
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Generated bundle index. Do not edit.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
export { TuiKeyboardService };
|
|
63
|
+
//# sourceMappingURL=taiga-ui-addon-mobile-services.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-services.js","sources":["../../../projects/addon-mobile/services/keyboard.service.ts","../../../projects/addon-mobile/services/taiga-ui-addon-mobile-services.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Inject, Injectable, OnDestroy} from '@angular/core';\nimport {tuiGetNativeFocused} from '@taiga-ui/cdk';\nimport {fromEvent, merge} from 'rxjs';\nimport {filter} from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiKeyboardService implements OnDestroy {\n private readonly sub = merge(\n fromEvent(this.doc, 'focusout'),\n fromEvent(this.doc, 'mousedown').pipe(\n filter(e => Object.is(e.target, this.element)),\n ),\n ).subscribe(() => {\n this.show();\n });\n\n private element?: ElementContentEditable;\n private inputMode = '';\n\n constructor(@Inject(DOCUMENT) private readonly doc: Document) {}\n\n ngOnDestroy(): void {\n this.sub.unsubscribe();\n this.show();\n }\n\n toggle(): void {\n if (this.element) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n hide(): void {\n const focused: any = tuiGetNativeFocused(this.doc);\n\n if (focused?.inputMode === undefined || this.element) {\n return;\n }\n\n this.element = focused;\n this.inputMode = focused.inputMode;\n focused.inputMode = 'none';\n }\n\n show(): void {\n if (!this.element) {\n return;\n }\n\n this.element.inputMode = 'none';\n this.element.inputMode = this.inputMode;\n this.element = undefined;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MASa,kBAAkB,CAAA;AAa3B,IAAA,WAAA,CAA+C,GAAa,EAAA;QAAb,IAAG,CAAA,GAAA,GAAH,GAAG,CAAU;QAZ3C,IAAG,CAAA,GAAA,GAAG,KAAK,CACxB,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,EAC/B,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,IAAI,CACjC,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CACjD,CACJ,CAAC,SAAS,CAAC,MAAK;YACb,IAAI,CAAC,IAAI,EAAE,CAAC;AAChB,SAAC,CAAC,CAAC;QAGK,IAAS,CAAA,SAAA,GAAG,EAAE,CAAC;KAEyC;IAEhE,WAAW,GAAA;AACP,QAAA,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;QACvB,IAAI,CAAC,IAAI,EAAE,CAAC;KACf;IAED,MAAM,GAAA;Q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A,CAAA;4FAET,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA,CAAA;0DAcuD,QAAQ,EAAA,UAAA,EAAA,CAAA;0BAA/C,MAAM;2BAAC,QAAQ,CAAA;;;ACtBhC;;AAEG;;;;"}
|
|
@@ -2,6 +2,7 @@ export * from '@taiga-ui/addon-mobile/components';
|
|
|
2
2
|
export * from '@taiga-ui/addon-mobile/const';
|
|
3
3
|
export * from '@taiga-ui/addon-mobile/directives';
|
|
4
4
|
export * from '@taiga-ui/addon-mobile/interfaces';
|
|
5
|
+
export * from '@taiga-ui/addon-mobile/services';
|
|
5
6
|
export * from '@taiga-ui/addon-mobile/types';
|
|
6
7
|
export * from '@taiga-ui/addon-mobile/utils';
|
|
7
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile.js","sources":["../../../projects/addon-mobile/taiga-ui-addon-mobile.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile.js","sources":["../../../projects/addon-mobile/taiga-ui-addon-mobile.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;;AAEG"}
|
package/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export * from '@taiga-ui/addon-mobile/components';
|
|
|
2
2
|
export * from '@taiga-ui/addon-mobile/const';
|
|
3
3
|
export * from '@taiga-ui/addon-mobile/directives';
|
|
4
4
|
export * from '@taiga-ui/addon-mobile/interfaces';
|
|
5
|
+
export * from '@taiga-ui/addon-mobile/services';
|
|
5
6
|
export * from '@taiga-ui/addon-mobile/types';
|
|
6
7
|
export * from '@taiga-ui/addon-mobile/utils';
|
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
2
|
+
"name": "@taiga-ui/addon-mobile",
|
|
3
|
+
"version": "3.75.0-canary.45cfc56",
|
|
4
|
+
"description": "Extension package for Taiga UI that adds support for mobile specific behaviors such as custom data pickers, dropdowns, etc.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"angular",
|
|
7
|
+
"component",
|
|
8
|
+
"mobile"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/taiga-family/taiga-ui",
|
|
11
|
+
"repository": "https://github.com/taiga-family/taiga-ui",
|
|
12
|
+
"license": "Apache-2.0",
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"@angular/cdk": ">=12.0.0",
|
|
15
|
+
"@angular/common": ">=12.0.0",
|
|
16
|
+
"@angular/core": ">=12.0.0",
|
|
17
|
+
"@ng-web-apis/common": "3.0.6",
|
|
18
|
+
"@taiga-ui/cdk": "^3.75.0-canary.45cfc56",
|
|
19
|
+
"@taiga-ui/core": "^3.75.0-canary.45cfc56",
|
|
20
|
+
"@taiga-ui/kit": "^3.75.0-canary.45cfc56",
|
|
21
|
+
"@tinkoff/ng-polymorpheus": "4.3.0",
|
|
22
|
+
"rxjs": ">=6.0.0"
|
|
23
|
+
},
|
|
24
|
+
"main": "bundles/taiga-ui-addon-mobile.umd.js",
|
|
25
|
+
"module": "fesm2015/taiga-ui-addon-mobile.js",
|
|
26
|
+
"es2015": "fesm2015/taiga-ui-addon-mobile.js",
|
|
27
|
+
"esm2015": "esm2015/taiga-ui-addon-mobile.js",
|
|
28
|
+
"fesm2015": "fesm2015/taiga-ui-addon-mobile.js",
|
|
29
|
+
"typings": "taiga-ui-addon-mobile.d.ts",
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"tslib": "2.6.2"
|
|
33
|
+
}
|
|
34
34
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './keyboard.service';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TuiKeyboardService implements OnDestroy {
|
|
4
|
+
private readonly doc;
|
|
5
|
+
private readonly sub;
|
|
6
|
+
private element?;
|
|
7
|
+
private inputMode;
|
|
8
|
+
constructor(doc: Document);
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
toggle(): void;
|
|
11
|
+
hide(): void;
|
|
12
|
+
show(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiKeyboardService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TuiKeyboardService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../bundles/taiga-ui-addon-mobile-services.umd.js",
|
|
3
|
+
"module": "../fesm2015/taiga-ui-addon-mobile-services.js",
|
|
4
|
+
"es2015": "../fesm2015/taiga-ui-addon-mobile-services.js",
|
|
5
|
+
"esm2015": "../esm2015/services/taiga-ui-addon-mobile-services.js",
|
|
6
|
+
"fesm2015": "../fesm2015/taiga-ui-addon-mobile-services.js",
|
|
7
|
+
"typings": "taiga-ui-addon-mobile-services.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/addon-mobile/services"
|
|
10
|
+
}
|