@vendure/admin-ui 1.4.7 → 1.5.2
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 +134 -143
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +329 -269
- 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 +109 -19
- package/bundles/vendure-admin-ui-order.umd.js.map +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/product-detail/product-detail.component.d.ts +2 -1
- package/catalog/components/product-variants-list/product-variants-list.component.d.ts +2 -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 +109 -6
- 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/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/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 +3 -3
- package/esm2015/catalog/components/product-detail/product-detail.component.js +4 -3
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +9 -2
- package/esm2015/catalog/public_api.js +2 -2
- package/esm2015/core/common/generated-types.js +30 -1
- package/esm2015/core/common/introspection-result.js +189 -249
- package/esm2015/core/common/utilities/configurable-operation-utils.js +21 -3
- package/esm2015/core/common/version.js +2 -2
- 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 +1 -1
- 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 +4 -4
- 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/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/dynamic-form-inputs/select-form-input/select-form-input.component.js +1 -1
- 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 +23 -8
- 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 +3 -3
- 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/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 +105 -111
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +310 -249
- 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 +69 -19
- package/fesm2015/vendure-admin-ui-order.js.map +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 +5 -5
- 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/styles/global/_overrides.scss +6 -0
- package/static/theme.min.css +1 -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();
|
|
@@ -1250,7 +1250,7 @@
|
|
|
1250
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);
|
|
1251
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"])));
|
|
1252
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"])));
|
|
1253
|
-
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);
|
|
1254
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);
|
|
1255
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);
|
|
1256
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);
|
|
@@ -1273,7 +1273,7 @@
|
|
|
1273
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);
|
|
1274
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);
|
|
1275
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"])));
|
|
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$
|
|
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;
|
|
1277
1277
|
|
|
1278
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);
|
|
1279
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);
|
|
@@ -1370,18 +1370,19 @@
|
|
|
1370
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"])));
|
|
1371
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);
|
|
1372
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);
|
|
1373
|
-
var
|
|
1374
|
-
var
|
|
1375
|
-
var
|
|
1376
|
-
var
|
|
1377
|
-
var
|
|
1378
|
-
var
|
|
1379
|
-
var
|
|
1380
|
-
var
|
|
1381
|
-
var
|
|
1382
|
-
var
|
|
1383
|
-
var
|
|
1384
|
-
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;
|
|
1385
1386
|
|
|
1386
1387
|
var CustomerDataService = /** @class */ (function () {
|
|
1387
1388
|
function CustomerDataService(baseDataService) {
|
|
@@ -1434,6 +1435,9 @@
|
|
|
1434
1435
|
input: input,
|
|
1435
1436
|
});
|
|
1436
1437
|
};
|
|
1438
|
+
CustomerDataService.prototype.deleteCustomerAddress = function (id) {
|
|
1439
|
+
return this.baseDataService.mutate(DELETE_CUSTOMER_ADDRESS, { id: id });
|
|
1440
|
+
};
|
|
1437
1441
|
CustomerDataService.prototype.createCustomerGroup = function (input) {
|
|
1438
1442
|
return this.baseDataService.mutate(CREATE_CUSTOMER_GROUP, {
|
|
1439
1443
|
input: input,
|
|
@@ -1577,7 +1581,7 @@
|
|
|
1577
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"])));
|
|
1578
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"])));
|
|
1579
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"])));
|
|
1580
|
-
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);
|
|
1581
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);
|
|
1582
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);
|
|
1583
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);
|
|
@@ -1701,6 +1705,7 @@
|
|
|
1701
1705
|
(function (AdjustmentType) {
|
|
1702
1706
|
AdjustmentType["PROMOTION"] = "PROMOTION";
|
|
1703
1707
|
AdjustmentType["DISTRIBUTED_ORDER_PROMOTION"] = "DISTRIBUTED_ORDER_PROMOTION";
|
|
1708
|
+
AdjustmentType["OTHER"] = "OTHER";
|
|
1704
1709
|
})(exports.AdjustmentType || (exports.AdjustmentType = {}));
|
|
1705
1710
|
exports.AssetType = void 0;
|
|
1706
1711
|
(function (AssetType) {
|
|
@@ -2074,6 +2079,9 @@
|
|
|
2074
2079
|
ErrorCode["ORDER_LIMIT_ERROR"] = "ORDER_LIMIT_ERROR";
|
|
2075
2080
|
ErrorCode["NEGATIVE_QUANTITY_ERROR"] = "NEGATIVE_QUANTITY_ERROR";
|
|
2076
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";
|
|
2077
2085
|
})(exports.ErrorCode || (exports.ErrorCode = {}));
|
|
2078
2086
|
exports.GlobalFlag = void 0;
|
|
2079
2087
|
(function (GlobalFlag) {
|
|
@@ -2459,6 +2467,31 @@
|
|
|
2459
2467
|
* Permissions for administrators and customers. Used to control access to
|
|
2460
2468
|
* GraphQL resolvers via the {@link Allow} decorator.
|
|
2461
2469
|
*
|
|
2470
|
+
* ## Understanding Permission.Owner
|
|
2471
|
+
*
|
|
2472
|
+
* `Permission.Owner` is a special permission which is used in some of the Vendure resolvers to indicate that that resolver should only
|
|
2473
|
+
* be accessible to the "owner" of that resource.
|
|
2474
|
+
*
|
|
2475
|
+
* For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
|
|
2476
|
+
* based on the activeUserId of the current session. As a result, the resolver code looks like this:
|
|
2477
|
+
*
|
|
2478
|
+
* @example
|
|
2479
|
+
* ```TypeScript
|
|
2480
|
+
* \@Query()
|
|
2481
|
+
* \@Allow(Permission.Owner)
|
|
2482
|
+
* async activeCustomer(\@Ctx() ctx: RequestContext): Promise<Customer | undefined> {
|
|
2483
|
+
* const userId = ctx.activeUserId;
|
|
2484
|
+
* if (userId) {
|
|
2485
|
+
* return this.customerService.findOneByUserId(ctx, userId);
|
|
2486
|
+
* }
|
|
2487
|
+
* }
|
|
2488
|
+
* ```
|
|
2489
|
+
*
|
|
2490
|
+
* Here we can see that the "ownership" must be enforced by custom logic inside the resolver. Since "ownership" cannot be defined generally
|
|
2491
|
+
* nor statically encoded at build-time, any resolvers using `Permission.Owner` **must** include logic to enforce that only the owner
|
|
2492
|
+
* of the resource has access. If not, then it is the equivalent of using `Permission.Public`.
|
|
2493
|
+
*
|
|
2494
|
+
*
|
|
2462
2495
|
* @docsCategory common
|
|
2463
2496
|
*/
|
|
2464
2497
|
exports.Permission = void 0;
|
|
@@ -2896,13 +2929,14 @@
|
|
|
2896
2929
|
function PromotionDataService(baseDataService) {
|
|
2897
2930
|
this.baseDataService = baseDataService;
|
|
2898
2931
|
}
|
|
2899
|
-
PromotionDataService.prototype.getPromotions = function (take, skip) {
|
|
2932
|
+
PromotionDataService.prototype.getPromotions = function (take, skip, filter) {
|
|
2900
2933
|
if (take === void 0) { take = 10; }
|
|
2901
2934
|
if (skip === void 0) { skip = 0; }
|
|
2902
2935
|
return this.baseDataService.query(GET_PROMOTION_LIST, {
|
|
2903
2936
|
options: {
|
|
2904
2937
|
take: take,
|
|
2905
2938
|
skip: skip,
|
|
2939
|
+
filter: filter,
|
|
2906
2940
|
},
|
|
2907
2941
|
});
|
|
2908
2942
|
};
|
|
@@ -5226,254 +5260,194 @@
|
|
|
5226
5260
|
|
|
5227
5261
|
// tslint:disable
|
|
5228
5262
|
var result = {
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
],
|
|
5239
|
-
"AddManualPaymentToOrderResult": [
|
|
5240
|
-
"Order",
|
|
5241
|
-
"ManualPaymentStateError"
|
|
5242
|
-
],
|
|
5243
|
-
"AuthenticationResult": [
|
|
5244
|
-
"CurrentUser",
|
|
5245
|
-
"InvalidCredentialsError"
|
|
5246
|
-
],
|
|
5247
|
-
"CancelOrderResult": [
|
|
5248
|
-
"Order",
|
|
5249
|
-
"EmptyOrderLineSelectionError",
|
|
5250
|
-
"QuantityTooGreatError",
|
|
5251
|
-
"MultipleOrderError",
|
|
5252
|
-
"CancelActiveOrderError",
|
|
5253
|
-
"OrderStateTransitionError"
|
|
5254
|
-
],
|
|
5255
|
-
"CreateAssetResult": [
|
|
5256
|
-
"Asset",
|
|
5257
|
-
"MimeTypeError"
|
|
5258
|
-
],
|
|
5259
|
-
"CreateChannelResult": [
|
|
5260
|
-
"Channel",
|
|
5261
|
-
"LanguageNotAvailableError"
|
|
5262
|
-
],
|
|
5263
|
-
"CreateCustomerResult": [
|
|
5264
|
-
"Customer",
|
|
5265
|
-
"EmailAddressConflictError"
|
|
5266
|
-
],
|
|
5267
|
-
"CreatePromotionResult": [
|
|
5268
|
-
"Promotion",
|
|
5269
|
-
"MissingConditionsError"
|
|
5270
|
-
],
|
|
5271
|
-
"CustomField": [
|
|
5272
|
-
"BooleanCustomFieldConfig",
|
|
5273
|
-
"DateTimeCustomFieldConfig",
|
|
5274
|
-
"FloatCustomFieldConfig",
|
|
5275
|
-
"IntCustomFieldConfig",
|
|
5276
|
-
"LocaleStringCustomFieldConfig",
|
|
5277
|
-
"RelationCustomFieldConfig",
|
|
5278
|
-
"StringCustomFieldConfig",
|
|
5279
|
-
"TextCustomFieldConfig"
|
|
5280
|
-
],
|
|
5281
|
-
"CustomFieldConfig": [
|
|
5282
|
-
"StringCustomFieldConfig",
|
|
5283
|
-
"LocaleStringCustomFieldConfig",
|
|
5284
|
-
"IntCustomFieldConfig",
|
|
5285
|
-
"FloatCustomFieldConfig",
|
|
5286
|
-
"BooleanCustomFieldConfig",
|
|
5287
|
-
"DateTimeCustomFieldConfig",
|
|
5288
|
-
"RelationCustomFieldConfig",
|
|
5289
|
-
"TextCustomFieldConfig"
|
|
5290
|
-
],
|
|
5291
|
-
"ErrorResult": [
|
|
5292
|
-
"AlreadyRefundedError",
|
|
5293
|
-
"CancelActiveOrderError",
|
|
5294
|
-
"ChannelDefaultLanguageError",
|
|
5295
|
-
"CreateFulfillmentError",
|
|
5296
|
-
"EmailAddressConflictError",
|
|
5297
|
-
"EmptyOrderLineSelectionError",
|
|
5298
|
-
"FulfillmentStateTransitionError",
|
|
5299
|
-
"InsufficientStockError",
|
|
5300
|
-
"InsufficientStockOnHandError",
|
|
5301
|
-
"InvalidCredentialsError",
|
|
5302
|
-
"InvalidFulfillmentHandlerError",
|
|
5303
|
-
"ItemsAlreadyFulfilledError",
|
|
5304
|
-
"LanguageNotAvailableError",
|
|
5305
|
-
"ManualPaymentStateError",
|
|
5306
|
-
"MimeTypeError",
|
|
5307
|
-
"MissingConditionsError",
|
|
5308
|
-
"MultipleOrderError",
|
|
5309
|
-
"NativeAuthStrategyError",
|
|
5310
|
-
"NegativeQuantityError",
|
|
5311
|
-
"NoChangesSpecifiedError",
|
|
5312
|
-
"NothingToRefundError",
|
|
5313
|
-
"OrderLimitError",
|
|
5314
|
-
"OrderModificationStateError",
|
|
5315
|
-
"OrderStateTransitionError",
|
|
5316
|
-
"PaymentMethodMissingError",
|
|
5317
|
-
"PaymentOrderMismatchError",
|
|
5318
|
-
"PaymentStateTransitionError",
|
|
5319
|
-
"ProductOptionInUseError",
|
|
5320
|
-
"QuantityTooGreatError",
|
|
5321
|
-
"RefundOrderStateError",
|
|
5322
|
-
"RefundPaymentIdMissingError",
|
|
5323
|
-
"RefundStateTransitionError",
|
|
5324
|
-
"SettlePaymentError"
|
|
5263
|
+
possibleTypes: {
|
|
5264
|
+
AddFulfillmentToOrderResult: [
|
|
5265
|
+
'Fulfillment',
|
|
5266
|
+
'EmptyOrderLineSelectionError',
|
|
5267
|
+
'ItemsAlreadyFulfilledError',
|
|
5268
|
+
'InsufficientStockOnHandError',
|
|
5269
|
+
'InvalidFulfillmentHandlerError',
|
|
5270
|
+
'FulfillmentStateTransitionError',
|
|
5271
|
+
'CreateFulfillmentError',
|
|
5325
5272
|
],
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5273
|
+
AddManualPaymentToOrderResult: ['Order', 'ManualPaymentStateError'],
|
|
5274
|
+
AuthenticationResult: ['CurrentUser', 'InvalidCredentialsError'],
|
|
5275
|
+
CancelOrderResult: [
|
|
5276
|
+
'Order',
|
|
5277
|
+
'EmptyOrderLineSelectionError',
|
|
5278
|
+
'QuantityTooGreatError',
|
|
5279
|
+
'MultipleOrderError',
|
|
5280
|
+
'CancelActiveOrderError',
|
|
5281
|
+
'OrderStateTransitionError',
|
|
5335
5282
|
],
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5283
|
+
CreateAssetResult: ['Asset', 'MimeTypeError'],
|
|
5284
|
+
CreateChannelResult: ['Channel', 'LanguageNotAvailableError'],
|
|
5285
|
+
CreateCustomerResult: ['Customer', 'EmailAddressConflictError'],
|
|
5286
|
+
CreatePromotionResult: ['Promotion', 'MissingConditionsError'],
|
|
5287
|
+
CustomField: [
|
|
5288
|
+
'BooleanCustomFieldConfig',
|
|
5289
|
+
'DateTimeCustomFieldConfig',
|
|
5290
|
+
'FloatCustomFieldConfig',
|
|
5291
|
+
'IntCustomFieldConfig',
|
|
5292
|
+
'LocaleStringCustomFieldConfig',
|
|
5293
|
+
'RelationCustomFieldConfig',
|
|
5294
|
+
'StringCustomFieldConfig',
|
|
5295
|
+
'TextCustomFieldConfig',
|
|
5340
5296
|
],
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
"Country",
|
|
5351
|
-
"Customer",
|
|
5352
|
-
"CustomerGroup",
|
|
5353
|
-
"Facet",
|
|
5354
|
-
"FacetValue",
|
|
5355
|
-
"Fulfillment",
|
|
5356
|
-
"HistoryEntry",
|
|
5357
|
-
"Job",
|
|
5358
|
-
"Order",
|
|
5359
|
-
"OrderItem",
|
|
5360
|
-
"OrderLine",
|
|
5361
|
-
"OrderModification",
|
|
5362
|
-
"Payment",
|
|
5363
|
-
"PaymentMethod",
|
|
5364
|
-
"Product",
|
|
5365
|
-
"ProductOption",
|
|
5366
|
-
"ProductOptionGroup",
|
|
5367
|
-
"ProductVariant",
|
|
5368
|
-
"Promotion",
|
|
5369
|
-
"Refund",
|
|
5370
|
-
"Release",
|
|
5371
|
-
"Return",
|
|
5372
|
-
"Role",
|
|
5373
|
-
"Sale",
|
|
5374
|
-
"ShippingMethod",
|
|
5375
|
-
"StockAdjustment",
|
|
5376
|
-
"Surcharge",
|
|
5377
|
-
"Tag",
|
|
5378
|
-
"TaxCategory",
|
|
5379
|
-
"TaxRate",
|
|
5380
|
-
"User",
|
|
5381
|
-
"Zone"
|
|
5297
|
+
CustomFieldConfig: [
|
|
5298
|
+
'StringCustomFieldConfig',
|
|
5299
|
+
'LocaleStringCustomFieldConfig',
|
|
5300
|
+
'IntCustomFieldConfig',
|
|
5301
|
+
'FloatCustomFieldConfig',
|
|
5302
|
+
'BooleanCustomFieldConfig',
|
|
5303
|
+
'DateTimeCustomFieldConfig',
|
|
5304
|
+
'RelationCustomFieldConfig',
|
|
5305
|
+
'TextCustomFieldConfig',
|
|
5382
5306
|
],
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5307
|
+
ErrorResult: [
|
|
5308
|
+
'AlreadyRefundedError',
|
|
5309
|
+
'CancelActiveOrderError',
|
|
5310
|
+
'ChannelDefaultLanguageError',
|
|
5311
|
+
'CouponCodeExpiredError',
|
|
5312
|
+
'CouponCodeInvalidError',
|
|
5313
|
+
'CouponCodeLimitError',
|
|
5314
|
+
'CreateFulfillmentError',
|
|
5315
|
+
'EmailAddressConflictError',
|
|
5316
|
+
'EmptyOrderLineSelectionError',
|
|
5317
|
+
'FulfillmentStateTransitionError',
|
|
5318
|
+
'InsufficientStockError',
|
|
5319
|
+
'InsufficientStockOnHandError',
|
|
5320
|
+
'InvalidCredentialsError',
|
|
5321
|
+
'InvalidFulfillmentHandlerError',
|
|
5322
|
+
'ItemsAlreadyFulfilledError',
|
|
5323
|
+
'LanguageNotAvailableError',
|
|
5324
|
+
'ManualPaymentStateError',
|
|
5325
|
+
'MimeTypeError',
|
|
5326
|
+
'MissingConditionsError',
|
|
5327
|
+
'MultipleOrderError',
|
|
5328
|
+
'NativeAuthStrategyError',
|
|
5329
|
+
'NegativeQuantityError',
|
|
5330
|
+
'NoChangesSpecifiedError',
|
|
5331
|
+
'NothingToRefundError',
|
|
5332
|
+
'OrderLimitError',
|
|
5333
|
+
'OrderModificationStateError',
|
|
5334
|
+
'OrderStateTransitionError',
|
|
5335
|
+
'PaymentMethodMissingError',
|
|
5336
|
+
'PaymentOrderMismatchError',
|
|
5337
|
+
'PaymentStateTransitionError',
|
|
5338
|
+
'ProductOptionInUseError',
|
|
5339
|
+
'QuantityTooGreatError',
|
|
5340
|
+
'RefundOrderStateError',
|
|
5341
|
+
'RefundPaymentIdMissingError',
|
|
5342
|
+
'RefundStateTransitionError',
|
|
5343
|
+
'SettlePaymentError',
|
|
5402
5344
|
],
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5345
|
+
ModifyOrderResult: [
|
|
5346
|
+
'Order',
|
|
5347
|
+
'NoChangesSpecifiedError',
|
|
5348
|
+
'OrderModificationStateError',
|
|
5349
|
+
'PaymentMethodMissingError',
|
|
5350
|
+
'RefundPaymentIdMissingError',
|
|
5351
|
+
'OrderLimitError',
|
|
5352
|
+
'NegativeQuantityError',
|
|
5353
|
+
'InsufficientStockError',
|
|
5354
|
+
'CouponCodeExpiredError',
|
|
5355
|
+
'CouponCodeInvalidError',
|
|
5356
|
+
'CouponCodeLimitError',
|
|
5413
5357
|
],
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5358
|
+
NativeAuthenticationResult: ['CurrentUser', 'InvalidCredentialsError', 'NativeAuthStrategyError'],
|
|
5359
|
+
Node: [
|
|
5360
|
+
'Address',
|
|
5361
|
+
'Administrator',
|
|
5362
|
+
'Allocation',
|
|
5363
|
+
'Asset',
|
|
5364
|
+
'AuthenticationMethod',
|
|
5365
|
+
'Cancellation',
|
|
5366
|
+
'Channel',
|
|
5367
|
+
'Collection',
|
|
5368
|
+
'Country',
|
|
5369
|
+
'Customer',
|
|
5370
|
+
'CustomerGroup',
|
|
5371
|
+
'Facet',
|
|
5372
|
+
'FacetValue',
|
|
5373
|
+
'Fulfillment',
|
|
5374
|
+
'HistoryEntry',
|
|
5375
|
+
'Job',
|
|
5376
|
+
'Order',
|
|
5377
|
+
'OrderItem',
|
|
5378
|
+
'OrderLine',
|
|
5379
|
+
'OrderModification',
|
|
5380
|
+
'Payment',
|
|
5381
|
+
'PaymentMethod',
|
|
5382
|
+
'Product',
|
|
5383
|
+
'ProductOption',
|
|
5384
|
+
'ProductOptionGroup',
|
|
5385
|
+
'ProductVariant',
|
|
5386
|
+
'Promotion',
|
|
5387
|
+
'Refund',
|
|
5388
|
+
'Release',
|
|
5389
|
+
'Return',
|
|
5390
|
+
'Role',
|
|
5391
|
+
'Sale',
|
|
5392
|
+
'ShippingMethod',
|
|
5393
|
+
'StockAdjustment',
|
|
5394
|
+
'Surcharge',
|
|
5395
|
+
'Tag',
|
|
5396
|
+
'TaxCategory',
|
|
5397
|
+
'TaxRate',
|
|
5398
|
+
'User',
|
|
5399
|
+
'Zone',
|
|
5417
5400
|
],
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5401
|
+
PaginatedList: [
|
|
5402
|
+
'AdministratorList',
|
|
5403
|
+
'AssetList',
|
|
5404
|
+
'CollectionList',
|
|
5405
|
+
'CountryList',
|
|
5406
|
+
'CustomerGroupList',
|
|
5407
|
+
'CustomerList',
|
|
5408
|
+
'FacetList',
|
|
5409
|
+
'HistoryEntryList',
|
|
5410
|
+
'JobList',
|
|
5411
|
+
'OrderList',
|
|
5412
|
+
'PaymentMethodList',
|
|
5413
|
+
'ProductList',
|
|
5414
|
+
'ProductVariantList',
|
|
5415
|
+
'PromotionList',
|
|
5416
|
+
'RoleList',
|
|
5417
|
+
'ShippingMethodList',
|
|
5418
|
+
'TagList',
|
|
5419
|
+
'TaxRateList',
|
|
5421
5420
|
],
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5421
|
+
RefundOrderResult: [
|
|
5422
|
+
'Refund',
|
|
5423
|
+
'QuantityTooGreatError',
|
|
5424
|
+
'NothingToRefundError',
|
|
5425
|
+
'OrderStateTransitionError',
|
|
5426
|
+
'MultipleOrderError',
|
|
5427
|
+
'PaymentOrderMismatchError',
|
|
5428
|
+
'RefundOrderStateError',
|
|
5429
|
+
'AlreadyRefundedError',
|
|
5430
|
+
'RefundStateTransitionError',
|
|
5427
5431
|
],
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5432
|
+
RemoveOptionGroupFromProductResult: ['Product', 'ProductOptionInUseError'],
|
|
5433
|
+
SearchResultPrice: ['PriceRange', 'SinglePrice'],
|
|
5434
|
+
SettlePaymentResult: [
|
|
5435
|
+
'Payment',
|
|
5436
|
+
'SettlePaymentError',
|
|
5437
|
+
'PaymentStateTransitionError',
|
|
5438
|
+
'OrderStateTransitionError',
|
|
5431
5439
|
],
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
],
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
"Sale",
|
|
5444
|
-
"Cancellation",
|
|
5445
|
-
"Return",
|
|
5446
|
-
"Release"
|
|
5447
|
-
],
|
|
5448
|
-
"TransitionFulfillmentToStateResult": [
|
|
5449
|
-
"Fulfillment",
|
|
5450
|
-
"FulfillmentStateTransitionError"
|
|
5451
|
-
],
|
|
5452
|
-
"TransitionOrderToStateResult": [
|
|
5453
|
-
"Order",
|
|
5454
|
-
"OrderStateTransitionError"
|
|
5455
|
-
],
|
|
5456
|
-
"TransitionPaymentToStateResult": [
|
|
5457
|
-
"Payment",
|
|
5458
|
-
"PaymentStateTransitionError"
|
|
5459
|
-
],
|
|
5460
|
-
"UpdateChannelResult": [
|
|
5461
|
-
"Channel",
|
|
5462
|
-
"LanguageNotAvailableError"
|
|
5463
|
-
],
|
|
5464
|
-
"UpdateCustomerResult": [
|
|
5465
|
-
"Customer",
|
|
5466
|
-
"EmailAddressConflictError"
|
|
5467
|
-
],
|
|
5468
|
-
"UpdateGlobalSettingsResult": [
|
|
5469
|
-
"GlobalSettings",
|
|
5470
|
-
"ChannelDefaultLanguageError"
|
|
5471
|
-
],
|
|
5472
|
-
"UpdatePromotionResult": [
|
|
5473
|
-
"Promotion",
|
|
5474
|
-
"MissingConditionsError"
|
|
5475
|
-
]
|
|
5476
|
-
}
|
|
5440
|
+
SettleRefundResult: ['Refund', 'RefundStateTransitionError'],
|
|
5441
|
+
StockMovement: ['Allocation', 'Cancellation', 'Release', 'Return', 'Sale', 'StockAdjustment'],
|
|
5442
|
+
StockMovementItem: ['StockAdjustment', 'Allocation', 'Sale', 'Cancellation', 'Return', 'Release'],
|
|
5443
|
+
TransitionFulfillmentToStateResult: ['Fulfillment', 'FulfillmentStateTransitionError'],
|
|
5444
|
+
TransitionOrderToStateResult: ['Order', 'OrderStateTransitionError'],
|
|
5445
|
+
TransitionPaymentToStateResult: ['Payment', 'PaymentStateTransitionError'],
|
|
5446
|
+
UpdateChannelResult: ['Channel', 'LanguageNotAvailableError'],
|
|
5447
|
+
UpdateCustomerResult: ['Customer', 'EmailAddressConflictError'],
|
|
5448
|
+
UpdateGlobalSettingsResult: ['GlobalSettings', 'ChannelDefaultLanguageError'],
|
|
5449
|
+
UpdatePromotionResult: ['Promotion', 'MissingConditionsError'],
|
|
5450
|
+
},
|
|
5477
5451
|
};
|
|
5478
5452
|
|
|
5479
5453
|
// Allows the introspectionResult to be imported as a named symbol
|
|
@@ -6753,7 +6727,7 @@
|
|
|
6753
6727
|
RelationFormInputComponent.decorators = [
|
|
6754
6728
|
{ type: i0.Component, args: [{
|
|
6755
6729
|
selector: 'vdr-relation-form-input',
|
|
6756
|
-
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
|
|
6730
|
+
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",
|
|
6757
6731
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6758
6732
|
styles: [":host{display:block;background-color:var(--color-component-bg-200);padding:3px}\n"]
|
|
6759
6733
|
},] }
|
|
@@ -7436,7 +7410,7 @@
|
|
|
7436
7410
|
AssetGalleryComponent.decorators = [
|
|
7437
7411
|
{ type: i0.Component, args: [{
|
|
7438
7412
|
selector: 'vdr-asset-gallery',
|
|
7439
|
-
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",
|
|
7413
|
+
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",
|
|
7440
7414
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7441
7415
|
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"]
|
|
7442
7416
|
},] }
|
|
@@ -7587,6 +7561,24 @@
|
|
|
7587
7561
|
assetGalleryComponent: [{ type: i0.ViewChild, args: ['assetGalleryComponent',] }]
|
|
7588
7562
|
};
|
|
7589
7563
|
|
|
7564
|
+
var AssetPreviewLinksComponent = /** @class */ (function () {
|
|
7565
|
+
function AssetPreviewLinksComponent() {
|
|
7566
|
+
this.sizes = ['tiny', 'thumb', 'small', 'medium', 'large', 'full'];
|
|
7567
|
+
}
|
|
7568
|
+
return AssetPreviewLinksComponent;
|
|
7569
|
+
}());
|
|
7570
|
+
AssetPreviewLinksComponent.decorators = [
|
|
7571
|
+
{ type: i0.Component, args: [{
|
|
7572
|
+
selector: 'vdr-asset-preview-links',
|
|
7573
|
+
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",
|
|
7574
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7575
|
+
styles: [".asset-preview-link{font-size:12px}\n"]
|
|
7576
|
+
},] }
|
|
7577
|
+
];
|
|
7578
|
+
AssetPreviewLinksComponent.propDecorators = {
|
|
7579
|
+
asset: [{ type: i0.Input }]
|
|
7580
|
+
};
|
|
7581
|
+
|
|
7590
7582
|
var ManageTagsDialogComponent = /** @class */ (function () {
|
|
7591
7583
|
function ManageTagsDialogComponent(dataService) {
|
|
7592
7584
|
this.dataService = dataService;
|
|
@@ -7724,7 +7716,7 @@
|
|
|
7724
7716
|
}
|
|
7725
7717
|
};
|
|
7726
7718
|
AssetPreviewComponent.prototype.getSourceFileName = function () {
|
|
7727
|
-
var parts = this.asset.source.split(
|
|
7719
|
+
var parts = this.asset.source.split(/[\\\/]/g);
|
|
7728
7720
|
return parts[parts.length - 1];
|
|
7729
7721
|
};
|
|
7730
7722
|
AssetPreviewComponent.prototype.onImageLoad = function () {
|
|
@@ -7822,9 +7814,9 @@
|
|
|
7822
7814
|
AssetPreviewComponent.decorators = [
|
|
7823
7815
|
{ type: i0.Component, args: [{
|
|
7824
7816
|
selector: 'vdr-asset-preview',
|
|
7825
|
-
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 <
|
|
7817
|
+
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 [ngClass]=\"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",
|
|
7826
7818
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7827
|
-
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
|
|
7819
|
+
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 .asset-image.tiny{max-width:50px;max-height:50px}.preview-image .asset-image.thumb{max-width:150px;max-height:150px}.preview-image .asset-image.small{max-width:300px;max-height:300px}.preview-image .asset-image.medium{max-width:500px;max-height:500px}.preview-image .asset-image.large{max-width:800px;max-height:800px}.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"]
|
|
7828
7820
|
},] }
|
|
7829
7821
|
];
|
|
7830
7822
|
AssetPreviewComponent.ctorParameters = function () { return [
|
|
@@ -8234,7 +8226,7 @@
|
|
|
8234
8226
|
};
|
|
8235
8227
|
}
|
|
8236
8228
|
function configurableOperationValueIsValid(def, value) {
|
|
8237
|
-
var e_1,
|
|
8229
|
+
var e_1, _a;
|
|
8238
8230
|
if (!def || !value) {
|
|
8239
8231
|
return false;
|
|
8240
8232
|
}
|
|
@@ -8242,8 +8234,8 @@
|
|
|
8242
8234
|
return false;
|
|
8243
8235
|
}
|
|
8244
8236
|
try {
|
|
8245
|
-
for (var
|
|
8246
|
-
var argDef =
|
|
8237
|
+
for (var _b = __values(def.args), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
8238
|
+
var argDef = _c.value;
|
|
8247
8239
|
var argVal = value.args[argDef.name];
|
|
8248
8240
|
if (argDef.required && (argVal == null || argVal === '' || argVal === '0')) {
|
|
8249
8241
|
return false;
|
|
@@ -8253,7 +8245,7 @@
|
|
|
8253
8245
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
8254
8246
|
finally {
|
|
8255
8247
|
try {
|
|
8256
|
-
if (
|
|
8248
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
8257
8249
|
}
|
|
8258
8250
|
finally { if (e_1) throw e_1.error; }
|
|
8259
8251
|
}
|
|
@@ -8263,8 +8255,25 @@
|
|
|
8263
8255
|
* Returns a default value based on the type of the config arg.
|
|
8264
8256
|
*/
|
|
8265
8257
|
function getDefaultConfigArgValue(arg) {
|
|
8266
|
-
|
|
8267
|
-
|
|
8258
|
+
if (arg.list) {
|
|
8259
|
+
return [];
|
|
8260
|
+
}
|
|
8261
|
+
if (arg.defaultValue) {
|
|
8262
|
+
return arg.defaultValue;
|
|
8263
|
+
}
|
|
8264
|
+
var type = arg.type;
|
|
8265
|
+
switch (type) {
|
|
8266
|
+
case 'string':
|
|
8267
|
+
case 'datetime':
|
|
8268
|
+
case 'float':
|
|
8269
|
+
case 'ID':
|
|
8270
|
+
case 'int':
|
|
8271
|
+
return null;
|
|
8272
|
+
case 'boolean':
|
|
8273
|
+
return false;
|
|
8274
|
+
default:
|
|
8275
|
+
sharedUtils.assertNever(type);
|
|
8276
|
+
}
|
|
8268
8277
|
}
|
|
8269
8278
|
|
|
8270
8279
|
/**
|
|
@@ -10341,7 +10350,7 @@
|
|
|
10341
10350
|
this.depth = 0;
|
|
10342
10351
|
}
|
|
10343
10352
|
}
|
|
10344
|
-
ObjectTreeComponent.prototype.
|
|
10353
|
+
ObjectTreeComponent.prototype.ngOnChanges = function () {
|
|
10345
10354
|
this.entries = this.getEntries(this.value);
|
|
10346
10355
|
this.expanded = this.depth === 0 || this.isArrayItem;
|
|
10347
10356
|
this.valueIsArray = Object.keys(this.value).every(function (v) { return Number.isInteger(+v); });
|
|
@@ -12287,6 +12296,52 @@
|
|
|
12287
12296
|
template: [{ type: i0.ViewChild, args: ['selector',] }]
|
|
12288
12297
|
};
|
|
12289
12298
|
|
|
12299
|
+
var RelationGenericInputComponent = /** @class */ (function () {
|
|
12300
|
+
function RelationGenericInputComponent(modalService) {
|
|
12301
|
+
this.modalService = modalService;
|
|
12302
|
+
}
|
|
12303
|
+
RelationGenericInputComponent.prototype.selectRelationId = function () {
|
|
12304
|
+
var _this = this;
|
|
12305
|
+
this.modalService
|
|
12306
|
+
.fromComponent(RelationSelectorDialogComponent, {
|
|
12307
|
+
size: 'md',
|
|
12308
|
+
closable: true,
|
|
12309
|
+
locals: {
|
|
12310
|
+
title: ngxTranslateExtractMarker.marker('common.select-relation-id'),
|
|
12311
|
+
selectorTemplate: this.template,
|
|
12312
|
+
},
|
|
12313
|
+
})
|
|
12314
|
+
.subscribe(function (result) {
|
|
12315
|
+
if (result) {
|
|
12316
|
+
_this.parentFormControl.setValue({ id: result });
|
|
12317
|
+
_this.parentFormControl.markAsDirty();
|
|
12318
|
+
}
|
|
12319
|
+
});
|
|
12320
|
+
};
|
|
12321
|
+
RelationGenericInputComponent.prototype.remove = function () {
|
|
12322
|
+
this.parentFormControl.setValue(null);
|
|
12323
|
+
this.parentFormControl.markAsDirty();
|
|
12324
|
+
};
|
|
12325
|
+
return RelationGenericInputComponent;
|
|
12326
|
+
}());
|
|
12327
|
+
RelationGenericInputComponent.decorators = [
|
|
12328
|
+
{ type: i0.Component, args: [{
|
|
12329
|
+
selector: 'vdr-relation-generic-input',
|
|
12330
|
+
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",
|
|
12331
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
12332
|
+
styles: [".id-select-wrapper{display:flex;align-items:flex-end}\n"]
|
|
12333
|
+
},] }
|
|
12334
|
+
];
|
|
12335
|
+
RelationGenericInputComponent.ctorParameters = function () { return [
|
|
12336
|
+
{ type: ModalService }
|
|
12337
|
+
]; };
|
|
12338
|
+
RelationGenericInputComponent.propDecorators = {
|
|
12339
|
+
readonly: [{ type: i0.Input }],
|
|
12340
|
+
parentFormControl: [{ type: i0.Input }],
|
|
12341
|
+
config: [{ type: i0.Input }],
|
|
12342
|
+
template: [{ type: i0.ViewChild, args: ['selector',] }]
|
|
12343
|
+
};
|
|
12344
|
+
|
|
12290
12345
|
var RelationProductVariantInputComponent = /** @class */ (function () {
|
|
12291
12346
|
function RelationProductVariantInputComponent(modalService, dataService) {
|
|
12292
12347
|
this.modalService = modalService;
|
|
@@ -13449,6 +13504,7 @@
|
|
|
13449
13504
|
TabbedCustomFieldsComponent,
|
|
13450
13505
|
UiExtensionPointComponent,
|
|
13451
13506
|
CustomDetailComponentHostComponent,
|
|
13507
|
+
AssetPreviewLinksComponent,
|
|
13452
13508
|
];
|
|
13453
13509
|
var DYNAMIC_FORM_INPUTS = [
|
|
13454
13510
|
TextFormInputComponent,
|
|
@@ -13468,6 +13524,7 @@
|
|
|
13468
13524
|
RelationCardPreviewDirective,
|
|
13469
13525
|
RelationCardDetailDirective,
|
|
13470
13526
|
RelationSelectorDialogComponent,
|
|
13527
|
+
RelationGenericInputComponent,
|
|
13471
13528
|
TextareaFormInputComponent,
|
|
13472
13529
|
RichTextFormInputComponent,
|
|
13473
13530
|
JsonEditorFormInputComponent,
|
|
@@ -14046,7 +14103,7 @@
|
|
|
14046
14103
|
}
|
|
14047
14104
|
|
|
14048
14105
|
// Auto-generated by the set-version.js script.
|
|
14049
|
-
var ADMIN_UI_VERSION = '1.
|
|
14106
|
+
var ADMIN_UI_VERSION = '1.5.2';
|
|
14050
14107
|
|
|
14051
14108
|
/**
|
|
14052
14109
|
* Responsible for registering dashboard widget components and querying for layouts.
|
|
@@ -14317,6 +14374,7 @@
|
|
|
14317
14374
|
exports.AssetPickerDialogComponent = AssetPickerDialogComponent;
|
|
14318
14375
|
exports.AssetPreviewComponent = AssetPreviewComponent;
|
|
14319
14376
|
exports.AssetPreviewDialogComponent = AssetPreviewDialogComponent;
|
|
14377
|
+
exports.AssetPreviewLinksComponent = AssetPreviewLinksComponent;
|
|
14320
14378
|
exports.AssetPreviewPipe = AssetPreviewPipe;
|
|
14321
14379
|
exports.AssetSearchInputComponent = AssetSearchInputComponent;
|
|
14322
14380
|
exports.AuthDataService = AuthDataService;
|
|
@@ -14392,6 +14450,7 @@
|
|
|
14392
14450
|
exports.DELETE_COLLECTION = DELETE_COLLECTION;
|
|
14393
14451
|
exports.DELETE_COUNTRY = DELETE_COUNTRY;
|
|
14394
14452
|
exports.DELETE_CUSTOMER = DELETE_CUSTOMER;
|
|
14453
|
+
exports.DELETE_CUSTOMER_ADDRESS = DELETE_CUSTOMER_ADDRESS;
|
|
14395
14454
|
exports.DELETE_CUSTOMER_GROUP = DELETE_CUSTOMER_GROUP;
|
|
14396
14455
|
exports.DELETE_CUSTOMER_NOTE = DELETE_CUSTOMER_NOTE;
|
|
14397
14456
|
exports.DELETE_FACET = DELETE_FACET;
|
|
@@ -14602,6 +14661,7 @@
|
|
|
14602
14661
|
exports.RelationCardPreviewDirective = RelationCardPreviewDirective;
|
|
14603
14662
|
exports.RelationCustomerInputComponent = RelationCustomerInputComponent;
|
|
14604
14663
|
exports.RelationFormInputComponent = RelationFormInputComponent;
|
|
14664
|
+
exports.RelationGenericInputComponent = RelationGenericInputComponent;
|
|
14605
14665
|
exports.RelationProductInputComponent = RelationProductInputComponent;
|
|
14606
14666
|
exports.RelationProductVariantInputComponent = RelationProductVariantInputComponent;
|
|
14607
14667
|
exports.RelationSelectorDialogComponent = RelationSelectorDialogComponent;
|