@taiga-ui/addon-mobile 4.52.0-canary.b4a8181 → 4.52.0-canary.b741982

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.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/components/mobile-calendar/mobile-calendar.component.d.ts +1 -0
  3. package/components/mobile-calendar/mobile-calendar.strategy.d.ts +2 -5
  4. package/components/mobile-calendar-dropdown/mobile-calendar-dropdown.component.d.ts +0 -2
  5. package/components/sheet-dialog/sheet-dialog.options.d.ts +3 -9
  6. package/components/sheet-dialog/sheet-dialog.service.d.ts +1 -1
  7. package/directives/dropdown-mobile/dropdown-mobile.component.d.ts +1 -1
  8. package/directives/dropdown-sheet/dropdown-sheet.component.d.ts +1 -1
  9. package/directives/responsive-dialog/responsive-dialog.service.d.ts +4 -7
  10. package/fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs +5 -4
  11. package/fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs.map +1 -1
  12. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs +8 -15
  13. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs.map +1 -1
  14. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs +7 -9
  15. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs +22 -34
  17. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +14 -15
  19. package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs +27 -37
  21. package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-addon-mobile-components-swipe-action.mjs +6 -6
  23. package/fesm2022/taiga-ui-addon-mobile-components-swipe-action.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs +11 -12
  25. package/fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs +8 -8
  27. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs +9 -9
  29. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +7 -8
  31. package/fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs +8 -12
  33. package/fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs +6 -6
  35. package/fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs +3 -3
  37. package/fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-addon-mobile-services.mjs +34 -5
  39. package/fesm2022/taiga-ui-addon-mobile-services.mjs.map +1 -1
  40. package/package.json +5 -5
  41. package/services/index.d.ts +1 -0
  42. package/services/theme-color.service.d.ts +18 -0
  43. package/styles/ios/switch.less +50 -1
  44. package/styles/taiga-ui-mobile.less +6 -0
@@ -1,8 +1,9 @@
1
1
  import { DOCUMENT } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, Injectable } from '@angular/core';
3
+ import { inject, Injectable, InjectionToken } from '@angular/core';
4
4
  import { tuiGetFocused } from '@taiga-ui/cdk/utils/focus';
5
5
  import { merge, fromEvent, filter } from 'rxjs';
6
+ import { Meta } from '@angular/platform-browser';
6
7
 
7
8
  class TuiKeyboardService {
8
9
  constructor() {
@@ -41,19 +42,47 @@ class TuiKeyboardService {
41
42
  this.element.inputMode = this.inputMode;
42
43
  this.element = undefined;
43
44
  }
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiKeyboardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
45
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiKeyboardService, providedIn: 'root' }); }
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiKeyboardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
46
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiKeyboardService, providedIn: 'root' }); }
46
47
  }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiKeyboardService, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiKeyboardService, decorators: [{
48
49
  type: Injectable,
49
50
  args: [{
50
51
  providedIn: 'root',
51
52
  }]
52
53
  }] });
53
54
 
55
+ const TUI_THEME_COLOR = new InjectionToken(ngDevMode ? 'TUI_THEME_COLOR' : '', {
56
+ factory: () => inject(Meta).getTag('name="theme-color"')?.content ?? '',
57
+ });
58
+ class TuiThemeColorService {
59
+ constructor() {
60
+ this.current = inject(TUI_THEME_COLOR);
61
+ this.doc = inject(DOCUMENT);
62
+ this.meta = inject(Meta);
63
+ this.color = this.current;
64
+ }
65
+ get color() {
66
+ return this.current;
67
+ }
68
+ set color(content) {
69
+ this.current = content;
70
+ this.meta.updateTag({ name: 'theme-color', content });
71
+ this.doc.documentElement.style.setProperty('--tui-theme-color', content);
72
+ }
73
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiThemeColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
74
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiThemeColorService, providedIn: 'root' }); }
75
+ }
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiThemeColorService, decorators: [{
77
+ type: Injectable,
78
+ args: [{
79
+ providedIn: 'root',
80
+ }]
81
+ }], ctorParameters: () => [] });
82
+
54
83
  /**
55
84
  * Generated bundle index. Do not edit.
56
85
  */
57
86
 
58
- export { TuiKeyboardService };
87
+ export { TUI_THEME_COLOR, TuiKeyboardService, TuiThemeColorService };
59
88
  //# sourceMappingURL=taiga-ui-addon-mobile-services.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-addon-mobile-services.mjs","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, type OnDestroy} from '@angular/core';\nimport {tuiGetFocused} from '@taiga-ui/cdk/utils/focus';\nimport {filter, fromEvent, merge} from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAQa,kBAAkB,CAAA;AAH/B,IAAA,WAAA,GAAA;AAIqB,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,EAAE;YACd,IAAI,CAAC,IAAI,EAAE;;aACR;YACH,IAAI,CAAC,IAAI,EAAE;;;IAIZ,IAAI,GAAA;QACP,MAAM,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAqB;QAE3D,IAAI,OAAO,EAAE,SAAS,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,EAAE;YAClD;;AAGJ,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO;AACtB,QAAA,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS;AAClC,QAAA,OAAO,CAAC,SAAS,GAAG,MAAM;;IAGvB,IAAI,GAAA;AACP,QAAA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf;;AAGJ,QAAA,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,MAAM;QAC/B,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS;AACvC,QAAA,IAAI,CAAC,OAAO,GAAG,SAAS;;+GA9CnB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAlB,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,kBAAkB,cAFf,MAAM,EAAA,CAAA,CAAA;;4FAET,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA;;;ACPD;;AAEG;;;;"}
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({\n providedIn: 'root',\n})\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 {\n factory: () => inject(Meta).getTag('name=\"theme-color\"')?.content ?? '',\n },\n);\n\ninterface TuiThemeColor {\n get color(): string;\n set color(value: string);\n}\n\n@Injectable({\n providedIn: 'root',\n})\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":";;;;;;;MAQa,kBAAkB,CAAA;AAH/B,IAAA,WAAA,GAAA;AAIqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;QACtB,IAAA,CAAA,GAAG,GAAG,KAAK,CACxB,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,EAC/B,SAAS,CAAC,IAAI,CAAC,GAAG,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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,cAFjB,MAAM,EAAA,CAAA,CAAA;;4FAET,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAHhC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA;;;AClBD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/addon-mobile",
3
- "version": "4.52.0-canary.b4a8181",
3
+ "version": "4.52.0-canary.b741982",
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",
@@ -26,14 +26,14 @@
26
26
  "types": "./components/index.d.ts",
27
27
  "default": "./fesm2022/taiga-ui-addon-mobile-components.mjs"
28
28
  },
29
- "./directives": {
30
- "types": "./directives/index.d.ts",
31
- "default": "./fesm2022/taiga-ui-addon-mobile-directives.mjs"
32
- },
33
29
  "./services": {
34
30
  "types": "./services/index.d.ts",
35
31
  "default": "./fesm2022/taiga-ui-addon-mobile-services.mjs"
36
32
  },
33
+ "./directives": {
34
+ "types": "./directives/index.d.ts",
35
+ "default": "./fesm2022/taiga-ui-addon-mobile-directives.mjs"
36
+ },
37
37
  "./components/bottom-sheet": {
38
38
  "types": "./components/bottom-sheet/index.d.ts",
39
39
  "default": "./fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs"
@@ -1 +1,2 @@
1
1
  export * from './keyboard.service';
2
+ export * from './theme-color.service';
@@ -0,0 +1,18 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const TUI_THEME_COLOR: InjectionToken<string>;
4
+ interface TuiThemeColor {
5
+ get color(): string;
6
+ set color(value: string);
7
+ }
8
+ export declare class TuiThemeColorService implements TuiThemeColor {
9
+ private current;
10
+ private readonly doc;
11
+ private readonly meta;
12
+ constructor();
13
+ get color(): string;
14
+ set color(content: string);
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiThemeColorService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<TuiThemeColorService>;
17
+ }
18
+ export {};
@@ -1,6 +1,55 @@
1
1
  @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
2
 
3
- input[tuiSwitch] {
3
+ input[tuiSwitch]._native {
4
+ block-size: 1.9375rem;
5
+ inline-size: 3.1875rem;
6
+ appearance: auto;
7
+ accent-color: var(--tui-background-accent-2);
8
+
9
+ &:invalid {
10
+ accent-color: var(--tui-status-negative);
11
+ }
12
+
13
+ &::before,
14
+ &::after {
15
+ display: none;
16
+ }
17
+
18
+ @supports (anchor-name: --ios26) {
19
+ inline-size: 4rem;
20
+ block-size: 1.75rem;
21
+
22
+ &::before {
23
+ .transition(background);
24
+
25
+ position: absolute;
26
+ display: block;
27
+ inset: 0;
28
+ border-radius: 10rem;
29
+ inline-size: 100%;
30
+ background-color: transparent;
31
+ mix-blend-mode: color;
32
+ transform: none;
33
+ }
34
+
35
+ &:invalid:not(:checked)::before {
36
+ background-color: var(--tui-status-negative);
37
+ }
38
+
39
+ [data-theme='dark'] & {
40
+ &:invalid:not(:checked)::before {
41
+ background-color: var(--tui-status-negative-pale);
42
+ }
43
+
44
+ &:disabled:not(:checked)::before {
45
+ background-color: rgba(255, 255, 255, 0.2);
46
+ mix-blend-mode: lighten;
47
+ }
48
+ }
49
+ }
50
+ }
51
+
52
+ input[tuiSwitch]:not(._native) {
4
53
  block-size: 1.9375rem;
5
54
  inline-size: 3.1875rem;
6
55
  border-radius: 2rem;
@@ -46,4 +46,10 @@
46
46
  @import 'common/message.less';
47
47
  @import 'common/notification-middle.less';
48
48
  @import 'common/toast.less';
49
+
50
+ tui-app-bar {
51
+ [tuiButton][data-size='l'] {
52
+ font-weight: normal;
53
+ }
54
+ }
49
55
  }