@commercetools-frontend-extensions/change-history 8.25.0 → 8.26.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/dist/commercetools-frontend-extensions-change-history.cjs.dev.js +963 -945
- package/dist/commercetools-frontend-extensions-change-history.cjs.prod.js +959 -831
- package/dist/commercetools-frontend-extensions-change-history.esm.js +966 -949
- package/dist/{de-ad037854.cjs.dev.js → de-43cb4047.cjs.prod.js} +12 -0
- package/dist/{de-c2be9253.cjs.prod.js → de-56dd9c17.cjs.dev.js} +12 -0
- package/dist/{de-7764939f.esm.js → de-e31aba14.esm.js} +12 -0
- package/dist/declarations/src/i18n/load-i18n.d.ts +24 -0
- package/dist/declarations/types/src/generated/change-history.d.ts +333 -329
- package/dist/{en-1c982e4c.esm.js → en-99ba1d0a.esm.js} +12 -0
- package/dist/{en-87dd4629.cjs.dev.js → en-9dc7b636.cjs.prod.js} +12 -0
- package/dist/{en-f0b11682.cjs.prod.js → en-d08e7e84.cjs.dev.js} +12 -0
- package/dist/{es-dee2e5ce.cjs.dev.js → es-9ebed685.cjs.dev.js} +12 -0
- package/dist/{es-83f1bc1c.esm.js → es-a3bb1f2d.esm.js} +12 -0
- package/dist/{es-0421b67e.cjs.prod.js → es-f2d2e7a4.cjs.prod.js} +12 -0
- package/dist/{fr-FR-f37fb0ff.cjs.dev.js → fr-FR-36330979.cjs.dev.js} +12 -0
- package/dist/{fr-FR-a3c8a9b8.cjs.prod.js → fr-FR-c1b86aa9.cjs.prod.js} +12 -0
- package/dist/{fr-FR-49d3b2ef.esm.js → fr-FR-cd50a6e3.esm.js} +12 -0
- package/dist/{pt-BR-eb64f196.esm.js → pt-BR-b4e5dd84.esm.js} +12 -0
- package/dist/{pt-BR-4e486b02.cjs.prod.js → pt-BR-d9d90a6f.cjs.prod.js} +12 -0
- package/dist/{pt-BR-8a1c2b7a.cjs.dev.js → pt-BR-f8fd8e23.cjs.dev.js} +12 -0
- package/dist/{zh-CN-f319b1ad.cjs.dev.js → zh-CN-06c9221b.cjs.dev.js} +12 -0
- package/dist/{zh-CN-9ac999ed.esm.js → zh-CN-ba4d9631.esm.js} +12 -0
- package/dist/{zh-CN-252dd3b1.cjs.prod.js → zh-CN-c5e4f709.cjs.prod.js} +12 -0
- package/package.json +12 -12
|
@@ -71,13 +71,7 @@ var moment$1 = require('moment');
|
|
|
71
71
|
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
72
72
|
var _indexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
73
73
|
var fastEquals = require('fast-equals');
|
|
74
|
-
var
|
|
75
|
-
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
76
|
-
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
77
|
-
var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
78
|
-
var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
79
|
-
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
80
|
-
var isNil$1 = require('lodash/isNil');
|
|
74
|
+
var _everyInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/every');
|
|
81
75
|
var orderBy = require('lodash/orderBy');
|
|
82
76
|
var selectUtils = require('@commercetools-uikit/select-utils');
|
|
83
77
|
var utils = require('@commercetools-uikit/utils');
|
|
@@ -89,6 +83,13 @@ var kebabCase = require('lodash/kebabCase');
|
|
|
89
83
|
var has = require('lodash/has');
|
|
90
84
|
var _Array$from = require('@babel/runtime-corejs3/core-js-stable/array/from');
|
|
91
85
|
var debounce$1 = require('lodash/debounce');
|
|
86
|
+
var _Reflect$construct = require('@babel/runtime-corejs3/core-js-stable/reflect/construct');
|
|
87
|
+
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
88
|
+
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
89
|
+
var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
90
|
+
var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
91
|
+
var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
|
|
92
|
+
var isNil$1 = require('lodash/isNil');
|
|
92
93
|
var isFunction = require('lodash/isFunction');
|
|
93
94
|
var uniq = require('lodash/uniq');
|
|
94
95
|
var icons = require('@commercetools-uikit/icons');
|
|
@@ -139,21 +140,22 @@ var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInsta
|
|
|
139
140
|
var moment__default$1 = /*#__PURE__*/_interopDefault(moment$1);
|
|
140
141
|
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
141
142
|
var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_indexOfInstanceProperty);
|
|
142
|
-
var
|
|
143
|
-
var isNil__default = /*#__PURE__*/_interopDefault(isNil$1);
|
|
143
|
+
var _everyInstanceProperty__default = /*#__PURE__*/_interopDefault(_everyInstanceProperty);
|
|
144
144
|
var orderBy__default = /*#__PURE__*/_interopDefault(orderBy);
|
|
145
145
|
var debounce__default = /*#__PURE__*/_interopDefault(debounce);
|
|
146
146
|
var kebabCase__default = /*#__PURE__*/_interopDefault(kebabCase);
|
|
147
147
|
var has__default = /*#__PURE__*/_interopDefault(has);
|
|
148
148
|
var _Array$from__default = /*#__PURE__*/_interopDefault(_Array$from);
|
|
149
149
|
var debounce__default$1 = /*#__PURE__*/_interopDefault(debounce$1);
|
|
150
|
+
var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construct);
|
|
151
|
+
var isNil__default = /*#__PURE__*/_interopDefault(isNil$1);
|
|
150
152
|
var isFunction__default = /*#__PURE__*/_interopDefault(isFunction);
|
|
151
153
|
var uniq__default = /*#__PURE__*/_interopDefault(uniq);
|
|
152
154
|
var omitBy__default = /*#__PURE__*/_interopDefault(omitBy);
|
|
153
155
|
var LeadingIcon__default = /*#__PURE__*/_interopDefault(LeadingIcon);
|
|
154
156
|
|
|
155
157
|
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
|
|
156
|
-
var version = "8.
|
|
158
|
+
var version = "8.26.0";
|
|
157
159
|
|
|
158
160
|
// EXAMPLE
|
|
159
161
|
// export const FEATURE_FLAG_NAME = 'featureFlagName';
|
|
@@ -163,7 +165,7 @@ const AL_LAYOUT_REDESIGN = 'alLayoutRedesign';
|
|
|
163
165
|
const AL_FILTER_REDESIGN = 'alFilterRedesign';
|
|
164
166
|
const FLAGS = {
|
|
165
167
|
// [FEATURE_FLAG_NAME]: set true or false,
|
|
166
|
-
[AL_LAYOUT_REDESIGN]:
|
|
168
|
+
[AL_LAYOUT_REDESIGN]: true,
|
|
167
169
|
[AL_FILTER_REDESIGN]: false
|
|
168
170
|
};
|
|
169
171
|
|
|
@@ -273,6 +275,7 @@ const CHANGE_TYPE_NAME = {
|
|
|
273
275
|
CHANGE_ATTRIBUTE_ORDER_BY_NAME: 'changeAttributeOrderByName',
|
|
274
276
|
CHANGE_BUYER_ASSIGNABLE: 'changeBuyerAssignable',
|
|
275
277
|
CHANGE_CART_DISCOUNTS: 'changeCartDiscounts',
|
|
278
|
+
// CHANGE_CART_PREDICATE: 'changeCartPredicate', // Commenting out as an example of converting the code to use the generated enum
|
|
276
279
|
CHANGE_CUSTOM_LINE_ITEM_QUANTITY: 'changeCustomLineItemQuantity',
|
|
277
280
|
CHANGE_DESCRIPTION: 'changeDescription',
|
|
278
281
|
CHANGE_ENUM_KEY: 'changeEnumKey',
|
|
@@ -559,6 +562,281 @@ const RESOURCE_MODAL_TYPES = {
|
|
|
559
562
|
ZONE: RESOURCE_TYPE.ZONE
|
|
560
563
|
};
|
|
561
564
|
|
|
565
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
566
|
+
let ResourceChangeInput = /*#__PURE__*/function (ResourceChangeInput) {
|
|
567
|
+
ResourceChangeInput["AddAddress"] = "addAddress";
|
|
568
|
+
ResourceChangeInput["AddAsset"] = "addAsset";
|
|
569
|
+
ResourceChangeInput["AddAssociate"] = "addAssociate";
|
|
570
|
+
ResourceChangeInput["AddAttributeDefinition"] = "addAttributeDefinition";
|
|
571
|
+
ResourceChangeInput["AddBillingAddressId"] = "addBillingAddressId";
|
|
572
|
+
ResourceChangeInput["AddDelivery"] = "addDelivery";
|
|
573
|
+
ResourceChangeInput["AddDiscountCode"] = "addDiscountCode";
|
|
574
|
+
ResourceChangeInput["AddEnumValue"] = "addEnumValue";
|
|
575
|
+
ResourceChangeInput["AddExternalImage"] = "addExternalImage";
|
|
576
|
+
ResourceChangeInput["AddFieldDefinition"] = "addFieldDefinition";
|
|
577
|
+
ResourceChangeInput["AddInheritedAssociate"] = "addInheritedAssociate";
|
|
578
|
+
ResourceChangeInput["AddInterfaceInteraction"] = "addInterfaceInteraction";
|
|
579
|
+
ResourceChangeInput["AddItemShippingAddress"] = "addItemShippingAddress";
|
|
580
|
+
ResourceChangeInput["AddLineItem"] = "addLineItem";
|
|
581
|
+
ResourceChangeInput["AddLocalizedEnumValue"] = "addLocalizedEnumValue";
|
|
582
|
+
ResourceChangeInput["AddLocation"] = "addLocation";
|
|
583
|
+
ResourceChangeInput["AddParcelToDelivery"] = "addParcelToDelivery";
|
|
584
|
+
ResourceChangeInput["AddPayment"] = "addPayment";
|
|
585
|
+
ResourceChangeInput["AddPlainEnumValue"] = "addPlainEnumValue";
|
|
586
|
+
ResourceChangeInput["AddPrice"] = "addPrice";
|
|
587
|
+
ResourceChangeInput["AddProduct"] = "addProduct";
|
|
588
|
+
ResourceChangeInput["AddProductSelection"] = "addProductSelection";
|
|
589
|
+
ResourceChangeInput["AddProperty"] = "addProperty";
|
|
590
|
+
ResourceChangeInput["AddReturnInfo"] = "addReturnInfo";
|
|
591
|
+
ResourceChangeInput["AddRoles"] = "addRoles";
|
|
592
|
+
ResourceChangeInput["AddShippingAddressId"] = "addShippingAddressId";
|
|
593
|
+
ResourceChangeInput["AddTaxRate"] = "addTaxRate";
|
|
594
|
+
ResourceChangeInput["AddTextLineItem"] = "addTextLineItem";
|
|
595
|
+
ResourceChangeInput["AddToCategory"] = "addToCategory";
|
|
596
|
+
ResourceChangeInput["AddTransaction"] = "addTransaction";
|
|
597
|
+
ResourceChangeInput["AddVariant"] = "addVariant";
|
|
598
|
+
ResourceChangeInput["ChangeAddress"] = "changeAddress";
|
|
599
|
+
ResourceChangeInput["ChangeAmountPlanned"] = "changeAmountPlanned";
|
|
600
|
+
ResourceChangeInput["ChangeAssetName"] = "changeAssetName";
|
|
601
|
+
ResourceChangeInput["ChangeAssetOrder"] = "changeAssetOrder";
|
|
602
|
+
ResourceChangeInput["ChangeAssociate"] = "changeAssociate";
|
|
603
|
+
ResourceChangeInput["ChangeAssociateMode"] = "changeAssociateMode";
|
|
604
|
+
ResourceChangeInput["ChangeAttributeConstraint"] = "changeAttributeConstraint";
|
|
605
|
+
ResourceChangeInput["ChangeAttributeName"] = "changeAttributeName";
|
|
606
|
+
ResourceChangeInput["ChangeAttributeOrderByName"] = "changeAttributeOrderByName";
|
|
607
|
+
ResourceChangeInput["ChangeBuyerAssignable"] = "changeBuyerAssignable";
|
|
608
|
+
ResourceChangeInput["ChangeCartDiscounts"] = "changeCartDiscounts";
|
|
609
|
+
ResourceChangeInput["ChangeCartPredicate"] = "changeCartPredicate";
|
|
610
|
+
ResourceChangeInput["ChangeCustomer"] = "changeCustomer";
|
|
611
|
+
ResourceChangeInput["ChangeDescription"] = "changeDescription";
|
|
612
|
+
ResourceChangeInput["ChangeEmail"] = "changeEmail";
|
|
613
|
+
ResourceChangeInput["ChangeEnumKey"] = "changeEnumKey";
|
|
614
|
+
ResourceChangeInput["ChangeEnumValueLabel"] = "changeEnumValueLabel";
|
|
615
|
+
ResourceChangeInput["ChangeEnumValueOrder"] = "changeEnumValueOrder";
|
|
616
|
+
ResourceChangeInput["ChangeFieldDefinitionOrder"] = "changeFieldDefinitionOrder";
|
|
617
|
+
ResourceChangeInput["ChangeGroups"] = "changeGroups";
|
|
618
|
+
ResourceChangeInput["ChangeInheritedAssociate"] = "changeInheritedAssociate";
|
|
619
|
+
ResourceChangeInput["ChangeInitial"] = "changeInitial";
|
|
620
|
+
ResourceChangeInput["ChangeInputHint"] = "changeInputHint";
|
|
621
|
+
ResourceChangeInput["ChangeIsActive"] = "changeIsActive";
|
|
622
|
+
ResourceChangeInput["ChangeIsSearchable"] = "changeIsSearchable";
|
|
623
|
+
ResourceChangeInput["ChangeKey"] = "changeKey";
|
|
624
|
+
ResourceChangeInput["ChangeLabel"] = "changeLabel";
|
|
625
|
+
ResourceChangeInput["ChangeLineItemQuantity"] = "changeLineItemQuantity";
|
|
626
|
+
ResourceChangeInput["ChangeLineItemsOrder"] = "changeLineItemsOrder";
|
|
627
|
+
ResourceChangeInput["ChangeLocalizedEnumValueLabel"] = "changeLocalizedEnumValueLabel";
|
|
628
|
+
ResourceChangeInput["ChangeLocalizedEnumValueOrder"] = "changeLocalizedEnumValueOrder";
|
|
629
|
+
ResourceChangeInput["ChangeMasterVariant"] = "changeMasterVariant";
|
|
630
|
+
ResourceChangeInput["ChangeName"] = "changeName";
|
|
631
|
+
ResourceChangeInput["ChangeOrderHint"] = "changeOrderHint";
|
|
632
|
+
ResourceChangeInput["ChangeOrderState"] = "changeOrderState";
|
|
633
|
+
ResourceChangeInput["ChangeParent"] = "changeParent";
|
|
634
|
+
ResourceChangeInput["ChangeParentUnit"] = "changeParentUnit";
|
|
635
|
+
ResourceChangeInput["ChangePaymentState"] = "changePaymentState";
|
|
636
|
+
ResourceChangeInput["ChangePlainEnumValueLabel"] = "changePlainEnumValueLabel";
|
|
637
|
+
ResourceChangeInput["ChangePredicate"] = "changePredicate";
|
|
638
|
+
ResourceChangeInput["ChangePrice"] = "changePrice";
|
|
639
|
+
ResourceChangeInput["ChangeProductSelectionActive"] = "changeProductSelectionActive";
|
|
640
|
+
ResourceChangeInput["ChangeQuantity"] = "changeQuantity";
|
|
641
|
+
ResourceChangeInput["ChangeQuoteRequestState"] = "changeQuoteRequestState";
|
|
642
|
+
ResourceChangeInput["ChangeQuoteState"] = "changeQuoteState";
|
|
643
|
+
ResourceChangeInput["ChangeRequiresDiscountCode"] = "changeRequiresDiscountCode";
|
|
644
|
+
ResourceChangeInput["ChangeReviewRatingStatistics"] = "changeReviewRatingStatistics";
|
|
645
|
+
ResourceChangeInput["ChangeShipmentState"] = "changeShipmentState";
|
|
646
|
+
ResourceChangeInput["ChangeSlug"] = "changeSlug";
|
|
647
|
+
ResourceChangeInput["ChangeSortOrder"] = "changeSortOrder";
|
|
648
|
+
ResourceChangeInput["ChangeStackingMode"] = "changeStackingMode";
|
|
649
|
+
ResourceChangeInput["ChangeStagedQuoteState"] = "changeStagedQuoteState";
|
|
650
|
+
ResourceChangeInput["ChangeStatus"] = "changeStatus";
|
|
651
|
+
ResourceChangeInput["ChangeTarget"] = "changeTarget";
|
|
652
|
+
ResourceChangeInput["ChangeTaxCalculationMode"] = "changeTaxCalculationMode";
|
|
653
|
+
ResourceChangeInput["ChangeTaxMode"] = "changeTaxMode";
|
|
654
|
+
ResourceChangeInput["ChangeTaxRoundingMode"] = "changeTaxRoundingMode";
|
|
655
|
+
ResourceChangeInput["ChangeTextLineItemName"] = "changeTextLineItemName";
|
|
656
|
+
ResourceChangeInput["ChangeTextLineItemQuantity"] = "changeTextLineItemQuantity";
|
|
657
|
+
ResourceChangeInput["ChangeTextLineItemsOrder"] = "changeTextLineItemsOrder";
|
|
658
|
+
ResourceChangeInput["ChangeTransactionInteractionId"] = "changeTransactionInteractionId";
|
|
659
|
+
ResourceChangeInput["ChangeTransactionState"] = "changeTransactionState";
|
|
660
|
+
ResourceChangeInput["ChangeTransactionTimestamp"] = "changeTransactionTimestamp";
|
|
661
|
+
ResourceChangeInput["ChangeType"] = "changeType";
|
|
662
|
+
ResourceChangeInput["ChangeValue"] = "changeValue";
|
|
663
|
+
ResourceChangeInput["Publish"] = "publish";
|
|
664
|
+
ResourceChangeInput["RemoveAddress"] = "removeAddress";
|
|
665
|
+
ResourceChangeInput["RemoveAsset"] = "removeAsset";
|
|
666
|
+
ResourceChangeInput["RemoveAssociate"] = "removeAssociate";
|
|
667
|
+
ResourceChangeInput["RemoveAttributeDefinition"] = "removeAttributeDefinition";
|
|
668
|
+
ResourceChangeInput["RemoveBillingAddressId"] = "removeBillingAddressId";
|
|
669
|
+
ResourceChangeInput["RemoveDelivery"] = "removeDelivery";
|
|
670
|
+
ResourceChangeInput["RemoveDiscountCode"] = "removeDiscountCode";
|
|
671
|
+
ResourceChangeInput["RemoveEnumValues"] = "removeEnumValues";
|
|
672
|
+
ResourceChangeInput["RemoveFieldDefinition"] = "removeFieldDefinition";
|
|
673
|
+
ResourceChangeInput["RemoveFromCategory"] = "removeFromCategory";
|
|
674
|
+
ResourceChangeInput["RemoveImage"] = "removeImage";
|
|
675
|
+
ResourceChangeInput["RemoveInheritedAssociate"] = "removeInheritedAssociate";
|
|
676
|
+
ResourceChangeInput["RemoveItemShippingAddress"] = "removeItemShippingAddress";
|
|
677
|
+
ResourceChangeInput["RemoveLineItem"] = "removeLineItem";
|
|
678
|
+
ResourceChangeInput["RemoveLocation"] = "removeLocation";
|
|
679
|
+
ResourceChangeInput["RemoveParcelFromDelivery"] = "removeParcelFromDelivery";
|
|
680
|
+
ResourceChangeInput["RemovePayment"] = "removePayment";
|
|
681
|
+
ResourceChangeInput["RemovePrice"] = "removePrice";
|
|
682
|
+
ResourceChangeInput["RemoveProduct"] = "removeProduct";
|
|
683
|
+
ResourceChangeInput["RemoveProductSelection"] = "removeProductSelection";
|
|
684
|
+
ResourceChangeInput["RemoveProperty"] = "removeProperty";
|
|
685
|
+
ResourceChangeInput["RemoveRoles"] = "removeRoles";
|
|
686
|
+
ResourceChangeInput["RemoveShippingAddressId"] = "removeShippingAddressId";
|
|
687
|
+
ResourceChangeInput["RemoveTaxRate"] = "removeTaxRate";
|
|
688
|
+
ResourceChangeInput["RemoveTextLineItem"] = "removeTextLineItem";
|
|
689
|
+
ResourceChangeInput["RemoveVariant"] = "removeVariant";
|
|
690
|
+
ResourceChangeInput["RequestQuoteRenegotiation"] = "requestQuoteRenegotiation";
|
|
691
|
+
ResourceChangeInput["SetAddress"] = "setAddress";
|
|
692
|
+
ResourceChangeInput["SetAddressCustomField"] = "setAddressCustomField";
|
|
693
|
+
ResourceChangeInput["SetAddressCustomType"] = "setAddressCustomType";
|
|
694
|
+
ResourceChangeInput["SetAnonymousId"] = "setAnonymousId";
|
|
695
|
+
ResourceChangeInput["SetAssetCustomField"] = "setAssetCustomField";
|
|
696
|
+
ResourceChangeInput["SetAssetCustomType"] = "setAssetCustomType";
|
|
697
|
+
ResourceChangeInput["SetAssetDescription"] = "setAssetDescription";
|
|
698
|
+
ResourceChangeInput["SetAssetSources"] = "setAssetSources";
|
|
699
|
+
ResourceChangeInput["SetAssetTags"] = "setAssetTags";
|
|
700
|
+
ResourceChangeInput["SetAsssetKey"] = "setAsssetKey";
|
|
701
|
+
ResourceChangeInput["SetAttribute"] = "setAttribute";
|
|
702
|
+
ResourceChangeInput["SetAuthenticationMode"] = "setAuthenticationMode";
|
|
703
|
+
ResourceChangeInput["SetAuthorName"] = "setAuthorName";
|
|
704
|
+
ResourceChangeInput["SetBillingAddress"] = "setBillingAddress";
|
|
705
|
+
ResourceChangeInput["SetCartPredicate"] = "setCartPredicate";
|
|
706
|
+
ResourceChangeInput["SetCategoryOrderHint"] = "setCategoryOrderHint";
|
|
707
|
+
ResourceChangeInput["SetCompanyName"] = "setCompanyName";
|
|
708
|
+
ResourceChangeInput["SetContactEmail"] = "setContactEmail";
|
|
709
|
+
ResourceChangeInput["SetCountries"] = "setCountries";
|
|
710
|
+
ResourceChangeInput["SetCountry"] = "setCountry";
|
|
711
|
+
ResourceChangeInput["SetCustomField"] = "setCustomField";
|
|
712
|
+
ResourceChangeInput["SetCustomLineItemCustomField"] = "setCustomLineItemCustomField";
|
|
713
|
+
ResourceChangeInput["SetCustomLineItemCustomType"] = "setCustomLineItemCustomType";
|
|
714
|
+
ResourceChangeInput["SetCustomLineItemShippingDetails"] = "setCustomLineItemShippingDetails";
|
|
715
|
+
ResourceChangeInput["SetCustomLineItemTaxAmount"] = "setCustomLineItemTaxAmount";
|
|
716
|
+
ResourceChangeInput["SetCustomLineItemTaxCategory"] = "setCustomLineItemTaxCategory";
|
|
717
|
+
ResourceChangeInput["SetCustomShippingMethod"] = "setCustomShippingMethod";
|
|
718
|
+
ResourceChangeInput["SetCustomType"] = "setCustomType";
|
|
719
|
+
ResourceChangeInput["SetCustomer"] = "setCustomer";
|
|
720
|
+
ResourceChangeInput["SetCustomerEmail"] = "setCustomerEmail";
|
|
721
|
+
ResourceChangeInput["SetCustomerGroup"] = "setCustomerGroup";
|
|
722
|
+
ResourceChangeInput["SetCustomerId"] = "setCustomerId";
|
|
723
|
+
ResourceChangeInput["SetCustomerNumber"] = "setCustomerNumber";
|
|
724
|
+
ResourceChangeInput["SetDateOfBirth"] = "setDateOfBirth";
|
|
725
|
+
ResourceChangeInput["SetDefaultBillingAddress"] = "setDefaultBillingAddress";
|
|
726
|
+
ResourceChangeInput["SetDefaultShippingAddress"] = "setDefaultShippingAddress";
|
|
727
|
+
ResourceChangeInput["SetDeleteDaysAfterLastModification"] = "setDeleteDaysAfterLastModification";
|
|
728
|
+
ResourceChangeInput["SetDeliveryAddress"] = "setDeliveryAddress";
|
|
729
|
+
ResourceChangeInput["SetDeliveryCustomField"] = "setDeliveryCustomField";
|
|
730
|
+
ResourceChangeInput["SetDeliveryCustomType"] = "setDeliveryCustomType";
|
|
731
|
+
ResourceChangeInput["SetDeliveryItems"] = "setDeliveryItems";
|
|
732
|
+
ResourceChangeInput["SetDescription"] = "setDescription";
|
|
733
|
+
ResourceChangeInput["SetDiscountedPrice"] = "setDiscountedPrice";
|
|
734
|
+
ResourceChangeInput["SetDistributionChannels"] = "setDistributionChannels";
|
|
735
|
+
ResourceChangeInput["SetExpectedDelivery"] = "setExpectedDelivery";
|
|
736
|
+
ResourceChangeInput["SetExternalId"] = "setExternalId";
|
|
737
|
+
ResourceChangeInput["SetFirstName"] = "setFirstName";
|
|
738
|
+
ResourceChangeInput["SetGeoLocation"] = "setGeoLocation";
|
|
739
|
+
ResourceChangeInput["SetImageLabel"] = "setImageLabel";
|
|
740
|
+
ResourceChangeInput["SetInputTip"] = "setInputTip";
|
|
741
|
+
ResourceChangeInput["SetInterfaceId"] = "setInterfaceId";
|
|
742
|
+
ResourceChangeInput["SetKey"] = "setKey";
|
|
743
|
+
ResourceChangeInput["SetLanguages"] = "setLanguages";
|
|
744
|
+
ResourceChangeInput["SetLastName"] = "setLastName";
|
|
745
|
+
ResourceChangeInput["SetLineItemCustomField"] = "setLineItemCustomField";
|
|
746
|
+
ResourceChangeInput["SetLineItemCustomType"] = "setLineItemCustomType";
|
|
747
|
+
ResourceChangeInput["SetLineItemDeactivatedAt"] = "setLineItemDeactivatedAt";
|
|
748
|
+
ResourceChangeInput["SetLineItemDistributionChannel"] = "setLineItemDistributionChannel";
|
|
749
|
+
ResourceChangeInput["SetLineItemProductKey"] = "setLineItemProductKey";
|
|
750
|
+
ResourceChangeInput["SetLineItemProductSlug"] = "setLineItemProductSlug";
|
|
751
|
+
ResourceChangeInput["SetLineItemShippingDetails"] = "setLineItemShippingDetails";
|
|
752
|
+
ResourceChangeInput["SetLineItemTaxAmount"] = "setLineItemTaxAmount";
|
|
753
|
+
ResourceChangeInput["SetLocale"] = "setLocale";
|
|
754
|
+
ResourceChangeInput["SetMaxApplications"] = "setMaxApplications";
|
|
755
|
+
ResourceChangeInput["SetMaxApplicationsPerCustomer"] = "setMaxApplicationsPerCustomer";
|
|
756
|
+
ResourceChangeInput["SetMetaDescription"] = "setMetaDescription";
|
|
757
|
+
ResourceChangeInput["SetMetaKeywords"] = "setMetaKeywords";
|
|
758
|
+
ResourceChangeInput["SetMetaTitle"] = "setMetaTitle";
|
|
759
|
+
ResourceChangeInput["SetMethodInfoInterface"] = "setMethodInfoInterface";
|
|
760
|
+
ResourceChangeInput["SetMethodInfoMethod"] = "setMethodInfoMethod";
|
|
761
|
+
ResourceChangeInput["SetMethodInfoName"] = "setMethodInfoName";
|
|
762
|
+
ResourceChangeInput["SetMiddleName"] = "setMiddleName";
|
|
763
|
+
ResourceChangeInput["SetName"] = "setName";
|
|
764
|
+
ResourceChangeInput["SetOrderNumber"] = "setOrderNumber";
|
|
765
|
+
ResourceChangeInput["SetOrderTotalTax"] = "setOrderTotalTax";
|
|
766
|
+
ResourceChangeInput["SetParcelCustomField"] = "setParcelCustomField";
|
|
767
|
+
ResourceChangeInput["SetParcelCustomType"] = "setParcelCustomType";
|
|
768
|
+
ResourceChangeInput["SetParcelItems"] = "setParcelItems";
|
|
769
|
+
ResourceChangeInput["SetParcelMeasurements"] = "setParcelMeasurements";
|
|
770
|
+
ResourceChangeInput["SetParcelTrackingData"] = "setParcelTrackingData";
|
|
771
|
+
ResourceChangeInput["SetPassword"] = "setPassword";
|
|
772
|
+
ResourceChangeInput["SetPermissions"] = "setPermissions";
|
|
773
|
+
ResourceChangeInput["SetProductCount"] = "setProductCount";
|
|
774
|
+
ResourceChangeInput["SetProductPriceCustomField"] = "setProductPriceCustomField";
|
|
775
|
+
ResourceChangeInput["SetProductPriceCustomType"] = "setProductPriceCustomType";
|
|
776
|
+
ResourceChangeInput["SetProductSelections"] = "setProductSelections";
|
|
777
|
+
ResourceChangeInput["SetProductVariantKey"] = "setProductVariantKey";
|
|
778
|
+
ResourceChangeInput["SetProperty"] = "setProperty";
|
|
779
|
+
ResourceChangeInput["SetPurchaseOrderNumber"] = "setPurchaseOrderNumber";
|
|
780
|
+
ResourceChangeInput["SetRating"] = "setRating";
|
|
781
|
+
ResourceChangeInput["SetRestockableInDays"] = "setRestockableInDays";
|
|
782
|
+
ResourceChangeInput["SetReturnItemCustomField"] = "setReturnItemCustomField";
|
|
783
|
+
ResourceChangeInput["SetReturnItemCustomType"] = "setReturnItemCustomType";
|
|
784
|
+
ResourceChangeInput["SetReturnPaymentState"] = "setReturnPaymentState";
|
|
785
|
+
ResourceChangeInput["SetReturnShipmentState"] = "setReturnShipmentState";
|
|
786
|
+
ResourceChangeInput["SetRoles"] = "setRoles";
|
|
787
|
+
ResourceChangeInput["SetSalutation"] = "setSalutation";
|
|
788
|
+
ResourceChangeInput["SetSearchKeywords"] = "setSearchKeywords";
|
|
789
|
+
ResourceChangeInput["SetSellerComment"] = "setSellerComment";
|
|
790
|
+
ResourceChangeInput["SetShippingAddress"] = "setShippingAddress";
|
|
791
|
+
ResourceChangeInput["SetShippingInfoPrice"] = "setShippingInfoPrice";
|
|
792
|
+
ResourceChangeInput["SetShippingInfoTaxedPrice"] = "setShippingInfoTaxedPrice";
|
|
793
|
+
ResourceChangeInput["SetShippingMethod"] = "setShippingMethod";
|
|
794
|
+
ResourceChangeInput["SetShippingMethodTaxAmount"] = "setShippingMethodTaxAmount";
|
|
795
|
+
ResourceChangeInput["SetShippingMethodTaxRate"] = "setShippingMethodTaxRate";
|
|
796
|
+
ResourceChangeInput["SetShippingRate"] = "setShippingRate";
|
|
797
|
+
ResourceChangeInput["SetShippingRateInput"] = "setShippingRateInput";
|
|
798
|
+
ResourceChangeInput["SetSku"] = "setSku";
|
|
799
|
+
ResourceChangeInput["SetSlug"] = "setSlug";
|
|
800
|
+
ResourceChangeInput["SetStatusInterfaceCode"] = "setStatusInterfaceCode";
|
|
801
|
+
ResourceChangeInput["SetStatusInterfaceText"] = "setStatusInterfaceText";
|
|
802
|
+
ResourceChangeInput["SetStore"] = "setStore";
|
|
803
|
+
ResourceChangeInput["SetStoreMode"] = "setStoreMode";
|
|
804
|
+
ResourceChangeInput["SetStores"] = "setStores";
|
|
805
|
+
ResourceChangeInput["SetSupplyChannel"] = "setSupplyChannel";
|
|
806
|
+
ResourceChangeInput["SetTarget"] = "setTarget";
|
|
807
|
+
ResourceChangeInput["SetTaxCategory"] = "setTaxCategory";
|
|
808
|
+
ResourceChangeInput["SetText"] = "setText";
|
|
809
|
+
ResourceChangeInput["SetTextLineItemCustomField"] = "setTextLineItemCustomField";
|
|
810
|
+
ResourceChangeInput["SetTextLineItemCustomType"] = "setTextLineItemCustomType";
|
|
811
|
+
ResourceChangeInput["SetTextLineItemDescription"] = "setTextLineItemDescription";
|
|
812
|
+
ResourceChangeInput["SetTitle"] = "setTitle";
|
|
813
|
+
ResourceChangeInput["SetTransactionCustomField"] = "setTransactionCustomField";
|
|
814
|
+
ResourceChangeInput["SetTransactionCustomType"] = "setTransactionCustomType";
|
|
815
|
+
ResourceChangeInput["SetTransitions"] = "setTransitions";
|
|
816
|
+
ResourceChangeInput["SetValidFrom"] = "setValidFrom";
|
|
817
|
+
ResourceChangeInput["SetValidFromAndUntil"] = "setValidFromAndUntil";
|
|
818
|
+
ResourceChangeInput["SetValidTo"] = "setValidTo";
|
|
819
|
+
ResourceChangeInput["SetValidUntil"] = "setValidUntil";
|
|
820
|
+
ResourceChangeInput["SetValue"] = "setValue";
|
|
821
|
+
ResourceChangeInput["SetVariantAvailability"] = "setVariantAvailability";
|
|
822
|
+
ResourceChangeInput["SetVariantExclusion"] = "setVariantExclusion";
|
|
823
|
+
ResourceChangeInput["SetVariantSelection"] = "setVariantSelection";
|
|
824
|
+
ResourceChangeInput["SetVatId"] = "setVatId";
|
|
825
|
+
ResourceChangeInput["TransitionCustomLineItemState"] = "transitionCustomLineItemState";
|
|
826
|
+
ResourceChangeInput["TransitionLineItemState"] = "transitionLineItemState";
|
|
827
|
+
ResourceChangeInput["TransitionState"] = "transitionState";
|
|
828
|
+
ResourceChangeInput["Unpublish"] = "unpublish";
|
|
829
|
+
ResourceChangeInput["UpdateItemShippingAddress"] = "updateItemShippingAddress";
|
|
830
|
+
ResourceChangeInput["UpdateSyncInfo"] = "updateSyncInfo";
|
|
831
|
+
ResourceChangeInput["VerifyEmail"] = "verifyEmail";
|
|
832
|
+
return ResourceChangeInput;
|
|
833
|
+
}({});
|
|
834
|
+
let TierLevels = /*#__PURE__*/function (TierLevels) {
|
|
835
|
+
TierLevels["Basic"] = "BASIC";
|
|
836
|
+
TierLevels["Premium"] = "PREMIUM";
|
|
837
|
+
return TierLevels;
|
|
838
|
+
}({});
|
|
839
|
+
|
|
562
840
|
const PERMISSIONS = {
|
|
563
841
|
ViewAuditLog: 'ViewAuditLog',
|
|
564
842
|
ViewBusinessUnits: 'ViewBusinessUnits',
|
|
@@ -648,10 +926,7 @@ const ASSOCIATE_ROLE_PERMISSIONS = {
|
|
|
648
926
|
VIEW_OTHERS_QUOTE_REQUESTS: 'ViewOthersQuoteRequests'
|
|
649
927
|
};
|
|
650
928
|
const SEARCH_SLICE_NAME_CHANGE_HISTORY = 'change-history';
|
|
651
|
-
|
|
652
|
-
BASIC: 'BASIC',
|
|
653
|
-
PREMIUM: 'PREMIUM'
|
|
654
|
-
};
|
|
929
|
+
TierLevels.Basic;
|
|
655
930
|
const COLUMNS = {
|
|
656
931
|
ACTION: 'action',
|
|
657
932
|
BUSINESS_UNIT: 'businessUnit',
|
|
@@ -1868,7 +2143,7 @@ const ReferenceTypeChange = props => {
|
|
|
1868
2143
|
ReferenceTypeChange.propTypes = {};
|
|
1869
2144
|
ReferenceTypeChange.displayName = 'ReferenceTypeChange';
|
|
1870
2145
|
|
|
1871
|
-
const _excluded$
|
|
2146
|
+
const _excluded$g = ["id", "typeId"];
|
|
1872
2147
|
function ownKeys$1k(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1873
2148
|
function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$1k(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$1k(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
1874
2149
|
const ChangeItemValueByType = props => {
|
|
@@ -1887,7 +2162,7 @@ const ChangeItemValueByType = props => {
|
|
|
1887
2162
|
const _props$value = props.value,
|
|
1888
2163
|
id = _props$value.id,
|
|
1889
2164
|
typeId = _props$value.typeId,
|
|
1890
|
-
expandedProps = _objectWithoutProperties(_props$value, _excluded$
|
|
2165
|
+
expandedProps = _objectWithoutProperties(_props$value, _excluded$g);
|
|
1891
2166
|
return jsxRuntime.jsx(ReferenceTypeChange, {
|
|
1892
2167
|
id: id,
|
|
1893
2168
|
typeId: typeId,
|
|
@@ -2427,7 +2702,7 @@ const LocalizeChange = props => {
|
|
|
2427
2702
|
LocalizeChange.displayName = 'LocalizeChange';
|
|
2428
2703
|
LocalizeChange.propTypes = {};
|
|
2429
2704
|
|
|
2430
|
-
const _excluded$
|
|
2705
|
+
const _excluded$f = ["typeId", "id"],
|
|
2431
2706
|
_excluded2$3 = ["typeId", "id"];
|
|
2432
2707
|
const StoreChanges = _ref => {
|
|
2433
2708
|
let change = _ref.change,
|
|
@@ -2457,7 +2732,7 @@ const StoreChanges = _ref => {
|
|
|
2457
2732
|
{
|
|
2458
2733
|
const typeId = value.typeId,
|
|
2459
2734
|
id = value.id,
|
|
2460
|
-
expandedProps = _objectWithoutProperties(value, _excluded$
|
|
2735
|
+
expandedProps = _objectWithoutProperties(value, _excluded$f);
|
|
2461
2736
|
return jsxRuntime.jsx(ReferenceTypeChange, {
|
|
2462
2737
|
id: id,
|
|
2463
2738
|
typeId: typeId,
|
|
@@ -2548,14 +2823,16 @@ const FormattedDateTime = props => {
|
|
|
2548
2823
|
}),
|
|
2549
2824
|
locale = _useApplicationContex.locale,
|
|
2550
2825
|
timeZone = _useApplicationContex.timeZone;
|
|
2551
|
-
return
|
|
2552
|
-
|
|
2553
|
-
|
|
2826
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
2827
|
+
children: formatDateTime(props.type, props.value, {
|
|
2828
|
+
timeZone: timeZone,
|
|
2829
|
+
locale: locale
|
|
2830
|
+
})
|
|
2554
2831
|
});
|
|
2555
2832
|
};
|
|
2556
2833
|
FormattedDateTime.displayName = 'FormattedDateTime';
|
|
2557
2834
|
|
|
2558
|
-
const _excluded$
|
|
2835
|
+
const _excluded$e = ["typeId", "id"];
|
|
2559
2836
|
function ownKeys$1f(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2560
2837
|
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$1f(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$1f(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
2561
2838
|
const DiscountChanges = props => {
|
|
@@ -2655,7 +2932,7 @@ const DiscountChanges = props => {
|
|
|
2655
2932
|
children: _mapInstanceProperty__default["default"](_context3 = props.value).call(_context3, cartDiscount => {
|
|
2656
2933
|
const typeId = cartDiscount.typeId,
|
|
2657
2934
|
id = cartDiscount.id,
|
|
2658
|
-
expandedProps = _objectWithoutProperties(cartDiscount, _excluded$
|
|
2935
|
+
expandedProps = _objectWithoutProperties(cartDiscount, _excluded$e);
|
|
2659
2936
|
return jsxRuntime.jsx(ReferenceTypeChange, {
|
|
2660
2937
|
id: id,
|
|
2661
2938
|
typeId: typeId,
|
|
@@ -3023,7 +3300,7 @@ const AssetChange = props => {
|
|
|
3023
3300
|
AssetChange.displayName = 'AssetChange';
|
|
3024
3301
|
AssetChange.propTypes = {};
|
|
3025
3302
|
|
|
3026
|
-
const _excluded$
|
|
3303
|
+
const _excluded$d = ["typeId", "id"];
|
|
3027
3304
|
const CategoryChanges = props => {
|
|
3028
3305
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => {
|
|
3029
3306
|
var _applicationContext$p;
|
|
@@ -3123,7 +3400,7 @@ const CategoryChanges = props => {
|
|
|
3123
3400
|
const _ref = props.value || {},
|
|
3124
3401
|
typeId = _ref.typeId,
|
|
3125
3402
|
id = _ref.id,
|
|
3126
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
3403
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$d);
|
|
3127
3404
|
return (_props$value = props.value) !== null && _props$value !== void 0 && _props$value.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
3128
3405
|
id: id,
|
|
3129
3406
|
typeId: typeId,
|
|
@@ -3233,7 +3510,7 @@ const ChannelChanges = props => {
|
|
|
3233
3510
|
ChannelChanges.displayName = 'ChannelChanges';
|
|
3234
3511
|
ChannelChanges.propTypes = {};
|
|
3235
3512
|
|
|
3236
|
-
const _excluded$
|
|
3513
|
+
const _excluded$c = ["typeId", "id"];
|
|
3237
3514
|
function ownKeys$1b(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3238
3515
|
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$1b(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$1b(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
3239
3516
|
const CustomerChanges = props => {
|
|
@@ -3256,7 +3533,7 @@ const CustomerChanges = props => {
|
|
|
3256
3533
|
const _ref = props.value || {},
|
|
3257
3534
|
typeId = _ref.typeId,
|
|
3258
3535
|
id = _ref.id,
|
|
3259
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
3536
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
3260
3537
|
return (_props$value2 = props.value) !== null && _props$value2 !== void 0 && _props$value2.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
3261
3538
|
id: id,
|
|
3262
3539
|
typeId: typeId,
|
|
@@ -3333,7 +3610,6 @@ function ownKeys$1a(e, r) { var t = _Object$keys__default["default"](e); if (_Ob
|
|
|
3333
3610
|
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1a(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
3334
3611
|
const ResourceTypeCell = props => jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$1a({}, getEntityTypeNameMessage(props.resourceType)));
|
|
3335
3612
|
ResourceTypeCell.displayName = 'ResourceTypeCell';
|
|
3336
|
-
ResourceTypeCell.propTypes = {};
|
|
3337
3613
|
|
|
3338
3614
|
function ownKeys$19(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3339
3615
|
function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$19(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$19(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -3375,7 +3651,7 @@ SubscriptionChanges.displayName = 'SubscriptionChanges';
|
|
|
3375
3651
|
SubscriptionChanges.propTypes = {};
|
|
3376
3652
|
var SubscriptionChanges$1 = reactIntl.injectIntl(SubscriptionChanges);
|
|
3377
3653
|
|
|
3378
|
-
const _excluded$
|
|
3654
|
+
const _excluded$b = ["typeId", "id"];
|
|
3379
3655
|
function ownKeys$18(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3380
3656
|
function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$18(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$18(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
3381
3657
|
const InventoryEntryChanges = props => {
|
|
@@ -3421,7 +3697,7 @@ const InventoryEntryChanges = props => {
|
|
|
3421
3697
|
const _ref = props.value || {},
|
|
3422
3698
|
typeId = _ref.typeId,
|
|
3423
3699
|
id = _ref.id,
|
|
3424
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
3700
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
3425
3701
|
return (_props$value = props.value) !== null && _props$value !== void 0 && _props$value.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
3426
3702
|
id: id,
|
|
3427
3703
|
typeId: typeId,
|
|
@@ -5691,7 +5967,7 @@ var messages$_ = reactIntl.defineMessages({
|
|
|
5691
5967
|
}
|
|
5692
5968
|
});
|
|
5693
5969
|
|
|
5694
|
-
const _excluded$
|
|
5970
|
+
const _excluded$a = ["typeId", "id"],
|
|
5695
5971
|
_excluded2$2 = ["typeId", "id"];
|
|
5696
5972
|
function ownKeys$$(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5697
5973
|
function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var _context19, _context20; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context19 = ownKeys$$(Object(t), !0)).call(_context19, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context20 = ownKeys$$(Object(t))).call(_context20, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -6118,7 +6394,7 @@ const OrderChanges = props => {
|
|
|
6118
6394
|
const _ref = props.value || {},
|
|
6119
6395
|
typeId = _ref.typeId,
|
|
6120
6396
|
id = _ref.id,
|
|
6121
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
6397
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
6122
6398
|
return (_props$value = props.value) !== null && _props$value !== void 0 && _props$value.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
6123
6399
|
id: id,
|
|
6124
6400
|
typeId: typeId,
|
|
@@ -6442,7 +6718,7 @@ const OrderChanges = props => {
|
|
|
6442
6718
|
OrderChanges.displayName = 'OrderChanges';
|
|
6443
6719
|
OrderChanges.propTypes = {};
|
|
6444
6720
|
|
|
6445
|
-
const _excluded$
|
|
6721
|
+
const _excluded$9 = ["typeId", "id"],
|
|
6446
6722
|
_excluded2$1 = ["typeId", "id"];
|
|
6447
6723
|
const PaymentChanges = props => {
|
|
6448
6724
|
const intl = reactIntl.useIntl();
|
|
@@ -6466,7 +6742,7 @@ const PaymentChanges = props => {
|
|
|
6466
6742
|
const _ref = props.value || {},
|
|
6467
6743
|
typeId = _ref.typeId,
|
|
6468
6744
|
id = _ref.id,
|
|
6469
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
6745
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
6470
6746
|
return (_props$value = props.value) !== null && _props$value !== void 0 && _props$value.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
6471
6747
|
id: id,
|
|
6472
6748
|
typeId: typeId,
|
|
@@ -6611,7 +6887,7 @@ PriceChangeAttributes.displayName = 'PriceChangeAttributes';
|
|
|
6611
6887
|
PriceChangeAttributes.propTypes = {};
|
|
6612
6888
|
var PriceChangeAttributes$1 = reactIntl.injectIntl(PriceChangeAttributes);
|
|
6613
6889
|
|
|
6614
|
-
const _excluded$
|
|
6890
|
+
const _excluded$8 = ["label", "className"];
|
|
6615
6891
|
var NoImageIcon$1 = "<svg width=\"66\" height=\"66\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs><path id=\"NoImageIcon-path-1\" d=\"M0 0h66v66H0z\"/></defs><g id=\"NoImageIcon-ALL-components\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"NoImageIcon-Shared-/-Image-container\" transform=\"translate(-702 -232)\"><g id=\"NoImageIcon-thumbnail-2\" transform=\"translate(702 232)\"><mask id=\"NoImageIcon-mask-2\" fill=\"#fff\"><use xlink:href=\"#NoImageIcon-path-1\"/></mask><use id=\"NoImageIcon-Mask\" fill=\"#D8D8D8\" xlink:href=\"#NoImageIcon-path-1\"/><g mask=\"url(#NoImageIcon-mask-2)\" fill-rule=\"nonzero\" id=\"NoImageIcon-Path\"><path d=\"M0 4.316C0 1.932 2.09 0 4.667 0h67.666C74.911 0 77 1.932 77 4.316v57.368C77 64.067 74.91 66 72.333 66H4.667C2.089 66 0 64.067 0 61.684V4.316z\" fill=\"#B4E1FD\" transform=\"translate(-6)\"/><path d=\"M35 17a7 7 0 11-14 0 7 7 0 0114 0z\" fill=\"#E8F3FC\" transform=\"translate(-6)\"/><path d=\"M21.776 35.53L0 61.276V66h77V44.654L60.244 25.218c-1.401-1.626-4-1.624-5.398.004L39.44 43.15c-1.381 1.607-3.94 1.632-5.355.052l-6.936-7.746c-1.422-1.588-3.997-1.553-5.372.073z\" fill=\"#E8F4FC\" transform=\"translate(-6)\"/></g></g></g></g></svg>";
|
|
6616
6892
|
var BrokenIcon = "<svg width=\"50\" height=\"50\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs><path id=\"BrokenIcon-path-1\" d=\"M0 0h50v50H0z\"/><path d=\"M45 5L5 45\" id=\"BrokenIcon-path-3\"/></defs><g id=\"BrokenIcon-ALL-components\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"BrokenIcon-Shared-/-Image-container\" transform=\"translate(-919 -1107)\"><g id=\"BrokenIcon-Group-5\" transform=\"translate(919 1107)\"><g id=\"BrokenIcon-Image-container-thumbnail-\"><g id=\"BrokenIcon-Mask\" fill=\"#D8D8D8\" fill-rule=\"nonzero\"><path id=\"BrokenIcon-path-1\" d=\"M0 0h50v50H0z\"/></g><g id=\"BrokenIcon-Path-Clipped\"><mask id=\"BrokenIcon-mask-2\" fill=\"#fff\"><use xlink:href=\"#BrokenIcon-path-1\"/></mask><g id=\"BrokenIcon-Path\" mask=\"url(#BrokenIcon-mask-2)\"><g transform=\"translate(-4.545)\" id=\"BrokenIcon-Group\" fill-rule=\"nonzero\"><path d=\"M0 3.27C0 1.464 1.583 0 3.535 0h51.263c1.953 0 3.535 1.464 3.535 3.27v43.46c0 1.806-1.582 3.27-3.535 3.27H3.535C1.583 50 0 48.536 0 46.73V3.27z\" id=\"BrokenIcon-Path\" fill=\"#B4E1FD\"/><path d=\"M26.515 12.879a5.303 5.303 0 11-10.606 0 5.303 5.303 0 0110.606 0z\" id=\"BrokenIcon-Path\" fill=\"#E8F3FC\"/><path d=\"M16.497 26.917L0 46.42V50h58.333V33.83L45.64 19.103c-1.061-1.231-3.03-1.23-4.089.003L29.878 32.69c-1.046 1.218-2.985 1.237-4.057.04l-5.254-5.868c-1.078-1.204-3.028-1.178-4.07.055z\" id=\"BrokenIcon-Path\" fill=\"#E8F4FC\"/></g></g></g></g><g id=\"BrokenIcon-Line\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><use stroke=\"#FFF\" stroke-width=\"6\" xlink:href=\"#BrokenIcon-path-3\"/><use stroke=\"#E60050\" stroke-width=\"2\" xlink:href=\"#BrokenIcon-path-3\"/></g></g></g></g></svg>";
|
|
6617
6893
|
var ExternalIcon = "<svg width=\"50\" height=\"50\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs><path id=\"ExternalIcon-path-1\" d=\"M0 0h50v50H0z\"/></defs><g id=\"ExternalIcon-ALL-components\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"ExternalIcon-Shared-/-Image-container\" transform=\"translate(-792 -1107)\"><g id=\"ExternalIcon-Group-4\" transform=\"translate(792 1107)\"><g id=\"ExternalIcon-Image-container-thumbnail-\"><g id=\"ExternalIcon-Mask\" fill=\"#D8D8D8\" fill-rule=\"nonzero\"><path id=\"ExternalIcon-path-1\" d=\"M0 0h50v50H0z\"/></g><g id=\"ExternalIcon-Path-Clipped\"><mask id=\"ExternalIcon-mask-2\" fill=\"#fff\"><use xlink:href=\"#ExternalIcon-path-1\"/></mask><g id=\"ExternalIcon-Path\" mask=\"url(#ExternalIcon-mask-2)\"><g transform=\"translate(-4.545)\" id=\"ExternalIcon-Group\" fill-rule=\"nonzero\"><path d=\"M0 3.27C0 1.464 1.583 0 3.535 0h51.263c1.953 0 3.535 1.464 3.535 3.27v43.46c0 1.806-1.582 3.27-3.535 3.27H3.535C1.583 50 0 48.536 0 46.73V3.27z\" id=\"ExternalIcon-Path\" fill=\"#B4E1FD\"/><path d=\"M26.515 12.879a5.303 5.303 0 11-10.606 0 5.303 5.303 0 0110.606 0z\" id=\"ExternalIcon-Path\" fill=\"#E8F3FC\"/><path d=\"M16.497 26.917L0 46.42V50h58.333V33.83L45.64 19.103c-1.061-1.231-3.03-1.23-4.089.003L29.878 32.69c-1.046 1.218-2.985 1.237-4.057.04l-5.254-5.868c-1.078-1.204-3.028-1.178-4.07.055z\" id=\"ExternalIcon-Path\" fill=\"#E8F4FC\"/></g></g></g></g><g id=\"ExternalIcon-Group-2-Copy-2\" transform=\"translate(22 22)\"><circle id=\"ExternalIcon-Oval\" fill=\"#078CDF\" cx=\"12\" cy=\"12\" r=\"12\"/><g id=\"ExternalIcon-Component/Icon/24px/chain/conected\" transform=\"translate(3 3)\" fill=\"#FFF\"><g id=\"ExternalIcon-ChainIcon\" transform=\"translate(2.25 5.25)\"><path d=\"M3.375 6.75c-.934 0-1.73-.33-2.387-.988A3.251 3.251 0 010 3.375c0-.934.33-1.73.988-2.388A3.252 3.252 0 013.375 0H5.4c.191 0 .352.065.481.194.13.13.194.29.194.481a.653.653 0 01-.194.48.654.654 0 01-.481.195H3.375c-.562 0-1.04.197-1.434.59-.394.394-.591.873-.591 1.435s.197 1.04.59 1.434c.394.394.873.591 1.435.591H5.4c.191 0 .352.065.481.194.13.13.194.29.194.481a.653.653 0 01-.194.48.654.654 0 01-.481.195H3.375zm1.35-2.7a.651.651 0 01-.48-.194.651.651 0 01-.195-.481c0-.191.065-.352.194-.481.13-.13.29-.194.481-.194h4.05c.191 0 .352.065.481.194.13.13.194.29.194.481a.653.653 0 01-.194.48.654.654 0 01-.481.195h-4.05zM8.1 6.75a.651.651 0 01-.48-.194.651.651 0 01-.195-.481c0-.191.065-.352.194-.481.13-.13.29-.194.481-.194h2.025c.562 0 1.04-.197 1.434-.59.394-.394.591-.873.591-1.435s-.197-1.04-.59-1.434a1.953 1.953 0 00-1.435-.591H8.1a.651.651 0 01-.48-.194.651.651 0 01-.195-.481c0-.191.065-.352.194-.481C7.75.064 7.91 0 8.1 0h2.025c.934 0 1.73.329 2.388.987.658.658.987 1.454.987 2.388 0 .934-.329 1.73-.987 2.387a3.253 3.253 0 01-2.388.988H8.1z\" id=\"ExternalIcon-\uD83C\uDF08-Color\"/></g></g></g></g></g></g></svg>";
|
|
@@ -6624,7 +6900,7 @@ const imageStyles$1 = {
|
|
|
6624
6900
|
const Image = _ref => {
|
|
6625
6901
|
let label = _ref.label,
|
|
6626
6902
|
className = _ref.className,
|
|
6627
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6903
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
6628
6904
|
const _useState = react.useState(formatUrl(props)),
|
|
6629
6905
|
_useState2 = _slicedToArray(_useState, 2),
|
|
6630
6906
|
src = _useState2[0],
|
|
@@ -6728,13 +7004,13 @@ const imageStyles = {
|
|
|
6728
7004
|
} ;
|
|
6729
7005
|
const counterStyles = /*#__PURE__*/react$1.css("background:", designSystem.designTokens.colorSurface, ";border-left:1px solid ", designSystem.designTokens.colorNeutral, ";color:", designSystem.designTokens.colorSolid, ";margin-left:0;padding:17px 12px;height:", IMAGE_DIMENSION.DEFAULT, ";.condensed &{height:", IMAGE_DIMENSION.CONDENSED, ";}" + ("" ), "" );
|
|
6730
7006
|
|
|
6731
|
-
const _excluded$
|
|
7007
|
+
const _excluded$7 = ["children"];
|
|
6732
7008
|
function ownKeys$Z(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6733
7009
|
function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$Z(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Z(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
6734
7010
|
var NoImageIcon = "<svg width=\"66\" height=\"66\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"><defs><path id=\"NoImageIcon-path-1\" d=\"M0 0h66v66H0z\"/></defs><g id=\"NoImageIcon-ALL-components\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"NoImageIcon-Shared-/-Image-container\" transform=\"translate(-702 -232)\"><g id=\"NoImageIcon-thumbnail-2\" transform=\"translate(702 232)\"><mask id=\"NoImageIcon-mask-2\" fill=\"#fff\"><use xlink:href=\"#NoImageIcon-path-1\"/></mask><use id=\"NoImageIcon-Mask\" fill=\"#D8D8D8\" xlink:href=\"#NoImageIcon-path-1\"/><g mask=\"url(#NoImageIcon-mask-2)\" fill-rule=\"nonzero\" id=\"NoImageIcon-Path\"><path d=\"M0 4.316C0 1.932 2.09 0 4.667 0h67.666C74.911 0 77 1.932 77 4.316v57.368C77 64.067 74.91 66 72.333 66H4.667C2.089 66 0 64.067 0 61.684V4.316z\" fill=\"#B4E1FD\" transform=\"translate(-6)\"/><path d=\"M35 17a7 7 0 11-14 0 7 7 0 0114 0z\" fill=\"#E8F3FC\" transform=\"translate(-6)\"/><path d=\"M21.776 35.53L0 61.276V66h77V44.654L60.244 25.218c-1.401-1.626-4-1.624-5.398.004L39.44 43.15c-1.381 1.607-3.94 1.632-5.355.052l-6.936-7.746c-1.422-1.588-3.997-1.553-5.372.073z\" fill=\"#E8F4FC\" transform=\"translate(-6)\"/></g></g></g></g></svg>";
|
|
6735
7011
|
const WrapperComponent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
|
|
6736
7012
|
let children = _ref.children,
|
|
6737
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7013
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
6738
7014
|
return jsxRuntime.jsx("div", _objectSpread$Z(_objectSpread$Z({}, props), {}, {
|
|
6739
7015
|
ref: ref,
|
|
6740
7016
|
children: children
|
|
@@ -6994,7 +7270,7 @@ const VariantAvailabilityChange = props => {
|
|
|
6994
7270
|
VariantAvailabilityChange.displayName = 'VariantAvailabilityChange';
|
|
6995
7271
|
VariantAvailabilityChange.propTypes = {};
|
|
6996
7272
|
|
|
6997
|
-
const _excluded$
|
|
7273
|
+
const _excluded$6 = ["typeId", "id"];
|
|
6998
7274
|
function ownKeys$W(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6999
7275
|
function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context8 = ownKeys$W(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context9 = ownKeys$W(Object(t))).call(_context9, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
7000
7276
|
const ProductChanges = props => {
|
|
@@ -7332,7 +7608,7 @@ const ProductChanges = props => {
|
|
|
7332
7608
|
const _ref = props.value || {},
|
|
7333
7609
|
typeId = _ref.typeId,
|
|
7334
7610
|
id = _ref.id,
|
|
7335
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
7611
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
7336
7612
|
return (_props$value = props.value) !== null && _props$value !== void 0 && _props$value.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
7337
7613
|
id: id,
|
|
7338
7614
|
typeId: typeId,
|
|
@@ -7378,7 +7654,7 @@ const ProductChanges = props => {
|
|
|
7378
7654
|
ProductChanges.displayName = 'ProductChanges';
|
|
7379
7655
|
ProductChanges.propTypes = {};
|
|
7380
7656
|
|
|
7381
|
-
const _excluded$
|
|
7657
|
+
const _excluded$5 = ["typeId", "id"],
|
|
7382
7658
|
_excluded2 = ["typeId", "id"];
|
|
7383
7659
|
const MAX_REFERENCES = 20;
|
|
7384
7660
|
const isChangeValueLarge = value => value.length > MAX_REFERENCES;
|
|
@@ -7431,7 +7707,7 @@ const AddRemoveProductModalDisplayChange = props => {
|
|
|
7431
7707
|
const _ref2 = value || {},
|
|
7432
7708
|
typeId = _ref2.typeId,
|
|
7433
7709
|
id = _ref2.id,
|
|
7434
|
-
expandedProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7710
|
+
expandedProps = _objectWithoutProperties(_ref2, _excluded$5);
|
|
7435
7711
|
return jsxRuntime.jsx(ReferenceTypeChange, {
|
|
7436
7712
|
id: id,
|
|
7437
7713
|
typeId: typeId,
|
|
@@ -8005,7 +8281,7 @@ const StagedQuoteChanges = props => {
|
|
|
8005
8281
|
StagedQuoteChanges.displayName = 'StagedQuoteChangeItem';
|
|
8006
8282
|
StagedQuoteChanges.propTypes = {};
|
|
8007
8283
|
|
|
8008
|
-
const _excluded$
|
|
8284
|
+
const _excluded$4 = ["typeId", "id"];
|
|
8009
8285
|
const ReviewChanges = props => {
|
|
8010
8286
|
switch (props.change.change) {
|
|
8011
8287
|
case CHANGE_TYPE_NAME.SET_CUSTOM_TYPE:
|
|
@@ -8028,7 +8304,7 @@ const ReviewChanges = props => {
|
|
|
8028
8304
|
const _ref = props.value || {},
|
|
8029
8305
|
typeId = _ref.typeId,
|
|
8030
8306
|
id = _ref.id,
|
|
8031
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
8307
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
8032
8308
|
return (_props$value = props.value) !== null && _props$value !== void 0 && _props$value.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
8033
8309
|
id: id,
|
|
8034
8310
|
typeId: typeId,
|
|
@@ -8046,7 +8322,7 @@ const ReviewChanges = props => {
|
|
|
8046
8322
|
ReviewChanges.displayName = 'ReviewChanges';
|
|
8047
8323
|
ReviewChanges.propTypes = {};
|
|
8048
8324
|
|
|
8049
|
-
const _excluded$
|
|
8325
|
+
const _excluded$3 = ["typeId", "id"];
|
|
8050
8326
|
function ownKeys$U(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
8051
8327
|
function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys$U(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$U(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
8052
8328
|
const ShoppingListChanges = props => {
|
|
@@ -8238,7 +8514,7 @@ const ShoppingListChanges = props => {
|
|
|
8238
8514
|
const _ref = props.value || {},
|
|
8239
8515
|
typeId = _ref.typeId,
|
|
8240
8516
|
id = _ref.id,
|
|
8241
|
-
expandedProps = _objectWithoutProperties(_ref, _excluded$
|
|
8517
|
+
expandedProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
8242
8518
|
return (_props$value2 = props.value) !== null && _props$value2 !== void 0 && _props$value2.id ? jsxRuntime.jsx(ReferenceTypeChange, {
|
|
8243
8519
|
id: id,
|
|
8244
8520
|
typeId: typeId,
|
|
@@ -8256,7 +8532,7 @@ const ShoppingListChanges = props => {
|
|
|
8256
8532
|
ShoppingListChanges.displayName = 'ShoppingListChanges';
|
|
8257
8533
|
ShoppingListChanges.propTypes = {};
|
|
8258
8534
|
|
|
8259
|
-
const _excluded$
|
|
8535
|
+
const _excluded$2 = ["typeId", "id"];
|
|
8260
8536
|
const StateChanges = props => {
|
|
8261
8537
|
var _context;
|
|
8262
8538
|
switch (props.change.change) {
|
|
@@ -8287,7 +8563,7 @@ const StateChanges = props => {
|
|
|
8287
8563
|
children: _mapInstanceProperty__default["default"](_context = props.value).call(_context, resource => {
|
|
8288
8564
|
const typeId = resource.typeId,
|
|
8289
8565
|
id = resource.id,
|
|
8290
|
-
expandedProps = _objectWithoutProperties(resource, _excluded$
|
|
8566
|
+
expandedProps = _objectWithoutProperties(resource, _excluded$2);
|
|
8291
8567
|
return jsxRuntime.jsx(ReferenceTypeChange, {
|
|
8292
8568
|
id: id,
|
|
8293
8569
|
typeId: typeId,
|
|
@@ -11476,49 +11752,49 @@ const options$o = intl => [{
|
|
|
11476
11752
|
}];
|
|
11477
11753
|
|
|
11478
11754
|
const options$n = intl => [{
|
|
11479
|
-
value:
|
|
11755
|
+
value: ResourceChangeInput.ChangeCartPredicate,
|
|
11480
11756
|
label: intl.formatMessage(messages$1m.changeCartPredicateLabel)
|
|
11481
11757
|
}, {
|
|
11482
|
-
value:
|
|
11758
|
+
value: ResourceChangeInput.ChangeIsActive,
|
|
11483
11759
|
label: intl.formatMessage(commonMessages.changeIsActiveLabel)
|
|
11484
11760
|
}, {
|
|
11485
|
-
value:
|
|
11761
|
+
value: ResourceChangeInput.ChangeName,
|
|
11486
11762
|
label: intl.formatMessage(commonMessages.changeNameLabel)
|
|
11487
11763
|
}, {
|
|
11488
|
-
value:
|
|
11764
|
+
value: ResourceChangeInput.ChangeRequiresDiscountCode,
|
|
11489
11765
|
label: intl.formatMessage(messages$1m.changeRequiresDiscountCodeLabel)
|
|
11490
11766
|
}, {
|
|
11491
|
-
value:
|
|
11767
|
+
value: ResourceChangeInput.ChangeSortOrder,
|
|
11492
11768
|
label: intl.formatMessage(commonMessages.changeSortOrderLabel)
|
|
11493
11769
|
}, {
|
|
11494
|
-
value:
|
|
11770
|
+
value: ResourceChangeInput.ChangeStackingMode,
|
|
11495
11771
|
label: intl.formatMessage(messages$1m.changeStackingModeLabel)
|
|
11496
11772
|
}, {
|
|
11497
|
-
value:
|
|
11773
|
+
value: ResourceChangeInput.ChangeTarget,
|
|
11498
11774
|
label: intl.formatMessage(messages$1m.changeTargetLabel)
|
|
11499
11775
|
}, {
|
|
11500
|
-
value:
|
|
11776
|
+
value: ResourceChangeInput.ChangeValue,
|
|
11501
11777
|
label: intl.formatMessage(commonMessages.changeValueLabel)
|
|
11502
11778
|
}, {
|
|
11503
|
-
value:
|
|
11779
|
+
value: ResourceChangeInput.SetCustomField,
|
|
11504
11780
|
label: intl.formatMessage(commonMessages.setCustomFieldLabel)
|
|
11505
11781
|
}, {
|
|
11506
|
-
value:
|
|
11782
|
+
value: ResourceChangeInput.SetCustomType,
|
|
11507
11783
|
label: intl.formatMessage(commonMessages.setCustomTypeLabel)
|
|
11508
11784
|
}, {
|
|
11509
|
-
value:
|
|
11785
|
+
value: ResourceChangeInput.SetDescription,
|
|
11510
11786
|
label: intl.formatMessage(commonMessages.setDescriptionLabel)
|
|
11511
11787
|
}, {
|
|
11512
|
-
value:
|
|
11788
|
+
value: ResourceChangeInput.SetKey,
|
|
11513
11789
|
label: intl.formatMessage(commonMessages.setKeyLabel)
|
|
11514
11790
|
}, {
|
|
11515
|
-
value:
|
|
11791
|
+
value: ResourceChangeInput.SetValidFrom,
|
|
11516
11792
|
label: intl.formatMessage(commonMessages.setValidFromLabel)
|
|
11517
11793
|
}, {
|
|
11518
|
-
value:
|
|
11794
|
+
value: ResourceChangeInput.SetValidFromAndUntil,
|
|
11519
11795
|
label: intl.formatMessage(commonMessages.setValidFromAndUntilLabel)
|
|
11520
11796
|
}, {
|
|
11521
|
-
value:
|
|
11797
|
+
value: ResourceChangeInput.SetValidUntil,
|
|
11522
11798
|
label: intl.formatMessage(commonMessages.setValidUntilLabel)
|
|
11523
11799
|
}];
|
|
11524
11800
|
|
|
@@ -13156,7 +13432,7 @@ var getColumns$1 = memoize__default["default"](_ref => {
|
|
|
13156
13432
|
});
|
|
13157
13433
|
|
|
13158
13434
|
const invalidValues$1 = [null, undefined, ''];
|
|
13159
|
-
function
|
|
13435
|
+
function validateRequiredFilter(_ref) {
|
|
13160
13436
|
let value = _ref.value;
|
|
13161
13437
|
return _includesInstanceProperty__default["default"](invalidValues$1).call(invalidValues$1, value);
|
|
13162
13438
|
}
|
|
@@ -13174,16 +13450,16 @@ var messages$v = reactIntl.defineMessages({
|
|
|
13174
13450
|
}
|
|
13175
13451
|
});
|
|
13176
13452
|
|
|
13177
|
-
|
|
13453
|
+
function validateFilter(_ref, intl) {
|
|
13178
13454
|
let value = _ref.value,
|
|
13179
13455
|
type = _ref.type;
|
|
13180
13456
|
if (type !== 'range') return null;
|
|
13181
|
-
if (
|
|
13457
|
+
if (validateRequiredFilter({
|
|
13182
13458
|
value: value.from
|
|
13183
13459
|
})) return {
|
|
13184
13460
|
from: intl.formatMessage(messages$v.rangeMissingValue)
|
|
13185
13461
|
};
|
|
13186
|
-
if (
|
|
13462
|
+
if (validateRequiredFilter({
|
|
13187
13463
|
value: value.to
|
|
13188
13464
|
})) return {
|
|
13189
13465
|
to: intl.formatMessage(messages$v.rangeMissingValue)
|
|
@@ -13192,7 +13468,7 @@ const validateFilter = (_ref, intl) => {
|
|
|
13192
13468
|
from: intl.formatMessage(messages$v.rangeToSmallerThanFrom)
|
|
13193
13469
|
};
|
|
13194
13470
|
return null;
|
|
13195
|
-
}
|
|
13471
|
+
}
|
|
13196
13472
|
|
|
13197
13473
|
var validationMessages = reactIntl.defineMessages({
|
|
13198
13474
|
required: {
|
|
@@ -13202,14 +13478,97 @@ var validationMessages = reactIntl.defineMessages({
|
|
|
13202
13478
|
}
|
|
13203
13479
|
});
|
|
13204
13480
|
|
|
13481
|
+
const inputStyles = /*#__PURE__*/react$1.css("min-width:584px;border-radius:", designSystem.designTokens.borderRadius6, ";" + ("" ), "" );
|
|
13482
|
+
const errorContainerStyles = /*#__PURE__*/react$1.css("margin-top:", designSystem.designTokens.spacingXs, ";min-width:138px;" + ("" ), "" );
|
|
13483
|
+
const searchableSelectInputStyles = /*#__PURE__*/react$1.css("display:flex;gap:8px;border-radius:", designSystem.designTokens.borderRadius6, ";min-width:584px;& input{min-width:526px!important;}" + ("" ), "" );
|
|
13484
|
+
const customerIdInputStyles = /*#__PURE__*/react$1.css("display:flex;gap:8px;border-radius:", designSystem.designTokens.borderRadius6, ";& input{min-width:584px!important;}" + ("" ), "" );
|
|
13485
|
+
|
|
13486
|
+
const RequiredFilter = props => {
|
|
13487
|
+
return jsxRuntime.jsxs(react.Fragment, {
|
|
13488
|
+
children: [props.children, props.error && jsxRuntime.jsx("div", {
|
|
13489
|
+
css: errorContainerStyles,
|
|
13490
|
+
children: jsxRuntime.jsx(uiKit.ErrorMessage, {
|
|
13491
|
+
children: props.error
|
|
13492
|
+
})
|
|
13493
|
+
})]
|
|
13494
|
+
});
|
|
13495
|
+
};
|
|
13496
|
+
RequiredFilter.displayName = 'RequiredFilter';
|
|
13497
|
+
|
|
13498
|
+
/* In case of the multi selection we need the function because
|
|
13499
|
+
* the `value` could be
|
|
13500
|
+
* 1. An object with an array attribute called `value`
|
|
13501
|
+
* 2. Could be `null`, in which case we need to pass an empty array
|
|
13502
|
+
* to SelectInput
|
|
13503
|
+
*/
|
|
13504
|
+
const parseMultiValueForSelectInput = value => (value === null || value === void 0 ? void 0 : value.value) || [];
|
|
13505
|
+
|
|
13506
|
+
/* In case of the single selection we need the function because
|
|
13507
|
+
* the `value` could be
|
|
13508
|
+
* 1. `null`
|
|
13509
|
+
* 2. An object with a string attribute called `value`
|
|
13510
|
+
*/
|
|
13511
|
+
const parseSingleValueForSelectInput = value => value !== null && value !== void 0 && value.value ? value.value : value;
|
|
13512
|
+
|
|
13513
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13514
|
+
const isEnumFilterValue = input => {
|
|
13515
|
+
var _context;
|
|
13516
|
+
return !!input && typeof input === 'object' && 'value' in input && (typeof input.value === 'string' ||
|
|
13517
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13518
|
+
_Array$isArray__default["default"](input.value) && _everyInstanceProperty__default["default"](_context = input.value).call(_context, item => typeof item === 'string'));
|
|
13519
|
+
};
|
|
13520
|
+
const createEnumFilter = _ref => {
|
|
13521
|
+
let _ref$options = _ref.options,
|
|
13522
|
+
options = _ref$options === void 0 ? [] : _ref$options,
|
|
13523
|
+
_ref$isMulti = _ref.isMulti,
|
|
13524
|
+
isMulti = _ref$isMulti === void 0 ? false : _ref$isMulti,
|
|
13525
|
+
_ref$isSearchable = _ref.isSearchable,
|
|
13526
|
+
isSearchable = _ref$isSearchable === void 0 ? false : _ref$isSearchable;
|
|
13527
|
+
const EnumRequiredFilter = _ref2 => {
|
|
13528
|
+
let error = _ref2.error,
|
|
13529
|
+
value = _ref2.value,
|
|
13530
|
+
onUpdateFilter = _ref2.onUpdateFilter;
|
|
13531
|
+
const _useVersionTier = useVersionTier(),
|
|
13532
|
+
tier = _useVersionTier.tier;
|
|
13533
|
+
const isBasicTier = tier === TierLevels.Basic;
|
|
13534
|
+
return jsxRuntime.jsx(RequiredFilter, {
|
|
13535
|
+
error: error,
|
|
13536
|
+
children: jsxRuntime.jsx("div", {
|
|
13537
|
+
css: inputStyles,
|
|
13538
|
+
children: jsxRuntime.jsx(uiKit.SelectInput, {
|
|
13539
|
+
options: optionsGrouping({
|
|
13540
|
+
options,
|
|
13541
|
+
tier
|
|
13542
|
+
}),
|
|
13543
|
+
isOptionDisabled: isBasicTier ? (option, _selectValue) => {
|
|
13544
|
+
const typedOption = option;
|
|
13545
|
+
return typedOption.disabledForBasic ? typedOption.disabledForBasic : false;
|
|
13546
|
+
} : (_option, _selectValue) => false,
|
|
13547
|
+
isMulti: isMulti,
|
|
13548
|
+
isSearchable: isSearchable,
|
|
13549
|
+
value: isEnumFilterValue(value) ? isMulti ? parseMultiValueForSelectInput(value) : parseSingleValueForSelectInput(value) : null,
|
|
13550
|
+
onChange: event => onUpdateFilter(event.target.value ? {
|
|
13551
|
+
value: event.target.value
|
|
13552
|
+
} : null),
|
|
13553
|
+
isClearable: false,
|
|
13554
|
+
backspaceRemovesValue: false
|
|
13555
|
+
})
|
|
13556
|
+
})
|
|
13557
|
+
});
|
|
13558
|
+
};
|
|
13559
|
+
EnumRequiredFilter.displayName = 'EnumRequiredFilter';
|
|
13560
|
+
return EnumRequiredFilter;
|
|
13561
|
+
};
|
|
13562
|
+
|
|
13205
13563
|
const validateSingleOptionEnum = (selectedOption, intl) => {
|
|
13206
|
-
if (
|
|
13564
|
+
if (validateRequiredFilter(selectedOption)) return intl.formatMessage(validationMessages.required);
|
|
13207
13565
|
return null;
|
|
13208
13566
|
};
|
|
13209
13567
|
const validateMultiOptionEnum = (selectedOption, intl) => {
|
|
13210
|
-
var _selectedOption$value
|
|
13211
|
-
if (
|
|
13212
|
-
|
|
13568
|
+
var _selectedOption$value;
|
|
13569
|
+
if (validateRequiredFilter(selectedOption) || isEnumFilterValue(selectedOption.value) && ((_selectedOption$value = selectedOption.value) === null || _selectedOption$value === void 0 || (_selectedOption$value = _selectedOption$value.value) === null || _selectedOption$value === void 0 ? void 0 : _selectedOption$value.length) === 0 || _Array$isArray__default["default"](selectedOption.value) && selectedOption.value.length === 0) {
|
|
13570
|
+
return intl.formatMessage(validationMessages.required);
|
|
13571
|
+
}
|
|
13213
13572
|
return null;
|
|
13214
13573
|
};
|
|
13215
13574
|
|
|
@@ -13221,57 +13580,139 @@ var messages$u = reactIntl.defineMessages({
|
|
|
13221
13580
|
}
|
|
13222
13581
|
});
|
|
13223
13582
|
|
|
13224
|
-
var
|
|
13225
|
-
|
|
13226
|
-
|
|
13227
|
-
|
|
13583
|
+
var messages$t = reactIntl.defineMessages({
|
|
13584
|
+
whenLabel: {
|
|
13585
|
+
id: 'ResourceActionFilter.whenLabel',
|
|
13586
|
+
description: 'Message for whenLabel',
|
|
13587
|
+
defaultMessage: 'when'
|
|
13588
|
+
},
|
|
13589
|
+
hasLabel: {
|
|
13590
|
+
id: 'ResourceActionFilter.hasLabel',
|
|
13591
|
+
description: 'Message for the hasLabel',
|
|
13592
|
+
defaultMessage: 'has'
|
|
13593
|
+
},
|
|
13594
|
+
resourceInputPlaceholder: {
|
|
13595
|
+
id: 'ResourceActionFilter.resourceInputPlaceholder',
|
|
13596
|
+
description: 'Placeholder for resource selection',
|
|
13597
|
+
defaultMessage: 'Select the entity type...'
|
|
13598
|
+
},
|
|
13599
|
+
changeInputPlaceholder: {
|
|
13600
|
+
id: 'ResourceActionFilter.actionInputPlaceholder',
|
|
13601
|
+
description: 'Placeholder for change selection',
|
|
13602
|
+
defaultMessage: 'Select change...'
|
|
13603
|
+
}
|
|
13228
13604
|
});
|
|
13229
13605
|
|
|
13230
|
-
const
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13235
|
-
|
|
13236
|
-
return
|
|
13237
|
-
|
|
13238
|
-
|
|
13239
|
-
|
|
13240
|
-
|
|
13241
|
-
|
|
13242
|
-
|
|
13243
|
-
|
|
13244
|
-
|
|
13245
|
-
|
|
13246
|
-
|
|
13247
|
-
|
|
13248
|
-
|
|
13249
|
-
|
|
13250
|
-
|
|
13251
|
-
|
|
13606
|
+
const _excluded$1 = ["resources"];
|
|
13607
|
+
function ownKeys$J(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13608
|
+
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$J(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$J(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13609
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13610
|
+
const isResourceChangeFilterValue = input => {
|
|
13611
|
+
var _context, _context2;
|
|
13612
|
+
return input && typeof input === 'object' && 'resource' in input && 'change' in input && (input.resource === null || typeof input.resource === 'string' && _includesInstanceProperty__default["default"](_context = _Object$values__default["default"](RESOURCE_TYPE)).call(_context, input.resource)) && (input.change === null || typeof input.change === 'string' && _includesInstanceProperty__default["default"](_context2 = _Object$values__default["default"](ResourceChangeInput)).call(_context2, input.change));
|
|
13613
|
+
};
|
|
13614
|
+
const getChangesByResourceType = (resourceType, intl) => {
|
|
13615
|
+
const getChanges = getChangesOptions(resourceType);
|
|
13616
|
+
const changesByResourceType = getChanges ? getChanges(intl) : [];
|
|
13617
|
+
return orderBy__default["default"](changesByResourceType, ['label'], ['asc']);
|
|
13618
|
+
};
|
|
13619
|
+
const ResourceChangeFilter = _ref => {
|
|
13620
|
+
let _ref$resources = _ref.resources,
|
|
13621
|
+
resources = _ref$resources === void 0 ? [] : _ref$resources,
|
|
13622
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
13623
|
+
const intl = reactIntl.useIntl();
|
|
13624
|
+
const _useVersionTier = useVersionTier(),
|
|
13625
|
+
tier = _useVersionTier.tier;
|
|
13626
|
+
const isBasicTier = tier === TierLevels.Basic;
|
|
13627
|
+
const defaultValue = isResourceChangeFilterValue(props.value) ? resources.length === 1 ? _objectSpread$J(_objectSpread$J({}, props.value), {}, {
|
|
13628
|
+
resource: resources[0].value
|
|
13629
|
+
}) : props.value : {
|
|
13630
|
+
resource: '',
|
|
13631
|
+
change: ''
|
|
13632
|
+
};
|
|
13633
|
+
const resource = defaultValue.resource,
|
|
13634
|
+
change = defaultValue.change;
|
|
13635
|
+
const sortedResources = orderBy__default["default"](resources, ['label'], ['asc']);
|
|
13636
|
+
return jsxRuntime.jsx(RequiredFilter, {
|
|
13637
|
+
error: props.error,
|
|
13638
|
+
children: jsxRuntime.jsx("div", {
|
|
13639
|
+
css: /*#__PURE__*/react$1.css("min-width:", designSystem.designTokens.constraint16, ";" + ("" ), "" ),
|
|
13640
|
+
children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
13641
|
+
alignItems: "center",
|
|
13642
|
+
children: [jsxRuntime.jsx("div", {
|
|
13643
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$J({}, messages$t.whenLabel))
|
|
13644
|
+
}), jsxRuntime.jsx("div", {
|
|
13645
|
+
css: /*#__PURE__*/react$1.css("min-width:", designSystem.designTokens.constraint7, ";" + ("" ), "" ),
|
|
13646
|
+
children: jsxRuntime.jsx(uiKit.SelectInput, {
|
|
13647
|
+
name: "change-selector",
|
|
13648
|
+
value: resource,
|
|
13649
|
+
options: optionsGrouping({
|
|
13650
|
+
options: sortedResources,
|
|
13651
|
+
tier
|
|
13652
|
+
}),
|
|
13653
|
+
isOptionDisabled: isBasicTier ? (option, _selectValue) => {
|
|
13654
|
+
const typedOption = option;
|
|
13655
|
+
return typedOption.disabledForBasic ? typedOption.disabledForBasic : false;
|
|
13656
|
+
} : (_option, _selectValue) => false,
|
|
13657
|
+
placeholder: intl.formatMessage(messages$t.resourceInputPlaceholder),
|
|
13658
|
+
onChange: nextValue => props.onUpdateFilter({
|
|
13659
|
+
resource: nextValue.target.value,
|
|
13660
|
+
change: null
|
|
13661
|
+
}),
|
|
13662
|
+
isClearable: false,
|
|
13663
|
+
isDisabled: resources.length === 1,
|
|
13664
|
+
horizontalConstraint: 16
|
|
13665
|
+
})
|
|
13666
|
+
}), resource && jsxRuntime.jsxs(react.Fragment, {
|
|
13667
|
+
children: [jsxRuntime.jsx("div", {
|
|
13668
|
+
"data-testid": "prueba",
|
|
13669
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$J({}, messages$t.hasLabel))
|
|
13670
|
+
}), jsxRuntime.jsx("div", {
|
|
13671
|
+
css: /*#__PURE__*/react$1.css("min-width:", designSystem.designTokens.constraint7, ";" + ("" ), "" ),
|
|
13672
|
+
children: jsxRuntime.jsx(uiKit.SelectInput, {
|
|
13673
|
+
name: "change-selector",
|
|
13674
|
+
"data-testid": "change-selector-".concat(resource),
|
|
13675
|
+
value: change,
|
|
13676
|
+
placeholder: intl.formatMessage(messages$t.changeInputPlaceholder),
|
|
13677
|
+
options: getChangesByResourceType(resource, intl),
|
|
13678
|
+
onChange: nextValue => props.onUpdateFilter({
|
|
13679
|
+
resource: resource,
|
|
13680
|
+
change: nextValue.target.value
|
|
13681
|
+
}),
|
|
13682
|
+
isClearable: false,
|
|
13683
|
+
isDisabled: false,
|
|
13684
|
+
horizontalConstraint: 16
|
|
13685
|
+
})
|
|
13686
|
+
})]
|
|
13687
|
+
})]
|
|
13252
13688
|
})
|
|
13253
|
-
})
|
|
13689
|
+
})
|
|
13254
13690
|
});
|
|
13255
13691
|
};
|
|
13256
|
-
|
|
13257
|
-
|
|
13692
|
+
ResourceChangeFilter.displayName = 'ResourceChangeFilter';
|
|
13693
|
+
|
|
13694
|
+
const validate = (filter, intl) => {
|
|
13695
|
+
var _filter$value, _filter$value2;
|
|
13696
|
+
if (isResourceChangeFilterValue(filter.value) && (_filter$value = filter.value) !== null && _filter$value !== void 0 && _filter$value.resource && (_filter$value2 = filter.value) !== null && _filter$value2 !== void 0 && _filter$value2.change) return null;
|
|
13697
|
+
return intl.formatMessage(messages$u.resourceChangeValidationError);
|
|
13698
|
+
};
|
|
13258
13699
|
|
|
13259
13700
|
const containerStyles = {
|
|
13260
13701
|
name: "dnp3pp",
|
|
13261
13702
|
styles: "display:inline-flex;flex-direction:column"
|
|
13262
13703
|
} ;
|
|
13263
13704
|
|
|
13264
|
-
var messages$
|
|
13705
|
+
var messages$s = reactIntl.defineMessages({
|
|
13265
13706
|
and: {
|
|
13266
13707
|
id: 'Search.Filters.RangeFilter.and',
|
|
13267
13708
|
defaultMessage: 'and'
|
|
13268
13709
|
}
|
|
13269
13710
|
});
|
|
13270
13711
|
|
|
13271
|
-
function ownKeys$
|
|
13272
|
-
function _objectSpread$
|
|
13712
|
+
function ownKeys$I(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13713
|
+
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$I(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$I(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13273
13714
|
const processUpdateValue = newValue => {
|
|
13274
|
-
const processedValue = _objectSpread$
|
|
13715
|
+
const processedValue = _objectSpread$I({}, newValue);
|
|
13275
13716
|
if (newValue.to === '') processedValue.to = null;else if (newValue.from === '') processedValue.from = null;
|
|
13276
13717
|
return processedValue;
|
|
13277
13718
|
};
|
|
@@ -13304,7 +13745,7 @@ const RangeFilter = props => jsxRuntime.jsxs("div", {
|
|
|
13304
13745
|
})
|
|
13305
13746
|
})]
|
|
13306
13747
|
}), jsxRuntime.jsx(uiKit.Text.Body, {
|
|
13307
|
-
intlMessage: messages$
|
|
13748
|
+
intlMessage: messages$s.and
|
|
13308
13749
|
}), jsxRuntime.jsxs("div", {
|
|
13309
13750
|
css: containerStyles,
|
|
13310
13751
|
children: [props.renderInput({
|
|
@@ -13343,7 +13784,7 @@ const createDateFilter = function () {
|
|
|
13343
13784
|
timeScale = _ref.timeScale,
|
|
13344
13785
|
_ref$horizontalConstr = _ref.horizontalConstraint,
|
|
13345
13786
|
horizontalConstraint = _ref$horizontalConstr === void 0 ? 'scale' : _ref$horizontalConstr;
|
|
13346
|
-
const FilterType = isRange ? RangeFilter :
|
|
13787
|
+
const FilterType = isRange ? RangeFilter : RequiredFilter;
|
|
13347
13788
|
const DateFilter = props => jsxRuntime.jsx(FilterType, {
|
|
13348
13789
|
renderInput: _ref2 => {
|
|
13349
13790
|
let value = _ref2.value,
|
|
@@ -13476,7 +13917,7 @@ const SingleFilterTag = props => {
|
|
|
13476
13917
|
SingleFilterTag.displayName = 'SingleFilterTag';
|
|
13477
13918
|
SingleFilterTag.propTypes = {};
|
|
13478
13919
|
|
|
13479
|
-
const messages$
|
|
13920
|
+
const messages$r = reactIntl.defineMessages({
|
|
13480
13921
|
from: {
|
|
13481
13922
|
id: 'Search.Filters.RangeFilterTag.from',
|
|
13482
13923
|
description: '',
|
|
@@ -13500,12 +13941,12 @@ const RangeFilterTag = props => {
|
|
|
13500
13941
|
children: [jsxRuntime.jsxs("div", {
|
|
13501
13942
|
children: [props.fieldLabel, ':']
|
|
13502
13943
|
}), jsxRuntime.jsx("div", {
|
|
13503
|
-
children: formatMessage(messages$
|
|
13944
|
+
children: formatMessage(messages$r.from)
|
|
13504
13945
|
}), jsxRuntime.jsx("div", {
|
|
13505
13946
|
css: boldStyles,
|
|
13506
13947
|
children: props.renderValue(props.value ? props.value.from : null)
|
|
13507
13948
|
}), jsxRuntime.jsx("div", {
|
|
13508
|
-
children: formatMessage(messages$
|
|
13949
|
+
children: formatMessage(messages$r.to)
|
|
13509
13950
|
}), jsxRuntime.jsx("div", {
|
|
13510
13951
|
css: boldStyles,
|
|
13511
13952
|
children: props.renderValue(props.value ? props.value.to : null)
|
|
@@ -13553,339 +13994,34 @@ const TextSingleFilterTag = props => jsxRuntime.jsx(SingleFilterTag, {
|
|
|
13553
13994
|
TextSingleFilterTag.displayName = 'TextSingleFilterTag';
|
|
13554
13995
|
TextSingleFilterTag.propTypes = {};
|
|
13555
13996
|
|
|
13556
|
-
const
|
|
13557
|
-
|
|
13558
|
-
options = _ref$options === void 0 ? [] : _ref$options,
|
|
13559
|
-
_ref$isMulti = _ref.isMulti,
|
|
13560
|
-
isMulti = _ref$isMulti === void 0 ? false : _ref$isMulti,
|
|
13561
|
-
_ref$isSearchable = _ref.isSearchable,
|
|
13562
|
-
isSearchable = _ref$isSearchable === void 0 ? false : _ref$isSearchable;
|
|
13563
|
-
const EnumSingleFilter = props => {
|
|
13564
|
-
const _useVersionTier = useVersionTier(),
|
|
13565
|
-
tier = _useVersionTier.tier;
|
|
13566
|
-
return jsxRuntime.jsx(SingleFilter, {
|
|
13567
|
-
renderInput: _ref2 => {
|
|
13568
|
-
let value = _ref2.value,
|
|
13569
|
-
onUpdateValue = _ref2.onUpdateValue,
|
|
13570
|
-
onBlur = _ref2.onBlur,
|
|
13571
|
-
onFocus = _ref2.onFocus;
|
|
13572
|
-
return renderInput$2({
|
|
13573
|
-
value,
|
|
13574
|
-
onUpdateValue,
|
|
13575
|
-
options,
|
|
13576
|
-
placeholder: props.placeholder,
|
|
13577
|
-
components: props.components,
|
|
13578
|
-
autofocus: props.autofocus,
|
|
13579
|
-
disabled: props.disabled,
|
|
13580
|
-
isSearchable,
|
|
13581
|
-
isMulti,
|
|
13582
|
-
onBlur,
|
|
13583
|
-
onFocus,
|
|
13584
|
-
tier
|
|
13585
|
-
});
|
|
13586
|
-
},
|
|
13587
|
-
value: props.value,
|
|
13588
|
-
error: props.error,
|
|
13589
|
-
onUpdateValue: props.onUpdateFilter,
|
|
13590
|
-
onBlur: props.onBlur,
|
|
13591
|
-
onFocus: props.onFocus
|
|
13592
|
-
});
|
|
13593
|
-
};
|
|
13594
|
-
EnumSingleFilter.defaultProps = {
|
|
13595
|
-
disabled: false
|
|
13596
|
-
};
|
|
13597
|
-
EnumSingleFilter.propTypes = {};
|
|
13598
|
-
EnumSingleFilter.displayName = 'EnumSingleFilter';
|
|
13599
|
-
return EnumSingleFilter;
|
|
13997
|
+
const isTextFilterValue = value => {
|
|
13998
|
+
return typeof value === 'string';
|
|
13600
13999
|
};
|
|
13601
|
-
|
|
13602
|
-
/* In case of the multi selection we need the function because
|
|
13603
|
-
* the `value` could be
|
|
13604
|
-
* 1. An array
|
|
13605
|
-
* 2. An object with an array attribute called `value`
|
|
13606
|
-
* 3. Could be `null`, in which case we need to pass an empty array
|
|
13607
|
-
* to SelectInput
|
|
13608
|
-
*/
|
|
13609
|
-
const parseMultiValueForSelectInput = value => _Array$isArray__default["default"](value) ? value : (value === null || value === void 0 ? void 0 : value.value) || [];
|
|
13610
|
-
|
|
13611
|
-
/* In case of the single selection we need the function because
|
|
13612
|
-
* the `value` could be
|
|
13613
|
-
* 1. `null`
|
|
13614
|
-
* 2. A string
|
|
13615
|
-
* 3. An object with a string attribute called `value`
|
|
13616
|
-
*/
|
|
13617
|
-
const parseSingleValueForSelectInput = value => {
|
|
13618
|
-
if (!value) return value;
|
|
13619
|
-
return value.value ? "".concat(value.value) : "".concat(value);
|
|
13620
|
-
};
|
|
13621
|
-
|
|
13622
|
-
/* eslint-disable react/prop-types */
|
|
13623
|
-
function renderInput$2(_ref3) {
|
|
13624
|
-
let _ref3$value = _ref3.value,
|
|
13625
|
-
value = _ref3$value === void 0 ? '' : _ref3$value,
|
|
13626
|
-
onUpdateValue = _ref3.onUpdateValue,
|
|
13627
|
-
placeholder = _ref3.placeholder,
|
|
13628
|
-
autofocus = _ref3.autofocus,
|
|
13629
|
-
options = _ref3.options,
|
|
13630
|
-
isMulti = _ref3.isMulti,
|
|
13631
|
-
isSearchable = _ref3.isSearchable,
|
|
13632
|
-
disabled = _ref3.disabled,
|
|
13633
|
-
onBlur = _ref3.onBlur,
|
|
13634
|
-
onFocus = _ref3.onFocus,
|
|
13635
|
-
components = _ref3.components,
|
|
13636
|
-
tier = _ref3.tier;
|
|
13637
|
-
const isNotPremiumTier = tier !== TIER_TYPES.PREMIUM;
|
|
14000
|
+
const TextFilter = props => {
|
|
13638
14001
|
return jsxRuntime.jsx("div", {
|
|
13639
|
-
css:
|
|
13640
|
-
children: jsxRuntime.jsx(
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
backspaceRemovesValue: false,
|
|
13648
|
-
isSearchable: isSearchable,
|
|
13649
|
-
value: isMulti ? parseMultiValueForSelectInput(value) : parseSingleValueForSelectInput(value),
|
|
13650
|
-
onChange: event => onUpdateValue(event.target),
|
|
13651
|
-
placeholder: placeholder,
|
|
13652
|
-
isDisabled: disabled,
|
|
13653
|
-
onBlur: onBlur,
|
|
13654
|
-
onFocus: onFocus,
|
|
13655
|
-
autofocus: autofocus,
|
|
13656
|
-
isMulti: isMulti,
|
|
13657
|
-
components: components
|
|
14002
|
+
css: customerIdInputStyles,
|
|
14003
|
+
children: jsxRuntime.jsx(RequiredFilter, {
|
|
14004
|
+
error: props.error,
|
|
14005
|
+
children: jsxRuntime.jsx(uiKit.TextInput, {
|
|
14006
|
+
onChange: event => props.onUpdateFilter(event.target.value),
|
|
14007
|
+
value: isTextFilterValue(props.value) ? props.value : '',
|
|
14008
|
+
hasError: Boolean(props.error)
|
|
14009
|
+
})
|
|
13658
14010
|
})
|
|
13659
14011
|
});
|
|
13660
|
-
}
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
function _callSuper$4(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13664
|
-
function _isNativeReflectConstruct$4() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$4 = function () { return !!t; })(); }
|
|
13665
|
-
let TextSingleFilter = /*#__PURE__*/function (_Component) {
|
|
13666
|
-
function TextSingleFilter() {
|
|
13667
|
-
_classCallCheck(this, TextSingleFilter);
|
|
13668
|
-
return _callSuper$4(this, TextSingleFilter, arguments);
|
|
13669
|
-
}
|
|
13670
|
-
_inherits(TextSingleFilter, _Component);
|
|
13671
|
-
return _createClass(TextSingleFilter, [{
|
|
13672
|
-
key: "render",
|
|
13673
|
-
value: function render() {
|
|
13674
|
-
return jsxRuntime.jsx("div", {
|
|
13675
|
-
css: customerIdInputStyles,
|
|
13676
|
-
children: jsxRuntime.jsx(SingleFilter, {
|
|
13677
|
-
renderInput: _ref => {
|
|
13678
|
-
let value = _ref.value,
|
|
13679
|
-
onUpdateValue = _ref.onUpdateValue,
|
|
13680
|
-
onBlur = _ref.onBlur,
|
|
13681
|
-
onFocus = _ref.onFocus;
|
|
13682
|
-
return renderInput$1({
|
|
13683
|
-
value,
|
|
13684
|
-
onUpdateValue,
|
|
13685
|
-
placeholder: this.props.placeholder,
|
|
13686
|
-
disabled: this.props.disabled,
|
|
13687
|
-
onBlur,
|
|
13688
|
-
onFocus
|
|
13689
|
-
});
|
|
13690
|
-
},
|
|
13691
|
-
value: this.props.value,
|
|
13692
|
-
error: this.props.error,
|
|
13693
|
-
onUpdateValue: eventOrNewValue => this.props.onUpdateFilter(eventOrNewValue.target ? eventOrNewValue.target.value : eventOrNewValue),
|
|
13694
|
-
onBlur: this.props.onBlur,
|
|
13695
|
-
onFocus: this.props.onFocus
|
|
13696
|
-
})
|
|
13697
|
-
});
|
|
13698
|
-
}
|
|
13699
|
-
}]);
|
|
13700
|
-
}(react.Component);
|
|
14012
|
+
};
|
|
14013
|
+
TextFilter.displayName = 'TextFilter';
|
|
13701
14014
|
|
|
13702
|
-
|
|
13703
|
-
|
|
13704
|
-
|
|
13705
|
-
|
|
13706
|
-
|
|
13707
|
-
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
placeholder = _ref2.placeholder,
|
|
13713
|
-
disabled = _ref2.disabled,
|
|
13714
|
-
hasError = _ref2.hasError,
|
|
13715
|
-
onBlur = _ref2.onBlur,
|
|
13716
|
-
onFocus = _ref2.onFocus;
|
|
13717
|
-
return jsxRuntime.jsx(uiKit.TextInput, {
|
|
13718
|
-
hasError: hasError,
|
|
13719
|
-
onChange: onUpdateValue,
|
|
13720
|
-
value: isNil__default["default"](value) ? '' : value,
|
|
13721
|
-
onBlur: onBlur,
|
|
13722
|
-
onFocus: onFocus,
|
|
13723
|
-
placeholder: placeholder,
|
|
13724
|
-
isDisabled: disabled
|
|
13725
|
-
});
|
|
13726
|
-
}
|
|
13727
|
-
renderInput$1.displayName = 'Input';
|
|
13728
|
-
|
|
13729
|
-
var messages$r = reactIntl.defineMessages({
|
|
13730
|
-
whenLabel: {
|
|
13731
|
-
id: 'ResourceActionFilter.whenLabel',
|
|
13732
|
-
description: 'Message for whenLabel',
|
|
13733
|
-
defaultMessage: 'when'
|
|
13734
|
-
},
|
|
13735
|
-
hasLabel: {
|
|
13736
|
-
id: 'ResourceActionFilter.hasLabel',
|
|
13737
|
-
description: 'Message for the hasLabel',
|
|
13738
|
-
defaultMessage: 'has'
|
|
13739
|
-
},
|
|
13740
|
-
resourceInputPlaceholder: {
|
|
13741
|
-
id: 'ResourceActionFilter.resourceInputPlaceholder',
|
|
13742
|
-
description: 'Placeholder for resource selection',
|
|
13743
|
-
defaultMessage: 'Select the entity type...'
|
|
13744
|
-
},
|
|
13745
|
-
changeInputPlaceholder: {
|
|
13746
|
-
id: 'ResourceActionFilter.actionInputPlaceholder',
|
|
13747
|
-
description: 'Placeholder for change selection',
|
|
13748
|
-
defaultMessage: 'Select change...'
|
|
13749
|
-
}
|
|
13750
|
-
});
|
|
13751
|
-
|
|
13752
|
-
function ownKeys$I(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13753
|
-
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$I(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$I(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13754
|
-
function _callSuper$3(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13755
|
-
function _isNativeReflectConstruct$3() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$3 = function () { return !!t; })(); }
|
|
13756
|
-
let ResourceChangeFilter = /*#__PURE__*/function (_PureComponent) {
|
|
13757
|
-
function ResourceChangeFilter() {
|
|
13758
|
-
_classCallCheck(this, ResourceChangeFilter);
|
|
13759
|
-
return _callSuper$3(this, ResourceChangeFilter, arguments);
|
|
13760
|
-
}
|
|
13761
|
-
_inherits(ResourceChangeFilter, _PureComponent);
|
|
13762
|
-
return _createClass(ResourceChangeFilter, [{
|
|
13763
|
-
key: "render",
|
|
13764
|
-
value: function render() {
|
|
13765
|
-
const defaultValue = this.props.resources.length === 1 ? _objectSpread$I(_objectSpread$I({}, this.props.value), {}, {
|
|
13766
|
-
resource: this.props.resources[0].value,
|
|
13767
|
-
target: this.props.resources[0].value
|
|
13768
|
-
}) : this.props.value;
|
|
13769
|
-
const resources = this.props.resources;
|
|
13770
|
-
return jsxRuntime.jsx(SingleFilter, {
|
|
13771
|
-
renderInput: _ref => {
|
|
13772
|
-
var _this$props;
|
|
13773
|
-
let value = _ref.value,
|
|
13774
|
-
onUpdateValue = _ref.onUpdateValue;
|
|
13775
|
-
return renderInput({
|
|
13776
|
-
value,
|
|
13777
|
-
onUpdateValue,
|
|
13778
|
-
disabled: this.props.disabled,
|
|
13779
|
-
hasError: this.props.error,
|
|
13780
|
-
resources,
|
|
13781
|
-
intl: this.props.intl,
|
|
13782
|
-
tier: (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.tier
|
|
13783
|
-
});
|
|
13784
|
-
},
|
|
13785
|
-
value: defaultValue,
|
|
13786
|
-
error: this.props.error,
|
|
13787
|
-
onUpdateValue: this.props.onUpdateFilter,
|
|
13788
|
-
onBlur: this.props.onBlur,
|
|
13789
|
-
onFocus: this.props.onFocus
|
|
13790
|
-
});
|
|
13791
|
-
}
|
|
13792
|
-
}]);
|
|
13793
|
-
}(react.PureComponent);
|
|
13794
|
-
ResourceChangeFilter.displayName = 'ResourceActionFilter';
|
|
13795
|
-
ResourceChangeFilter.defaultProps = {
|
|
13796
|
-
hideTypes: [],
|
|
13797
|
-
disabled: false
|
|
13798
|
-
};
|
|
13799
|
-
ResourceChangeFilter.propTypes = {};
|
|
13800
|
-
const getChangesByResourceType = (resourceType, intl) => {
|
|
13801
|
-
const getChanges = getChangesOptions(resourceType);
|
|
13802
|
-
const changesByResourceType = getChanges ? getChanges(intl) : [];
|
|
13803
|
-
return orderBy__default["default"](changesByResourceType, ['label'], ['asc']);
|
|
13804
|
-
};
|
|
13805
|
-
|
|
13806
|
-
/* eslint-disable react/prop-types */
|
|
13807
|
-
function renderInput(_ref2) {
|
|
13808
|
-
let tier = _ref2.tier,
|
|
13809
|
-
value = _ref2.value,
|
|
13810
|
-
onUpdateValue = _ref2.onUpdateValue,
|
|
13811
|
-
resources = _ref2.resources,
|
|
13812
|
-
disabled = _ref2.disabled,
|
|
13813
|
-
intl = _ref2.intl;
|
|
13814
|
-
const isPremiumFiltersDisabled = tier === TIER_TYPES.BASIC;
|
|
13815
|
-
const _ref3 = value || {},
|
|
13816
|
-
target = _ref3.target,
|
|
13817
|
-
resource = _ref3.resource,
|
|
13818
|
-
change = _ref3.change;
|
|
13819
|
-
const sortedResources = orderBy__default["default"](resources, ['label'], ['asc']);
|
|
13820
|
-
return jsxRuntime.jsx("div", {
|
|
13821
|
-
css: /*#__PURE__*/react$1.css("min-width:", designSystem.designTokens.constraint16, ";" + ("" ), "" ),
|
|
13822
|
-
children: jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
13823
|
-
alignItems: "center",
|
|
13824
|
-
children: [jsxRuntime.jsx("div", {
|
|
13825
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$I({}, messages$r.whenLabel))
|
|
13826
|
-
}), jsxRuntime.jsx("div", {
|
|
13827
|
-
css: /*#__PURE__*/react$1.css("min-width:", designSystem.designTokens.constraint7, ";" + ("" ), "" ),
|
|
13828
|
-
children: jsxRuntime.jsx(uiKit.SelectInput, {
|
|
13829
|
-
name: "change-selector",
|
|
13830
|
-
value: target,
|
|
13831
|
-
options: optionsGrouping({
|
|
13832
|
-
options: sortedResources,
|
|
13833
|
-
tier
|
|
13834
|
-
}),
|
|
13835
|
-
isOptionDisabled: isPremiumFiltersDisabled ? option => option.disabledForBasic : _option => null,
|
|
13836
|
-
placeholder: intl.formatMessage(messages$r.resourceInputPlaceholder),
|
|
13837
|
-
onChange: nextValue => onUpdateValue({
|
|
13838
|
-
target: nextValue.target.value,
|
|
13839
|
-
resource: nextValue.target.value,
|
|
13840
|
-
change: null
|
|
13841
|
-
}),
|
|
13842
|
-
isClearable: false,
|
|
13843
|
-
isDisabled: disabled || resources.length === 1,
|
|
13844
|
-
horizontalConstraint: 16
|
|
13845
|
-
})
|
|
13846
|
-
}), resource && jsxRuntime.jsxs(react.Fragment, {
|
|
13847
|
-
children: [jsxRuntime.jsx("div", {
|
|
13848
|
-
"data-testid": "prueba",
|
|
13849
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$I({}, messages$r.hasLabel))
|
|
13850
|
-
}), jsxRuntime.jsx("div", {
|
|
13851
|
-
css: /*#__PURE__*/react$1.css("min-width:", designSystem.designTokens.constraint7, ";" + ("" ), "" ),
|
|
13852
|
-
children: jsxRuntime.jsx(uiKit.SelectInput, {
|
|
13853
|
-
name: "change-selector",
|
|
13854
|
-
"data-testid": "change-selector-".concat(target),
|
|
13855
|
-
value: change,
|
|
13856
|
-
placeholder: intl.formatMessage(messages$r.changeInputPlaceholder),
|
|
13857
|
-
options: optionsGrouping({
|
|
13858
|
-
options: getChangesByResourceType(target, intl),
|
|
13859
|
-
tier
|
|
13860
|
-
}),
|
|
13861
|
-
isOptionDisabled: isPremiumFiltersDisabled ? option => option.disabledForBasic : _option => null,
|
|
13862
|
-
onChange: nextValue => onUpdateValue({
|
|
13863
|
-
target,
|
|
13864
|
-
resource: target,
|
|
13865
|
-
change: nextValue.target.value
|
|
13866
|
-
}),
|
|
13867
|
-
isClearable: false,
|
|
13868
|
-
isDisabled: false,
|
|
13869
|
-
horizontalConstraint: 16
|
|
13870
|
-
})
|
|
13871
|
-
})]
|
|
13872
|
-
})]
|
|
13873
|
-
})
|
|
13874
|
-
});
|
|
13875
|
-
}
|
|
13876
|
-
renderInput.displayName = 'Input';
|
|
13877
|
-
var ResourceChangeFilter$1 = reactIntl.injectIntl(ResourceChangeFilter);
|
|
13878
|
-
|
|
13879
|
-
var _ref$c = {
|
|
13880
|
-
name: "1tmmbhs",
|
|
13881
|
-
styles: "height:100%;display:flex;flex-grow:1;align-items:center;justify-content:center"
|
|
13882
|
-
} ;
|
|
13883
|
-
const CenteredLoadingSpinner = () => jsxRuntime.jsx("div", {
|
|
13884
|
-
css: _ref$c,
|
|
13885
|
-
"data-testid": "centered-loading-spinner",
|
|
13886
|
-
children: jsxRuntime.jsx(uiKit.LoadingSpinner, {})
|
|
13887
|
-
});
|
|
13888
|
-
CenteredLoadingSpinner.displayName = 'CenteredLoadingSpinner';
|
|
14015
|
+
var _ref$c = {
|
|
14016
|
+
name: "1tmmbhs",
|
|
14017
|
+
styles: "height:100%;display:flex;flex-grow:1;align-items:center;justify-content:center"
|
|
14018
|
+
} ;
|
|
14019
|
+
const CenteredLoadingSpinner = () => jsxRuntime.jsx("div", {
|
|
14020
|
+
css: _ref$c,
|
|
14021
|
+
"data-testid": "centered-loading-spinner",
|
|
14022
|
+
children: jsxRuntime.jsx(uiKit.LoadingSpinner, {})
|
|
14023
|
+
});
|
|
14024
|
+
CenteredLoadingSpinner.displayName = 'CenteredLoadingSpinner';
|
|
13889
14025
|
|
|
13890
14026
|
const LOWER_STORES_LIMIT = 60;
|
|
13891
14027
|
const UPPER_STORES_LIMIT = 500;
|
|
@@ -14349,22 +14485,25 @@ const StoresFilter = props => {
|
|
|
14349
14485
|
isTouched = _useState4[0],
|
|
14350
14486
|
setIsTouched = _useState4[1];
|
|
14351
14487
|
react.useEffect(() => {
|
|
14352
|
-
// StoreSelectInput requires an array of store key strings for its
|
|
14488
|
+
// StoreSelectInput requires an array of store key strings for its value prop,
|
|
14353
14489
|
// whereas selected store values are set as an array of objects with this shape:
|
|
14354
14490
|
// [{key: <key>, label: <label>, id:<id>}]
|
|
14355
14491
|
// so that we can display the localized store name in the filter tag view instead of the key.
|
|
14356
14492
|
// This function creates an array of id's consumable by StoreSelectInput with the shape:
|
|
14357
14493
|
// [ <store_id_1>, <store_id_2> ]
|
|
14358
|
-
// then sets the array of strings into local state so they can be consumed by the input,
|
|
14494
|
+
// then sets the array of strings into local state, so they can be consumed by the input,
|
|
14359
14495
|
// since the input errors out if it is passed a function as a value.
|
|
14360
14496
|
if (_Array$isArray__default["default"](props.value)) {
|
|
14361
14497
|
var _context;
|
|
14362
14498
|
setStoreIds(_mapInstanceProperty__default["default"](_context = props.value).call(_context, value => value.key));
|
|
14363
14499
|
}
|
|
14364
14500
|
}, [props.value]);
|
|
14365
|
-
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext =>
|
|
14366
|
-
|
|
14367
|
-
|
|
14501
|
+
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => {
|
|
14502
|
+
var _applicationContext$p;
|
|
14503
|
+
return {
|
|
14504
|
+
projectKey: (_applicationContext$p = applicationContext.project) === null || _applicationContext$p === void 0 ? void 0 : _applicationContext$p.key
|
|
14505
|
+
};
|
|
14506
|
+
}),
|
|
14368
14507
|
projectKey = _useApplicationContex.projectKey;
|
|
14369
14508
|
const canViewCustomers = permissions.useIsAuthorized({
|
|
14370
14509
|
demandedPermissions: [PERMISSIONS.ViewCustomers]
|
|
@@ -14379,8 +14518,7 @@ const StoresFilter = props => {
|
|
|
14379
14518
|
resourceName: DATA_FENCE_RESOURCE_TYPES.ORDERS
|
|
14380
14519
|
});
|
|
14381
14520
|
const allAccessibleStoreKeysThroughDataFencePermissions = !canViewCustomers && !canViewOrders ? [...customerStoreKeysFromDataFence, ...ordersStoreKeysFromDataFence] : [];
|
|
14382
|
-
const handleFocus =
|
|
14383
|
-
if (props.onFocus) props.onFocus(...arguments);
|
|
14521
|
+
const handleFocus = () => {
|
|
14384
14522
|
setIsTouched(true);
|
|
14385
14523
|
};
|
|
14386
14524
|
return jsxRuntime.jsx("div", {
|
|
@@ -14398,10 +14536,16 @@ const StoresFilter = props => {
|
|
|
14398
14536
|
optionType: selectUtils.SELECT_DROPDOWN_OPTION_TYPES.DOUBLE_PROPERTY,
|
|
14399
14537
|
renderSelectInputOptionValuesByField: "key",
|
|
14400
14538
|
onFocus: handleFocus,
|
|
14401
|
-
onChange:
|
|
14402
|
-
|
|
14403
|
-
|
|
14539
|
+
onChange: event => {
|
|
14540
|
+
// The event is technically a TCustomEvent from async-select-input.d.ts or search-select-input.d.ts
|
|
14541
|
+
// where the value is of unknown type. Those TCustomEvent's are not exported, so this is a little bit of a hack
|
|
14542
|
+
// to use the TCustomEvent from a different select input, but we have to cast to unknown and then to our stores
|
|
14543
|
+
// filter value to get the right type.
|
|
14544
|
+
props.onUpdateFilter(event.target.value);
|
|
14404
14545
|
},
|
|
14546
|
+
errors: props.error ? {
|
|
14547
|
+
[props.error]: Boolean(props.error)
|
|
14548
|
+
} : null,
|
|
14405
14549
|
hasError: Boolean(props.error),
|
|
14406
14550
|
renderError: key => jsxRuntime.jsx("div", {
|
|
14407
14551
|
css: errorContainerStyles,
|
|
@@ -14414,7 +14558,6 @@ const StoresFilter = props => {
|
|
|
14414
14558
|
});
|
|
14415
14559
|
};
|
|
14416
14560
|
StoresFilter.displayName = 'StoresFilter';
|
|
14417
|
-
StoresFilter.propTypes = {};
|
|
14418
14561
|
|
|
14419
14562
|
function ownKeys$E(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14420
14563
|
function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$E(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$E(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
@@ -15069,7 +15212,7 @@ function createDateDefinitionsMap(intl) {
|
|
|
15069
15212
|
function createFilterTypeToDefinitionMap(intl, meta) {
|
|
15070
15213
|
return {
|
|
15071
15214
|
[FILTER_TYPES.in]: {
|
|
15072
|
-
filterComponent:
|
|
15215
|
+
filterComponent: createEnumFilter(_objectSpread$y(_objectSpread$y({}, meta), {}, {
|
|
15073
15216
|
isMulti: true,
|
|
15074
15217
|
isSearchable: true
|
|
15075
15218
|
})),
|
|
@@ -15080,7 +15223,7 @@ function createFilterTypeToDefinitionMap(intl, meta) {
|
|
|
15080
15223
|
validator: filter => validateMultiOptionEnum(filter, intl)
|
|
15081
15224
|
},
|
|
15082
15225
|
[FILTER_TYPES.equalTo]: {
|
|
15083
|
-
filterComponent:
|
|
15226
|
+
filterComponent: createEnumFilter(_objectSpread$y(_objectSpread$y({}, meta), {}, {
|
|
15084
15227
|
isSearchable: true
|
|
15085
15228
|
})),
|
|
15086
15229
|
tagComponent: EnumSingleFilterTag,
|
|
@@ -15090,7 +15233,7 @@ function createFilterTypeToDefinitionMap(intl, meta) {
|
|
|
15090
15233
|
validator: filter => validateSingleOptionEnum(filter, intl)
|
|
15091
15234
|
},
|
|
15092
15235
|
[FILTER_TYPES.missing]: {
|
|
15093
|
-
filterComponent:
|
|
15236
|
+
filterComponent: createEnumFilter(_objectSpread$y(_objectSpread$y({}, meta), {}, {
|
|
15094
15237
|
isSearchable: true
|
|
15095
15238
|
})),
|
|
15096
15239
|
tagComponent: EnumSingleFilterTag,
|
|
@@ -15100,7 +15243,7 @@ function createFilterTypeToDefinitionMap(intl, meta) {
|
|
|
15100
15243
|
validator: filter => validateMultiOptionEnum(filter, intl)
|
|
15101
15244
|
},
|
|
15102
15245
|
[FILTER_TYPES.missingIn]: {
|
|
15103
|
-
filterComponent:
|
|
15246
|
+
filterComponent: createEnumFilter(_objectSpread$y(_objectSpread$y({}, meta), {}, {
|
|
15104
15247
|
isMulti: true,
|
|
15105
15248
|
isSearchable: true
|
|
15106
15249
|
})),
|
|
@@ -15115,7 +15258,7 @@ function createFilterTypeToDefinitionMap(intl, meta) {
|
|
|
15115
15258
|
function createTypeOfChangeDefinitionsMap(intl, meta) {
|
|
15116
15259
|
return {
|
|
15117
15260
|
[FILTER_TYPES.equalTo]: {
|
|
15118
|
-
filterComponent:
|
|
15261
|
+
filterComponent: createEnumFilter(meta),
|
|
15119
15262
|
tagComponent: EnumSingleFilterTag,
|
|
15120
15263
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
15121
15264
|
canBeAppliedMultipleTimes: false,
|
|
@@ -15127,7 +15270,7 @@ function createTypeOfChangeDefinitionsMap(intl, meta) {
|
|
|
15127
15270
|
function createUserDefinitionsMap(intl, meta) {
|
|
15128
15271
|
return {
|
|
15129
15272
|
[FILTER_TYPES.equalTo]: {
|
|
15130
|
-
filterComponent:
|
|
15273
|
+
filterComponent: createEnumFilter(meta),
|
|
15131
15274
|
tagComponent: props => jsxRuntime.jsx(EnumSingleFilterLabelTag, _objectSpread$y(_objectSpread$y({}, props), {}, {
|
|
15132
15275
|
options: meta.options
|
|
15133
15276
|
})),
|
|
@@ -15141,7 +15284,7 @@ function createUserDefinitionsMap(intl, meta) {
|
|
|
15141
15284
|
function createToolOptionsDefinitionsMap(intl, meta) {
|
|
15142
15285
|
return {
|
|
15143
15286
|
[FILTER_TYPES.in]: {
|
|
15144
|
-
filterComponent:
|
|
15287
|
+
filterComponent: createEnumFilter(meta),
|
|
15145
15288
|
tagComponent: props => jsxRuntime.jsx(EnumSingleFilterLabelTag, _objectSpread$y(_objectSpread$y({}, props), {}, {
|
|
15146
15289
|
options: meta.options
|
|
15147
15290
|
})),
|
|
@@ -15155,19 +15298,21 @@ function createToolOptionsDefinitionsMap(intl, meta) {
|
|
|
15155
15298
|
function createResourceChangeDefinitionsMap(intl, meta) {
|
|
15156
15299
|
return {
|
|
15157
15300
|
[FILTER_TYPES.resourceChange]: {
|
|
15158
|
-
filterComponent: props => jsxRuntime.jsx(ResourceChangeFilter
|
|
15301
|
+
filterComponent: props => jsxRuntime.jsx(ResourceChangeFilter, _objectSpread$y(_objectSpread$y({}, props), {}, {
|
|
15302
|
+
resources: meta.resources
|
|
15303
|
+
})),
|
|
15159
15304
|
tagComponent: ResourceChangeFilterTag,
|
|
15160
15305
|
label: '',
|
|
15161
15306
|
isEmptyFilter: () => false,
|
|
15162
15307
|
canBeAppliedMultipleTimes: false,
|
|
15163
|
-
validator: filter =>
|
|
15308
|
+
validator: filter => validate(filter, intl)
|
|
15164
15309
|
}
|
|
15165
15310
|
};
|
|
15166
15311
|
}
|
|
15167
15312
|
function createApiClientDefinitionsMap(intl, meta) {
|
|
15168
15313
|
return {
|
|
15169
15314
|
[FILTER_TYPES.equalTo]: {
|
|
15170
|
-
filterComponent:
|
|
15315
|
+
filterComponent: createEnumFilter(meta),
|
|
15171
15316
|
tagComponent: props => jsxRuntime.jsx(EnumSingleFilterLabelTag, _objectSpread$y(_objectSpread$y({}, props), {}, {
|
|
15172
15317
|
options: meta.options
|
|
15173
15318
|
})),
|
|
@@ -15181,7 +15326,7 @@ function createApiClientDefinitionsMap(intl, meta) {
|
|
|
15181
15326
|
function createCustomerIdDefinitionsMap(intl) {
|
|
15182
15327
|
return {
|
|
15183
15328
|
[FILTER_TYPES.equalTo]: {
|
|
15184
|
-
filterComponent: props => jsxRuntime.jsx(
|
|
15329
|
+
filterComponent: props => jsxRuntime.jsx(TextFilter, _objectSpread$y({}, props)),
|
|
15185
15330
|
tagComponent: TextSingleFilterTag,
|
|
15186
15331
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
15187
15332
|
canBeAppliedMultipleTimes: false,
|
|
@@ -15193,7 +15338,7 @@ function createCustomerIdDefinitionsMap(intl) {
|
|
|
15193
15338
|
function createExcludePlatformChangesDefinitionsMap(intl) {
|
|
15194
15339
|
return {
|
|
15195
15340
|
[FILTER_TYPES.equalTo]: {
|
|
15196
|
-
filterComponent: props => jsxRuntime.jsx(
|
|
15341
|
+
filterComponent: props => jsxRuntime.jsx(TextFilter, _objectSpread$y({}, props)),
|
|
15197
15342
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
15198
15343
|
tagComponent: TextSingleFilterTag
|
|
15199
15344
|
}
|
|
@@ -15226,7 +15371,7 @@ function createBusinessUnitDefinitionsMap(intl) {
|
|
|
15226
15371
|
function createEntityIdDefinitionsMap(intl) {
|
|
15227
15372
|
return {
|
|
15228
15373
|
[FILTER_TYPES.equalTo]: {
|
|
15229
|
-
filterComponent: props => jsxRuntime.jsx(
|
|
15374
|
+
filterComponent: props => jsxRuntime.jsx(TextFilter, _objectSpread$y({}, props)),
|
|
15230
15375
|
tagComponent: TextSingleFilterTag,
|
|
15231
15376
|
label: intl.formatMessage(filterTypeTextMessages.equalTo),
|
|
15232
15377
|
canBeAppliedMultipleTimes: false,
|
|
@@ -15360,13 +15505,6 @@ var messages$m = reactIntl.defineMessages({
|
|
|
15360
15505
|
}
|
|
15361
15506
|
});
|
|
15362
15507
|
|
|
15363
|
-
/** All built-in and custom scalars, mapped to their actual values */
|
|
15364
|
-
let TTierLevels = /*#__PURE__*/function (TTierLevels) {
|
|
15365
|
-
TTierLevels["Basic"] = "BASIC";
|
|
15366
|
-
TTierLevels["Premium"] = "PREMIUM";
|
|
15367
|
-
return TTierLevels;
|
|
15368
|
-
}({});
|
|
15369
|
-
|
|
15370
15508
|
function ownKeys$x(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15371
15509
|
function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context8 = ownKeys$x(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context9 = ownKeys$x(Object(t))).call(_context9, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
15372
15510
|
const DisabledGroupTitleLabel = _ref => {
|
|
@@ -15374,7 +15512,7 @@ const DisabledGroupTitleLabel = _ref => {
|
|
|
15374
15512
|
groupTitleMessage = _ref.groupTitleMessage;
|
|
15375
15513
|
const intl = reactIntl.useIntl();
|
|
15376
15514
|
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
15377
|
-
children: group ===
|
|
15515
|
+
children: group === TierLevels.Basic ? jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
15378
15516
|
tone: "secondary",
|
|
15379
15517
|
intlMessage: groupTitleMessage,
|
|
15380
15518
|
fontWeight: "medium"
|
|
@@ -15403,20 +15541,20 @@ const optionsGrouping = _ref2 => {
|
|
|
15403
15541
|
const enabledOptions = _filterInstanceProperty__default["default"](options).call(options, option => (option === null || option === void 0 ? void 0 : option.disabledForBasic) !== true);
|
|
15404
15542
|
const groups = [{
|
|
15405
15543
|
label: jsxRuntime.jsx(DisabledGroupTitleLabel, {
|
|
15406
|
-
group:
|
|
15544
|
+
group: TierLevels.Basic,
|
|
15407
15545
|
groupTitleMessage: messages$w.basicFilterGroupTitle
|
|
15408
15546
|
}),
|
|
15409
|
-
value:
|
|
15547
|
+
value: TierLevels.Basic,
|
|
15410
15548
|
options: enabledOptions
|
|
15411
15549
|
}, {
|
|
15412
15550
|
label: jsxRuntime.jsx(DisabledGroupTitleLabel, {
|
|
15413
|
-
group:
|
|
15551
|
+
group: TierLevels.Premium,
|
|
15414
15552
|
groupTitleMessage: messages$w.premiumFilterGroupTitle
|
|
15415
15553
|
}),
|
|
15416
|
-
value:
|
|
15554
|
+
value: TierLevels.Premium,
|
|
15417
15555
|
options: disabledOptions
|
|
15418
15556
|
}];
|
|
15419
|
-
if (tier !==
|
|
15557
|
+
if (tier !== TierLevels.Premium && disabledOptions.length > 0) {
|
|
15420
15558
|
return groups;
|
|
15421
15559
|
}
|
|
15422
15560
|
return options;
|
|
@@ -15497,7 +15635,7 @@ const createFilterDefinitions = memoize__default["default"](_ref3 => {
|
|
|
15497
15635
|
[FILTER_OPTION_KEYS.DATE_RANGE]: {
|
|
15498
15636
|
label: intl.formatMessage(messages$w.createdAtFilter),
|
|
15499
15637
|
filterTypes: createDateDefinitionsMap(intl),
|
|
15500
|
-
isHidden: true
|
|
15638
|
+
isHidden: true // This filter needs to be revamped before it can be used in the filters dropdown again
|
|
15501
15639
|
},
|
|
15502
15640
|
[FILTER_OPTION_KEYS.CHANGE_TYPE]: {
|
|
15503
15641
|
label: intl.formatMessage(messages$w.changeTypeFilter),
|
|
@@ -15736,21 +15874,6 @@ const fieldFiltersStyles = {
|
|
|
15736
15874
|
filterButtons: /*#__PURE__*/react$1.css("display:flex;&>*+*{margin:0 0 0 ", designSystem.designTokens.spacingS, "!important;}" + ("" ), "" )
|
|
15737
15875
|
};
|
|
15738
15876
|
|
|
15739
|
-
// add a lot more styles here
|
|
15740
|
-
|
|
15741
|
-
/**
|
|
15742
|
-
* This component handles rendering all the filters for one field. Additionally,
|
|
15743
|
-
* it wraps each filter in a dropdown to select the type of filter, which is
|
|
15744
|
-
* populated by the options in the `filterOptions` prop.
|
|
15745
|
-
*/
|
|
15746
|
-
|
|
15747
|
-
/**
|
|
15748
|
-
* This function can be removed once the FilterComponent API
|
|
15749
|
-
* is homogenized. Currently, a `TextSingleFilter` passes
|
|
15750
|
-
* the event within its `onChange` up whereas others (Date and Selects) pass the value directly.
|
|
15751
|
-
* This logic extracts the value based on the presence of an event.
|
|
15752
|
-
*/
|
|
15753
|
-
const extractValueFromEvent = eventOrValue => eventOrValue && eventOrValue.target && eventOrValue.target.value !== undefined ? eventOrValue.target.value : eventOrValue;
|
|
15754
15877
|
const FieldFilters = _ref => {
|
|
15755
15878
|
let _ref$filters = _ref.filters,
|
|
15756
15879
|
filters = _ref$filters === void 0 ? [] : _ref$filters,
|
|
@@ -15820,11 +15943,11 @@ const FieldFilters = _ref => {
|
|
|
15820
15943
|
}), jsxRuntime.jsx(FilterComponent, {
|
|
15821
15944
|
value: filter.value,
|
|
15822
15945
|
error: filter.error,
|
|
15823
|
-
onUpdateFilter:
|
|
15946
|
+
onUpdateFilter: value => {
|
|
15824
15947
|
onUpdateFilter({
|
|
15825
15948
|
filter: {
|
|
15826
15949
|
type: filter.type,
|
|
15827
|
-
value:
|
|
15950
|
+
value: value
|
|
15828
15951
|
},
|
|
15829
15952
|
index
|
|
15830
15953
|
});
|
|
@@ -16051,7 +16174,7 @@ const Filters = _ref4 => {
|
|
|
16051
16174
|
const intl = reactIntl.useIntl();
|
|
16052
16175
|
const _useVersionTier = useVersionTier(),
|
|
16053
16176
|
tier = _useVersionTier.tier;
|
|
16054
|
-
const isPremiumFiltersDisabled = tier ===
|
|
16177
|
+
const isPremiumFiltersDisabled = tier === TierLevels.Basic;
|
|
16055
16178
|
const isLayoutRedesignEnabled = useAlLayoutRedesign();
|
|
16056
16179
|
if (!isEditMode && _Object$keys__default["default"](filteredFields).length === 0) {
|
|
16057
16180
|
return null;
|
|
@@ -16394,7 +16517,7 @@ function isEmptyFilter(_ref) {
|
|
|
16394
16517
|
if (type === FILTER_TYPES.range) return isEmpty({
|
|
16395
16518
|
value
|
|
16396
16519
|
});
|
|
16397
|
-
return
|
|
16520
|
+
return validateRequiredFilter({
|
|
16398
16521
|
value
|
|
16399
16522
|
});
|
|
16400
16523
|
}
|
|
@@ -17241,7 +17364,7 @@ const displayInternalFilterToggle = _ref2 => {
|
|
|
17241
17364
|
var _context;
|
|
17242
17365
|
let inContextEntity = _ref2.inContextEntity,
|
|
17243
17366
|
tier = _ref2.tier;
|
|
17244
|
-
if (tier !==
|
|
17367
|
+
if (tier !== TierLevels.Premium) return false;
|
|
17245
17368
|
if (!inContextEntity) return true;
|
|
17246
17369
|
const PRODUCT = RESOURCE_TYPE.PRODUCT,
|
|
17247
17370
|
DISCOUNT_CODE = RESOURCE_TYPE.DISCOUNT_CODE,
|
|
@@ -17450,24 +17573,6 @@ const SearchView = props => {
|
|
|
17450
17573
|
onSettingsChange: (action, nextValue) => {
|
|
17451
17574
|
tableSettingsChangeHandler[action](nextValue);
|
|
17452
17575
|
},
|
|
17453
|
-
displaySettings: {
|
|
17454
|
-
disableDisplaySettings: hasNoResults,
|
|
17455
|
-
isCondensed: _valuesInstanceProperty__default["default"](formik$1).isCondensed,
|
|
17456
|
-
isWrappingText: _valuesInstanceProperty__default["default"](formik$1).isWrappingText,
|
|
17457
|
-
primaryButton: jsxRuntime.jsx(uiKit.PrimaryButton, {
|
|
17458
|
-
label: intl.formatMessage(messages$g.saveSettingsButton),
|
|
17459
|
-
onClick: e => {
|
|
17460
|
-
e.stopPropagation();
|
|
17461
|
-
formik$1.handleSubmit(e);
|
|
17462
|
-
},
|
|
17463
|
-
isDisabled: !formik$1.dirty
|
|
17464
|
-
}),
|
|
17465
|
-
secondaryButton: jsxRuntime.jsx(uiKit.SecondaryButton, {
|
|
17466
|
-
label: intl.formatMessage(messages$g.cancelButton),
|
|
17467
|
-
onClick: formik$1.handleReset,
|
|
17468
|
-
isDisabled: !formik$1.dirty
|
|
17469
|
-
})
|
|
17470
|
-
},
|
|
17471
17576
|
children: jsxRuntime.jsxs("div", {
|
|
17472
17577
|
css: searchViewStyles.searchView,
|
|
17473
17578
|
children: [props.areFiltersVisible ? jsxRuntime.jsx("section", {
|
|
@@ -17506,6 +17611,24 @@ const SearchView = props => {
|
|
|
17506
17611
|
searchInputPlaceholder = _ref7.searchInputPlaceholder;
|
|
17507
17612
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
17508
17613
|
children: [jsxRuntime.jsx(uiKit.DataTableManager, {
|
|
17614
|
+
displaySettings: {
|
|
17615
|
+
disableDisplaySettings: hasNoResults,
|
|
17616
|
+
isCondensed: _valuesInstanceProperty__default["default"](formik$1).isCondensed,
|
|
17617
|
+
isWrappingText: _valuesInstanceProperty__default["default"](formik$1).isWrappingText,
|
|
17618
|
+
primaryButton: jsxRuntime.jsx(uiKit.PrimaryButton, {
|
|
17619
|
+
label: intl.formatMessage(messages$g.saveSettingsButton),
|
|
17620
|
+
onClick: e => {
|
|
17621
|
+
e.stopPropagation();
|
|
17622
|
+
formik$1.handleSubmit(e);
|
|
17623
|
+
},
|
|
17624
|
+
isDisabled: !formik$1.dirty
|
|
17625
|
+
}),
|
|
17626
|
+
secondaryButton: jsxRuntime.jsx(uiKit.SecondaryButton, {
|
|
17627
|
+
label: intl.formatMessage(messages$g.cancelButton),
|
|
17628
|
+
onClick: formik$1.handleReset,
|
|
17629
|
+
isDisabled: !formik$1.dirty
|
|
17630
|
+
})
|
|
17631
|
+
},
|
|
17509
17632
|
columnManager: {
|
|
17510
17633
|
disableColumnManager: hasNoResults,
|
|
17511
17634
|
visibleColumnKeys: _valuesInstanceProperty__default["default"](formik$1).visibleColumnKeys,
|
|
@@ -18251,8 +18374,8 @@ var messages$9 = reactIntl.defineMessages({
|
|
|
18251
18374
|
});
|
|
18252
18375
|
|
|
18253
18376
|
const TIER_LABEL_MAP = {
|
|
18254
|
-
[
|
|
18255
|
-
[
|
|
18377
|
+
[TierLevels.Basic]: messages$9.basicVersionLabel,
|
|
18378
|
+
[TierLevels.Premium]: messages$9.premiumVersionLabel
|
|
18256
18379
|
};
|
|
18257
18380
|
|
|
18258
18381
|
/*
|
|
@@ -18276,7 +18399,7 @@ const VersionTier = () => {
|
|
|
18276
18399
|
if (!hasFoundData) {
|
|
18277
18400
|
return null;
|
|
18278
18401
|
}
|
|
18279
|
-
const isBasicTier = tier ===
|
|
18402
|
+
const isBasicTier = tier === TierLevels.Basic;
|
|
18280
18403
|
const isBasicInlineScale = isBasicTier && isLayoutRedesignEnabled;
|
|
18281
18404
|
return jsxRuntime.jsx(uiKit.Spacings.Inline, {
|
|
18282
18405
|
scale: isBasicInlineScale ? 's' : 'm',
|
|
@@ -18975,16 +19098,6 @@ let ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
18975
19098
|
ErrorBoundary.displayName = 'ErrorBoundary';
|
|
18976
19099
|
ErrorBoundary.propTypes = {};
|
|
18977
19100
|
|
|
18978
|
-
const BusinessUnitCell = props => {
|
|
18979
|
-
var _props$businessUnit;
|
|
18980
|
-
if (!props.businessUnit || !((_props$businessUnit = props.businessUnit) !== null && _props$businessUnit !== void 0 && _props$businessUnit.key)) {
|
|
18981
|
-
return jsxRuntime.jsx(NoValueFallback, {});
|
|
18982
|
-
}
|
|
18983
|
-
return props.businessUnit.key;
|
|
18984
|
-
};
|
|
18985
|
-
BusinessUnitCell.displayName = 'BusinessUnitCell';
|
|
18986
|
-
BusinessUnitCell.propTypes = {};
|
|
18987
|
-
|
|
18988
19101
|
const stampTones = {
|
|
18989
19102
|
critical: 'critical',
|
|
18990
19103
|
positive: 'positive',
|
|
@@ -19012,6 +19125,19 @@ const ActionCell = props => {
|
|
|
19012
19125
|
ActionCell.displayName = 'ActionCell';
|
|
19013
19126
|
ActionCell.propTypes = {};
|
|
19014
19127
|
|
|
19128
|
+
const BusinessUnitCell = _ref => {
|
|
19129
|
+
let businessUnit = _ref.businessUnit;
|
|
19130
|
+
if (!businessUnit || !(businessUnit !== null && businessUnit !== void 0 && businessUnit.key)) {
|
|
19131
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19132
|
+
children: jsxRuntime.jsx(NoValueFallback, {})
|
|
19133
|
+
});
|
|
19134
|
+
}
|
|
19135
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
19136
|
+
children: businessUnit.key
|
|
19137
|
+
});
|
|
19138
|
+
};
|
|
19139
|
+
BusinessUnitCell.displayName = 'BusinessUnitCell';
|
|
19140
|
+
|
|
19015
19141
|
function ownKeys$k(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19016
19142
|
function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$k(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
19017
19143
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct__default["default"](o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
@@ -19297,11 +19423,13 @@ const ChangesCell = _ref => {
|
|
|
19297
19423
|
ChangesCell.propTypes = {};
|
|
19298
19424
|
|
|
19299
19425
|
const LastModifiedCell = props => {
|
|
19426
|
+
var _props$isWrappingText;
|
|
19427
|
+
const isWrappingText = (_props$isWrappingText = props.isWrappingText) !== null && _props$isWrappingText !== void 0 ? _props$isWrappingText : false;
|
|
19300
19428
|
return jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
19301
19429
|
scale: "xs",
|
|
19302
19430
|
alignItems: "stretch",
|
|
19303
19431
|
children: jsxRuntime.jsx("div", {
|
|
19304
|
-
css: /*#__PURE__*/react$1.css(
|
|
19432
|
+
css: /*#__PURE__*/react$1.css(isWrappingText ? 'overflow: hidden; text-overflow: ellipsis; white-space: nowrap;' : 'white-space: normal;', ";" + ("" ), "" ),
|
|
19305
19433
|
children: props.createdAt ? jsxRuntime.jsx(FormattedDateTime, {
|
|
19306
19434
|
type: "datetime",
|
|
19307
19435
|
value: props.createdAt
|
|
@@ -19311,82 +19439,291 @@ const LastModifiedCell = props => {
|
|
|
19311
19439
|
};
|
|
19312
19440
|
LastModifiedCell.displayName = 'LastModifiedCell';
|
|
19313
19441
|
|
|
19314
|
-
|
|
19315
|
-
|
|
19316
|
-
|
|
19317
|
-
DeletedResource.displayName = 'DeletedResource';
|
|
19318
|
-
var _ref2$1 = {
|
|
19319
|
-
name: "1wbfu2h",
|
|
19320
|
-
styles: "white-space:pre-line;overflow-wrap:anywhere"
|
|
19321
|
-
} ;
|
|
19322
|
-
var _ref3 = {
|
|
19323
|
-
name: "db5oe9",
|
|
19324
|
-
styles: "width:100%;overflow:hidden;& span{width:100%;}& span span{width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"
|
|
19442
|
+
var _ref$3 = {
|
|
19443
|
+
name: "um674b",
|
|
19444
|
+
styles: "overflow:hidden;& div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"
|
|
19325
19445
|
} ;
|
|
19326
|
-
const
|
|
19327
|
-
var
|
|
19328
|
-
let
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
|
|
19337
|
-
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
|
|
19446
|
+
const ModifiedByCellContent = _ref2 => {
|
|
19447
|
+
var _avatarIcon$type;
|
|
19448
|
+
let avatarColor = _ref2.avatarColor,
|
|
19449
|
+
avatarIcon = _ref2.avatarIcon,
|
|
19450
|
+
firstName = _ref2.firstName,
|
|
19451
|
+
lastName = _ref2.lastName,
|
|
19452
|
+
_ref2$primaryText = _ref2.primaryText,
|
|
19453
|
+
primaryText = _ref2$primaryText === void 0 ? '' : _ref2$primaryText,
|
|
19454
|
+
_ref2$isPrimaryTextFa = _ref2.isPrimaryTextFallback,
|
|
19455
|
+
isPrimaryTextFallback = _ref2$isPrimaryTextFa === void 0 ? false : _ref2$isPrimaryTextFa,
|
|
19456
|
+
_ref2$secondaryText = _ref2.secondaryText,
|
|
19457
|
+
secondaryText = _ref2$secondaryText === void 0 ? '' : _ref2$secondaryText,
|
|
19458
|
+
_ref2$tertiaryText = _ref2.tertiaryText,
|
|
19459
|
+
tertiaryText = _ref2$tertiaryText === void 0 ? '' : _ref2$tertiaryText,
|
|
19460
|
+
_ref2$toolTipTitle = _ref2.toolTipTitle,
|
|
19461
|
+
toolTipTitle = _ref2$toolTipTitle === void 0 ? '' : _ref2$toolTipTitle,
|
|
19462
|
+
_ref2$isWrappingText = _ref2.isWrappingText,
|
|
19463
|
+
isWrappingText = _ref2$isWrappingText === void 0 ? false : _ref2$isWrappingText;
|
|
19464
|
+
const avatarIconTypeName = typeof (avatarIcon === null || avatarIcon === void 0 ? void 0 : avatarIcon.type) === 'string' ? avatarIcon.type : avatarIcon === null || avatarIcon === void 0 || (_avatarIcon$type = avatarIcon.type) === null || _avatarIcon$type === void 0 ? void 0 : _avatarIcon$type.name;
|
|
19465
|
+
return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
19466
|
+
children: [jsxRuntime.jsx("div", {
|
|
19467
|
+
style: {
|
|
19468
|
+
marginRight: '4px'
|
|
19469
|
+
},
|
|
19470
|
+
children: jsxRuntime.jsx(uiKit.Tooltip, {
|
|
19471
|
+
closeAfter: 0,
|
|
19472
|
+
showAfter: 200,
|
|
19473
|
+
placement: "top-start",
|
|
19474
|
+
title: toolTipTitle,
|
|
19475
|
+
off: !toolTipTitle,
|
|
19476
|
+
children: jsxRuntime.jsx(uiKit.Avatar, {
|
|
19477
|
+
gravatarHash: "",
|
|
19478
|
+
color: avatarColor,
|
|
19479
|
+
size: "s",
|
|
19480
|
+
firstName: firstName !== null && firstName !== void 0 ? firstName : '',
|
|
19481
|
+
lastName: lastName !== null && lastName !== void 0 ? lastName : '',
|
|
19482
|
+
icon: avatarIcon,
|
|
19483
|
+
"data-testid": "modified-by-cell-".concat(avatarIconTypeName)
|
|
19484
|
+
})
|
|
19341
19485
|
})
|
|
19342
|
-
})
|
|
19343
|
-
|
|
19344
|
-
|
|
19345
|
-
|
|
19346
|
-
|
|
19347
|
-
|
|
19348
|
-
|
|
19349
|
-
|
|
19486
|
+
}), jsxRuntime.jsxs("div", {
|
|
19487
|
+
css: isWrappingText ? _ref$3 : null,
|
|
19488
|
+
children: [jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
19489
|
+
tone: isPrimaryTextFallback ? 'tertiary' : undefined,
|
|
19490
|
+
children: primaryText
|
|
19491
|
+
}), jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
19492
|
+
children: secondaryText
|
|
19493
|
+
}), jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
19494
|
+
tone: "secondary",
|
|
19495
|
+
children: tertiaryText
|
|
19496
|
+
})]
|
|
19497
|
+
})]
|
|
19498
|
+
});
|
|
19350
19499
|
};
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19354
|
-
|
|
19355
|
-
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19372
|
-
|
|
19373
|
-
|
|
19374
|
-
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
|
|
19379
|
-
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
|
|
19383
|
-
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
|
|
19387
|
-
|
|
19388
|
-
|
|
19389
|
-
|
|
19500
|
+
ModifiedByCellContent.displayName = 'ModifiedByCellContent';
|
|
19501
|
+
|
|
19502
|
+
var messages$5 = reactIntl.defineMessages({
|
|
19503
|
+
noApiClientLabel: {
|
|
19504
|
+
id: 'ChangeHistory.modifiedBy.noApiClientLabel',
|
|
19505
|
+
description: 'Text for no api client label',
|
|
19506
|
+
defaultMessage: 'API client not available'
|
|
19507
|
+
},
|
|
19508
|
+
modifiedBySystem: {
|
|
19509
|
+
id: 'ChangeHistory.modifiedBy.modifiedBySystem',
|
|
19510
|
+
description: 'Text for system change',
|
|
19511
|
+
defaultMessage: 'System'
|
|
19512
|
+
},
|
|
19513
|
+
avatarPlatformInitiatedChange: {
|
|
19514
|
+
id: 'ChangeHistory.modifiedBy.avatarPlatformInitiatedChange',
|
|
19515
|
+
description: 'Text for platform change',
|
|
19516
|
+
defaultMessage: 'Platform initiated'
|
|
19517
|
+
},
|
|
19518
|
+
externalUserLabel: {
|
|
19519
|
+
id: 'ChangeHistory.modifiedBy.externalUserLabel',
|
|
19520
|
+
description: 'Label when the user to display is from externalUserId',
|
|
19521
|
+
defaultMessage: 'External'
|
|
19522
|
+
},
|
|
19523
|
+
pendingUser: {
|
|
19524
|
+
id: 'ChangeHistory.modifiedBy.pendingUser',
|
|
19525
|
+
description: 'Label when there is no user attached to a change',
|
|
19526
|
+
defaultMessage: 'Pending user'
|
|
19527
|
+
},
|
|
19528
|
+
noCustomerLabel: {
|
|
19529
|
+
id: 'ChangeHistory.modifiedBy.noCustomerLabel',
|
|
19530
|
+
description: 'Text for no customer label',
|
|
19531
|
+
defaultMessage: 'Customer not available'
|
|
19532
|
+
},
|
|
19533
|
+
customerLabel: {
|
|
19534
|
+
id: 'ChangeHistory.modifiedBy.customerLabel',
|
|
19535
|
+
description: 'Label for customer avatar tooltip',
|
|
19536
|
+
defaultMessage: 'Customer'
|
|
19537
|
+
},
|
|
19538
|
+
associateLabel: {
|
|
19539
|
+
id: 'ChangeHistory.modifiedBy.associateLabel',
|
|
19540
|
+
description: 'Label for associate avatar tooltip',
|
|
19541
|
+
defaultMessage: 'Associate'
|
|
19542
|
+
},
|
|
19543
|
+
avatarMCUserLabel: {
|
|
19544
|
+
id: 'ChangeHistory.modifiedBy.avatarMCUserLabel',
|
|
19545
|
+
description: 'Label for merchant center user avatar tooltip',
|
|
19546
|
+
defaultMessage: 'Merchant center user'
|
|
19547
|
+
},
|
|
19548
|
+
avatarApiIntegration: {
|
|
19549
|
+
id: 'ChangeHistory.modifiedBy.avatarApiIntegration',
|
|
19550
|
+
description: 'Label for api integration user avatar tooltip',
|
|
19551
|
+
defaultMessage: 'API integration'
|
|
19552
|
+
},
|
|
19553
|
+
anonymousLabel: messages$w.anonymousLabel
|
|
19554
|
+
});
|
|
19555
|
+
|
|
19556
|
+
const ModifiedByCell = _ref => {
|
|
19557
|
+
let id = _ref.id,
|
|
19558
|
+
isPlatformClient = _ref.isPlatformClient,
|
|
19559
|
+
type = _ref.type,
|
|
19560
|
+
member = _ref.member,
|
|
19561
|
+
clientId = _ref.clientId,
|
|
19562
|
+
apiClients = _ref.apiClients,
|
|
19563
|
+
customerId = _ref.customerId,
|
|
19564
|
+
anonymousId = _ref.anonymousId,
|
|
19565
|
+
customer = _ref.customer,
|
|
19566
|
+
isWrappingText = _ref.isWrappingText;
|
|
19567
|
+
const _useIntl = reactIntl.useIntl(),
|
|
19568
|
+
formatMessage = _useIntl.formatMessage;
|
|
19569
|
+
const apiClient = clientId && apiClients !== null && apiClients !== void 0 && apiClients[clientId] ? apiClients[clientId] : formatMessage(messages$5.noApiClientLabel);
|
|
19570
|
+
switch (type) {
|
|
19571
|
+
case MODIFIED_BY_TYPES.EXTERNAL_USER:
|
|
19572
|
+
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19573
|
+
avatarColor: AVATAR_COLORS.PURPLE,
|
|
19574
|
+
avatarIcon: jsxRuntime.jsx(uiKit.CodeViewIcon, {}),
|
|
19575
|
+
primaryText: id || '',
|
|
19576
|
+
secondaryText: apiClient,
|
|
19577
|
+
tertiaryText: formatMessage(messages$5.externalUserLabel),
|
|
19578
|
+
toolTipTitle: formatMessage(messages$5.avatarApiIntegration),
|
|
19579
|
+
isWrappingText: isWrappingText
|
|
19580
|
+
});
|
|
19581
|
+
case MODIFIED_BY_TYPES.USER:
|
|
19582
|
+
{
|
|
19583
|
+
if (!isPlatformClient && !customerId && !anonymousId) {
|
|
19584
|
+
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19585
|
+
avatarColor: AVATAR_COLORS.PURPLE,
|
|
19586
|
+
avatarIcon: jsxRuntime.jsx(uiKit.CodeViewIcon, {}),
|
|
19587
|
+
primaryText: apiClient,
|
|
19588
|
+
toolTipTitle: formatMessage(messages$5.avatarApiIntegration),
|
|
19589
|
+
isWrappingText: isWrappingText
|
|
19590
|
+
});
|
|
19591
|
+
}
|
|
19592
|
+
if (id) {
|
|
19593
|
+
var _context, _context2;
|
|
19594
|
+
const formattedName = _trimInstanceProperty__default["default"](_context = _filterInstanceProperty__default["default"](_context2 = [member === null || member === void 0 ? void 0 : member.firstName, member === null || member === void 0 ? void 0 : member.lastName]).call(_context2, Boolean) // Still returns the first or last name if the other is falsy
|
|
19595
|
+
.join(' ')).call(_context);
|
|
19596
|
+
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19597
|
+
avatarColor: AVATAR_COLORS.TURQUOISE,
|
|
19598
|
+
firstName: member === null || member === void 0 ? void 0 : member.firstName,
|
|
19599
|
+
lastName: member === null || member === void 0 ? void 0 : member.lastName,
|
|
19600
|
+
avatarIcon: !formattedName ? jsxRuntime.jsx(uiKit.UserLinearIcon, {}) : undefined,
|
|
19601
|
+
primaryText: formattedName || formatMessage(messages$5.pendingUser),
|
|
19602
|
+
isPrimaryTextFallback: !formattedName,
|
|
19603
|
+
toolTipTitle: formatMessage(messages$5.avatarMCUserLabel),
|
|
19604
|
+
isWrappingText: isWrappingText
|
|
19605
|
+
});
|
|
19606
|
+
}
|
|
19607
|
+
if (customerId || anonymousId) {
|
|
19608
|
+
const customerInfo = customer || jsxRuntime.jsx(NoValueFallback, {});
|
|
19609
|
+
const customerRecord = anonymousId ? formatMessage(messages$5.anonymousLabel) : customerInfo;
|
|
19610
|
+
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19611
|
+
avatarColor: AVATAR_COLORS.PURPLE,
|
|
19612
|
+
avatarIcon: jsxRuntime.jsx(uiKit.CodeViewIcon, {}),
|
|
19613
|
+
primaryText: customerRecord,
|
|
19614
|
+
isPrimaryTextFallback: !customer,
|
|
19615
|
+
secondaryText: apiClient,
|
|
19616
|
+
tertiaryText: formatMessage(messages$5.customerLabel),
|
|
19617
|
+
toolTipTitle: formatMessage(messages$5.avatarApiIntegration),
|
|
19618
|
+
isWrappingText: isWrappingText
|
|
19619
|
+
});
|
|
19620
|
+
}
|
|
19621
|
+
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19622
|
+
avatarColor: AVATAR_COLORS.ACCENT,
|
|
19623
|
+
avatarIcon: jsxRuntime.jsx(uiKit.SwitcherIcon, {}),
|
|
19624
|
+
primaryText: formatMessage(messages$5.modifiedBySystem),
|
|
19625
|
+
toolTipTitle: formatMessage(messages$5.avatarPlatformInitiatedChange),
|
|
19626
|
+
isWrappingText: isWrappingText
|
|
19627
|
+
});
|
|
19628
|
+
}
|
|
19629
|
+
case MODIFIED_BY_TYPES.ASSOCIATE:
|
|
19630
|
+
{
|
|
19631
|
+
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19632
|
+
avatarColor: AVATAR_COLORS.PURPLE,
|
|
19633
|
+
avatarIcon: jsxRuntime.jsx(uiKit.CodeViewIcon, {}),
|
|
19634
|
+
primaryText: apiClient,
|
|
19635
|
+
tertiaryText: formatMessage(messages$5.associateLabel),
|
|
19636
|
+
toolTipTitle: formatMessage(messages$5.avatarApiIntegration),
|
|
19637
|
+
isWrappingText: isWrappingText
|
|
19638
|
+
});
|
|
19639
|
+
}
|
|
19640
|
+
default:
|
|
19641
|
+
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19642
|
+
avatarColor: AVATAR_COLORS.PURPLE,
|
|
19643
|
+
avatarIcon: jsxRuntime.jsx(uiKit.CodeViewIcon, {}),
|
|
19644
|
+
primaryText: jsxRuntime.jsx(NoValueFallback, {}),
|
|
19645
|
+
isWrappingText: isWrappingText
|
|
19646
|
+
});
|
|
19647
|
+
}
|
|
19648
|
+
};
|
|
19649
|
+
ModifiedByCell.displayName = 'ModifiedByCell';
|
|
19650
|
+
|
|
19651
|
+
function ownKeys$h(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19652
|
+
function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$h(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$h(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
19653
|
+
const DeletedResource = () => jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$h({}, messages$V.deletedResource));
|
|
19654
|
+
DeletedResource.displayName = 'DeletedResource';
|
|
19655
|
+
var _ref2$1 = {
|
|
19656
|
+
name: "1wbfu2h",
|
|
19657
|
+
styles: "white-space:pre-line;overflow-wrap:anywhere"
|
|
19658
|
+
} ;
|
|
19659
|
+
var _ref3 = {
|
|
19660
|
+
name: "db5oe9",
|
|
19661
|
+
styles: "width:100%;overflow:hidden;& span{width:100%;}& span span{width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"
|
|
19662
|
+
} ;
|
|
19663
|
+
const ResourceInfo = _ref4 => {
|
|
19664
|
+
var _context;
|
|
19665
|
+
let resourceType = _ref4.resourceType,
|
|
19666
|
+
label = _ref4.label,
|
|
19667
|
+
onButtonClick = _ref4.onButtonClick,
|
|
19668
|
+
isWrappingText = _ref4.isWrappingText;
|
|
19669
|
+
if (_includesInstanceProperty__default["default"](_context = [RESOURCE_TYPE.EXTENSION, RESOURCE_TYPE.SUBSCRIPTION]).call(_context, resourceType)) return label;
|
|
19670
|
+
return (
|
|
19671
|
+
// custom css to allow for column truncation (display text preview option w/in table layout settings)
|
|
19672
|
+
jsxRuntime.jsx("div", {
|
|
19673
|
+
css: isWrappingText ? _ref3 : _ref2$1,
|
|
19674
|
+
children: jsxRuntime.jsx(uiKit.FlatButton, {
|
|
19675
|
+
onClick: onButtonClick,
|
|
19676
|
+
label: label,
|
|
19677
|
+
as: "span"
|
|
19678
|
+
})
|
|
19679
|
+
})
|
|
19680
|
+
);
|
|
19681
|
+
};
|
|
19682
|
+
ResourceInfo.propTypes = {};
|
|
19683
|
+
ResourceInfo.displayName = 'ResourceInfo';
|
|
19684
|
+
const isFilterBySameId = (message, searchText) => {
|
|
19685
|
+
var _message$resource;
|
|
19686
|
+
return ((_message$resource = message.resource) === null || _message$resource === void 0 ? void 0 : _message$resource.id) === searchText;
|
|
19687
|
+
};
|
|
19688
|
+
const getResourceLabel = (resourceType, resource, messageLabel, language, languages, intl) => {
|
|
19689
|
+
switch (resourceType) {
|
|
19690
|
+
case RESOURCE_TYPE_NAME.ASSOCIATE_ROLE:
|
|
19691
|
+
return (messageLabel === null || messageLabel === void 0 ? void 0 : messageLabel.associateRoleKey) || jsxRuntime.jsx(NoValueFallback, {});
|
|
19692
|
+
case RESOURCE_TYPE_NAME.BUSINESS_UNIT:
|
|
19693
|
+
return (messageLabel === null || messageLabel === void 0 ? void 0 : messageLabel.businessUnitKey) || jsxRuntime.jsx(NoValueFallback, {});
|
|
19694
|
+
case RESOURCE_TYPE_NAME.PRODUCT:
|
|
19695
|
+
{
|
|
19696
|
+
var _context2;
|
|
19697
|
+
const localizedName = localize({
|
|
19698
|
+
obj: messageLabel,
|
|
19699
|
+
key: 'name',
|
|
19700
|
+
language,
|
|
19701
|
+
fallbackOrder: languages
|
|
19702
|
+
});
|
|
19703
|
+
const label = localizedName.length > 100 ? localize({
|
|
19704
|
+
obj: resource,
|
|
19705
|
+
key: 'slug',
|
|
19706
|
+
language,
|
|
19707
|
+
fallbackOrder: languages
|
|
19708
|
+
}) : _concatInstanceProperty__default["default"](_context2 = "".concat(localizedName, " - ")).call(_context2, localize({
|
|
19709
|
+
obj: messageLabel,
|
|
19710
|
+
key: 'slug',
|
|
19711
|
+
language,
|
|
19712
|
+
fallbackOrder: languages
|
|
19713
|
+
}));
|
|
19714
|
+
return label === null || label === void 0 ? void 0 : _trimInstanceProperty__default["default"](label).call(label);
|
|
19715
|
+
}
|
|
19716
|
+
case RESOURCE_TYPE_NAME.CATEGORY:
|
|
19717
|
+
case RESOURCE_TYPE_NAME.CART_DISCOUNT:
|
|
19718
|
+
case RESOURCE_TYPE_NAME.PRODUCT_DISCOUNT:
|
|
19719
|
+
case RESOURCE_TYPE_NAME.PRODUCT_SELECTION:
|
|
19720
|
+
case RESOURCE_TYPE_NAME.STORE:
|
|
19721
|
+
return localize({
|
|
19722
|
+
obj: messageLabel,
|
|
19723
|
+
key: 'value',
|
|
19724
|
+
language,
|
|
19725
|
+
fallbackOrder: languages,
|
|
19726
|
+
fallback: jsxRuntime.jsx(NoValueFallback, {})
|
|
19390
19727
|
});
|
|
19391
19728
|
case RESOURCE_TYPE_NAME.ORDER:
|
|
19392
19729
|
return messageLabel !== null && messageLabel !== void 0 && messageLabel.customerEmail ? intl.formatMessage(messages$V.orderResource, {
|
|
@@ -19463,7 +19800,7 @@ const getResourceLabel = (resourceType, resource, messageLabel, language, langua
|
|
|
19463
19800
|
}
|
|
19464
19801
|
};
|
|
19465
19802
|
const Portal = props => /*#__PURE__*/ReactDOM__default["default"].createPortal(props.children, document.body);
|
|
19466
|
-
var _ref$
|
|
19803
|
+
var _ref$2 = {
|
|
19467
19804
|
name: "bz0pdi",
|
|
19468
19805
|
styles: "& button{white-space:normal;}"
|
|
19469
19806
|
} ;
|
|
@@ -19495,7 +19832,7 @@ const ResourceCell = props => {
|
|
|
19495
19832
|
justifyContent: "space-between",
|
|
19496
19833
|
alignItems: "center",
|
|
19497
19834
|
children: [(props === null || props === void 0 || (_props$message = props.message) === null || _props$message === void 0 ? void 0 : _props$message.type) === TYPE_OF_CHANGE.DELETE ? jsxRuntime.jsx("div", {
|
|
19498
|
-
css: _ref$
|
|
19835
|
+
css: _ref$2,
|
|
19499
19836
|
children: jsxRuntime.jsx(uiKit.FlatButton, {
|
|
19500
19837
|
label: label,
|
|
19501
19838
|
isDisabled: true
|
|
@@ -19546,7 +19883,8 @@ ResourceCell.displayName = 'ResourceCell';
|
|
|
19546
19883
|
ResourceCell.propTypes = {};
|
|
19547
19884
|
|
|
19548
19885
|
const StoreCell = props => {
|
|
19549
|
-
var _props$stores, _props$stores2;
|
|
19886
|
+
var _props$isWrappingText, _props$stores, _props$stores2;
|
|
19887
|
+
const isWrappingText = (_props$isWrappingText = props.isWrappingText) !== null && _props$isWrappingText !== void 0 ? _props$isWrappingText : false;
|
|
19550
19888
|
const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => {
|
|
19551
19889
|
var _applicationContext$p;
|
|
19552
19890
|
return {
|
|
@@ -19562,22 +19900,21 @@ const StoreCell = props => {
|
|
|
19562
19900
|
return jsxRuntime.jsx(uiKit.Spacings.Stack, {
|
|
19563
19901
|
scale: "s",
|
|
19564
19902
|
children: (_props$stores2 = props.stores) === null || _props$stores2 === void 0 ? void 0 : _mapInstanceProperty__default["default"](_props$stores2).call(_props$stores2, store => jsxRuntime.jsx("div", {
|
|
19565
|
-
css: /*#__PURE__*/react$1.css("font-size:", designSystem.designTokens.fontSize20, ";white-space:pre-wrap;",
|
|
19903
|
+
css: /*#__PURE__*/react$1.css("font-size:", designSystem.designTokens.fontSize20, ";white-space:pre-wrap;", isWrappingText &&
|
|
19566
19904
|
// custom css to allow for column truncation (display text preview option w/in table layout settings)
|
|
19567
19905
|
'overflow: hidden; text-overflow: ellipsis; white-space: nowrap;', ";" + ("" ), "" ),
|
|
19568
19906
|
children: store.name ? localize({
|
|
19569
19907
|
obj: store,
|
|
19570
19908
|
key: 'name',
|
|
19571
19909
|
language,
|
|
19572
|
-
languages
|
|
19910
|
+
fallbackOrder: languages
|
|
19573
19911
|
}) : store.key
|
|
19574
19912
|
}, store.key))
|
|
19575
19913
|
});
|
|
19576
19914
|
};
|
|
19577
19915
|
StoreCell.displayName = 'StoreCell';
|
|
19578
|
-
StoreCell.propTypes = {};
|
|
19579
19916
|
|
|
19580
|
-
var messages$
|
|
19917
|
+
var messages$4 = reactIntl.defineMessages({
|
|
19581
19918
|
versionLabel: {
|
|
19582
19919
|
id: 'ChangeHistory.list.column.versionLabel',
|
|
19583
19920
|
description: 'Label for versions cell',
|
|
@@ -19587,7 +19924,7 @@ var messages$5 = reactIntl.defineMessages({
|
|
|
19587
19924
|
|
|
19588
19925
|
function ownKeys$g(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19589
19926
|
function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$g(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$g(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
19590
|
-
var _ref$
|
|
19927
|
+
var _ref$1 = {
|
|
19591
19928
|
name: "h6w7gh",
|
|
19592
19929
|
styles: "text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"
|
|
19593
19930
|
} ;
|
|
@@ -19596,8 +19933,8 @@ const VersionCell = _ref2 => {
|
|
|
19596
19933
|
newVersion = _ref2.newVersion;
|
|
19597
19934
|
return jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
19598
19935
|
children: jsxRuntime.jsx("div", {
|
|
19599
|
-
css: _ref$
|
|
19600
|
-
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$g(_objectSpread$g({}, messages$
|
|
19936
|
+
css: _ref$1,
|
|
19937
|
+
children: jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$g(_objectSpread$g({}, messages$4.versionLabel), {}, {
|
|
19601
19938
|
values: {
|
|
19602
19939
|
oldVersion,
|
|
19603
19940
|
newVersion
|
|
@@ -19608,215 +19945,6 @@ const VersionCell = _ref2 => {
|
|
|
19608
19945
|
};
|
|
19609
19946
|
VersionCell.displayName = 'VersionCell';
|
|
19610
19947
|
|
|
19611
|
-
var _ref$1 = {
|
|
19612
|
-
name: "um674b",
|
|
19613
|
-
styles: "overflow:hidden;& div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"
|
|
19614
|
-
} ;
|
|
19615
|
-
const ModifiedByCellContent = _ref2 => {
|
|
19616
|
-
var _avatarIcon$type;
|
|
19617
|
-
let avatarColor = _ref2.avatarColor,
|
|
19618
|
-
avatarIcon = _ref2.avatarIcon,
|
|
19619
|
-
firstName = _ref2.firstName,
|
|
19620
|
-
lastName = _ref2.lastName,
|
|
19621
|
-
_ref2$primaryText = _ref2.primaryText,
|
|
19622
|
-
primaryText = _ref2$primaryText === void 0 ? '' : _ref2$primaryText,
|
|
19623
|
-
_ref2$isPrimaryTextFa = _ref2.isPrimaryTextFallback,
|
|
19624
|
-
isPrimaryTextFallback = _ref2$isPrimaryTextFa === void 0 ? false : _ref2$isPrimaryTextFa,
|
|
19625
|
-
_ref2$secondaryText = _ref2.secondaryText,
|
|
19626
|
-
secondaryText = _ref2$secondaryText === void 0 ? '' : _ref2$secondaryText,
|
|
19627
|
-
_ref2$tertiaryText = _ref2.tertiaryText,
|
|
19628
|
-
tertiaryText = _ref2$tertiaryText === void 0 ? '' : _ref2$tertiaryText,
|
|
19629
|
-
_ref2$toolTipTitle = _ref2.toolTipTitle,
|
|
19630
|
-
toolTipTitle = _ref2$toolTipTitle === void 0 ? '' : _ref2$toolTipTitle,
|
|
19631
|
-
isWrappingText = _ref2.isWrappingText;
|
|
19632
|
-
return jsxRuntime.jsxs(uiKit.Spacings.Inline, {
|
|
19633
|
-
children: [jsxRuntime.jsx("div", {
|
|
19634
|
-
style: {
|
|
19635
|
-
marginRight: '4px'
|
|
19636
|
-
},
|
|
19637
|
-
children: jsxRuntime.jsx(uiKit.Tooltip, {
|
|
19638
|
-
closeAfter: 0,
|
|
19639
|
-
showAfter: 200,
|
|
19640
|
-
placement: "top-start",
|
|
19641
|
-
title: toolTipTitle,
|
|
19642
|
-
off: !toolTipTitle,
|
|
19643
|
-
children: jsxRuntime.jsx(uiKit.Avatar, {
|
|
19644
|
-
gravatarHash: "",
|
|
19645
|
-
color: avatarColor,
|
|
19646
|
-
size: "s",
|
|
19647
|
-
firstName: firstName,
|
|
19648
|
-
lastName: lastName,
|
|
19649
|
-
icon: avatarIcon || null,
|
|
19650
|
-
"data-testid": "modified-by-cell-".concat(avatarIcon === null || avatarIcon === void 0 || (_avatarIcon$type = avatarIcon.type) === null || _avatarIcon$type === void 0 ? void 0 : _avatarIcon$type.name)
|
|
19651
|
-
})
|
|
19652
|
-
})
|
|
19653
|
-
}), jsxRuntime.jsxs("div", {
|
|
19654
|
-
css: isWrappingText ? _ref$1 : null,
|
|
19655
|
-
children: [jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
19656
|
-
tone: isPrimaryTextFallback ? 'tertiary' : undefined,
|
|
19657
|
-
children: primaryText
|
|
19658
|
-
}), jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
19659
|
-
children: secondaryText
|
|
19660
|
-
}), jsxRuntime.jsx(uiKit.Text.Detail, {
|
|
19661
|
-
tone: "secondary",
|
|
19662
|
-
children: tertiaryText
|
|
19663
|
-
})]
|
|
19664
|
-
})]
|
|
19665
|
-
});
|
|
19666
|
-
};
|
|
19667
|
-
ModifiedByCellContent.displayName = 'ModifiedByCellContent';
|
|
19668
|
-
ModifiedByCellContent.propTypes = {};
|
|
19669
|
-
|
|
19670
|
-
var messages$4 = reactIntl.defineMessages({
|
|
19671
|
-
noApiClientLabel: {
|
|
19672
|
-
id: 'ChangeHistory.modifiedBy.noApiClientLabel',
|
|
19673
|
-
description: 'Text for no api client label',
|
|
19674
|
-
defaultMessage: 'API client not available'
|
|
19675
|
-
},
|
|
19676
|
-
modifiedBySystem: {
|
|
19677
|
-
id: 'ChangeHistory.modifiedBy.modifiedBySystem',
|
|
19678
|
-
description: 'Text for system change',
|
|
19679
|
-
defaultMessage: 'System'
|
|
19680
|
-
},
|
|
19681
|
-
avatarPlatformInitiatedChange: {
|
|
19682
|
-
id: 'ChangeHistory.modifiedBy.avatarPlatformInitiatedChange',
|
|
19683
|
-
description: 'Text for platform change',
|
|
19684
|
-
defaultMessage: 'Platform initiated'
|
|
19685
|
-
},
|
|
19686
|
-
externalUserLabel: {
|
|
19687
|
-
id: 'ChangeHistory.modifiedBy.externalUserLabel',
|
|
19688
|
-
description: 'Label when the user to display is from externalUserId',
|
|
19689
|
-
defaultMessage: 'External'
|
|
19690
|
-
},
|
|
19691
|
-
pendingUser: {
|
|
19692
|
-
id: 'ChangeHistory.modifiedBy.pendingUser',
|
|
19693
|
-
description: 'Label when there is no user attached to a change',
|
|
19694
|
-
defaultMessage: 'Pending user'
|
|
19695
|
-
},
|
|
19696
|
-
noCustomerLabel: {
|
|
19697
|
-
id: 'ChangeHistory.modifiedBy.noCustomerLabel',
|
|
19698
|
-
description: 'Text for no customer label',
|
|
19699
|
-
defaultMessage: 'Customer not available'
|
|
19700
|
-
},
|
|
19701
|
-
customerLabel: {
|
|
19702
|
-
id: 'ChangeHistory.modifiedBy.customerLabel',
|
|
19703
|
-
description: 'Label for customer avatar tooltip',
|
|
19704
|
-
defaultMessage: 'Customer'
|
|
19705
|
-
},
|
|
19706
|
-
associateLabel: {
|
|
19707
|
-
id: 'ChangeHistory.modifiedBy.associateLabel',
|
|
19708
|
-
description: 'Label for associate avatar tooltip',
|
|
19709
|
-
defaultMessage: 'Associate'
|
|
19710
|
-
},
|
|
19711
|
-
avatarMCUserLabel: {
|
|
19712
|
-
id: 'ChangeHistory.modifiedBy.avatarMCUserLabel',
|
|
19713
|
-
description: 'Label for merchant center user avatar tooltip',
|
|
19714
|
-
defaultMessage: 'Merchant center user'
|
|
19715
|
-
},
|
|
19716
|
-
avatarApiIntegration: {
|
|
19717
|
-
id: 'ChangeHistory.modifiedBy.avatarApiIntegration',
|
|
19718
|
-
description: 'Label for api integration user avatar tooltip',
|
|
19719
|
-
defaultMessage: 'API integration'
|
|
19720
|
-
},
|
|
19721
|
-
anonymousLabel: messages$w.anonymousLabel
|
|
19722
|
-
});
|
|
19723
|
-
|
|
19724
|
-
const ModifiedByCell = _ref => {
|
|
19725
|
-
let id = _ref.id,
|
|
19726
|
-
isPlatformClient = _ref.isPlatformClient,
|
|
19727
|
-
type = _ref.type,
|
|
19728
|
-
member = _ref.member,
|
|
19729
|
-
clientId = _ref.clientId,
|
|
19730
|
-
apiClients = _ref.apiClients,
|
|
19731
|
-
customerId = _ref.customerId,
|
|
19732
|
-
anonymousId = _ref.anonymousId,
|
|
19733
|
-
customer = _ref.customer,
|
|
19734
|
-
isWrappingText = _ref.isWrappingText;
|
|
19735
|
-
const _useIntl = reactIntl.useIntl(),
|
|
19736
|
-
formatMessage = _useIntl.formatMessage;
|
|
19737
|
-
const apiClient = apiClients[clientId] || formatMessage(messages$4.noApiClientLabel);
|
|
19738
|
-
switch (type) {
|
|
19739
|
-
case MODIFIED_BY_TYPES.EXTERNAL_USER:
|
|
19740
|
-
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19741
|
-
avatarColor: AVATAR_COLORS.PURPLE,
|
|
19742
|
-
avatarIcon: jsxRuntime.jsx(uiKit.CodeViewIcon, {}),
|
|
19743
|
-
primaryText: id,
|
|
19744
|
-
secondaryText: apiClient,
|
|
19745
|
-
tertiaryText: formatMessage(messages$4.externalUserLabel),
|
|
19746
|
-
toolTipTitle: formatMessage(messages$4.avatarApiIntegration),
|
|
19747
|
-
isWrappingText: isWrappingText
|
|
19748
|
-
});
|
|
19749
|
-
case MODIFIED_BY_TYPES.USER:
|
|
19750
|
-
{
|
|
19751
|
-
if (!isPlatformClient && !customerId && !anonymousId) {
|
|
19752
|
-
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19753
|
-
avatarColor: AVATAR_COLORS.PURPLE,
|
|
19754
|
-
avatarIcon: jsxRuntime.jsx(uiKit.CodeViewIcon, {}),
|
|
19755
|
-
primaryText: apiClient,
|
|
19756
|
-
toolTipTitle: formatMessage(messages$4.avatarApiIntegration),
|
|
19757
|
-
isWrappingText: isWrappingText
|
|
19758
|
-
});
|
|
19759
|
-
}
|
|
19760
|
-
if (id) {
|
|
19761
|
-
var _context, _context2;
|
|
19762
|
-
const formattedName = _trimInstanceProperty__default["default"](_context = _filterInstanceProperty__default["default"](_context2 = [member === null || member === void 0 ? void 0 : member.firstName, member === null || member === void 0 ? void 0 : member.lastName]).call(_context2, Boolean) // Still returns the first or last name if the other is falsy
|
|
19763
|
-
.join(' ')).call(_context);
|
|
19764
|
-
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19765
|
-
avatarColor: AVATAR_COLORS.TURQUOISE,
|
|
19766
|
-
firstName: member === null || member === void 0 ? void 0 : member.firstName,
|
|
19767
|
-
lastName: member === null || member === void 0 ? void 0 : member.lastName,
|
|
19768
|
-
avatarIcon: !formattedName && jsxRuntime.jsx(uiKit.UserLinearIcon, {}),
|
|
19769
|
-
primaryText: formattedName || formatMessage(messages$4.pendingUser),
|
|
19770
|
-
isPrimaryTextFallback: !formattedName,
|
|
19771
|
-
toolTipTitle: formatMessage(messages$4.avatarMCUserLabel),
|
|
19772
|
-
isWrappingText: isWrappingText
|
|
19773
|
-
});
|
|
19774
|
-
}
|
|
19775
|
-
if (customerId || anonymousId) {
|
|
19776
|
-
const customerInfo = customer || jsxRuntime.jsx(NoValueFallback, {});
|
|
19777
|
-
const customerRecord = anonymousId ? formatMessage(messages$4.anonymousLabel) : customerInfo;
|
|
19778
|
-
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19779
|
-
avatarColor: AVATAR_COLORS.PURPLE,
|
|
19780
|
-
avatarIcon: jsxRuntime.jsx(uiKit.CodeViewIcon, {}),
|
|
19781
|
-
primaryText: customerRecord,
|
|
19782
|
-
isPrimaryTextFallback: !customer,
|
|
19783
|
-
secondaryText: apiClient,
|
|
19784
|
-
tertiaryText: formatMessage(messages$4.customerLabel),
|
|
19785
|
-
toolTipTitle: formatMessage(messages$4.avatarApiIntegration),
|
|
19786
|
-
isWrappingText: isWrappingText
|
|
19787
|
-
});
|
|
19788
|
-
}
|
|
19789
|
-
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19790
|
-
avatarColor: AVATAR_COLORS.ACCENT,
|
|
19791
|
-
avatarIcon: jsxRuntime.jsx(uiKit.SwitcherIcon, {}),
|
|
19792
|
-
primaryText: formatMessage(messages$4.modifiedBySystem),
|
|
19793
|
-
toolTipTitle: formatMessage(messages$4.avatarPlatformInitiatedChange),
|
|
19794
|
-
isWrappingText: isWrappingText
|
|
19795
|
-
});
|
|
19796
|
-
}
|
|
19797
|
-
case MODIFIED_BY_TYPES.ASSOCIATE:
|
|
19798
|
-
{
|
|
19799
|
-
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19800
|
-
avatarColor: AVATAR_COLORS.PURPLE,
|
|
19801
|
-
avatarIcon: jsxRuntime.jsx(uiKit.CodeViewIcon, {}),
|
|
19802
|
-
primaryText: apiClient,
|
|
19803
|
-
tertiaryText: formatMessage(messages$4.associateLabel),
|
|
19804
|
-
toolTipTitle: formatMessage(messages$4.avatarApiIntegration),
|
|
19805
|
-
isWrappingText: isWrappingText
|
|
19806
|
-
});
|
|
19807
|
-
}
|
|
19808
|
-
default:
|
|
19809
|
-
return jsxRuntime.jsx(ModifiedByCellContent, {
|
|
19810
|
-
avatarColor: AVATAR_COLORS.PURPLE,
|
|
19811
|
-
avatarIcon: jsxRuntime.jsx(uiKit.CodeViewIcon, {}),
|
|
19812
|
-
primaryText: jsxRuntime.jsx(NoValueFallback, {}),
|
|
19813
|
-
isWrappingText: isWrappingText
|
|
19814
|
-
});
|
|
19815
|
-
}
|
|
19816
|
-
};
|
|
19817
|
-
ModifiedByCell.displayName = 'ModifiedByCell';
|
|
19818
|
-
ModifiedByCell.propTypes = {};
|
|
19819
|
-
|
|
19820
19948
|
const getTableCellByColumnKey = _ref => {
|
|
19821
19949
|
var _message$modifiedAt;
|
|
19822
19950
|
let apiClients = _ref.apiClients,
|
|
@@ -19849,7 +19977,7 @@ const getTableCellByColumnKey = _ref => {
|
|
|
19849
19977
|
}
|
|
19850
19978
|
case COLUMNS.MODIFIED_BY:
|
|
19851
19979
|
{
|
|
19852
|
-
var _message$modifiedBy, _message$modifiedBy2, _message$modifiedBy3, _message$modifiedBy4, _message$modifiedBy5, _message$modifiedBy6, _message$modifiedBy7
|
|
19980
|
+
var _message$modifiedBy, _message$modifiedBy2, _message$modifiedBy3, _message$modifiedBy4, _message$modifiedBy5, _message$modifiedBy6, _message$modifiedBy7;
|
|
19853
19981
|
const customerId = (_message$modifiedBy = message.modifiedBy) === null || _message$modifiedBy === void 0 || (_message$modifiedBy = _message$modifiedBy.customer) === null || _message$modifiedBy === void 0 ? void 0 : _message$modifiedBy.id;
|
|
19854
19982
|
const modifiedById = (_message$modifiedBy2 = message.modifiedBy) === null || _message$modifiedBy2 === void 0 ? void 0 : _message$modifiedBy2.id;
|
|
19855
19983
|
return jsxRuntime.jsx(ModifiedByCell, {
|
|
@@ -19859,8 +19987,8 @@ const getTableCellByColumnKey = _ref => {
|
|
|
19859
19987
|
member: modifiedById ? members[modifiedById] : undefined,
|
|
19860
19988
|
clientId: (_message$modifiedBy6 = message.modifiedBy) === null || _message$modifiedBy6 === void 0 ? void 0 : _message$modifiedBy6.clientId,
|
|
19861
19989
|
apiClients: apiClients,
|
|
19862
|
-
customerId:
|
|
19863
|
-
anonymousId: (_message$
|
|
19990
|
+
customerId: customerId ? customerId : '',
|
|
19991
|
+
anonymousId: (_message$modifiedBy7 = message.modifiedBy) === null || _message$modifiedBy7 === void 0 ? void 0 : _message$modifiedBy7.anonymousId,
|
|
19864
19992
|
customer: customerId ? customers === null || customers === void 0 ? void 0 : customers[customerId] : undefined,
|
|
19865
19993
|
isWrappingText: isWrappingText && isRowCollapsed
|
|
19866
19994
|
});
|
|
@@ -21234,7 +21362,7 @@ const WelcomeDialog = _ref => {
|
|
|
21234
21362
|
_useStorage2 = _slicedToArray(_useStorage, 2),
|
|
21235
21363
|
hasDismissedModal = _useStorage2[0],
|
|
21236
21364
|
setHasDismissedModal = _useStorage2[1];
|
|
21237
|
-
const isBasicChangeHistory = hasFoundData && tier ===
|
|
21365
|
+
const isBasicChangeHistory = hasFoundData && tier === TierLevels.Basic;
|
|
21238
21366
|
react.useEffect(() => {
|
|
21239
21367
|
if (isBasicChangeHistory && !hasDismissedModal) {
|
|
21240
21368
|
openModal();
|
|
@@ -22013,17 +22141,17 @@ const loadMessages = locale => {
|
|
|
22013
22141
|
const intlLocale = i18n.mapLocaleToIntlLocale(locale);
|
|
22014
22142
|
switch (intlLocale) {
|
|
22015
22143
|
case 'de':
|
|
22016
|
-
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-de" */'./de-
|
|
22144
|
+
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-de" */'./de-43cb4047.cjs.prod.js'); });
|
|
22017
22145
|
case 'es':
|
|
22018
|
-
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-es" */'./es-
|
|
22146
|
+
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-es" */'./es-f2d2e7a4.cjs.prod.js'); });
|
|
22019
22147
|
case 'fr-FR':
|
|
22020
|
-
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-fr-FR" */'./fr-FR-
|
|
22148
|
+
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-fr-FR" */'./fr-FR-c1b86aa9.cjs.prod.js'); });
|
|
22021
22149
|
case 'pt-BR':
|
|
22022
|
-
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-
|
|
22150
|
+
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-pt-BR" */'./pt-BR-d9d90a6f.cjs.prod.js'); });
|
|
22023
22151
|
case 'zh-CN':
|
|
22024
|
-
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-zh-CN" */'./zh-CN-
|
|
22152
|
+
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-zh-CN" */'./zh-CN-c5e4f709.cjs.prod.js'); });
|
|
22025
22153
|
default:
|
|
22026
|
-
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-en" */'./en-
|
|
22154
|
+
return Promise.resolve().then(function () { return require( /* webpackChunkName: "change-history-i18n-en" */'./en-9dc7b636.cjs.prod.js'); });
|
|
22027
22155
|
}
|
|
22028
22156
|
};
|
|
22029
22157
|
|