@vendure/admin-ui 2.2.7 → 2.3.0

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 (30) hide show
  1. package/catalog/components/product-variant-list/product-variant-list.component.d.ts +1 -1
  2. package/core/common/generated-types.d.ts +6 -1
  3. package/core/common/version.d.ts +1 -1
  4. package/core/extension/components/route.component.d.ts +9 -2
  5. package/core/extension/register-route-component.d.ts +4 -0
  6. package/core/shared/components/order-state-label/order-state-label.component.d.ts +1 -1
  7. package/core/shared/dynamic-form-inputs/default-form-inputs.d.ts +1 -1
  8. package/esm2022/core/common/generated-types.mjs +1 -1
  9. package/esm2022/core/common/introspection-result.mjs +1 -1
  10. package/esm2022/core/common/version.mjs +2 -2
  11. package/esm2022/core/data/utils/is-entity-create-or-update-mutation.mjs +1 -1
  12. package/esm2022/core/data/utils/remove-readonly-custom-fields.mjs +1 -1
  13. package/esm2022/core/extension/components/angular-route.component.mjs +10 -10
  14. package/esm2022/core/extension/components/route.component.mjs +32 -11
  15. package/esm2022/core/extension/register-data-table-component.mjs +1 -1
  16. package/esm2022/core/extension/register-route-component.mjs +4 -2
  17. package/esm2022/core/shared/components/timeline-entry/timeline-entry.component.mjs +1 -1
  18. package/esm2022/core/shared/providers/routing/can-deactivate-detail-guard.mjs +1 -1
  19. package/esm2022/core/shared/shared.module.mjs +1 -1
  20. package/esm2022/customer/customer.routes.mjs +1 -1
  21. package/esm2022/react/components/react-route.component.mjs +2 -2
  22. package/esm2022/react/react-components/RichTextEditor.mjs +1 -1
  23. package/esm2022/react/react-hooks/use-query.mjs +22 -8
  24. package/fesm2022/vendure-admin-ui-core.mjs +36 -16
  25. package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
  26. package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
  27. package/fesm2022/vendure-admin-ui-react.mjs +22 -8
  28. package/fesm2022/vendure-admin-ui-react.mjs.map +1 -1
  29. package/package.json +14 -14
  30. package/react/react-hooks/use-query.d.ts +9 -5
@@ -7,7 +7,7 @@ export declare class ProductVariantListComponent extends TypedBaseListComponent<
7
7
  dataTableId: DataTableLocationId | undefined;
8
8
  readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
9
9
  readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<ProductVariantFilterParameter>;
10
- readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductVariantSortParameter, ["name" | "price" | "sku" | "id" | "createdAt" | "updatedAt" | "priceWithTax"]>;
10
+ readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductVariantSortParameter, ["name" | "id" | "createdAt" | "updatedAt" | "price" | "priceWithTax" | "sku"]>;
11
11
  constructor();
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductVariantListComponent, never>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductVariantListComponent, "vdr-product-variant-list", never, { "productId": { "alias": "productId"; "required": false; }; "hideLanguageSelect": { "alias": "hideLanguageSelect"; "required": false; }; "dataTableId": { "alias": "dataTableId"; "required": false; }; }, {}, never, never, false, never>;
@@ -2676,7 +2676,12 @@ export type Mutation = {
2676
2676
  duplicateEntity: DuplicateEntityResult;
2677
2677
  flushBufferedJobs: Success;
2678
2678
  importProducts?: Maybe<ImportInfo>;
2679
- /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
2679
+ /**
2680
+ * Authenticates the user using the native authentication strategy. This mutation is an alias for authenticate({ native: { ... }})
2681
+ *
2682
+ * The `rememberMe` option applies when using cookie-based sessions, and if `true` it will set the maxAge of the session cookie
2683
+ * to 1 year.
2684
+ */
2680
2685
  login: NativeAuthenticationResult;
2681
2686
  logout: Success;
2682
2687
  /**
@@ -1 +1 @@
1
- export declare const ADMIN_UI_VERSION = "2.2.7";
1
+ export declare const ADMIN_UI_VERSION = "2.3.0";
@@ -2,12 +2,19 @@ import { InjectionToken } from '@angular/core';
2
2
  import { ActivatedRoute } from '@angular/router';
3
3
  import { Observable } from 'rxjs';
4
4
  import { AngularRouteComponentOptions } from '../types';
5
+ import { HeaderTab } from '../../shared/components/page-header-tabs/page-header-tabs.component';
6
+ import { PageService } from '../../providers/page/page.service';
7
+ import { PageLocationId } from '../../common/component-registry-types';
5
8
  import * as i0 from "@angular/core";
6
9
  export declare const ROUTE_COMPONENT_OPTIONS: InjectionToken<AngularRouteComponentOptions>;
7
10
  export declare class RouteComponent {
8
11
  private route;
12
+ private pageService;
9
13
  protected title$: Observable<string | undefined>;
10
- constructor(route: ActivatedRoute);
14
+ protected locationId: PageLocationId;
15
+ protected description: string;
16
+ headerTabs: HeaderTab[];
17
+ constructor(route: ActivatedRoute, pageService: PageService);
11
18
  static ɵfac: i0.ɵɵFactoryDeclaration<RouteComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<RouteComponent, "vdr-route-component", never, {}, {}, never, ["*"], true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<RouteComponent, "vdr-route-component", never, { "locationId": { "alias": "locationId"; "required": false; }; "description": { "alias": "description"; "required": false; }; }, {}, never, ["*"], true, never>;
13
20
  }
@@ -20,6 +20,8 @@ export type RegisterRouteComponentOptions<Component extends any | BaseDetailComp
20
20
  }>, Field extends keyof ResultOf<T>, R extends Field> = {
21
21
  component: Type<Component> | Component;
22
22
  title?: string;
23
+ locationId?: string;
24
+ description?: string;
23
25
  breadcrumb?: BreadcrumbValue;
24
26
  path?: string;
25
27
  query?: T;
@@ -84,6 +86,8 @@ export declare function registerRouteComponent<Component extends any | BaseDetai
84
86
  };
85
87
  data: {
86
88
  breadcrumb: BehaviorSubject<BreadcrumbValue> | ((data: any) => any);
89
+ locationId: string | undefined;
90
+ description: string | undefined;
87
91
  };
88
92
  component: typeof AngularRouteComponent;
89
93
  title?: string | Type<import("@angular/router").Resolve<string>> | ResolveFn<string> | undefined;
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
11
11
  */
12
12
  export declare class OrderStateLabelComponent {
13
13
  state: string;
14
- get chipColorType(): "" | "error" | "success" | "warning";
14
+ get chipColorType(): "" | "success" | "error" | "warning";
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderStateLabelComponent, never>;
16
16
  static ɵcmp: i0.ɵɵComponentDeclaration<OrderStateLabelComponent, "vdr-order-state-label", never, { "state": { "alias": "state"; "required": false; }; }, {}, never, ["*"], false, never>;
17
17
  }
@@ -12,7 +12,7 @@ import { RelationFormInputComponent } from './relation-form-input/relation-form-
12
12
  import { SelectFormInputComponent } from './select-form-input/select-form-input.component';
13
13
  import { TextFormInputComponent } from './text-form-input/text-form-input.component';
14
14
  import { TextareaFormInputComponent } from './textarea-form-input/textarea-form-input.component';
15
- export declare const defaultFormInputs: (typeof HtmlEditorFormInputComponent | typeof JsonEditorFormInputComponent | typeof CombinationModeFormInputComponent | typeof CurrencyFormInputComponent | typeof CustomerGroupFormInputComponent | typeof DateFormInputComponent | typeof PasswordFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof ProductSelectorFormInputComponent | typeof RelationFormInputComponent | typeof SelectFormInputComponent | typeof TextFormInputComponent | typeof TextareaFormInputComponent)[];
15
+ export declare const defaultFormInputs: (typeof HtmlEditorFormInputComponent | typeof SelectFormInputComponent | typeof RelationFormInputComponent | typeof ProductSelectorFormInputComponent | typeof CustomerGroupFormInputComponent | typeof CurrencyFormInputComponent | typeof JsonEditorFormInputComponent | typeof CombinationModeFormInputComponent | typeof DateFormInputComponent | typeof PasswordFormInputComponent | typeof ProductMultiSelectorFormInputComponent | typeof TextFormInputComponent | typeof TextareaFormInputComponent)[];
16
16
  /**
17
17
  * Registers the default form input components.
18
18
  */