@vendure/admin-ui 1.6.2 → 1.6.5
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.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +48 -28
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +38 -18
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/core/common/generated-types.d.ts +2 -0
- package/core/common/version.d.ts +1 -1
- package/core/shared/components/custom-field-control/custom-field-control.component.d.ts +6 -2
- package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +2 -1
- package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +2 -0
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +2 -1
- package/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.d.ts +10 -2
- package/core/shared/pipes/custom-field-label.pipe.d.ts +4 -10
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/esm2015/catalog/components/product-variants-editor/product-variants-editor.component.js +1 -1
- package/esm2015/core/common/generated-types.js +1 -1
- package/esm2015/core/common/introspection-result.js +1 -1
- package/esm2015/core/common/utilities/configurable-operation-utils.js +3 -3
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/shared/components/address-form/address-form.component.js +2 -2
- package/esm2015/core/shared/components/custom-field-control/custom-field-control.component.js +9 -3
- package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +5 -2
- package/esm2015/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.js +11 -2
- package/esm2015/core/shared/dynamic-form-inputs/select-form-input/select-form-input.component.js +15 -2
- package/esm2015/core/shared/pipes/custom-field-label.pipe.js +4 -19
- package/esm2015/order/components/order-detail/order-detail.component.js +31 -19
- package/esm2015/order/components/order-table/order-table.component.js +10 -2
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +40 -25
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +39 -19
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/order/components/order-table/order-table.component.d.ts +1 -0
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +2 -2
- package/static/i18n-messages/cs.json +683 -683
- package/static/i18n-messages/de.json +683 -683
- package/static/i18n-messages/en.json +684 -684
- package/static/i18n-messages/es.json +683 -683
- package/static/i18n-messages/fr.json +683 -683
- package/static/i18n-messages/it.json +683 -683
- package/static/i18n-messages/pl.json +683 -683
- package/static/i18n-messages/pt_BR.json +683 -683
- package/static/i18n-messages/pt_PT.json +683 -683
- package/static/i18n-messages/ru.json +683 -683
- package/static/i18n-messages/uk.json +683 -683
- package/static/i18n-messages/zh_Hans.json +683 -683
- package/static/i18n-messages/zh_Hant.json +683 -683
|
@@ -4097,6 +4097,7 @@ export declare type ShippingMethod = Node & {
|
|
|
4097
4097
|
id: Scalars['ID'];
|
|
4098
4098
|
createdAt: Scalars['DateTime'];
|
|
4099
4099
|
updatedAt: Scalars['DateTime'];
|
|
4100
|
+
languageCode: LanguageCode;
|
|
4100
4101
|
code: Scalars['String'];
|
|
4101
4102
|
name: Scalars['String'];
|
|
4102
4103
|
description: Scalars['String'];
|
|
@@ -4110,6 +4111,7 @@ export declare type ShippingMethodFilterParameter = {
|
|
|
4110
4111
|
id?: Maybe<IdOperators>;
|
|
4111
4112
|
createdAt?: Maybe<DateOperators>;
|
|
4112
4113
|
updatedAt?: Maybe<DateOperators>;
|
|
4114
|
+
languageCode?: Maybe<StringOperators>;
|
|
4113
4115
|
code?: Maybe<StringOperators>;
|
|
4114
4116
|
name?: Maybe<StringOperators>;
|
|
4115
4117
|
description?: Maybe<StringOperators>;
|
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "1.6.
|
|
1
|
+
export declare const ADMIN_UI_VERSION = "1.6.5";
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
2
4
|
import { InputComponentConfig } from '../../../common/component-registry-types';
|
|
3
|
-
import { CustomFieldConfig, CustomFieldsFragment } from '../../../common/generated-types';
|
|
5
|
+
import { CustomFieldConfig, CustomFieldsFragment, LanguageCode } from '../../../common/generated-types';
|
|
4
6
|
import { DataService } from '../../../data/providers/data.service';
|
|
5
7
|
import { CustomFieldComponentService, CustomFieldEntityName } from '../../../providers/custom-field-component/custom-field-component.service';
|
|
6
8
|
/**
|
|
7
9
|
* This component renders the appropriate type of form input control based
|
|
8
10
|
* on the "type" property of the provided CustomFieldConfig.
|
|
9
11
|
*/
|
|
10
|
-
export declare class CustomFieldControlComponent {
|
|
12
|
+
export declare class CustomFieldControlComponent implements OnInit {
|
|
11
13
|
private dataService;
|
|
12
14
|
private customFieldComponentService;
|
|
13
15
|
entityName: CustomFieldEntityName;
|
|
@@ -19,7 +21,9 @@ export declare class CustomFieldControlComponent {
|
|
|
19
21
|
hasCustomControl: boolean;
|
|
20
22
|
private customComponentPlaceholder;
|
|
21
23
|
private customComponentFactory;
|
|
24
|
+
uiLanguage$: Observable<LanguageCode>;
|
|
22
25
|
constructor(dataService: DataService, customFieldComponentService: CustomFieldComponentService);
|
|
26
|
+
ngOnInit(): void;
|
|
23
27
|
getFieldDefinition(): CustomFieldConfig & {
|
|
24
28
|
ui?: InputComponentConfig;
|
|
25
29
|
};
|
|
@@ -35,12 +35,13 @@ export declare class FacetValueSelectorComponent implements OnInit, ControlValue
|
|
|
35
35
|
selectedValuesChange: EventEmitter<import("../../../common/generated-types").FacetValueFragment[]>;
|
|
36
36
|
facets: FacetWithValues.Fragment[];
|
|
37
37
|
readonly: boolean;
|
|
38
|
+
transformControlValueAccessorValue: (value: FacetValueSeletorItem[]) => any[];
|
|
38
39
|
private ngSelect;
|
|
39
40
|
facetValues: FacetValueSeletorItem[];
|
|
40
41
|
onChangeFn: (val: any) => void;
|
|
41
42
|
onTouchFn: () => void;
|
|
42
43
|
disabled: boolean;
|
|
43
|
-
value: string
|
|
44
|
+
value: Array<string | FacetValue.Fragment>;
|
|
44
45
|
constructor(dataService: DataService);
|
|
45
46
|
ngOnInit(): void;
|
|
46
47
|
onChange(selected: FacetValueSeletorItem[]): void;
|
package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Observable } from 'rxjs';
|
|
|
5
5
|
import { FormInputComponent, InputComponentConfig } from '../../../common/component-registry-types';
|
|
6
6
|
import { FacetWithValues } from '../../../common/generated-types';
|
|
7
7
|
import { DataService } from '../../../data/providers/data.service';
|
|
8
|
+
import { FacetValueSeletorItem } from '../../components/facet-value-selector/facet-value-selector.component';
|
|
8
9
|
/**
|
|
9
10
|
* @description
|
|
10
11
|
* Allows the selection of multiple FacetValues via an autocomplete select input.
|
|
@@ -23,4 +24,5 @@ export declare class FacetValueFormInputComponent implements FormInputComponent,
|
|
|
23
24
|
config: InputComponentConfig;
|
|
24
25
|
constructor(dataService: DataService);
|
|
25
26
|
ngOnInit(): void;
|
|
27
|
+
valueTransformFn: (values: FacetValueSeletorItem[]) => string | FacetValueSeletorItem[];
|
|
26
28
|
}
|
|
@@ -9,7 +9,8 @@ import { FacetValueFormInputComponent } from './facet-value-form-input/facet-val
|
|
|
9
9
|
import { PasswordFormInputComponent } from './password-form-input/password-form-input.component';
|
|
10
10
|
import { ProductMultiSelectorFormInputComponent } from './product-multi-selector-form-input/product-multi-selector-form-input.component';
|
|
11
11
|
import { ProductSelectorFormInputComponent } from './product-selector-form-input/product-selector-form-input.component';
|
|
12
|
-
|
|
12
|
+
import { SelectFormInputComponent } from './select-form-input/select-form-input.component';
|
|
13
|
+
export declare const defaultFormInputs: (typeof ProductSelectorFormInputComponent | typeof CustomerGroupFormInputComponent | typeof PasswordFormInputComponent | typeof CurrencyFormInputComponent | typeof SelectFormInputComponent | typeof FacetValueFormInputComponent | typeof JsonEditorFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof CombinationModeFormInputComponent)[];
|
|
13
14
|
/**
|
|
14
15
|
* @description
|
|
15
16
|
* Registers a custom FormInputComponent which can be used to control the argument inputs
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { FormControl } from '@angular/forms';
|
|
2
3
|
import { DefaultFormComponentConfig, DefaultFormComponentId } from '@vendure/common/lib/shared-types';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
3
5
|
import { FormInputComponent } from '../../../common/component-registry-types';
|
|
4
|
-
import { CustomFieldConfigFragment } from '../../../common/generated-types';
|
|
6
|
+
import { CustomFieldConfigFragment, LanguageCode } from '../../../common/generated-types';
|
|
7
|
+
import { DataService } from '../../../data/providers/data.service';
|
|
5
8
|
/**
|
|
6
9
|
* @description
|
|
7
10
|
* Uses a select input to allow the selection of a string value. Should be used with
|
|
@@ -10,10 +13,15 @@ import { CustomFieldConfigFragment } from '../../../common/generated-types';
|
|
|
10
13
|
* @docsCategory custom-input-components
|
|
11
14
|
* @docsPage default-inputs
|
|
12
15
|
*/
|
|
13
|
-
export declare class SelectFormInputComponent implements FormInputComponent {
|
|
16
|
+
export declare class SelectFormInputComponent implements FormInputComponent, OnInit {
|
|
17
|
+
private dataService;
|
|
14
18
|
static readonly id: DefaultFormComponentId;
|
|
15
19
|
readonly: boolean;
|
|
16
20
|
formControl: FormControl;
|
|
17
21
|
config: DefaultFormComponentConfig<'select-form-input'> & CustomFieldConfigFragment;
|
|
22
|
+
uiLanguage$: Observable<LanguageCode>;
|
|
18
23
|
get options(): any;
|
|
24
|
+
constructor(dataService: DataService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
trackByFn(index: number, item: any): any;
|
|
19
27
|
}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CustomFieldConfig, StringFieldOption } from '../../common/generated-types';
|
|
3
|
-
import { DataService } from '../../data/providers/data.service';
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { CustomFieldConfig, LanguageCode, StringFieldOption } from '../../common/generated-types';
|
|
4
3
|
/**
|
|
5
4
|
* Displays a localized label for a CustomField or StringFieldOption, falling back to the
|
|
6
5
|
* name/value if none are defined.
|
|
7
6
|
*/
|
|
8
|
-
export declare class CustomFieldLabelPipe implements PipeTransform
|
|
9
|
-
|
|
10
|
-
private readonly subscription;
|
|
11
|
-
private uiLanguageCode;
|
|
12
|
-
constructor(dataService: DataService);
|
|
13
|
-
transform(value: CustomFieldConfig | StringFieldOption): string;
|
|
14
|
-
ngOnDestroy(): void;
|
|
7
|
+
export declare class CustomFieldLabelPipe implements PipeTransform {
|
|
8
|
+
transform(value: CustomFieldConfig | StringFieldOption, uiLanguageCode: LanguageCode | null): string;
|
|
15
9
|
private isCustomFieldConfig;
|
|
16
10
|
}
|