@k-int/stripes-kint-components 2.0.0 → 2.1.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.
Files changed (131) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/es/artifacts/coverage-jest/lcov-report/block-navigation.js +109 -0
  3. package/es/artifacts/coverage-jest/lcov-report/prettify.js +998 -0
  4. package/es/artifacts/coverage-jest/lcov-report/sorter.js +238 -0
  5. package/es/index.js +8 -0
  6. package/es/lib/ActionList/ActionListFieldArray.js +5 -1
  7. package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +2 -2
  8. package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +6 -1
  9. package/es/lib/CustomProperties/Config/CustomPropertyForm.js +3 -0
  10. package/es/lib/EditableRefdataList/EditableRefdataList.js +0 -1
  11. package/es/lib/SASQRoute/SASQRoute.js +15 -11
  12. package/es/lib/SASQViewComponent/SASQViewComponent.js +6 -3
  13. package/es/lib/Typedown/Typedown.js +6 -5
  14. package/es/lib/hooks/useCustomProperties.js +29 -19
  15. package/es/lib/utils/generateKiwtQueryParams.js +53 -6
  16. package/junit.xml +79 -0
  17. package/package.json +2 -2
  18. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +277 -0
  19. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +913 -0
  20. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +146 -0
  21. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +88 -0
  22. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +418 -0
  23. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +805 -0
  24. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesView.js.html +535 -0
  25. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +973 -0
  26. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +176 -0
  27. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +97 -0
  28. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +373 -0
  29. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +131 -0
  30. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +88 -0
  31. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +223 -0
  32. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +211 -0
  33. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +376 -0
  34. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +262 -0
  35. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +436 -0
  36. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +161 -0
  37. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +94 -0
  38. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +146 -0
  39. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +94 -0
  40. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +298 -0
  41. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +131 -0
  42. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +88 -0
  43. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +319 -0
  44. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +131 -0
  45. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +88 -0
  46. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +184 -0
  47. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +131 -0
  48. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +88 -0
  49. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +370 -0
  50. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +131 -0
  51. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +88 -0
  52. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +949 -0
  53. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +131 -0
  54. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +88 -0
  55. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +301 -0
  56. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +131 -0
  57. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +88 -0
  58. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +253 -0
  59. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +131 -0
  60. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +88 -0
  61. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +214 -0
  62. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +131 -0
  63. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +88 -0
  64. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +211 -0
  65. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +178 -0
  66. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +146 -0
  67. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +91 -0
  68. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +919 -0
  69. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +131 -0
  70. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +88 -0
  71. package/src/artifacts/coverage-jest/lcov-report/base.css +224 -0
  72. package/src/artifacts/coverage-jest/lcov-report/block-navigation.js +87 -0
  73. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +112 -0
  74. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +94 -0
  75. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +131 -0
  76. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +97 -0
  77. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +131 -0
  78. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +91 -0
  79. package/src/artifacts/coverage-jest/lcov-report/favicon.png +0 -0
  80. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +281 -0
  81. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +121 -0
  82. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +146 -0
  83. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +91 -0
  84. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +163 -0
  85. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +403 -0
  86. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +161 -0
  87. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +94 -0
  88. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +520 -0
  89. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +163 -0
  90. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +163 -0
  91. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +157 -0
  92. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +313 -0
  93. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +283 -0
  94. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +274 -0
  95. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +178 -0
  96. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +136 -0
  97. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +271 -0
  98. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +301 -0
  99. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +208 -0
  100. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +268 -0
  101. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +166 -0
  102. package/src/artifacts/coverage-jest/lcov-report/index.html +416 -0
  103. package/src/artifacts/coverage-jest/lcov-report/prettify.css +1 -0
  104. package/src/artifacts/coverage-jest/lcov-report/prettify.js +2 -0
  105. package/src/artifacts/coverage-jest/lcov-report/sort-arrow-sprite.png +0 -0
  106. package/src/artifacts/coverage-jest/lcov-report/sorter.js +196 -0
  107. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +193 -0
  108. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +109 -0
  109. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +448 -0
  110. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +236 -0
  111. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +121 -0
  112. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +106 -0
  113. package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +166 -0
  114. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +103 -0
  115. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +130 -0
  116. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +127 -0
  117. package/src/artifacts/coverage-jest/lcov.info +2492 -0
  118. package/src/index.js +3 -0
  119. package/src/lib/ActionList/ActionListFieldArray.js +5 -1
  120. package/src/lib/CustomProperties/Config/CustomPropertiesLookup.js +1 -1
  121. package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +4 -1
  122. package/src/lib/CustomProperties/Config/CustomPropertyForm.js +1 -0
  123. package/src/lib/EditableRefdataList/EditableRefdataList.js +0 -1
  124. package/src/lib/SASQRoute/SASQRoute.js +23 -14
  125. package/src/lib/SASQViewComponent/SASQViewComponent.js +2 -1
  126. package/src/lib/Typedown/Typedown.js +6 -5
  127. package/src/lib/hooks/useCustomProperties.js +24 -21
  128. package/src/lib/utils/generateKiwtQueryParams.js +58 -2
  129. package/styles/TypeDown.css +7 -0
  130. package/translations/stripes-kint-components/en.json +2 -0
  131. package/yarn-error.log +0 -14118
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 2.2.1 2022-03-10
2
+ * Fix -- GenerateQueryParams no longer assumes you want EITHER nsValues filters or options filters, it simply adds both to the params array
3
+ ## 2.1.0 2022-03-09
4
+ * Fixes for ActionList
5
+ * When no formatter is present, it no longer crashes
6
+ * Formatting for buttons
7
+ * Fixes for CustomProperty work
8
+ * Editing CustProp with context no longer crashes
9
+ * Added translation for "no matching context found"
10
+ * Custom properties now sorted by label by default
11
+ * generateKiwtQuery now allows for filters and sort objects to be passed in with options, to avoid weird parsing nsValues used by SASQ if desired.
12
+ * useCustomProperties migrated over to use this feature
13
+ * SASQViewComponent now hands "queryProps" to the ViewComponent, allowing access to the react-query internals
14
+ * SASQRoute children are now rendered above the SASQViewComponent, allowing for Route patterns such as 'Charges' in OA
15
+ * FormModal is actually exported now
16
+ * Typedown
17
+ * Interaction styles have been improved, onHover and onFocus styles are now in line with Stripes standards
18
+ * Can now pass className to Field containing Typedown and they will be applied to Typedown
19
+ * Selected item style is no longer "selected" colour, instead blank with border
20
+
1
21
  ## 2.0.0 2022-03-04
2
22
  * ActionList updates
3
23
  * Formatter now accepted, will apply while not editing a row
@@ -0,0 +1,109 @@
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 jumpToCode = function init() {
14
+ // Classes of code we would like to highlight in the file view
15
+ var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; // Elements to highlight in the file listing view
16
+
17
+ var fileListingElements = ['td.pct.low']; // We don't want to select elements that are direct descendants of another match
18
+
19
+ var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
20
+ // Selecter that finds elements on the page to which we can jump
21
+
22
+ var selector = fileListingElements.join(', ') + ', ' + notSelector + missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
23
+ // The NodeList of matching elements
24
+
25
+ var missingCoverageElements = document.querySelectorAll(selector);
26
+ var currentIndex;
27
+
28
+ function toggleClass(index) {
29
+ missingCoverageElements.item(currentIndex).classList.remove('highlighted');
30
+ missingCoverageElements.item(index).classList.add('highlighted');
31
+ }
32
+
33
+ function makeCurrent(index) {
34
+ toggleClass(index);
35
+ currentIndex = index;
36
+ missingCoverageElements.item(index).scrollIntoView({
37
+ behavior: 'smooth',
38
+ block: 'center',
39
+ inline: 'center'
40
+ });
41
+ }
42
+
43
+ function goToPrevious() {
44
+ var nextIndex = 0;
45
+
46
+ if (typeof currentIndex !== 'number' || currentIndex === 0) {
47
+ nextIndex = missingCoverageElements.length - 1;
48
+ } else if (missingCoverageElements.length > 1) {
49
+ nextIndex = currentIndex - 1;
50
+ }
51
+
52
+ makeCurrent(nextIndex);
53
+ }
54
+
55
+ function goToNext() {
56
+ var nextIndex = 0;
57
+
58
+ if (typeof currentIndex === 'number' && currentIndex < missingCoverageElements.length - 1) {
59
+ nextIndex = currentIndex + 1;
60
+ }
61
+
62
+ makeCurrent(nextIndex);
63
+ }
64
+
65
+ return function jump(event) {
66
+ if (document.getElementById('fileSearch') === document.activeElement && document.activeElement != null) {
67
+ // if we're currently focused on the search input, we don't want to navigate
68
+ return;
69
+ }
70
+
71
+ switch (event.which) {
72
+ case 78: // n
73
+
74
+ case 74:
75
+ // j
76
+ goToNext();
77
+ break;
78
+
79
+ case 66: // b
80
+
81
+ case 75: // k
82
+
83
+ case 80:
84
+ // p
85
+ goToPrevious();
86
+ break;
87
+ }
88
+ };
89
+ }();
90
+
91
+ window.addEventListener('keydown', jumpToCode);
92
+ ;
93
+
94
+ (function () {
95
+ var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
96
+
97
+ if (!reactHotLoader) {
98
+ return;
99
+ }
100
+
101
+ reactHotLoader.register(jumpToCode, "jumpToCode", "/home/ethan/FolioModules/stripes-kint-components/src/artifacts/coverage-jest/lcov-report/block-navigation.js");
102
+ })();
103
+
104
+ ;
105
+
106
+ (function () {
107
+ var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
108
+ leaveModule && leaveModule(module);
109
+ })();