@vendure/admin-ui 1.4.6 → 1.4.7
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 +67 -27
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +46 -12
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js +1 -1
- package/bundles/vendure-admin-ui-settings.umd.js.map +1 -1
- package/catalog/components/facet-detail/facet-detail.component.d.ts +7 -2
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/generated-types.d.ts +6 -6
- package/core/common/version.d.ts +1 -1
- package/core/data/utils/remove-readonly-custom-fields.d.ts +12 -3
- package/core/shared/directives/if-default-channel-active.directive.d.ts +1 -1
- package/core/shared/directives/if-multichannel.directive.d.ts +1 -1
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/esm2015/catalog/components/facet-detail/facet-detail.component.js +44 -16
- package/esm2015/core/common/generated-types.js +1 -1
- package/esm2015/core/common/utilities/create-updated-translatable.js +1 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/data/utils/remove-readonly-custom-fields.js +15 -3
- package/esm2015/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.js +3 -2
- package/esm2015/core/shared/directives/if-default-channel-active.directive.js +2 -2
- package/esm2015/core/shared/directives/if-multichannel.directive.js +2 -2
- package/esm2015/settings/components/channel-list/channel-list.component.js +2 -2
- package/fesm2015/vendure-admin-ui-catalog.js +43 -15
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +19 -6
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.js +1 -1
- package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
- package/package.json +11 -11
- package/settings/vendure-admin-ui-settings.metadata.json +1 -1
|
@@ -1572,8 +1572,20 @@ function extractInputType(type) {
|
|
|
1572
1572
|
* To be used before submitting the entity for a create or update request.
|
|
1573
1573
|
*/
|
|
1574
1574
|
function removeReadonlyCustomFields(variables, customFieldConfig) {
|
|
1575
|
-
if (variables
|
|
1576
|
-
|
|
1575
|
+
if (!Array.isArray(variables)) {
|
|
1576
|
+
if (Array.isArray(variables.input)) {
|
|
1577
|
+
for (const input of variables.input) {
|
|
1578
|
+
removeReadonly(input, customFieldConfig);
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
else {
|
|
1582
|
+
removeReadonly(variables.input, customFieldConfig);
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
else {
|
|
1586
|
+
for (const input of variables) {
|
|
1587
|
+
removeReadonly(input, customFieldConfig);
|
|
1588
|
+
}
|
|
1577
1589
|
}
|
|
1578
1590
|
return removeReadonly(variables, customFieldConfig);
|
|
1579
1591
|
}
|
|
@@ -13045,7 +13057,8 @@ class TabbedCustomFieldsComponent {
|
|
|
13045
13057
|
this.tabbedCustomFields = this.groupByTabs(this.customFields);
|
|
13046
13058
|
}
|
|
13047
13059
|
customFieldIsSet(name) {
|
|
13048
|
-
|
|
13060
|
+
var _a;
|
|
13061
|
+
return !!((_a = this.customFieldsFormGroup) === null || _a === void 0 ? void 0 : _a.get(name));
|
|
13049
13062
|
}
|
|
13050
13063
|
groupByTabs(customFieldConfigs) {
|
|
13051
13064
|
var _a, _b, _c;
|
|
@@ -13359,7 +13372,7 @@ class IfDefaultChannelActiveDirective extends IfDirectiveBase {
|
|
|
13359
13372
|
this.changeDetectorRef = changeDetectorRef;
|
|
13360
13373
|
}
|
|
13361
13374
|
/**
|
|
13362
|
-
* A template to show if the current user does not have the
|
|
13375
|
+
* A template to show if the current user does not have the specified permission.
|
|
13363
13376
|
*/
|
|
13364
13377
|
set vdrIfMultichannelElse(templateRef) {
|
|
13365
13378
|
this.setElseTemplate(templateRef);
|
|
@@ -13408,7 +13421,7 @@ class IfMultichannelDirective extends IfDirectiveBase {
|
|
|
13408
13421
|
this.dataService = dataService;
|
|
13409
13422
|
}
|
|
13410
13423
|
/**
|
|
13411
|
-
* A template to show if the current user does not have the
|
|
13424
|
+
* A template to show if the current user does not have the specified permission.
|
|
13412
13425
|
*/
|
|
13413
13426
|
set vdrIfMultichannelElse(templateRef) {
|
|
13414
13427
|
this.setElseTemplate(templateRef);
|
|
@@ -15520,7 +15533,7 @@ function patchObject(obj, patch) {
|
|
|
15520
15533
|
}
|
|
15521
15534
|
|
|
15522
15535
|
// Auto-generated by the set-version.js script.
|
|
15523
|
-
const ADMIN_UI_VERSION = '1.4.
|
|
15536
|
+
const ADMIN_UI_VERSION = '1.4.7';
|
|
15524
15537
|
|
|
15525
15538
|
/**
|
|
15526
15539
|
* Responsible for registering dashboard widget components and querying for layouts.
|