@snabcentr/client-ui 3.50.0 → 3.50.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/configurators/sandwich/sc-sandwich.component.d.ts +1 -1
- package/directives/abstract-price-card/abstract-sc-price-card.directive.d.ts +2 -2
- package/esm2022/catalog/price-card/sc-price-card.component.mjs +3 -3
- package/esm2022/catalog/price-card-inline/sc-price-card-inline.component.mjs +3 -3
- package/esm2022/configurators/sandwich/sc-sandwich.component.mjs +6 -7
- package/esm2022/directives/abstract-price-card/abstract-sc-price-card.directive.mjs +4 -4
- package/esm2022/order/directives/index.mjs +3 -0
- package/esm2022/order/directives/sc-order-accessor.directive.mjs +28 -0
- package/esm2022/order/directives/sc-order-options.mjs +11 -0
- package/esm2022/order/draft/sc-draft.component.mjs +6 -5
- package/esm2022/order/index.mjs +2 -1
- package/esm2022/order/order-item/sc-order-item.component.mjs +5 -4
- package/esm2022/order/order-items-list/sc-order-items-list.component.mjs +15 -12
- package/esm2022/order/order-items-list-by-directions/sc-order-items-list-by-directions.component.mjs +7 -4
- package/esm2022/order/order-items-list-by-stock/sc-order-items-list-by-stock.component.mjs +2 -2
- package/fesm2022/snabcentr-client-ui.mjs +74 -35
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/order/directives/index.d.ts +2 -0
- package/order/directives/sc-order-accessor.directive.d.ts +13 -0
- package/order/directives/sc-order-options.d.ts +14 -0
- package/order/index.d.ts +1 -0
- package/order/order-items-list/sc-order-items-list.component.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Директива, создающая контекст опций заказа для DI.
|
|
4
|
+
* Позволяет дочерним компонентам получать опции заказа через {@link SC_ORDER_OPTIONS}.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ScOrderAccessorDirective {
|
|
7
|
+
/**
|
|
8
|
+
* Идентификатор заказа (черновика).
|
|
9
|
+
*/
|
|
10
|
+
readonly orderId: import("@angular/core").InputSignal<number | undefined>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScOrderAccessorDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScOrderAccessorDirective, "[scOrder]", never, { "orderId": { "alias": "orderId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InjectionToken, Signal } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Опции заказа (черновика).
|
|
4
|
+
*/
|
|
5
|
+
export interface ScOrderOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Идентификатор заказа (черновика).
|
|
8
|
+
*/
|
|
9
|
+
readonly orderId: Signal<number | undefined>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Токен для внедрения опций заказа (черновика) в дочерние компоненты.
|
|
13
|
+
*/
|
|
14
|
+
export declare const SC_ORDER_OPTIONS: InjectionToken<ScOrderOptions>;
|
package/order/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
2
|
import { ScIOrderEditorLoader, ScIOrderLoader, ScOrderItem } from '@snabcentr/client-core';
|
|
3
3
|
import { AbstractScPriceCard } from '../../directives';
|
|
4
|
+
import { ScOrderOptions } from '../directives/sc-order-options';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Компонент списка товаров корзины, заказа или черновика.
|
|
@@ -23,6 +24,10 @@ export declare class ScOrderItemsListComponent {
|
|
|
23
24
|
* Внутренняя группа формы для выбора позиций.
|
|
24
25
|
*/
|
|
25
26
|
protected readonly selectionFormGroup: FormGroup<Record<string, FormControl<boolean>>>;
|
|
27
|
+
/**
|
|
28
|
+
* Опции заказа (черновика). Предоставляется директивой {@link ScOrderAccessorDirective} в контексте черновика.
|
|
29
|
+
*/
|
|
30
|
+
protected readonly orderOptions: ScOrderOptions | null;
|
|
26
31
|
/**
|
|
27
32
|
* Идентификаторы выбранных позиций.
|
|
28
33
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snabcentr/client-ui",
|
|
3
|
-
"version": "3.50.
|
|
3
|
+
"version": "3.50.2",
|
|
4
4
|
"author": "Snabcentr Ltd.",
|
|
5
5
|
"repository": "https://gitlab.snabcentr.met/web/angular/snabcentr-client-ui-lib",
|
|
6
6
|
"license": "Commercial",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@maskito/core": "^3.11.1",
|
|
16
16
|
"@ng-web-apis/intersection-observer": "^4.14.0",
|
|
17
17
|
"@ng-web-apis/common": "^4.14.0",
|
|
18
|
-
"@snabcentr/client-core": "^2.
|
|
18
|
+
"@snabcentr/client-core": "^2.66.3",
|
|
19
19
|
"@taiga-ui/addon-charts": "^4.66.0",
|
|
20
20
|
"@taiga-ui/addon-commerce": "^4.66.0",
|
|
21
21
|
"@taiga-ui/cdk": "^4.66.0",
|