@vendure/admin-ui 1.4.7 → 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 +105 -121
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +280 -262
- 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.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 +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 +84 -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/product-detail/product-detail.component.js +4 -3
- 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/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/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 +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/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/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/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 +96 -109
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +265 -246
- 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.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 +2 -2
- 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();
|
|
@@ -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) {
|
|
@@ -2896,13 +2904,14 @@
|
|
|
2896
2904
|
function PromotionDataService(baseDataService) {
|
|
2897
2905
|
this.baseDataService = baseDataService;
|
|
2898
2906
|
}
|
|
2899
|
-
PromotionDataService.prototype.getPromotions = function (take, skip) {
|
|
2907
|
+
PromotionDataService.prototype.getPromotions = function (take, skip, filter) {
|
|
2900
2908
|
if (take === void 0) { take = 10; }
|
|
2901
2909
|
if (skip === void 0) { skip = 0; }
|
|
2902
2910
|
return this.baseDataService.query(GET_PROMOTION_LIST, {
|
|
2903
2911
|
options: {
|
|
2904
2912
|
take: take,
|
|
2905
2913
|
skip: skip,
|
|
2914
|
+
filter: filter,
|
|
2906
2915
|
},
|
|
2907
2916
|
});
|
|
2908
2917
|
};
|
|
@@ -5226,254 +5235,194 @@
|
|
|
5226
5235
|
|
|
5227
5236
|
// tslint:disable
|
|
5228
5237
|
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"
|
|
5325
|
-
],
|
|
5326
|
-
"ModifyOrderResult": [
|
|
5327
|
-
"Order",
|
|
5328
|
-
"NoChangesSpecifiedError",
|
|
5329
|
-
"OrderModificationStateError",
|
|
5330
|
-
"PaymentMethodMissingError",
|
|
5331
|
-
"RefundPaymentIdMissingError",
|
|
5332
|
-
"OrderLimitError",
|
|
5333
|
-
"NegativeQuantityError",
|
|
5334
|
-
"InsufficientStockError"
|
|
5335
|
-
],
|
|
5336
|
-
"NativeAuthenticationResult": [
|
|
5337
|
-
"CurrentUser",
|
|
5338
|
-
"InvalidCredentialsError",
|
|
5339
|
-
"NativeAuthStrategyError"
|
|
5340
|
-
],
|
|
5341
|
-
"Node": [
|
|
5342
|
-
"Address",
|
|
5343
|
-
"Administrator",
|
|
5344
|
-
"Allocation",
|
|
5345
|
-
"Asset",
|
|
5346
|
-
"AuthenticationMethod",
|
|
5347
|
-
"Cancellation",
|
|
5348
|
-
"Channel",
|
|
5349
|
-
"Collection",
|
|
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"
|
|
5382
|
-
],
|
|
5383
|
-
"PaginatedList": [
|
|
5384
|
-
"AdministratorList",
|
|
5385
|
-
"AssetList",
|
|
5386
|
-
"CollectionList",
|
|
5387
|
-
"CountryList",
|
|
5388
|
-
"CustomerGroupList",
|
|
5389
|
-
"CustomerList",
|
|
5390
|
-
"FacetList",
|
|
5391
|
-
"HistoryEntryList",
|
|
5392
|
-
"JobList",
|
|
5393
|
-
"OrderList",
|
|
5394
|
-
"PaymentMethodList",
|
|
5395
|
-
"ProductList",
|
|
5396
|
-
"ProductVariantList",
|
|
5397
|
-
"PromotionList",
|
|
5398
|
-
"RoleList",
|
|
5399
|
-
"ShippingMethodList",
|
|
5400
|
-
"TagList",
|
|
5401
|
-
"TaxRateList"
|
|
5238
|
+
possibleTypes: {
|
|
5239
|
+
AddFulfillmentToOrderResult: [
|
|
5240
|
+
'Fulfillment',
|
|
5241
|
+
'EmptyOrderLineSelectionError',
|
|
5242
|
+
'ItemsAlreadyFulfilledError',
|
|
5243
|
+
'InsufficientStockOnHandError',
|
|
5244
|
+
'InvalidFulfillmentHandlerError',
|
|
5245
|
+
'FulfillmentStateTransitionError',
|
|
5246
|
+
'CreateFulfillmentError',
|
|
5402
5247
|
],
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
"RefundStateTransitionError"
|
|
5248
|
+
AddManualPaymentToOrderResult: ['Order', 'ManualPaymentStateError'],
|
|
5249
|
+
AuthenticationResult: ['CurrentUser', 'InvalidCredentialsError'],
|
|
5250
|
+
CancelOrderResult: [
|
|
5251
|
+
'Order',
|
|
5252
|
+
'EmptyOrderLineSelectionError',
|
|
5253
|
+
'QuantityTooGreatError',
|
|
5254
|
+
'MultipleOrderError',
|
|
5255
|
+
'CancelActiveOrderError',
|
|
5256
|
+
'OrderStateTransitionError',
|
|
5413
5257
|
],
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
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',
|
|
5417
5271
|
],
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5272
|
+
CustomFieldConfig: [
|
|
5273
|
+
'StringCustomFieldConfig',
|
|
5274
|
+
'LocaleStringCustomFieldConfig',
|
|
5275
|
+
'IntCustomFieldConfig',
|
|
5276
|
+
'FloatCustomFieldConfig',
|
|
5277
|
+
'BooleanCustomFieldConfig',
|
|
5278
|
+
'DateTimeCustomFieldConfig',
|
|
5279
|
+
'RelationCustomFieldConfig',
|
|
5280
|
+
'TextCustomFieldConfig',
|
|
5421
5281
|
],
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
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',
|
|
5427
5319
|
],
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5320
|
+
ModifyOrderResult: [
|
|
5321
|
+
'Order',
|
|
5322
|
+
'NoChangesSpecifiedError',
|
|
5323
|
+
'OrderModificationStateError',
|
|
5324
|
+
'PaymentMethodMissingError',
|
|
5325
|
+
'RefundPaymentIdMissingError',
|
|
5326
|
+
'OrderLimitError',
|
|
5327
|
+
'NegativeQuantityError',
|
|
5328
|
+
'InsufficientStockError',
|
|
5329
|
+
'CouponCodeExpiredError',
|
|
5330
|
+
'CouponCodeInvalidError',
|
|
5331
|
+
'CouponCodeLimitError',
|
|
5431
5332
|
],
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
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',
|
|
5439
5375
|
],
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
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',
|
|
5447
5395
|
],
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5396
|
+
RefundOrderResult: [
|
|
5397
|
+
'Refund',
|
|
5398
|
+
'QuantityTooGreatError',
|
|
5399
|
+
'NothingToRefundError',
|
|
5400
|
+
'OrderStateTransitionError',
|
|
5401
|
+
'MultipleOrderError',
|
|
5402
|
+
'PaymentOrderMismatchError',
|
|
5403
|
+
'RefundOrderStateError',
|
|
5404
|
+
'AlreadyRefundedError',
|
|
5405
|
+
'RefundStateTransitionError',
|
|
5451
5406
|
],
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5407
|
+
RemoveOptionGroupFromProductResult: ['Product', 'ProductOptionInUseError'],
|
|
5408
|
+
SearchResultPrice: ['PriceRange', 'SinglePrice'],
|
|
5409
|
+
SettlePaymentResult: [
|
|
5410
|
+
'Payment',
|
|
5411
|
+
'SettlePaymentError',
|
|
5412
|
+
'PaymentStateTransitionError',
|
|
5413
|
+
'OrderStateTransitionError',
|
|
5455
5414
|
],
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
],
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
],
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
],
|
|
5468
|
-
"UpdateGlobalSettingsResult": [
|
|
5469
|
-
"GlobalSettings",
|
|
5470
|
-
"ChannelDefaultLanguageError"
|
|
5471
|
-
],
|
|
5472
|
-
"UpdatePromotionResult": [
|
|
5473
|
-
"Promotion",
|
|
5474
|
-
"MissingConditionsError"
|
|
5475
|
-
]
|
|
5476
|
-
}
|
|
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
|
+
},
|
|
5477
5426
|
};
|
|
5478
5427
|
|
|
5479
5428
|
// Allows the introspectionResult to be imported as a named symbol
|
|
@@ -6753,7 +6702,7 @@
|
|
|
6753
6702
|
RelationFormInputComponent.decorators = [
|
|
6754
6703
|
{ type: i0.Component, args: [{
|
|
6755
6704
|
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
|
|
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",
|
|
6757
6706
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6758
6707
|
styles: [":host{display:block;background-color:var(--color-component-bg-200);padding:3px}\n"]
|
|
6759
6708
|
},] }
|
|
@@ -7436,7 +7385,7 @@
|
|
|
7436
7385
|
AssetGalleryComponent.decorators = [
|
|
7437
7386
|
{ type: i0.Component, args: [{
|
|
7438
7387
|
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",
|
|
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",
|
|
7440
7389
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7441
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"]
|
|
7442
7391
|
},] }
|
|
@@ -7587,6 +7536,24 @@
|
|
|
7587
7536
|
assetGalleryComponent: [{ type: i0.ViewChild, args: ['assetGalleryComponent',] }]
|
|
7588
7537
|
};
|
|
7589
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
|
+
|
|
7590
7557
|
var ManageTagsDialogComponent = /** @class */ (function () {
|
|
7591
7558
|
function ManageTagsDialogComponent(dataService) {
|
|
7592
7559
|
this.dataService = dataService;
|
|
@@ -7822,9 +7789,9 @@
|
|
|
7822
7789
|
AssetPreviewComponent.decorators = [
|
|
7823
7790
|
{ type: i0.Component, args: [{
|
|
7824
7791
|
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 <
|
|
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",
|
|
7826
7793
|
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
|
|
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"]
|
|
7828
7795
|
},] }
|
|
7829
7796
|
];
|
|
7830
7797
|
AssetPreviewComponent.ctorParameters = function () { return [
|
|
@@ -10341,7 +10308,7 @@
|
|
|
10341
10308
|
this.depth = 0;
|
|
10342
10309
|
}
|
|
10343
10310
|
}
|
|
10344
|
-
ObjectTreeComponent.prototype.
|
|
10311
|
+
ObjectTreeComponent.prototype.ngOnChanges = function () {
|
|
10345
10312
|
this.entries = this.getEntries(this.value);
|
|
10346
10313
|
this.expanded = this.depth === 0 || this.isArrayItem;
|
|
10347
10314
|
this.valueIsArray = Object.keys(this.value).every(function (v) { return Number.isInteger(+v); });
|
|
@@ -12287,6 +12254,52 @@
|
|
|
12287
12254
|
template: [{ type: i0.ViewChild, args: ['selector',] }]
|
|
12288
12255
|
};
|
|
12289
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
|
+
|
|
12290
12303
|
var RelationProductVariantInputComponent = /** @class */ (function () {
|
|
12291
12304
|
function RelationProductVariantInputComponent(modalService, dataService) {
|
|
12292
12305
|
this.modalService = modalService;
|
|
@@ -13449,6 +13462,7 @@
|
|
|
13449
13462
|
TabbedCustomFieldsComponent,
|
|
13450
13463
|
UiExtensionPointComponent,
|
|
13451
13464
|
CustomDetailComponentHostComponent,
|
|
13465
|
+
AssetPreviewLinksComponent,
|
|
13452
13466
|
];
|
|
13453
13467
|
var DYNAMIC_FORM_INPUTS = [
|
|
13454
13468
|
TextFormInputComponent,
|
|
@@ -13468,6 +13482,7 @@
|
|
|
13468
13482
|
RelationCardPreviewDirective,
|
|
13469
13483
|
RelationCardDetailDirective,
|
|
13470
13484
|
RelationSelectorDialogComponent,
|
|
13485
|
+
RelationGenericInputComponent,
|
|
13471
13486
|
TextareaFormInputComponent,
|
|
13472
13487
|
RichTextFormInputComponent,
|
|
13473
13488
|
JsonEditorFormInputComponent,
|
|
@@ -14046,7 +14061,7 @@
|
|
|
14046
14061
|
}
|
|
14047
14062
|
|
|
14048
14063
|
// Auto-generated by the set-version.js script.
|
|
14049
|
-
var ADMIN_UI_VERSION = '1.
|
|
14064
|
+
var ADMIN_UI_VERSION = '1.5.0';
|
|
14050
14065
|
|
|
14051
14066
|
/**
|
|
14052
14067
|
* Responsible for registering dashboard widget components and querying for layouts.
|
|
@@ -14317,6 +14332,7 @@
|
|
|
14317
14332
|
exports.AssetPickerDialogComponent = AssetPickerDialogComponent;
|
|
14318
14333
|
exports.AssetPreviewComponent = AssetPreviewComponent;
|
|
14319
14334
|
exports.AssetPreviewDialogComponent = AssetPreviewDialogComponent;
|
|
14335
|
+
exports.AssetPreviewLinksComponent = AssetPreviewLinksComponent;
|
|
14320
14336
|
exports.AssetPreviewPipe = AssetPreviewPipe;
|
|
14321
14337
|
exports.AssetSearchInputComponent = AssetSearchInputComponent;
|
|
14322
14338
|
exports.AuthDataService = AuthDataService;
|
|
@@ -14392,6 +14408,7 @@
|
|
|
14392
14408
|
exports.DELETE_COLLECTION = DELETE_COLLECTION;
|
|
14393
14409
|
exports.DELETE_COUNTRY = DELETE_COUNTRY;
|
|
14394
14410
|
exports.DELETE_CUSTOMER = DELETE_CUSTOMER;
|
|
14411
|
+
exports.DELETE_CUSTOMER_ADDRESS = DELETE_CUSTOMER_ADDRESS;
|
|
14395
14412
|
exports.DELETE_CUSTOMER_GROUP = DELETE_CUSTOMER_GROUP;
|
|
14396
14413
|
exports.DELETE_CUSTOMER_NOTE = DELETE_CUSTOMER_NOTE;
|
|
14397
14414
|
exports.DELETE_FACET = DELETE_FACET;
|
|
@@ -14602,6 +14619,7 @@
|
|
|
14602
14619
|
exports.RelationCardPreviewDirective = RelationCardPreviewDirective;
|
|
14603
14620
|
exports.RelationCustomerInputComponent = RelationCustomerInputComponent;
|
|
14604
14621
|
exports.RelationFormInputComponent = RelationFormInputComponent;
|
|
14622
|
+
exports.RelationGenericInputComponent = RelationGenericInputComponent;
|
|
14605
14623
|
exports.RelationProductInputComponent = RelationProductInputComponent;
|
|
14606
14624
|
exports.RelationProductVariantInputComponent = RelationProductVariantInputComponent;
|
|
14607
14625
|
exports.RelationSelectorDialogComponent = RelationSelectorDialogComponent;
|