orc-shared 5.9.0-dev.1 → 5.9.0-dev.11

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.
Files changed (89) hide show
  1. package/dist/actions/makeApiAction.js +3 -3
  2. package/dist/components/AppFrame/About.js +1 -1
  3. package/dist/components/AppFrame/ApplicationSelector/Header.js +2 -2
  4. package/dist/components/AppFrame/ApplicationSelector/index.js +2 -2
  5. package/dist/components/AppFrame/MenuItem.js +2 -2
  6. package/dist/components/AppFrame/Sidebar.js +2 -2
  7. package/dist/components/AppFrame/Topbar.js +2 -2
  8. package/dist/components/CategoryList.js +3 -3
  9. package/dist/components/Checkbox.js +2 -2
  10. package/dist/components/ErrorPlaceholder.js +2 -2
  11. package/dist/components/Form/FieldElements.js +8 -8
  12. package/dist/components/Form/FieldList.js +7 -7
  13. package/dist/components/Form/InputField.js +2 -2
  14. package/dist/components/Form/Inputs/Button.js +2 -2
  15. package/dist/components/Form/Inputs/Date.js +2 -2
  16. package/dist/components/Form/Inputs/Number.js +2 -2
  17. package/dist/components/Form/Inputs/SmallButton.js +2 -2
  18. package/dist/components/Form/Inputs/Text.js +2 -2
  19. package/dist/components/Form/Inputs/Time.js +2 -2
  20. package/dist/components/Form/Inputs/Toggles.js +2 -2
  21. package/dist/components/Form/Inputs/Translation.js +2 -2
  22. package/dist/components/Icon.js +2 -2
  23. package/dist/components/IconButton.js +2 -2
  24. package/dist/components/Input.js +2 -2
  25. package/dist/components/List/List.js +4 -4
  26. package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -2
  27. package/dist/components/MaterialUI/DataDisplay/Icon.js +2 -2
  28. package/dist/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.js +2 -2
  29. package/dist/components/MaterialUI/DataDisplay/Table.js +2 -2
  30. package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +2 -2
  31. package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +4 -2
  32. package/dist/components/MaterialUI/Inputs/DatePicker.js +2 -2
  33. package/dist/components/MaterialUI/Inputs/InputBase.js +2 -2
  34. package/dist/components/MaterialUI/Inputs/LookupSelect.js +2 -2
  35. package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +3 -3
  36. package/dist/components/MaterialUI/Surfaces/Paper.js +10 -1
  37. package/dist/components/MaterialUI/hocs/withDeferredPopper.js +2 -2
  38. package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +2 -2
  39. package/dist/components/Modal/Wrapper.js +1 -1
  40. package/dist/components/Modules.js +2 -2
  41. package/dist/components/MultiSelector.js +2 -2
  42. package/dist/components/Navigation/Tab.js +2 -2
  43. package/dist/components/Navigation/useNavigationState.js +5 -5
  44. package/dist/components/Placeholder.js +2 -2
  45. package/dist/components/Registry.js +110 -0
  46. package/dist/components/Routing/SegmentPage.js +10 -2
  47. package/dist/components/Routing/SubPage.js +2 -2
  48. package/dist/components/Scope/useScopeConfirmationModalState.js +1 -1
  49. package/dist/components/Selector.js +2 -2
  50. package/dist/components/Sidepanel.js +1 -1
  51. package/dist/components/Switch.js +2 -2
  52. package/dist/components/ToastList.js +3 -3
  53. package/dist/components/Toolbar.js +2 -2
  54. package/dist/components/Treeview/Node.js +8 -8
  55. package/dist/components/Treeview/index.js +2 -2
  56. package/dist/constants.js +1 -0
  57. package/dist/content/icons/collapse-all-arrow.svg +6 -0
  58. package/dist/content/icons/expand-all-arrow.svg +6 -0
  59. package/dist/content/iconsSheet.svg +4 -5
  60. package/dist/hocs/withAuthentication.js +2 -2
  61. package/dist/hocs/withClickOutside.js +7 -7
  62. package/dist/hocs/withErrorBoundary.js +2 -2
  63. package/dist/hocs/withId.js +2 -2
  64. package/dist/hocs/withScrollBox.js +2 -2
  65. package/dist/selectors/authentication.js +12 -12
  66. package/dist/sharedMessages.js +20 -0
  67. package/dist/utils/flatten.js +8 -8
  68. package/dist/utils/mapHelper.js +8 -8
  69. package/dist/utils/propertyBagHelper.js +8 -4
  70. package/dist/utils/propertyHelper.js +8 -8
  71. package/dist/utils/safeGet.js +5 -5
  72. package/dist/utils/stripKey.js +2 -2
  73. package/package.json +2 -2
  74. package/src/components/MaterialUI/Inputs/CheckboxGroup.js +3 -1
  75. package/src/components/MaterialUI/Inputs/InputBase.test.js +8 -2
  76. package/src/components/MaterialUI/Surfaces/Paper.js +9 -0
  77. package/src/components/Registry.js +42 -0
  78. package/src/components/Registry.test.js +85 -0
  79. package/src/components/Routing/SegmentPage.js +12 -0
  80. package/src/components/Routing/SegmentPage.test.js +75 -3
  81. package/src/constants.js +1 -0
  82. package/src/content/icons/collapse-all-arrow.svg +6 -0
  83. package/src/content/icons/expand-all-arrow.svg +6 -0
  84. package/src/content/iconsSheet.svg +4 -5
  85. package/src/sharedMessages.js +20 -0
  86. package/src/translations/en-US.json +5 -0
  87. package/src/translations/fr-CA.json +5 -0
  88. package/src/utils/propertyBagHelper.js +8 -3
  89. package/src/utils/propertyBagHelper.test.js +2 -0
@@ -279,6 +279,26 @@ const sharedMessages = defineMessages({
279
279
  id: "orc-shared.valueTypeWrapperFalse",
280
280
  defaultMessage: "False",
281
281
  },
282
+ registry: {
283
+ id: "orc-shared.registry",
284
+ defaultMessage: "Registry",
285
+ },
286
+ created: {
287
+ id: "orc-shared.created",
288
+ defaultMessage: "Date Created",
289
+ },
290
+ createdBy: {
291
+ id: "orc-shared.createdBy",
292
+ defaultMessage: "Created By",
293
+ },
294
+ lastModified: {
295
+ id: "orc-shared.lastModified",
296
+ defaultMessage: "Last Modified",
297
+ },
298
+ lastModifiedBy: {
299
+ id: "orc-shared.lastModifiedBy",
300
+ defaultMessage: "Last Modified By",
301
+ },
282
302
  });
283
303
 
284
304
  export default sharedMessages;
@@ -14,6 +14,8 @@
14
14
  "orc-shared.confirmation": "Confirmation",
15
15
  "orc-shared.copyright": "© {year} Orckestra Technologies Inc.",
16
16
  "orc-shared.copyrightTermsNotice": "This computer program is protected by copyright laws and international treaties. Unauthorized reproduction or redistribution of this program, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under the law. Orckestra is a trademark of Orckestra Technologies Inc. All other trademarks are property of the respective owners.",
17
+ "orc-shared.created": "Date Created",
18
+ "orc-shared.createdBy": "Created By",
17
19
  "orc-shared.dataTypeBoolean": "Yes/No Choice",
18
20
  "orc-shared.dataTypeDate": "Date/Calendar",
19
21
  "orc-shared.dataTypeDecimal": "Decimal Number",
@@ -37,6 +39,8 @@
37
39
  "orc-shared.inactive": "Inactive",
38
40
  "orc-shared.internetExplorerWarningContent": "You are using a browser that we no longer support. For a better experience with our HTML web applications, we recommend you to use the latest version of one of the following browsers:",
39
41
  "orc-shared.internetExplorerWarningTitle": "Improve your experience",
42
+ "orc-shared.lastModified": "Last Modified",
43
+ "orc-shared.lastModifiedBy": "Last Modified By",
40
44
  "orc-shared.needToRefresh": "You are not authorized to execute a request. Click refresh to reload the application.",
41
45
  "orc-shared.next": "Next",
42
46
  "orc-shared.no": "No",
@@ -46,6 +50,7 @@
46
50
  "orc-shared.orcSharedVersion": "Orc-Shared Framework {version}",
47
51
  "orc-shared.preferences": "Preferences",
48
52
  "orc-shared.refresh": "Refresh",
53
+ "orc-shared.registry": "Registry",
49
54
  "orc-shared.remove": "Remove",
50
55
  "orc-shared.save": "Save",
51
56
  "orc-shared.scopeChangeWithOpenedTabsConfirmation": "One or more entities opened will be closed. Would you like to change scope now?",
@@ -14,6 +14,8 @@
14
14
  "orc-shared.confirmation": "Confirmation",
15
15
  "orc-shared.copyright": "© {year} Technologies Orckestra Inc.",
16
16
  "orc-shared.copyrightTermsNotice": "Avertissement: Ce programme est protégé par la loi relative au droit d'auteur et par les conventions internationales. Toute reproduction ou distribution partielle ou totale du logiciel, par quelque moyen que ce soit, est strictement interdite. Toute personne ne respectant pas ces dispositions se rendra coupable du délit de contrefaçon et sera passible des sanctions pénales prévues par la loi. Orckestra est une marque de commerce déposée et détenue par Technologies Orckestra Inc. Toutes les autres marques de commerce sont la propriété de leurs détenteurs respectifs.",
17
+ "orc-shared.created": "Date de création",
18
+ "orc-shared.createdBy": "Créé par",
17
19
  "orc-shared.dataTypeBoolean": "Choix Oui/Non",
18
20
  "orc-shared.dataTypeDate": "Date/Calendrier",
19
21
  "orc-shared.dataTypeDecimal": "Nombre décimal",
@@ -37,6 +39,8 @@
37
39
  "orc-shared.inactive": "Inactif",
38
40
  "orc-shared.internetExplorerWarningContent": "Vous utilisez un navigateur qui n'est plus supporté. Pour assurer une expérience optimale de nos applications web HTML, nous vous recommendons d'utiliser la dernière version des navigateurs suivants:",
39
41
  "orc-shared.internetExplorerWarningTitle": "Améliorez votre expérience",
42
+ "orc-shared.lastModified": "Dernière date de modification",
43
+ "orc-shared.lastModifiedBy": "Modifié par",
40
44
  "orc-shared.needToRefresh": "Vous n'êtes pas autorisé à effectuer une requête. Veuillez cliquer sur Rafraîchir pour rafraîchir l’application.",
41
45
  "orc-shared.next": "Suivant",
42
46
  "orc-shared.no": "Non",
@@ -46,6 +50,7 @@
46
50
  "orc-shared.orcSharedVersion": "Infrastructure Orc-Shared {version}",
47
51
  "orc-shared.preferences": "Préférences",
48
52
  "orc-shared.refresh": "Rafraîchir",
53
+ "orc-shared.registry": "Régistre",
49
54
  "orc-shared.remove": "Retirer",
50
55
  "orc-shared.save": "Sauvegarder",
51
56
  "orc-shared.scopeChangeWithOpenedTabsConfirmation": "Une ou plusieurs entités ouvertes seront fermées. Voulez-vous vraiment changer de Scope?",
@@ -11,12 +11,14 @@ import { parseGuid } from "./parseHelper";
11
11
 
12
12
  export const customDataType = {
13
13
  money: "Money",
14
+ moneyDecimal: "MoneyDecimal",
14
15
  priceTieredRateTable: "PriceTieredRateTable",
15
16
  quantityTieredRateTable: "QuantityTieredRateTable",
16
17
  password: "Password",
17
18
  carrierProviderSelector: "CarrierProviderSelector",
18
19
  routingProviderSelector: "RoutingProviderSelector",
19
20
  multipleCarrierProvidersSelector: "MultipleCarrierProvidersSelector",
21
+ serviceLevelSelector: "ServiceLevelSelector",
20
22
  };
21
23
 
22
24
  const tieredAttributeTypes = [customDataType.priceTieredRateTable, customDataType.quantityTieredRateTable];
@@ -70,13 +72,16 @@ export const toJsonCargo = (attribute, value) => {
70
72
  switch (attribute.customDataType) {
71
73
  case customDataType.money:
72
74
  return createJsonCargo(jsonCargoType.double, Number(formatNumber(value, 2)));
75
+ case customDataType.moneyDecimal:
76
+ return createJsonCargo(jsonCargoType.decimal, Number(formatNumber(value, 2)));
73
77
  case customDataType.priceTieredRateTable:
74
78
  case customDataType.quantityTieredRateTable:
75
79
  return createTieredTableJsonCargo(value);
76
80
  case customDataType.password:
77
- case customDataType.carrierProviderSelector: // To be properly handled when user story 61801 will be addressed
78
- case customDataType.routingProviderSelector: // To be properly handled when user story 61801 will be addressed
79
- case customDataType.multipleCarrierProvidersSelector: // To be properly handled when user story 61801 will be addressed
81
+ case customDataType.carrierProviderSelector:
82
+ case customDataType.routingProviderSelector:
83
+ case customDataType.multipleCarrierProvidersSelector:
84
+ case customDataType.serviceLevelSelector:
80
85
  return value;
81
86
  default:
82
87
  throw new Error(`toJsonCargo: attribute.customDataType ${attribute.customDataType} is not implemented`);
@@ -78,6 +78,8 @@ describe("toJsonCargo function", () => {
78
78
  [15.4321, attributeDataType.decimal, null, { __type: "ValueOfDouble", value: 15.4321 }],
79
79
  [15.4321, attributeDataType.customType, customDataType.money, { __type: "ValueOfDouble", value: 15.43 }],
80
80
  [15.4285, attributeDataType.customType, customDataType.money, { __type: "ValueOfDouble", value: 15.43 }],
81
+ [15.4321, attributeDataType.customType, customDataType.moneyDecimal, { __type: "ValueOfDecimal", value: 15.43 }],
82
+ [15.4285, attributeDataType.customType, customDataType.moneyDecimal, { __type: "ValueOfDecimal", value: 15.43 }],
81
83
  [
82
84
  ["d22679f2-5807-4068-b17f-700742d97503"],
83
85
  attributeDataType.entityReference,