@k-int/stripes-kint-components 1.5.0 → 2.0.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/CHANGELOG.md +40 -1
- package/es/index.js +80 -25
- package/es/lib/ActionList/ActionList.js +92 -33
- package/es/lib/ActionList/ActionListFieldArray.js +202 -104
- package/es/lib/ActionList/index.js +7 -3
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +198 -0
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +321 -0
- package/es/lib/CustomProperties/Config/CustomPropertiesView.js +166 -0
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +357 -0
- package/es/lib/CustomProperties/Config/index.js +41 -0
- package/es/lib/EditableRefdataList/EditableRefdataList.js +69 -24
- package/es/lib/EditableRefdataList/index.js +7 -3
- package/es/lib/EditableSettingsList/EditableSettingsList.js +90 -0
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +90 -0
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +181 -0
- package/es/lib/{Settings → EditableSettingsList/SettingField}/EditSettingValue.js +72 -9
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +447 -0
- package/es/lib/{Settings → EditableSettingsList/SettingField}/RenderSettingValue.js +45 -7
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +495 -0
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +187 -0
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +180 -0
- package/es/lib/EditableSettingsList/SettingField/index.js +35 -0
- package/es/lib/EditableSettingsList/index.js +35 -0
- package/es/lib/FormModal/FormModal.js +126 -0
- package/es/lib/FormModal/index.js +19 -0
- package/es/lib/NoResultsMessage/NoResultsMessage.js +65 -32
- package/es/lib/NoResultsMessage/index.js +7 -3
- package/es/lib/QueryTypedown/QueryTypedown.js +48 -9
- package/es/lib/QueryTypedown/index.js +6 -2
- package/es/lib/RefdataButtons/RefdataButtons.js +143 -0
- package/es/lib/RefdataButtons/index.js +19 -0
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +194 -140
- package/es/lib/SASQLookupComponent/index.js +6 -2
- package/es/lib/SASQRoute/SASQRoute.js +55 -18
- package/es/lib/SASQRoute/index.js +6 -2
- package/es/lib/SASQViewComponent/SASQViewComponent.js +50 -11
- package/es/lib/SASQViewComponent/index.js +6 -2
- package/es/lib/SearchField/SearchField.js +48 -13
- package/es/lib/SearchField/index.js +6 -2
- package/es/lib/SettingPage/SettingPage.js +99 -0
- package/es/lib/SettingPage/SettingPagePane.js +83 -0
- package/es/lib/SettingPage/index.js +27 -0
- package/es/lib/Typedown/Typedown.js +174 -99
- package/es/lib/Typedown/index.js +6 -2
- package/es/lib/constants/customProperties.js +60 -0
- package/es/lib/constants/eventCodes.js +31 -1
- package/es/lib/contexts/SettingsContext.js +41 -0
- package/es/lib/contexts/index.js +19 -0
- package/es/lib/hooks/index.js +44 -10
- package/es/lib/hooks/settingsHooks/index.js +27 -0
- package/es/lib/hooks/settingsHooks/useSettingSection.js +74 -0
- package/es/lib/hooks/settingsHooks/useSettings.js +175 -0
- package/es/lib/hooks/typedownHooks/index.js +8 -28
- package/es/lib/hooks/typedownHooks/useTypedown.js +129 -12
- package/es/lib/hooks/typedownHooks/useTypedownData.js +35 -2
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +39 -6
- package/es/lib/hooks/useActiveElement.js +33 -2
- package/es/lib/hooks/useCustomProperties.js +112 -0
- package/es/lib/hooks/useHelperApp.js +44 -11
- package/es/lib/hooks/useKiwtFieldArray.js +37 -4
- package/es/lib/hooks/useKiwtSASQuery.js +43 -9
- package/es/lib/hooks/useLocalStorageState.js +37 -4
- package/es/lib/hooks/useMutateCustomProperties.js +143 -0
- package/es/lib/hooks/useMutateRefdataValue.js +42 -9
- package/es/lib/hooks/useQIndex.js +42 -9
- package/es/lib/hooks/useRefdata.js +43 -16
- package/es/lib/hooks/useTemplates.js +36 -3
- package/es/lib/utils/buildUrl.js +43 -10
- package/es/lib/utils/generateKiwtQuery.js +33 -4
- package/es/lib/utils/generateKiwtQueryParams.js +31 -2
- package/es/lib/utils/index.js +41 -5
- package/es/lib/utils/refdataOptions.js +43 -0
- package/es/lib/utils/renderHelpText.js +109 -0
- package/es/lib/utils/selectorSafe.js +31 -2
- package/es/lib/utils/sortByLabel.js +55 -0
- package/es/lib/utils/toCamelCase.js +48 -0
- package/jest.config.js +15 -1
- package/package.json +19 -10
- package/src/index.js +25 -10
- package/src/lib/ActionList/ActionList.js +32 -22
- package/src/lib/ActionList/ActionListFieldArray.js +56 -10
- package/src/lib/ActionList/README.md +5 -1
- package/src/lib/ActionList/index.js +1 -1
- package/src/lib/CustomProperties/Config/CustomPropertiesLookup.js +111 -0
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +237 -0
- package/src/lib/CustomProperties/Config/CustomPropertiesView.js +150 -0
- package/src/lib/CustomProperties/Config/CustomPropertyForm.js +295 -0
- package/src/lib/CustomProperties/Config/index.js +4 -0
- package/src/lib/EditableRefdataList/EditableRefdataList.js +10 -5
- package/src/lib/EditableRefdataList/index.js +1 -1
- package/src/lib/{Settings → EditableSettingsList}/EditableSettingsList.js +0 -0
- package/src/lib/{Settings → EditableSettingsList}/EditableSettingsListFieldArray.js +2 -2
- package/src/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +111 -0
- package/src/lib/{Settings → EditableSettingsList/SettingField}/EditSettingValue.js +24 -1
- package/src/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +379 -0
- package/src/lib/{Settings → EditableSettingsList/SettingField}/RenderSettingValue.js +2 -1
- package/src/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +368 -0
- package/src/lib/{Settings → EditableSettingsList/SettingField}/SettingField.js +7 -7
- package/src/lib/EditableSettingsList/SettingField/SettingField.test.js +80 -0
- package/src/lib/EditableSettingsList/SettingField/index.js +3 -0
- package/src/lib/EditableSettingsList/index.js +3 -0
- package/src/lib/FormModal/FormModal.js +71 -0
- package/src/lib/FormModal/index.js +1 -0
- package/src/lib/NoResultsMessage/NoResultsMessage.js +2 -2
- package/src/lib/NoResultsMessage/index.js +1 -1
- package/src/lib/{Settings → RefdataButtons}/RefdataButtons.js +1 -1
- package/src/lib/RefdataButtons/index.js +1 -0
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +7 -1
- package/src/lib/{Settings → SettingPage}/SettingPage.js +5 -5
- package/src/lib/{Settings → SettingPage}/SettingPagePane.js +12 -2
- package/src/lib/SettingPage/index.js +2 -0
- package/src/lib/Typedown/Typedown.js +52 -9
- package/src/lib/constants/customProperties.js +9 -0
- package/src/lib/{Settings → contexts}/SettingsContext.js +1 -1
- package/src/lib/contexts/index.js +2 -0
- package/src/lib/hooks/index.js +3 -0
- package/src/lib/hooks/settingsHooks/index.js +2 -0
- package/src/lib/{Settings → hooks/settingsHooks}/useSettingSection.js +0 -0
- package/src/lib/{Settings → hooks/settingsHooks}/useSettings.js +14 -6
- package/src/lib/hooks/typedownHooks/index.js +0 -3
- package/src/lib/hooks/typedownHooks/useTypedown.js +93 -11
- package/src/lib/hooks/useCustomProperties.js +73 -0
- package/src/lib/hooks/useMutateCustomProperties.js +62 -0
- package/src/lib/hooks/useRefdata.js +2 -8
- package/src/lib/utils/index.js +7 -0
- package/src/lib/utils/refdataOptions.js +7 -0
- package/src/lib/{Settings/utils → utils}/renderHelpText.js +1 -1
- package/src/lib/{Settings/utils → utils}/sortByLabel.js +1 -1
- package/src/lib/{Settings/utils → utils}/toCamelCase.js +0 -0
- package/test/helpers/index.js +1 -0
- package/test/helpers/translationsProperties.js +40 -0
- package/test/jest/helpers/KintHarness.js +36 -0
- package/test/jest/helpers/index.js +2 -0
- package/test/jest/helpers/renderWithKintHarness.js +15 -0
- package/test/jest/jest-transformer.js +4 -0
- package/test/jest/setupTests.js +1 -0
- package/translations/stripes-kint-components/en.json +48 -1
- package/yarn-error.log +14118 -0
- package/babelOptions.js +0 -30
- package/es/lib/Settings/EditableSettingsList.js +0 -57
- package/es/lib/Settings/EditableSettingsListFieldArray.js +0 -59
- package/es/lib/Settings/RefdataButtons.js +0 -100
- package/es/lib/Settings/SettingField.js +0 -144
- package/es/lib/Settings/SettingPage.js +0 -64
- package/es/lib/Settings/SettingPagePane.js +0 -43
- package/es/lib/Settings/SettingsContext.js +0 -18
- package/es/lib/Settings/index.js +0 -71
- package/es/lib/Settings/useSettingSection.js +0 -41
- package/es/lib/Settings/useSettings.js +0 -126
- package/es/lib/Settings/utils/index.js +0 -31
- package/es/lib/Settings/utils/renderHelpText.js +0 -57
- package/es/lib/Settings/utils/sortByLabel.js +0 -26
- package/es/lib/Settings/utils/toCamelCase.js +0 -19
- package/es/lib/TypeDown/TypeDown.js +0 -209
- package/es/lib/TypeDown/index.js +0 -15
- package/es/lib/hooks/typedownHooks/useTypedownFooter.js +0 -47
- package/es/lib/hooks/typedownHooks/useTypedownList.js +0 -45
- package/es/lib/hooks/typedownHooks/useTypedownSearchField.js +0 -47
- package/es/lib/utils/getFocusableElements.js +0 -132
- package/src/lib/Settings/index.js +0 -8
- package/src/lib/Settings/utils/index.js +0 -3
- package/src/lib/TypeDown/README.md +0 -1
- package/src/lib/TypeDown/TypeDown.js +0 -226
- package/src/lib/TypeDown/index.js +0 -1
- package/src/lib/hooks/typedownHooks/useTypedownFooter.js +0 -43
- package/src/lib/hooks/typedownHooks/useTypedownList.js +0 -36
- package/src/lib/hooks/typedownHooks/useTypedownSearchField.js +0 -39
- package/src/lib/utils/getFocusableElements.js +0 -99
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
## 2.0.0 2022-03-04
|
|
2
|
+
* ActionList updates
|
|
3
|
+
* Formatter now accepted, will apply while not editing a row
|
|
4
|
+
* MCL props not specified in prop list will be passed directly to MCL
|
|
5
|
+
* fieldComponents prop allows for rendering of a custom Field for use in editing a specific field on a row
|
|
6
|
+
* Removed deprecated TypeDown component (replaced by Typedown in v1.3.0)
|
|
7
|
+
* Typedown
|
|
8
|
+
* Added isSelected prop
|
|
9
|
+
* Added id prop
|
|
10
|
+
* Added label prop
|
|
11
|
+
* Added required prop
|
|
12
|
+
* Added endOfList prop
|
|
13
|
+
* FormModal component
|
|
14
|
+
* Custom Property configuration components
|
|
15
|
+
* CustomPropertiesLookup
|
|
16
|
+
* CustomPropertiesView
|
|
17
|
+
* CustomPropertiesSettings
|
|
18
|
+
* Added jest artifacts one level below root to gitignore
|
|
19
|
+
## 1.7.0 Released 20th January 2022
|
|
20
|
+
* EditableRefdataList fixes and sorting
|
|
21
|
+
* Fixes to create action in actionlist
|
|
22
|
+
* creatableFields added to ActionList
|
|
23
|
+
* refdataOptions -- a default SASQ options setup is now exported
|
|
24
|
+
* Added FilterPaneHeaderComponent to SASQLookupComponent
|
|
25
|
+
|
|
26
|
+
## 1.6.0 Released 10th December 2021
|
|
27
|
+
* RefdataButtons now exposed
|
|
28
|
+
* Jest testing framework now up and operational
|
|
29
|
+
* As part of that, now contains dev-dependencies on:
|
|
30
|
+
* react-router-dom
|
|
31
|
+
* @folio/stripes
|
|
32
|
+
* react-intl
|
|
33
|
+
* regenerator-runtime
|
|
34
|
+
* Multitude of linting fixes
|
|
35
|
+
* Refactor of settings components
|
|
36
|
+
* Refactor of typedown hooks
|
|
37
|
+
* Typedown now uses focus functions from stripes-components rather than internal copy
|
|
38
|
+
* Fixed typedown footer focus bug
|
|
39
|
+
|
|
1
40
|
## 1.5.0 Released 9th December 2021
|
|
2
41
|
* useKiwtFieldArray hook
|
|
3
42
|
|
|
@@ -37,4 +76,4 @@
|
|
|
37
76
|
* Settings files migrated away from ui-rs
|
|
38
77
|
* useTemplates hook created
|
|
39
78
|
* useRefdata hook created
|
|
40
|
-
* Set up npm publishing to the @k-int scope
|
|
79
|
+
* Set up npm publishing to the @k-int scope
|
package/es/index.js
CHANGED
|
@@ -1,86 +1,107 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
Object.defineProperty(exports, "ActionList", {
|
|
7
9
|
enumerable: true,
|
|
8
10
|
get: function get() {
|
|
9
|
-
return _ActionList.
|
|
11
|
+
return _ActionList.default;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "CustomPropertiesLookup", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return _Config.CustomPropertiesLookup;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "CustomPropertiesSettings", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function get() {
|
|
23
|
+
return _Config.CustomPropertiesSettings;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "CustomPropertiesView", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function get() {
|
|
29
|
+
return _Config.CustomPropertiesView;
|
|
10
30
|
}
|
|
11
31
|
});
|
|
12
32
|
Object.defineProperty(exports, "EditableRefdataList", {
|
|
13
33
|
enumerable: true,
|
|
14
34
|
get: function get() {
|
|
15
|
-
return _EditableRefdataList.
|
|
35
|
+
return _EditableRefdataList.default;
|
|
16
36
|
}
|
|
17
37
|
});
|
|
18
38
|
Object.defineProperty(exports, "NoResultsMessage", {
|
|
19
39
|
enumerable: true,
|
|
20
40
|
get: function get() {
|
|
21
|
-
return _NoResultsMessage.
|
|
41
|
+
return _NoResultsMessage.default;
|
|
22
42
|
}
|
|
23
43
|
});
|
|
24
44
|
Object.defineProperty(exports, "QueryTypedown", {
|
|
25
45
|
enumerable: true,
|
|
26
46
|
get: function get() {
|
|
27
|
-
return _QueryTypedown
|
|
47
|
+
return _QueryTypedown.default;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "RefdataButtons", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function get() {
|
|
53
|
+
return _RefdataButtons.default;
|
|
28
54
|
}
|
|
29
55
|
});
|
|
30
56
|
Object.defineProperty(exports, "SASQLookupComponent", {
|
|
31
57
|
enumerable: true,
|
|
32
58
|
get: function get() {
|
|
33
|
-
return _SASQLookupComponent
|
|
59
|
+
return _SASQLookupComponent.default;
|
|
34
60
|
}
|
|
35
61
|
});
|
|
36
62
|
Object.defineProperty(exports, "SASQRoute", {
|
|
37
63
|
enumerable: true,
|
|
38
64
|
get: function get() {
|
|
39
|
-
return _SASQRoute
|
|
65
|
+
return _SASQRoute.default;
|
|
40
66
|
}
|
|
41
67
|
});
|
|
42
68
|
Object.defineProperty(exports, "SASQViewComponent", {
|
|
43
69
|
enumerable: true,
|
|
44
70
|
get: function get() {
|
|
45
|
-
return _SASQViewComponent
|
|
71
|
+
return _SASQViewComponent.default;
|
|
46
72
|
}
|
|
47
73
|
});
|
|
48
74
|
Object.defineProperty(exports, "SearchField", {
|
|
49
75
|
enumerable: true,
|
|
50
76
|
get: function get() {
|
|
51
|
-
return _SearchField
|
|
77
|
+
return _SearchField.default;
|
|
52
78
|
}
|
|
53
79
|
});
|
|
54
80
|
Object.defineProperty(exports, "SettingPage", {
|
|
55
81
|
enumerable: true,
|
|
56
82
|
get: function get() {
|
|
57
|
-
return
|
|
83
|
+
return _SettingPage.SettingPage;
|
|
58
84
|
}
|
|
59
85
|
});
|
|
60
86
|
Object.defineProperty(exports, "SettingPagePane", {
|
|
61
87
|
enumerable: true,
|
|
62
88
|
get: function get() {
|
|
63
|
-
return
|
|
89
|
+
return _SettingPage.SettingPagePane;
|
|
64
90
|
}
|
|
65
91
|
});
|
|
66
92
|
Object.defineProperty(exports, "SettingsContext", {
|
|
67
93
|
enumerable: true,
|
|
68
94
|
get: function get() {
|
|
69
|
-
return
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "TypeDown", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _TypeDown["default"];
|
|
95
|
+
return _contexts.SettingsContext;
|
|
76
96
|
}
|
|
77
97
|
});
|
|
78
98
|
Object.defineProperty(exports, "Typedown", {
|
|
79
99
|
enumerable: true,
|
|
80
100
|
get: function get() {
|
|
81
|
-
return _Typedown
|
|
101
|
+
return _Typedown.default;
|
|
82
102
|
}
|
|
83
103
|
});
|
|
104
|
+
exports.customPropertyContants = void 0;
|
|
84
105
|
Object.defineProperty(exports, "generateKiwtQuery", {
|
|
85
106
|
enumerable: true,
|
|
86
107
|
get: function get() {
|
|
@@ -93,6 +114,12 @@ Object.defineProperty(exports, "generateKiwtQueryParams", {
|
|
|
93
114
|
return _utils.generateKiwtQueryParams;
|
|
94
115
|
}
|
|
95
116
|
});
|
|
117
|
+
Object.defineProperty(exports, "refdataOptions", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function get() {
|
|
120
|
+
return _utils.refdataOptions;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
96
123
|
Object.defineProperty(exports, "selectorSafe", {
|
|
97
124
|
enumerable: true,
|
|
98
125
|
get: function get() {
|
|
@@ -105,6 +132,12 @@ Object.defineProperty(exports, "useActiveElement", {
|
|
|
105
132
|
return _hooks.useActiveElement;
|
|
106
133
|
}
|
|
107
134
|
});
|
|
135
|
+
Object.defineProperty(exports, "useCustomProperties", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function get() {
|
|
138
|
+
return _hooks.useCustomProperties;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
108
141
|
Object.defineProperty(exports, "useHelperApp", {
|
|
109
142
|
enumerable: true,
|
|
110
143
|
get: function get() {
|
|
@@ -129,6 +162,12 @@ Object.defineProperty(exports, "useLocalStorageState", {
|
|
|
129
162
|
return _hooks.useLocalStorageState;
|
|
130
163
|
}
|
|
131
164
|
});
|
|
165
|
+
Object.defineProperty(exports, "useMutateCustomProperties", {
|
|
166
|
+
enumerable: true,
|
|
167
|
+
get: function get() {
|
|
168
|
+
return _hooks.useMutateCustomProperties;
|
|
169
|
+
}
|
|
170
|
+
});
|
|
132
171
|
Object.defineProperty(exports, "useMutateRefdataValue", {
|
|
133
172
|
enumerable: true,
|
|
134
173
|
get: function get() {
|
|
@@ -150,7 +189,7 @@ Object.defineProperty(exports, "useRefdata", {
|
|
|
150
189
|
Object.defineProperty(exports, "useSettings", {
|
|
151
190
|
enumerable: true,
|
|
152
191
|
get: function get() {
|
|
153
|
-
return
|
|
192
|
+
return _hooks.useSettings;
|
|
154
193
|
}
|
|
155
194
|
});
|
|
156
195
|
Object.defineProperty(exports, "useTemplates", {
|
|
@@ -164,13 +203,13 @@ var _hooks = require("./lib/hooks");
|
|
|
164
203
|
|
|
165
204
|
var _utils = require("./lib/utils");
|
|
166
205
|
|
|
167
|
-
var
|
|
206
|
+
var _contexts = require("./lib/contexts");
|
|
168
207
|
|
|
169
|
-
var
|
|
208
|
+
var _SettingPage = require("./lib/SettingPage");
|
|
170
209
|
|
|
171
|
-
var
|
|
210
|
+
var _ActionList = _interopRequireDefault(require("./lib/ActionList"));
|
|
172
211
|
|
|
173
|
-
var
|
|
212
|
+
var _EditableRefdataList = _interopRequireDefault(require("./lib/EditableRefdataList"));
|
|
174
213
|
|
|
175
214
|
var _Typedown = _interopRequireDefault(require("./lib/Typedown"));
|
|
176
215
|
|
|
@@ -184,6 +223,22 @@ var _SASQLookupComponent = _interopRequireDefault(require("./lib/SASQLookupCompo
|
|
|
184
223
|
|
|
185
224
|
var _SASQViewComponent = _interopRequireDefault(require("./lib/SASQViewComponent"));
|
|
186
225
|
|
|
187
|
-
var _NoResultsMessage = require("./lib/NoResultsMessage");
|
|
226
|
+
var _NoResultsMessage = _interopRequireDefault(require("./lib/NoResultsMessage"));
|
|
227
|
+
|
|
228
|
+
var _RefdataButtons = _interopRequireDefault(require("./lib/RefdataButtons"));
|
|
229
|
+
|
|
230
|
+
var _Config = require("./lib/CustomProperties/Config");
|
|
231
|
+
|
|
232
|
+
var _customPropertyContants = _interopRequireWildcard(require("./lib/constants/customProperties"));
|
|
233
|
+
|
|
234
|
+
exports.customPropertyContants = _customPropertyContants;
|
|
235
|
+
|
|
236
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
237
|
+
|
|
238
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
239
|
+
|
|
240
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
188
241
|
|
|
189
|
-
|
|
242
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
243
|
+
return a;
|
|
244
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -17,15 +17,40 @@ var _finalFormArrays = _interopRequireDefault(require("final-form-arrays"));
|
|
|
17
17
|
|
|
18
18
|
var _ActionListFieldArray = _interopRequireDefault(require("./ActionListFieldArray"));
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
|
|
22
|
+
var _excluded = ["actionAssigner", "actionCalls", "columnMapping", "contentData", "creatableFields", "editableFields", "fieldComponents", "visibleFields"];
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
26
|
+
(function () {
|
|
27
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
28
|
+
enterModule && enterModule(module);
|
|
29
|
+
})();
|
|
30
|
+
|
|
31
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32
|
+
|
|
33
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
34
|
+
|
|
35
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
36
|
+
|
|
37
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
38
|
+
|
|
39
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
40
|
+
|
|
41
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
42
|
+
return a;
|
|
43
|
+
};
|
|
21
44
|
|
|
22
45
|
var propTypes = {
|
|
23
|
-
actionAssigner: _propTypes
|
|
24
|
-
actionCalls: _propTypes
|
|
25
|
-
columnMapping: _propTypes
|
|
26
|
-
contentData: _propTypes
|
|
27
|
-
|
|
28
|
-
|
|
46
|
+
actionAssigner: _propTypes.default.func,
|
|
47
|
+
actionCalls: _propTypes.default.object,
|
|
48
|
+
columnMapping: _propTypes.default.object,
|
|
49
|
+
contentData: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
50
|
+
creatableFields: _propTypes.default.object,
|
|
51
|
+
editableFields: _propTypes.default.object,
|
|
52
|
+
fieldComponents: _propTypes.default.object,
|
|
53
|
+
visibleFields: _propTypes.default.arrayOf(_propTypes.default.string)
|
|
29
54
|
};
|
|
30
55
|
|
|
31
56
|
var ActionList = function ActionList(_ref) {
|
|
@@ -34,35 +59,69 @@ var ActionList = function ActionList(_ref) {
|
|
|
34
59
|
actionCalls = _ref$actionCalls === void 0 ? {} : _ref$actionCalls,
|
|
35
60
|
columnMapping = _ref.columnMapping,
|
|
36
61
|
contentData = _ref.contentData,
|
|
62
|
+
_ref$creatableFields = _ref.creatableFields,
|
|
63
|
+
creatableFields = _ref$creatableFields === void 0 ? {} : _ref$creatableFields,
|
|
37
64
|
_ref$editableFields = _ref.editableFields,
|
|
38
65
|
editableFields = _ref$editableFields === void 0 ? {} : _ref$editableFields,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
_ref$fieldComponents = _ref.fieldComponents,
|
|
67
|
+
fieldComponents = _ref$fieldComponents === void 0 ? {} : _ref$fieldComponents,
|
|
68
|
+
visibleFields = _ref.visibleFields,
|
|
69
|
+
mclProps = _objectWithoutProperties(_ref, _excluded);
|
|
70
|
+
|
|
71
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
72
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Form, {
|
|
73
|
+
enableReinitialize: true,
|
|
74
|
+
initialValues: {
|
|
75
|
+
contentData: contentData
|
|
76
|
+
},
|
|
77
|
+
mutators: _finalFormArrays.default,
|
|
78
|
+
onSubmit: actionCalls.edit,
|
|
79
|
+
subscription: {
|
|
80
|
+
contentData: true
|
|
81
|
+
},
|
|
82
|
+
children: function children() {
|
|
83
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("form", {
|
|
84
|
+
onSubmit: function onSubmit(e) {
|
|
85
|
+
e.preventDefault();
|
|
86
|
+
},
|
|
87
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalFormArrays.FieldArray, _objectSpread({
|
|
88
|
+
actionAssigner: actionAssigner,
|
|
89
|
+
actionCalls: actionCalls,
|
|
90
|
+
columnMapping: columnMapping,
|
|
91
|
+
component: _ActionListFieldArray.default,
|
|
92
|
+
creatableFields: creatableFields,
|
|
93
|
+
editableFields: editableFields,
|
|
94
|
+
fieldComponents: fieldComponents,
|
|
95
|
+
name: "contentData",
|
|
96
|
+
visibleFields: visibleFields
|
|
97
|
+
}, mclProps))
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
})
|
|
63
101
|
});
|
|
64
102
|
};
|
|
65
103
|
|
|
66
104
|
ActionList.propTypes = propTypes;
|
|
67
105
|
var _default = ActionList;
|
|
68
|
-
|
|
106
|
+
var _default2 = _default;
|
|
107
|
+
exports.default = _default2;
|
|
108
|
+
;
|
|
109
|
+
|
|
110
|
+
(function () {
|
|
111
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
112
|
+
|
|
113
|
+
if (!reactHotLoader) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
reactHotLoader.register(propTypes, "propTypes", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionList.js");
|
|
118
|
+
reactHotLoader.register(ActionList, "ActionList", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionList.js");
|
|
119
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionList.js");
|
|
120
|
+
})();
|
|
121
|
+
|
|
122
|
+
;
|
|
123
|
+
|
|
124
|
+
(function () {
|
|
125
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
126
|
+
leaveModule && leaveModule(module);
|
|
127
|
+
})();
|