@vendure/admin-ui 1.3.0 → 1.3.4
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/bundles/vendure-admin-ui-catalog.umd.js +25 -13
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +65 -31
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-dashboard.umd.js.map +1 -1
- package/catalog/components/collection-tree/collection-tree-node.component.d.ts +5 -4
- package/catalog/components/collection-tree/collection-tree.component.d.ts +11 -0
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/generated-types.d.ts +4 -4
- package/core/common/version.d.ts +1 -1
- package/core/shared/components/channel-assignment-control/channel-assignment-control.component.d.ts +2 -0
- package/core/shared/components/currency-input/currency-input.component.d.ts +6 -3
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/esm2015/catalog/components/collection-tree/array-to-tree.js +1 -1
- package/esm2015/catalog/components/collection-tree/collection-tree-node.component.js +4 -14
- package/esm2015/catalog/components/collection-tree/collection-tree.component.js +23 -1
- package/esm2015/core/common/generated-types.js +1 -1
- package/esm2015/core/common/introspection-result.js +1 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/data/data.module.js +1 -1
- package/esm2015/core/shared/components/channel-assignment-control/channel-assignment-control.component.js +36 -22
- package/esm2015/core/shared/components/currency-input/currency-input.component.js +26 -7
- package/esm2015/core/shared/components/object-tree/object-tree.component.js +3 -3
- package/esm2015/dashboard/widgets/welcome-widget/welcome-widget.component.js +1 -1
- package/fesm2015/vendure-admin-ui-catalog.js +25 -13
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +63 -30
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-dashboard.js.map +1 -1
- package/package.json +2 -2
- package/static/vendure-ui-config.json +1 -1
|
@@ -2759,7 +2759,7 @@ export declare type OrderItem = Node & {
|
|
|
2759
2759
|
/** The price of a single unit including discounts and tax */
|
|
2760
2760
|
discountedUnitPriceWithTax: Scalars['Int'];
|
|
2761
2761
|
/**
|
|
2762
|
-
* The actual unit price, taking into account both item discounts _and_ prorated (
|
|
2762
|
+
* The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
2763
2763
|
* Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
|
|
2764
2764
|
* and refund calculations.
|
|
2765
2765
|
*/
|
|
@@ -2807,7 +2807,7 @@ export declare type OrderLine = Node & {
|
|
|
2807
2807
|
/** The price of a single unit including discounts and tax */
|
|
2808
2808
|
discountedUnitPriceWithTax: Scalars['Int'];
|
|
2809
2809
|
/**
|
|
2810
|
-
* The actual unit price, taking into account both item discounts _and_ prorated (
|
|
2810
|
+
* The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
2811
2811
|
* Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
|
|
2812
2812
|
* and refund calculations.
|
|
2813
2813
|
*/
|
|
@@ -2819,14 +2819,14 @@ export declare type OrderLine = Node & {
|
|
|
2819
2819
|
taxRate: Scalars['Float'];
|
|
2820
2820
|
/** The total price of the line excluding tax and discounts. */
|
|
2821
2821
|
linePrice: Scalars['Int'];
|
|
2822
|
-
/** The total price of the line including tax
|
|
2822
|
+
/** The total price of the line including tax but excluding discounts. */
|
|
2823
2823
|
linePriceWithTax: Scalars['Int'];
|
|
2824
2824
|
/** The price of the line including discounts, excluding tax */
|
|
2825
2825
|
discountedLinePrice: Scalars['Int'];
|
|
2826
2826
|
/** The price of the line including discounts and tax */
|
|
2827
2827
|
discountedLinePriceWithTax: Scalars['Int'];
|
|
2828
2828
|
/**
|
|
2829
|
-
* The actual line price, taking into account both item discounts _and_ prorated (
|
|
2829
|
+
* The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
2830
2830
|
* Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax
|
|
2831
2831
|
* and refund calculations.
|
|
2832
2832
|
*/
|
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "1.3.
|
|
1
|
+
export declare const ADMIN_UI_VERSION = "1.3.4";
|
package/core/shared/components/channel-assignment-control/channel-assignment-control.component.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare class ChannelAssignmentControlComponent implements OnInit, Contro
|
|
|
14
14
|
private onChange;
|
|
15
15
|
private onTouched;
|
|
16
16
|
private channels;
|
|
17
|
+
private lastIncomingValue;
|
|
17
18
|
constructor(dataService: DataService);
|
|
18
19
|
ngOnInit(): void;
|
|
19
20
|
registerOnChange(fn: any): void;
|
|
@@ -24,4 +25,5 @@ export declare class ChannelAssignmentControlComponent implements OnInit, Contro
|
|
|
24
25
|
channelIsDisabled(id: string): boolean;
|
|
25
26
|
valueChanged(value: CurrentUserChannel[] | CurrentUserChannel | undefined): void;
|
|
26
27
|
compareFn(c1: Channel | string, c2: Channel | string): boolean;
|
|
28
|
+
private mapIncomingValueToChannels;
|
|
27
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { DataService } from '../../../data/providers/data.service';
|
|
@@ -6,7 +6,7 @@ import { DataService } from '../../../data/providers/data.service';
|
|
|
6
6
|
* A form input control which displays currency in decimal format, whilst working
|
|
7
7
|
* with the integer cent value in the background.
|
|
8
8
|
*/
|
|
9
|
-
export declare class CurrencyInputComponent implements ControlValueAccessor, OnInit, OnChanges {
|
|
9
|
+
export declare class CurrencyInputComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy {
|
|
10
10
|
private dataService;
|
|
11
11
|
private changeDetectorRef;
|
|
12
12
|
disabled: boolean;
|
|
@@ -16,13 +16,16 @@ export declare class CurrencyInputComponent implements ControlValueAccessor, OnI
|
|
|
16
16
|
valueChange: EventEmitter<any>;
|
|
17
17
|
prefix$: Observable<string>;
|
|
18
18
|
suffix$: Observable<string>;
|
|
19
|
+
hasFractionPart: boolean;
|
|
19
20
|
onChange: (val: any) => void;
|
|
20
21
|
onTouch: () => void;
|
|
21
|
-
|
|
22
|
+
_inputValue: string;
|
|
22
23
|
private currencyCode$;
|
|
24
|
+
private subscription;
|
|
23
25
|
constructor(dataService: DataService, changeDetectorRef: ChangeDetectorRef);
|
|
24
26
|
ngOnInit(): void;
|
|
25
27
|
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
26
29
|
registerOnChange(fn: any): void;
|
|
27
30
|
registerOnTouched(fn: any): void;
|
|
28
31
|
setDisabledState(isDisabled: boolean): void;
|