@taiga-ui/addon-mobile 5.0.0-rc.1 → 5.0.0-rc.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/fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs +3 -3
- package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs +6 -6
- package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs +4 -6
- package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs +3 -3
- package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +14 -18
- package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs +11 -13
- package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-mobile-components-swipe-action.mjs +6 -6
- package/fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs +10 -12
- package/fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs +6 -6
- package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs +6 -6
- package/fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +6 -6
- package/fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs +7 -9
- package/fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs +6 -6
- package/fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs +4 -6
- package/fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -1
- package/fesm2022/taiga-ui-addon-mobile-services.mjs +9 -15
- package/fesm2022/taiga-ui-addon-mobile-services.mjs.map +1 -1
- package/package.json +33 -33
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile-services.mjs","sources":["../../../projects/addon-mobile/services/keyboard.service.ts","../../../projects/addon-mobile/services/theme-color.service.ts","../../../projects/addon-mobile/services/taiga-ui-addon-mobile-services.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable, type OnDestroy} from '@angular/core';\nimport {tuiGetFocused} from '@taiga-ui/cdk/utils/focus';\nimport {filter, fromEvent, merge} from 'rxjs';\n\n@Injectable({
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-services.mjs","sources":["../../../projects/addon-mobile/services/keyboard.service.ts","../../../projects/addon-mobile/services/theme-color.service.ts","../../../projects/addon-mobile/services/taiga-ui-addon-mobile-services.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable, type OnDestroy} from '@angular/core';\nimport {tuiGetFocused} from '@taiga-ui/cdk/utils/focus';\nimport {filter, fromEvent, merge} from 'rxjs';\n\n@Injectable({providedIn: 'root'})\nexport class TuiKeyboardService implements OnDestroy {\n private readonly doc = inject(DOCUMENT);\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 public ngOnDestroy(): void {\n this.sub.unsubscribe();\n this.show();\n }\n\n public toggle(): void {\n if (this.element) {\n this.show();\n } else {\n this.hide();\n }\n }\n\n public hide(): void {\n const focused = tuiGetFocused(this.doc) as HTMLInputElement;\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 public 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","import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable, InjectionToken} from '@angular/core';\nimport {Meta} from '@angular/platform-browser';\n\nexport const TUI_THEME_COLOR = new InjectionToken<string>(\n ngDevMode ? 'TUI_THEME_COLOR' : '',\n {factory: () => inject(Meta).getTag('name=\"theme-color\"')?.content ?? ''},\n);\n\ninterface TuiThemeColor {\n get color(): string;\n set color(value: string);\n}\n\n@Injectable({providedIn: 'root'})\nexport class TuiThemeColorService implements TuiThemeColor {\n private current = inject(TUI_THEME_COLOR);\n private readonly doc = inject(DOCUMENT);\n private readonly meta = inject(Meta);\n\n constructor() {\n this.color = this.current;\n }\n\n public get color(): string {\n return this.current;\n }\n\n public set color(content: string) {\n this.current = content;\n this.meta.updateTag({name: 'theme-color', content});\n this.doc.documentElement.style.setProperty('--tui-theme-color', content);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAMa,kBAAkB,CAAA;AAD/B,IAAA,WAAA,GAAA;AAEqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;QACtB,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,CAAC,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CACnD,CACJ,CAAC,SAAS,CAAC,MAAK;YACb,IAAI,CAAC,IAAI,EAAE;AACf,SAAC,CAAC;QAGM,IAAS,CAAA,SAAA,GAAG,EAAE;AAoCzB;IAlCU,WAAW,GAAA;AACd,QAAA,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE;QACtB,IAAI,CAAC,IAAI,EAAE;;IAGR,MAAM,GAAA;AACT,QAAA,IAAI,IAAI,CAAC,OAAO,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WAAA,GAAA;AAJQ,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;AACxB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;AACtB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;AAGhC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO;;AAG7B,IAAA,IAAW,KAAK,GAAA;QACZ,OAAO,IAAI,CAAC,OAAO;;IAGvB,IAAW,KAAK,CAAC,OAAe,EAAA;AAC5B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO;AACtB,QAAA,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAC,CAAC;AACnD,QAAA,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC;;+GAhBnE,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cADR,MAAM,EAAA,CAAA,CAAA;;4FAClB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;ACdhC;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/addon-mobile",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.2",
|
|
4
4
|
"description": "Extension package for Taiga UI that adds support for mobile specific behaviors such as custom data pickers, dropdowns, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -22,10 +22,6 @@
|
|
|
22
22
|
"types": "./index.d.ts",
|
|
23
23
|
"default": "./fesm2022/taiga-ui-addon-mobile.mjs"
|
|
24
24
|
},
|
|
25
|
-
"./components": {
|
|
26
|
-
"types": "./components/index.d.ts",
|
|
27
|
-
"default": "./fesm2022/taiga-ui-addon-mobile-components.mjs"
|
|
28
|
-
},
|
|
29
25
|
"./directives": {
|
|
30
26
|
"types": "./directives/index.d.ts",
|
|
31
27
|
"default": "./fesm2022/taiga-ui-addon-mobile-directives.mjs"
|
|
@@ -34,6 +30,34 @@
|
|
|
34
30
|
"types": "./services/index.d.ts",
|
|
35
31
|
"default": "./fesm2022/taiga-ui-addon-mobile-services.mjs"
|
|
36
32
|
},
|
|
33
|
+
"./components": {
|
|
34
|
+
"types": "./components/index.d.ts",
|
|
35
|
+
"default": "./fesm2022/taiga-ui-addon-mobile-components.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./directives/dropdown-mobile": {
|
|
38
|
+
"types": "./directives/dropdown-mobile/index.d.ts",
|
|
39
|
+
"default": "./fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./directives/dropdown-sheet": {
|
|
42
|
+
"types": "./directives/dropdown-sheet/index.d.ts",
|
|
43
|
+
"default": "./fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./directives/responsive-dialog": {
|
|
46
|
+
"types": "./directives/responsive-dialog/index.d.ts",
|
|
47
|
+
"default": "./fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./directives/ripple": {
|
|
50
|
+
"types": "./directives/ripple/index.d.ts",
|
|
51
|
+
"default": "./fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./directives/touchable": {
|
|
54
|
+
"types": "./directives/touchable/index.d.ts",
|
|
55
|
+
"default": "./fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs"
|
|
56
|
+
},
|
|
57
|
+
"./directives/elastic-sticky": {
|
|
58
|
+
"types": "./directives/elastic-sticky/index.d.ts",
|
|
59
|
+
"default": "./fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs"
|
|
60
|
+
},
|
|
37
61
|
"./components/bottom-sheet": {
|
|
38
62
|
"types": "./components/bottom-sheet/index.d.ts",
|
|
39
63
|
"default": "./fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs"
|
|
@@ -65,30 +89,6 @@
|
|
|
65
89
|
"./components/tab-bar": {
|
|
66
90
|
"types": "./components/tab-bar/index.d.ts",
|
|
67
91
|
"default": "./fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs"
|
|
68
|
-
},
|
|
69
|
-
"./directives/dropdown-mobile": {
|
|
70
|
-
"types": "./directives/dropdown-mobile/index.d.ts",
|
|
71
|
-
"default": "./fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs"
|
|
72
|
-
},
|
|
73
|
-
"./directives/dropdown-sheet": {
|
|
74
|
-
"types": "./directives/dropdown-sheet/index.d.ts",
|
|
75
|
-
"default": "./fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs"
|
|
76
|
-
},
|
|
77
|
-
"./directives/elastic-sticky": {
|
|
78
|
-
"types": "./directives/elastic-sticky/index.d.ts",
|
|
79
|
-
"default": "./fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs"
|
|
80
|
-
},
|
|
81
|
-
"./directives/responsive-dialog": {
|
|
82
|
-
"types": "./directives/responsive-dialog/index.d.ts",
|
|
83
|
-
"default": "./fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs"
|
|
84
|
-
},
|
|
85
|
-
"./directives/ripple": {
|
|
86
|
-
"types": "./directives/ripple/index.d.ts",
|
|
87
|
-
"default": "./fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs"
|
|
88
|
-
},
|
|
89
|
-
"./directives/touchable": {
|
|
90
|
-
"types": "./directives/touchable/index.d.ts",
|
|
91
|
-
"default": "./fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
"@angular/core": ">=19.0.0",
|
|
98
98
|
"@ng-web-apis/common": "^5.0.3",
|
|
99
99
|
"@ng-web-apis/platform": "^5.0.3",
|
|
100
|
-
"@taiga-ui/cdk": "^5.0.0-rc.
|
|
101
|
-
"@taiga-ui/core": "^5.0.0-rc.
|
|
102
|
-
"@taiga-ui/kit": "^5.0.0-rc.
|
|
103
|
-
"@taiga-ui/layout": "^5.0.0-rc.
|
|
100
|
+
"@taiga-ui/cdk": "^5.0.0-rc.2",
|
|
101
|
+
"@taiga-ui/core": "^5.0.0-rc.2",
|
|
102
|
+
"@taiga-ui/kit": "^5.0.0-rc.2",
|
|
103
|
+
"@taiga-ui/layout": "^5.0.0-rc.2",
|
|
104
104
|
"@taiga-ui/polymorpheus": "^5.0.0",
|
|
105
105
|
"rxjs": ">=7.0.0"
|
|
106
106
|
},
|