@snabcentr/client-ui 3.47.8 → 3.48.1

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 (27) hide show
  1. package/catalog/catalog-filters/index.d.ts +3 -0
  2. package/catalog/catalog-filters/sc-catalog-filters.component.d.ts +99 -0
  3. package/catalog/catalog-filters/tokens/sc-catalog-products-filters.d.ts +7 -0
  4. package/catalog/catalog-filters/tokens/sc-catalog-show-products-recursively.d.ts +5 -0
  5. package/catalog/index.d.ts +1 -0
  6. package/configurators/sandwich/sc-sandwich.component.d.ts +2 -2
  7. package/esm2022/catalog/catalog-filters/index.mjs +4 -0
  8. package/esm2022/catalog/catalog-filters/sc-catalog-filters.component.mjs +202 -0
  9. package/esm2022/catalog/catalog-filters/tokens/sc-catalog-products-filters.mjs +10 -0
  10. package/esm2022/catalog/catalog-filters/tokens/sc-catalog-show-products-recursively.mjs +6 -0
  11. package/esm2022/catalog/index.mjs +2 -1
  12. package/esm2022/configurators/sandwich/sc-sandwich.component.mjs +15 -15
  13. package/esm2022/methods/index.mjs +2 -0
  14. package/esm2022/methods/sc-get-current-route.mjs +14 -0
  15. package/esm2022/pages/frequently-asked-questions-with-groups/sc-frequently-asked-questions-with-groups.component.mjs +3 -2
  16. package/esm2022/providers/index.mjs +2 -1
  17. package/esm2022/providers/sc-category.providers.mjs +43 -0
  18. package/esm2022/public-api.mjs +2 -1
  19. package/fesm2022/snabcentr-client-ui.mjs +409 -163
  20. package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
  21. package/methods/index.d.ts +1 -0
  22. package/methods/sc-get-current-route.d.ts +8 -0
  23. package/package.json +19 -19
  24. package/providers/index.d.ts +1 -0
  25. package/providers/sc-category.providers.d.ts +11 -0
  26. package/public-api.d.ts +1 -0
  27. package/styles/tailwind/tailwind.scss +5 -1
@@ -0,0 +1 @@
1
+ export * from './sc-get-current-route';
@@ -0,0 +1,8 @@
1
+ import { ActivatedRoute } from '@angular/router';
2
+ /**
3
+ * Возвращает текущий маршрут.
4
+ * Функция проходит по дереву маршрутов начиная с переданного route и возвращает самый вложенный активный маршрут.
5
+ *
6
+ * @param route Данные маршрута, от которого ищем текущий маршрут в приложении.
7
+ */
8
+ export declare const scGetCurrentRoute: (route: ActivatedRoute) => ActivatedRoute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snabcentr/client-ui",
3
- "version": "3.47.8",
3
+ "version": "3.48.1",
4
4
  "author": "Snabcentr Ltd.",
5
5
  "repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
6
6
  "license": "Commercial",
@@ -11,27 +11,27 @@
11
11
  "@angular/core": "^18.2.12",
12
12
  "@angular/forms": "^18.2.12",
13
13
  "@angular/router": "^18.2.12",
14
- "@maskito/angular": "^3.2.0",
15
- "@maskito/core": "^3.2.0",
16
- "@ng-web-apis/intersection-observer": "^4.11.1",
17
- "@ng-web-apis/common": "^4.11.1",
18
- "@snabcentr/client-core": "^2.60.3",
19
- "@taiga-ui/addon-charts": "^4.41.0",
20
- "@taiga-ui/addon-commerce": "^4.41.0",
21
- "@taiga-ui/cdk": "^4.41.0",
22
- "@taiga-ui/core": "^4.41.0",
23
- "@taiga-ui/event-plugins": "^4.3.1",
24
- "@taiga-ui/icons": "^4.41.0",
25
- "@taiga-ui/kit": "^4.41.0",
26
- "@taiga-ui/layout": "^4.41.0",
27
- "@taiga-ui/legacy": "^4.41.0",
28
- "@taiga-ui/i18n": "^4.41.0",
14
+ "@maskito/angular": "^3.11.1",
15
+ "@maskito/core": "^3.11.1",
16
+ "@ng-web-apis/intersection-observer": "^4.14.0",
17
+ "@ng-web-apis/common": "^4.14.0",
18
+ "@snabcentr/client-core": "^2.63.0",
19
+ "@taiga-ui/addon-charts": "^4.66.0",
20
+ "@taiga-ui/addon-commerce": "^4.66.0",
21
+ "@taiga-ui/cdk": "^4.66.0",
22
+ "@taiga-ui/core": "^4.66.0",
23
+ "@taiga-ui/event-plugins": "^4.7.0",
24
+ "@taiga-ui/icons": "^4.66.0",
25
+ "@taiga-ui/kit": "^4.66.0",
26
+ "@taiga-ui/layout": "^4.66.0",
27
+ "@taiga-ui/legacy": "^4.66.0",
28
+ "@taiga-ui/i18n": "^4.66.0",
29
29
  "@taiga-ui/polymorpheus": "^4.7.4",
30
- "@taiga-ui/experimental": "^4.41.0",
31
- "@taiga-ui/styles": "^4.41.0",
30
+ "@taiga-ui/experimental": "^4.66.0",
31
+ "@taiga-ui/styles": "^4.66.0",
32
32
  "ng-recaptcha-2": "^14.0.0",
33
33
  "angular8-yandex-maps": "^18.2.0",
34
- "libphonenumber-js": "^1.11.0",
34
+ "libphonenumber-js": "^1.12.7",
35
35
  "angularx-qrcode": "^18.0.2",
36
36
  "lodash-es": "^4.17.21",
37
37
  "rxjs": "^7.8.1",
@@ -1,4 +1,5 @@
1
1
  export * from './sc-verification-code-timeout';
2
+ export * from './sc-category.providers';
2
3
  export * from './sc-allow-select-terminated';
3
4
  export * from './sc-help-notification-limit';
4
5
  export * from './sc-help-notification-close';
@@ -0,0 +1,11 @@
1
+ import { InjectionToken, Provider } from '@angular/core';
2
+ import { ScCategory } from '@snabcentr/client-core';
3
+ import { Observable } from 'rxjs';
4
+ /**
5
+ * Токен потока данных о категории.
6
+ */
7
+ export declare const SC_CATEGORY_INFO: InjectionToken<Observable<ScCategory | null>>;
8
+ /**
9
+ * Провайдеры потока данных о категории.
10
+ */
11
+ export declare const SC_CATEGORY_PROVIDERS: Provider[];
package/public-api.d.ts CHANGED
@@ -23,6 +23,7 @@ export * from './order';
23
23
  export * from './pages';
24
24
  export * from './pipes';
25
25
  export * from './samples';
26
+ export * from './methods';
26
27
  export * from './providers';
27
28
  export * from './feedback';
28
29
  export * from './qrcode';
@@ -107,7 +107,7 @@
107
107
  }
108
108
 
109
109
  /*
110
- ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
110
+ ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
111
111
  */
112
112
 
113
113
  /*
@@ -1311,6 +1311,10 @@ video {
1311
1311
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
1312
1312
  }
1313
1313
 
1314
+ .bg-tui-base-01 {
1315
+ background-color: var(--tui-background-base);
1316
+ }
1317
+
1314
1318
  .bg-tui-base-02 {
1315
1319
  background-color: var(--tui-background-base-alt);
1316
1320
  }