@k-int/stripes-kint-components 2.0.0 → 2.0.1
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 +8 -0
- package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +109 -0
- package/es/artifacts/coverage-jest/lcov-report/prettify.js +998 -0
- package/es/artifacts/coverage-jest/lcov-report/sorter.js +238 -0
- package/es/lib/ActionList/ActionListFieldArray.js +5 -1
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +6 -1
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +3 -0
- package/es/lib/EditableRefdataList/EditableRefdataList.js +0 -1
- package/junit.xml +79 -0
- package/package.json +2 -2
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +277 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +913 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +418 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +805 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesView.js.html +535 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +973 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +176 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +97 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +373 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +223 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +211 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +376 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +262 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +436 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +161 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +94 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +94 -0
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +298 -0
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +319 -0
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +184 -0
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +370 -0
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +949 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +274 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +250 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +214 -0
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +211 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +178 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +91 -0
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +916 -0
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +88 -0
- package/src/artifacts/coverage-jest/lcov-report/base.css +224 -0
- package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +87 -0
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +112 -0
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +94 -0
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +97 -0
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +131 -0
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +91 -0
- package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +281 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +121 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +146 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +91 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +163 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +403 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +161 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +94 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +520 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +163 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +163 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +157 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +304 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +283 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +274 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +178 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +136 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +271 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +301 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +208 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +268 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +166 -0
- package/src/artifacts/coverage-jest/lcov-report/index.html +416 -0
- package/src/artifacts/coverage-jest/lcov-report/prettify.css +1 -0
- package/src/artifacts/coverage-jest/lcov-report/prettify.js +2 -0
- package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
- package/src/artifacts/coverage-jest/lcov-report/sorter.js +196 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +193 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +109 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +286 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +236 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +121 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +106 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +166 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +103 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +130 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +127 -0
- package/src/artifacts/coverage-jest/lcov.info +2445 -0
- package/src/lib/ActionList/ActionListFieldArray.js +5 -1
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +4 -1
- package/src/lib/CustomProperties/Config/CustomPropertyForm.js +1 -0
- package/src/lib/EditableRefdataList/EditableRefdataList.js +0 -1
- package/translations/stripes-kint-components/en.json +2 -0
- package/yarn-error.log +0 -14118
|
@@ -96,6 +96,7 @@ const ActionListFieldArray = ({
|
|
|
96
96
|
key={`save[${data.rowIndex}]`}
|
|
97
97
|
buttonStyle="primary"
|
|
98
98
|
disabled={submitting || pristine}
|
|
99
|
+
marginBottom0
|
|
99
100
|
onClick={() => {
|
|
100
101
|
if (!data.id && editing === 'NEW_ROW') {
|
|
101
102
|
handleCreate(data.rowIndex);
|
|
@@ -110,6 +111,7 @@ const ActionListFieldArray = ({
|
|
|
110
111
|
<Button
|
|
111
112
|
key={`cancel[${data.rowIndex}]`}
|
|
112
113
|
data-type-button="cancel"
|
|
114
|
+
marginBottom0
|
|
113
115
|
onClick={() => {
|
|
114
116
|
if (!data.id && editing === 'NEW_ROW') {
|
|
115
117
|
fields.remove(data.rowIndex);
|
|
@@ -142,6 +144,7 @@ const ActionListFieldArray = ({
|
|
|
142
144
|
key={`action-${action.name}[${data.rowIndex}]`}
|
|
143
145
|
disabled={editing}
|
|
144
146
|
icon={action.icon}
|
|
147
|
+
marginBottom0
|
|
145
148
|
onClick={actionFunction}
|
|
146
149
|
/>
|
|
147
150
|
);
|
|
@@ -152,6 +155,7 @@ const ActionListFieldArray = ({
|
|
|
152
155
|
<Button
|
|
153
156
|
key={`action-${action.name}[${data.rowIndex}]`}
|
|
154
157
|
disabled={editing}
|
|
158
|
+
marginBottom0
|
|
155
159
|
onClick={actionFunction}
|
|
156
160
|
>
|
|
157
161
|
{action.label ?? action.name}
|
|
@@ -226,7 +230,7 @@ const ActionListFieldArray = ({
|
|
|
226
230
|
|
|
227
231
|
let returnValue = cd[key];
|
|
228
232
|
|
|
229
|
-
if (!editingRow && formatter[key]) {
|
|
233
|
+
if (!editingRow && formatter?.[key]) {
|
|
230
234
|
returnValue = formatter[key](cd);
|
|
231
235
|
}
|
|
232
236
|
|
|
@@ -173,7 +173,10 @@ const CustomPropertiesSettings = ({
|
|
|
173
173
|
primary: true,
|
|
174
174
|
defaultInternal: true
|
|
175
175
|
} :
|
|
176
|
-
|
|
176
|
+
{
|
|
177
|
+
...customProperty,
|
|
178
|
+
ctx: customProperty?.ctx ? [{ value: customProperty.ctx, label: customProperty.ctx }] : null
|
|
179
|
+
}
|
|
177
180
|
}
|
|
178
181
|
modalProps={{
|
|
179
182
|
dismissible: true,
|
|
@@ -198,6 +198,7 @@ const CustomPropertyForm = ({
|
|
|
198
198
|
actions={[{ onSelect: addCtx, render: renderAddCtx }]}
|
|
199
199
|
component={MultiSelection}
|
|
200
200
|
dataOptions={contextOptions}
|
|
201
|
+
emptyMessage={intl.formatMessage({ id: 'stripes-kint-components.customProperties.noCtxFound' })}
|
|
201
202
|
label={labelOverrides?.ctx ??
|
|
202
203
|
<FormattedMessage id="stripes-kint-components.customProperties.ctx" />
|
|
203
204
|
}
|
|
@@ -53,7 +53,6 @@ const EditableRefdataList = ({ desc, refdataEndpoint }) => {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
// This is the function which will take a row in the table and assign the relevant actions to it
|
|
56
|
-
// TODO make these 'labels' into ARIA labels
|
|
57
56
|
const actionAssigner = () => {
|
|
58
57
|
const actionArray = [
|
|
59
58
|
{ name: 'edit', label: <FormattedMessage id="stripes-kint-components.editableRefdataList.edit" />, icon: 'edit' },
|
|
@@ -49,6 +49,8 @@
|
|
|
49
49
|
"customProperties.category": "Picklist",
|
|
50
50
|
"customProperties.defaultVisibility": "Default visibility",
|
|
51
51
|
|
|
52
|
+
"customProperties.noCtxFound": "No matching context found",
|
|
53
|
+
|
|
52
54
|
"customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyBlob": "Blob",
|
|
53
55
|
"customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyBoolean": "Boolean",
|
|
54
56
|
"customProperties.type.com.k_int.web.toolkit.custprops.types.CustomPropertyContainer": "Container",
|