@vendure/admin-ui 2.1.0-next.7 → 2.1.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 (77) hide show
  1. package/catalog/catalog.module.d.ts +0 -2
  2. package/catalog/components/product-detail/product-detail.component.d.ts +2 -3
  3. package/catalog/components/product-variant-list/product-variant-list.component.d.ts +3 -2
  4. package/core/common/base-list.component.d.ts +1 -0
  5. package/core/common/version.d.ts +1 -1
  6. package/core/components/app-shell/app-shell.component.d.ts +5 -3
  7. package/core/components/notification/notification.component.d.ts +10 -2
  8. package/core/extension/register-route-component.d.ts +2 -2
  9. package/core/providers/alerts/alerts.service.d.ts +6 -1
  10. package/core/providers/data-table/data-table-filter-collection.d.ts +2 -0
  11. package/core/providers/data-table/data-table-sort-collection.d.ts +2 -0
  12. package/core/providers/localization/localization.service.d.ts +21 -0
  13. package/core/public_api.d.ts +1 -0
  14. package/core/shared/components/data-table-2/data-table-custom-component.service.d.ts +1 -1
  15. package/core/shared/components/data-table-filter-presets/data-table-filter-presets.component.d.ts +3 -2
  16. package/core/shared/components/data-table-filters/data-table-filters.component.d.ts +1 -1
  17. package/core/shared/components/dropdown/dropdown-menu.component.d.ts +4 -1
  18. package/core/shared/components/extension-host/extension-host.component.d.ts +1 -1
  19. package/core/shared/components/modal-dialog/modal-dialog.component.d.ts +10 -2
  20. package/core/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.d.ts +1 -1
  21. package/core/shared/shared.module.d.ts +100 -101
  22. package/esm2022/catalog/catalog.module.mjs +2 -28
  23. package/esm2022/catalog/components/product-detail/product-detail.component.mjs +20 -17
  24. package/esm2022/catalog/components/product-variant-list/product-variant-list.component.mjs +5 -3
  25. package/esm2022/core/common/base-list.component.mjs +13 -4
  26. package/esm2022/core/common/version.mjs +2 -2
  27. package/esm2022/core/components/app-shell/app-shell.component.mjs +21 -21
  28. package/esm2022/core/components/notification/notification.component.mjs +18 -9
  29. package/esm2022/core/components/theme-switcher/theme-switcher.component.mjs +2 -2
  30. package/esm2022/core/core.module.mjs +3 -1
  31. package/esm2022/core/extension/register-route-component.mjs +1 -1
  32. package/esm2022/core/providers/alerts/alerts.service.mjs +22 -8
  33. package/esm2022/core/providers/data-table/data-table-filter-collection.mjs +19 -3
  34. package/esm2022/core/providers/data-table/data-table-sort-collection.mjs +8 -2
  35. package/esm2022/core/providers/localization/localization.service.mjs +31 -0
  36. package/esm2022/core/public_api.mjs +2 -1
  37. package/esm2022/core/shared/components/affixed-input/affixed-input.component.mjs +2 -2
  38. package/esm2022/core/shared/components/data-table-2/data-table-custom-component.service.mjs +1 -1
  39. package/esm2022/core/shared/components/data-table-filter-presets/data-table-filter-presets.component.mjs +7 -5
  40. package/esm2022/core/shared/components/data-table-filters/data-table-filters.component.mjs +5 -4
  41. package/esm2022/core/shared/components/dropdown/dropdown-menu.component.mjs +31 -23
  42. package/esm2022/core/shared/components/extension-host/extension-host.component.mjs +4 -3
  43. package/esm2022/core/shared/components/modal-dialog/modal-dialog.component.mjs +19 -10
  44. package/esm2022/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +3 -3
  45. package/esm2022/core/shared/dynamic-form-inputs/code-editor-form-input/base-code-editor-form-input.component.mjs +6 -1
  46. package/esm2022/core/shared/dynamic-form-inputs/customer-group-form-input/customer-group-form-input.component.mjs +5 -3
  47. package/esm2022/core/shared/shared.module.mjs +1 -5
  48. package/esm2022/order/components/order-data-table/order-data-table.component.mjs +3 -3
  49. package/esm2022/order/components/order-table/order-table.component.mjs +3 -3
  50. package/fesm2022/vendure-admin-ui-catalog.mjs +16 -37
  51. package/fesm2022/vendure-admin-ui-catalog.mjs.map +1 -1
  52. package/fesm2022/vendure-admin-ui-core.mjs +403 -307
  53. package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
  54. package/fesm2022/vendure-admin-ui-order.mjs +4 -4
  55. package/fesm2022/vendure-admin-ui-order.mjs.map +1 -1
  56. package/package.json +2 -2
  57. package/static/i18n-messages/ar.json +1 -1
  58. package/static/i18n-messages/cs.json +1 -1
  59. package/static/i18n-messages/de.json +1 -1
  60. package/static/i18n-messages/en.json +1 -1
  61. package/static/i18n-messages/es.json +1 -1
  62. package/static/i18n-messages/fa.json +29 -8
  63. package/static/i18n-messages/fr.json +1 -1
  64. package/static/i18n-messages/he.json +1 -1
  65. package/static/i18n-messages/hr.json +795 -0
  66. package/static/i18n-messages/it.json +31 -31
  67. package/static/i18n-messages/ne.json +795 -0
  68. package/static/i18n-messages/pl.json +1 -1
  69. package/static/i18n-messages/pt_BR.json +1 -1
  70. package/static/i18n-messages/pt_PT.json +1 -1
  71. package/static/i18n-messages/ru.json +1 -1
  72. package/static/i18n-messages/uk.json +1 -1
  73. package/static/i18n-messages/zh_Hans.json +1 -1
  74. package/static/i18n-messages/zh_Hant.json +1 -1
  75. package/static/styles/global/_utilities.scss +6 -6
  76. package/static/theme.min.css +1 -1
  77. package/static/vendure-ui-config.json +3 -1
@@ -34,8 +34,6 @@ import * as i31 from "./components/product-variant-quick-jump/product-variant-qu
34
34
  import * as i32 from "@vendure/admin-ui/core";
35
35
  import * as i33 from "@angular/router";
36
36
  export declare class CatalogModule {
37
- private bulkActionRegistryService;
38
- private pageService;
39
37
  constructor(bulkActionRegistryService: BulkActionRegistryService, pageService: PageService);
40
38
  static ɵfac: i0.ɵɵFactoryDeclaration<CatalogModule, never>;
41
39
  static ɵmod: i0.ɵɵNgModuleDeclaration<CatalogModule, [typeof i1.ProductListComponent, typeof i2.ProductDetailComponent, typeof i3.FacetListComponent, typeof i4.FacetDetailComponent, typeof i5.GenerateProductVariantsComponent, typeof i6.ApplyFacetDialogComponent, typeof i7.AssetListComponent, typeof i8.AssetsComponent, typeof i9.VariantPriceDetailComponent, typeof i10.CollectionListComponent, typeof i11.CollectionDetailComponent, typeof i12.CollectionTreeComponent, typeof i13.CollectionTreeNodeComponent, typeof i14.CollectionContentsComponent, typeof i15.ProductVariantsTableComponent, typeof i16.OptionValueInputComponent, typeof i17.UpdateProductOptionDialogComponent, typeof i18.ProductVariantsEditorComponent, typeof i19.AssignProductsToChannelDialogComponent, typeof i20.AssetDetailComponent, typeof i21.ConfirmVariantDeletionDialogComponent, typeof i22.ProductOptionsEditorComponent, typeof i23.BulkAddFacetValuesDialogComponent, typeof i24.CollectionDataTableComponent, typeof i25.CollectionBreadcrumbPipe, typeof i26.MoveCollectionsDialogComponent, typeof i27.ProductVariantListComponent, typeof i2.ProductDetailComponent, typeof i28.ProductVariantDetailComponent, typeof i29.CreateProductVariantDialogComponent, typeof i30.CreateProductOptionGroupDialogComponent, typeof i31.ProductVariantQuickJumpComponent], [typeof i32.SharedModule, typeof i33.RouterModule], [typeof i1.ProductListComponent, typeof i2.ProductDetailComponent, typeof i3.FacetListComponent, typeof i4.FacetDetailComponent, typeof i5.GenerateProductVariantsComponent, typeof i6.ApplyFacetDialogComponent, typeof i7.AssetListComponent, typeof i8.AssetsComponent, typeof i9.VariantPriceDetailComponent, typeof i10.CollectionListComponent, typeof i11.CollectionDetailComponent, typeof i12.CollectionTreeComponent, typeof i13.CollectionTreeNodeComponent, typeof i14.CollectionContentsComponent, typeof i15.ProductVariantsTableComponent, typeof i16.OptionValueInputComponent, typeof i17.UpdateProductOptionDialogComponent, typeof i18.ProductVariantsEditorComponent, typeof i19.AssignProductsToChannelDialogComponent, typeof i20.AssetDetailComponent, typeof i21.ConfirmVariantDeletionDialogComponent, typeof i22.ProductOptionsEditorComponent, typeof i23.BulkAddFacetValuesDialogComponent, typeof i24.CollectionDataTableComponent, typeof i25.CollectionBreadcrumbPipe, typeof i26.MoveCollectionsDialogComponent, typeof i27.ProductVariantListComponent, typeof i2.ProductDetailComponent, typeof i28.ProductVariantDetailComponent, typeof i29.CreateProductVariantDialogComponent, typeof i30.CreateProductOptionGroupDialogComponent, typeof i31.ProductVariantQuickJumpComponent]>;
@@ -1,7 +1,6 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormBuilder } from '@angular/forms';
3
- import { ActivatedRoute, Router } from '@angular/router';
4
- import { Asset, DataService, GetProductDetailDocument, GetProductWithVariantsQuery, LanguageCode, ModalService, NotificationService, Permission, ProductDetailFragment, ProductVariantFragment, ServerConfigService, TypedBaseDetailComponent, UpdateProductOptionInput } from '@vendure/admin-ui/core';
3
+ import { Asset, DataService, GetProductDetailDocument, GetProductWithVariantsQuery, LanguageCode, ModalService, NotificationService, Permission, ProductDetailFragment, ProductVariantFragment, TypedBaseDetailComponent, UpdateProductOptionInput } from '@vendure/admin-ui/core';
5
4
  import { Observable } from 'rxjs';
6
5
  import { ProductDetailService } from '../../providers/product-detail/product-detail.service';
7
6
  import { CreateProductVariantsConfig } from '../generate-product-variants/generate-product-variants.component';
@@ -35,7 +34,7 @@ export declare class ProductDetailComponent extends TypedBaseDetailComponent<typ
35
34
  facetValues$: Observable<ProductDetailFragment['facetValues']>;
36
35
  createVariantsConfig: CreateProductVariantsConfig;
37
36
  readonly updatePermissions: Permission[];
38
- constructor(route: ActivatedRoute, router: Router, serverConfigService: ServerConfigService, productDetailService: ProductDetailService, formBuilder: FormBuilder, modalService: ModalService, notificationService: NotificationService, dataService: DataService, changeDetector: ChangeDetectorRef);
37
+ constructor(productDetailService: ProductDetailService, formBuilder: FormBuilder, modalService: ModalService, notificationService: NotificationService, dataService: DataService, changeDetector: ChangeDetectorRef);
39
38
  ngOnInit(): void;
40
39
  ngOnDestroy(): void;
41
40
  isDefaultChannel(channelCode: string): boolean;
@@ -1,13 +1,14 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { ProductVariantListQueryDocument, TypedBaseListComponent } from '@vendure/admin-ui/core';
2
+ import { DataTableLocationId, ProductVariantListQueryDocument, TypedBaseListComponent } from '@vendure/admin-ui/core';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ProductVariantListComponent extends TypedBaseListComponent<typeof ProductVariantListQueryDocument, 'productVariants'> implements OnInit {
5
5
  productId?: string;
6
6
  hideLanguageSelect: boolean;
7
+ dataTableId: DataTableLocationId | undefined;
7
8
  readonly customFields: import("@vendure/admin-ui/core").CustomFieldConfig[];
8
9
  readonly filters: import("@vendure/admin-ui/core").DataTableFilterCollection<import("@vendure/admin-ui/core").ProductVariantFilterParameter>;
9
10
  readonly sorts: import("@vendure/admin-ui/core").DataTableSortCollection<import("@vendure/admin-ui/core").ProductVariantSortParameter, ["name" | "price" | "sku" | "id" | "createdAt" | "updatedAt" | "priceWithTax"]>;
10
11
  constructor();
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductVariantListComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<ProductVariantListComponent, "vdr-product-variant-list", never, { "productId": { "alias": "productId"; "required": false; }; "hideLanguageSelect": { "alias": "hideLanguageSelect"; "required": false; }; }, {}, never, never, false, never>;
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>;
13
14
  }
@@ -115,6 +115,7 @@ export declare class TypedBaseListComponent<T extends TypedDocumentNode<any, Var
115
115
  protected router: Router;
116
116
  protected serverConfigService: ServerConfigService;
117
117
  private refreshStreams;
118
+ private collections;
118
119
  constructor();
119
120
  protected configure(config: {
120
121
  document: T;
@@ -1 +1 @@
1
- export declare const ADMIN_UI_VERSION = "2.1.0-next.7";
1
+ export declare const ADMIN_UI_VERSION = "2.1.1";
@@ -8,6 +8,7 @@ import { BreadcrumbService } from '../../providers/breadcrumb/breadcrumb.service
8
8
  import { I18nService } from '../../providers/i18n/i18n.service';
9
9
  import { LocalStorageService } from '../../providers/local-storage/local-storage.service';
10
10
  import { ModalService } from '../../providers/modal/modal.service';
11
+ import { LocalizationDirectionType, LocalizationLanguageCodeType, LocalizationService } from '../../providers/localization/localization.service';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare class AppShellComponent implements OnInit {
13
14
  private authService;
@@ -17,16 +18,17 @@ export declare class AppShellComponent implements OnInit {
17
18
  private modalService;
18
19
  private localStorageService;
19
20
  private breadcrumbService;
21
+ private localizationService;
20
22
  version: string;
21
23
  userName$: Observable<string>;
22
- uiLanguageAndLocale$: Observable<[LanguageCode, string | undefined]>;
23
- direction$: Observable<'ltr' | 'rtl'>;
24
+ uiLanguageAndLocale$: LocalizationLanguageCodeType;
25
+ direction$: LocalizationDirectionType;
24
26
  availableLanguages: LanguageCode[];
25
27
  hideVendureBranding: boolean | undefined;
26
28
  pageTitle$: Observable<string>;
27
29
  mainNavExpanded$: Observable<boolean>;
28
30
  devMode: boolean;
29
- constructor(authService: AuthService, dataService: DataService, router: Router, i18nService: I18nService, modalService: ModalService, localStorageService: LocalStorageService, breadcrumbService: BreadcrumbService);
31
+ constructor(authService: AuthService, dataService: DataService, router: Router, i18nService: I18nService, modalService: ModalService, localStorageService: LocalStorageService, breadcrumbService: BreadcrumbService, localizationService: LocalizationService);
30
32
  ngOnInit(): void;
31
33
  selectUiLanguage(): void;
32
34
  expandNav(): void;
@@ -1,7 +1,10 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { ElementRef, OnInit } from '@angular/core';
2
2
  import { NotificationType } from '../../providers/notification/notification.service';
3
+ import { LocalizationDirectionType, LocalizationService } from '../../providers/localization/localization.service';
3
4
  import * as i0 from "@angular/core";
4
- export declare class NotificationComponent {
5
+ export declare class NotificationComponent implements OnInit {
6
+ private localizationService;
7
+ direction$: LocalizationDirectionType;
5
8
  wrapper: ElementRef;
6
9
  offsetTop: number;
7
10
  message: string;
@@ -11,6 +14,11 @@ export declare class NotificationComponent {
11
14
  type: NotificationType;
12
15
  isVisible: boolean;
13
16
  private onClickFn;
17
+ /**
18
+ *
19
+ */
20
+ constructor(localizationService: LocalizationService);
21
+ ngOnInit(): void;
14
22
  registerOnClickFn(fn: () => void): void;
15
23
  onClick(): void;
16
24
  /**
@@ -24,10 +24,10 @@ export type RegisterRouteComponentOptions<Component extends any | BaseDetailComp
24
24
  path?: string;
25
25
  query?: T;
26
26
  getBreadcrumbs?: (entity: Exclude<ResultOf<T>[R], 'Query'>) => BreadcrumbValue;
27
- entityKey?: Component extends BaseDetailComponent<Entity> ? R : undefined;
27
+ entityKey?: Component extends BaseDetailComponent<any> ? R : undefined;
28
28
  variables?: T extends TypedDocumentNode<any, infer V> ? Omit<V, 'id'> : never;
29
29
  routeConfig?: Route;
30
- } & (Component extends BaseDetailComponent<Entity> ? {
30
+ } & (Component extends BaseDetailComponent<any> ? {
31
31
  entityKey: R;
32
32
  } : unknown);
33
33
  /**
@@ -1,4 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
+ import { Permission } from '../../common/generated-types';
3
+ import { DataService } from '../../data/providers/data.service';
2
4
  import * as i0 from "@angular/core";
3
5
  export interface AlertConfig<T = any> {
4
6
  id: string;
@@ -12,6 +14,7 @@ export interface AlertConfig<T = any> {
12
14
  [key: string]: string | number;
13
15
  };
14
16
  };
17
+ requiredPermissions?: Permission[];
15
18
  }
16
19
  export interface ActiveAlert {
17
20
  id: string;
@@ -34,11 +37,13 @@ export declare class Alert<T> {
34
37
  runCheck(): void;
35
38
  }
36
39
  export declare class AlertsService {
40
+ private dataService;
37
41
  activeAlerts$: Observable<ActiveAlert[]>;
38
42
  private alertsMap;
39
43
  private configUpdated;
40
- constructor();
44
+ constructor(dataService: DataService);
41
45
  configureAlert<T>(config: AlertConfig<T>): void;
46
+ hasSufficientPermissions(permissions?: Permission[]): Observable<boolean>;
42
47
  refresh(id?: string): void;
43
48
  static ɵfac: i0.ɵɵFactoryDeclaration<AlertsService, never>;
44
49
  static ɵprov: i0.ɵɵInjectableDeclaration<AlertsService>;
@@ -20,9 +20,11 @@ export declare class DataTableFilterCollection<FilterInput extends Record<string
20
20
  #private;
21
21
  private router;
22
22
  valueChanges: import("rxjs").Observable<FilterWithValue<DataTableFilterType>[]>;
23
+ private readonly destroy$;
23
24
  constructor(router: Router);
24
25
  get length(): number;
25
26
  get activeFilters(): FilterWithValue[];
27
+ destroy(): void;
26
28
  addFilter<FilterType extends DataTableFilterType>(config: DataTableFilterOptions<FilterInput, FilterType>): DataTableFilterCollection<FilterInput>;
27
29
  addFilters<FilterType extends DataTableFilterType>(configs: Array<DataTableFilterOptions<FilterInput, FilterType>>): DataTableFilterCollection<FilterInput>;
28
30
  addIdFilter(): FilterInput extends {
@@ -8,8 +8,10 @@ export declare class DataTableSortCollection<SortInput extends Record<string, 'A
8
8
  name: string;
9
9
  sortOrder: DataTableSortOrder | undefined;
10
10
  }[]>;
11
+ private readonly destroy$;
11
12
  constructor(router: Router);
12
13
  get length(): number;
14
+ destroy(): void;
13
15
  addSort<Name extends keyof SortInput>(config: DataTableSortOptions<SortInput, Name>): DataTableSortCollection<SortInput, [...Names, Name]>;
14
16
  addSorts<Name extends keyof SortInput>(configs: Array<DataTableSortOptions<SortInput, Name>>): DataTableSortCollection<SortInput, [...Names, Name]>;
15
17
  addCustomFieldSorts(customFields: CustomFieldConfig[]): this;
@@ -0,0 +1,21 @@
1
+ import { Observable } from 'rxjs';
2
+ import { DataService } from '../../data/providers/data.service';
3
+ import { I18nService } from '../../providers/i18n/i18n.service';
4
+ import { LanguageCode } from '../../common/generated-types';
5
+ import * as i0 from "@angular/core";
6
+ export type LocalizationDirectionType = Observable<'ltr' | 'rtl'>;
7
+ export type LocalizationLanguageCodeType = Observable<[LanguageCode, string | undefined]>;
8
+ /**
9
+ * @description
10
+ * Provides localization helper functionality.
11
+ *
12
+ */
13
+ export declare class LocalizationService {
14
+ private i18nService;
15
+ private dataService;
16
+ uiLanguageAndLocale$: LocalizationLanguageCodeType;
17
+ direction$: LocalizationDirectionType;
18
+ constructor(i18nService: I18nService, dataService: DataService);
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, never>;
20
+ static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
21
+ }
@@ -112,6 +112,7 @@ export * from './providers/i18n/custom-message-format-compiler';
112
112
  export * from './providers/i18n/i18n.service';
113
113
  export * from './providers/job-queue/job-queue.service';
114
114
  export * from './providers/local-storage/local-storage.service';
115
+ export * from './providers/localization/localization.service';
115
116
  export * from './providers/modal/modal.service';
116
117
  export * from './providers/modal/modal.types';
117
118
  export * from './providers/nav-builder/nav-builder-types';
@@ -3,7 +3,7 @@ import { PageLocationId } from '../../../common/component-registry-types';
3
3
  import * as i0 from "@angular/core";
4
4
  export type DataTableLocationId = {
5
5
  [location in PageLocationId]: location extends `${string}-list` ? location : never;
6
- }[PageLocationId] | 'collection-contents' | 'edit-options-list' | 'manage-product-variant-list' | 'customer-order-list' | string;
6
+ }[PageLocationId] | 'collection-contents' | 'edit-options-list' | 'manage-product-variant-list' | 'customer-order-list' | 'product-detail-variants-list' | string;
7
7
  export type DataTableColumnId = 'id' | 'created-at' | 'updated-at' | 'name' | 'code' | 'description' | 'slug' | 'enabled' | 'sku' | 'price' | 'price-with-tax' | 'status' | 'state' | 'image' | 'quantity' | 'total' | 'stock-on-hand' | string;
8
8
  /**
9
9
  * @description
@@ -1,5 +1,5 @@
1
1
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
- import { OnDestroy, OnInit } from '@angular/core';
2
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
3
3
  import { ActivatedRoute } from '@angular/router';
4
4
  import { Observable } from 'rxjs';
5
5
  import { DataTableFilterCollection } from '../../../providers/data-table/data-table-filter-collection';
@@ -10,6 +10,7 @@ export declare class DataTableFilterPresetsComponent implements OnInit, OnDestro
10
10
  private route;
11
11
  private filterPresetService;
12
12
  private modalService;
13
+ private changeDetectorRef;
13
14
  dataTableId: string;
14
15
  filters: DataTableFilterCollection;
15
16
  serializedActiveFilters: string;
@@ -18,7 +19,7 @@ export declare class DataTableFilterPresetsComponent implements OnInit, OnDestro
18
19
  value: string;
19
20
  }>>;
20
21
  private destroy$;
21
- constructor(route: ActivatedRoute, filterPresetService: FilterPresetService, modalService: ModalService);
22
+ constructor(route: ActivatedRoute, filterPresetService: FilterPresetService, modalService: ModalService, changeDetectorRef: ChangeDetectorRef);
22
23
  ngOnInit(): void;
23
24
  ngOnDestroy(): void;
24
25
  deleteFilterPreset(name: string): void;
@@ -23,7 +23,7 @@ export declare class DataTableFiltersComponent implements AfterViewInit {
23
23
  constructor(i18nService: I18nService, changeDetectorRef: ChangeDetectorRef);
24
24
  ngAfterViewInit(): void;
25
25
  selectFilter(filter: DataTableFilter, value?: any): void;
26
- activate(): void;
26
+ activate(event: Event): void;
27
27
  deactivate(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<DataTableFiltersComponent, never>;
29
29
  static ɵcmp: i0.ɵɵComponentDeclaration<DataTableFiltersComponent, "vdr-data-table-filters", never, { "filters": { "alias": "filters"; "required": false; }; "filterWithValue": { "alias": "filterWithValue"; "required": false; }; }, {}, never, never, false, never>;
@@ -1,5 +1,6 @@
1
1
  import { Overlay } from '@angular/cdk/overlay';
2
2
  import { AfterViewInit, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
3
+ import { LocalizationDirectionType, LocalizationService } from '../../../providers/localization/localization.service';
3
4
  import { DropdownComponent } from './dropdown.component';
4
5
  import * as i0 from "@angular/core";
5
6
  export type DropdownPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
@@ -16,6 +17,8 @@ export declare class DropdownMenuComponent implements AfterViewInit, OnInit, OnD
16
17
  private overlay;
17
18
  private viewContainerRef;
18
19
  private dropdown;
20
+ private localizationService;
21
+ direction$: LocalizationDirectionType;
19
22
  private position;
20
23
  customClasses: string;
21
24
  private menuTemplate;
@@ -24,7 +27,7 @@ export declare class DropdownMenuComponent implements AfterViewInit, OnInit, OnD
24
27
  private backdropClickSub;
25
28
  onEscapeKeydown(event: KeyboardEvent): void;
26
29
  onArrowKey(event: KeyboardEvent): void;
27
- constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, dropdown: DropdownComponent);
30
+ constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, dropdown: DropdownComponent, localizationService: LocalizationService);
28
31
  ngOnInit(): void;
29
32
  ngAfterViewInit(): void;
30
33
  ngOnDestroy(): void;
@@ -24,5 +24,5 @@ export declare class ExtensionHostComponent implements OnInit, AfterViewInit, On
24
24
  launchExtensionWindow(): void;
25
25
  private isExtensionHostConfig;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<ExtensionHostComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<ExtensionHostComponent, "vdr-extension-host", never, {}, {}, never, never, false, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExtensionHostComponent, "vdr-extension-host", never, {}, {}, never, never, true, never>;
28
28
  }
@@ -1,17 +1,25 @@
1
- import { TemplateRef, Type } from '@angular/core';
1
+ import { OnInit, TemplateRef, Type } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
+ import { LocalizationDirectionType, LocalizationService } from '../../../providers/localization/localization.service';
3
4
  import { Dialog, ModalOptions } from '../../../providers/modal/modal.types';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
6
7
  * This component should only be instantiated dynamically by the ModalService. It should not be used
7
8
  * directly in templates. See {@link ModalService.fromComponent} method for more detail.
8
9
  */
9
- export declare class ModalDialogComponent<T extends Dialog<any>> {
10
+ export declare class ModalDialogComponent<T extends Dialog<any>> implements OnInit {
11
+ private localizationService;
12
+ direction$: LocalizationDirectionType;
10
13
  childComponentType: Type<T>;
11
14
  closeModal: (result?: any) => void;
12
15
  titleTemplateRef$: Subject<TemplateRef<any>>;
13
16
  buttonsTemplateRef$: Subject<TemplateRef<any>>;
14
17
  options?: ModalOptions<T>;
18
+ /**
19
+ *
20
+ */
21
+ constructor(localizationService: LocalizationService);
22
+ ngOnInit(): void;
15
23
  /**
16
24
  * This callback is invoked when the childComponentType is instantiated in the
17
25
  * template by the {@link DialogComponentOutletComponent}.
@@ -27,7 +27,7 @@ export declare class CustomerGroupFormInputComponent implements FormInputCompone
27
27
  constructor(dataService: DataService);
28
28
  ngOnInit(): void;
29
29
  selectGroup(group: ItemOf<GetCustomerGroupsQuery, 'customerGroups'>): void;
30
- compareWith(o1: ItemOf<GetCustomerGroupsQuery, 'customerGroups'>, o2: ItemOf<GetCustomerGroupsQuery, 'customerGroups'>): boolean;
30
+ compareWith<T extends ItemOf<GetCustomerGroupsQuery, 'customerGroups'> | string>(o1: T, o2: T): boolean;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomerGroupFormInputComponent, never>;
32
32
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomerGroupFormInputComponent, "vdr-customer-group-form-input", never, { "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, never, false, never>;
33
33
  }