@k-int/stripes-kint-components 2.3.2 → 2.4.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 +15 -4
- 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/index.js +31 -3
- package/es/lib/ActionList/ActionList.js +31 -1
- package/es/lib/ActionList/ActionListFieldArray.js +39 -2
- package/es/lib/ActionList/index.js +5 -1
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +35 -1
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +46 -7
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +34 -1
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +30 -1
- package/es/lib/CustomProperties/Config/index.js +5 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +30 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +34 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +37 -1
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +34 -1
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +30 -1
- package/es/lib/CustomProperties/Edit/index.js +5 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +34 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +34 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +34 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +30 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +35 -1
- package/es/lib/CustomProperties/Filter/index.js +5 -1
- package/es/lib/CustomProperties/Filter/useOperators.js +39 -1
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +34 -1
- package/es/lib/CustomProperties/Filter/useValueProps.js +35 -1
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +30 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +56 -16
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +33 -3
- package/es/lib/CustomProperties/View/index.js +5 -1
- package/es/lib/CustomProperties/index.js +5 -1
- package/es/lib/EditableRefdataList/EditableRefdataList.js +35 -1
- package/es/lib/EditableRefdataList/index.js +5 -1
- package/es/lib/EditableSettingsList/EditableSettingsList.js +30 -1
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.js +30 -1
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray.test.js +30 -1
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.js +34 -1
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue.test.js +34 -1
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.js +34 -1
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue.test.js +41 -1
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +34 -1
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +30 -1
- package/es/lib/EditableSettingsList/SettingField/index.js +5 -1
- package/es/lib/EditableSettingsList/index.js +5 -1
- package/es/lib/FormModal/FormModal.js +30 -1
- package/es/lib/FormModal/index.js +5 -1
- package/es/lib/NoResultsMessage/NoResultsMessage.js +30 -1
- package/es/lib/NoResultsMessage/index.js +5 -1
- package/es/lib/QueryTypedown/QueryTypedown.js +34 -1
- package/es/lib/QueryTypedown/index.js +5 -1
- package/es/lib/RefdataButtons/RefdataButtons.js +34 -1
- package/es/lib/RefdataButtons/index.js +5 -1
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +94 -105
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +146 -0
- package/es/lib/SASQLookupComponent/TableBody/index.js +19 -0
- package/es/lib/SASQLookupComponent/index.js +14 -2
- package/es/lib/SASQRoute/SASQRoute.js +32 -3
- package/es/lib/SASQRoute/index.js +5 -1
- package/es/lib/SASQViewComponent/SASQViewComponent.js +34 -1
- package/es/lib/SASQViewComponent/index.js +5 -1
- package/es/lib/SearchField/SearchField.js +31 -1
- package/es/lib/SearchField/index.js +5 -1
- package/es/lib/SettingPage/SettingPage.js +34 -1
- package/es/lib/SettingPage/SettingPagePane.js +32 -1
- package/es/lib/SettingPage/index.js +5 -1
- package/es/lib/Typedown/Typedown.js +34 -1
- package/es/lib/Typedown/index.js +5 -1
- package/es/lib/constants/customProperties.js +38 -1
- package/es/lib/constants/eventCodes.js +31 -1
- package/es/lib/contexts/SettingsContext.js +30 -1
- package/es/lib/contexts/index.js +5 -1
- package/es/lib/hooks/index.js +5 -1
- package/es/lib/hooks/settingsHooks/index.js +5 -1
- package/es/lib/hooks/settingsHooks/useSettingSection.js +34 -1
- package/es/lib/hooks/settingsHooks/useSettings.js +36 -1
- package/es/lib/hooks/typedownHooks/index.js +5 -1
- package/es/lib/hooks/typedownHooks/useTypedown.js +34 -1
- package/es/lib/hooks/typedownHooks/useTypedownData.js +34 -1
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +34 -1
- package/es/lib/hooks/useActiveElement.js +32 -1
- package/es/lib/hooks/useAvailableCustomProperties.js +34 -1
- package/es/lib/hooks/useCustomProperties.js +34 -1
- package/es/lib/hooks/useHelperApp.js +34 -1
- package/es/lib/hooks/useInvalidateRefdata.js +34 -1
- package/es/lib/hooks/useKiwtFieldArray.js +34 -1
- package/es/lib/hooks/useKiwtSASQuery.js +35 -1
- package/es/lib/hooks/useLocalStorageState.js +34 -1
- package/es/lib/hooks/useMutateCustomProperties.js +34 -1
- package/es/lib/hooks/useMutateRefdataValue.js +34 -1
- package/es/lib/hooks/useQIndex.js +34 -1
- package/es/lib/hooks/useRefdata.js +34 -1
- package/es/lib/hooks/useTemplates.js +34 -1
- package/es/lib/utils/buildUrl.js +31 -2
- package/es/lib/utils/generateKiwtQuery.js +30 -1
- package/es/lib/utils/generateKiwtQueryParams.js +51 -5
- package/es/lib/utils/groupCustomPropertiesByCtx.js +30 -1
- package/es/lib/utils/highlightString.js +94 -0
- package/es/lib/utils/index.js +27 -1
- package/es/lib/utils/matchString.js +59 -0
- package/es/lib/utils/refdataOptions.js +30 -1
- package/es/lib/utils/refdataQueryKey.js +30 -1
- package/es/lib/utils/renderHelpText.js +30 -1
- package/es/lib/utils/selectorSafe.js +30 -1
- package/es/lib/utils/sortByLabel.js +30 -1
- package/es/lib/utils/toCamelCase.js +30 -1
- package/es/lib/utils/typedownQueryKey.js +30 -1
- package/es/lib/utils/validators.js +32 -1
- package/junit.xml +79 -0
- package/package.json +1 -1
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +286 -0
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +925 -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 +808 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesView.js.html +601 -0
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +1135 -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 +283 -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 +301 -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 +253 -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 +919 -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 +313 -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 +454 -0
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +251 -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-report/utils/validators.js.html +202 -0
- package/src/artifacts/coverage-jest/lcov.info +2562 -0
- package/src/index.js +6 -1
- package/src/lib/ActionList/ActionListFieldArray.js +1 -1
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +9 -6
- package/src/lib/CustomProperties/View/CustomPropertiesViewCtx.js +13 -8
- package/src/lib/CustomProperties/View/CustomPropertyCard.js +2 -2
- package/src/lib/SASQLookupComponent/SASQLookupComponent.js +39 -77
- package/src/lib/SASQLookupComponent/TableBody/TableBody.js +96 -0
- package/src/lib/SASQLookupComponent/TableBody/index.js +1 -0
- package/src/lib/SASQLookupComponent/index.js +2 -1
- package/src/lib/SASQRoute/SASQRoute.js +1 -1
- package/src/lib/utils/generateKiwtQueryParams.js +10 -1
- package/src/lib/utils/highlightString.js +42 -0
- package/src/lib/utils/index.js +4 -0
- package/src/lib/utils/matchString.js +14 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
(function () {
|
|
4
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
5
|
+
enterModule && enterModule(module);
|
|
6
|
+
})();
|
|
7
|
+
|
|
8
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
9
|
+
return a;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
var addSorting = function () {
|
|
14
|
+
'use strict';
|
|
15
|
+
|
|
16
|
+
var cols,
|
|
17
|
+
currentSort = {
|
|
18
|
+
index: 0,
|
|
19
|
+
desc: false
|
|
20
|
+
}; // returns the summary table element
|
|
21
|
+
|
|
22
|
+
function getTable() {
|
|
23
|
+
return document.querySelector('.coverage-summary');
|
|
24
|
+
} // returns the thead element of the summary table
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
function getTableHeader() {
|
|
28
|
+
return getTable().querySelector('thead tr');
|
|
29
|
+
} // returns the tbody element of the summary table
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
function getTableBody() {
|
|
33
|
+
return getTable().querySelector('tbody');
|
|
34
|
+
} // returns the th element for nth column
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
function getNthColumn(n) {
|
|
38
|
+
return getTableHeader().querySelectorAll('th')[n];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function onFilterInput() {
|
|
42
|
+
var searchValue = document.getElementById('fileSearch').value;
|
|
43
|
+
var rows = document.getElementsByTagName('tbody')[0].children;
|
|
44
|
+
|
|
45
|
+
for (var i = 0; i < rows.length; i++) {
|
|
46
|
+
var row = rows[i];
|
|
47
|
+
|
|
48
|
+
if (row.textContent.toLowerCase().includes(searchValue.toLowerCase())) {
|
|
49
|
+
row.style.display = '';
|
|
50
|
+
} else {
|
|
51
|
+
row.style.display = 'none';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
} // loads the search box
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
function addSearchBox() {
|
|
58
|
+
var template = document.getElementById('filterTemplate');
|
|
59
|
+
var templateClone = template.content.cloneNode(true);
|
|
60
|
+
templateClone.getElementById('fileSearch').oninput = onFilterInput;
|
|
61
|
+
template.parentElement.appendChild(templateClone);
|
|
62
|
+
} // loads all columns
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
function loadColumns() {
|
|
66
|
+
var colNodes = getTableHeader().querySelectorAll('th'),
|
|
67
|
+
colNode,
|
|
68
|
+
cols = [],
|
|
69
|
+
col,
|
|
70
|
+
i;
|
|
71
|
+
|
|
72
|
+
for (i = 0; i < colNodes.length; i += 1) {
|
|
73
|
+
colNode = colNodes[i];
|
|
74
|
+
col = {
|
|
75
|
+
key: colNode.getAttribute('data-col'),
|
|
76
|
+
sortable: !colNode.getAttribute('data-nosort'),
|
|
77
|
+
type: colNode.getAttribute('data-type') || 'string'
|
|
78
|
+
};
|
|
79
|
+
cols.push(col);
|
|
80
|
+
|
|
81
|
+
if (col.sortable) {
|
|
82
|
+
col.defaultDescSort = col.type === 'number';
|
|
83
|
+
colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return cols;
|
|
88
|
+
} // attaches a data attribute to every tr element with an object
|
|
89
|
+
// of data values keyed by column name
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
function loadRowData(tableRow) {
|
|
93
|
+
var tableCols = tableRow.querySelectorAll('td'),
|
|
94
|
+
colNode,
|
|
95
|
+
col,
|
|
96
|
+
data = {},
|
|
97
|
+
i,
|
|
98
|
+
val;
|
|
99
|
+
|
|
100
|
+
for (i = 0; i < tableCols.length; i += 1) {
|
|
101
|
+
colNode = tableCols[i];
|
|
102
|
+
col = cols[i];
|
|
103
|
+
val = colNode.getAttribute('data-value');
|
|
104
|
+
|
|
105
|
+
if (col.type === 'number') {
|
|
106
|
+
val = Number(val);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
data[col.key] = val;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return data;
|
|
113
|
+
} // loads all row data
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
function loadData() {
|
|
117
|
+
var rows = getTableBody().querySelectorAll('tr'),
|
|
118
|
+
i;
|
|
119
|
+
|
|
120
|
+
for (i = 0; i < rows.length; i += 1) {
|
|
121
|
+
rows[i].data = loadRowData(rows[i]);
|
|
122
|
+
}
|
|
123
|
+
} // sorts the table using the data for the ith column
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
function sortByIndex(index, desc) {
|
|
127
|
+
var key = cols[index].key,
|
|
128
|
+
sorter = function sorter(a, b) {
|
|
129
|
+
a = a.data[key];
|
|
130
|
+
b = b.data[key];
|
|
131
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
132
|
+
},
|
|
133
|
+
finalSorter = sorter,
|
|
134
|
+
tableBody = document.querySelector('.coverage-summary tbody'),
|
|
135
|
+
rowNodes = tableBody.querySelectorAll('tr'),
|
|
136
|
+
rows = [],
|
|
137
|
+
i;
|
|
138
|
+
|
|
139
|
+
if (desc) {
|
|
140
|
+
finalSorter = function finalSorter(a, b) {
|
|
141
|
+
return -1 * sorter(a, b);
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
for (i = 0; i < rowNodes.length; i += 1) {
|
|
146
|
+
rows.push(rowNodes[i]);
|
|
147
|
+
tableBody.removeChild(rowNodes[i]);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
rows.sort(finalSorter);
|
|
151
|
+
|
|
152
|
+
for (i = 0; i < rows.length; i += 1) {
|
|
153
|
+
tableBody.appendChild(rows[i]);
|
|
154
|
+
}
|
|
155
|
+
} // removes sort indicators for current column being sorted
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
function removeSortIndicators() {
|
|
159
|
+
var col = getNthColumn(currentSort.index),
|
|
160
|
+
cls = col.className;
|
|
161
|
+
cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
|
|
162
|
+
col.className = cls;
|
|
163
|
+
} // adds sort indicators for current column being sorted
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
function addSortIndicators() {
|
|
167
|
+
getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted';
|
|
168
|
+
} // adds event listeners for all sorter widgets
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
function enableUI() {
|
|
172
|
+
var i,
|
|
173
|
+
el,
|
|
174
|
+
ithSorter = function ithSorter(i) {
|
|
175
|
+
var col = cols[i];
|
|
176
|
+
return function () {
|
|
177
|
+
var desc = col.defaultDescSort;
|
|
178
|
+
|
|
179
|
+
if (currentSort.index === i) {
|
|
180
|
+
desc = !currentSort.desc;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
sortByIndex(i, desc);
|
|
184
|
+
removeSortIndicators();
|
|
185
|
+
currentSort.index = i;
|
|
186
|
+
currentSort.desc = desc;
|
|
187
|
+
addSortIndicators();
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
for (i = 0; i < cols.length; i += 1) {
|
|
192
|
+
if (cols[i].sortable) {
|
|
193
|
+
// add the click event handler on the th so users
|
|
194
|
+
// dont have to click on those tiny arrows
|
|
195
|
+
el = getNthColumn(i).querySelector('.sorter').parentElement;
|
|
196
|
+
|
|
197
|
+
if (el.addEventListener) {
|
|
198
|
+
el.addEventListener('click', ithSorter(i));
|
|
199
|
+
} else {
|
|
200
|
+
el.attachEvent('onclick', ithSorter(i));
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
} // adds sorting functionality to the UI
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
return function () {
|
|
208
|
+
if (!getTable()) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
cols = loadColumns();
|
|
213
|
+
loadData();
|
|
214
|
+
addSearchBox();
|
|
215
|
+
addSortIndicators();
|
|
216
|
+
enableUI();
|
|
217
|
+
};
|
|
218
|
+
}();
|
|
219
|
+
|
|
220
|
+
window.addEventListener('load', addSorting);
|
|
221
|
+
;
|
|
222
|
+
|
|
223
|
+
(function () {
|
|
224
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
225
|
+
|
|
226
|
+
if (!reactHotLoader) {
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
reactHotLoader.register(addSorting, "addSorting", "/home/ethan/FolioModules/stripes-kint-components/src/artifacts/coverage-jest/lcov-report/sorter.js");
|
|
231
|
+
})();
|
|
232
|
+
|
|
233
|
+
;
|
|
234
|
+
|
|
235
|
+
(function () {
|
|
236
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
237
|
+
leaveModule && leaveModule(module);
|
|
238
|
+
})();
|
package/es/index.js
CHANGED
|
@@ -140,7 +140,7 @@ Object.defineProperty(exports, "RefdataButtons", {
|
|
|
140
140
|
Object.defineProperty(exports, "SASQLookupComponent", {
|
|
141
141
|
enumerable: true,
|
|
142
142
|
get: function get() {
|
|
143
|
-
return _SASQLookupComponent.
|
|
143
|
+
return _SASQLookupComponent.SASQLookupComponent;
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "SASQRoute", {
|
|
@@ -149,6 +149,12 @@ Object.defineProperty(exports, "SASQRoute", {
|
|
|
149
149
|
return _SASQRoute.default;
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
|
+
Object.defineProperty(exports, "SASQTableBody", {
|
|
153
|
+
enumerable: true,
|
|
154
|
+
get: function get() {
|
|
155
|
+
return _SASQLookupComponent.TableBody;
|
|
156
|
+
}
|
|
157
|
+
});
|
|
152
158
|
Object.defineProperty(exports, "SASQViewComponent", {
|
|
153
159
|
enumerable: true,
|
|
154
160
|
get: function get() {
|
|
@@ -185,6 +191,12 @@ Object.defineProperty(exports, "Typedown", {
|
|
|
185
191
|
return _Typedown.default;
|
|
186
192
|
}
|
|
187
193
|
});
|
|
194
|
+
Object.defineProperty(exports, "boldString", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function get() {
|
|
197
|
+
return _utils.boldString;
|
|
198
|
+
}
|
|
199
|
+
});
|
|
188
200
|
Object.defineProperty(exports, "composeValidators", {
|
|
189
201
|
enumerable: true,
|
|
190
202
|
get: function get() {
|
|
@@ -210,12 +222,24 @@ Object.defineProperty(exports, "groupCustomPropertiesByCtx", {
|
|
|
210
222
|
return _utils.groupCustomPropertiesByCtx;
|
|
211
223
|
}
|
|
212
224
|
});
|
|
225
|
+
Object.defineProperty(exports, "highlightString", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function get() {
|
|
228
|
+
return _utils.highlightString;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
213
231
|
Object.defineProperty(exports, "invalidNumber", {
|
|
214
232
|
enumerable: true,
|
|
215
233
|
get: function get() {
|
|
216
234
|
return _validators.invalidNumber;
|
|
217
235
|
}
|
|
218
236
|
});
|
|
237
|
+
Object.defineProperty(exports, "matchString", {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
get: function get() {
|
|
240
|
+
return _utils.matchString;
|
|
241
|
+
}
|
|
242
|
+
});
|
|
219
243
|
Object.defineProperty(exports, "refdataOptions", {
|
|
220
244
|
enumerable: true,
|
|
221
245
|
get: function get() {
|
|
@@ -371,7 +395,7 @@ var _SearchField = _interopRequireDefault(require("./lib/SearchField"));
|
|
|
371
395
|
|
|
372
396
|
var _SASQRoute = _interopRequireDefault(require("./lib/SASQRoute"));
|
|
373
397
|
|
|
374
|
-
var _SASQLookupComponent =
|
|
398
|
+
var _SASQLookupComponent = require("./lib/SASQLookupComponent");
|
|
375
399
|
|
|
376
400
|
var _SASQViewComponent = _interopRequireDefault(require("./lib/SASQViewComponent"));
|
|
377
401
|
|
|
@@ -391,4 +415,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
391
415
|
|
|
392
416
|
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; }
|
|
393
417
|
|
|
394
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
418
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
419
|
+
|
|
420
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
421
|
+
return a;
|
|
422
|
+
};
|
|
@@ -23,6 +23,11 @@ var _excluded = ["actionAssigner", "actionCalls", "columnMapping", "contentData"
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
26
|
+
(function () {
|
|
27
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
28
|
+
enterModule && enterModule(module);
|
|
29
|
+
})();
|
|
30
|
+
|
|
26
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; }
|
|
27
32
|
|
|
28
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; }
|
|
@@ -33,6 +38,10 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
33
38
|
|
|
34
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; }
|
|
35
40
|
|
|
41
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
42
|
+
return a;
|
|
43
|
+
};
|
|
44
|
+
|
|
36
45
|
var propTypes = {
|
|
37
46
|
actionAssigner: _propTypes.default.func,
|
|
38
47
|
actionCalls: _propTypes.default.object,
|
|
@@ -102,4 +111,25 @@ var ActionList = function ActionList(_ref) {
|
|
|
102
111
|
|
|
103
112
|
ActionList.propTypes = propTypes;
|
|
104
113
|
var _default = ActionList;
|
|
105
|
-
|
|
114
|
+
var _default2 = _default;
|
|
115
|
+
exports.default = _default2;
|
|
116
|
+
;
|
|
117
|
+
|
|
118
|
+
(function () {
|
|
119
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
120
|
+
|
|
121
|
+
if (!reactHotLoader) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
reactHotLoader.register(propTypes, "propTypes", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionList.js");
|
|
126
|
+
reactHotLoader.register(ActionList, "ActionList", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionList.js");
|
|
127
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionList.js");
|
|
128
|
+
})();
|
|
129
|
+
|
|
130
|
+
;
|
|
131
|
+
|
|
132
|
+
(function () {
|
|
133
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
134
|
+
leaveModule && leaveModule(module);
|
|
135
|
+
})();
|
|
@@ -35,6 +35,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
35
|
|
|
36
36
|
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; }
|
|
37
37
|
|
|
38
|
+
(function () {
|
|
39
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
40
|
+
enterModule && enterModule(module);
|
|
41
|
+
})();
|
|
42
|
+
|
|
38
43
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
39
44
|
|
|
40
45
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -67,6 +72,10 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
67
72
|
|
|
68
73
|
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; }
|
|
69
74
|
|
|
75
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
76
|
+
return a;
|
|
77
|
+
};
|
|
78
|
+
|
|
70
79
|
var EDITING_ACTIONS_WIDTH = 25;
|
|
71
80
|
var NON_EDITING_ACTIONS_WIDTH = 20;
|
|
72
81
|
var TOTAL_WIDTH = 100;
|
|
@@ -313,7 +322,7 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
|
|
|
313
322
|
returnObj[key] = fieldComponents[key] ? fieldComponents[key]({
|
|
314
323
|
name: "".concat(fieldName, ".").concat(key)
|
|
315
324
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
|
|
316
|
-
|
|
325
|
+
autoFocus: fieldIndex === 0,
|
|
317
326
|
component: _components.TextField,
|
|
318
327
|
marginBottom0: true,
|
|
319
328
|
name: "".concat(fieldName, ".").concat(key),
|
|
@@ -387,6 +396,34 @@ var ActionListFieldArray = function ActionListFieldArray(_ref) {
|
|
|
387
396
|
});
|
|
388
397
|
};
|
|
389
398
|
|
|
399
|
+
__signature__(ActionListFieldArray, "useForm{{ change }}\nuseFormState{{ initialValues, pristine, submitting, values }}\nuseState{[editing, setEditing](null)}", function () {
|
|
400
|
+
return [_reactFinalForm.useForm, _reactFinalForm.useFormState];
|
|
401
|
+
});
|
|
402
|
+
|
|
390
403
|
ActionListFieldArray.propTypes = propTypes;
|
|
391
404
|
var _default = ActionListFieldArray;
|
|
392
|
-
|
|
405
|
+
var _default2 = _default;
|
|
406
|
+
exports.default = _default2;
|
|
407
|
+
;
|
|
408
|
+
|
|
409
|
+
(function () {
|
|
410
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
411
|
+
|
|
412
|
+
if (!reactHotLoader) {
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
reactHotLoader.register(EDITING_ACTIONS_WIDTH, "EDITING_ACTIONS_WIDTH", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
|
|
417
|
+
reactHotLoader.register(NON_EDITING_ACTIONS_WIDTH, "NON_EDITING_ACTIONS_WIDTH", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
|
|
418
|
+
reactHotLoader.register(TOTAL_WIDTH, "TOTAL_WIDTH", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
|
|
419
|
+
reactHotLoader.register(propTypes, "propTypes", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
|
|
420
|
+
reactHotLoader.register(ActionListFieldArray, "ActionListFieldArray", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
|
|
421
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/ActionList/ActionListFieldArray.js");
|
|
422
|
+
})();
|
|
423
|
+
|
|
424
|
+
;
|
|
425
|
+
|
|
426
|
+
(function () {
|
|
427
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
428
|
+
leaveModule && leaveModule(module);
|
|
429
|
+
})();
|
|
@@ -12,4 +12,8 @@ Object.defineProperty(exports, "default", {
|
|
|
12
12
|
|
|
13
13
|
var _ActionList = _interopRequireDefault(require("./ActionList"));
|
|
14
14
|
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
|
|
17
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
@@ -23,6 +23,11 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
26
|
+
(function () {
|
|
27
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
28
|
+
enterModule && enterModule(module);
|
|
29
|
+
})();
|
|
30
|
+
|
|
26
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; }
|
|
27
32
|
|
|
28
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; }
|
|
@@ -41,6 +46,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
41
46
|
|
|
42
47
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
48
|
|
|
49
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
50
|
+
return a;
|
|
51
|
+
};
|
|
52
|
+
|
|
44
53
|
var DEBOUNCE_TIME = 500;
|
|
45
54
|
|
|
46
55
|
var CustomPropertiesLookup = function CustomPropertiesLookup(_ref) {
|
|
@@ -148,6 +157,10 @@ var CustomPropertiesLookup = function CustomPropertiesLookup(_ref) {
|
|
|
148
157
|
});
|
|
149
158
|
};
|
|
150
159
|
|
|
160
|
+
__signature__(CustomPropertiesLookup, "useState{[nsValues, setNsValues]({\n sort: 'label'\n })}\nuseState{[selectedContext, setSelectedContext]}\nuseCustomProperties{{ data: custprops, isLoading }}", function () {
|
|
161
|
+
return [_hooks.useCustomProperties];
|
|
162
|
+
});
|
|
163
|
+
|
|
151
164
|
CustomPropertiesLookup.propTypes = {
|
|
152
165
|
contextFilterOptions: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
153
166
|
value: _propTypes.default.string,
|
|
@@ -161,4 +174,25 @@ CustomPropertiesLookup.propTypes = {
|
|
|
161
174
|
refdataEndpoint: _propTypes.default.string
|
|
162
175
|
};
|
|
163
176
|
var _default = CustomPropertiesLookup;
|
|
164
|
-
|
|
177
|
+
var _default2 = _default;
|
|
178
|
+
exports.default = _default2;
|
|
179
|
+
;
|
|
180
|
+
|
|
181
|
+
(function () {
|
|
182
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
183
|
+
|
|
184
|
+
if (!reactHotLoader) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
reactHotLoader.register(DEBOUNCE_TIME, "DEBOUNCE_TIME", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesLookup.js");
|
|
189
|
+
reactHotLoader.register(CustomPropertiesLookup, "CustomPropertiesLookup", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesLookup.js");
|
|
190
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesLookup.js");
|
|
191
|
+
})();
|
|
192
|
+
|
|
193
|
+
;
|
|
194
|
+
|
|
195
|
+
(function () {
|
|
196
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
197
|
+
leaveModule && leaveModule(module);
|
|
198
|
+
})();
|
|
@@ -33,6 +33,11 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
33
33
|
|
|
34
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
35
|
|
|
36
|
+
(function () {
|
|
37
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
38
|
+
enterModule && enterModule(module);
|
|
39
|
+
})();
|
|
40
|
+
|
|
36
41
|
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; }
|
|
37
42
|
|
|
38
43
|
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; }
|
|
@@ -51,6 +56,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
51
56
|
|
|
52
57
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
53
58
|
|
|
59
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
60
|
+
return a;
|
|
61
|
+
};
|
|
62
|
+
|
|
54
63
|
var EDITING = 'edit';
|
|
55
64
|
var CREATING = 'create';
|
|
56
65
|
var VIEWING = 'view'; // A default option for setting up panes manually
|
|
@@ -125,20 +134,23 @@ var CustomPropertiesSettings = function CustomPropertiesSettings(_ref) {
|
|
|
125
134
|
|
|
126
135
|
var _useMutateCustomPrope = (0, _hooks.useMutateCustomProperties)({
|
|
127
136
|
afterQueryCalls: {
|
|
128
|
-
put: function put() {
|
|
137
|
+
put: function put(res) {
|
|
129
138
|
setMode(VIEWING);
|
|
130
139
|
queryClient.invalidateQueries(['stripes-kint-components', 'useCustomProperties', 'custprops']);
|
|
131
|
-
|
|
140
|
+
setCustomProperty(res);
|
|
141
|
+
afterQueryCallsSafe.put(res);
|
|
132
142
|
},
|
|
133
|
-
post: function post() {
|
|
143
|
+
post: function post(res) {
|
|
134
144
|
setMode(VIEWING);
|
|
135
145
|
queryClient.invalidateQueries(['stripes-kint-components', 'useCustomProperties', 'custprops']);
|
|
136
|
-
|
|
146
|
+
setCustomProperty(res);
|
|
147
|
+
afterQueryCallsSafe.post(res);
|
|
137
148
|
},
|
|
138
|
-
delete: function _delete() {
|
|
149
|
+
delete: function _delete(res) {
|
|
139
150
|
setMode(VIEWING);
|
|
140
151
|
queryClient.invalidateQueries(['stripes-kint-components', 'useCustomProperties', 'custprops']);
|
|
141
|
-
|
|
152
|
+
setCustomProperty();
|
|
153
|
+
afterQueryCallsSafe.delete(res);
|
|
142
154
|
}
|
|
143
155
|
},
|
|
144
156
|
endpoint: customPropertiesEndpoint,
|
|
@@ -276,6 +288,10 @@ var CustomPropertiesSettings = function CustomPropertiesSettings(_ref) {
|
|
|
276
288
|
});
|
|
277
289
|
};
|
|
278
290
|
|
|
291
|
+
__signature__(CustomPropertiesSettings, "useQueryClient{queryClient}\nuseIntl{intl}\nuseState{[customProperty, setCustomProperty]}\nuseState{[deleteModal, setDeleteModal](false)}\nuseRefdata{refdata}\nuseState{[mode, setMode](VIEWING)}\nuseMutateCustomProperties{{\n post: createCustprop,\n put: editCustProp,\n delete: deleteCustProp\n }}", function () {
|
|
292
|
+
return [_reactQuery.useQueryClient, _reactIntl.useIntl, _hooks.useRefdata, _hooks.useMutateCustomProperties];
|
|
293
|
+
});
|
|
294
|
+
|
|
279
295
|
CustomPropertiesSettings.propTypes = {
|
|
280
296
|
afterQueryCalls: _propTypes.default.object,
|
|
281
297
|
contextFilterOptions: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
@@ -288,4 +304,27 @@ CustomPropertiesSettings.propTypes = {
|
|
|
288
304
|
refdataEndpoint: _propTypes.default.string
|
|
289
305
|
};
|
|
290
306
|
var _default = CustomPropertiesSettings;
|
|
291
|
-
|
|
307
|
+
var _default2 = _default;
|
|
308
|
+
exports.default = _default2;
|
|
309
|
+
;
|
|
310
|
+
|
|
311
|
+
(function () {
|
|
312
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
313
|
+
|
|
314
|
+
if (!reactHotLoader) {
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
reactHotLoader.register(EDITING, "EDITING", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesSettings.js");
|
|
319
|
+
reactHotLoader.register(CREATING, "CREATING", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesSettings.js");
|
|
320
|
+
reactHotLoader.register(VIEWING, "VIEWING", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesSettings.js");
|
|
321
|
+
reactHotLoader.register(CustomPropertiesSettings, "CustomPropertiesSettings", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesSettings.js");
|
|
322
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertiesSettings.js");
|
|
323
|
+
})();
|
|
324
|
+
|
|
325
|
+
;
|
|
326
|
+
|
|
327
|
+
(function () {
|
|
328
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
329
|
+
leaveModule && leaveModule(module);
|
|
330
|
+
})();
|
|
@@ -21,6 +21,11 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
+
(function () {
|
|
25
|
+
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
26
|
+
enterModule && enterModule(module);
|
|
27
|
+
})();
|
|
28
|
+
|
|
24
29
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
25
30
|
|
|
26
31
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -41,6 +46,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
41
46
|
|
|
42
47
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
48
|
|
|
49
|
+
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
50
|
+
return a;
|
|
51
|
+
};
|
|
52
|
+
|
|
44
53
|
var CustomPropertyForm = function CustomPropertyForm(_ref) {
|
|
45
54
|
var _labelOverrides$label, _labelOverrides$name, _labelOverrides$descr, _labelOverrides$ctx, _labelOverrides$weigh, _labelOverrides$prima2, _labelOverrides$retir, _labelOverrides$defau, _labelOverrides$type, _labelOverrides$categ;
|
|
46
55
|
|
|
@@ -361,6 +370,10 @@ var CustomPropertyForm = function CustomPropertyForm(_ref) {
|
|
|
361
370
|
});
|
|
362
371
|
};
|
|
363
372
|
|
|
373
|
+
__signature__(CustomPropertyForm, "useFormState{{ values }}\nuseForm{{ change }}\nuseIntl{intl}\nuseState{[contextOptions, setContextOptions](contextFilterOptions?.filter(ctx => ctx.value !== '' && ctx?.value !== 'isNull'))}", function () {
|
|
374
|
+
return [_reactFinalForm.useFormState, _reactFinalForm.useForm, _reactIntl.useIntl];
|
|
375
|
+
});
|
|
376
|
+
|
|
364
377
|
CustomPropertyForm.propTypes = {
|
|
365
378
|
contextFilterOptions: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
366
379
|
helpPopovers: _propTypes.default.object,
|
|
@@ -368,4 +381,24 @@ CustomPropertyForm.propTypes = {
|
|
|
368
381
|
refdata: _propTypes.default.arrayOf(_propTypes.default.object)
|
|
369
382
|
};
|
|
370
383
|
var _default = CustomPropertyForm;
|
|
371
|
-
|
|
384
|
+
var _default2 = _default;
|
|
385
|
+
exports.default = _default2;
|
|
386
|
+
;
|
|
387
|
+
|
|
388
|
+
(function () {
|
|
389
|
+
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
390
|
+
|
|
391
|
+
if (!reactHotLoader) {
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
reactHotLoader.register(CustomPropertyForm, "CustomPropertyForm", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertyForm.js");
|
|
396
|
+
reactHotLoader.register(_default, "default", "/home/ethan/FolioModules/stripes-kint-components/src/lib/CustomProperties/Config/CustomPropertyForm.js");
|
|
397
|
+
})();
|
|
398
|
+
|
|
399
|
+
;
|
|
400
|
+
|
|
401
|
+
(function () {
|
|
402
|
+
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
403
|
+
leaveModule && leaveModule(module);
|
|
404
|
+
})();
|