@taiga-ui/addon-mobile 4.52.0-canary.974ca4b → 4.52.0-canary.a1004d6

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 (63) hide show
  1. package/components/bottom-sheet/bottom-sheet.component.d.ts +3 -3
  2. package/components/mobile-calendar/calendar-date-stream.d.ts +6 -0
  3. package/components/mobile-calendar/index.d.ts +1 -0
  4. package/components/mobile-calendar/mobile-calendar.component.d.ts +16 -18
  5. package/components/mobile-calendar/mobile-calendar.strategy.d.ts +2 -5
  6. package/components/mobile-calendar-dropdown/mobile-calendar-dropdown.component.d.ts +6 -8
  7. package/components/mobile-calendar-dropdown/mobile-calendar-dropdown.directive.d.ts +6 -6
  8. package/components/pull-to-refresh/pull-to-refresh.component.d.ts +8 -7
  9. package/components/sheet-dialog/sheet-dialog.service.d.ts +1 -1
  10. package/components/swipe-action/swipe-actions-auto-close.directive.d.ts +2 -2
  11. package/components/tab-bar/tab-bar-item.component.d.ts +3 -3
  12. package/components/tab-bar/tab-bar.component.d.ts +4 -7
  13. package/directives/dropdown-mobile/dropdown-mobile.component.d.ts +1 -1
  14. package/directives/dropdown-sheet/dropdown-sheet.component.d.ts +1 -1
  15. package/directives/elastic-sticky/elastic-sticky.directive.d.ts +1 -2
  16. package/directives/responsive-dialog/responsive-dialog.service.d.ts +1 -1
  17. package/directives/ripple/ripple.directive.d.ts +2 -2
  18. package/directives/touchable/touchable.directive.d.ts +5 -5
  19. package/fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs +13 -21
  20. package/fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs +24 -39
  22. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs +7 -9
  24. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-sheet.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs +118 -144
  26. package/fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs +42 -53
  28. package/fesm2022/taiga-ui-addon-mobile-components-pull-to-refresh.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs +15 -16
  30. package/fesm2022/taiga-ui-addon-mobile-components-sheet-dialog.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-addon-mobile-components-swipe-action.mjs +12 -19
  32. package/fesm2022/taiga-ui-addon-mobile-components-swipe-action.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs +31 -50
  34. package/fesm2022/taiga-ui-addon-mobile-components-tab-bar.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs +8 -8
  36. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-mobile.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs +9 -9
  38. package/fesm2022/taiga-ui-addon-mobile-directives-dropdown-sheet.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs +11 -14
  40. package/fesm2022/taiga-ui-addon-mobile-directives-elastic-sticky.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs +7 -7
  42. package/fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs +10 -12
  44. package/fesm2022/taiga-ui-addon-mobile-directives-ripple.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs +18 -24
  46. package/fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-addon-mobile-services.mjs +34 -5
  48. package/fesm2022/taiga-ui-addon-mobile-services.mjs.map +1 -1
  49. package/package.json +12 -12
  50. package/services/index.d.ts +1 -0
  51. package/services/theme-color.service.d.ts +18 -0
  52. package/styles/android/app-bar.less +5 -1
  53. package/styles/android/switch.less +1 -0
  54. package/styles/common/badge-notification.less +1 -1
  55. package/styles/common/badge.less +2 -2
  56. package/styles/common/block-status.less +1 -1
  57. package/styles/common/button.less +1 -1
  58. package/styles/common/header.less +1 -1
  59. package/styles/common/message.less +1 -1
  60. package/styles/common/segmented.less +1 -1
  61. package/styles/common/title.less +0 -1
  62. package/styles/common/toast.less +1 -1
  63. package/styles/ios/switch.less +50 -1
@@ -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,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,SAA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,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.974ca4b",
3
+ "version": "4.52.0-canary.a1004d6",
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,22 +26,22 @@
26
26
  "types": "./components/index.d.ts",
27
27
  "default": "./fesm2022/taiga-ui-addon-mobile-components.mjs"
28
28
  },
29
- "./services": {
30
- "types": "./services/index.d.ts",
31
- "default": "./fesm2022/taiga-ui-addon-mobile-services.mjs"
32
- },
33
29
  "./directives": {
34
30
  "types": "./directives/index.d.ts",
35
31
  "default": "./fesm2022/taiga-ui-addon-mobile-directives.mjs"
36
32
  },
37
- "./components/mobile-calendar": {
38
- "types": "./components/mobile-calendar/index.d.ts",
39
- "default": "./fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs"
33
+ "./services": {
34
+ "types": "./services/index.d.ts",
35
+ "default": "./fesm2022/taiga-ui-addon-mobile-services.mjs"
40
36
  },
41
37
  "./components/bottom-sheet": {
42
38
  "types": "./components/bottom-sheet/index.d.ts",
43
39
  "default": "./fesm2022/taiga-ui-addon-mobile-components-bottom-sheet.mjs"
44
40
  },
41
+ "./components/mobile-calendar": {
42
+ "types": "./components/mobile-calendar/index.d.ts",
43
+ "default": "./fesm2022/taiga-ui-addon-mobile-components-mobile-calendar.mjs"
44
+ },
45
45
  "./components/mobile-calendar-dropdown": {
46
46
  "types": "./components/mobile-calendar-dropdown/index.d.ts",
47
47
  "default": "./fesm2022/taiga-ui-addon-mobile-components-mobile-calendar-dropdown.mjs"
@@ -82,13 +82,13 @@
82
82
  "types": "./directives/responsive-dialog/index.d.ts",
83
83
  "default": "./fesm2022/taiga-ui-addon-mobile-directives-responsive-dialog.mjs"
84
84
  },
85
- "./directives/touchable": {
86
- "types": "./directives/touchable/index.d.ts",
87
- "default": "./fesm2022/taiga-ui-addon-mobile-directives-touchable.mjs"
88
- },
89
85
  "./directives/ripple": {
90
86
  "types": "./directives/ripple/index.d.ts",
91
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": {
@@ -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,5 +1,5 @@
1
1
  tui-app-bar {
2
- font: var(--tui-font-heading-6);
2
+ font: var(--tui-font-heading-h6);
3
3
  block-size: 3.5rem;
4
4
 
5
5
  > .t-content {
@@ -12,6 +12,10 @@ tui-app-bar {
12
12
  > * {
13
13
  max-inline-size: calc(100% - var(--t-sides, 0px));
14
14
  }
15
+
16
+ > [tuiProgressBar] {
17
+ .center-left();
18
+ }
15
19
  }
16
20
 
17
21
  > :last-child [tuiIconButton] {
@@ -11,6 +11,7 @@ input[tuiSwitch] {
11
11
 
12
12
  &::before {
13
13
  content: '';
14
+ left: 0;
14
15
  display: block;
15
16
  block-size: 100%;
16
17
  inline-size: 100%;
@@ -1,6 +1,6 @@
1
1
  tui-badge-notification {
2
2
  &[data-size='l'] {
3
- font: var(--tui-font-text-m);
3
+ font: var(--tui-font-body-m);
4
4
  }
5
5
 
6
6
  &[data-size='m'] {
@@ -3,7 +3,7 @@ tui-badge,
3
3
  font-weight: 600;
4
4
 
5
5
  &[data-size='s'] {
6
- font: var(--tui-font-text-xs);
6
+ font: var(--tui-font-body-xs);
7
7
  font-weight: bold;
8
8
  }
9
9
 
@@ -11,7 +11,7 @@ tui-badge,
11
11
  --t-padding: 0 0.625rem;
12
12
  --t-size: 1.75rem;
13
13
 
14
- font: var(--tui-font-text-s);
14
+ font: var(--tui-font-body-s);
15
15
  font-weight: 600;
16
16
  }
17
17
  }
@@ -24,7 +24,7 @@ tui-block-status {
24
24
  h4,
25
25
  h5,
26
26
  h6 {
27
- font: var(--tui-font-heading-5);
27
+ font: var(--tui-font-heading-h5);
28
28
 
29
29
  & ~ .t-block-text:not(:empty) {
30
30
  margin-block-start: 0.5rem;
@@ -24,7 +24,7 @@
24
24
  }
25
25
 
26
26
  &[data-size='l'] {
27
- font: var(--tui-font-text-l);
27
+ font: var(--tui-font-body-l);
28
28
  font-weight: bold;
29
29
  }
30
30
 
@@ -27,7 +27,7 @@
27
27
  &[data-size='body-m'] {
28
28
  [tuiTitle],
29
29
  [tuiAccessories] {
30
- font: var(--tui-font-heading-6);
30
+ font: var(--tui-font-heading-h6);
31
31
  }
32
32
  }
33
33
  }
@@ -1,4 +1,4 @@
1
1
  [tuiMessage] {
2
- font: var(--tui-font-text-l);
2
+ font: var(--tui-font-body-l);
3
3
  border-radius: 0.875rem;
4
4
  }
@@ -4,7 +4,7 @@ tui-segmented[data-size] {
4
4
  --t-margin: -0.25rem;
5
5
  --t-height: var(--tui-height-s);
6
6
 
7
- font: var(--tui-font-text-s);
7
+ font: var(--tui-font-body-s);
8
8
  border-radius: 0.625rem;
9
9
 
10
10
  tui-icon {
@@ -6,7 +6,6 @@
6
6
  }
7
7
  }
8
8
 
9
- tui-notification [tuiTitle] [tuiSubtitle],
10
9
  [tuiNotification] [tuiTitle] [tuiSubtitle] {
11
10
  color: var(--tui-text-primary);
12
11
  }
@@ -1,7 +1,7 @@
1
1
  [tuiToast] {
2
2
  min-block-size: 3rem;
3
3
  border-radius: 1.5rem;
4
- font: var(--tui-font-text-m);
4
+ font: var(--tui-font-body-m);
5
5
 
6
6
  [tuiButton]:last-child {
7
7
  margin: -0.1875rem -0.4375rem -0.1875rem 0;
@@ -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;