@vendure/admin-ui 1.8.4 → 1.9.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 +53 -101
- package/bundles/vendure-admin-ui-catalog.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-core.umd.js +115 -54
- package/bundles/vendure-admin-ui-core.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-customer.umd.js +52 -2
- package/bundles/vendure-admin-ui-customer.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-login.umd.js +40 -8
- package/bundles/vendure-admin-ui-login.umd.js.map +1 -1
- package/bundles/vendure-admin-ui-order.umd.js +52 -3
- package/bundles/vendure-admin-ui-order.umd.js.map +1 -1
- package/catalog/components/apply-facet-dialog/apply-facet-dialog.component.d.ts +1 -2
- package/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.d.ts +0 -1
- package/catalog/components/product-detail/product-detail.component.d.ts +2 -7
- package/catalog/components/product-variants-list/product-variants-list.component.d.ts +11 -11
- package/catalog/providers/product-detail/product-detail.service.d.ts +1 -2
- package/catalog/vendure-admin-ui-catalog.metadata.json +1 -1
- package/core/common/generated-types.d.ts +59 -0
- package/core/common/version.d.ts +1 -1
- package/core/data/definitions/facet-definitions.d.ts +1 -0
- package/core/data/providers/facet-data.service.d.ts +5 -1
- package/core/providers/custom-history-entry-component/history-entry-component-types.d.ts +81 -0
- package/core/providers/custom-history-entry-component/history-entry-component.service.d.ts +16 -0
- package/core/public_api.d.ts +2 -1
- package/core/shared/components/facet-value-selector/facet-value-selector.component.d.ts +17 -17
- package/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.d.ts +3 -11
- package/core/shared/dynamic-form-inputs/register-dynamic-input-components.d.ts +1 -2
- package/core/vendure-admin-ui-core.metadata.json +1 -1
- package/customer/components/customer-detail/customer-detail.component.d.ts +3 -3
- package/customer/components/customer-history/customer-history-entry-host.component.d.ts +16 -0
- package/customer/components/customer-history/customer-history.component.d.ts +19 -3
- package/customer/public_api.d.ts +1 -0
- package/customer/vendure-admin-ui-customer.metadata.json +1 -1
- package/esm2015/catalog/components/apply-facet-dialog/apply-facet-dialog.component.js +2 -2
- package/esm2015/catalog/components/bulk-add-facet-values-dialog/bulk-add-facet-values-dialog.component.js +2 -3
- package/esm2015/catalog/components/product-detail/product-detail.component.js +16 -47
- package/esm2015/catalog/components/product-list/product-list-bulk-actions.js +4 -7
- package/esm2015/catalog/components/product-variants-list/product-variants-list.component.js +38 -30
- package/esm2015/catalog/providers/product-detail/product-detail.service.js +1 -4
- package/esm2015/core/common/generated-types.js +1 -1
- package/esm2015/core/common/introspection-result.js +2 -1
- package/esm2015/core/common/version.js +2 -2
- package/esm2015/core/data/definitions/facet-definitions.js +12 -1
- package/esm2015/core/data/providers/facet-data.service.js +5 -2
- package/esm2015/core/providers/custom-history-entry-component/history-entry-component-types.js +2 -0
- package/esm2015/core/providers/custom-history-entry-component/history-entry-component.service.js +39 -0
- package/esm2015/core/public_api.js +3 -2
- package/esm2015/core/shared/components/facet-value-selector/facet-value-selector.component.js +52 -22
- package/esm2015/core/shared/components/form-field/form-field.component.js +2 -2
- package/esm2015/core/shared/components/timeline-entry/timeline-entry.component.js +2 -2
- package/esm2015/core/shared/dynamic-form-inputs/facet-value-form-input/facet-value-form-input.component.js +3 -15
- package/esm2015/customer/components/customer-detail/customer-detail.component.js +1 -1
- package/esm2015/customer/components/customer-history/customer-history-entry-host.component.js +51 -0
- package/esm2015/customer/components/customer-history/customer-history.component.js +12 -4
- package/esm2015/customer/customer.module.js +3 -1
- package/esm2015/customer/public_api.js +2 -1
- package/esm2015/login/components/login/login.component.js +37 -5
- package/esm2015/order/components/order-detail/order-detail.component.js +1 -1
- package/esm2015/order/components/order-history/order-history-entry-host.component.js +51 -0
- package/esm2015/order/components/order-history/order-history.component.js +12 -5
- package/esm2015/order/order.module.js +6 -4
- package/esm2015/order/public_api.js +2 -1
- package/fesm2015/vendure-admin-ui-catalog.js +54 -85
- package/fesm2015/vendure-admin-ui-catalog.js.map +1 -1
- package/fesm2015/vendure-admin-ui-core.js +106 -39
- package/fesm2015/vendure-admin-ui-core.js.map +1 -1
- package/fesm2015/vendure-admin-ui-customer.js +63 -5
- package/fesm2015/vendure-admin-ui-customer.js.map +1 -1
- package/fesm2015/vendure-admin-ui-login.js +36 -4
- package/fesm2015/vendure-admin-ui-login.js.map +1 -1
- package/fesm2015/vendure-admin-ui-order.js +63 -6
- package/fesm2015/vendure-admin-ui-order.js.map +1 -1
- package/login/components/login/login.component.d.ts +11 -1
- package/login/vendure-admin-ui-login.metadata.json +1 -1
- package/order/components/order-detail/order-detail.component.d.ts +3 -3
- package/order/components/order-history/order-history-entry-host.component.d.ts +16 -0
- package/order/components/order-history/order-history.component.d.ts +18 -3
- package/order/public_api.d.ts +1 -0
- package/order/vendure-admin-ui-order.metadata.json +1 -1
- package/package.json +2 -2
- package/static/i18n-messages/de.json +3 -1
- package/static/i18n-messages/en.json +3 -1
- package/static/styles/_variables.scss +1 -0
- package/core/common/utilities/flatten-facet-values.d.ts +0 -2
- package/esm2015/core/common/utilities/flatten-facet-values.js +0 -4
|
@@ -365,9 +365,9 @@
|
|
|
365
365
|
var GET_ROLE = apolloAngular.gql(templateObject_11$7 || (templateObject_11$7 = __makeTemplateObject(["\n query GetRole($id: ID!) {\n role(id: $id) {\n ...Role\n }\n }\n ", "\n"], ["\n query GetRole($id: ID!) {\n role(id: $id) {\n ...Role\n }\n }\n ", "\n"])), ROLE_FRAGMENT);
|
|
366
366
|
var CREATE_ROLE = apolloAngular.gql(templateObject_12$7 || (templateObject_12$7 = __makeTemplateObject(["\n mutation CreateRole($input: CreateRoleInput!) {\n createRole(input: $input) {\n ...Role\n }\n }\n ", "\n"], ["\n mutation CreateRole($input: CreateRoleInput!) {\n createRole(input: $input) {\n ...Role\n }\n }\n ", "\n"])), ROLE_FRAGMENT);
|
|
367
367
|
var UPDATE_ROLE = apolloAngular.gql(templateObject_13$7 || (templateObject_13$7 = __makeTemplateObject(["\n mutation UpdateRole($input: UpdateRoleInput!) {\n updateRole(input: $input) {\n ...Role\n }\n }\n ", "\n"], ["\n mutation UpdateRole($input: UpdateRoleInput!) {\n updateRole(input: $input) {\n ...Role\n }\n }\n ", "\n"])), ROLE_FRAGMENT);
|
|
368
|
-
var DELETE_ROLE = apolloAngular.gql(templateObject_14$
|
|
368
|
+
var DELETE_ROLE = apolloAngular.gql(templateObject_14$6 || (templateObject_14$6 = __makeTemplateObject(["\n mutation DeleteRole($id: ID!) {\n deleteRole(id: $id) {\n result\n message\n }\n }\n"], ["\n mutation DeleteRole($id: ID!) {\n deleteRole(id: $id) {\n result\n message\n }\n }\n"])));
|
|
369
369
|
var ASSIGN_ROLE_TO_ADMINISTRATOR = apolloAngular.gql(templateObject_15$5 || (templateObject_15$5 = __makeTemplateObject(["\n mutation AssignRoleToAdministrator($administratorId: ID!, $roleId: ID!) {\n assignRoleToAdministrator(administratorId: $administratorId, roleId: $roleId) {\n ...Administrator\n }\n }\n ", "\n"], ["\n mutation AssignRoleToAdministrator($administratorId: ID!, $roleId: ID!) {\n assignRoleToAdministrator(administratorId: $administratorId, roleId: $roleId) {\n ...Administrator\n }\n }\n ", "\n"])), ADMINISTRATOR_FRAGMENT);
|
|
370
|
-
var templateObject_1$b, templateObject_2$b, templateObject_3$b, templateObject_4$a, templateObject_5$9, templateObject_6$9, templateObject_7$9, templateObject_8$8, templateObject_9$8, templateObject_10$7, templateObject_11$7, templateObject_12$7, templateObject_13$7, templateObject_14$
|
|
370
|
+
var templateObject_1$b, templateObject_2$b, templateObject_3$b, templateObject_4$a, templateObject_5$9, templateObject_6$9, templateObject_7$9, templateObject_8$8, templateObject_9$8, templateObject_10$7, templateObject_11$7, templateObject_12$7, templateObject_13$7, templateObject_14$6, templateObject_15$5;
|
|
371
371
|
|
|
372
372
|
var AdministratorDataService = /** @class */ (function () {
|
|
373
373
|
function AdministratorDataService(baseDataService) {
|
|
@@ -548,10 +548,10 @@
|
|
|
548
548
|
var GET_NEWTORK_STATUS = apolloAngular.gql(templateObject_11$6 || (templateObject_11$6 = __makeTemplateObject(["\n query GetNetworkStatus {\n networkStatus @client {\n inFlightRequests\n }\n }\n"], ["\n query GetNetworkStatus {\n networkStatus @client {\n inFlightRequests\n }\n }\n"])));
|
|
549
549
|
var GET_USER_STATUS = apolloAngular.gql(templateObject_12$6 || (templateObject_12$6 = __makeTemplateObject(["\n query GetUserStatus {\n userStatus @client {\n ...UserStatus\n }\n }\n ", "\n"], ["\n query GetUserStatus {\n userStatus @client {\n ...UserStatus\n }\n }\n ", "\n"])), USER_STATUS_FRAGMENT);
|
|
550
550
|
var GET_UI_STATE = apolloAngular.gql(templateObject_13$6 || (templateObject_13$6 = __makeTemplateObject(["\n query GetUiState {\n uiState @client {\n language\n locale\n contentLanguage\n theme\n displayUiExtensionPoints\n }\n }\n"], ["\n query GetUiState {\n uiState @client {\n language\n locale\n contentLanguage\n theme\n displayUiExtensionPoints\n }\n }\n"])));
|
|
551
|
-
var GET_CLIENT_STATE = apolloAngular.gql(templateObject_14$
|
|
551
|
+
var GET_CLIENT_STATE = apolloAngular.gql(templateObject_14$5 || (templateObject_14$5 = __makeTemplateObject(["\n query GetClientState {\n networkStatus @client {\n inFlightRequests\n }\n userStatus @client {\n ...UserStatus\n }\n uiState @client {\n language\n locale\n contentLanguage\n theme\n displayUiExtensionPoints\n }\n }\n ", "\n"], ["\n query GetClientState {\n networkStatus @client {\n inFlightRequests\n }\n userStatus @client {\n ...UserStatus\n }\n uiState @client {\n language\n locale\n contentLanguage\n theme\n displayUiExtensionPoints\n }\n }\n ", "\n"])), USER_STATUS_FRAGMENT);
|
|
552
552
|
var SET_ACTIVE_CHANNEL = apolloAngular.gql(templateObject_15$4 || (templateObject_15$4 = __makeTemplateObject(["\n mutation SetActiveChannel($channelId: ID!) {\n setActiveChannel(channelId: $channelId) @client {\n ...UserStatus\n }\n }\n ", "\n"], ["\n mutation SetActiveChannel($channelId: ID!) {\n setActiveChannel(channelId: $channelId) @client {\n ...UserStatus\n }\n }\n ", "\n"])), USER_STATUS_FRAGMENT);
|
|
553
553
|
var UPDATE_USER_CHANNELS = apolloAngular.gql(templateObject_16$4 || (templateObject_16$4 = __makeTemplateObject(["\n mutation UpdateUserChannels($channels: [CurrentUserChannelInput!]!) {\n updateUserChannels(channels: $channels) @client {\n ...UserStatus\n }\n }\n ", "\n"], ["\n mutation UpdateUserChannels($channels: [CurrentUserChannelInput!]!) {\n updateUserChannels(channels: $channels) @client {\n ...UserStatus\n }\n }\n ", "\n"])), USER_STATUS_FRAGMENT);
|
|
554
|
-
var templateObject_1$8, templateObject_2$8, templateObject_3$8, templateObject_4$8, templateObject_5$8, templateObject_6$8, templateObject_7$8, templateObject_8$7, templateObject_9$7, templateObject_10$6, templateObject_11$6, templateObject_12$6, templateObject_13$6, templateObject_14$
|
|
554
|
+
var templateObject_1$8, templateObject_2$8, templateObject_3$8, templateObject_4$8, templateObject_5$8, templateObject_6$8, templateObject_7$8, templateObject_8$7, templateObject_9$7, templateObject_10$6, templateObject_11$6, templateObject_12$6, templateObject_13$6, templateObject_14$5, templateObject_15$4, templateObject_16$4;
|
|
555
555
|
|
|
556
556
|
/**
|
|
557
557
|
* @description
|
|
@@ -654,7 +654,7 @@
|
|
|
654
654
|
var CREATE_ZONE = apolloAngular.gql(templateObject_11$5 || (templateObject_11$5 = __makeTemplateObject(["\n mutation CreateZone($input: CreateZoneInput!) {\n createZone(input: $input) {\n ...Zone\n }\n }\n ", "\n"], ["\n mutation CreateZone($input: CreateZoneInput!) {\n createZone(input: $input) {\n ...Zone\n }\n }\n ", "\n"])), ZONE_FRAGMENT);
|
|
655
655
|
var UPDATE_ZONE = apolloAngular.gql(templateObject_12$5 || (templateObject_12$5 = __makeTemplateObject(["\n mutation UpdateZone($input: UpdateZoneInput!) {\n updateZone(input: $input) {\n ...Zone\n }\n }\n ", "\n"], ["\n mutation UpdateZone($input: UpdateZoneInput!) {\n updateZone(input: $input) {\n ...Zone\n }\n }\n ", "\n"])), ZONE_FRAGMENT);
|
|
656
656
|
var DELETE_ZONE = apolloAngular.gql(templateObject_13$5 || (templateObject_13$5 = __makeTemplateObject(["\n mutation DeleteZone($id: ID!) {\n deleteZone(id: $id) {\n message\n result\n }\n }\n"], ["\n mutation DeleteZone($id: ID!) {\n deleteZone(id: $id) {\n message\n result\n }\n }\n"])));
|
|
657
|
-
var ADD_MEMBERS_TO_ZONE = apolloAngular.gql(templateObject_14$
|
|
657
|
+
var ADD_MEMBERS_TO_ZONE = apolloAngular.gql(templateObject_14$4 || (templateObject_14$4 = __makeTemplateObject(["\n mutation AddMembersToZone($zoneId: ID!, $memberIds: [ID!]!) {\n addMembersToZone(zoneId: $zoneId, memberIds: $memberIds) {\n ...Zone\n }\n }\n ", "\n"], ["\n mutation AddMembersToZone($zoneId: ID!, $memberIds: [ID!]!) {\n addMembersToZone(zoneId: $zoneId, memberIds: $memberIds) {\n ...Zone\n }\n }\n ", "\n"])), ZONE_FRAGMENT);
|
|
658
658
|
var REMOVE_MEMBERS_FROM_ZONE = apolloAngular.gql(templateObject_15$3 || (templateObject_15$3 = __makeTemplateObject(["\n mutation RemoveMembersFromZone($zoneId: ID!, $memberIds: [ID!]!) {\n removeMembersFromZone(zoneId: $zoneId, memberIds: $memberIds) {\n ...Zone\n }\n }\n ", "\n"], ["\n mutation RemoveMembersFromZone($zoneId: ID!, $memberIds: [ID!]!) {\n removeMembersFromZone(zoneId: $zoneId, memberIds: $memberIds) {\n ...Zone\n }\n }\n ", "\n"])), ZONE_FRAGMENT);
|
|
659
659
|
var TAX_CATEGORY_FRAGMENT = apolloAngular.gql(templateObject_16$3 || (templateObject_16$3 = __makeTemplateObject(["\n fragment TaxCategory on TaxCategory {\n id\n createdAt\n updatedAt\n name\n isDefault\n }\n"], ["\n fragment TaxCategory on TaxCategory {\n id\n createdAt\n updatedAt\n name\n isDefault\n }\n"])));
|
|
660
660
|
var GET_TAX_CATEGORIES = apolloAngular.gql(templateObject_17$3 || (templateObject_17$3 = __makeTemplateObject(["\n query GetTaxCategories {\n taxCategories {\n ...TaxCategory\n }\n }\n ", "\n"], ["\n query GetTaxCategories {\n taxCategories {\n ...TaxCategory\n }\n }\n ", "\n"])), TAX_CATEGORY_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$5, templateObject_11$5, templateObject_12$5, templateObject_13$5, templateObject_14$
|
|
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$5, templateObject_11$5, templateObject_12$5, templateObject_13$5, templateObject_14$4, 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$2, templateObject_27$2, templateObject_28$2, templateObject_29$2, templateObject_30$2, templateObject_31$2, templateObject_32$2, templateObject_33$2, templateObject_34$2, templateObject_35$2, templateObject_36$2, templateObject_37$2, templateObject_38$2, templateObject_39$2, templateObject_40$1, templateObject_41$1, templateObject_42$1, templateObject_43$1, templateObject_44$1, templateObject_45$1, templateObject_46$1, 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();
|
|
@@ -1249,7 +1249,7 @@
|
|
|
1249
1249
|
var DELETE_PRODUCTS = apolloAngular.gql(templateObject_11$4 || (templateObject_11$4 = __makeTemplateObject(["\n mutation DeleteProducts($ids: [ID!]!) {\n deleteProducts(ids: $ids) {\n result\n message\n }\n }\n"], ["\n mutation DeleteProducts($ids: [ID!]!) {\n deleteProducts(ids: $ids) {\n result\n message\n }\n }\n"])));
|
|
1250
1250
|
var CREATE_PRODUCT_VARIANTS = apolloAngular.gql(templateObject_12$4 || (templateObject_12$4 = __makeTemplateObject(["\n mutation CreateProductVariants($input: [CreateProductVariantInput!]!) {\n createProductVariants(input: $input) {\n ...ProductVariant\n }\n }\n ", "\n"], ["\n mutation CreateProductVariants($input: [CreateProductVariantInput!]!) {\n createProductVariants(input: $input) {\n ...ProductVariant\n }\n }\n ", "\n"])), PRODUCT_VARIANT_FRAGMENT);
|
|
1251
1251
|
var UPDATE_PRODUCT_VARIANTS = apolloAngular.gql(templateObject_13$4 || (templateObject_13$4 = __makeTemplateObject(["\n mutation UpdateProductVariants($input: [UpdateProductVariantInput!]!) {\n updateProductVariants(input: $input) {\n ...ProductVariant\n }\n }\n ", "\n"], ["\n mutation UpdateProductVariants($input: [UpdateProductVariantInput!]!) {\n updateProductVariants(input: $input) {\n ...ProductVariant\n }\n }\n ", "\n"])), PRODUCT_VARIANT_FRAGMENT);
|
|
1252
|
-
var CREATE_PRODUCT_OPTION_GROUP = apolloAngular.gql(templateObject_14$
|
|
1252
|
+
var CREATE_PRODUCT_OPTION_GROUP = apolloAngular.gql(templateObject_14$3 || (templateObject_14$3 = __makeTemplateObject(["\n mutation CreateProductOptionGroup($input: CreateProductOptionGroupInput!) {\n createProductOptionGroup(input: $input) {\n ...ProductOptionGroupWithOptions\n }\n }\n ", "\n"], ["\n mutation CreateProductOptionGroup($input: CreateProductOptionGroupInput!) {\n createProductOptionGroup(input: $input) {\n ...ProductOptionGroupWithOptions\n }\n }\n ", "\n"])), PRODUCT_OPTION_GROUP_WITH_OPTIONS_FRAGMENT);
|
|
1253
1253
|
var GET_PRODUCT_OPTION_GROUP = apolloAngular.gql(templateObject_15$2 || (templateObject_15$2 = __makeTemplateObject(["\n query GetProductOptionGroup($id: ID!) {\n productOptionGroup(id: $id) {\n ...ProductOptionGroupWithOptions\n }\n }\n ", "\n"], ["\n query GetProductOptionGroup($id: ID!) {\n productOptionGroup(id: $id) {\n ...ProductOptionGroupWithOptions\n }\n }\n ", "\n"])), PRODUCT_OPTION_GROUP_WITH_OPTIONS_FRAGMENT);
|
|
1254
1254
|
var ADD_OPTION_TO_GROUP = apolloAngular.gql(templateObject_16$2 || (templateObject_16$2 = __makeTemplateObject(["\n mutation AddOptionToGroup($input: CreateProductOptionInput!) {\n createProductOption(input: $input) {\n id\n createdAt\n updatedAt\n name\n code\n groupId\n }\n }\n"], ["\n mutation AddOptionToGroup($input: CreateProductOptionInput!) {\n createProductOption(input: $input) {\n id\n createdAt\n updatedAt\n name\n code\n groupId\n }\n }\n"])));
|
|
1255
1255
|
var ADD_OPTION_GROUP_TO_PRODUCT = apolloAngular.gql(templateObject_17$2 || (templateObject_17$2 = __makeTemplateObject(["\n mutation AddOptionGroupToProduct($productId: ID!, $optionGroupId: ID!) {\n addOptionGroupToProduct(productId: $productId, optionGroupId: $optionGroupId) {\n id\n createdAt\n updatedAt\n optionGroups {\n id\n createdAt\n updatedAt\n code\n options {\n id\n createdAt\n updatedAt\n code\n }\n }\n }\n }\n"], ["\n mutation AddOptionGroupToProduct($productId: ID!, $optionGroupId: ID!) {\n addOptionGroupToProduct(productId: $productId, optionGroupId: $optionGroupId) {\n id\n createdAt\n updatedAt\n optionGroups {\n id\n createdAt\n updatedAt\n code\n options {\n id\n createdAt\n updatedAt\n code\n }\n }\n }\n }\n"])));
|
|
@@ -1282,7 +1282,7 @@
|
|
|
1282
1282
|
var CREATE_TAG = apolloAngular.gql(templateObject_44 || (templateObject_44 = __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);
|
|
1283
1283
|
var UPDATE_TAG = apolloAngular.gql(templateObject_45 || (templateObject_45 = __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);
|
|
1284
1284
|
var DELETE_TAG = apolloAngular.gql(templateObject_46 || (templateObject_46 = __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"])));
|
|
1285
|
-
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$4, templateObject_11$4, templateObject_12$4, templateObject_13$4, templateObject_14$
|
|
1285
|
+
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$4, templateObject_11$4, templateObject_12$4, templateObject_13$4, templateObject_14$3, 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$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, templateObject_41, templateObject_42, templateObject_43, templateObject_44, templateObject_45, templateObject_46;
|
|
1286
1286
|
|
|
1287
1287
|
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);
|
|
1288
1288
|
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 breadcrumbs {\n id\n name\n slug\n }\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 breadcrumbs {\n id\n name\n slug\n }\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);
|
|
@@ -2391,7 +2391,7 @@
|
|
|
2391
2391
|
var DELETE_CUSTOMER_ADDRESS = apolloAngular.gql(templateObject_11$2 || (templateObject_11$2 = __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"])));
|
|
2392
2392
|
var CREATE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_12$2 || (templateObject_12$2 = __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);
|
|
2393
2393
|
var UPDATE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_13$2 || (templateObject_13$2 = __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);
|
|
2394
|
-
var DELETE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_14$
|
|
2394
|
+
var DELETE_CUSTOMER_GROUP = apolloAngular.gql(templateObject_14$2 || (templateObject_14$2 = __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"])));
|
|
2395
2395
|
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);
|
|
2396
2396
|
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);
|
|
2397
2397
|
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);
|
|
@@ -2400,7 +2400,7 @@
|
|
|
2400
2400
|
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"])));
|
|
2401
2401
|
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"])));
|
|
2402
2402
|
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"])));
|
|
2403
|
-
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$2, templateObject_12$2, templateObject_13$2, templateObject_14$
|
|
2403
|
+
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$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1;
|
|
2404
2404
|
|
|
2405
2405
|
var CustomerDataService = /** @class */ (function () {
|
|
2406
2406
|
function CustomerDataService(baseDataService) {
|
|
@@ -2533,10 +2533,11 @@
|
|
|
2533
2533
|
var UPDATE_FACET_VALUES = apolloAngular.gql(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n mutation UpdateFacetValues($input: [UpdateFacetValueInput!]!) {\n updateFacetValues(input: $input) {\n ...FacetValue\n }\n }\n ", "\n"], ["\n mutation UpdateFacetValues($input: [UpdateFacetValueInput!]!) {\n updateFacetValues(input: $input) {\n ...FacetValue\n }\n }\n ", "\n"])), FACET_VALUE_FRAGMENT);
|
|
2534
2534
|
var DELETE_FACET_VALUES = apolloAngular.gql(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n mutation DeleteFacetValues($ids: [ID!]!, $force: Boolean) {\n deleteFacetValues(ids: $ids, force: $force) {\n result\n message\n }\n }\n"], ["\n mutation DeleteFacetValues($ids: [ID!]!, $force: Boolean) {\n deleteFacetValues(ids: $ids, force: $force) {\n result\n message\n }\n }\n"])));
|
|
2535
2535
|
var GET_FACET_LIST = apolloAngular.gql(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n query GetFacetList($options: FacetListOptions) {\n facets(options: $options) {\n items {\n ...FacetWithValues\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetFacetList($options: FacetListOptions) {\n facets(options: $options) {\n items {\n ...FacetWithValues\n }\n totalItems\n }\n }\n ", "\n"])), FACET_WITH_VALUES_FRAGMENT);
|
|
2536
|
-
var
|
|
2537
|
-
var
|
|
2538
|
-
var
|
|
2539
|
-
var
|
|
2536
|
+
var GET_FACET_VALUE_LIST = apolloAngular.gql(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n query GetFacetValueList($options: FacetValueListOptions) {\n facetValues(options: $options) {\n items {\n ...FacetValue\n }\n totalItems\n }\n }\n ", "\n"], ["\n query GetFacetValueList($options: FacetValueListOptions) {\n facetValues(options: $options) {\n items {\n ...FacetValue\n }\n totalItems\n }\n }\n ", "\n"])), FACET_VALUE_FRAGMENT);
|
|
2537
|
+
var GET_FACET_WITH_VALUES = apolloAngular.gql(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n query GetFacetWithValues($id: ID!) {\n facet(id: $id) {\n ...FacetWithValues\n }\n }\n ", "\n"], ["\n query GetFacetWithValues($id: ID!) {\n facet(id: $id) {\n ...FacetWithValues\n }\n }\n ", "\n"])), FACET_WITH_VALUES_FRAGMENT);
|
|
2538
|
+
var ASSIGN_FACETS_TO_CHANNEL = apolloAngular.gql(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n mutation AssignFacetsToChannel($input: AssignFacetsToChannelInput!) {\n assignFacetsToChannel(input: $input) {\n id\n }\n }\n"], ["\n mutation AssignFacetsToChannel($input: AssignFacetsToChannelInput!) {\n assignFacetsToChannel(input: $input) {\n id\n }\n }\n"])));
|
|
2539
|
+
var REMOVE_FACETS_FROM_CHANNEL = apolloAngular.gql(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n mutation RemoveFacetsFromChannel($input: RemoveFacetsFromChannelInput!) {\n removeFacetsFromChannel(input: $input) {\n ... on Facet {\n id\n }\n ... on FacetInUseError {\n errorCode\n message\n variantCount\n productCount\n }\n }\n }\n"], ["\n mutation RemoveFacetsFromChannel($input: RemoveFacetsFromChannelInput!) {\n removeFacetsFromChannel(input: $input) {\n ... on Facet {\n id\n }\n ... on FacetInUseError {\n errorCode\n message\n variantCount\n productCount\n }\n }\n }\n"])));
|
|
2540
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$3, templateObject_4$3, templateObject_5$3, templateObject_6$3, templateObject_7$3, templateObject_8$2, templateObject_9$2, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14$1;
|
|
2540
2541
|
|
|
2541
2542
|
var FacetDataService = /** @class */ (function () {
|
|
2542
2543
|
function FacetDataService(baseDataService) {
|
|
@@ -2552,6 +2553,9 @@
|
|
|
2552
2553
|
},
|
|
2553
2554
|
});
|
|
2554
2555
|
};
|
|
2556
|
+
FacetDataService.prototype.getFacetValues = function (options, fetchPolicy) {
|
|
2557
|
+
return this.baseDataService.query(GET_FACET_VALUE_LIST, { options: options }, fetchPolicy);
|
|
2558
|
+
};
|
|
2555
2559
|
FacetDataService.prototype.getAllFacets = function () {
|
|
2556
2560
|
return this.baseDataService.query(GET_FACET_LIST, {});
|
|
2557
2561
|
};
|
|
@@ -5568,6 +5572,7 @@
|
|
|
5568
5572
|
"CustomerGroupList",
|
|
5569
5573
|
"CustomerList",
|
|
5570
5574
|
"FacetList",
|
|
5575
|
+
"FacetValueList",
|
|
5571
5576
|
"HistoryEntryList",
|
|
5572
5577
|
"JobList",
|
|
5573
5578
|
"OrderList",
|
|
@@ -7215,9 +7220,8 @@
|
|
|
7215
7220
|
* @docsPage default-inputs
|
|
7216
7221
|
*/
|
|
7217
7222
|
var FacetValueFormInputComponent = /** @class */ (function () {
|
|
7218
|
-
function FacetValueFormInputComponent(
|
|
7223
|
+
function FacetValueFormInputComponent() {
|
|
7219
7224
|
var _this = this;
|
|
7220
|
-
this.dataService = dataService;
|
|
7221
7225
|
this.isListInput = true;
|
|
7222
7226
|
this.valueTransformFn = function (values) {
|
|
7223
7227
|
var isUsedInConfigArg = _this.config.__typename === 'ConfigArgDefinition';
|
|
@@ -7229,26 +7233,17 @@
|
|
|
7229
7233
|
}
|
|
7230
7234
|
};
|
|
7231
7235
|
}
|
|
7232
|
-
FacetValueFormInputComponent.prototype.ngOnInit = function () {
|
|
7233
|
-
this.facets$ = this.dataService.facet
|
|
7234
|
-
.getAllFacets()
|
|
7235
|
-
.mapSingle(function (data) { return data.facets.items; })
|
|
7236
|
-
.pipe(operators.shareReplay(1));
|
|
7237
|
-
};
|
|
7238
7236
|
return FacetValueFormInputComponent;
|
|
7239
7237
|
}());
|
|
7240
7238
|
FacetValueFormInputComponent.id = 'facet-value-form-input';
|
|
7241
7239
|
FacetValueFormInputComponent.decorators = [
|
|
7242
7240
|
{ type: i0.Component, args: [{
|
|
7243
7241
|
selector: 'vdr-facet-value-form-input',
|
|
7244
|
-
template: "<vdr-facet-value-selector\r\n
|
|
7242
|
+
template: "<vdr-facet-value-selector\r\n [readonly]=\"readonly\"\r\n [formControl]=\"formControl\"\r\n [transformControlValueAccessorValue]=\"valueTransformFn\"\r\n></vdr-facet-value-selector>\r\n",
|
|
7245
7243
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7246
7244
|
styles: [""]
|
|
7247
7245
|
},] }
|
|
7248
|
-
];
|
|
7249
|
-
FacetValueFormInputComponent.ctorParameters = function () { return [
|
|
7250
|
-
{ type: DataService }
|
|
7251
|
-
]; };
|
|
7246
|
+
];
|
|
7252
7247
|
|
|
7253
7248
|
/**
|
|
7254
7249
|
* @description
|
|
@@ -10712,10 +10707,6 @@
|
|
|
10712
10707
|
remove: [{ type: i0.Output }]
|
|
10713
10708
|
};
|
|
10714
10709
|
|
|
10715
|
-
function flattenFacetValues(facetsWithValues) {
|
|
10716
|
-
return facetsWithValues.reduce(function (flattened, facet) { return flattened.concat(facet.values); }, []);
|
|
10717
|
-
}
|
|
10718
|
-
|
|
10719
10710
|
/**
|
|
10720
10711
|
* @description
|
|
10721
10712
|
* A form control for selecting facet values.
|
|
@@ -10739,30 +10730,55 @@
|
|
|
10739
10730
|
* @docsCategory components
|
|
10740
10731
|
*/
|
|
10741
10732
|
var FacetValueSelectorComponent = /** @class */ (function () {
|
|
10742
|
-
function FacetValueSelectorComponent(dataService) {
|
|
10733
|
+
function FacetValueSelectorComponent(dataService, changeDetectorRef) {
|
|
10743
10734
|
this.dataService = dataService;
|
|
10735
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
10744
10736
|
this.selectedValuesChange = new i0.EventEmitter();
|
|
10745
10737
|
this.readonly = false;
|
|
10746
10738
|
this.transformControlValueAccessorValue = function (value) { return value; };
|
|
10747
|
-
this.
|
|
10739
|
+
this.searchInput$ = new rxjs.Subject();
|
|
10740
|
+
this.searchLoading = false;
|
|
10741
|
+
this.selectedIds$ = new rxjs.Subject();
|
|
10748
10742
|
this.disabled = false;
|
|
10749
|
-
this.toSelectorItem = function (facetValue) {
|
|
10750
|
-
return {
|
|
10751
|
-
name: facetValue.name,
|
|
10752
|
-
facetName: facetValue.facet.name,
|
|
10753
|
-
id: facetValue.id,
|
|
10754
|
-
value: facetValue,
|
|
10755
|
-
};
|
|
10756
|
-
};
|
|
10757
10743
|
}
|
|
10758
10744
|
FacetValueSelectorComponent.prototype.ngOnInit = function () {
|
|
10759
|
-
this.
|
|
10745
|
+
this.initSearchResults();
|
|
10746
|
+
};
|
|
10747
|
+
FacetValueSelectorComponent.prototype.initSearchResults = function () {
|
|
10748
|
+
var _this = this;
|
|
10749
|
+
var searchItems$ = this.searchInput$.pipe(operators.debounceTime(200), operators.distinctUntilChanged(), operators.tap(function () { return (_this.searchLoading = true); }), operators.switchMap(function (term) {
|
|
10750
|
+
if (!term) {
|
|
10751
|
+
return rxjs.of([]);
|
|
10752
|
+
}
|
|
10753
|
+
return _this.dataService.facet
|
|
10754
|
+
.getFacetValues({ take: 10, filter: { name: { contains: term } } })
|
|
10755
|
+
.mapSingle(function (result) { return result.facetValues.items; });
|
|
10756
|
+
}), operators.tap(function () { return (_this.searchLoading = false); }));
|
|
10757
|
+
this.subscription = this.selectedIds$
|
|
10758
|
+
.pipe(operators.switchMap(function (ids) {
|
|
10759
|
+
if (!ids.length) {
|
|
10760
|
+
return rxjs.of([]);
|
|
10761
|
+
}
|
|
10762
|
+
return _this.dataService.facet
|
|
10763
|
+
.getFacetValues({ take: 10, filter: { id: { in: ids } } }, 'cache-first')
|
|
10764
|
+
.mapSingle(function (result) { return result.facetValues.items; });
|
|
10765
|
+
}))
|
|
10766
|
+
.subscribe(function (val) {
|
|
10767
|
+
_this.value = val;
|
|
10768
|
+
_this.changeDetectorRef.markForCheck();
|
|
10769
|
+
});
|
|
10770
|
+
var clear$ = this.selectedValuesChange.pipe(operators.mapTo([]));
|
|
10771
|
+
this.searchResults$ = rxjs.concat(rxjs.of([]), rxjs.merge(searchItems$, clear$));
|
|
10772
|
+
};
|
|
10773
|
+
FacetValueSelectorComponent.prototype.ngOnDestroy = function () {
|
|
10774
|
+
var _a;
|
|
10775
|
+
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
10760
10776
|
};
|
|
10761
10777
|
FacetValueSelectorComponent.prototype.onChange = function (selected) {
|
|
10762
10778
|
if (this.readonly) {
|
|
10763
10779
|
return;
|
|
10764
10780
|
}
|
|
10765
|
-
this.selectedValuesChange.emit(selected
|
|
10781
|
+
this.selectedValuesChange.emit(selected);
|
|
10766
10782
|
if (this.onChangeFn) {
|
|
10767
10783
|
var transformedValue = this.transformControlValueAccessorValue(selected);
|
|
10768
10784
|
this.onChangeFn(transformedValue);
|
|
@@ -10781,10 +10797,11 @@
|
|
|
10781
10797
|
this.ngSelect.focus();
|
|
10782
10798
|
};
|
|
10783
10799
|
FacetValueSelectorComponent.prototype.writeValue = function (obj) {
|
|
10800
|
+
var valueIds;
|
|
10784
10801
|
if (typeof obj === 'string') {
|
|
10785
10802
|
try {
|
|
10786
|
-
var
|
|
10787
|
-
|
|
10803
|
+
var facetValueIds = JSON.parse(obj);
|
|
10804
|
+
valueIds = facetValueIds;
|
|
10788
10805
|
}
|
|
10789
10806
|
catch (err) {
|
|
10790
10807
|
// TODO: log error
|
|
@@ -10794,19 +10811,23 @@
|
|
|
10794
10811
|
else if (Array.isArray(obj)) {
|
|
10795
10812
|
var isIdArray = function (input) { return input.every(function (i) { return typeof i === 'number' || typeof i === 'string'; }); };
|
|
10796
10813
|
if (isIdArray(obj)) {
|
|
10797
|
-
|
|
10814
|
+
valueIds = obj.map(function (fv) { return fv.toString(); });
|
|
10798
10815
|
}
|
|
10799
10816
|
else {
|
|
10800
|
-
|
|
10817
|
+
valueIds = obj.map(function (fv) { return fv.id; });
|
|
10801
10818
|
}
|
|
10802
10819
|
}
|
|
10820
|
+
if (valueIds) {
|
|
10821
|
+
// this.value = valueIds;
|
|
10822
|
+
this.selectedIds$.next(valueIds);
|
|
10823
|
+
}
|
|
10803
10824
|
};
|
|
10804
10825
|
return FacetValueSelectorComponent;
|
|
10805
10826
|
}());
|
|
10806
10827
|
FacetValueSelectorComponent.decorators = [
|
|
10807
10828
|
{ type: i0.Component, args: [{
|
|
10808
10829
|
selector: 'vdr-facet-value-selector',
|
|
10809
|
-
template: "<ng-select\r\n [items]=\"
|
|
10830
|
+
template: "<ng-select\r\n [items]=\"searchResults$ | async\"\r\n [addTag]=\"false\"\r\n [hideSelected]=\"true\"\r\n [loading]=\"searchLoading\"\r\n [typeahead]=\"searchInput$\"\r\n multiple=\"true\"\r\n appendTo=\"body\"\r\n bindLabel=\"name\"\r\n [disabled]=\"disabled || readonly\"\r\n [ngModel]=\"value\"\r\n (change)=\"onChange($event)\"\r\n>\r\n <ng-template ng-label-tmp let-item=\"item\" let-clear=\"clear\">\r\n <vdr-facet-value-chip\r\n *ngIf=\"item; else facetNotFound\"\r\n [facetValue]=\"item\"\r\n [removable]=\"!readonly\"\r\n (remove)=\"clear(item)\"\r\n ></vdr-facet-value-chip>\r\n <ng-template #facetNotFound>\r\n <vdr-chip colorType=\"error\" icon=\"times\" (iconClick)=\"clear(item)\">{{\r\n 'catalog.facet-value-not-available' | translate: { id: item.id }\r\n }}</vdr-chip>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template ng-option-tmp let-item=\"item\">\r\n <vdr-facet-value-chip [facetValue]=\"item\" [removable]=\"false\"></vdr-facet-value-chip>\r\n </ng-template>\r\n</ng-select>\r\n",
|
|
10810
10831
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
10811
10832
|
providers: [
|
|
10812
10833
|
{
|
|
@@ -10819,11 +10840,11 @@
|
|
|
10819
10840
|
},] }
|
|
10820
10841
|
];
|
|
10821
10842
|
FacetValueSelectorComponent.ctorParameters = function () { return [
|
|
10822
|
-
{ type: DataService }
|
|
10843
|
+
{ type: DataService },
|
|
10844
|
+
{ type: i0.ChangeDetectorRef }
|
|
10823
10845
|
]; };
|
|
10824
10846
|
FacetValueSelectorComponent.propDecorators = {
|
|
10825
10847
|
selectedValuesChange: [{ type: i0.Output }],
|
|
10826
|
-
facets: [{ type: i0.Input }],
|
|
10827
10848
|
readonly: [{ type: i0.Input }],
|
|
10828
10849
|
transformControlValueAccessorValue: [{ type: i0.Input }],
|
|
10829
10850
|
ngSelect: [{ type: i0.ViewChild, args: [ngSelect.NgSelectComponent,] }]
|
|
@@ -10965,7 +10986,7 @@
|
|
|
10965
10986
|
if (!this.formFieldControl || !this.formFieldControl.formControlName) {
|
|
10966
10987
|
return;
|
|
10967
10988
|
}
|
|
10968
|
-
var errors = this.formFieldControl.formControlName.errors;
|
|
10989
|
+
var errors = this.formFieldControl.formControlName.dirty && this.formFieldControl.formControlName.errors;
|
|
10969
10990
|
if (errors) {
|
|
10970
10991
|
try {
|
|
10971
10992
|
for (var _b = __values(Object.keys(errors)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
@@ -13387,7 +13408,7 @@
|
|
|
13387
13408
|
TimelineEntryComponent.decorators = [
|
|
13388
13409
|
{ type: i0.Component, args: [{
|
|
13389
13410
|
selector: 'vdr-timeline-entry',
|
|
13390
|
-
template: "<div\r\n [ngClass]=\"displayType\"\r\n [class.has-custom-icon]=\"!!iconShape\"\r\n class=\"entry\"\r\n [class.last]=\"isLast === true\"\r\n [class.collapsed]=\"collapsed\"\r\n>\r\n <div class=\"timeline\" (click)=\"expandClick.emit()\" [title]=\"timelineTitle | translate\">\r\n <div class=\"custom-icon\">\r\n <clr-icon\r\n *ngIf=\"iconShape && !collapsed\"\r\n [attr.shape]=\"getIconShape()\"\r\n [ngClass]=\"getIconClass()\"\r\n size=\"24\"\r\n ></clr-icon>\r\n </div>\r\n </div>\r\n <div class=\"entry-body\">\r\n <div class=\"detail\">\r\n <div class=\"time\">\r\n {{ createdAt | localeDate: 'short' }}\r\n </div>\r\n <div class=\"name\">\r\n {{ name }}\r\n </div>\r\n </div>\r\n <div [class.featured-entry]=\"featured\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
13411
|
+
template: "<div\r\n [ngClass]=\"displayType\"\r\n [class.has-custom-icon]=\"!!iconShape\"\r\n class=\"entry\"\r\n [class.last]=\"isLast === true\"\r\n [class.collapsed]=\"collapsed\"\r\n>\r\n <div class=\"timeline\" (click)=\"expandClick.emit()\" [title]=\"timelineTitle | translate\">\r\n <div class=\"custom-icon\">\r\n <clr-icon\r\n *ngIf=\"iconShape && !collapsed\"\r\n [attr.shape]=\"getIconShape()\"\r\n [ngClass]=\"getIconClass()\"\r\n size=\"24\"\r\n ></clr-icon>\r\n </div>\r\n </div>\r\n <div class=\"entry-body\">\r\n <div class=\"detail\">\r\n <div class=\"time\">\r\n {{ createdAt | localeDate: 'short' }}\r\n </div>\r\n <div class=\"name\">\r\n {{ name || '' }}\r\n </div>\r\n </div>\r\n <div [class.featured-entry]=\"featured\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
13391
13412
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
13392
13413
|
styles: [":host{display:block}:host:first-of-type .timeline:before{border-left-color:var(--color-timeline-thread)}:host:first-of-type .entry-body{max-height:initial}.entry{display:flex}.timeline{border-left:2px solid var(--color-timeline-thread);padding-bottom:8px;position:relative}.timeline:before{content:\"\";position:absolute;width:2px;height:32px;left:-2px;border-left:2px solid var(--color-timeline-thread)}.timeline:after{content:\"\";display:block;border-radius:50%;width:8px;height:8px;background-color:var(--color-component-bg-200);border:1px solid var(--color-component-border-300);position:absolute;left:-5px;top:32px;transition:top .2s;cursor:pointer}.timeline .custom-icon{position:absolute;width:32px;height:32px;left:-17px;top:32px;align-items:center;justify-content:center;border-radius:50%;color:var(--color-primary-600);background-color:var(--color-component-bg-100);border:1px solid var(--color-component-border-200);display:none}.entry.has-custom-icon .timeline:after{display:none}.entry.has-custom-icon .custom-icon{display:flex}.entry.last .timeline{border-left-color:transparent}.entry-body{flex:1;padding-top:24px;padding-left:12px;line-height:16px;margin-left:12px;color:var(--color-text-200);overflow:visible;max-height:100px;transition:max-height .2s,padding-top .2s,opacity .2s .2s}.featured-entry ::ng-deep .title{color:var(--color-text-100);font-size:16px;line-height:26px}.featured-entry ::ng-deep .note-text{color:var(--color-text-100);white-space:pre-wrap}.detail{display:flex;color:var(--color-text-300);font-size:12px}.detail .name{margin-left:12px}.muted .timeline,.muted .timeline .custom-icon{color:var(--color-text-300)}.success .timeline,.success .timeline .custom-icon{color:var(--color-success-400)}.success .timeline:after{background-color:var(--color-success-200);border:1px solid var(--color-success-400)}.error .timeline,.error .timeline .custom-icon{color:var(--color-error-400)}.error .timeline:after{background-color:var(--color-error-200);border:1px solid var(--color-error-400)}.warning .timeline,.warning .timeline .custom-icon{color:var(--color-warning-400)}.warning .timeline:after{background-color:var(--color-warning-200);border:1px solid var(--color-warning-400)}.collapsed .entry-body{max-height:0;overflow:hidden;opacity:0;padding-top:0}.collapsed .timeline{border-left-color:transparent}.collapsed .timeline:after{top:0}\n"]
|
|
13393
13414
|
},] }
|
|
@@ -16071,7 +16092,7 @@
|
|
|
16071
16092
|
}
|
|
16072
16093
|
|
|
16073
16094
|
// Auto-generated by the set-version.js script.
|
|
16074
|
-
var ADMIN_UI_VERSION = '1.
|
|
16095
|
+
var ADMIN_UI_VERSION = '1.9.0';
|
|
16075
16096
|
|
|
16076
16097
|
/**
|
|
16077
16098
|
* @description
|
|
@@ -16134,6 +16155,44 @@
|
|
|
16134
16155
|
};
|
|
16135
16156
|
}
|
|
16136
16157
|
|
|
16158
|
+
/**
|
|
16159
|
+
* @description
|
|
16160
|
+
* Registers a {@link HistoryEntryComponent} for displaying history entries in the Order/Customer
|
|
16161
|
+
* history timeline.
|
|
16162
|
+
*
|
|
16163
|
+
* @since 1.9.0
|
|
16164
|
+
* @docsCategory custom-history-entry-components
|
|
16165
|
+
*/
|
|
16166
|
+
function registerHistoryEntryComponent(config) {
|
|
16167
|
+
return {
|
|
16168
|
+
provide: i0.APP_INITIALIZER,
|
|
16169
|
+
multi: true,
|
|
16170
|
+
useFactory: function (customHistoryEntryComponentService) { return function () {
|
|
16171
|
+
customHistoryEntryComponentService.registerComponent(config);
|
|
16172
|
+
}; },
|
|
16173
|
+
deps: [HistoryEntryComponentService],
|
|
16174
|
+
};
|
|
16175
|
+
}
|
|
16176
|
+
var HistoryEntryComponentService = /** @class */ (function () {
|
|
16177
|
+
function HistoryEntryComponentService() {
|
|
16178
|
+
this.customEntryComponents = new Map();
|
|
16179
|
+
}
|
|
16180
|
+
HistoryEntryComponentService.prototype.registerComponent = function (config) {
|
|
16181
|
+
this.customEntryComponents.set(config.type, config);
|
|
16182
|
+
};
|
|
16183
|
+
HistoryEntryComponentService.prototype.getComponent = function (type) {
|
|
16184
|
+
var _a;
|
|
16185
|
+
return (_a = this.customEntryComponents.get(type)) === null || _a === void 0 ? void 0 : _a.component;
|
|
16186
|
+
};
|
|
16187
|
+
return HistoryEntryComponentService;
|
|
16188
|
+
}());
|
|
16189
|
+
HistoryEntryComponentService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function HistoryEntryComponentService_Factory() { return new HistoryEntryComponentService(); }, token: HistoryEntryComponentService, providedIn: "root" });
|
|
16190
|
+
HistoryEntryComponentService.decorators = [
|
|
16191
|
+
{ type: i0.Injectable, args: [{
|
|
16192
|
+
providedIn: 'root',
|
|
16193
|
+
},] }
|
|
16194
|
+
];
|
|
16195
|
+
|
|
16137
16196
|
/**
|
|
16138
16197
|
* Responsible for registering dashboard widget components and querying for layouts.
|
|
16139
16198
|
*/
|
|
@@ -16579,6 +16638,7 @@
|
|
|
16579
16638
|
exports.GET_CUSTOMER_HISTORY = GET_CUSTOMER_HISTORY;
|
|
16580
16639
|
exports.GET_CUSTOMER_LIST = GET_CUSTOMER_LIST;
|
|
16581
16640
|
exports.GET_FACET_LIST = GET_FACET_LIST;
|
|
16641
|
+
exports.GET_FACET_VALUE_LIST = GET_FACET_VALUE_LIST;
|
|
16582
16642
|
exports.GET_FACET_WITH_VALUES = GET_FACET_WITH_VALUES;
|
|
16583
16643
|
exports.GET_GLOBAL_SETTINGS = GET_GLOBAL_SETTINGS;
|
|
16584
16644
|
exports.GET_JOBS_BY_ID = GET_JOBS_BY_ID;
|
|
@@ -16626,6 +16686,7 @@
|
|
|
16626
16686
|
exports.HasPermissionPipe = HasPermissionPipe;
|
|
16627
16687
|
exports.HealthCheckService = HealthCheckService;
|
|
16628
16688
|
exports.HelpTooltipComponent = HelpTooltipComponent;
|
|
16689
|
+
exports.HistoryEntryComponentService = HistoryEntryComponentService;
|
|
16629
16690
|
exports.HistoryEntryDetailComponent = HistoryEntryDetailComponent;
|
|
16630
16691
|
exports.HtmlEditorFormInputComponent = HtmlEditorFormInputComponent;
|
|
16631
16692
|
exports.HttpLoaderFactory = HttpLoaderFactory;
|
|
@@ -16836,7 +16897,6 @@
|
|
|
16836
16897
|
exports.detailBreadcrumb = detailBreadcrumb;
|
|
16837
16898
|
exports.encodeConfigArgValue = encodeConfigArgValue;
|
|
16838
16899
|
exports.findTranslation = findTranslation;
|
|
16839
|
-
exports.flattenFacetValues = flattenFacetValues;
|
|
16840
16900
|
exports.getAppConfig = getAppConfig;
|
|
16841
16901
|
exports.getChannelCodeFromUserStatus = getChannelCodeFromUserStatus;
|
|
16842
16902
|
exports.getClientDefaults = getClientDefaults;
|
|
@@ -16873,6 +16933,7 @@
|
|
|
16873
16933
|
exports.registerDashboardWidget = registerDashboardWidget;
|
|
16874
16934
|
exports.registerDefaultFormInputs = registerDefaultFormInputs;
|
|
16875
16935
|
exports.registerFormInputComponent = registerFormInputComponent;
|
|
16936
|
+
exports.registerHistoryEntryComponent = registerHistoryEntryComponent;
|
|
16876
16937
|
exports.removeReadonlyCustomFields = removeReadonlyCustomFields;
|
|
16877
16938
|
exports.renderClarityIcon = renderClarityIcon;
|
|
16878
16939
|
exports.setDashboardWidgetLayout = setDashboardWidgetLayout;
|