@vendure/admin-ui 2.1.6 → 2.2.0-next.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.
- package/catalog/catalog.module.d.ts +4 -3
- package/catalog/components/create-facet-value-dialog/create-facet-value-dialog.component.d.ts +19 -0
- package/catalog/components/facet-detail/facet-detail.component.d.ts +9 -12
- package/catalog/components/product-variant-list/product-variant-list.component.d.ts +2 -2
- package/catalog/public_api.d.ts +1 -0
- package/core/common/generated-types.d.ts +104 -43
- package/core/common/utilities/interpolate-description.d.ts +1 -1
- package/core/common/version.d.ts +1 -1
- package/core/components/app-shell/app-shell.component.d.ts +1 -0
- package/core/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.d.ts +9 -3
- package/core/core.module.d.ts +1 -1
- package/core/providers/currency/currency.service.d.ts +10 -0
- package/core/providers/i18n/i18n.service.d.ts +6 -0
- package/core/public_api.d.ts +1 -0
- package/core/shared/components/chart/chart.component.d.ts +3 -0
- package/core/shared/components/chart/tooltip-plugin.d.ts +16 -1
- package/core/shared/components/configurable-input/configurable-input.component.d.ts +3 -0
- package/core/shared/components/currency-input/currency-input.component.d.ts +6 -3
- package/core/shared/pipes/locale-currency.pipe.d.ts +5 -2
- package/esm2022/catalog/catalog.module.mjs +17 -3
- package/esm2022/catalog/components/create-facet-value-dialog/create-facet-value-dialog.component.mjs +44 -0
- package/esm2022/catalog/components/facet-detail/facet-detail.component.mjs +85 -120
- package/esm2022/catalog/components/facet-list/facet-list.component.mjs +5 -2
- package/esm2022/catalog/components/product-list/product-list.component.mjs +26 -14
- package/esm2022/catalog/components/product-variant-list/product-variant-list.component.mjs +36 -15
- package/esm2022/catalog/components/variant-price-detail/variant-price-detail.component.mjs +1 -1
- package/esm2022/catalog/public_api.mjs +2 -1
- package/esm2022/core/common/generated-types.mjs +5 -5
- package/esm2022/core/common/utilities/interpolate-description.mjs +3 -3
- package/esm2022/core/common/version.mjs +2 -2
- package/esm2022/core/components/app-shell/app-shell.component.mjs +15 -10
- package/esm2022/core/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.mjs +42 -273
- package/esm2022/core/core.module.mjs +13 -5
- package/esm2022/core/data/definitions/facet-definitions.mjs +2 -2
- package/esm2022/core/data/definitions/settings-definitions.mjs +2 -1
- package/esm2022/core/providers/currency/currency.service.mjs +21 -0
- package/esm2022/core/providers/i18n/i18n.service.mjs +11 -1
- package/esm2022/core/providers/localization/localization.service.mjs +4 -4
- package/esm2022/core/public_api.mjs +2 -1
- package/esm2022/core/shared/components/chart/chart.component.mjs +12 -5
- package/esm2022/core/shared/components/chart/tooltip-plugin.mjs +6 -14
- package/esm2022/core/shared/components/configurable-input/configurable-input.component.mjs +15 -13
- package/esm2022/core/shared/components/currency-input/currency-input.component.mjs +17 -14
- package/esm2022/core/shared/pipes/locale-currency.pipe.mjs +11 -7
- package/esm2022/dashboard/widgets/order-summary-widget/order-summary-widget.component.mjs +4 -4
- package/esm2022/react/react-hooks/use-query.mjs +61 -1
- package/fesm2022/vendure-admin-ui-catalog.mjs +197 -148
- package/fesm2022/vendure-admin-ui-catalog.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-core.mjs +130 -317
- package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-dashboard.mjs +3 -3
- package/fesm2022/vendure-admin-ui-dashboard.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-react.mjs +61 -1
- package/fesm2022/vendure-admin-ui-react.mjs.map +1 -1
- package/package.json +14 -14
- package/react/react-hooks/use-query.d.ts +59 -0
- package/settings/components/administrator-list/administrator-list.component.d.ts +2 -0
- package/settings/components/stock-location-list/stock-location-list.component.d.ts +1 -1
- package/static/i18n-messages/ar.json +1 -2
- package/static/i18n-messages/cs.json +1 -2
- package/static/i18n-messages/de.json +1 -2
- package/static/i18n-messages/en.json +1 -2
- package/static/i18n-messages/es.json +1 -2
- package/static/i18n-messages/fa.json +3 -4
- package/static/i18n-messages/fr.json +1 -2
- package/static/i18n-messages/he.json +1 -2
- package/static/i18n-messages/hr.json +1 -2
- package/static/i18n-messages/it.json +2 -3
- package/static/i18n-messages/nb.json +795 -0
- package/static/i18n-messages/ne.json +2 -3
- package/static/i18n-messages/pl.json +1 -2
- package/static/i18n-messages/pt_BR.json +1 -1
- package/static/i18n-messages/pt_PT.json +1 -2
- package/static/i18n-messages/ru.json +1 -2
- package/static/i18n-messages/uk.json +1 -2
- package/static/i18n-messages/zh_Hans.json +1 -2
- package/static/i18n-messages/zh_Hant.json +1 -2
- package/static/vendure-ui-config.json +262 -6
|
@@ -130,6 +130,8 @@ export type Administrator = Node & {
|
|
|
130
130
|
user: User;
|
|
131
131
|
};
|
|
132
132
|
export type AdministratorFilterParameter = {
|
|
133
|
+
_and?: InputMaybe<Array<AdministratorFilterParameter>>;
|
|
134
|
+
_or?: InputMaybe<Array<AdministratorFilterParameter>>;
|
|
133
135
|
createdAt?: InputMaybe<DateOperators>;
|
|
134
136
|
emailAddress?: InputMaybe<StringOperators>;
|
|
135
137
|
firstName?: InputMaybe<StringOperators>;
|
|
@@ -145,7 +147,7 @@ export type AdministratorList = PaginatedList & {
|
|
|
145
147
|
export type AdministratorListOptions = {
|
|
146
148
|
/** Allows the results to be filtered */
|
|
147
149
|
filter?: InputMaybe<AdministratorFilterParameter>;
|
|
148
|
-
/** Specifies whether multiple "filter"
|
|
150
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
149
151
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
150
152
|
/** Skips the first n results, for use in pagination */
|
|
151
153
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -206,6 +208,8 @@ export type Asset = Node & {
|
|
|
206
208
|
width: Scalars['Int']['output'];
|
|
207
209
|
};
|
|
208
210
|
export type AssetFilterParameter = {
|
|
211
|
+
_and?: InputMaybe<Array<AssetFilterParameter>>;
|
|
212
|
+
_or?: InputMaybe<Array<AssetFilterParameter>>;
|
|
209
213
|
createdAt?: InputMaybe<DateOperators>;
|
|
210
214
|
fileSize?: InputMaybe<NumberOperators>;
|
|
211
215
|
height?: InputMaybe<NumberOperators>;
|
|
@@ -226,7 +230,7 @@ export type AssetList = PaginatedList & {
|
|
|
226
230
|
export type AssetListOptions = {
|
|
227
231
|
/** Allows the results to be filtered */
|
|
228
232
|
filter?: InputMaybe<AssetFilterParameter>;
|
|
229
|
-
/** Specifies whether multiple "filter"
|
|
233
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
230
234
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
231
235
|
/** Skips the first n results, for use in pagination */
|
|
232
236
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -394,6 +398,8 @@ export type ChannelDefaultLanguageError = ErrorResult & {
|
|
|
394
398
|
message: Scalars['String']['output'];
|
|
395
399
|
};
|
|
396
400
|
export type ChannelFilterParameter = {
|
|
401
|
+
_and?: InputMaybe<Array<ChannelFilterParameter>>;
|
|
402
|
+
_or?: InputMaybe<Array<ChannelFilterParameter>>;
|
|
397
403
|
code?: InputMaybe<StringOperators>;
|
|
398
404
|
createdAt?: InputMaybe<DateOperators>;
|
|
399
405
|
currencyCode?: InputMaybe<StringOperators>;
|
|
@@ -414,7 +420,7 @@ export type ChannelList = PaginatedList & {
|
|
|
414
420
|
export type ChannelListOptions = {
|
|
415
421
|
/** Allows the results to be filtered */
|
|
416
422
|
filter?: InputMaybe<ChannelFilterParameter>;
|
|
417
|
-
/** Specifies whether multiple "filter"
|
|
423
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
418
424
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
419
425
|
/** Skips the first n results, for use in pagination */
|
|
420
426
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -464,6 +470,8 @@ export type CollectionBreadcrumb = {
|
|
|
464
470
|
slug: Scalars['String']['output'];
|
|
465
471
|
};
|
|
466
472
|
export type CollectionFilterParameter = {
|
|
473
|
+
_and?: InputMaybe<Array<CollectionFilterParameter>>;
|
|
474
|
+
_or?: InputMaybe<Array<CollectionFilterParameter>>;
|
|
467
475
|
createdAt?: InputMaybe<DateOperators>;
|
|
468
476
|
description?: InputMaybe<StringOperators>;
|
|
469
477
|
id?: InputMaybe<IdOperators>;
|
|
@@ -484,7 +492,7 @@ export type CollectionList = PaginatedList & {
|
|
|
484
492
|
export type CollectionListOptions = {
|
|
485
493
|
/** Allows the results to be filtered */
|
|
486
494
|
filter?: InputMaybe<CollectionFilterParameter>;
|
|
487
|
-
/** Specifies whether multiple "filter"
|
|
495
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
488
496
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
489
497
|
/** Skips the first n results, for use in pagination */
|
|
490
498
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -584,6 +592,8 @@ export type Country = Node & Region & {
|
|
|
584
592
|
updatedAt: Scalars['DateTime']['output'];
|
|
585
593
|
};
|
|
586
594
|
export type CountryFilterParameter = {
|
|
595
|
+
_and?: InputMaybe<Array<CountryFilterParameter>>;
|
|
596
|
+
_or?: InputMaybe<Array<CountryFilterParameter>>;
|
|
587
597
|
code?: InputMaybe<StringOperators>;
|
|
588
598
|
createdAt?: InputMaybe<DateOperators>;
|
|
589
599
|
enabled?: InputMaybe<BooleanOperators>;
|
|
@@ -602,7 +612,7 @@ export type CountryList = PaginatedList & {
|
|
|
602
612
|
export type CountryListOptions = {
|
|
603
613
|
/** Allows the results to be filtered */
|
|
604
614
|
filter?: InputMaybe<CountryFilterParameter>;
|
|
605
|
-
/** Specifies whether multiple "filter"
|
|
615
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
606
616
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
607
617
|
/** Skips the first n results, for use in pagination */
|
|
608
618
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1280,6 +1290,8 @@ export type CustomerOrdersArgs = {
|
|
|
1280
1290
|
options?: InputMaybe<OrderListOptions>;
|
|
1281
1291
|
};
|
|
1282
1292
|
export type CustomerFilterParameter = {
|
|
1293
|
+
_and?: InputMaybe<Array<CustomerFilterParameter>>;
|
|
1294
|
+
_or?: InputMaybe<Array<CustomerFilterParameter>>;
|
|
1283
1295
|
createdAt?: InputMaybe<DateOperators>;
|
|
1284
1296
|
emailAddress?: InputMaybe<StringOperators>;
|
|
1285
1297
|
firstName?: InputMaybe<StringOperators>;
|
|
@@ -1303,6 +1315,8 @@ export type CustomerGroupCustomersArgs = {
|
|
|
1303
1315
|
options?: InputMaybe<CustomerListOptions>;
|
|
1304
1316
|
};
|
|
1305
1317
|
export type CustomerGroupFilterParameter = {
|
|
1318
|
+
_and?: InputMaybe<Array<CustomerGroupFilterParameter>>;
|
|
1319
|
+
_or?: InputMaybe<Array<CustomerGroupFilterParameter>>;
|
|
1306
1320
|
createdAt?: InputMaybe<DateOperators>;
|
|
1307
1321
|
id?: InputMaybe<IdOperators>;
|
|
1308
1322
|
name?: InputMaybe<StringOperators>;
|
|
@@ -1316,7 +1330,7 @@ export type CustomerGroupList = PaginatedList & {
|
|
|
1316
1330
|
export type CustomerGroupListOptions = {
|
|
1317
1331
|
/** Allows the results to be filtered */
|
|
1318
1332
|
filter?: InputMaybe<CustomerGroupFilterParameter>;
|
|
1319
|
-
/** Specifies whether multiple "filter"
|
|
1333
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
1320
1334
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
1321
1335
|
/** Skips the first n results, for use in pagination */
|
|
1322
1336
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1339,7 +1353,7 @@ export type CustomerList = PaginatedList & {
|
|
|
1339
1353
|
export type CustomerListOptions = {
|
|
1340
1354
|
/** Allows the results to be filtered */
|
|
1341
1355
|
filter?: InputMaybe<CustomerFilterParameter>;
|
|
1342
|
-
/** Specifies whether multiple "filter"
|
|
1356
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
1343
1357
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
1344
1358
|
/** Skips the first n results, for use in pagination */
|
|
1345
1359
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1506,6 +1520,8 @@ export type FacetValueListArgs = {
|
|
|
1506
1520
|
options?: InputMaybe<FacetValueListOptions>;
|
|
1507
1521
|
};
|
|
1508
1522
|
export type FacetFilterParameter = {
|
|
1523
|
+
_and?: InputMaybe<Array<FacetFilterParameter>>;
|
|
1524
|
+
_or?: InputMaybe<Array<FacetFilterParameter>>;
|
|
1509
1525
|
code?: InputMaybe<StringOperators>;
|
|
1510
1526
|
createdAt?: InputMaybe<DateOperators>;
|
|
1511
1527
|
id?: InputMaybe<IdOperators>;
|
|
@@ -1530,7 +1546,7 @@ export type FacetList = PaginatedList & {
|
|
|
1530
1546
|
export type FacetListOptions = {
|
|
1531
1547
|
/** Allows the results to be filtered */
|
|
1532
1548
|
filter?: InputMaybe<FacetFilterParameter>;
|
|
1533
|
-
/** Specifies whether multiple "filter"
|
|
1549
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
1534
1550
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
1535
1551
|
/** Skips the first n results, for use in pagination */
|
|
1536
1552
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1586,6 +1602,8 @@ export type FacetValueFilterInput = {
|
|
|
1586
1602
|
or?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
1587
1603
|
};
|
|
1588
1604
|
export type FacetValueFilterParameter = {
|
|
1605
|
+
_and?: InputMaybe<Array<FacetValueFilterParameter>>;
|
|
1606
|
+
_or?: InputMaybe<Array<FacetValueFilterParameter>>;
|
|
1589
1607
|
code?: InputMaybe<StringOperators>;
|
|
1590
1608
|
createdAt?: InputMaybe<DateOperators>;
|
|
1591
1609
|
facetId?: InputMaybe<IdOperators>;
|
|
@@ -1602,7 +1620,7 @@ export type FacetValueList = PaginatedList & {
|
|
|
1602
1620
|
export type FacetValueListOptions = {
|
|
1603
1621
|
/** Allows the results to be filtered */
|
|
1604
1622
|
filter?: InputMaybe<FacetValueFilterParameter>;
|
|
1605
|
-
/** Specifies whether multiple "filter"
|
|
1623
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
1606
1624
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
1607
1625
|
/** Skips the first n results, for use in pagination */
|
|
1608
1626
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1726,6 +1744,8 @@ export type HistoryEntry = Node & {
|
|
|
1726
1744
|
updatedAt: Scalars['DateTime']['output'];
|
|
1727
1745
|
};
|
|
1728
1746
|
export type HistoryEntryFilterParameter = {
|
|
1747
|
+
_and?: InputMaybe<Array<HistoryEntryFilterParameter>>;
|
|
1748
|
+
_or?: InputMaybe<Array<HistoryEntryFilterParameter>>;
|
|
1729
1749
|
createdAt?: InputMaybe<DateOperators>;
|
|
1730
1750
|
id?: InputMaybe<IdOperators>;
|
|
1731
1751
|
isPublic?: InputMaybe<BooleanOperators>;
|
|
@@ -1740,7 +1760,7 @@ export type HistoryEntryList = PaginatedList & {
|
|
|
1740
1760
|
export type HistoryEntryListOptions = {
|
|
1741
1761
|
/** Allows the results to be filtered */
|
|
1742
1762
|
filter?: InputMaybe<HistoryEntryFilterParameter>;
|
|
1743
|
-
/** Specifies whether multiple "filter"
|
|
1763
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
1744
1764
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
1745
1765
|
/** Skips the first n results, for use in pagination */
|
|
1746
1766
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -1881,6 +1901,8 @@ export type JobBufferSize = {
|
|
|
1881
1901
|
size: Scalars['Int']['output'];
|
|
1882
1902
|
};
|
|
1883
1903
|
export type JobFilterParameter = {
|
|
1904
|
+
_and?: InputMaybe<Array<JobFilterParameter>>;
|
|
1905
|
+
_or?: InputMaybe<Array<JobFilterParameter>>;
|
|
1884
1906
|
attempts?: InputMaybe<NumberOperators>;
|
|
1885
1907
|
createdAt?: InputMaybe<DateOperators>;
|
|
1886
1908
|
duration?: InputMaybe<NumberOperators>;
|
|
@@ -1901,7 +1923,7 @@ export type JobList = PaginatedList & {
|
|
|
1901
1923
|
export type JobListOptions = {
|
|
1902
1924
|
/** Allows the results to be filtered */
|
|
1903
1925
|
filter?: InputMaybe<JobFilterParameter>;
|
|
1904
|
-
/** Specifies whether multiple "filter"
|
|
1926
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
1905
1927
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
1906
1928
|
/** Skips the first n results, for use in pagination */
|
|
1907
1929
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -3380,6 +3402,8 @@ export type OrderAddress = {
|
|
|
3380
3402
|
streetLine2?: Maybe<Scalars['String']['output']>;
|
|
3381
3403
|
};
|
|
3382
3404
|
export type OrderFilterParameter = {
|
|
3405
|
+
_and?: InputMaybe<Array<OrderFilterParameter>>;
|
|
3406
|
+
_or?: InputMaybe<Array<OrderFilterParameter>>;
|
|
3383
3407
|
active?: InputMaybe<BooleanOperators>;
|
|
3384
3408
|
aggregateOrderId?: InputMaybe<IdOperators>;
|
|
3385
3409
|
code?: InputMaybe<StringOperators>;
|
|
@@ -3482,7 +3506,7 @@ export type OrderList = PaginatedList & {
|
|
|
3482
3506
|
export type OrderListOptions = {
|
|
3483
3507
|
/** Allows the results to be filtered */
|
|
3484
3508
|
filter?: InputMaybe<OrderFilterParameter>;
|
|
3485
|
-
/** Specifies whether multiple "filter"
|
|
3509
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
3486
3510
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
3487
3511
|
/** Skips the first n results, for use in pagination */
|
|
3488
3512
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -3609,6 +3633,8 @@ export type PaymentMethod = Node & {
|
|
|
3609
3633
|
updatedAt: Scalars['DateTime']['output'];
|
|
3610
3634
|
};
|
|
3611
3635
|
export type PaymentMethodFilterParameter = {
|
|
3636
|
+
_and?: InputMaybe<Array<PaymentMethodFilterParameter>>;
|
|
3637
|
+
_or?: InputMaybe<Array<PaymentMethodFilterParameter>>;
|
|
3612
3638
|
code?: InputMaybe<StringOperators>;
|
|
3613
3639
|
createdAt?: InputMaybe<DateOperators>;
|
|
3614
3640
|
description?: InputMaybe<StringOperators>;
|
|
@@ -3625,7 +3651,7 @@ export type PaymentMethodList = PaginatedList & {
|
|
|
3625
3651
|
export type PaymentMethodListOptions = {
|
|
3626
3652
|
/** Allows the results to be filtered */
|
|
3627
3653
|
filter?: InputMaybe<PaymentMethodFilterParameter>;
|
|
3628
|
-
/** Specifies whether multiple "filter"
|
|
3654
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
3629
3655
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
3630
3656
|
/** Skips the first n results, for use in pagination */
|
|
3631
3657
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -3957,6 +3983,8 @@ export type ProductVariantListArgs = {
|
|
|
3957
3983
|
options?: InputMaybe<ProductVariantListOptions>;
|
|
3958
3984
|
};
|
|
3959
3985
|
export type ProductFilterParameter = {
|
|
3986
|
+
_and?: InputMaybe<Array<ProductFilterParameter>>;
|
|
3987
|
+
_or?: InputMaybe<Array<ProductFilterParameter>>;
|
|
3960
3988
|
createdAt?: InputMaybe<DateOperators>;
|
|
3961
3989
|
description?: InputMaybe<StringOperators>;
|
|
3962
3990
|
enabled?: InputMaybe<BooleanOperators>;
|
|
@@ -3964,6 +3992,7 @@ export type ProductFilterParameter = {
|
|
|
3964
3992
|
id?: InputMaybe<IdOperators>;
|
|
3965
3993
|
languageCode?: InputMaybe<StringOperators>;
|
|
3966
3994
|
name?: InputMaybe<StringOperators>;
|
|
3995
|
+
sku?: InputMaybe<StringOperators>;
|
|
3967
3996
|
slug?: InputMaybe<StringOperators>;
|
|
3968
3997
|
updatedAt?: InputMaybe<DateOperators>;
|
|
3969
3998
|
};
|
|
@@ -3975,7 +4004,7 @@ export type ProductList = PaginatedList & {
|
|
|
3975
4004
|
export type ProductListOptions = {
|
|
3976
4005
|
/** Allows the results to be filtered */
|
|
3977
4006
|
filter?: InputMaybe<ProductFilterParameter>;
|
|
3978
|
-
/** Specifies whether multiple "filter"
|
|
4007
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
3979
4008
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
3980
4009
|
/** Skips the first n results, for use in pagination */
|
|
3981
4010
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4109,6 +4138,8 @@ export type ProductVariantStockMovementsArgs = {
|
|
|
4109
4138
|
options?: InputMaybe<StockMovementListOptions>;
|
|
4110
4139
|
};
|
|
4111
4140
|
export type ProductVariantFilterParameter = {
|
|
4141
|
+
_and?: InputMaybe<Array<ProductVariantFilterParameter>>;
|
|
4142
|
+
_or?: InputMaybe<Array<ProductVariantFilterParameter>>;
|
|
4112
4143
|
createdAt?: InputMaybe<DateOperators>;
|
|
4113
4144
|
currencyCode?: InputMaybe<StringOperators>;
|
|
4114
4145
|
enabled?: InputMaybe<BooleanOperators>;
|
|
@@ -4136,7 +4167,7 @@ export type ProductVariantList = PaginatedList & {
|
|
|
4136
4167
|
export type ProductVariantListOptions = {
|
|
4137
4168
|
/** Allows the results to be filtered */
|
|
4138
4169
|
filter?: InputMaybe<ProductVariantFilterParameter>;
|
|
4139
|
-
/** Specifies whether multiple "filter"
|
|
4170
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
4140
4171
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
4141
4172
|
/** Skips the first n results, for use in pagination */
|
|
4142
4173
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4206,6 +4237,8 @@ export type Promotion = Node & {
|
|
|
4206
4237
|
usageLimit?: Maybe<Scalars['Int']['output']>;
|
|
4207
4238
|
};
|
|
4208
4239
|
export type PromotionFilterParameter = {
|
|
4240
|
+
_and?: InputMaybe<Array<PromotionFilterParameter>>;
|
|
4241
|
+
_or?: InputMaybe<Array<PromotionFilterParameter>>;
|
|
4209
4242
|
couponCode?: InputMaybe<StringOperators>;
|
|
4210
4243
|
createdAt?: InputMaybe<DateOperators>;
|
|
4211
4244
|
description?: InputMaybe<StringOperators>;
|
|
@@ -4226,7 +4259,7 @@ export type PromotionList = PaginatedList & {
|
|
|
4226
4259
|
export type PromotionListOptions = {
|
|
4227
4260
|
/** Allows the results to be filtered */
|
|
4228
4261
|
filter?: InputMaybe<PromotionFilterParameter>;
|
|
4229
|
-
/** Specifies whether multiple "filter"
|
|
4262
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
4230
4263
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
4231
4264
|
/** Skips the first n results, for use in pagination */
|
|
4232
4265
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4279,6 +4312,8 @@ export type Province = Node & Region & {
|
|
|
4279
4312
|
updatedAt: Scalars['DateTime']['output'];
|
|
4280
4313
|
};
|
|
4281
4314
|
export type ProvinceFilterParameter = {
|
|
4315
|
+
_and?: InputMaybe<Array<ProvinceFilterParameter>>;
|
|
4316
|
+
_or?: InputMaybe<Array<ProvinceFilterParameter>>;
|
|
4282
4317
|
code?: InputMaybe<StringOperators>;
|
|
4283
4318
|
createdAt?: InputMaybe<DateOperators>;
|
|
4284
4319
|
enabled?: InputMaybe<BooleanOperators>;
|
|
@@ -4297,7 +4332,7 @@ export type ProvinceList = PaginatedList & {
|
|
|
4297
4332
|
export type ProvinceListOptions = {
|
|
4298
4333
|
/** Allows the results to be filtered */
|
|
4299
4334
|
filter?: InputMaybe<ProvinceFilterParameter>;
|
|
4300
|
-
/** Specifies whether multiple "filter"
|
|
4335
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
4301
4336
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
4302
4337
|
/** Skips the first n results, for use in pagination */
|
|
4303
4338
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4747,6 +4782,8 @@ export type Role = Node & {
|
|
|
4747
4782
|
updatedAt: Scalars['DateTime']['output'];
|
|
4748
4783
|
};
|
|
4749
4784
|
export type RoleFilterParameter = {
|
|
4785
|
+
_and?: InputMaybe<Array<RoleFilterParameter>>;
|
|
4786
|
+
_or?: InputMaybe<Array<RoleFilterParameter>>;
|
|
4750
4787
|
code?: InputMaybe<StringOperators>;
|
|
4751
4788
|
createdAt?: InputMaybe<DateOperators>;
|
|
4752
4789
|
description?: InputMaybe<StringOperators>;
|
|
@@ -4761,7 +4798,7 @@ export type RoleList = PaginatedList & {
|
|
|
4761
4798
|
export type RoleListOptions = {
|
|
4762
4799
|
/** Allows the results to be filtered */
|
|
4763
4800
|
filter?: InputMaybe<RoleFilterParameter>;
|
|
4764
|
-
/** Specifies whether multiple "filter"
|
|
4801
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
4765
4802
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
4766
4803
|
/** Skips the first n results, for use in pagination */
|
|
4767
4804
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4856,6 +4893,8 @@ export type Seller = Node & {
|
|
|
4856
4893
|
updatedAt: Scalars['DateTime']['output'];
|
|
4857
4894
|
};
|
|
4858
4895
|
export type SellerFilterParameter = {
|
|
4896
|
+
_and?: InputMaybe<Array<SellerFilterParameter>>;
|
|
4897
|
+
_or?: InputMaybe<Array<SellerFilterParameter>>;
|
|
4859
4898
|
createdAt?: InputMaybe<DateOperators>;
|
|
4860
4899
|
id?: InputMaybe<IdOperators>;
|
|
4861
4900
|
name?: InputMaybe<StringOperators>;
|
|
@@ -4869,7 +4908,7 @@ export type SellerList = PaginatedList & {
|
|
|
4869
4908
|
export type SellerListOptions = {
|
|
4870
4909
|
/** Allows the results to be filtered */
|
|
4871
4910
|
filter?: InputMaybe<SellerFilterParameter>;
|
|
4872
|
-
/** Specifies whether multiple "filter"
|
|
4911
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
4873
4912
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
4874
4913
|
/** Skips the first n results, for use in pagination */
|
|
4875
4914
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -4887,6 +4926,7 @@ export type SellerSortParameter = {
|
|
|
4887
4926
|
export type ServerConfig = {
|
|
4888
4927
|
__typename?: 'ServerConfig';
|
|
4889
4928
|
customFieldConfig: CustomFields;
|
|
4929
|
+
moneyStrategyPrecision: Scalars['Int']['output'];
|
|
4890
4930
|
orderProcess: Array<OrderProcessState>;
|
|
4891
4931
|
permissions: Array<PermissionDefinition>;
|
|
4892
4932
|
permittedAssetTypes: Array<Scalars['String']['output']>;
|
|
@@ -4932,6 +4972,8 @@ export type ShippingMethod = Node & {
|
|
|
4932
4972
|
updatedAt: Scalars['DateTime']['output'];
|
|
4933
4973
|
};
|
|
4934
4974
|
export type ShippingMethodFilterParameter = {
|
|
4975
|
+
_and?: InputMaybe<Array<ShippingMethodFilterParameter>>;
|
|
4976
|
+
_or?: InputMaybe<Array<ShippingMethodFilterParameter>>;
|
|
4935
4977
|
code?: InputMaybe<StringOperators>;
|
|
4936
4978
|
createdAt?: InputMaybe<DateOperators>;
|
|
4937
4979
|
description?: InputMaybe<StringOperators>;
|
|
@@ -4949,7 +4991,7 @@ export type ShippingMethodList = PaginatedList & {
|
|
|
4949
4991
|
export type ShippingMethodListOptions = {
|
|
4950
4992
|
/** Allows the results to be filtered */
|
|
4951
4993
|
filter?: InputMaybe<ShippingMethodFilterParameter>;
|
|
4952
|
-
/** Specifies whether multiple "filter"
|
|
4994
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
4953
4995
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
4954
4996
|
/** Skips the first n results, for use in pagination */
|
|
4955
4997
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5037,6 +5079,8 @@ export type StockLocation = Node & {
|
|
|
5037
5079
|
updatedAt: Scalars['DateTime']['output'];
|
|
5038
5080
|
};
|
|
5039
5081
|
export type StockLocationFilterParameter = {
|
|
5082
|
+
_and?: InputMaybe<Array<StockLocationFilterParameter>>;
|
|
5083
|
+
_or?: InputMaybe<Array<StockLocationFilterParameter>>;
|
|
5040
5084
|
createdAt?: InputMaybe<DateOperators>;
|
|
5041
5085
|
description?: InputMaybe<StringOperators>;
|
|
5042
5086
|
id?: InputMaybe<IdOperators>;
|
|
@@ -5051,7 +5095,7 @@ export type StockLocationList = PaginatedList & {
|
|
|
5051
5095
|
export type StockLocationListOptions = {
|
|
5052
5096
|
/** Allows the results to be filtered */
|
|
5053
5097
|
filter?: InputMaybe<StockLocationFilterParameter>;
|
|
5054
|
-
/** Specifies whether multiple "filter"
|
|
5098
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
5055
5099
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
5056
5100
|
/** Skips the first n results, for use in pagination */
|
|
5057
5101
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5162,6 +5206,8 @@ export type Tag = Node & {
|
|
|
5162
5206
|
value: Scalars['String']['output'];
|
|
5163
5207
|
};
|
|
5164
5208
|
export type TagFilterParameter = {
|
|
5209
|
+
_and?: InputMaybe<Array<TagFilterParameter>>;
|
|
5210
|
+
_or?: InputMaybe<Array<TagFilterParameter>>;
|
|
5165
5211
|
createdAt?: InputMaybe<DateOperators>;
|
|
5166
5212
|
id?: InputMaybe<IdOperators>;
|
|
5167
5213
|
updatedAt?: InputMaybe<DateOperators>;
|
|
@@ -5175,7 +5221,7 @@ export type TagList = PaginatedList & {
|
|
|
5175
5221
|
export type TagListOptions = {
|
|
5176
5222
|
/** Allows the results to be filtered */
|
|
5177
5223
|
filter?: InputMaybe<TagFilterParameter>;
|
|
5178
|
-
/** Specifies whether multiple "filter"
|
|
5224
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
5179
5225
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
5180
5226
|
/** Skips the first n results, for use in pagination */
|
|
5181
5227
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5200,6 +5246,8 @@ export type TaxCategory = Node & {
|
|
|
5200
5246
|
updatedAt: Scalars['DateTime']['output'];
|
|
5201
5247
|
};
|
|
5202
5248
|
export type TaxCategoryFilterParameter = {
|
|
5249
|
+
_and?: InputMaybe<Array<TaxCategoryFilterParameter>>;
|
|
5250
|
+
_or?: InputMaybe<Array<TaxCategoryFilterParameter>>;
|
|
5203
5251
|
createdAt?: InputMaybe<DateOperators>;
|
|
5204
5252
|
id?: InputMaybe<IdOperators>;
|
|
5205
5253
|
isDefault?: InputMaybe<BooleanOperators>;
|
|
@@ -5214,7 +5262,7 @@ export type TaxCategoryList = PaginatedList & {
|
|
|
5214
5262
|
export type TaxCategoryListOptions = {
|
|
5215
5263
|
/** Allows the results to be filtered */
|
|
5216
5264
|
filter?: InputMaybe<TaxCategoryFilterParameter>;
|
|
5217
|
-
/** Specifies whether multiple "filter"
|
|
5265
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
5218
5266
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
5219
5267
|
/** Skips the first n results, for use in pagination */
|
|
5220
5268
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5248,6 +5296,8 @@ export type TaxRate = Node & {
|
|
|
5248
5296
|
zone: Zone;
|
|
5249
5297
|
};
|
|
5250
5298
|
export type TaxRateFilterParameter = {
|
|
5299
|
+
_and?: InputMaybe<Array<TaxRateFilterParameter>>;
|
|
5300
|
+
_or?: InputMaybe<Array<TaxRateFilterParameter>>;
|
|
5251
5301
|
createdAt?: InputMaybe<DateOperators>;
|
|
5252
5302
|
enabled?: InputMaybe<BooleanOperators>;
|
|
5253
5303
|
id?: InputMaybe<IdOperators>;
|
|
@@ -5263,7 +5313,7 @@ export type TaxRateList = PaginatedList & {
|
|
|
5263
5313
|
export type TaxRateListOptions = {
|
|
5264
5314
|
/** Allows the results to be filtered */
|
|
5265
5315
|
filter?: InputMaybe<TaxRateFilterParameter>;
|
|
5266
|
-
/** Specifies whether multiple "filter"
|
|
5316
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
5267
5317
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
5268
5318
|
/** Skips the first n results, for use in pagination */
|
|
5269
5319
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5634,6 +5684,8 @@ export type Zone = Node & {
|
|
|
5634
5684
|
updatedAt: Scalars['DateTime']['output'];
|
|
5635
5685
|
};
|
|
5636
5686
|
export type ZoneFilterParameter = {
|
|
5687
|
+
_and?: InputMaybe<Array<ZoneFilterParameter>>;
|
|
5688
|
+
_or?: InputMaybe<Array<ZoneFilterParameter>>;
|
|
5637
5689
|
createdAt?: InputMaybe<DateOperators>;
|
|
5638
5690
|
id?: InputMaybe<IdOperators>;
|
|
5639
5691
|
name?: InputMaybe<StringOperators>;
|
|
@@ -5647,7 +5699,7 @@ export type ZoneList = PaginatedList & {
|
|
|
5647
5699
|
export type ZoneListOptions = {
|
|
5648
5700
|
/** Allows the results to be filtered */
|
|
5649
5701
|
filter?: InputMaybe<ZoneFilterParameter>;
|
|
5650
|
-
/** Specifies whether multiple "filter"
|
|
5702
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
5651
5703
|
filterOperator?: InputMaybe<LogicalOperator>;
|
|
5652
5704
|
/** Skips the first n results, for use in pagination */
|
|
5653
5705
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -5864,6 +5916,7 @@ export type CollectionDetailQueryQuery = {
|
|
|
5864
5916
|
};
|
|
5865
5917
|
export type GetFacetDetailQueryVariables = Exact<{
|
|
5866
5918
|
id: Scalars['ID']['input'];
|
|
5919
|
+
facetValueListOptions?: InputMaybe<FacetValueListOptions>;
|
|
5867
5920
|
}>;
|
|
5868
5921
|
export type GetFacetDetailQuery = {
|
|
5869
5922
|
facet?: {
|
|
@@ -5881,32 +5934,37 @@ export type GetFacetDetailQuery = {
|
|
|
5881
5934
|
languageCode: LanguageCode;
|
|
5882
5935
|
name: string;
|
|
5883
5936
|
}>;
|
|
5884
|
-
|
|
5885
|
-
__typename?: '
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
languageCode: LanguageCode;
|
|
5890
|
-
code: string;
|
|
5891
|
-
name: string;
|
|
5892
|
-
translations: Array<{
|
|
5893
|
-
__typename?: 'FacetValueTranslation';
|
|
5894
|
-
id: string;
|
|
5895
|
-
languageCode: LanguageCode;
|
|
5896
|
-
name: string;
|
|
5897
|
-
}>;
|
|
5898
|
-
facet: {
|
|
5899
|
-
__typename?: 'Facet';
|
|
5937
|
+
valueList: {
|
|
5938
|
+
__typename?: 'FacetValueList';
|
|
5939
|
+
totalItems: number;
|
|
5940
|
+
items: Array<{
|
|
5941
|
+
__typename?: 'FacetValue';
|
|
5900
5942
|
id: string;
|
|
5901
5943
|
createdAt: any;
|
|
5902
5944
|
updatedAt: any;
|
|
5945
|
+
languageCode: LanguageCode;
|
|
5946
|
+
code: string;
|
|
5903
5947
|
name: string;
|
|
5904
|
-
|
|
5905
|
-
|
|
5948
|
+
translations: Array<{
|
|
5949
|
+
__typename?: 'FacetValueTranslation';
|
|
5950
|
+
id: string;
|
|
5951
|
+
languageCode: LanguageCode;
|
|
5952
|
+
name: string;
|
|
5953
|
+
}>;
|
|
5954
|
+
facet: {
|
|
5955
|
+
__typename?: 'Facet';
|
|
5956
|
+
id: string;
|
|
5957
|
+
createdAt: any;
|
|
5958
|
+
updatedAt: any;
|
|
5959
|
+
name: string;
|
|
5960
|
+
};
|
|
5961
|
+
}>;
|
|
5962
|
+
};
|
|
5906
5963
|
} | null;
|
|
5907
5964
|
};
|
|
5908
5965
|
export type GetFacetListQueryVariables = Exact<{
|
|
5909
5966
|
options?: InputMaybe<FacetListOptions>;
|
|
5967
|
+
facetValueListOptions?: InputMaybe<FacetValueListOptions>;
|
|
5910
5968
|
}>;
|
|
5911
5969
|
export type GetFacetListQuery = {
|
|
5912
5970
|
facets: {
|
|
@@ -16558,6 +16616,7 @@ export type GetServerConfigQuery = {
|
|
|
16558
16616
|
id: string;
|
|
16559
16617
|
serverConfig: {
|
|
16560
16618
|
__typename?: 'ServerConfig';
|
|
16619
|
+
moneyStrategyPrecision: number;
|
|
16561
16620
|
permittedAssetTypes: Array<string>;
|
|
16562
16621
|
orderProcess: Array<{
|
|
16563
16622
|
__typename?: 'OrderProcessState';
|
|
@@ -23834,9 +23893,11 @@ export declare const CollectionDetailQueryDocument: DocumentNode<CollectionDetai
|
|
|
23834
23893
|
}>>;
|
|
23835
23894
|
export declare const GetFacetDetailDocument: DocumentNode<GetFacetDetailQuery, Exact<{
|
|
23836
23895
|
id: Scalars['ID']['input'];
|
|
23896
|
+
facetValueListOptions?: InputMaybe<FacetValueListOptions> | undefined;
|
|
23837
23897
|
}>>;
|
|
23838
23898
|
export declare const GetFacetListDocument: DocumentNode<GetFacetListQuery, Exact<{
|
|
23839
23899
|
options?: InputMaybe<FacetListOptions> | undefined;
|
|
23900
|
+
facetValueListOptions?: InputMaybe<FacetValueListOptions> | undefined;
|
|
23840
23901
|
}>>;
|
|
23841
23902
|
export declare const GetProductDetailDocument: DocumentNode<GetProductDetailQuery, Exact<{
|
|
23842
23903
|
id: Scalars['ID']['input'];
|
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "2.1
|
|
1
|
+
export declare const ADMIN_UI_VERSION = "2.2.0-next.1";
|
|
@@ -24,6 +24,7 @@ export declare class AppShellComponent implements OnInit {
|
|
|
24
24
|
uiLanguageAndLocale$: LocalizationLanguageCodeType;
|
|
25
25
|
direction$: LocalizationDirectionType;
|
|
26
26
|
availableLanguages: LanguageCode[];
|
|
27
|
+
availableLocales: string[];
|
|
27
28
|
hideVendureBranding: boolean | undefined;
|
|
28
29
|
hideVersion: boolean | undefined;
|
|
29
30
|
pageTitle$: Observable<string>;
|
package/core/components/ui-language-switcher-dialog/ui-language-switcher-dialog.component.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { CurrencyCode, LanguageCode } from '../../common/generated-types';
|
|
3
3
|
import { Dialog } from '../../providers/modal/modal.types';
|
|
4
|
+
import { DataService } from '../../data/providers/data.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class UiLanguageSwitcherDialogComponent implements Dialog<[LanguageCode, string | undefined]>, OnInit {
|
|
6
|
+
export declare class UiLanguageSwitcherDialogComponent implements Dialog<[LanguageCode, string | undefined]>, OnInit, OnDestroy {
|
|
7
|
+
private dataService;
|
|
8
|
+
private changeDetector;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
private destroy$;
|
|
6
11
|
resolveWith: (result?: [LanguageCode, string | undefined]) => void;
|
|
7
12
|
currentLanguage: LanguageCode;
|
|
8
13
|
availableLanguages: LanguageCode[];
|
|
@@ -13,8 +18,9 @@ export declare class UiLanguageSwitcherDialogComponent implements Dialog<[Langua
|
|
|
13
18
|
previewLocale: string;
|
|
14
19
|
readonly browserDefaultLocale: string | undefined;
|
|
15
20
|
readonly now: string;
|
|
16
|
-
constructor();
|
|
21
|
+
constructor(dataService: DataService, changeDetector: ChangeDetectorRef);
|
|
17
22
|
ngOnInit(): void;
|
|
23
|
+
ngOnDestroy(): void;
|
|
18
24
|
updatePreviewLocale(): void;
|
|
19
25
|
setLanguage(): void;
|
|
20
26
|
cancel(): void;
|
package/core/core.module.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare class CoreModule {
|
|
|
33
33
|
private dataService;
|
|
34
34
|
private notificationService;
|
|
35
35
|
constructor(i18nService: I18nService, localStorageService: LocalStorageService, titleService: Title, alertsService: AlertsService, dataService: DataService, notificationService: NotificationService);
|
|
36
|
-
private
|
|
36
|
+
private initUiLanguagesAndLocales;
|
|
37
37
|
private initUiTitle;
|
|
38
38
|
private initAlerts;
|
|
39
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServerConfigService } from '../../data/server-config';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CurrencyService {
|
|
4
|
+
readonly precision: number;
|
|
5
|
+
readonly precisionFactor: number;
|
|
6
|
+
constructor(serverConfigService: ServerConfigService);
|
|
7
|
+
toMajorUnits(value: number): number;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CurrencyService>;
|
|
10
|
+
}
|
|
@@ -5,8 +5,10 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class I18nService {
|
|
6
6
|
private ngxTranslate;
|
|
7
7
|
private document;
|
|
8
|
+
_availableLocales: string[];
|
|
8
9
|
_availableLanguages: LanguageCode[];
|
|
9
10
|
get availableLanguages(): LanguageCode[];
|
|
11
|
+
get availableLocales(): string[];
|
|
10
12
|
constructor(ngxTranslate: TranslateService, document: Document);
|
|
11
13
|
/**
|
|
12
14
|
* Set the default language
|
|
@@ -20,6 +22,10 @@ export declare class I18nService {
|
|
|
20
22
|
* Set the available UI languages
|
|
21
23
|
*/
|
|
22
24
|
setAvailableLanguages(languages: LanguageCode[]): void;
|
|
25
|
+
/**
|
|
26
|
+
* Set the available UI locales
|
|
27
|
+
*/
|
|
28
|
+
setAvailableLocales(locales: string[]): void;
|
|
23
29
|
/**
|
|
24
30
|
* Translate the given key.
|
|
25
31
|
*/
|
package/core/public_api.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ export * from './providers/bulk-action-registry/bulk-action-registry.service';
|
|
|
94
94
|
export * from './providers/bulk-action-registry/bulk-action-types';
|
|
95
95
|
export * from './providers/channel/channel.service';
|
|
96
96
|
export * from './providers/component-registry/component-registry.service';
|
|
97
|
+
export * from './providers/currency/currency.service';
|
|
97
98
|
export * from './providers/custom-detail-component/custom-detail-component-types';
|
|
98
99
|
export * from './providers/custom-detail-component/custom-detail-component.service';
|
|
99
100
|
export * from './providers/custom-field-component/custom-field-component.service';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { LineChartOptions } from 'chartist';
|
|
3
|
+
import { CurrencyService } from '../../../providers/currency/currency.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export interface ChartFormatOptions {
|
|
5
6
|
formatValueAs: 'currency' | 'number';
|
|
@@ -12,10 +13,12 @@ export interface ChartEntry {
|
|
|
12
13
|
formatOptions: ChartFormatOptions;
|
|
13
14
|
}
|
|
14
15
|
export declare class ChartComponent implements OnInit, OnChanges, OnDestroy {
|
|
16
|
+
private currencyService;
|
|
15
17
|
entries: ChartEntry[];
|
|
16
18
|
options?: LineChartOptions;
|
|
17
19
|
private chartDivRef;
|
|
18
20
|
private chart;
|
|
21
|
+
constructor(currencyService: CurrencyService);
|
|
19
22
|
ngOnInit(): void;
|
|
20
23
|
ngOnChanges(changes: SimpleChanges): void;
|
|
21
24
|
ngOnDestroy(): void;
|