@vendure/admin-ui 1.4.5 → 1.5.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.
- package/bundles/vendure-admin-ui-catalog.umd.js +173 -149
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +348 -289
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +51 -20
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +107 -17
- package/bundles/vendure-admin-ui-order.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/bundles/vendure-admin-ui-system.umd.js.map +1 -1
- package/catalog/components/{product-assets/product-assets.component.d.ts → assets/assets.component.d.ts} +4 -10
- package/catalog/components/facet-detail/facet-detail.component.d.ts +7 -2
- package/catalog/components/product-detail/product-detail.component.d.ts +2 -1
- package/catalog/components/product-variants-list/product-variants-list.component.d.ts +1 -1
- package/catalog/public_api.d.ts +1 -1
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/generated-types.d.ts +91 -13
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/customer-definitions.d.ts +1 -0
- package/core/data/providers/customer-data.service.d.ts +1 -0
- package/core/data/providers/promotion-data.service.d.ts +2 -2
- package/core/data/utils/remove-readonly-custom-fields.d.ts +12 -3
- package/core/providers/i18n/i18n.service.d.ts +3 -1
- package/core/public_api.d.ts +2 -0
- package/core/shared/components/asset-preview-links/asset-preview-links.component.d.ts +5 -0
- package/core/shared/components/object-tree/object-tree.component.d.ts +3 -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/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.d.ts +15 -0
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/components/address-card/address-card.component.d.ts +2 -0
- package/customer/components/customer-detail/customer-detail.component.d.ts +2 -0
- package/customer/components/customer-list/customer-list.component.d.ts +1 -2
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/catalog.module.js +3 -3
- package/esm2015/catalog/components/assets/assets.component.js +93 -0
- package/esm2015/catalog/components/collection-detail/collection-detail.component.js +2 -2
- package/esm2015/catalog/components/facet-detail/facet-detail.component.js +44 -16
- package/esm2015/catalog/components/product-detail/product-detail.component.js +4 -3
- package/esm2015/catalog/components/product-list/product-list.component.js +2 -2
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +2 -2
- package/esm2015/catalog/public_api.js +2 -2
- package/esm2015/core/common/base-detail.component.js +4 -4
- package/esm2015/core/common/generated-types.js +5 -1
- package/esm2015/core/common/introspection-result.js +189 -249
- package/esm2015/core/common/utilities/configurable-operation-utils.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/components/main-nav/main-nav.component.js +3 -3
- package/esm2015/core/data/definitions/customer-definitions.js +8 -1
- package/esm2015/core/data/definitions/order-definitions.js +2 -1
- package/esm2015/core/data/providers/customer-data.service.js +5 -2
- package/esm2015/core/data/providers/interceptor.js +1 -1
- package/esm2015/core/data/providers/promotion-data.service.js +3 -2
- package/esm2015/core/data/providers/shipping-method-data.service.js +1 -1
- package/esm2015/core/data/utils/remove-readonly-custom-fields.js +15 -3
- package/esm2015/core/providers/i18n/i18n.service.js +14 -5
- package/esm2015/core/public_api.js +3 -1
- package/esm2015/core/shared/components/address-form/address-form.component.js +1 -1
- package/esm2015/core/shared/components/asset-gallery/asset-gallery.component.js +2 -2
- package/esm2015/core/shared/components/asset-preview/asset-preview.component.js +3 -3
- package/esm2015/core/shared/components/asset-preview-links/asset-preview-links.component.js +18 -0
- package/esm2015/core/shared/components/object-tree/object-tree.component.js +3 -3
- package/esm2015/core/shared/components/rich-text-editor/prosemirror/prosemirror.service.js +2 -2
- 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/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.js +1 -1
- package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/generic/relation-generic-input.component.js +48 -0
- package/esm2015/core/shared/dynamic-form-inputs/relation-form-input/relation-form-input.component.js +2 -2
- package/esm2015/core/shared/pipes/asset-preview.pipe.js +2 -2
- package/esm2015/core/shared/shared.module.js +5 -1
- package/esm2015/customer/components/address-card/address-card.component.js +9 -3
- package/esm2015/customer/components/customer-detail/customer-detail.component.js +35 -13
- package/esm2015/customer/components/customer-list/customer-list.component.js +12 -9
- package/esm2015/order/components/add-manual-payment-dialog/add-manual-payment-dialog.component.js +1 -1
- package/esm2015/order/components/cancel-order-dialog/cancel-order-dialog.component.js +36 -6
- package/esm2015/order/components/fulfill-order-dialog/fulfill-order-dialog.component.js +1 -1
- package/esm2015/order/components/line-refunds/line-refunds.component.js +1 -1
- package/esm2015/order/components/modification-detail/modification-detail.component.js +1 -1
- package/esm2015/order/components/order-detail/order-detail.component.js +2 -2
- package/esm2015/order/components/order-editor/order-editor.component.js +22 -7
- package/esm2015/order/components/order-edits-preview-dialog/order-edits-preview-dialog.component.js +1 -1
- package/esm2015/order/components/order-history/order-history.component.js +2 -2
- package/esm2015/order/components/order-list/order-list.component.js +1 -1
- package/esm2015/order/components/order-table/order-table.component.js +2 -2
- package/esm2015/order/components/refund-order-dialog/refund-order-dialog.component.js +10 -5
- package/esm2015/order/order.routes.js +1 -1
- package/esm2015/settings/components/channel-list/channel-list.component.js +2 -2
- package/esm2015/settings/components/role-list/role-list.component.js +1 -1
- package/esm2015/settings/components/test-order-builder/test-order-builder.component.js +1 -1
- package/esm2015/settings/providers/routing/shipping-method-resolver.js +1 -1
- package/esm2015/system/components/job-list/job-list.component.js +1 -1
- package/fesm2015/vendure-admin-ui-catalog.js +140 -125
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +300 -261
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +53 -22
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +67 -17
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/fesm2015/vendure-admin-ui-settings.js +1 -1
- package/fesm2015/vendure-admin-ui-settings.js.map +1 -1
- package/fesm2015/vendure-admin-ui-system.js.map +1 -1
- package/order/components/cancel-order-dialog/cancel-order-dialog.component.d.ts +3 -0
- package/order/components/order-editor/order-editor.component.d.ts +8 -2
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +11 -11
- package/settings/vendure-admin-ui-settings.metadata.json +1 -1
- package/static/i18n-messages/cs.json +7 -1
- package/static/i18n-messages/de.json +7 -1
- package/static/i18n-messages/en.json +9 -3
- package/static/i18n-messages/es.json +7 -1
- package/static/i18n-messages/fr.json +7 -1
- package/static/i18n-messages/it.json +7 -1
- package/static/i18n-messages/pl.json +7 -1
- package/static/i18n-messages/pt_BR.json +7 -1
- package/static/i18n-messages/pt_PT.json +7 -1
- package/static/i18n-messages/ru.json +7 -1
- package/static/i18n-messages/uk.json +7 -1
- package/static/i18n-messages/zh_Hans.json +7 -1
- package/static/i18n-messages/zh_Hant.json +7 -1
- package/static/vendure-ui-config.json +25 -10
- package/esm2015/catalog/components/product-assets/product-assets.component.js +0 -108
|
@@ -662,7 +662,7 @@
|
|
|
662
662
|
var CREATE_TAX_CATEGORY = apolloAngular.gql(templateObject_19$3 || (templateObject_19$3 = __makeTemplateObject(["\n mutation CreateTaxCategory($input: CreateTaxCategoryInput!) {\n createTaxCategory(input: $input) {\n ...TaxCategory\n }\n }\n ", "\n"], ["\n mutation CreateTaxCategory($input: CreateTaxCategoryInput!) {\n createTaxCategory(input: $input) {\n ...TaxCategory\n }\n }\n ", "\n"])), TAX_CATEGORY_FRAGMENT);
|
|
663
663
|
var UPDATE_TAX_CATEGORY = apolloAngular.gql(templateObject_20$3 || (templateObject_20$3 = __makeTemplateObject(["\n mutation UpdateTaxCategory($input: UpdateTaxCategoryInput!) {\n updateTaxCategory(input: $input) {\n ...TaxCategory\n }\n }\n ", "\n"], ["\n mutation UpdateTaxCategory($input: UpdateTaxCategoryInput!) {\n updateTaxCategory(input: $input) {\n ...TaxCategory\n }\n }\n ", "\n"])), TAX_CATEGORY_FRAGMENT);
|
|
664
664
|
var DELETE_TAX_CATEGORY = apolloAngular.gql(templateObject_21$3 || (templateObject_21$3 = __makeTemplateObject(["\n mutation DeleteTaxCategory($id: ID!) {\n deleteTaxCategory(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteTaxCategory($id: ID!) {\n deleteTaxCategory(id: $id) {\n result\n message\n }\n }\n"])));
|
|
665
|
-
var TAX_RATE_FRAGMENT = apolloAngular.gql(templateObject_22$
|
|
665
|
+
var TAX_RATE_FRAGMENT = apolloAngular.gql(templateObject_22$3 || (templateObject_22$3 = __makeTemplateObject(["\n fragment TaxRate on TaxRate {\n id\n createdAt\n updatedAt\n name\n enabled\n value\n category {\n id\n name\n }\n zone {\n id\n name\n }\n customerGroup {\n id\n name\n }\n }\n"], ["\n fragment TaxRate on TaxRate {\n id\n createdAt\n updatedAt\n name\n enabled\n value\n category {\n id\n name\n }\n zone {\n id\n name\n }\n customerGroup {\n id\n name\n }\n }\n"])));
|
|
666
666
|
var GET_TAX_RATE_LIST = apolloAngular.gql(templateObject_23$2 || (templateObject_23$2 = __makeTemplateObject(["\n query GetTaxRateList($options: TaxRateListOptions) {\n taxRates(options: $options) {\n items {\n ...TaxRate\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetTaxRateList($options: TaxRateListOptions) {\n taxRates(options: $options) {\n items {\n ...TaxRate\n }\n totalItems\n }\n }\n ", "\n"])), TAX_RATE_FRAGMENT);
|
|
667
667
|
var GET_TAX_RATE_LIST_SIMPLE = apolloAngular.gql(templateObject_24$2 || (templateObject_24$2 = __makeTemplateObject(["\n query GetTaxRateListSimple($options: TaxRateListOptions) {\n taxRates(options: $options) {\n items {\n id\n createdAt\n updatedAt\n name\n enabled\n value\n category {\n id\n name\n }\n zone {\n id\n name\n }\n }\n totalItems\n }\n }\n"], ["\n query GetTaxRateListSimple($options: TaxRateListOptions) {\n taxRates(options: $options) {\n items {\n id\n createdAt\n updatedAt\n name\n enabled\n value\n category {\n id\n name\n }\n zone {\n id\n name\n }\n }\n totalItems\n }\n }\n"])));
|
|
668
668
|
var GET_TAX_RATE = apolloAngular.gql(templateObject_25$2 || (templateObject_25$2 = __makeTemplateObject(["\n query GetTaxRate($id: ID!) {\n taxRate(id: $id) {\n ...TaxRate\n }\n }\n ", "\n"], ["\n query GetTaxRate($id: ID!) {\n taxRate(id: $id) {\n ...TaxRate\n }\n }\n ", "\n"])), TAX_RATE_FRAGMENT);
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
var REINDEX = apolloAngular.gql(templateObject_63 || (templateObject_63 = __makeTemplateObject(["\n mutation Reindex {\n reindex {\n ...JobInfo\n }\n }\n ", "\n"], ["\n mutation Reindex {\n reindex {\n ...JobInfo\n }\n }\n ", "\n"])), JOB_INFO_FRAGMENT);
|
|
707
707
|
var GET_PENDING_SEARCH_INDEX_UPDATES = apolloAngular.gql(templateObject_64 || (templateObject_64 = __makeTemplateObject(["\n query GetPendingSearchIndexUpdates {\n pendingSearchIndexUpdates\n }\n"], ["\n query GetPendingSearchIndexUpdates {\n pendingSearchIndexUpdates\n }\n"])));
|
|
708
708
|
var RUN_PENDING_SEARCH_INDEX_UPDATES = apolloAngular.gql(templateObject_65 || (templateObject_65 = __makeTemplateObject(["\n mutation RunPendingSearchIndexUpdates {\n runPendingSearchIndexUpdates {\n success\n }\n }\n"], ["\n mutation RunPendingSearchIndexUpdates {\n runPendingSearchIndexUpdates {\n success\n }\n }\n"])));
|
|
709
|
-
var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$7, templateObject_5$7, templateObject_6$7, templateObject_7$7, templateObject_8$6, templateObject_9$6, templateObject_10$4, templateObject_11$3, templateObject_12$3, templateObject_13$3, templateObject_14$3, templateObject_15$3, templateObject_16$3, templateObject_17$3, templateObject_18$3, templateObject_19$3, templateObject_20$3, templateObject_21$3, templateObject_22$
|
|
709
|
+
var templateObject_1$7, templateObject_2$7, templateObject_3$7, templateObject_4$7, templateObject_5$7, templateObject_6$7, templateObject_7$7, templateObject_8$6, templateObject_9$6, templateObject_10$4, templateObject_11$3, templateObject_12$3, templateObject_13$3, templateObject_14$3, templateObject_15$3, templateObject_16$3, templateObject_17$3, templateObject_18$3, templateObject_19$3, templateObject_20$3, templateObject_21$3, templateObject_22$3, templateObject_23$2, templateObject_24$2, templateObject_25$2, templateObject_26$1, templateObject_27$1, templateObject_28$1, templateObject_29$1, templateObject_30$1, templateObject_31$1, templateObject_32$1, templateObject_33$1, templateObject_34$1, templateObject_35$1, templateObject_36$1, templateObject_37$1, templateObject_38$1, templateObject_39$1, templateObject_40$1, templateObject_41$1, templateObject_42$1, templateObject_43$1, templateObject_44$1, templateObject_45, templateObject_46, templateObject_47, templateObject_48, templateObject_49, templateObject_50, templateObject_51, templateObject_52, templateObject_53, templateObject_54, templateObject_55, templateObject_56, templateObject_57, templateObject_58, templateObject_59, templateObject_60, templateObject_61, templateObject_62, templateObject_63, templateObject_64, templateObject_65;
|
|
710
710
|
|
|
711
711
|
function initializeServerConfigService(serverConfigService) {
|
|
712
712
|
return serverConfigService.init();
|
|
@@ -932,13 +932,46 @@
|
|
|
932
932
|
* To be used before submitting the entity for a create or update request.
|
|
933
933
|
*/
|
|
934
934
|
function removeReadonlyCustomFields(variables, customFieldConfig) {
|
|
935
|
-
|
|
936
|
-
|
|
935
|
+
var e_2, _a, e_3, _b;
|
|
936
|
+
if (!Array.isArray(variables)) {
|
|
937
|
+
if (Array.isArray(variables.input)) {
|
|
938
|
+
try {
|
|
939
|
+
for (var _c = __values(variables.input), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
940
|
+
var input = _d.value;
|
|
941
|
+
removeReadonly(input, customFieldConfig);
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
945
|
+
finally {
|
|
946
|
+
try {
|
|
947
|
+
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
|
|
948
|
+
}
|
|
949
|
+
finally { if (e_2) throw e_2.error; }
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
else {
|
|
953
|
+
removeReadonly(variables.input, customFieldConfig);
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
else {
|
|
957
|
+
try {
|
|
958
|
+
for (var variables_1 = __values(variables), variables_1_1 = variables_1.next(); !variables_1_1.done; variables_1_1 = variables_1.next()) {
|
|
959
|
+
var input = variables_1_1.value;
|
|
960
|
+
removeReadonly(input, customFieldConfig);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
964
|
+
finally {
|
|
965
|
+
try {
|
|
966
|
+
if (variables_1_1 && !variables_1_1.done && (_b = variables_1.return)) _b.call(variables_1);
|
|
967
|
+
}
|
|
968
|
+
finally { if (e_3) throw e_3.error; }
|
|
969
|
+
}
|
|
937
970
|
}
|
|
938
971
|
return removeReadonly(variables, customFieldConfig);
|
|
939
972
|
}
|
|
940
973
|
function removeReadonly(input, customFieldConfig) {
|
|
941
|
-
var
|
|
974
|
+
var e_4, _a, e_5, _b;
|
|
942
975
|
try {
|
|
943
976
|
for (var customFieldConfig_1 = __values(customFieldConfig), customFieldConfig_1_1 = customFieldConfig_1.next(); !customFieldConfig_1_1.done; customFieldConfig_1_1 = customFieldConfig_1.next()) {
|
|
944
977
|
var field = customFieldConfig_1_1.value;
|
|
@@ -946,7 +979,7 @@
|
|
|
946
979
|
if (field.type === 'localeString') {
|
|
947
980
|
if (hasTranslations(input)) {
|
|
948
981
|
try {
|
|
949
|
-
for (var _c = (
|
|
982
|
+
for (var _c = (e_5 = void 0, __values(input.translations)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
950
983
|
var translation = _d.value;
|
|
951
984
|
if (hasCustomFields$1(translation) &&
|
|
952
985
|
translation.customFields[field.name] !== undefined) {
|
|
@@ -954,12 +987,12 @@
|
|
|
954
987
|
}
|
|
955
988
|
}
|
|
956
989
|
}
|
|
957
|
-
catch (
|
|
990
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
958
991
|
finally {
|
|
959
992
|
try {
|
|
960
993
|
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
961
994
|
}
|
|
962
|
-
finally { if (
|
|
995
|
+
finally { if (e_5) throw e_5.error; }
|
|
963
996
|
}
|
|
964
997
|
}
|
|
965
998
|
}
|
|
@@ -971,12 +1004,12 @@
|
|
|
971
1004
|
}
|
|
972
1005
|
}
|
|
973
1006
|
}
|
|
974
|
-
catch (
|
|
1007
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
975
1008
|
finally {
|
|
976
1009
|
try {
|
|
977
1010
|
if (customFieldConfig_1_1 && !customFieldConfig_1_1.done && (_a = customFieldConfig_1.return)) _a.call(customFieldConfig_1);
|
|
978
1011
|
}
|
|
979
|
-
finally { if (
|
|
1012
|
+
finally { if (e_4) throw e_4.error; }
|
|
980
1013
|
}
|
|
981
1014
|
return input;
|
|
982
1015
|
}
|
|
@@ -1217,7 +1250,7 @@
|
|
|
1217
1250
|
var GET_PRODUCT_SIMPLE = apolloAngular.gql(templateObject_19$2 || (templateObject_19$2 = __makeTemplateObject(["\n query GetProductSimple($id: ID!) {\n product(id: $id) {\n id\n name\n featuredAsset {\n ...Asset\n }\n }\n }\n ", "\n"], ["\n query GetProductSimple($id: ID!) {\n product(id: $id) {\n id\n name\n featuredAsset {\n ...Asset\n }\n }\n }\n ", "\n"])), ASSET_FRAGMENT);
|
|
1218
1251
|
var GET_PRODUCT_LIST = apolloAngular.gql(templateObject_20$2 || (templateObject_20$2 = __makeTemplateObject(["\n query GetProductList($options: ProductListOptions) {\n products(options: $options) {\n items {\n id\n createdAt\n updatedAt\n enabled\n languageCode\n name\n slug\n featuredAsset {\n id\n createdAt\n updatedAt\n preview\n }\n }\n totalItems\n }\n }\n"], ["\n query GetProductList($options: ProductListOptions) {\n products(options: $options) {\n items {\n id\n createdAt\n updatedAt\n enabled\n languageCode\n name\n slug\n featuredAsset {\n id\n createdAt\n updatedAt\n preview\n }\n }\n totalItems\n }\n }\n"])));
|
|
1219
1252
|
var GET_PRODUCT_OPTION_GROUPS = apolloAngular.gql(templateObject_21$2 || (templateObject_21$2 = __makeTemplateObject(["\n query GetProductOptionGroups($filterTerm: String) {\n productOptionGroups(filterTerm: $filterTerm) {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n options {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n }\n }\n }\n"], ["\n query GetProductOptionGroups($filterTerm: String) {\n productOptionGroups(filterTerm: $filterTerm) {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n options {\n id\n createdAt\n updatedAt\n languageCode\n code\n name\n }\n }\n }\n"])));
|
|
1220
|
-
var GET_ASSET_LIST = apolloAngular.gql(templateObject_22$
|
|
1253
|
+
var GET_ASSET_LIST = apolloAngular.gql(templateObject_22$2 || (templateObject_22$2 = __makeTemplateObject(["\n query GetAssetList($options: AssetListOptions) {\n assets(options: $options) {\n items {\n ...Asset\n tags {\n ...Tag\n }\n }\n totalItems\n }\n }\n ", "\n ", "\n"], ["\n query GetAssetList($options: AssetListOptions) {\n assets(options: $options) {\n items {\n ...Asset\n tags {\n ...Tag\n }\n }\n totalItems\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, TAG_FRAGMENT);
|
|
1221
1254
|
var GET_ASSET = apolloAngular.gql(templateObject_23$1 || (templateObject_23$1 = __makeTemplateObject(["\n query GetAsset($id: ID!) {\n asset(id: $id) {\n ...Asset\n tags {\n ...Tag\n }\n }\n }\n ", "\n ", "\n"], ["\n query GetAsset($id: ID!) {\n asset(id: $id) {\n ...Asset\n tags {\n ...Tag\n }\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, TAG_FRAGMENT);
|
|
1222
1255
|
var CREATE_ASSETS = apolloAngular.gql(templateObject_24$1 || (templateObject_24$1 = __makeTemplateObject(["\n mutation CreateAssets($input: [CreateAssetInput!]!) {\n createAssets(input: $input) {\n ...Asset\n ... on Asset {\n tags {\n ...Tag\n }\n }\n ... on ErrorResult {\n message\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation CreateAssets($input: [CreateAssetInput!]!) {\n createAssets(input: $input) {\n ...Asset\n ... on Asset {\n tags {\n ...Tag\n }\n }\n ... on ErrorResult {\n message\n }\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, TAG_FRAGMENT);
|
|
1223
1256
|
var UPDATE_ASSET = apolloAngular.gql(templateObject_25$1 || (templateObject_25$1 = __makeTemplateObject(["\n mutation UpdateAsset($input: UpdateAssetInput!) {\n updateAsset(input: $input) {\n ...Asset\n tags {\n ...Tag\n }\n }\n }\n ", "\n ", "\n"], ["\n mutation UpdateAsset($input: UpdateAssetInput!) {\n updateAsset(input: $input) {\n ...Asset\n tags {\n ...Tag\n }\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, TAG_FRAGMENT);
|
|
@@ -1240,7 +1273,7 @@
|
|
|
1240
1273
|
var CREATE_TAG = apolloAngular.gql(templateObject_42 || (templateObject_42 = __makeTemplateObject(["\n mutation CreateTag($input: CreateTagInput!) {\n createTag(input: $input) {\n ...Tag\n }\n }\n ", "\n"], ["\n mutation CreateTag($input: CreateTagInput!) {\n createTag(input: $input) {\n ...Tag\n }\n }\n ", "\n"])), TAG_FRAGMENT);
|
|
1241
1274
|
var UPDATE_TAG = apolloAngular.gql(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n mutation UpdateTag($input: UpdateTagInput!) {\n updateTag(input: $input) {\n ...Tag\n }\n }\n ", "\n"], ["\n mutation UpdateTag($input: UpdateTagInput!) {\n updateTag(input: $input) {\n ...Tag\n }\n }\n ", "\n"])), TAG_FRAGMENT);
|
|
1242
1275
|
var DELETE_TAG = apolloAngular.gql(templateObject_44 || (templateObject_44 = __makeTemplateObject(["\n mutation DeleteTag($id: ID!) {\n deleteTag(id: $id) {\n message\n result\n }\n }\n"], ["\n mutation DeleteTag($id: ID!) {\n deleteTag(id: $id) {\n message\n result\n }\n }\n"])));
|
|
1243
|
-
var templateObject_1$6, templateObject_2$6, templateObject_3$6, templateObject_4$6, templateObject_5$6, templateObject_6$6, templateObject_7$6, templateObject_8$5, templateObject_9$5, templateObject_10$3, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$2, templateObject_16$2, templateObject_17$2, templateObject_18$2, templateObject_19$2, templateObject_20$2, templateObject_21$2, templateObject_22$
|
|
1276
|
+
var templateObject_1$6, templateObject_2$6, templateObject_3$6, templateObject_4$6, templateObject_5$6, templateObject_6$6, templateObject_7$6, templateObject_8$5, templateObject_9$5, templateObject_10$3, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$2, templateObject_16$2, templateObject_17$2, templateObject_18$2, templateObject_19$2, templateObject_20$2, templateObject_21$2, templateObject_22$2, templateObject_23$1, templateObject_24$1, templateObject_25$1, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43, templateObject_44;
|
|
1244
1277
|
|
|
1245
1278
|
var GET_COLLECTION_FILTERS = apolloAngular.gql(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n query GetCollectionFilters {\n collectionFilters {\n ...ConfigurableOperationDef\n }\n }\n ", "\n"], ["\n query GetCollectionFilters {\n collectionFilters {\n ...ConfigurableOperationDef\n }\n }\n ", "\n"])), CONFIGURABLE_OPERATION_DEF_FRAGMENT);
|
|
1246
1279
|
var COLLECTION_FRAGMENT = apolloAngular.gql(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n fragment Collection on Collection {\n id\n createdAt\n updatedAt\n name\n slug\n description\n isPrivate\n languageCode\n featuredAsset {\n ...Asset\n }\n assets {\n ...Asset\n }\n filters {\n ...ConfigurableOperation\n }\n translations {\n id\n languageCode\n name\n slug\n description\n }\n parent {\n id\n name\n }\n children {\n id\n name\n }\n }\n ", "\n ", "\n"], ["\n fragment Collection on Collection {\n id\n createdAt\n updatedAt\n name\n slug\n description\n isPrivate\n languageCode\n featuredAsset {\n ...Asset\n }\n assets {\n ...Asset\n }\n filters {\n ...ConfigurableOperation\n }\n translations {\n id\n languageCode\n name\n slug\n description\n }\n parent {\n id\n name\n }\n children {\n id\n name\n }\n }\n ", "\n ", "\n"])), ASSET_FRAGMENT, CONFIGURABLE_OPERATION_FRAGMENT);
|
|
@@ -1337,18 +1370,19 @@
|
|
|
1337
1370
|
var DELETE_CUSTOMER = apolloAngular.gql(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n mutation DeleteCustomer($id: ID!) {\n deleteCustomer(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCustomer($id: ID!) {\n deleteCustomer(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1338
1371
|
var CREATE_CUSTOMER_ADDRESS = apolloAngular.gql(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n mutation CreateCustomerAddress($customerId: ID!, $input: CreateAddressInput!) {\n createCustomerAddress(customerId: $customerId, input: $input) {\n ...Address\n }\n }\n ", "\n"], ["\n mutation CreateCustomerAddress($customerId: ID!, $input: CreateAddressInput!) {\n createCustomerAddress(customerId: $customerId, input: $input) {\n ...Address\n }\n }\n ", "\n"])), ADDRESS_FRAGMENT);
|
|
1339
1372
|
var UPDATE_CUSTOMER_ADDRESS = apolloAngular.gql(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n mutation UpdateCustomerAddress($input: UpdateAddressInput!) {\n updateCustomerAddress(input: $input) {\n ...Address\n }\n }\n ", "\n"], ["\n mutation UpdateCustomerAddress($input: UpdateAddressInput!) {\n updateCustomerAddress(input: $input) {\n ...Address\n }\n }\n ", "\n"])), ADDRESS_FRAGMENT);
|
|
1340
|
-
var
|
|
1341
|
-
var
|
|
1342
|
-
var
|
|
1343
|
-
var
|
|
1344
|
-
var
|
|
1345
|
-
var
|
|
1346
|
-
var
|
|
1347
|
-
var
|
|
1348
|
-
var
|
|
1349
|
-
var
|
|
1350
|
-
var
|
|
1351
|
-
var
|
|
1373
|
+
var DELETE_CUSTOMER_ADDRESS = apolloAngular.gql(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n mutation DeleteCustomerAddress($id: ID!) {\n deleteCustomerAddress(id: $id) {\n success\n }\n }\n"], ["\n mutation DeleteCustomerAddress($id: ID!) {\n deleteCustomerAddress(id: $id) {\n success\n }\n }\n"])));
|
|
1374
|
+
var CREATE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n mutation CreateCustomerGroup($input: CreateCustomerGroupInput!) {\n createCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation CreateCustomerGroup($input: CreateCustomerGroupInput!) {\n createCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1375
|
+
var UPDATE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {\n updateCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation UpdateCustomerGroup($input: UpdateCustomerGroupInput!) {\n updateCustomerGroup(input: $input) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1376
|
+
var DELETE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n mutation DeleteCustomerGroup($id: ID!) {\n deleteCustomerGroup(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCustomerGroup($id: ID!) {\n deleteCustomerGroup(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1377
|
+
var GET_CUSTOMER_GROUPS = apolloAngular.gql(templateObject_15$1 || (templateObject_15$1 = __makeTemplateObject(["\n query GetCustomerGroups($options: CustomerGroupListOptions) {\n customerGroups(options: $options) {\n items {\n ...CustomerGroup\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetCustomerGroups($options: CustomerGroupListOptions) {\n customerGroups(options: $options) {\n items {\n ...CustomerGroup\n }\n totalItems\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1378
|
+
var GET_CUSTOMER_GROUP_WITH_CUSTOMERS = apolloAngular.gql(templateObject_16$1 || (templateObject_16$1 = __makeTemplateObject(["\n query GetCustomerGroupWithCustomers($id: ID!, $options: CustomerListOptions) {\n customerGroup(id: $id) {\n ...CustomerGroup\n customers(options: $options) {\n items {\n id\n createdAt\n updatedAt\n emailAddress\n firstName\n lastName\n }\n totalItems\n }\n }\n }\n ", "\n"], ["\n query GetCustomerGroupWithCustomers($id: ID!, $options: CustomerListOptions) {\n customerGroup(id: $id) {\n ...CustomerGroup\n customers(options: $options) {\n items {\n id\n createdAt\n updatedAt\n emailAddress\n firstName\n lastName\n }\n totalItems\n }\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1379
|
+
var ADD_CUSTOMERS_TO_GROUP = apolloAngular.gql(templateObject_17$1 || (templateObject_17$1 = __makeTemplateObject(["\n mutation AddCustomersToGroup($groupId: ID!, $customerIds: [ID!]!) {\n addCustomersToGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation AddCustomersToGroup($groupId: ID!, $customerIds: [ID!]!) {\n addCustomersToGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1380
|
+
var REMOVE_CUSTOMERS_FROM_GROUP = apolloAngular.gql(templateObject_18$1 || (templateObject_18$1 = __makeTemplateObject(["\n mutation RemoveCustomersFromGroup($groupId: ID!, $customerIds: [ID!]!) {\n removeCustomersFromGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"], ["\n mutation RemoveCustomersFromGroup($groupId: ID!, $customerIds: [ID!]!) {\n removeCustomersFromGroup(customerGroupId: $groupId, customerIds: $customerIds) {\n ...CustomerGroup\n }\n }\n ", "\n"])), CUSTOMER_GROUP_FRAGMENT);
|
|
1381
|
+
var GET_CUSTOMER_HISTORY = apolloAngular.gql(templateObject_19$1 || (templateObject_19$1 = __makeTemplateObject(["\n query GetCustomerHistory($id: ID!, $options: HistoryEntryListOptions) {\n customer(id: $id) {\n id\n history(options: $options) {\n totalItems\n items {\n id\n type\n createdAt\n isPublic\n administrator {\n id\n firstName\n lastName\n }\n data\n }\n }\n }\n }\n"], ["\n query GetCustomerHistory($id: ID!, $options: HistoryEntryListOptions) {\n customer(id: $id) {\n id\n history(options: $options) {\n totalItems\n items {\n id\n type\n createdAt\n isPublic\n administrator {\n id\n firstName\n lastName\n }\n data\n }\n }\n }\n }\n"])));
|
|
1382
|
+
var ADD_NOTE_TO_CUSTOMER = apolloAngular.gql(templateObject_20$1 || (templateObject_20$1 = __makeTemplateObject(["\n mutation AddNoteToCustomer($input: AddNoteToCustomerInput!) {\n addNoteToCustomer(input: $input) {\n id\n }\n }\n"], ["\n mutation AddNoteToCustomer($input: AddNoteToCustomerInput!) {\n addNoteToCustomer(input: $input) {\n id\n }\n }\n"])));
|
|
1383
|
+
var UPDATE_CUSTOMER_NOTE = apolloAngular.gql(templateObject_21$1 || (templateObject_21$1 = __makeTemplateObject(["\n mutation UpdateCustomerNote($input: UpdateCustomerNoteInput!) {\n updateCustomerNote(input: $input) {\n id\n data\n isPublic\n }\n }\n"], ["\n mutation UpdateCustomerNote($input: UpdateCustomerNoteInput!) {\n updateCustomerNote(input: $input) {\n id\n data\n isPublic\n }\n }\n"])));
|
|
1384
|
+
var DELETE_CUSTOMER_NOTE = apolloAngular.gql(templateObject_22$1 || (templateObject_22$1 = __makeTemplateObject(["\n mutation DeleteCustomerNote($id: ID!) {\n deleteCustomerNote(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteCustomerNote($id: ID!) {\n deleteCustomerNote(id: $id) {\n result\n message\n }\n }\n"])));
|
|
1385
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$4, templateObject_4$4, templateObject_5$4, templateObject_6$4, templateObject_7$4, templateObject_8$3, templateObject_9$3, templateObject_10$2, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1;
|
|
1352
1386
|
|
|
1353
1387
|
var CustomerDataService = /** @class */ (function () {
|
|
1354
1388
|
function CustomerDataService(baseDataService) {
|
|
@@ -1401,6 +1435,9 @@
|
|
|
1401
1435
|
input: input,
|
|
1402
1436
|
});
|
|
1403
1437
|
};
|
|
1438
|
+
CustomerDataService.prototype.deleteCustomerAddress = function (id) {
|
|
1439
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER_ADDRESS, { id: id });
|
|
1440
|
+
};
|
|
1404
1441
|
CustomerDataService.prototype.createCustomerGroup = function (input) {
|
|
1405
1442
|
return this.baseDataService.mutate(CREATE_CUSTOMER_GROUP, {
|
|
1406
1443
|
input: input,
|
|
@@ -1544,7 +1581,7 @@
|
|
|
1544
1581
|
var ORDER_FRAGMENT = apolloAngular.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n fragment Order on Order {\n id\n createdAt\n updatedAt\n orderPlacedAt\n code\n state\n nextStates\n total\n currencyCode\n customer {\n id\n firstName\n lastName\n }\n shippingLines {\n shippingMethod {\n name\n }\n }\n }\n"], ["\n fragment Order on Order {\n id\n createdAt\n updatedAt\n orderPlacedAt\n code\n state\n nextStates\n total\n currencyCode\n customer {\n id\n firstName\n lastName\n }\n shippingLines {\n shippingMethod {\n name\n }\n }\n }\n"])));
|
|
1545
1582
|
var FULFILLMENT_FRAGMENT = apolloAngular.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n fragment Fulfillment on Fulfillment {\n id\n state\n nextStates\n createdAt\n updatedAt\n method\n orderItems {\n id\n }\n trackingCode\n }\n"], ["\n fragment Fulfillment on Fulfillment {\n id\n state\n nextStates\n createdAt\n updatedAt\n method\n orderItems {\n id\n }\n trackingCode\n }\n"])));
|
|
1546
1583
|
var ORDER_LINE_FRAGMENT = apolloAngular.gql(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n fragment OrderLine on OrderLine {\n id\n featuredAsset {\n preview\n }\n productVariant {\n id\n name\n sku\n trackInventory\n stockOnHand\n }\n discounts {\n ...Discount\n }\n unitPrice\n unitPriceWithTax\n proratedUnitPrice\n proratedUnitPriceWithTax\n quantity\n items {\n id\n unitPrice\n unitPriceWithTax\n taxRate\n refundId\n cancelled\n fulfillment {\n ...Fulfillment\n }\n }\n linePrice\n lineTax\n linePriceWithTax\n discountedLinePrice\n discountedLinePriceWithTax\n }\n"], ["\n fragment OrderLine on OrderLine {\n id\n featuredAsset {\n preview\n }\n productVariant {\n id\n name\n sku\n trackInventory\n stockOnHand\n }\n discounts {\n ...Discount\n }\n unitPrice\n unitPriceWithTax\n proratedUnitPrice\n proratedUnitPriceWithTax\n quantity\n items {\n id\n unitPrice\n unitPriceWithTax\n taxRate\n refundId\n cancelled\n fulfillment {\n ...Fulfillment\n }\n }\n linePrice\n lineTax\n linePriceWithTax\n discountedLinePrice\n discountedLinePriceWithTax\n }\n"])));
|
|
1547
|
-
var ORDER_DETAIL_FRAGMENT = apolloAngular.gql(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n fragment OrderDetail on Order {\n id\n createdAt\n updatedAt\n code\n state\n nextStates\n active\n customer {\n id\n firstName\n lastName\n }\n lines {\n ...OrderLine\n }\n surcharges {\n id\n sku\n description\n price\n priceWithTax\n taxRate\n }\n discounts {\n ...Discount\n }\n promotions {\n id\n couponCode\n }\n subTotal\n subTotalWithTax\n total\n totalWithTax\n currencyCode\n shipping\n shippingWithTax\n shippingLines {\n shippingMethod {\n id\n code\n name\n fulfillmentHandlerCode\n description\n }\n }\n taxSummary {\n description\n taxBase\n taxRate\n taxTotal\n }\n shippingAddress {\n ...OrderAddress\n }\n billingAddress {\n ...OrderAddress\n }\n payments {\n id\n createdAt\n transactionId\n amount\n method\n state\n nextStates\n errorMessage\n metadata\n refunds {\n id\n createdAt\n state\n items\n adjustment\n total\n paymentId\n reason\n transactionId\n method\n metadata\n orderItems {\n id\n }\n }\n }\n fulfillments {\n ...Fulfillment\n }\n modifications {\n id\n createdAt\n isSettled\n priceChange\n note\n payment {\n id\n amount\n }\n orderItems {\n id\n }\n refund {\n id\n paymentId\n total\n }\n surcharges {\n id\n }\n }\n }\n ", "\n ", "\n ", "\n ", "\n"], ["\n fragment OrderDetail on Order {\n id\n createdAt\n updatedAt\n code\n state\n nextStates\n active\n customer {\n id\n firstName\n lastName\n }\n lines {\n ...OrderLine\n }\n surcharges {\n id\n sku\n description\n price\n priceWithTax\n taxRate\n }\n discounts {\n ...Discount\n }\n promotions {\n id\n couponCode\n }\n subTotal\n subTotalWithTax\n total\n totalWithTax\n currencyCode\n shipping\n shippingWithTax\n shippingLines {\n shippingMethod {\n id\n code\n name\n fulfillmentHandlerCode\n description\n }\n }\n taxSummary {\n description\n taxBase\n taxRate\n taxTotal\n }\n shippingAddress {\n ...OrderAddress\n }\n billingAddress {\n ...OrderAddress\n }\n payments {\n id\n createdAt\n transactionId\n amount\n method\n state\n nextStates\n errorMessage\n metadata\n refunds {\n id\n createdAt\n state\n items\n adjustment\n total\n paymentId\n reason\n transactionId\n method\n metadata\n orderItems {\n id\n }\n }\n }\n fulfillments {\n ...Fulfillment\n }\n modifications {\n id\n createdAt\n isSettled\n priceChange\n note\n payment {\n id\n amount\n }\n orderItems {\n id\n }\n refund {\n id\n paymentId\n total\n }\n surcharges {\n id\n }\n }\n }\n ", "\n ", "\n ", "\n ", "\n"])), DISCOUNT_FRAGMENT, ORDER_ADDRESS_FRAGMENT, FULFILLMENT_FRAGMENT, ORDER_LINE_FRAGMENT);
|
|
1584
|
+
var ORDER_DETAIL_FRAGMENT = apolloAngular.gql(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n fragment OrderDetail on Order {\n id\n createdAt\n updatedAt\n code\n state\n nextStates\n active\n couponCodes\n customer {\n id\n firstName\n lastName\n }\n lines {\n ...OrderLine\n }\n surcharges {\n id\n sku\n description\n price\n priceWithTax\n taxRate\n }\n discounts {\n ...Discount\n }\n promotions {\n id\n couponCode\n }\n subTotal\n subTotalWithTax\n total\n totalWithTax\n currencyCode\n shipping\n shippingWithTax\n shippingLines {\n shippingMethod {\n id\n code\n name\n fulfillmentHandlerCode\n description\n }\n }\n taxSummary {\n description\n taxBase\n taxRate\n taxTotal\n }\n shippingAddress {\n ...OrderAddress\n }\n billingAddress {\n ...OrderAddress\n }\n payments {\n id\n createdAt\n transactionId\n amount\n method\n state\n nextStates\n errorMessage\n metadata\n refunds {\n id\n createdAt\n state\n items\n adjustment\n total\n paymentId\n reason\n transactionId\n method\n metadata\n orderItems {\n id\n }\n }\n }\n fulfillments {\n ...Fulfillment\n }\n modifications {\n id\n createdAt\n isSettled\n priceChange\n note\n payment {\n id\n amount\n }\n orderItems {\n id\n }\n refund {\n id\n paymentId\n total\n }\n surcharges {\n id\n }\n }\n }\n ", "\n ", "\n ", "\n ", "\n"], ["\n fragment OrderDetail on Order {\n id\n createdAt\n updatedAt\n code\n state\n nextStates\n active\n couponCodes\n customer {\n id\n firstName\n lastName\n }\n lines {\n ...OrderLine\n }\n surcharges {\n id\n sku\n description\n price\n priceWithTax\n taxRate\n }\n discounts {\n ...Discount\n }\n promotions {\n id\n couponCode\n }\n subTotal\n subTotalWithTax\n total\n totalWithTax\n currencyCode\n shipping\n shippingWithTax\n shippingLines {\n shippingMethod {\n id\n code\n name\n fulfillmentHandlerCode\n description\n }\n }\n taxSummary {\n description\n taxBase\n taxRate\n taxTotal\n }\n shippingAddress {\n ...OrderAddress\n }\n billingAddress {\n ...OrderAddress\n }\n payments {\n id\n createdAt\n transactionId\n amount\n method\n state\n nextStates\n errorMessage\n metadata\n refunds {\n id\n createdAt\n state\n items\n adjustment\n total\n paymentId\n reason\n transactionId\n method\n metadata\n orderItems {\n id\n }\n }\n }\n fulfillments {\n ...Fulfillment\n }\n modifications {\n id\n createdAt\n isSettled\n priceChange\n note\n payment {\n id\n amount\n }\n orderItems {\n id\n }\n refund {\n id\n paymentId\n total\n }\n surcharges {\n id\n }\n }\n }\n ", "\n ", "\n ", "\n ", "\n"])), DISCOUNT_FRAGMENT, ORDER_ADDRESS_FRAGMENT, FULFILLMENT_FRAGMENT, ORDER_LINE_FRAGMENT);
|
|
1548
1585
|
var GET_ORDERS_LIST = apolloAngular.gql(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n query GetOrderList($options: OrderListOptions) {\n orders(options: $options) {\n items {\n ...Order\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetOrderList($options: OrderListOptions) {\n orders(options: $options) {\n items {\n ...Order\n }\n totalItems\n }\n }\n ", "\n"])), ORDER_FRAGMENT);
|
|
1549
1586
|
var GET_ORDER = apolloAngular.gql(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n query GetOrder($id: ID!) {\n order(id: $id) {\n ...OrderDetail\n }\n }\n ", "\n"], ["\n query GetOrder($id: ID!) {\n order(id: $id) {\n ...OrderDetail\n }\n }\n ", "\n"])), ORDER_DETAIL_FRAGMENT);
|
|
1550
1587
|
var SETTLE_PAYMENT = apolloAngular.gql(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n mutation SettlePayment($id: ID!) {\n settlePayment(id: $id) {\n ... on Payment {\n id\n transactionId\n amount\n method\n state\n metadata\n }\n ...ErrorResult\n ... on SettlePaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n"], ["\n mutation SettlePayment($id: ID!) {\n settlePayment(id: $id) {\n ... on Payment {\n id\n transactionId\n amount\n method\n state\n metadata\n }\n ...ErrorResult\n ... on SettlePaymentError {\n paymentErrorMessage\n }\n ... on PaymentStateTransitionError {\n transitionError\n }\n ... on OrderStateTransitionError {\n transitionError\n }\n }\n }\n ", "\n"])), ERROR_RESULT_FRAGMENT);
|
|
@@ -1668,6 +1705,7 @@
|
|
|
1668
1705
|
(function (AdjustmentType) {
|
|
1669
1706
|
AdjustmentType["PROMOTION"] = "PROMOTION";
|
|
1670
1707
|
AdjustmentType["DISTRIBUTED_ORDER_PROMOTION"] = "DISTRIBUTED_ORDER_PROMOTION";
|
|
1708
|
+
AdjustmentType["OTHER"] = "OTHER";
|
|
1671
1709
|
})(exports.AdjustmentType || (exports.AdjustmentType = {}));
|
|
1672
1710
|
exports.AssetType = void 0;
|
|
1673
1711
|
(function (AssetType) {
|
|
@@ -2041,6 +2079,9 @@
|
|
|
2041
2079
|
ErrorCode["ORDER_LIMIT_ERROR"] = "ORDER_LIMIT_ERROR";
|
|
2042
2080
|
ErrorCode["NEGATIVE_QUANTITY_ERROR"] = "NEGATIVE_QUANTITY_ERROR";
|
|
2043
2081
|
ErrorCode["INSUFFICIENT_STOCK_ERROR"] = "INSUFFICIENT_STOCK_ERROR";
|
|
2082
|
+
ErrorCode["COUPON_CODE_INVALID_ERROR"] = "COUPON_CODE_INVALID_ERROR";
|
|
2083
|
+
ErrorCode["COUPON_CODE_EXPIRED_ERROR"] = "COUPON_CODE_EXPIRED_ERROR";
|
|
2084
|
+
ErrorCode["COUPON_CODE_LIMIT_ERROR"] = "COUPON_CODE_LIMIT_ERROR";
|
|
2044
2085
|
})(exports.ErrorCode || (exports.ErrorCode = {}));
|
|
2045
2086
|
exports.GlobalFlag = void 0;
|
|
2046
2087
|
(function (GlobalFlag) {
|
|
@@ -2863,13 +2904,14 @@
|
|
|
2863
2904
|
function PromotionDataService(baseDataService) {
|
|
2864
2905
|
this.baseDataService = baseDataService;
|
|
2865
2906
|
}
|
|
2866
|
-
PromotionDataService.prototype.getPromotions = function (take, skip) {
|
|
2907
|
+
PromotionDataService.prototype.getPromotions = function (take, skip, filter) {
|
|
2867
2908
|
if (take === void 0) { take = 10; }
|
|
2868
2909
|
if (skip === void 0) { skip = 0; }
|
|
2869
2910
|
return this.baseDataService.query(GET_PROMOTION_LIST, {
|
|
2870
2911
|
options: {
|
|
2871
2912
|
take: take,
|
|
2872
2913
|
skip: skip,
|
|
2914
|
+
filter: filter,
|
|
2873
2915
|
},
|
|
2874
2916
|
});
|
|
2875
2917
|
};
|
|
@@ -3506,9 +3548,11 @@
|
|
|
3506
3548
|
{ type: ServerConfigService }
|
|
3507
3549
|
]; };
|
|
3508
3550
|
|
|
3551
|
+
/** @dynamic */
|
|
3509
3552
|
var I18nService = /** @class */ (function () {
|
|
3510
|
-
function I18nService(ngxTranslate) {
|
|
3553
|
+
function I18nService(ngxTranslate, document) {
|
|
3511
3554
|
this.ngxTranslate = ngxTranslate;
|
|
3555
|
+
this.document = document;
|
|
3512
3556
|
this._availableLanguages = [];
|
|
3513
3557
|
}
|
|
3514
3558
|
Object.defineProperty(I18nService.prototype, "availableLanguages", {
|
|
@@ -3528,7 +3572,11 @@
|
|
|
3528
3572
|
* Set the UI language
|
|
3529
3573
|
*/
|
|
3530
3574
|
I18nService.prototype.setLanguage = function (language) {
|
|
3575
|
+
var _a;
|
|
3531
3576
|
this.ngxTranslate.use(language);
|
|
3577
|
+
if ((_a = this.document) === null || _a === void 0 ? void 0 : _a.documentElement) {
|
|
3578
|
+
this.document.documentElement.lang = language;
|
|
3579
|
+
}
|
|
3532
3580
|
};
|
|
3533
3581
|
/**
|
|
3534
3582
|
* Set the available UI languages
|
|
@@ -3544,14 +3592,15 @@
|
|
|
3544
3592
|
};
|
|
3545
3593
|
return I18nService;
|
|
3546
3594
|
}());
|
|
3547
|
-
I18nService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function I18nService_Factory() { return new I18nService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: I18nService, providedIn: "root" });
|
|
3595
|
+
I18nService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function I18nService_Factory() { return new I18nService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace.DOCUMENT)); }, token: I18nService, providedIn: "root" });
|
|
3548
3596
|
I18nService.decorators = [
|
|
3549
3597
|
{ type: i0.Injectable, args: [{
|
|
3550
3598
|
providedIn: 'root',
|
|
3551
3599
|
},] }
|
|
3552
3600
|
];
|
|
3553
3601
|
I18nService.ctorParameters = function () { return [
|
|
3554
|
-
{ type: i1$2.TranslateService }
|
|
3602
|
+
{ type: i1$2.TranslateService },
|
|
3603
|
+
{ type: Document, decorators: [{ type: i0.Inject, args: [i1.DOCUMENT,] }] }
|
|
3555
3604
|
]; };
|
|
3556
3605
|
|
|
3557
3606
|
/**
|
|
@@ -5025,8 +5074,8 @@
|
|
|
5025
5074
|
MainNavComponent.decorators = [
|
|
5026
5075
|
{ type: i0.Component, args: [{
|
|
5027
5076
|
selector: 'vdr-main-nav',
|
|
5028
|
-
template: "<nav class=\"sidenav\" [clr-nav-level]=\"2\">\r\n <section class=\"sidenav-content\">\r\n <ng-container *ngFor=\"let section of navBuilderService.navMenuConfig$ | async\">\r\n <section\r\n class=\"nav-group\"\r\n [attr.data-section-id]=\"section.id\"\r\n [class.collapsible]=\"section.collapsible\"\r\n *ngIf=\"shouldDisplayLink(section)\"\r\n >\r\n <vdr-ui-extension-point [locationId]=\"section.id\" api=\"navMenu\" [topPx]=\"-6\" [leftPx]=\"8\">\r\n <ng-container *ngIf=\"navBuilderService.sectionBadges[section.id] | async as sectionBadge\">\r\n <vdr-status-badge\r\n *ngIf=\"sectionBadge !== 'none'\"\r\n [type]=\"sectionBadge\"\r\n ></vdr-status-badge>\r\n </ng-container>\r\n <input [id]=\"section.id\" type=\"checkbox\" [checked]=\"section.collapsedByDefault\" />\r\n <label [for]=\"section.id\">{{ section.label | translate }}</label>\r\n <ul class=\"nav-list\">\r\n <ng-container *ngFor=\"let item of section.items\">\r\n <li *ngIf=\"shouldDisplayLink(item)\">\r\n <a\r\n class=\"nav-link\"\r\n [attr.data-item-id]=\"section.id\"\r\n [routerLink]=\"getRouterLink(item)\"\r\n routerLinkActive=\"active\"\r\n >\r\n <ng-container *ngIf=\"item.statusBadge | async as itemBadge\">\r\n <vdr-status-badge\r\n *ngIf=\"itemBadge.type !== 'none'\"\r\n [type]=\"itemBadge.type\"\r\n ></vdr-status-badge>\r\n </ng-container>\r\n <clr-icon [attr.shape]=\"item.icon || 'block'\" size=\"20\"></clr-icon>\r\n {{ item.label | translate }}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </vdr-ui-extension-point>\r\n </section>\r\n </ng-container>\r\n </section>\r\n</nav>\r\n",
|
|
5029
|
-
styles: [":host{order:-1;background-color:var(--clr-nav-background-color)}nav.sidenav{height:100%;width:10.8rem;border-right-color:var(--clr-sidenav-border-color)}.nav-list clr-icon{margin-right:12px}.nav-group,.nav-link{position:relative}.nav-group vdr-status-badge{left:10px;top:6px}.nav-link vdr-status-badge{left:25px;top:3px}\n"]
|
|
5077
|
+
template: "<nav class=\"sidenav\" [clr-nav-level]=\"2\">\r\n <section class=\"sidenav-content\">\r\n <ng-container *ngFor=\"let section of navBuilderService.navMenuConfig$ | async\">\r\n <section\r\n class=\"nav-group\"\r\n [attr.data-section-id]=\"section.id\"\r\n [class.collapsible]=\"section.collapsible\"\r\n *ngIf=\"shouldDisplayLink(section)\"\r\n >\r\n <vdr-ui-extension-point [locationId]=\"section.id\" api=\"navMenu\" [topPx]=\"-6\" [leftPx]=\"8\">\r\n <ng-container *ngIf=\"navBuilderService.sectionBadges[section.id] | async as sectionBadge\">\r\n <vdr-status-badge\r\n *ngIf=\"sectionBadge !== 'none'\"\r\n [type]=\"sectionBadge\"\r\n ></vdr-status-badge>\r\n </ng-container>\r\n <input [id]=\"section.id\" type=\"checkbox\" [checked]=\"section.collapsedByDefault\" />\r\n <label class=\"nav-group-header\" [for]=\"section.id\">{{ section.label | translate }}</label>\r\n <ul class=\"nav-list\">\r\n <ng-container *ngFor=\"let item of section.items\">\r\n <li *ngIf=\"shouldDisplayLink(item)\">\r\n <a\r\n class=\"nav-link\"\r\n [attr.data-item-id]=\"section.id\"\r\n [routerLink]=\"getRouterLink(item)\"\r\n routerLinkActive=\"active\"\r\n >\r\n <ng-container *ngIf=\"item.statusBadge | async as itemBadge\">\r\n <vdr-status-badge\r\n *ngIf=\"itemBadge.type !== 'none'\"\r\n [type]=\"itemBadge.type\"\r\n ></vdr-status-badge>\r\n </ng-container>\r\n <clr-icon [attr.shape]=\"item.icon || 'block'\" size=\"20\"></clr-icon>\r\n {{ item.label | translate }}\r\n </a>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </vdr-ui-extension-point>\r\n </section>\r\n </ng-container>\r\n </section>\r\n</nav>\r\n",
|
|
5078
|
+
styles: [":host{order:-1;background-color:var(--clr-nav-background-color)}nav.sidenav{height:100%;width:10.8rem;border-right-color:var(--clr-sidenav-border-color)}.sidenav .nav-group .nav-list{margin:0}.sidenav .nav-group .nav-group-header{margin:0;line-height:1.2}.sidenav .nav-group .nav-link{display:inline-flex;line-height:1rem;padding-right:.6rem}.nav-list clr-icon{flex-shrink:0;margin-right:12px}.nav-group{-webkit-hyphens:auto;hyphens:auto}.nav-group,.nav-link{position:relative}.nav-group vdr-status-badge{left:10px;top:6px}.nav-link vdr-status-badge{left:25px;top:3px}\n"]
|
|
5030
5079
|
},] }
|
|
5031
5080
|
];
|
|
5032
5081
|
MainNavComponent.ctorParameters = function () { return [
|
|
@@ -5186,254 +5235,194 @@
|
|
|
5186
5235
|
|
|
5187
5236
|
// tslint:disable
|
|
5188
5237
|
var result = {
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
],
|
|
5199
|
-
"AddManualPaymentToOrderResult": [
|
|
5200
|
-
"Order",
|
|
5201
|
-
"ManualPaymentStateError"
|
|
5202
|
-
],
|
|
5203
|
-
"AuthenticationResult": [
|
|
5204
|
-
"CurrentUser",
|
|
5205
|
-
"InvalidCredentialsError"
|
|
5206
|
-
],
|
|
5207
|
-
"CancelOrderResult": [
|
|
5208
|
-
"Order",
|
|
5209
|
-
"EmptyOrderLineSelectionError",
|
|
5210
|
-
"QuantityTooGreatError",
|
|
5211
|
-
"MultipleOrderError",
|
|
5212
|
-
"CancelActiveOrderError",
|
|
5213
|
-
"OrderStateTransitionError"
|
|
5214
|
-
],
|
|
5215
|
-
"CreateAssetResult": [
|
|
5216
|
-
"Asset",
|
|
5217
|
-
"MimeTypeError"
|
|
5218
|
-
],
|
|
5219
|
-
"CreateChannelResult": [
|
|
5220
|
-
"Channel",
|
|
5221
|
-
"LanguageNotAvailableError"
|
|
5222
|
-
],
|
|
5223
|
-
"CreateCustomerResult": [
|
|
5224
|
-
"Customer",
|
|
5225
|
-
"EmailAddressConflictError"
|
|
5226
|
-
],
|
|
5227
|
-
"CreatePromotionResult": [
|
|
5228
|
-
"Promotion",
|
|
5229
|
-
"MissingConditionsError"
|
|
5230
|
-
],
|
|
5231
|
-
"CustomField": [
|
|
5232
|
-
"BooleanCustomFieldConfig",
|
|
5233
|
-
"DateTimeCustomFieldConfig",
|
|
5234
|
-
"FloatCustomFieldConfig",
|
|
5235
|
-
"IntCustomFieldConfig",
|
|
5236
|
-
"LocaleStringCustomFieldConfig",
|
|
5237
|
-
"RelationCustomFieldConfig",
|
|
5238
|
-
"StringCustomFieldConfig",
|
|
5239
|
-
"TextCustomFieldConfig"
|
|
5240
|
-
],
|
|
5241
|
-
"CustomFieldConfig": [
|
|
5242
|
-
"StringCustomFieldConfig",
|
|
5243
|
-
"LocaleStringCustomFieldConfig",
|
|
5244
|
-
"IntCustomFieldConfig",
|
|
5245
|
-
"FloatCustomFieldConfig",
|
|
5246
|
-
"BooleanCustomFieldConfig",
|
|
5247
|
-
"DateTimeCustomFieldConfig",
|
|
5248
|
-
"RelationCustomFieldConfig",
|
|
5249
|
-
"TextCustomFieldConfig"
|
|
5250
|
-
],
|
|
5251
|
-
"ErrorResult": [
|
|
5252
|
-
"AlreadyRefundedError",
|
|
5253
|
-
"CancelActiveOrderError",
|
|
5254
|
-
"ChannelDefaultLanguageError",
|
|
5255
|
-
"CreateFulfillmentError",
|
|
5256
|
-
"EmailAddressConflictError",
|
|
5257
|
-
"EmptyOrderLineSelectionError",
|
|
5258
|
-
"FulfillmentStateTransitionError",
|
|
5259
|
-
"InsufficientStockError",
|
|
5260
|
-
"InsufficientStockOnHandError",
|
|
5261
|
-
"InvalidCredentialsError",
|
|
5262
|
-
"InvalidFulfillmentHandlerError",
|
|
5263
|
-
"ItemsAlreadyFulfilledError",
|
|
5264
|
-
"LanguageNotAvailableError",
|
|
5265
|
-
"ManualPaymentStateError",
|
|
5266
|
-
"MimeTypeError",
|
|
5267
|
-
"MissingConditionsError",
|
|
5268
|
-
"MultipleOrderError",
|
|
5269
|
-
"NativeAuthStrategyError",
|
|
5270
|
-
"NegativeQuantityError",
|
|
5271
|
-
"NoChangesSpecifiedError",
|
|
5272
|
-
"NothingToRefundError",
|
|
5273
|
-
"OrderLimitError",
|
|
5274
|
-
"OrderModificationStateError",
|
|
5275
|
-
"OrderStateTransitionError",
|
|
5276
|
-
"PaymentMethodMissingError",
|
|
5277
|
-
"PaymentOrderMismatchError",
|
|
5278
|
-
"PaymentStateTransitionError",
|
|
5279
|
-
"ProductOptionInUseError",
|
|
5280
|
-
"QuantityTooGreatError",
|
|
5281
|
-
"RefundOrderStateError",
|
|
5282
|
-
"RefundPaymentIdMissingError",
|
|
5283
|
-
"RefundStateTransitionError",
|
|
5284
|
-
"SettlePaymentError"
|
|
5285
|
-
],
|
|
5286
|
-
"ModifyOrderResult": [
|
|
5287
|
-
"Order",
|
|
5288
|
-
"NoChangesSpecifiedError",
|
|
5289
|
-
"OrderModificationStateError",
|
|
5290
|
-
"PaymentMethodMissingError",
|
|
5291
|
-
"RefundPaymentIdMissingError",
|
|
5292
|
-
"OrderLimitError",
|
|
5293
|
-
"NegativeQuantityError",
|
|
5294
|
-
"InsufficientStockError"
|
|
5295
|
-
],
|
|
5296
|
-
"NativeAuthenticationResult": [
|
|
5297
|
-
"CurrentUser",
|
|
5298
|
-
"InvalidCredentialsError",
|
|
5299
|
-
"NativeAuthStrategyError"
|
|
5300
|
-
],
|
|
5301
|
-
"Node": [
|
|
5302
|
-
"Address",
|
|
5303
|
-
"Administrator",
|
|
5304
|
-
"Allocation",
|
|
5305
|
-
"Asset",
|
|
5306
|
-
"AuthenticationMethod",
|
|
5307
|
-
"Cancellation",
|
|
5308
|
-
"Channel",
|
|
5309
|
-
"Collection",
|
|
5310
|
-
"Country",
|
|
5311
|
-
"Customer",
|
|
5312
|
-
"CustomerGroup",
|
|
5313
|
-
"Facet",
|
|
5314
|
-
"FacetValue",
|
|
5315
|
-
"Fulfillment",
|
|
5316
|
-
"HistoryEntry",
|
|
5317
|
-
"Job",
|
|
5318
|
-
"Order",
|
|
5319
|
-
"OrderItem",
|
|
5320
|
-
"OrderLine",
|
|
5321
|
-
"OrderModification",
|
|
5322
|
-
"Payment",
|
|
5323
|
-
"PaymentMethod",
|
|
5324
|
-
"Product",
|
|
5325
|
-
"ProductOption",
|
|
5326
|
-
"ProductOptionGroup",
|
|
5327
|
-
"ProductVariant",
|
|
5328
|
-
"Promotion",
|
|
5329
|
-
"Refund",
|
|
5330
|
-
"Release",
|
|
5331
|
-
"Return",
|
|
5332
|
-
"Role",
|
|
5333
|
-
"Sale",
|
|
5334
|
-
"ShippingMethod",
|
|
5335
|
-
"StockAdjustment",
|
|
5336
|
-
"Surcharge",
|
|
5337
|
-
"Tag",
|
|
5338
|
-
"TaxCategory",
|
|
5339
|
-
"TaxRate",
|
|
5340
|
-
"User",
|
|
5341
|
-
"Zone"
|
|
5342
|
-
],
|
|
5343
|
-
"PaginatedList": [
|
|
5344
|
-
"AdministratorList",
|
|
5345
|
-
"AssetList",
|
|
5346
|
-
"CollectionList",
|
|
5347
|
-
"CountryList",
|
|
5348
|
-
"CustomerGroupList",
|
|
5349
|
-
"CustomerList",
|
|
5350
|
-
"FacetList",
|
|
5351
|
-
"HistoryEntryList",
|
|
5352
|
-
"JobList",
|
|
5353
|
-
"OrderList",
|
|
5354
|
-
"PaymentMethodList",
|
|
5355
|
-
"ProductList",
|
|
5356
|
-
"ProductVariantList",
|
|
5357
|
-
"PromotionList",
|
|
5358
|
-
"RoleList",
|
|
5359
|
-
"ShippingMethodList",
|
|
5360
|
-
"TagList",
|
|
5361
|
-
"TaxRateList"
|
|
5362
|
-
],
|
|
5363
|
-
"RefundOrderResult": [
|
|
5364
|
-
"Refund",
|
|
5365
|
-
"QuantityTooGreatError",
|
|
5366
|
-
"NothingToRefundError",
|
|
5367
|
-
"OrderStateTransitionError",
|
|
5368
|
-
"MultipleOrderError",
|
|
5369
|
-
"PaymentOrderMismatchError",
|
|
5370
|
-
"RefundOrderStateError",
|
|
5371
|
-
"AlreadyRefundedError",
|
|
5372
|
-
"RefundStateTransitionError"
|
|
5373
|
-
],
|
|
5374
|
-
"RemoveOptionGroupFromProductResult": [
|
|
5375
|
-
"Product",
|
|
5376
|
-
"ProductOptionInUseError"
|
|
5377
|
-
],
|
|
5378
|
-
"SearchResultPrice": [
|
|
5379
|
-
"PriceRange",
|
|
5380
|
-
"SinglePrice"
|
|
5381
|
-
],
|
|
5382
|
-
"SettlePaymentResult": [
|
|
5383
|
-
"Payment",
|
|
5384
|
-
"SettlePaymentError",
|
|
5385
|
-
"PaymentStateTransitionError",
|
|
5386
|
-
"OrderStateTransitionError"
|
|
5238
|
+
possibleTypes: {
|
|
5239
|
+
AddFulfillmentToOrderResult: [
|
|
5240
|
+
'Fulfillment',
|
|
5241
|
+
'EmptyOrderLineSelectionError',
|
|
5242
|
+
'ItemsAlreadyFulfilledError',
|
|
5243
|
+
'InsufficientStockOnHandError',
|
|
5244
|
+
'InvalidFulfillmentHandlerError',
|
|
5245
|
+
'FulfillmentStateTransitionError',
|
|
5246
|
+
'CreateFulfillmentError',
|
|
5387
5247
|
],
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5248
|
+
AddManualPaymentToOrderResult: ['Order', 'ManualPaymentStateError'],
|
|
5249
|
+
AuthenticationResult: ['CurrentUser', 'InvalidCredentialsError'],
|
|
5250
|
+
CancelOrderResult: [
|
|
5251
|
+
'Order',
|
|
5252
|
+
'EmptyOrderLineSelectionError',
|
|
5253
|
+
'QuantityTooGreatError',
|
|
5254
|
+
'MultipleOrderError',
|
|
5255
|
+
'CancelActiveOrderError',
|
|
5256
|
+
'OrderStateTransitionError',
|
|
5391
5257
|
],
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5258
|
+
CreateAssetResult: ['Asset', 'MimeTypeError'],
|
|
5259
|
+
CreateChannelResult: ['Channel', 'LanguageNotAvailableError'],
|
|
5260
|
+
CreateCustomerResult: ['Customer', 'EmailAddressConflictError'],
|
|
5261
|
+
CreatePromotionResult: ['Promotion', 'MissingConditionsError'],
|
|
5262
|
+
CustomField: [
|
|
5263
|
+
'BooleanCustomFieldConfig',
|
|
5264
|
+
'DateTimeCustomFieldConfig',
|
|
5265
|
+
'FloatCustomFieldConfig',
|
|
5266
|
+
'IntCustomFieldConfig',
|
|
5267
|
+
'LocaleStringCustomFieldConfig',
|
|
5268
|
+
'RelationCustomFieldConfig',
|
|
5269
|
+
'StringCustomFieldConfig',
|
|
5270
|
+
'TextCustomFieldConfig',
|
|
5399
5271
|
],
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5272
|
+
CustomFieldConfig: [
|
|
5273
|
+
'StringCustomFieldConfig',
|
|
5274
|
+
'LocaleStringCustomFieldConfig',
|
|
5275
|
+
'IntCustomFieldConfig',
|
|
5276
|
+
'FloatCustomFieldConfig',
|
|
5277
|
+
'BooleanCustomFieldConfig',
|
|
5278
|
+
'DateTimeCustomFieldConfig',
|
|
5279
|
+
'RelationCustomFieldConfig',
|
|
5280
|
+
'TextCustomFieldConfig',
|
|
5407
5281
|
],
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5282
|
+
ErrorResult: [
|
|
5283
|
+
'AlreadyRefundedError',
|
|
5284
|
+
'CancelActiveOrderError',
|
|
5285
|
+
'ChannelDefaultLanguageError',
|
|
5286
|
+
'CouponCodeExpiredError',
|
|
5287
|
+
'CouponCodeInvalidError',
|
|
5288
|
+
'CouponCodeLimitError',
|
|
5289
|
+
'CreateFulfillmentError',
|
|
5290
|
+
'EmailAddressConflictError',
|
|
5291
|
+
'EmptyOrderLineSelectionError',
|
|
5292
|
+
'FulfillmentStateTransitionError',
|
|
5293
|
+
'InsufficientStockError',
|
|
5294
|
+
'InsufficientStockOnHandError',
|
|
5295
|
+
'InvalidCredentialsError',
|
|
5296
|
+
'InvalidFulfillmentHandlerError',
|
|
5297
|
+
'ItemsAlreadyFulfilledError',
|
|
5298
|
+
'LanguageNotAvailableError',
|
|
5299
|
+
'ManualPaymentStateError',
|
|
5300
|
+
'MimeTypeError',
|
|
5301
|
+
'MissingConditionsError',
|
|
5302
|
+
'MultipleOrderError',
|
|
5303
|
+
'NativeAuthStrategyError',
|
|
5304
|
+
'NegativeQuantityError',
|
|
5305
|
+
'NoChangesSpecifiedError',
|
|
5306
|
+
'NothingToRefundError',
|
|
5307
|
+
'OrderLimitError',
|
|
5308
|
+
'OrderModificationStateError',
|
|
5309
|
+
'OrderStateTransitionError',
|
|
5310
|
+
'PaymentMethodMissingError',
|
|
5311
|
+
'PaymentOrderMismatchError',
|
|
5312
|
+
'PaymentStateTransitionError',
|
|
5313
|
+
'ProductOptionInUseError',
|
|
5314
|
+
'QuantityTooGreatError',
|
|
5315
|
+
'RefundOrderStateError',
|
|
5316
|
+
'RefundPaymentIdMissingError',
|
|
5317
|
+
'RefundStateTransitionError',
|
|
5318
|
+
'SettlePaymentError',
|
|
5411
5319
|
],
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5320
|
+
ModifyOrderResult: [
|
|
5321
|
+
'Order',
|
|
5322
|
+
'NoChangesSpecifiedError',
|
|
5323
|
+
'OrderModificationStateError',
|
|
5324
|
+
'PaymentMethodMissingError',
|
|
5325
|
+
'RefundPaymentIdMissingError',
|
|
5326
|
+
'OrderLimitError',
|
|
5327
|
+
'NegativeQuantityError',
|
|
5328
|
+
'InsufficientStockError',
|
|
5329
|
+
'CouponCodeExpiredError',
|
|
5330
|
+
'CouponCodeInvalidError',
|
|
5331
|
+
'CouponCodeLimitError',
|
|
5415
5332
|
],
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5333
|
+
NativeAuthenticationResult: ['CurrentUser', 'InvalidCredentialsError', 'NativeAuthStrategyError'],
|
|
5334
|
+
Node: [
|
|
5335
|
+
'Address',
|
|
5336
|
+
'Administrator',
|
|
5337
|
+
'Allocation',
|
|
5338
|
+
'Asset',
|
|
5339
|
+
'AuthenticationMethod',
|
|
5340
|
+
'Cancellation',
|
|
5341
|
+
'Channel',
|
|
5342
|
+
'Collection',
|
|
5343
|
+
'Country',
|
|
5344
|
+
'Customer',
|
|
5345
|
+
'CustomerGroup',
|
|
5346
|
+
'Facet',
|
|
5347
|
+
'FacetValue',
|
|
5348
|
+
'Fulfillment',
|
|
5349
|
+
'HistoryEntry',
|
|
5350
|
+
'Job',
|
|
5351
|
+
'Order',
|
|
5352
|
+
'OrderItem',
|
|
5353
|
+
'OrderLine',
|
|
5354
|
+
'OrderModification',
|
|
5355
|
+
'Payment',
|
|
5356
|
+
'PaymentMethod',
|
|
5357
|
+
'Product',
|
|
5358
|
+
'ProductOption',
|
|
5359
|
+
'ProductOptionGroup',
|
|
5360
|
+
'ProductVariant',
|
|
5361
|
+
'Promotion',
|
|
5362
|
+
'Refund',
|
|
5363
|
+
'Release',
|
|
5364
|
+
'Return',
|
|
5365
|
+
'Role',
|
|
5366
|
+
'Sale',
|
|
5367
|
+
'ShippingMethod',
|
|
5368
|
+
'StockAdjustment',
|
|
5369
|
+
'Surcharge',
|
|
5370
|
+
'Tag',
|
|
5371
|
+
'TaxCategory',
|
|
5372
|
+
'TaxRate',
|
|
5373
|
+
'User',
|
|
5374
|
+
'Zone',
|
|
5419
5375
|
],
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5376
|
+
PaginatedList: [
|
|
5377
|
+
'AdministratorList',
|
|
5378
|
+
'AssetList',
|
|
5379
|
+
'CollectionList',
|
|
5380
|
+
'CountryList',
|
|
5381
|
+
'CustomerGroupList',
|
|
5382
|
+
'CustomerList',
|
|
5383
|
+
'FacetList',
|
|
5384
|
+
'HistoryEntryList',
|
|
5385
|
+
'JobList',
|
|
5386
|
+
'OrderList',
|
|
5387
|
+
'PaymentMethodList',
|
|
5388
|
+
'ProductList',
|
|
5389
|
+
'ProductVariantList',
|
|
5390
|
+
'PromotionList',
|
|
5391
|
+
'RoleList',
|
|
5392
|
+
'ShippingMethodList',
|
|
5393
|
+
'TagList',
|
|
5394
|
+
'TaxRateList',
|
|
5423
5395
|
],
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5396
|
+
RefundOrderResult: [
|
|
5397
|
+
'Refund',
|
|
5398
|
+
'QuantityTooGreatError',
|
|
5399
|
+
'NothingToRefundError',
|
|
5400
|
+
'OrderStateTransitionError',
|
|
5401
|
+
'MultipleOrderError',
|
|
5402
|
+
'PaymentOrderMismatchError',
|
|
5403
|
+
'RefundOrderStateError',
|
|
5404
|
+
'AlreadyRefundedError',
|
|
5405
|
+
'RefundStateTransitionError',
|
|
5427
5406
|
],
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5407
|
+
RemoveOptionGroupFromProductResult: ['Product', 'ProductOptionInUseError'],
|
|
5408
|
+
SearchResultPrice: ['PriceRange', 'SinglePrice'],
|
|
5409
|
+
SettlePaymentResult: [
|
|
5410
|
+
'Payment',
|
|
5411
|
+
'SettlePaymentError',
|
|
5412
|
+
'PaymentStateTransitionError',
|
|
5413
|
+
'OrderStateTransitionError',
|
|
5431
5414
|
],
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
]
|
|
5436
|
-
|
|
5415
|
+
SettleRefundResult: ['Refund', 'RefundStateTransitionError'],
|
|
5416
|
+
StockMovement: ['Allocation', 'Cancellation', 'Release', 'Return', 'Sale', 'StockAdjustment'],
|
|
5417
|
+
StockMovementItem: ['StockAdjustment', 'Allocation', 'Sale', 'Cancellation', 'Return', 'Release'],
|
|
5418
|
+
TransitionFulfillmentToStateResult: ['Fulfillment', 'FulfillmentStateTransitionError'],
|
|
5419
|
+
TransitionOrderToStateResult: ['Order', 'OrderStateTransitionError'],
|
|
5420
|
+
TransitionPaymentToStateResult: ['Payment', 'PaymentStateTransitionError'],
|
|
5421
|
+
UpdateChannelResult: ['Channel', 'LanguageNotAvailableError'],
|
|
5422
|
+
UpdateCustomerResult: ['Customer', 'EmailAddressConflictError'],
|
|
5423
|
+
UpdateGlobalSettingsResult: ['GlobalSettings', 'ChannelDefaultLanguageError'],
|
|
5424
|
+
UpdatePromotionResult: ['Promotion', 'MissingConditionsError'],
|
|
5425
|
+
},
|
|
5437
5426
|
};
|
|
5438
5427
|
|
|
5439
5428
|
// Allows the introspectionResult to be imported as a named symbol
|
|
@@ -6713,7 +6702,7 @@
|
|
|
6713
6702
|
RelationFormInputComponent.decorators = [
|
|
6714
6703
|
{ type: i0.Component, args: [{
|
|
6715
6704
|
selector: 'vdr-relation-form-input',
|
|
6716
|
-
template: "<div [ngSwitch]=\"config.entity\">\r\n <vdr-relation-asset-input\r\n *ngSwitchCase=\"'Asset'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-asset-input>\r\n <vdr-relation-product-input\r\n *ngSwitchCase=\"'Product'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-product-input>\r\n <vdr-relation-customer-input\r\n *ngSwitchCase=\"'Customer'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-customer-input>\r\n <vdr-relation-product-variant-input\r\n *ngSwitchCase=\"'ProductVariant'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-product-variant-input>\r\n <ng-template ngSwitchDefault>\r\n
|
|
6705
|
+
template: "<div [ngSwitch]=\"config.entity\">\r\n <vdr-relation-asset-input\r\n *ngSwitchCase=\"'Asset'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-asset-input>\r\n <vdr-relation-product-input\r\n *ngSwitchCase=\"'Product'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-product-input>\r\n <vdr-relation-customer-input\r\n *ngSwitchCase=\"'Customer'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-customer-input>\r\n <vdr-relation-product-variant-input\r\n *ngSwitchCase=\"'ProductVariant'\"\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-product-variant-input>\r\n <ng-template ngSwitchDefault>\r\n <vdr-relation-generic-input\r\n [parentFormControl]=\"formControl\"\r\n [config]=\"config\"\r\n [readonly]=\"readonly\"\r\n ></vdr-relation-generic-input>\r\n </ng-template>\r\n</div>\r\n",
|
|
6717
6706
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6718
6707
|
styles: [":host{display:block;background-color:var(--color-component-bg-200);padding:3px}\n"]
|
|
6719
6708
|
},] }
|
|
@@ -7396,7 +7385,7 @@
|
|
|
7396
7385
|
AssetGalleryComponent.decorators = [
|
|
7397
7386
|
{ type: i0.Component, args: [{
|
|
7398
7387
|
selector: 'vdr-asset-gallery',
|
|
7399
|
-
template: "<div class=\"gallery\">\r\n <div\r\n class=\"card\"\r\n *ngFor=\"let asset of assets\"\r\n (click)=\"toggleSelection(asset, $event)\"\r\n [class.selected]=\"isSelected(asset)\"\r\n >\r\n <div class=\"card-img\">\r\n <div class=\"selected-checkbox\"><clr-icon shape=\"check-circle\" size=\"32\"></clr-icon></div>\r\n <img [src]=\"asset | assetPreview: 'thumb'\" />\r\n </div>\r\n <div class=\"detail\">\r\n <vdr-entity-info\r\n [entity]=\"asset\"\r\n [small]=\"true\"\r\n (click)=\"entityInfoClick($event)\"\r\n ></vdr-entity-info>\r\n <span [title]=\"asset.name\">{{ asset.name }}</span>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"info-bar\">\r\n <div class=\"card\">\r\n <div class=\"card-img\">\r\n <div class=\"placeholder\" *ngIf=\"selection.length === 0\">\r\n <clr-icon shape=\"image\" size=\"128\"></clr-icon>\r\n <div>{{ 'catalog.no-selection' | translate }}</div>\r\n </div>\r\n <img\r\n class=\"preview\"\r\n *ngIf=\"selection.length >= 1\"\r\n [src]=\"lastSelected().preview + '?preset=medium'\"\r\n />\r\n </div>\r\n <div class=\"card-block details\" *ngIf=\"selection.length >= 1\">\r\n <div class=\"name\">{{ lastSelected().name }}</div>\r\n <div>{{ 'asset.original-asset-size' | translate }}: {{ lastSelected().fileSize | filesize }}</div>\r\n\r\n <ng-container *ngIf=\"selection.length === 1\">\r\n <vdr-chip *ngFor=\"let tag of lastSelected().tags\" [colorFrom]=\"tag.value\"><clr-icon shape=\"tag\" class=\"mr2\"></clr-icon> {{ tag.value }}</vdr-chip>\r\n <div>\r\n <button (click)=\"previewAsset(lastSelected())\" class=\"btn btn-link\">\r\n <clr-icon shape=\"eye\"></clr-icon> {{ 'asset.preview' | translate }}\r\n </button>\r\n </div>\r\n <div>\r\n <a [routerLink]=\"['./', lastSelected().id]\" class=\"btn btn-link\">\r\n <clr-icon shape=\"pencil\"></clr-icon> {{ 'common.edit' | translate }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n <div *ngIf=\"canDelete\">\r\n <button (click)=\"deleteAssets.emit(selection)\" class=\"btn btn-link\">\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon> {{ 'common.delete' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card stack\" [class.visible]=\"selection.length > 1\"></div>\r\n <div class=\"selection-count\" [class.visible]=\"selection.length > 1\">\r\n {{ 'asset.assets-selected-count' | translate: { count: selection.length } }}\r\n <ul>\r\n <li *ngFor=\"let asset of selection\">{{ asset.name }}</li>\r\n </ul>\r\n </div>\r\n</div>\r\n",
|
|
7388
|
+
template: "<div class=\"gallery\">\r\n <div\r\n class=\"card\"\r\n *ngFor=\"let asset of assets\"\r\n (click)=\"toggleSelection(asset, $event)\"\r\n [class.selected]=\"isSelected(asset)\"\r\n >\r\n <div class=\"card-img\">\r\n <div class=\"selected-checkbox\"><clr-icon shape=\"check-circle\" size=\"32\"></clr-icon></div>\r\n <img [src]=\"asset | assetPreview: 'thumb'\" />\r\n </div>\r\n <div class=\"detail\">\r\n <vdr-entity-info\r\n [entity]=\"asset\"\r\n [small]=\"true\"\r\n (click)=\"entityInfoClick($event)\"\r\n ></vdr-entity-info>\r\n <span [title]=\"asset.name\">{{ asset.name }}</span>\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"info-bar\">\r\n <div class=\"card\">\r\n <div class=\"card-img\">\r\n <div class=\"placeholder\" *ngIf=\"selection.length === 0\">\r\n <clr-icon shape=\"image\" size=\"128\"></clr-icon>\r\n <div>{{ 'catalog.no-selection' | translate }}</div>\r\n </div>\r\n <img\r\n class=\"preview\"\r\n *ngIf=\"selection.length >= 1\"\r\n [src]=\"lastSelected().preview + '?preset=medium'\"\r\n />\r\n </div>\r\n <div class=\"card-block details\" *ngIf=\"selection.length >= 1\">\r\n <div class=\"name\">{{ lastSelected().name }}</div>\r\n <div>{{ 'asset.original-asset-size' | translate }}: {{ lastSelected().fileSize | filesize }}</div>\r\n\r\n <ng-container *ngIf=\"selection.length === 1\">\r\n <vdr-chip *ngFor=\"let tag of lastSelected().tags\" [colorFrom]=\"tag.value\"\r\n ><clr-icon shape=\"tag\" class=\"mr2\"></clr-icon> {{ tag.value }}</vdr-chip\r\n >\r\n <div>\r\n <button (click)=\"previewAsset(lastSelected())\" class=\"btn btn-link\">\r\n <clr-icon shape=\"eye\"></clr-icon> {{ 'asset.preview' | translate }}\r\n </button>\r\n </div>\r\n <div>\r\n <vdr-asset-preview-links class=\"\" [asset]=\"lastSelected()\"></vdr-asset-preview-links>\r\n </div>\r\n <div>\r\n <a [routerLink]=\"['./', lastSelected().id]\" class=\"btn btn-link\">\r\n <clr-icon shape=\"pencil\"></clr-icon> {{ 'common.edit' | translate }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n <div *ngIf=\"canDelete\">\r\n <button (click)=\"deleteAssets.emit(selection)\" class=\"btn btn-link\">\r\n <clr-icon shape=\"trash\" class=\"is-danger\"></clr-icon> {{ 'common.delete' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card stack\" [class.visible]=\"selection.length > 1\"></div>\r\n <div class=\"selection-count\" [class.visible]=\"selection.length > 1\">\r\n {{ 'asset.assets-selected-count' | translate: { count: selection.length } }}\r\n <ul>\r\n <li *ngFor=\"let asset of selection\">{{ asset.name }}</li>\r\n </ul>\r\n </div>\r\n</div>\r\n",
|
|
7400
7389
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7401
7390
|
styles: [":host{display:flex;overflow:hidden}.gallery{flex:1;display:grid;grid-template-columns:repeat(auto-fill,150px);grid-template-rows:repeat(auto-fill,180px);grid-gap:10px 20px;overflow-y:auto;padding-left:12px;padding-top:12px;padding-bottom:12px}.gallery .card:hover{box-shadow:0 .125rem 0 0 var(--color-primary-500);border:1px solid var(--color-primary-500)}.card{margin-top:0;position:relative}.selected-checkbox{opacity:0;position:absolute;color:var(--color-success-500);background-color:#fff;border-radius:50%;top:-12px;left:-12px;box-shadow:0 5px 5px -4px #000000bf;transition:opacity .1s}.card.selected{box-shadow:0 .125rem 0 0 var(--color-primary-500);border:1px solid var(--color-primary-500)}.card.selected .selected-checkbox{opacity:1}.detail{font-size:12px;margin:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.detail vdr-entity-info{height:16px}.info-bar{width:25%;padding:0 6px;overflow-y:auto}.info-bar .card{z-index:1}.info-bar .stack{z-index:0;opacity:0;transform:perspective(500px) translateZ(0) translateY(-16px);height:16px;transition:transform .3s,opacity 0s .3s;background-color:#fff}.info-bar .stack.visible{opacity:1;transform:perspective(500px) translateZ(-44px) translateY(0);background-color:var(--color-component-bg-100);transition:transform .3s,color .3s}.info-bar .selection-count{opacity:0;position:relative;text-align:center;visibility:hidden;transition:opacity .3s,visibility 0s .3s}.info-bar .selection-count.visible{opacity:1;visibility:visible;transition:opacity .3s,visibility 0s}.info-bar .selection-count ul{text-align:left;list-style-type:none;margin-left:12px}.info-bar .selection-count ul li{font-size:12px}.info-bar .placeholder{text-align:center;color:var(--color-grey-300)}.info-bar .preview img{max-width:100%}.info-bar .details{font-size:12px;word-break:break-all}.info-bar .name{line-height:14px;font-weight:bold}\n"]
|
|
7402
7391
|
},] }
|
|
@@ -7547,6 +7536,24 @@
|
|
|
7547
7536
|
assetGalleryComponent: [{ type: i0.ViewChild, args: ['assetGalleryComponent',] }]
|
|
7548
7537
|
};
|
|
7549
7538
|
|
|
7539
|
+
var AssetPreviewLinksComponent = /** @class */ (function () {
|
|
7540
|
+
function AssetPreviewLinksComponent() {
|
|
7541
|
+
this.sizes = ['tiny', 'thumb', 'small', 'medium', 'large', 'full'];
|
|
7542
|
+
}
|
|
7543
|
+
return AssetPreviewLinksComponent;
|
|
7544
|
+
}());
|
|
7545
|
+
AssetPreviewLinksComponent.decorators = [
|
|
7546
|
+
{ type: i0.Component, args: [{
|
|
7547
|
+
selector: 'vdr-asset-preview-links',
|
|
7548
|
+
template: "<vdr-dropdown>\r\n <button class=\"btn btn-link\" vdrDropdownTrigger>\r\n <clr-icon shape=\"link\"></clr-icon> {{ 'catalog.asset-preview-links' | translate }}<clr-icon shape=\"caret\" dir=\"down\"></clr-icon>\r\n </button>\r\n <vdr-dropdown-menu vdrPosition=\"bottom-left\">\r\n <a\r\n *ngFor=\"let size of sizes\"\r\n [href]=\"asset | assetPreview: size\"\r\n [title]=\"asset | assetPreview: size\"\r\n target=\"_blank\"\r\n class=\"asset-preview-link\"\r\n vdrDropdownItem\r\n >\r\n <vdr-chip><clr-icon shape=\"link\"></clr-icon> {{ 'asset.preview' | translate }}: {{ size }}</vdr-chip>\r\n </a>\r\n </vdr-dropdown-menu></vdr-dropdown\r\n>\r\n",
|
|
7549
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7550
|
+
styles: [".asset-preview-link{font-size:12px}\n"]
|
|
7551
|
+
},] }
|
|
7552
|
+
];
|
|
7553
|
+
AssetPreviewLinksComponent.propDecorators = {
|
|
7554
|
+
asset: [{ type: i0.Input }]
|
|
7555
|
+
};
|
|
7556
|
+
|
|
7550
7557
|
var ManageTagsDialogComponent = /** @class */ (function () {
|
|
7551
7558
|
function ManageTagsDialogComponent(dataService) {
|
|
7552
7559
|
this.dataService = dataService;
|
|
@@ -7782,9 +7789,9 @@
|
|
|
7782
7789
|
AssetPreviewComponent.decorators = [
|
|
7783
7790
|
{ type: i0.Component, args: [{
|
|
7784
7791
|
selector: 'vdr-asset-preview',
|
|
7785
|
-
template: "<div class=\"preview-image\" #previewDiv [class.centered]=\"centered\">\r\n <div class=\"image-wrapper\">\r\n <vdr-focal-point-control\r\n [width]=\"width\"\r\n [height]=\"height\"\r\n [fpx]=\"fpx\"\r\n [fpy]=\"fpy\"\r\n [editable]=\"settingFocalPoint\"\r\n (focalPointChange)=\"onFocalPointChange($event)\"\r\n >\r\n <img\r\n class=\"asset-image\"\r\n [src]=\"asset | assetPreview: size\"\r\n #imageElement\r\n (load)=\"onImageLoad()\"\r\n />\r\n </vdr-focal-point-control>\r\n <div class=\"focal-point-info\" *ngIf=\"settingFocalPoint\">\r\n <button class=\"icon-button\" (click)=\"setFocalPointCancel()\">\r\n <clr-icon shape=\"times\"></clr-icon>\r\n </button>\r\n <button class=\"btn btn-primary btn-sm\" (click)=\"setFocalPointEnd()\" [disabled]=\"!lastFocalPoint\">\r\n <clr-icon shape=\"crosshairs\"></clr-icon>\r\n {{ 'asset.set-focal-point' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"controls\" [class.fade]=\"settingFocalPoint\">\r\n <form [formGroup]=\"form\">\r\n <clr-input-container class=\"name-input\" *ngIf=\"editable\">\r\n <label>{{ 'common.name' | translate }}</label>\r\n <input\r\n clrInput\r\n type=\"text\"\r\n formControlName=\"name\"\r\n [readonly]=\"!(['UpdateCatalog', 'UpdateAsset'] | hasPermission) || settingFocalPoint\"\r\n />\r\n </clr-input-container>\r\n\r\n <vdr-labeled-data [label]=\"'common.name' | translate\" *ngIf=\"!editable\">\r\n <span class=\"elide\">\r\n {{ asset.name }}\r\n </span>\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.source-file' | translate\">\r\n <a [href]=\"asset.source\" [title]=\"asset.source\" target=\"_blank\" class=\"elide source-link\">{{\r\n getSourceFileName()\r\n }}</a>\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.original-asset-size' | translate\">\r\n {{ asset.fileSize | filesize }}\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.dimensions' | translate\">\r\n {{ asset.width }} x {{ asset.height }}\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.focal-point' | translate\">\r\n <span *ngIf=\"fpx\"\r\n ><clr-icon shape=\"crosshairs\"></clr-icon> x: {{ fpx | number: '1.2-2' }}, y:\r\n {{ fpy | number: '1.2-2' }}</span\r\n >\r\n <span *ngIf=\"!fpx\">{{ 'common.not-set' | translate }}</span>\r\n <br />\r\n <button\r\n class=\"btn btn-secondary-outline btn-sm\"\r\n [disabled]=\"settingFocalPoint\"\r\n (click)=\"setFocalPointStart()\"\r\n >\r\n <ng-container *ngIf=\"!fpx\">{{ 'asset.set-focal-point' | translate }}</ng-container>\r\n <ng-container *ngIf=\"fpx\">{{ 'asset.update-focal-point' | translate }}</ng-container>\r\n </button>\r\n <button\r\n class=\"btn btn-warning-outline btn-sm\"\r\n [disabled]=\"settingFocalPoint\"\r\n *ngIf=\"!!fpx\"\r\n (click)=\"removeFocalPoint()\"\r\n >\r\n {{ 'asset.unset-focal-point' | translate }}\r\n </button>\r\n </vdr-labeled-data>\r\n <vdr-labeled-data [label]=\"'common.tags' | translate\">\r\n <ng-container *ngIf=\"editable\">\r\n <vdr-tag-selector formControlName=\"tags\"></vdr-tag-selector>\r\n <button class=\"btn btn-link btn-sm\" (click)=\"manageTags()\">\r\n <clr-icon shape=\"tags\"></clr-icon>\r\n {{ 'common.manage-tags' | translate }}\r\n </button>\r\n </ng-container>\r\n <div *ngIf=\"!editable\">\r\n <vdr-chip *ngFor=\"let tag of asset.tags\" [colorFrom]=\"tag.value\">\r\n <clr-icon shape=\"tag\" class=\"mr2\"></clr-icon>\r\n {{ tag.value }}</vdr-chip\r\n >\r\n </div>\r\n </vdr-labeled-data>\r\n </form>\r\n <section *ngIf=\"customFields.length\">\r\n <label>{{ 'common.custom-fields' | translate }}</label>\r\n <vdr-tabbed-custom-fields\r\n entityName=\"Asset\"\r\n [compact]=\"true\"\r\n [customFields]=\"customFields\"\r\n [customFieldsFormGroup]=\"customFieldsForm\"\r\n [readonly]=\"!(['UpdateCatalog', 'UpdateAsset'] | hasPermission)\"\r\n ></vdr-tabbed-custom-fields>\r\n </section>\r\n <div class=\"flex-spacer\"></div>\r\n <div class=\"preview-select\">\r\n <clr-select-container>\r\n <label>{{ 'asset.preview' | translate }}</label>\r\n <select clrSelect name=\"options\" [(ngModel)]=\"size\" [disabled]=\"settingFocalPoint\">\r\n <option value=\"tiny\">tiny</option>\r\n <option value=\"thumb\">thumb</option>\r\n <option value=\"small\">small</option>\r\n <option value=\"medium\">medium</option>\r\n <option value=\"large\">large</option>\r\n <option value=\"\">full size</option>\r\n </select>\r\n </clr-select-container>\r\n <div class=\"asset-detail\">{{ width }} x {{ height }}</div>\r\n </div>\r\n <
|
|
7792
|
+
template: "<div class=\"preview-image\" #previewDiv [class.centered]=\"centered\">\r\n <div class=\"image-wrapper\">\r\n <vdr-focal-point-control\r\n [width]=\"width\"\r\n [height]=\"height\"\r\n [fpx]=\"fpx\"\r\n [fpy]=\"fpy\"\r\n [editable]=\"settingFocalPoint\"\r\n (focalPointChange)=\"onFocalPointChange($event)\"\r\n >\r\n <img\r\n class=\"asset-image\"\r\n [src]=\"asset | assetPreview: size\"\r\n #imageElement\r\n (load)=\"onImageLoad()\"\r\n />\r\n </vdr-focal-point-control>\r\n <div class=\"focal-point-info\" *ngIf=\"settingFocalPoint\">\r\n <button class=\"icon-button\" (click)=\"setFocalPointCancel()\">\r\n <clr-icon shape=\"times\"></clr-icon>\r\n </button>\r\n <button class=\"btn btn-primary btn-sm\" (click)=\"setFocalPointEnd()\" [disabled]=\"!lastFocalPoint\">\r\n <clr-icon shape=\"crosshairs\"></clr-icon>\r\n {{ 'asset.set-focal-point' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class=\"controls\" [class.fade]=\"settingFocalPoint\">\r\n <form [formGroup]=\"form\">\r\n <clr-input-container class=\"name-input\" *ngIf=\"editable\">\r\n <label>{{ 'common.name' | translate }}</label>\r\n <input\r\n clrInput\r\n type=\"text\"\r\n formControlName=\"name\"\r\n [readonly]=\"!(['UpdateCatalog', 'UpdateAsset'] | hasPermission) || settingFocalPoint\"\r\n />\r\n </clr-input-container>\r\n\r\n <vdr-labeled-data [label]=\"'common.name' | translate\" *ngIf=\"!editable\">\r\n <span class=\"elide\">\r\n {{ asset.name }}\r\n </span>\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.source-file' | translate\">\r\n <a [href]=\"asset.source\" [title]=\"asset.source\" target=\"_blank\" class=\"elide source-link\">{{\r\n getSourceFileName()\r\n }}</a>\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.original-asset-size' | translate\">\r\n {{ asset.fileSize | filesize }}\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.dimensions' | translate\">\r\n {{ asset.width }} x {{ asset.height }}\r\n </vdr-labeled-data>\r\n\r\n <vdr-labeled-data [label]=\"'asset.focal-point' | translate\">\r\n <span *ngIf=\"fpx\"\r\n ><clr-icon shape=\"crosshairs\"></clr-icon> x: {{ fpx | number: '1.2-2' }}, y:\r\n {{ fpy | number: '1.2-2' }}</span\r\n >\r\n <span *ngIf=\"!fpx\">{{ 'common.not-set' | translate }}</span>\r\n <br />\r\n <button\r\n class=\"btn btn-secondary-outline btn-sm\"\r\n [disabled]=\"settingFocalPoint\"\r\n (click)=\"setFocalPointStart()\"\r\n >\r\n <ng-container *ngIf=\"!fpx\">{{ 'asset.set-focal-point' | translate }}</ng-container>\r\n <ng-container *ngIf=\"fpx\">{{ 'asset.update-focal-point' | translate }}</ng-container>\r\n </button>\r\n <button\r\n class=\"btn btn-warning-outline btn-sm\"\r\n [disabled]=\"settingFocalPoint\"\r\n *ngIf=\"!!fpx\"\r\n (click)=\"removeFocalPoint()\"\r\n >\r\n {{ 'asset.unset-focal-point' | translate }}\r\n </button>\r\n </vdr-labeled-data>\r\n <vdr-labeled-data [label]=\"'common.tags' | translate\">\r\n <ng-container *ngIf=\"editable\">\r\n <vdr-tag-selector formControlName=\"tags\"></vdr-tag-selector>\r\n <button class=\"btn btn-link btn-sm\" (click)=\"manageTags()\">\r\n <clr-icon shape=\"tags\"></clr-icon>\r\n {{ 'common.manage-tags' | translate }}\r\n </button>\r\n </ng-container>\r\n <div *ngIf=\"!editable\">\r\n <vdr-chip *ngFor=\"let tag of asset.tags\" [colorFrom]=\"tag.value\">\r\n <clr-icon shape=\"tag\" class=\"mr2\"></clr-icon>\r\n {{ tag.value }}</vdr-chip\r\n >\r\n </div>\r\n </vdr-labeled-data>\r\n </form>\r\n <section *ngIf=\"customFields.length\">\r\n <label>{{ 'common.custom-fields' | translate }}</label>\r\n <vdr-tabbed-custom-fields\r\n entityName=\"Asset\"\r\n [compact]=\"true\"\r\n [customFields]=\"customFields\"\r\n [customFieldsFormGroup]=\"customFieldsForm\"\r\n [readonly]=\"!(['UpdateCatalog', 'UpdateAsset'] | hasPermission)\"\r\n ></vdr-tabbed-custom-fields>\r\n </section>\r\n <div class=\"flex-spacer\"></div>\r\n <div class=\"preview-select\">\r\n <clr-select-container>\r\n <label>{{ 'asset.preview' | translate }}</label>\r\n <select clrSelect name=\"options\" [(ngModel)]=\"size\" [disabled]=\"settingFocalPoint\">\r\n <option value=\"tiny\">tiny</option>\r\n <option value=\"thumb\">thumb</option>\r\n <option value=\"small\">small</option>\r\n <option value=\"medium\">medium</option>\r\n <option value=\"large\">large</option>\r\n <option value=\"\">full size</option>\r\n </select>\r\n </clr-select-container>\r\n <div class=\"asset-detail\">{{ width }} x {{ height }}</div>\r\n </div>\r\n <vdr-asset-preview-links class=\"mb4\" [asset]=\"asset\"></vdr-asset-preview-links>\r\n <div *ngIf=\"!editable\" class=\"edit-button-wrapper\">\r\n <a\r\n class=\"btn btn-link btn-sm\"\r\n [routerLink]=\"['/catalog', 'assets', asset.id]\"\r\n (click)=\"editClick.emit()\"\r\n >\r\n <clr-icon shape=\"edit\"></clr-icon>\r\n {{ 'common.edit' | translate }}\r\n </a>\r\n </div>\r\n</div>\r\n",
|
|
7786
7793
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7787
|
-
styles: [":host{display:flex;height:100%}.preview-image{width:100%;height:100%;min-height:60vh;overflow:auto;text-align:center;box-shadow:inset 0 0 5px #0000001a;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACuoAAArqAVDM774AAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAK0lEQVQ4T2P4jwP8xgFGNSADqDwGIF0DlMYAUH0YYFQDMoDKYwASNfz/DwB/JvcficphowAAAABJRU5ErkJggg==);flex:1}.preview-image.centered{display:flex;align-items:center;justify-content:center}.preview-image vdr-focal-point-control{position:relative;box-shadow:0 0 10px -3px #00000026}.preview-image .image-wrapper{position:relative}.preview-image .asset-image{width:100%}.preview-image .focal-point-info{position:absolute;display:flex;right:0}.controls{display:flex;flex-direction:column;margin-left:12px;min-width:15vw;max-width:25vw;transition:opacity .3s}.controls.fade{opacity:.5}.controls .name-input{margin-bottom:24px}.controls ::ng-deep .clr-control-container{width:100%}.controls ::ng-deep .clr-control-container .clr-input{width:100%}.controls .elide{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}.controls .source-link{direction:rtl}.controls .preview-select{display:flex;align-items:center
|
|
7794
|
+
styles: [":host{display:flex;height:100%}.preview-image{width:100%;height:100%;min-height:60vh;overflow:auto;text-align:center;box-shadow:inset 0 0 5px #0000001a;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACuoAAArqAVDM774AAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAK0lEQVQ4T2P4jwP8xgFGNSADqDwGIF0DlMYAUH0YYFQDMoDKYwASNfz/DwB/JvcficphowAAAABJRU5ErkJggg==);flex:1}.preview-image.centered{display:flex;align-items:center;justify-content:center}.preview-image vdr-focal-point-control{position:relative;box-shadow:0 0 10px -3px #00000026}.preview-image .image-wrapper{position:relative}.preview-image .asset-image{width:100%}.preview-image .focal-point-info{position:absolute;display:flex;right:0}.controls{display:flex;flex-direction:column;margin-left:12px;min-width:15vw;max-width:25vw;transition:opacity .3s}.controls.fade{opacity:.5}.controls .name-input{margin-bottom:24px}.controls ::ng-deep .clr-control-container{width:100%}.controls ::ng-deep .clr-control-container .clr-input{width:100%}.controls .elide{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}.controls .source-link{direction:rtl}.controls .preview-select{display:flex;align-items:center}.controls .preview-select clr-select-container{margin-right:12px}.edit-button-wrapper{padding-top:6px;border-top:1px solid var(--color-component-border-100);text-align:center}\n"]
|
|
7788
7795
|
},] }
|
|
7789
7796
|
];
|
|
7790
7797
|
AssetPreviewComponent.ctorParameters = function () { return [
|
|
@@ -10301,7 +10308,7 @@
|
|
|
10301
10308
|
this.depth = 0;
|
|
10302
10309
|
}
|
|
10303
10310
|
}
|
|
10304
|
-
ObjectTreeComponent.prototype.
|
|
10311
|
+
ObjectTreeComponent.prototype.ngOnChanges = function () {
|
|
10305
10312
|
this.entries = this.getEntries(this.value);
|
|
10306
10313
|
this.expanded = this.depth === 0 || this.isArrayItem;
|
|
10307
10314
|
this.valueIsArray = Object.keys(this.value).every(function (v) { return Number.isInteger(+v); });
|
|
@@ -11106,7 +11113,7 @@
|
|
|
11106
11113
|
};
|
|
11107
11114
|
ProsemirrorService.prototype.getStateFromText = function (text) {
|
|
11108
11115
|
var div = document.createElement('div');
|
|
11109
|
-
div.innerHTML = text;
|
|
11116
|
+
div.innerHTML = text !== null && text !== void 0 ? text : '';
|
|
11110
11117
|
return prosemirrorState.EditorState.create({
|
|
11111
11118
|
doc: prosemirrorModel.DOMParser.fromSchema(this.mySchema).parse(div),
|
|
11112
11119
|
plugins: this.configurePlugins({ schema: this.mySchema, floatingMenu: false }),
|
|
@@ -11297,7 +11304,8 @@
|
|
|
11297
11304
|
this.tabbedCustomFields = this.groupByTabs(this.customFields);
|
|
11298
11305
|
};
|
|
11299
11306
|
TabbedCustomFieldsComponent.prototype.customFieldIsSet = function (name) {
|
|
11300
|
-
|
|
11307
|
+
var _a;
|
|
11308
|
+
return !!((_a = this.customFieldsFormGroup) === null || _a === void 0 ? void 0 : _a.get(name));
|
|
11301
11309
|
};
|
|
11302
11310
|
TabbedCustomFieldsComponent.prototype.groupByTabs = function (customFieldConfigs) {
|
|
11303
11311
|
var e_1, _d;
|
|
@@ -11652,7 +11660,7 @@
|
|
|
11652
11660
|
}
|
|
11653
11661
|
Object.defineProperty(IfDefaultChannelActiveDirective.prototype, "vdrIfMultichannelElse", {
|
|
11654
11662
|
/**
|
|
11655
|
-
* A template to show if the current user does not have the
|
|
11663
|
+
* A template to show if the current user does not have the specified permission.
|
|
11656
11664
|
*/
|
|
11657
11665
|
set: function (templateRef) {
|
|
11658
11666
|
this.setElseTemplate(templateRef);
|
|
@@ -11711,7 +11719,7 @@
|
|
|
11711
11719
|
}
|
|
11712
11720
|
Object.defineProperty(IfMultichannelDirective.prototype, "vdrIfMultichannelElse", {
|
|
11713
11721
|
/**
|
|
11714
|
-
* A template to show if the current user does not have the
|
|
11722
|
+
* A template to show if the current user does not have the specified permission.
|
|
11715
11723
|
*/
|
|
11716
11724
|
set: function (templateRef) {
|
|
11717
11725
|
this.setElseTemplate(templateRef);
|
|
@@ -12246,6 +12254,52 @@
|
|
|
12246
12254
|
template: [{ type: i0.ViewChild, args: ['selector',] }]
|
|
12247
12255
|
};
|
|
12248
12256
|
|
|
12257
|
+
var RelationGenericInputComponent = /** @class */ (function () {
|
|
12258
|
+
function RelationGenericInputComponent(modalService) {
|
|
12259
|
+
this.modalService = modalService;
|
|
12260
|
+
}
|
|
12261
|
+
RelationGenericInputComponent.prototype.selectRelationId = function () {
|
|
12262
|
+
var _this = this;
|
|
12263
|
+
this.modalService
|
|
12264
|
+
.fromComponent(RelationSelectorDialogComponent, {
|
|
12265
|
+
size: 'md',
|
|
12266
|
+
closable: true,
|
|
12267
|
+
locals: {
|
|
12268
|
+
title: ngxTranslateExtractMarker.marker('common.select-relation-id'),
|
|
12269
|
+
selectorTemplate: this.template,
|
|
12270
|
+
},
|
|
12271
|
+
})
|
|
12272
|
+
.subscribe(function (result) {
|
|
12273
|
+
if (result) {
|
|
12274
|
+
_this.parentFormControl.setValue({ id: result });
|
|
12275
|
+
_this.parentFormControl.markAsDirty();
|
|
12276
|
+
}
|
|
12277
|
+
});
|
|
12278
|
+
};
|
|
12279
|
+
RelationGenericInputComponent.prototype.remove = function () {
|
|
12280
|
+
this.parentFormControl.setValue(null);
|
|
12281
|
+
this.parentFormControl.markAsDirty();
|
|
12282
|
+
};
|
|
12283
|
+
return RelationGenericInputComponent;
|
|
12284
|
+
}());
|
|
12285
|
+
RelationGenericInputComponent.decorators = [
|
|
12286
|
+
{ type: i0.Component, args: [{
|
|
12287
|
+
selector: 'vdr-relation-generic-input',
|
|
12288
|
+
template: "<vdr-relation-card\r\n (select)=\"selectRelationId()\"\r\n (remove)=\"remove()\"\r\n placeholderIcon=\"objects\"\r\n [entity]=\"parentFormControl.value\"\r\n [selectLabel]=\"'common.select-relation-id' | translate\"\r\n [removable]=\"!config.list\"\r\n [readonly]=\"readonly\"\r\n>\r\n {{ parentFormControl.value | json }}\r\n <ng-template vdrRelationCardPreview>\r\n <div class=\"placeholder\">\r\n <clr-icon shape=\"objects\" size=\"50\"></clr-icon>\r\n </div>\r\n </ng-template>\r\n <ng-template vdrRelationCardDetail let-entity=\"entity\">\r\n <div class=\"\">\r\n {{ config.entity }}: <strong>{{ entity.id }}</strong>\r\n </div>\r\n <vdr-object-tree [value]=\"{ properties: parentFormControl.value }\"></vdr-object-tree>\r\n </ng-template>\r\n</vdr-relation-card>\r\n\r\n<ng-template #selector let-select=\"select\">\r\n <div class=\"id-select-wrapper\">\r\n <clr-input-container>\r\n <input [(ngModel)]=\"relationId\" type=\"text\" clrInput [readonly]=\"readonly\" />\r\n </clr-input-container>\r\n <div>\r\n <button class=\"btn btn-primary m0\" (click)=\"select(relationId)\">\r\n {{ 'common.confirm' | translate }}\r\n </button>\r\n </div>\r\n </div>\r\n</ng-template>\r\n",
|
|
12289
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
12290
|
+
styles: [".id-select-wrapper{display:flex;align-items:flex-end}\n"]
|
|
12291
|
+
},] }
|
|
12292
|
+
];
|
|
12293
|
+
RelationGenericInputComponent.ctorParameters = function () { return [
|
|
12294
|
+
{ type: ModalService }
|
|
12295
|
+
]; };
|
|
12296
|
+
RelationGenericInputComponent.propDecorators = {
|
|
12297
|
+
readonly: [{ type: i0.Input }],
|
|
12298
|
+
parentFormControl: [{ type: i0.Input }],
|
|
12299
|
+
config: [{ type: i0.Input }],
|
|
12300
|
+
template: [{ type: i0.ViewChild, args: ['selector',] }]
|
|
12301
|
+
};
|
|
12302
|
+
|
|
12249
12303
|
var RelationProductVariantInputComponent = /** @class */ (function () {
|
|
12250
12304
|
function RelationProductVariantInputComponent(modalService, dataService) {
|
|
12251
12305
|
this.modalService = modalService;
|
|
@@ -12468,7 +12522,7 @@
|
|
|
12468
12522
|
if (!asset) {
|
|
12469
12523
|
return '';
|
|
12470
12524
|
}
|
|
12471
|
-
if (
|
|
12525
|
+
if (asset.preview == null || typeof asset.preview !== 'string') {
|
|
12472
12526
|
throw new Error("Expected an Asset, got " + JSON.stringify(asset));
|
|
12473
12527
|
}
|
|
12474
12528
|
var fp = asset.focalPoint ? "&fpx=" + asset.focalPoint.x + "&fpy=" + asset.focalPoint.y : '';
|
|
@@ -13408,6 +13462,7 @@
|
|
|
13408
13462
|
TabbedCustomFieldsComponent,
|
|
13409
13463
|
UiExtensionPointComponent,
|
|
13410
13464
|
CustomDetailComponentHostComponent,
|
|
13465
|
+
AssetPreviewLinksComponent,
|
|
13411
13466
|
];
|
|
13412
13467
|
var DYNAMIC_FORM_INPUTS = [
|
|
13413
13468
|
TextFormInputComponent,
|
|
@@ -13427,6 +13482,7 @@
|
|
|
13427
13482
|
RelationCardPreviewDirective,
|
|
13428
13483
|
RelationCardDetailDirective,
|
|
13429
13484
|
RelationSelectorDialogComponent,
|
|
13485
|
+
RelationGenericInputComponent,
|
|
13430
13486
|
TextareaFormInputComponent,
|
|
13431
13487
|
RichTextFormInputComponent,
|
|
13432
13488
|
JsonEditorFormInputComponent,
|
|
@@ -13619,8 +13675,8 @@
|
|
|
13619
13675
|
this.availableLanguages$ = this.serverConfigService.getAvailableLanguages();
|
|
13620
13676
|
rxjs.combineLatest(this.entity$, this.languageCode$)
|
|
13621
13677
|
.pipe(operators.takeUntil(this.destroy$))
|
|
13622
|
-
.subscribe(function (
|
|
13623
|
-
var
|
|
13678
|
+
.subscribe(function (_d) {
|
|
13679
|
+
var _e = __read(_d, 2), entity = _e[0], languageCode = _e[1];
|
|
13624
13680
|
_this.setFormValues(entity, languageCode);
|
|
13625
13681
|
_this.detailForm.markAsPristine();
|
|
13626
13682
|
});
|
|
@@ -13637,15 +13693,15 @@
|
|
|
13637
13693
|
return this.detailForm && this.detailForm.pristine;
|
|
13638
13694
|
};
|
|
13639
13695
|
BaseDetailComponent.prototype.setCustomFieldFormValues = function (customFields, formGroup, entity, currentTranslation) {
|
|
13640
|
-
var e_1,
|
|
13641
|
-
var _a, _b;
|
|
13696
|
+
var e_1, _d;
|
|
13697
|
+
var _a, _b, _c;
|
|
13642
13698
|
try {
|
|
13643
13699
|
for (var customFields_1 = __values(customFields), customFields_1_1 = customFields_1.next(); !customFields_1_1.done; customFields_1_1 = customFields_1.next()) {
|
|
13644
13700
|
var fieldDef = customFields_1_1.value;
|
|
13645
13701
|
var key = fieldDef.name;
|
|
13646
13702
|
var value = fieldDef.type === 'localeString'
|
|
13647
|
-
? (_a = currentTranslation.customFields) === null ||
|
|
13648
|
-
: (
|
|
13703
|
+
? (_b = (_a = currentTranslation) === null || _a === void 0 ? void 0 : _a.customFields) === null || _b === void 0 ? void 0 : _b[key]
|
|
13704
|
+
: (_c = entity.customFields) === null || _c === void 0 ? void 0 : _c[key];
|
|
13649
13705
|
var control = formGroup === null || formGroup === void 0 ? void 0 : formGroup.get(key);
|
|
13650
13706
|
if (control) {
|
|
13651
13707
|
control.patchValue(value);
|
|
@@ -13655,7 +13711,7 @@
|
|
|
13655
13711
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
13656
13712
|
finally {
|
|
13657
13713
|
try {
|
|
13658
|
-
if (customFields_1_1 && !customFields_1_1.done && (
|
|
13714
|
+
if (customFields_1_1 && !customFields_1_1.done && (_d = customFields_1.return)) _d.call(customFields_1);
|
|
13659
13715
|
}
|
|
13660
13716
|
finally { if (e_1) throw e_1.error; }
|
|
13661
13717
|
}
|
|
@@ -13664,10 +13720,10 @@
|
|
|
13664
13720
|
return this.serverConfigService.getCustomFieldsFor(key);
|
|
13665
13721
|
};
|
|
13666
13722
|
BaseDetailComponent.prototype.setQueryParam = function (key, value) {
|
|
13667
|
-
var
|
|
13723
|
+
var _d;
|
|
13668
13724
|
this.router.navigate([
|
|
13669
13725
|
'./',
|
|
13670
|
-
Object.assign(Object.assign({}, this.route.snapshot.params), (
|
|
13726
|
+
Object.assign(Object.assign({}, this.route.snapshot.params), (_d = {}, _d[key] = value, _d)),
|
|
13671
13727
|
], {
|
|
13672
13728
|
relativeTo: this.route,
|
|
13673
13729
|
queryParamsHandling: 'merge',
|
|
@@ -14005,7 +14061,7 @@
|
|
|
14005
14061
|
}
|
|
14006
14062
|
|
|
14007
14063
|
// Auto-generated by the set-version.js script.
|
|
14008
|
-
var ADMIN_UI_VERSION = '1.
|
|
14064
|
+
var ADMIN_UI_VERSION = '1.5.0';
|
|
14009
14065
|
|
|
14010
14066
|
/**
|
|
14011
14067
|
* Responsible for registering dashboard widget components and querying for layouts.
|
|
@@ -14276,6 +14332,7 @@
|
|
|
14276
14332
|
exports.AssetPickerDialogComponent = AssetPickerDialogComponent;
|
|
14277
14333
|
exports.AssetPreviewComponent = AssetPreviewComponent;
|
|
14278
14334
|
exports.AssetPreviewDialogComponent = AssetPreviewDialogComponent;
|
|
14335
|
+
exports.AssetPreviewLinksComponent = AssetPreviewLinksComponent;
|
|
14279
14336
|
exports.AssetPreviewPipe = AssetPreviewPipe;
|
|
14280
14337
|
exports.AssetSearchInputComponent = AssetSearchInputComponent;
|
|
14281
14338
|
exports.AuthDataService = AuthDataService;
|
|
@@ -14351,6 +14408,7 @@
|
|
|
14351
14408
|
exports.DELETE_COLLECTION = DELETE_COLLECTION;
|
|
14352
14409
|
exports.DELETE_COUNTRY = DELETE_COUNTRY;
|
|
14353
14410
|
exports.DELETE_CUSTOMER = DELETE_CUSTOMER;
|
|
14411
|
+
exports.DELETE_CUSTOMER_ADDRESS = DELETE_CUSTOMER_ADDRESS;
|
|
14354
14412
|
exports.DELETE_CUSTOMER_GROUP = DELETE_CUSTOMER_GROUP;
|
|
14355
14413
|
exports.DELETE_CUSTOMER_NOTE = DELETE_CUSTOMER_NOTE;
|
|
14356
14414
|
exports.DELETE_FACET = DELETE_FACET;
|
|
@@ -14561,6 +14619,7 @@
|
|
|
14561
14619
|
exports.RelationCardPreviewDirective = RelationCardPreviewDirective;
|
|
14562
14620
|
exports.RelationCustomerInputComponent = RelationCustomerInputComponent;
|
|
14563
14621
|
exports.RelationFormInputComponent = RelationFormInputComponent;
|
|
14622
|
+
exports.RelationGenericInputComponent = RelationGenericInputComponent;
|
|
14564
14623
|
exports.RelationProductInputComponent = RelationProductInputComponent;
|
|
14565
14624
|
exports.RelationProductVariantInputComponent = RelationProductVariantInputComponent;
|
|
14566
14625
|
exports.RelationSelectorDialogComponent = RelationSelectorDialogComponent;
|