orc-shared 5.10.0-dev.2 → 5.10.0-dev.21
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/actions/metadata.js +30 -11
- package/dist/actions/requestsApi.js +10 -1
- package/dist/components/AppFrame/About.js +136 -100
- package/dist/components/AppFrame/Anchor.js +45 -21
- package/dist/components/AppFrame/AppFrame.js +53 -31
- package/dist/components/AppFrame/Help.js +35 -15
- package/dist/components/AppFrame/MenuItem.js +148 -114
- package/dist/components/AppFrame/Preferences.js +136 -97
- package/dist/components/AppFrame/Sidebar.js +51 -28
- package/dist/components/AppFrame/Topbar.js +61 -36
- package/dist/components/ColumnWrapper.js +28 -5
- package/dist/components/Culture.js +33 -14
- package/dist/components/DropMenu/Menu.js +79 -45
- package/dist/components/DropMenu/index.js +34 -29
- package/dist/components/Form/Combination.js +45 -16
- package/dist/components/Form/Field.js +57 -38
- package/dist/components/Form/FieldElements.js +0 -11
- package/dist/components/Form/Fieldset.js +47 -19
- package/dist/components/Form/Form.js +22 -9
- package/dist/components/Form/FormElement.js +40 -7
- package/dist/components/Form/Inputs/Button.js +63 -18
- package/dist/components/Form/Inputs/ReadOnly.js +50 -27
- package/dist/components/{AppFrame/ApplicationSelector/Header.js → Form/Inputs/Selector.js} +30 -31
- package/dist/components/Form/Inputs/Text.js +20 -37
- package/dist/components/Form/Inputs/Toggles.js +39 -40
- package/dist/components/Form/Inputs/index.js +2 -13
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +31 -11
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionToolbar.js +89 -0
- package/dist/components/MaterialUI/DataDisplay/Table.js +109 -18
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +5 -1
- package/dist/components/MaterialUI/DataDisplay/TableWithInMemoryPaging.js +198 -0
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +4 -1
- package/dist/components/MaterialUI/Inputs/DatePicker.js +14 -14
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +1 -0
- package/dist/components/MaterialUI/Inputs/Select.js +2 -0
- package/dist/components/MaterialUI/Inputs/SelectProps.js +2 -0
- package/dist/components/MaterialUI/Inputs/Switch.js +17 -1
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +2 -0
- package/dist/components/MaterialUI/Inputs/TimePicker.js +14 -21
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +3 -1
- package/dist/components/MaterialUI/muiThemes.js +2 -1
- package/dist/components/Provision.js +1 -1
- package/dist/constants.js +2 -1
- package/dist/content/iconsSheet.svg +740 -116
- package/dist/hocs/withScrollBox.js +27 -12
- package/dist/hooks/useDaysAndMonthsLocalization.js +77 -0
- package/dist/hooks/useInMemoryPaging.js +135 -0
- package/dist/hooks/useMultipleFieldEditState.js +12 -3
- package/dist/reducers/metadata.js +6 -0
- package/dist/schemas/metadata.js +9 -1
- package/dist/selectors/locale.js +1 -0
- package/dist/selectors/metadata.js +14 -11
- package/dist/sharedMessages.js +184 -0
- package/dist/utils/ListHelper.js +271 -0
- package/dist/utils/comparisonHelper.js +185 -0
- package/dist/utils/propertyBagHelper.js +3 -1
- package/dist/utils/timezoneHelper.js +18 -31
- package/package.json +4 -3
- package/src/actions/metadata.js +11 -0
- package/src/actions/metadata.test.js +27 -0
- package/src/actions/requestsApi.js +6 -0
- package/src/components/AppFrame/About.js +97 -117
- package/src/components/AppFrame/About.test.js +128 -90
- package/src/components/AppFrame/Anchor.js +34 -36
- package/src/components/AppFrame/Anchor.test.js +5 -68
- package/src/components/AppFrame/AppFrame.js +31 -40
- package/src/components/AppFrame/AppFrame.test.js +424 -445
- package/src/components/AppFrame/Help.js +23 -20
- package/src/components/AppFrame/Help.test.js +3 -3
- package/src/components/AppFrame/MenuItem.js +106 -126
- package/src/components/AppFrame/MenuItem.test.js +78 -169
- package/src/components/AppFrame/Preferences.js +110 -98
- package/src/components/AppFrame/Preferences.test.js +115 -219
- package/src/components/AppFrame/Sidebar.js +39 -41
- package/src/components/AppFrame/Sidebar.test.js +88 -168
- package/src/components/AppFrame/Topbar.js +59 -52
- package/src/components/AppFrame/Topbar.test.js +31 -39
- package/src/components/ColumnWrapper.js +18 -9
- package/src/components/Culture.js +20 -10
- package/src/components/Culture.test.js +27 -16
- package/src/components/DropMenu/DropMenu.test.js +185 -224
- package/src/components/DropMenu/Menu.js +73 -80
- package/src/components/DropMenu/Menu.test.js +35 -86
- package/src/components/DropMenu/index.js +19 -15
- package/src/components/Form/Combination.js +35 -28
- package/src/components/Form/Combination.test.js +6 -19
- package/src/components/Form/Field.js +53 -66
- package/src/components/Form/Field.test.js +29 -51
- package/src/components/Form/FieldElements.js +0 -14
- package/src/components/Form/FieldElements.test.js +104 -111
- package/src/components/Form/Fieldset.js +42 -37
- package/src/components/Form/Fieldset.test.js +14 -7
- package/src/components/Form/Form.js +11 -7
- package/src/components/Form/Form.test.js +75 -56
- package/src/components/Form/FormElement.js +24 -16
- package/src/components/Form/InputField.test.js +24 -30
- package/src/components/Form/Inputs/Button.js +58 -14
- package/src/components/Form/Inputs/Button.test.js +32 -7
- package/src/components/Form/Inputs/Inputs.test.js +0 -7
- package/src/components/Form/Inputs/ReadOnly.js +34 -28
- package/src/components/Form/Inputs/ReadOnly.test.js +45 -7
- package/src/components/Form/Inputs/Selector.js +22 -0
- package/src/components/Form/Inputs/Selector.test.js +105 -0
- package/src/components/Form/Inputs/Text.js +15 -44
- package/src/components/Form/Inputs/Text.test.js +20 -29
- package/src/components/Form/Inputs/Toggles.js +27 -26
- package/src/components/Form/Inputs/Toggles.test.js +22 -28
- package/src/components/Form/Inputs/index.js +4 -15
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.test.js +1 -4
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +32 -6
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.test.js +3 -1
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/SectionToolbar.js +39 -0
- package/src/components/MaterialUI/DataDisplay/Table.js +190 -114
- package/src/components/MaterialUI/DataDisplay/Table.test.js +246 -1
- package/src/components/MaterialUI/DataDisplay/TableProps.js +4 -0
- package/src/components/MaterialUI/DataDisplay/TableProps.test.js +2 -0
- package/src/components/MaterialUI/DataDisplay/TableWithInMemoryPaging.js +145 -0
- package/src/components/MaterialUI/DataDisplay/TableWithInMemoryPaging.test.js +457 -0
- package/src/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +5 -1
- package/src/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.test.js +7 -1
- package/src/components/MaterialUI/Inputs/DatePicker.js +19 -20
- package/src/components/MaterialUI/Inputs/DatePicker.test.js +11 -6
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +1 -0
- package/src/components/MaterialUI/Inputs/Select.js +2 -0
- package/src/components/MaterialUI/Inputs/SelectProps.js +2 -0
- package/src/components/MaterialUI/Inputs/SelectProps.test.js +2 -0
- package/src/components/MaterialUI/Inputs/Switch.js +22 -1
- package/src/components/MaterialUI/Inputs/Switch.test.js +23 -0
- package/src/components/MaterialUI/Inputs/SwitchProps.js +2 -0
- package/src/components/MaterialUI/Inputs/SwitchProps.test.js +2 -0
- package/src/components/MaterialUI/Inputs/TimePicker.js +10 -19
- package/src/components/MaterialUI/Inputs/TimePicker.test.js +278 -117
- package/src/components/MaterialUI/hocs/withDeferredTooltip.js +4 -1
- package/src/components/MaterialUI/hocs/withDeferredTooltip.test.js +27 -0
- package/src/components/MaterialUI/muiThemes.js +1 -0
- package/src/components/Navigation/Bar.test.js +92 -87
- package/src/components/Provision.js +1 -1
- package/src/components/TaskDetailsModal.test.js +1 -3
- package/src/constants.js +1 -0
- package/src/content/iconsSheet.svg +740 -116
- package/src/hocs/withScrollBox.js +32 -19
- package/src/hocs/withScrollBox.test.js +15 -3
- package/src/hooks/useDaysAndMonthsLocalization.js +79 -0
- package/src/hooks/useDaysAndMonthsLocalization.test.js +107 -0
- package/src/hooks/useInMemoryPaging.js +78 -0
- package/src/hooks/useInMemoryPaging.test.js +515 -0
- package/src/hooks/useMultipleFieldEditState.js +11 -4
- package/src/hooks/useMultipleFieldEditState.test.js +49 -1
- package/src/reducers/metadata.js +6 -1
- package/src/reducers/metadata.test.js +31 -0
- package/src/requests +1 -0
- package/src/schemas/metadata.js +3 -0
- package/src/selectors/locale.js +1 -1
- package/src/selectors/metadata.js +12 -9
- package/src/selectors/metadata.test.js +92 -11
- package/src/sharedMessages.js +184 -0
- package/src/timezones.json +883 -0
- package/src/translations/en-US.json +46 -0
- package/src/translations/fr-CA.json +46 -0
- package/src/utils/ListHelper.js +203 -0
- package/src/utils/ListHelper.test.js +710 -0
- package/src/utils/comparisonHelper.js +135 -0
- package/src/utils/comparisonHelper.test.js +334 -0
- package/src/utils/propertyBagHelper.js +2 -0
- package/src/utils/propertyBagHelper.test.js +6 -0
- package/src/utils/timezoneHelper.js +10 -135
- package/src/utils/timezoneHelper.test.js +7 -7
- package/dist/components/Form/FieldList.js +0 -270
- package/dist/components/Form/Inputs/FieldButtons.js +0 -66
- package/dist/components/Form/Inputs/Number.js +0 -117
- package/dist/components/Form/Inputs/SmallButton.js +0 -91
- package/dist/components/Form/Inputs/Time.js +0 -86
- package/dist/components/Form/Inputs/Translation.js +0 -169
- package/src/components/AppFrame/ApplicationSelector/Header.js +0 -34
- package/src/components/AppFrame/ApplicationSelector/Header.test.js +0 -23
- package/src/components/Form/FieldList.js +0 -210
- package/src/components/Form/FieldList.test.js +0 -558
- package/src/components/Form/Inputs/FieldButtons.js +0 -90
- package/src/components/Form/Inputs/Number.js +0 -60
- package/src/components/Form/Inputs/Number.test.js +0 -435
- package/src/components/Form/Inputs/SmallButton.js +0 -37
- package/src/components/Form/Inputs/SmallButton.test.js +0 -65
- package/src/components/Form/Inputs/Time.js +0 -32
- package/src/components/Form/Inputs/Time.test.js +0 -41
- package/src/components/Form/Inputs/Translation.js +0 -93
- package/src/components/Form/Inputs/Translation.test.js +0 -204
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
"orc-shared.allRightsReserved": "All rights reserved.",
|
|
6
6
|
"orc-shared.appSelectorTitle": "Orckestra Commerce Cloud Applications List",
|
|
7
7
|
"orc-shared.applyChanges": "Apply Changes",
|
|
8
|
+
"orc-shared.april": "April",
|
|
9
|
+
"orc-shared.aprilShort": "Apr",
|
|
10
|
+
"orc-shared.august": "August",
|
|
11
|
+
"orc-shared.augustShort": "Aug",
|
|
8
12
|
"orc-shared.back": "Back",
|
|
9
13
|
"orc-shared.cancel": "Cancel",
|
|
10
14
|
"orc-shared.ccDescription": "The API-first commerce platform that makes omnichannel retail work.",
|
|
@@ -23,6 +27,8 @@
|
|
|
23
27
|
"orc-shared.dataTypeInteger": "Whole Number",
|
|
24
28
|
"orc-shared.dataTypeLookup": "Lookup List",
|
|
25
29
|
"orc-shared.dataTypeText": "Text",
|
|
30
|
+
"orc-shared.december": "December",
|
|
31
|
+
"orc-shared.decemberShort": "Dec",
|
|
26
32
|
"orc-shared.defaultApp": "Default application",
|
|
27
33
|
"orc-shared.delete": "Delete",
|
|
28
34
|
"orc-shared.description": "Description",
|
|
@@ -31,20 +37,42 @@
|
|
|
31
37
|
"orc-shared.embedded": "Embedded",
|
|
32
38
|
"orc-shared.error": "Error",
|
|
33
39
|
"orc-shared.errorUnknown": "Unknown Error",
|
|
40
|
+
"orc-shared.february": "February",
|
|
41
|
+
"orc-shared.februaryShort": "Feb",
|
|
34
42
|
"orc-shared.fieldIsRequired": "This field is required",
|
|
35
43
|
"orc-shared.fieldMustBeValidEmail": "This field must be a valid email",
|
|
36
44
|
"orc-shared.fieldMustBeValidPhoneExtension": "This field must be a valid phone extension",
|
|
37
45
|
"orc-shared.fieldMustBeValidPhoneNumber": "This field must be a valid phone number",
|
|
46
|
+
"orc-shared.friday": "Friday",
|
|
47
|
+
"orc-shared.fridayMin": "Fr",
|
|
48
|
+
"orc-shared.fridayShort": "Fri",
|
|
38
49
|
"orc-shared.help": "Help",
|
|
39
50
|
"orc-shared.inactive": "Inactive",
|
|
40
51
|
"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:",
|
|
41
52
|
"orc-shared.internetExplorerWarningTitle": "Improve your experience",
|
|
53
|
+
"orc-shared.january": "January",
|
|
54
|
+
"orc-shared.januaryShort": "Jan",
|
|
55
|
+
"orc-shared.july": "July",
|
|
56
|
+
"orc-shared.julyShort": "Jul",
|
|
57
|
+
"orc-shared.june": "June",
|
|
58
|
+
"orc-shared.juneShort": "Jun",
|
|
42
59
|
"orc-shared.lastModified": "Last Modified",
|
|
43
60
|
"orc-shared.lastModifiedBy": "Last Modified By",
|
|
61
|
+
"orc-shared.march": "March",
|
|
62
|
+
"orc-shared.marchShort": "Mar",
|
|
63
|
+
"orc-shared.may": "May",
|
|
64
|
+
"orc-shared.mayShort": "May",
|
|
65
|
+
"orc-shared.monday": "Monday",
|
|
66
|
+
"orc-shared.mondayMin": "Mo",
|
|
67
|
+
"orc-shared.mondayShort": "Mon",
|
|
44
68
|
"orc-shared.needToRefresh": "You are not authorized to execute a request. Click refresh to reload the application.",
|
|
45
69
|
"orc-shared.next": "Next",
|
|
46
70
|
"orc-shared.no": "No",
|
|
47
71
|
"orc-shared.notAvailable": "N/A",
|
|
72
|
+
"orc-shared.november": "November",
|
|
73
|
+
"orc-shared.novemberShort": "Nov",
|
|
74
|
+
"orc-shared.october": "October",
|
|
75
|
+
"orc-shared.octoberShort": "Oct",
|
|
48
76
|
"orc-shared.orcScriptsVersion": "Orc-Scripts Framework {version}",
|
|
49
77
|
"orc-shared.orcSecretVersion": "Orc-Secret Framework {version}",
|
|
50
78
|
"orc-shared.orcSharedVersion": "Orc-Shared Framework {version}",
|
|
@@ -52,25 +80,43 @@
|
|
|
52
80
|
"orc-shared.refresh": "Refresh",
|
|
53
81
|
"orc-shared.registry": "Registry",
|
|
54
82
|
"orc-shared.remove": "Remove",
|
|
83
|
+
"orc-shared.saturday": "Saturday",
|
|
84
|
+
"orc-shared.saturdayMin": "Sa",
|
|
85
|
+
"orc-shared.saturdayShort": "Sat",
|
|
55
86
|
"orc-shared.save": "Save",
|
|
56
87
|
"orc-shared.scopeChangeWithOpenedTabsConfirmation": "One or more entities opened will be closed. Would you like to change scope now?",
|
|
57
88
|
"orc-shared.scopeChangeWithOpenedTabsTitle": "Confirm scope change",
|
|
58
89
|
"orc-shared.scopeChangeWithUnsavedDataConfirmation": "One or more entities opened will be closed with unsaved data. Would you like to change scope?",
|
|
59
90
|
"orc-shared.scopeChangeWithUnsavedDataTitle": "Confirm scope change without saving data",
|
|
60
91
|
"orc-shared.scopeFilterPlaceholder": "Type a scope name",
|
|
92
|
+
"orc-shared.search": "Search",
|
|
93
|
+
"orc-shared.september": "September",
|
|
94
|
+
"orc-shared.septemberShort": "Sep",
|
|
61
95
|
"orc-shared.shared": "Shared",
|
|
62
96
|
"orc-shared.showFewerLanguages": "Show fewer languages",
|
|
63
97
|
"orc-shared.showMoreLanguages": "Show more languages",
|
|
64
98
|
"orc-shared.signOut": "Sign out",
|
|
65
99
|
"orc-shared.sortOrder": "Sort Order",
|
|
66
100
|
"orc-shared.status": "Status",
|
|
101
|
+
"orc-shared.sunday": "Sunday",
|
|
102
|
+
"orc-shared.sundayMin": "Su",
|
|
103
|
+
"orc-shared.sundayShort": "Sun",
|
|
67
104
|
"orc-shared.taskId": "Task ID",
|
|
68
105
|
"orc-shared.taskInProgressModalTitle": "Task In Progress",
|
|
69
106
|
"orc-shared.taskLogs": "Logs",
|
|
70
107
|
"orc-shared.taskStatus": "Status",
|
|
108
|
+
"orc-shared.thursday": "Thursday",
|
|
109
|
+
"orc-shared.thursdayMin": "Th",
|
|
110
|
+
"orc-shared.thursdayShort": "Thu",
|
|
111
|
+
"orc-shared.tuesday": "Tuesday",
|
|
112
|
+
"orc-shared.tuesdayMin": "Tu",
|
|
113
|
+
"orc-shared.tuesdayShort": "Tue",
|
|
71
114
|
"orc-shared.unsavedChanges": "This entity has unsaved changes. All changes will be lost.\n\nAre you sure you want to close it?",
|
|
72
115
|
"orc-shared.valueName": "Value Name",
|
|
73
116
|
"orc-shared.valueTypeWrapperFalse": "False",
|
|
74
117
|
"orc-shared.valueTypeWrapperTrue": "True",
|
|
118
|
+
"orc-shared.wednesday": "Wednesday",
|
|
119
|
+
"orc-shared.wednesdayMin": "We",
|
|
120
|
+
"orc-shared.wednesdayShort": "Wed",
|
|
75
121
|
"orc-shared.yes": "Yes"
|
|
76
122
|
}
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
"orc-shared.allRightsReserved": "Tout droits réservés.",
|
|
6
6
|
"orc-shared.appSelectorTitle": "Orckestra Commerce Cloud : Liste des applications",
|
|
7
7
|
"orc-shared.applyChanges": "Appliquer les modifications",
|
|
8
|
+
"orc-shared.april": "avril",
|
|
9
|
+
"orc-shared.aprilShort": "avr.",
|
|
10
|
+
"orc-shared.august": "août",
|
|
11
|
+
"orc-shared.augustShort": "août",
|
|
8
12
|
"orc-shared.back": "Précédent",
|
|
9
13
|
"orc-shared.cancel": "Annuler",
|
|
10
14
|
"orc-shared.ccDescription": "La plateforme de commerce « API-first » qui rend le commerce de détail omnicanal fluide.",
|
|
@@ -23,6 +27,8 @@
|
|
|
23
27
|
"orc-shared.dataTypeInteger": "Nombre entier",
|
|
24
28
|
"orc-shared.dataTypeLookup": "Index des listes",
|
|
25
29
|
"orc-shared.dataTypeText": "Texte",
|
|
30
|
+
"orc-shared.december": "décembre",
|
|
31
|
+
"orc-shared.decemberShort": "déc.",
|
|
26
32
|
"orc-shared.defaultApp": "Application par défaut",
|
|
27
33
|
"orc-shared.delete": "Supprimer",
|
|
28
34
|
"orc-shared.description": "Description",
|
|
@@ -31,20 +37,42 @@
|
|
|
31
37
|
"orc-shared.embedded": "Intégré",
|
|
32
38
|
"orc-shared.error": "Erreur",
|
|
33
39
|
"orc-shared.errorUnknown": "Erreur inconnue",
|
|
40
|
+
"orc-shared.february": "février",
|
|
41
|
+
"orc-shared.februaryShort": "févr.",
|
|
34
42
|
"orc-shared.fieldIsRequired": "Est requis",
|
|
35
43
|
"orc-shared.fieldMustBeValidEmail": "Ce champ doit contenir un courriel valide",
|
|
36
44
|
"orc-shared.fieldMustBeValidPhoneExtension": "Ce champ doit contenir une extension de téléphone valide",
|
|
37
45
|
"orc-shared.fieldMustBeValidPhoneNumber": "Ce champ doit contenir un numéro de téléphone valide",
|
|
46
|
+
"orc-shared.friday": "vendredi",
|
|
47
|
+
"orc-shared.fridayMin": "ve",
|
|
48
|
+
"orc-shared.fridayShort": "ven.",
|
|
38
49
|
"orc-shared.help": "Aide",
|
|
39
50
|
"orc-shared.inactive": "Inactif",
|
|
40
51
|
"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:",
|
|
41
52
|
"orc-shared.internetExplorerWarningTitle": "Améliorez votre expérience",
|
|
53
|
+
"orc-shared.january": "janvier",
|
|
54
|
+
"orc-shared.januaryShort": "janv.",
|
|
55
|
+
"orc-shared.july": "juillet",
|
|
56
|
+
"orc-shared.julyShort": "juil.",
|
|
57
|
+
"orc-shared.june": "juin",
|
|
58
|
+
"orc-shared.juneShort": "juin",
|
|
42
59
|
"orc-shared.lastModified": "Dernière date de modification",
|
|
43
60
|
"orc-shared.lastModifiedBy": "Modifié par",
|
|
61
|
+
"orc-shared.march": "mars",
|
|
62
|
+
"orc-shared.marchShort": "mars",
|
|
63
|
+
"orc-shared.may": "mai",
|
|
64
|
+
"orc-shared.mayShort": "mai",
|
|
65
|
+
"orc-shared.monday": "lundi",
|
|
66
|
+
"orc-shared.mondayMin": "lu",
|
|
67
|
+
"orc-shared.mondayShort": "lun.",
|
|
44
68
|
"orc-shared.needToRefresh": "Vous n'êtes pas autorisé à effectuer une requête. Veuillez cliquer sur Rafraîchir pour rafraîchir l’application.",
|
|
45
69
|
"orc-shared.next": "Suivant",
|
|
46
70
|
"orc-shared.no": "Non",
|
|
47
71
|
"orc-shared.notAvailable": "N/A",
|
|
72
|
+
"orc-shared.november": "novembre",
|
|
73
|
+
"orc-shared.novemberShort": "nov.",
|
|
74
|
+
"orc-shared.october": "octobre",
|
|
75
|
+
"orc-shared.octoberShort": "oct.",
|
|
48
76
|
"orc-shared.orcScriptsVersion": "Infrastructure Orc-Scripts {version}",
|
|
49
77
|
"orc-shared.orcSecretVersion": "Infrastructure Orc-Secret {version}",
|
|
50
78
|
"orc-shared.orcSharedVersion": "Infrastructure Orc-Shared {version}",
|
|
@@ -52,25 +80,43 @@
|
|
|
52
80
|
"orc-shared.refresh": "Rafraîchir",
|
|
53
81
|
"orc-shared.registry": "Régistre",
|
|
54
82
|
"orc-shared.remove": "Retirer",
|
|
83
|
+
"orc-shared.saturday": "samedi",
|
|
84
|
+
"orc-shared.saturdayMin": "sa",
|
|
85
|
+
"orc-shared.saturdayShort": "sam.",
|
|
55
86
|
"orc-shared.save": "Sauvegarder",
|
|
56
87
|
"orc-shared.scopeChangeWithOpenedTabsConfirmation": "Une ou plusieurs entités ouvertes seront fermées. Voulez-vous vraiment changer de Scope?",
|
|
57
88
|
"orc-shared.scopeChangeWithOpenedTabsTitle": "Confirmation du changement de Scope",
|
|
58
89
|
"orc-shared.scopeChangeWithUnsavedDataConfirmation": "Une ou plusieurs entités ouvertes seront fermées, entraînant la perte de données non-sauvegardées. Voulez-vous vraiment changer de Scope?",
|
|
59
90
|
"orc-shared.scopeChangeWithUnsavedDataTitle": "Confirmation du changement de Scope sans sauvegarde",
|
|
60
91
|
"orc-shared.scopeFilterPlaceholder": "Entrez un nom de Scope",
|
|
92
|
+
"orc-shared.search": "Recherche",
|
|
93
|
+
"orc-shared.september": "septembre",
|
|
94
|
+
"orc-shared.septemberShort": "sept.",
|
|
61
95
|
"orc-shared.shared": "Partagé",
|
|
62
96
|
"orc-shared.showFewerLanguages": "Afficher moins de langues",
|
|
63
97
|
"orc-shared.showMoreLanguages": "Afficher plus de langues",
|
|
64
98
|
"orc-shared.signOut": "Se déconnecter",
|
|
65
99
|
"orc-shared.sortOrder": "Ordre de tri",
|
|
66
100
|
"orc-shared.status": "Statut",
|
|
101
|
+
"orc-shared.sunday": "dimanche",
|
|
102
|
+
"orc-shared.sundayMin": "di",
|
|
103
|
+
"orc-shared.sundayShort": "dim.",
|
|
67
104
|
"orc-shared.taskId": "Identifiant de la tâche",
|
|
68
105
|
"orc-shared.taskInProgressModalTitle": "Tâche en cours",
|
|
69
106
|
"orc-shared.taskLogs": "Journal",
|
|
70
107
|
"orc-shared.taskStatus": "Statut",
|
|
108
|
+
"orc-shared.thursday": "jeudi",
|
|
109
|
+
"orc-shared.thursdayMin": "je",
|
|
110
|
+
"orc-shared.thursdayShort": "jeu.",
|
|
111
|
+
"orc-shared.tuesday": "mardi",
|
|
112
|
+
"orc-shared.tuesdayMin": "ma",
|
|
113
|
+
"orc-shared.tuesdayShort": "mar.",
|
|
71
114
|
"orc-shared.unsavedChanges": "Ce dossier contient des modifications qui ne sont sauvegardées. Si vous quittez, les modifications seront perdues.\n\nVoulez vous vraiment quitter?",
|
|
72
115
|
"orc-shared.valueName": "Nom de la valeur",
|
|
73
116
|
"orc-shared.valueTypeWrapperFalse": "Faux",
|
|
74
117
|
"orc-shared.valueTypeWrapperTrue": "Vrai",
|
|
118
|
+
"orc-shared.wednesday": "mercredi",
|
|
119
|
+
"orc-shared.wednesdayMin": "me",
|
|
120
|
+
"orc-shared.wednesdayShort": "mer.",
|
|
75
121
|
"orc-shared.yes": "Oui"
|
|
76
122
|
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import Immutable from "immutable";
|
|
2
|
+
import { isObject } from "lodash";
|
|
3
|
+
|
|
4
|
+
export const ListInfoPropertyName = "listInfo";
|
|
5
|
+
|
|
6
|
+
const standardInfoKeys = ["scope", "page", "filters", "sorting", "totalCount", "nextPageToLoad", "index", "list"];
|
|
7
|
+
|
|
8
|
+
class ListReducerHelper {
|
|
9
|
+
constructor(groupPropertyName) {
|
|
10
|
+
this.groupPropertyName = groupPropertyName;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
setNextPageToLoad = (state, nextPageToLoad) => {
|
|
14
|
+
return state.setIn([this.groupPropertyName, "nextPageToLoad"], nextPageToLoad);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
setResults = (state, listInfo, forceReset = false) => {
|
|
18
|
+
return state.withMutations(s => {
|
|
19
|
+
const page = s.getIn([this.groupPropertyName, "nextPageToLoad"]);
|
|
20
|
+
|
|
21
|
+
const entities = Immutable.fromJS(listInfo.indexEntities || {});
|
|
22
|
+
if (page === 1 || forceReset) {
|
|
23
|
+
s.setIn([this.groupPropertyName, "index"], entities);
|
|
24
|
+
s.setIn([this.groupPropertyName, "list"], Immutable.fromJS(listInfo.listEntities));
|
|
25
|
+
} else {
|
|
26
|
+
s.mergeIn([this.groupPropertyName, "index"], entities);
|
|
27
|
+
s.setIn(
|
|
28
|
+
[this.groupPropertyName, "list"],
|
|
29
|
+
s.getIn([this.groupPropertyName, "list"]).concat(Immutable.fromJS(listInfo.listEntities)),
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
s.setIn([this.groupPropertyName, "totalCount"], listInfo.totalCount);
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
setCurrentInfo = (state, { resetList, scope, filters, sorting, ...others } = {}) => {
|
|
38
|
+
return state.withMutations(s => {
|
|
39
|
+
if (resetList) {
|
|
40
|
+
s.setIn([this.groupPropertyName, "nextPageToLoad"], 1);
|
|
41
|
+
s.setIn([this.groupPropertyName, "page"], null);
|
|
42
|
+
s.setIn([this.groupPropertyName, "index"], Immutable.fromJS({}));
|
|
43
|
+
s.setIn([this.groupPropertyName, "list"], Immutable.fromJS([]));
|
|
44
|
+
s.setIn([this.groupPropertyName, "totalCount"], 0);
|
|
45
|
+
} else {
|
|
46
|
+
const nextPageToLoad = state.getIn([this.groupPropertyName, "nextPageToLoad"]);
|
|
47
|
+
s.setIn([this.groupPropertyName, "nextPageToLoad"], nextPageToLoad);
|
|
48
|
+
s.setIn([this.groupPropertyName, "page"], nextPageToLoad);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
s.setIn([this.groupPropertyName, "scope"], scope ?? null);
|
|
52
|
+
s.setIn([this.groupPropertyName, "filters"], Immutable.fromJS(filters ?? null));
|
|
53
|
+
s.setIn([this.groupPropertyName, "sorting"], Immutable.fromJS(sorting ?? null));
|
|
54
|
+
|
|
55
|
+
const otherKeys = Object.keys(others);
|
|
56
|
+
|
|
57
|
+
s.get(this.groupPropertyName)
|
|
58
|
+
.keySeq()
|
|
59
|
+
.forEach(key => {
|
|
60
|
+
if (!standardInfoKeys.includes(key) && !otherKeys.includes(key)) {
|
|
61
|
+
s.removeIn([this.groupPropertyName, key]);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
otherKeys.forEach(key => {
|
|
66
|
+
s.setIn([this.groupPropertyName, key], isObject(others[key]) ? Immutable.fromJS(others[key]) : others[key]);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
addIndexWithMutations = (mutator, id, value) => {
|
|
72
|
+
mutator.setIn([this.groupPropertyName, "index", id], Immutable.fromJS(value));
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
appendIdToListWithMutations = (mutator, id) => {
|
|
76
|
+
mutator.setIn([this.groupPropertyName, "list"], mutator.getIn([this.groupPropertyName, "list"]).push(id));
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
updateIndexWithMutations = (mutator, id, value) => {
|
|
80
|
+
const key = [this.groupPropertyName, "index", id];
|
|
81
|
+
if (mutator.getIn(key)) {
|
|
82
|
+
mutator.setIn(key, Immutable.fromJS(value));
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
removeFromIndexWithMutations = (mutator, id) => {
|
|
87
|
+
mutator.removeIn([this.groupPropertyName, "index", id]);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
resetListInfo = (state, propertiesToKeep = {}) => {
|
|
91
|
+
let updatedState = state
|
|
92
|
+
.setIn([this.groupPropertyName, "nextPageToLoad"], 1)
|
|
93
|
+
.setIn([this.groupPropertyName, "index"], Immutable.fromJS({}))
|
|
94
|
+
.setIn([this.groupPropertyName, "list"], Immutable.fromJS([]))
|
|
95
|
+
.setIn([this.groupPropertyName, "totalCount"], 0);
|
|
96
|
+
|
|
97
|
+
if (!propertiesToKeep.filters) {
|
|
98
|
+
updatedState = updatedState.setIn([this.groupPropertyName, "filters"], null);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (!propertiesToKeep.sorting) {
|
|
102
|
+
updatedState = updatedState.setIn([this.groupPropertyName, "sorting"], null);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (!propertiesToKeep.scope) {
|
|
106
|
+
updatedState = updatedState.setIn([this.groupPropertyName, "scope"], null);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (!propertiesToKeep.page) {
|
|
110
|
+
updatedState = updatedState.setIn([this.groupPropertyName, "page"], null);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return updatedState;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
class ListSelectorHelper {
|
|
118
|
+
constructor(groupPropertyName) {
|
|
119
|
+
this.groupPropertyName = groupPropertyName;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
getCurrentInfo = state => {
|
|
123
|
+
const listInfo = state.get(this.groupPropertyName) || Immutable.Map();
|
|
124
|
+
|
|
125
|
+
const info = {
|
|
126
|
+
currentScope: listInfo.get("scope"),
|
|
127
|
+
currentPage: listInfo.get("page"),
|
|
128
|
+
currentFilters: listInfo.get("filters")?.toJS(),
|
|
129
|
+
currentSorting: listInfo.get("sorting")?.toJS(),
|
|
130
|
+
totalCount: listInfo.get("totalCount"),
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
listInfo.mapKeys((key, value) => {
|
|
134
|
+
if (standardInfoKeys.includes(key)) {
|
|
135
|
+
// standard key, nothing to do
|
|
136
|
+
} else {
|
|
137
|
+
info[key] = value?.toJS ? value.toJS() : value;
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
return info;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
getIndex = state => {
|
|
145
|
+
return state.getIn([this.groupPropertyName, "index"]);
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
getList = state => {
|
|
149
|
+
return state.getIn([this.groupPropertyName, "list"]);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
getNextPageToLoad = state => {
|
|
153
|
+
return state.getIn([this.groupPropertyName, "nextPageToLoad"]);
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
class ListHelper {
|
|
158
|
+
constructor(groupPropertyName = ListInfoPropertyName) {
|
|
159
|
+
this.groupPropertyName = groupPropertyName;
|
|
160
|
+
this.reducer = new ListReducerHelper(this.groupPropertyName);
|
|
161
|
+
this.selector = new ListSelectorHelper(this.groupPropertyName);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
static defaultInstance = new ListHelper();
|
|
165
|
+
static reducer = ListHelper.defaultInstance.reducer;
|
|
166
|
+
static selector = ListHelper.defaultInstance.selector;
|
|
167
|
+
static createInitialListInfo = ListHelper.defaultInstance.createInitialListInfo;
|
|
168
|
+
static createListInfoFrom = ListHelper.defaultInstance.createListInfoFrom;
|
|
169
|
+
|
|
170
|
+
createInitialListInfo = (additionalValues = null) => {
|
|
171
|
+
return this.createListInfoFrom({
|
|
172
|
+
...additionalValues,
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
createListInfoFrom = ({
|
|
177
|
+
sorting,
|
|
178
|
+
filters,
|
|
179
|
+
scope,
|
|
180
|
+
page,
|
|
181
|
+
nextPageToLoad,
|
|
182
|
+
index,
|
|
183
|
+
list,
|
|
184
|
+
totalCount,
|
|
185
|
+
...additionalValues
|
|
186
|
+
} = {}) => {
|
|
187
|
+
return {
|
|
188
|
+
[this.groupPropertyName]: {
|
|
189
|
+
sorting: sorting ?? null,
|
|
190
|
+
filters: filters ?? null,
|
|
191
|
+
scope: scope ?? null,
|
|
192
|
+
page: page ?? null,
|
|
193
|
+
nextPageToLoad: nextPageToLoad ?? 1,
|
|
194
|
+
index: index ?? {},
|
|
195
|
+
list: list ?? [],
|
|
196
|
+
totalCount: totalCount ?? 0,
|
|
197
|
+
...additionalValues,
|
|
198
|
+
},
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export default ListHelper;
|