@k-int/stripes-kint-components 1.7.0 → 2.1.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 +36 -0
- package/es/index.js +51 -8
- package/es/lib/ActionList/ActionList.js +48 -28
- package/es/lib/ActionList/ActionListFieldArray.js +56 -16
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +198 -0
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +326 -0
- package/es/lib/CustomProperties/Config/CustomPropertiesView.js +166 -0
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +360 -0
- package/es/lib/CustomProperties/Config/index.js +41 -0
- package/es/lib/EditableRefdataList/EditableRefdataList.js +0 -1
- package/es/lib/FormModal/FormModal.js +126 -0
- package/es/lib/{TypeDown → FormModal}/index.js +2 -2
- package/es/lib/NoResultsMessage/NoResultsMessage.js +1 -1
- package/es/lib/SASQRoute/SASQRoute.js +15 -11
- package/es/lib/SASQViewComponent/SASQViewComponent.js +6 -3
- package/es/lib/Typedown/Typedown.js +50 -18
- package/es/lib/constants/customProperties.js +60 -0
- package/es/lib/hooks/index.js +16 -0
- package/es/lib/hooks/useCustomProperties.js +122 -0
- package/es/lib/hooks/useMutateCustomProperties.js +143 -0
- package/es/lib/utils/generateKiwtQueryParams.js +51 -8
- package/junit.xml +40 -40
- package/package.json +5 -3
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +47 -26
- package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +122 -8
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +10 -10
- package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +418 -0
- package/src/artifacts/coverage-jest/lcov-report/{TypeDown/TypeDown.js.html → CustomProperties/Config/CustomPropertiesSettings.js.html} +268 -232
- 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 +2 -5
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +298 -0
- package/src/artifacts/coverage-jest/lcov-report/{TypeDown → FormModal}/index.html +14 -14
- package/src/artifacts/coverage-jest/lcov-report/{TypeDown → FormModal}/index.js.html +4 -4
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +3 -3
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +43 -16
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +6 -3
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +150 -21
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +7 -7
- package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +112 -0
- package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/constants/index.html +18 -3
- package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +35 -5
- package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +8 -2
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +313 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +271 -0
- package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/index.html +62 -47
- package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +174 -12
- package/src/artifacts/coverage-jest/lcov-report/utils/index.html +17 -17
- package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/renderHelpText.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +1 -1
- package/src/artifacts/coverage-jest/lcov.info +841 -348
- package/src/index.js +14 -4
- package/src/lib/ActionList/ActionList.js +30 -23
- package/src/lib/ActionList/ActionListFieldArray.js +40 -2
- package/src/lib/ActionList/README.md +4 -1
- package/src/lib/CustomProperties/Config/CustomPropertiesLookup.js +111 -0
- package/src/lib/CustomProperties/Config/CustomPropertiesSettings.js +240 -0
- package/src/lib/CustomProperties/Config/CustomPropertiesView.js +150 -0
- package/src/lib/CustomProperties/Config/CustomPropertyForm.js +296 -0
- package/src/lib/CustomProperties/Config/index.js +4 -0
- package/src/lib/EditableRefdataList/EditableRefdataList.js +0 -1
- 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/SASQRoute/SASQRoute.js +23 -14
- package/src/lib/SASQViewComponent/SASQViewComponent.js +2 -1
- package/src/lib/Typedown/Typedown.js +56 -13
- package/src/lib/constants/customProperties.js +9 -0
- package/src/lib/hooks/index.js +2 -0
- package/src/lib/hooks/useCustomProperties.js +76 -0
- package/src/lib/hooks/useMutateCustomProperties.js +62 -0
- package/src/lib/utils/generateKiwtQueryParams.js +58 -4
- package/styles/TypeDown.css +7 -0
- package/translations/stripes-kint-components/en.json +49 -1
- package/es/lib/TypeDown/TypeDown.js +0 -251
- package/src/lib/TypeDown/README.md +0 -1
- package/src/lib/TypeDown/TypeDown.js +0 -228
- package/src/lib/TypeDown/index.js +0 -1
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for hooks/useMutateCustomProperties.js</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../index.html">All files</a> / <a href="index.html">hooks</a> useMutateCustomProperties.js</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">0% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>0/19</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>0/7</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>0/4</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">0% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>0/19</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
|
103
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
|
104
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
|
+
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
+
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
+
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
+
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
+
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
+
<a name='L47'></a><a href='#L47'>47</a>
|
|
113
|
+
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
+
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
+
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
+
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
+
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
+
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
+
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
+
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
|
+
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
+
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
+
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
+
<a name='L62'></a><a href='#L62'>62</a>
|
|
128
|
+
<a name='L63'></a><a href='#L63'>63</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
130
|
+
<span class="cline-any cline-neutral"> </span>
|
|
131
|
+
<span class="cline-any cline-neutral"> </span>
|
|
132
|
+
<span class="cline-any cline-no"> </span>
|
|
133
|
+
<span class="cline-any cline-neutral"> </span>
|
|
134
|
+
<span class="cline-any cline-neutral"> </span>
|
|
135
|
+
<span class="cline-any cline-neutral"> </span>
|
|
136
|
+
<span class="cline-any cline-neutral"> </span>
|
|
137
|
+
<span class="cline-any cline-neutral"> </span>
|
|
138
|
+
<span class="cline-any cline-neutral"> </span>
|
|
139
|
+
<span class="cline-any cline-neutral"> </span>
|
|
140
|
+
<span class="cline-any cline-neutral"> </span>
|
|
141
|
+
<span class="cline-any cline-neutral"> </span>
|
|
142
|
+
<span class="cline-any cline-neutral"> </span>
|
|
143
|
+
<span class="cline-any cline-no"> </span>
|
|
144
|
+
<span class="cline-any cline-neutral"> </span>
|
|
145
|
+
<span class="cline-any cline-no"> </span>
|
|
146
|
+
<span class="cline-any cline-neutral"> </span>
|
|
147
|
+
<span class="cline-any cline-no"> </span>
|
|
148
|
+
<span class="cline-any cline-neutral"> </span>
|
|
149
|
+
<span class="cline-any cline-no"> </span>
|
|
150
|
+
<span class="cline-any cline-neutral"> </span>
|
|
151
|
+
<span class="cline-any cline-neutral"> </span>
|
|
152
|
+
<span class="cline-any cline-neutral"> </span>
|
|
153
|
+
<span class="cline-any cline-neutral"> </span>
|
|
154
|
+
<span class="cline-any cline-no"> </span>
|
|
155
|
+
<span class="cline-any cline-neutral"> </span>
|
|
156
|
+
<span class="cline-any cline-no"> </span>
|
|
157
|
+
<span class="cline-any cline-neutral"> </span>
|
|
158
|
+
<span class="cline-any cline-neutral"> </span>
|
|
159
|
+
<span class="cline-any cline-neutral"> </span>
|
|
160
|
+
<span class="cline-any cline-neutral"> </span>
|
|
161
|
+
<span class="cline-any cline-no"> </span>
|
|
162
|
+
<span class="cline-any cline-neutral"> </span>
|
|
163
|
+
<span class="cline-any cline-no"> </span>
|
|
164
|
+
<span class="cline-any cline-neutral"> </span>
|
|
165
|
+
<span class="cline-any cline-neutral"> </span>
|
|
166
|
+
<span class="cline-any cline-neutral"> </span>
|
|
167
|
+
<span class="cline-any cline-neutral"> </span>
|
|
168
|
+
<span class="cline-any cline-no"> </span>
|
|
169
|
+
<span class="cline-any cline-no"> </span>
|
|
170
|
+
<span class="cline-any cline-neutral"> </span>
|
|
171
|
+
<span class="cline-any cline-no"> </span>
|
|
172
|
+
<span class="cline-any cline-neutral"> </span>
|
|
173
|
+
<span class="cline-any cline-neutral"> </span>
|
|
174
|
+
<span class="cline-any cline-no"> </span>
|
|
175
|
+
<span class="cline-any cline-no"> </span>
|
|
176
|
+
<span class="cline-any cline-neutral"> </span>
|
|
177
|
+
<span class="cline-any cline-no"> </span>
|
|
178
|
+
<span class="cline-any cline-neutral"> </span>
|
|
179
|
+
<span class="cline-any cline-neutral"> </span>
|
|
180
|
+
<span class="cline-any cline-no"> </span>
|
|
181
|
+
<span class="cline-any cline-no"> </span>
|
|
182
|
+
<span class="cline-any cline-neutral"> </span>
|
|
183
|
+
<span class="cline-any cline-no"> </span>
|
|
184
|
+
<span class="cline-any cline-neutral"> </span>
|
|
185
|
+
<span class="cline-any cline-neutral"> </span>
|
|
186
|
+
<span class="cline-any cline-no"> </span>
|
|
187
|
+
<span class="cline-any cline-neutral"> </span>
|
|
188
|
+
<span class="cline-any cline-neutral"> </span>
|
|
189
|
+
<span class="cline-any cline-neutral"> </span>
|
|
190
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { useMutation } from 'react-query';
|
|
191
|
+
|
|
192
|
+
import { useOkapiKy } from '@folio/stripes/core';
|
|
193
|
+
|
|
194
|
+
const useMutateCustomProperties = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >({</span></span>
|
|
195
|
+
afterQueryCalls,
|
|
196
|
+
endpoint,
|
|
197
|
+
id,
|
|
198
|
+
queryParams,
|
|
199
|
+
returnQueryObject = <span class="branch-0 cbranch-no" title="branch not covered" >{</span>
|
|
200
|
+
post: false,
|
|
201
|
+
put: false,
|
|
202
|
+
delete: false
|
|
203
|
+
}
|
|
204
|
+
}) => {
|
|
205
|
+
const returnObj = <span class="cstat-no" title="statement not covered" >{};</span>
|
|
206
|
+
|
|
207
|
+
const ky = <span class="cstat-no" title="statement not covered" >useOkapiKy();</span>
|
|
208
|
+
|
|
209
|
+
const deleteQueryObject = <span class="cstat-no" title="statement not covered" >useMutation(</span>
|
|
210
|
+
['stripes-kint-components', 'useMutateCustomProperties', 'delete', id],
|
|
211
|
+
<span class="fstat-no" title="function not covered" > as</span>ync () => <span class="cstat-no" title="statement not covered" >ky.delete(`${endpoint}/${id}`).json()</span>
|
|
212
|
+
.then(afterQueryCalls?.delete),
|
|
213
|
+
queryParams?.delete
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
const putQueryObject = <span class="cstat-no" title="statement not covered" >useMutation(</span>
|
|
217
|
+
['stripes-kint-components', 'useMutateCustomProperties', 'put', id],
|
|
218
|
+
<span class="fstat-no" title="function not covered" > as</span>ync (data) => <span class="cstat-no" title="statement not covered" >ky.put(`${endpoint}/${id}`, { json: data }).json()</span>
|
|
219
|
+
.then(afterQueryCalls?.put),
|
|
220
|
+
queryParams?.put
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
const postQueryObject = <span class="cstat-no" title="statement not covered" >useMutation(</span>
|
|
224
|
+
['stripes-kint-components', 'useMutateCustomProperties', 'post'],
|
|
225
|
+
<span class="fstat-no" title="function not covered" > as</span>ync (data) => <span class="cstat-no" title="statement not covered" >ky.post(`${endpoint}`, { json: data }).json()</span>
|
|
226
|
+
.then(afterQueryCalls?.post),
|
|
227
|
+
queryParams?.post
|
|
228
|
+
);
|
|
229
|
+
|
|
230
|
+
<span class="cstat-no" title="statement not covered" > if (returnQueryObject?.delete) {</span>
|
|
231
|
+
<span class="cstat-no" title="statement not covered" > returnObj.delete = deleteQueryObject;</span>
|
|
232
|
+
} else {
|
|
233
|
+
<span class="cstat-no" title="statement not covered" > returnObj.delete = deleteQueryObject.mutateAsync;</span>
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
<span class="cstat-no" title="statement not covered" > if (returnQueryObject?.put) {</span>
|
|
237
|
+
<span class="cstat-no" title="statement not covered" > returnObj.put = putQueryObject;</span>
|
|
238
|
+
} else {
|
|
239
|
+
<span class="cstat-no" title="statement not covered" > returnObj.put = putQueryObject.mutateAsync;</span>
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
<span class="cstat-no" title="statement not covered" > if (returnQueryObject?.post) {</span>
|
|
243
|
+
<span class="cstat-no" title="statement not covered" > returnObj.post = postQueryObject;</span>
|
|
244
|
+
} else {
|
|
245
|
+
<span class="cstat-no" title="statement not covered" > returnObj.post = postQueryObject.mutateAsync;</span>
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
<span class="cstat-no" title="statement not covered" > return returnObj;</span>
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export default useMutateCustomProperties;
|
|
252
|
+
</pre></td></tr></table></pre>
|
|
253
|
+
|
|
254
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
255
|
+
</div><!-- /wrapper -->
|
|
256
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
257
|
+
Code coverage generated by
|
|
258
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
259
|
+
at Wed Mar 09 2022 12:00:59 GMT+0000 (Greenwich Mean Time)
|
|
260
|
+
</div>
|
|
261
|
+
<script src="../prettify.js"></script>
|
|
262
|
+
<script>
|
|
263
|
+
window.onload = function () {
|
|
264
|
+
prettyPrint();
|
|
265
|
+
};
|
|
266
|
+
</script>
|
|
267
|
+
<script src="../sorter.js"></script>
|
|
268
|
+
<script src="../block-navigation.js"></script>
|
|
269
|
+
</body>
|
|
270
|
+
</html>
|
|
271
|
+
|
|
@@ -286,7 +286,7 @@ export default useMutateRefdataValue;
|
|
|
286
286
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
287
287
|
Code coverage generated by
|
|
288
288
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
289
|
-
at
|
|
289
|
+
at Wed Mar 09 2022 12:00:59 GMT+0000 (Greenwich Mean Time)
|
|
290
290
|
</div>
|
|
291
291
|
<script src="../prettify.js"></script>
|
|
292
292
|
<script>
|
|
@@ -193,7 +193,7 @@ export default useQIndex;
|
|
|
193
193
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
194
194
|
Code coverage generated by
|
|
195
195
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
196
|
-
at
|
|
196
|
+
at Wed Mar 09 2022 12:00:59 GMT+0000 (Greenwich Mean Time)
|
|
197
197
|
</div>
|
|
198
198
|
<script src="../prettify.js"></script>
|
|
199
199
|
<script>
|
|
@@ -253,7 +253,7 @@ export default useRefdata;
|
|
|
253
253
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
254
254
|
Code coverage generated by
|
|
255
255
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
256
|
-
at
|
|
256
|
+
at Wed Mar 09 2022 12:00:59 GMT+0000 (Greenwich Mean Time)
|
|
257
257
|
</div>
|
|
258
258
|
<script src="../prettify.js"></script>
|
|
259
259
|
<script>
|
|
@@ -151,7 +151,7 @@ export default useTemplates;
|
|
|
151
151
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
152
152
|
Code coverage generated by
|
|
153
153
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
154
|
-
at
|
|
154
|
+
at Wed Mar 09 2022 12:00:59 GMT+0000 (Greenwich Mean Time)
|
|
155
155
|
</div>
|
|
156
156
|
<script src="../prettify.js"></script>
|
|
157
157
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">11.4% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>99/
|
|
28
|
+
<span class='fraction'>99/868</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">9.62% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>52/
|
|
35
|
+
<span class='fraction'>52/540</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">8.23% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>20/
|
|
42
|
+
<span class='fraction'>20/243</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">11.6% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>97/
|
|
49
|
+
<span class='fraction'>97/836</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -84,13 +84,28 @@
|
|
|
84
84
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
85
85
|
</td>
|
|
86
86
|
<td data-value="0" class="pct low">0%</td>
|
|
87
|
-
<td data-value="
|
|
87
|
+
<td data-value="87" class="abs low">0/87</td>
|
|
88
|
+
<td data-value="0" class="pct low">0%</td>
|
|
89
|
+
<td data-value="54" class="abs low">0/54</td>
|
|
90
|
+
<td data-value="0" class="pct low">0%</td>
|
|
91
|
+
<td data-value="24" class="abs low">0/24</td>
|
|
92
|
+
<td data-value="0" class="pct low">0%</td>
|
|
93
|
+
<td data-value="82" class="abs low">0/82</td>
|
|
94
|
+
</tr>
|
|
95
|
+
|
|
96
|
+
<tr>
|
|
97
|
+
<td class="file low" data-value="CustomProperties/Config"><a href="CustomProperties/Config/index.html">CustomProperties/Config</a></td>
|
|
98
|
+
<td data-value="0" class="pic low">
|
|
99
|
+
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
100
|
+
</td>
|
|
101
|
+
<td data-value="0" class="pct low">0%</td>
|
|
102
|
+
<td data-value="93" class="abs low">0/93</td>
|
|
88
103
|
<td data-value="0" class="pct low">0%</td>
|
|
89
|
-
<td data-value="
|
|
104
|
+
<td data-value="125" class="abs low">0/125</td>
|
|
90
105
|
<td data-value="0" class="pct low">0%</td>
|
|
91
|
-
<td data-value="
|
|
106
|
+
<td data-value="35" class="abs low">0/35</td>
|
|
92
107
|
<td data-value="0" class="pct low">0%</td>
|
|
93
|
-
<td data-value="
|
|
108
|
+
<td data-value="90" class="abs low">0/90</td>
|
|
94
109
|
</tr>
|
|
95
110
|
|
|
96
111
|
<tr>
|
|
@@ -138,6 +153,21 @@
|
|
|
138
153
|
<td data-value="66" class="abs high">62/66</td>
|
|
139
154
|
</tr>
|
|
140
155
|
|
|
156
|
+
<tr>
|
|
157
|
+
<td class="file low" data-value="FormModal"><a href="FormModal/index.html">FormModal</a></td>
|
|
158
|
+
<td data-value="0" class="pic low">
|
|
159
|
+
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
160
|
+
</td>
|
|
161
|
+
<td data-value="0" class="pct low">0%</td>
|
|
162
|
+
<td data-value="12" class="abs low">0/12</td>
|
|
163
|
+
<td data-value="100" class="pct high">100%</td>
|
|
164
|
+
<td data-value="0" class="abs high">0/0</td>
|
|
165
|
+
<td data-value="0" class="pct low">0%</td>
|
|
166
|
+
<td data-value="5" class="abs low">0/5</td>
|
|
167
|
+
<td data-value="0" class="pct low">0%</td>
|
|
168
|
+
<td data-value="12" class="abs low">0/12</td>
|
|
169
|
+
</tr>
|
|
170
|
+
|
|
141
171
|
<tr>
|
|
142
172
|
<td class="file low" data-value="NoResultsMessage"><a href="NoResultsMessage/index.html">NoResultsMessage</a></td>
|
|
143
173
|
<td data-value="0" class="pic low">
|
|
@@ -258,34 +288,19 @@
|
|
|
258
288
|
<td data-value="9" class="abs low">0/9</td>
|
|
259
289
|
</tr>
|
|
260
290
|
|
|
261
|
-
<tr>
|
|
262
|
-
<td class="file low" data-value="TypeDown"><a href="TypeDown/index.html">TypeDown</a></td>
|
|
263
|
-
<td data-value="0" class="pic low">
|
|
264
|
-
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
265
|
-
</td>
|
|
266
|
-
<td data-value="0" class="pct low">0%</td>
|
|
267
|
-
<td data-value="27" class="abs low">0/27</td>
|
|
268
|
-
<td data-value="0" class="pct low">0%</td>
|
|
269
|
-
<td data-value="16" class="abs low">0/16</td>
|
|
270
|
-
<td data-value="0" class="pct low">0%</td>
|
|
271
|
-
<td data-value="11" class="abs low">0/11</td>
|
|
272
|
-
<td data-value="0" class="pct low">0%</td>
|
|
273
|
-
<td data-value="27" class="abs low">0/27</td>
|
|
274
|
-
</tr>
|
|
275
|
-
|
|
276
291
|
<tr>
|
|
277
292
|
<td class="file low" data-value="Typedown"><a href="Typedown/index.html">Typedown</a></td>
|
|
278
293
|
<td data-value="0" class="pic low">
|
|
279
294
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
280
295
|
</td>
|
|
281
296
|
<td data-value="0" class="pct low">0%</td>
|
|
282
|
-
<td data-value="
|
|
297
|
+
<td data-value="41" class="abs low">0/41</td>
|
|
283
298
|
<td data-value="0" class="pct low">0%</td>
|
|
284
|
-
<td data-value="
|
|
299
|
+
<td data-value="32" class="abs low">0/32</td>
|
|
285
300
|
<td data-value="0" class="pct low">0%</td>
|
|
286
301
|
<td data-value="13" class="abs low">0/13</td>
|
|
287
302
|
<td data-value="0" class="pct low">0%</td>
|
|
288
|
-
<td data-value="
|
|
303
|
+
<td data-value="39" class="abs low">0/39</td>
|
|
289
304
|
</tr>
|
|
290
305
|
|
|
291
306
|
<tr>
|
|
@@ -294,13 +309,13 @@
|
|
|
294
309
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
295
310
|
</td>
|
|
296
311
|
<td data-value="0" class="pct low">0%</td>
|
|
297
|
-
<td data-value="
|
|
312
|
+
<td data-value="12" class="abs low">0/12</td>
|
|
298
313
|
<td data-value="100" class="pct high">100%</td>
|
|
299
314
|
<td data-value="0" class="abs high">0/0</td>
|
|
300
315
|
<td data-value="100" class="pct high">100%</td>
|
|
301
316
|
<td data-value="0" class="abs high">0/0</td>
|
|
302
317
|
<td data-value="0" class="pct low">0%</td>
|
|
303
|
-
<td data-value="
|
|
318
|
+
<td data-value="12" class="abs low">0/12</td>
|
|
304
319
|
</tr>
|
|
305
320
|
|
|
306
321
|
<tr>
|
|
@@ -324,13 +339,13 @@
|
|
|
324
339
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
325
340
|
</td>
|
|
326
341
|
<td data-value="0" class="pct low">0%</td>
|
|
327
|
-
<td data-value="
|
|
342
|
+
<td data-value="184" class="abs low">0/184</td>
|
|
328
343
|
<td data-value="0" class="pct low">0%</td>
|
|
329
|
-
<td data-value="
|
|
344
|
+
<td data-value="77" class="abs low">0/77</td>
|
|
330
345
|
<td data-value="0" class="pct low">0%</td>
|
|
331
|
-
<td data-value="
|
|
346
|
+
<td data-value="47" class="abs low">0/47</td>
|
|
332
347
|
<td data-value="0" class="pct low">0%</td>
|
|
333
|
-
<td data-value="
|
|
348
|
+
<td data-value="177" class="abs low">0/177</td>
|
|
334
349
|
</tr>
|
|
335
350
|
|
|
336
351
|
<tr>
|
|
@@ -365,17 +380,17 @@
|
|
|
365
380
|
|
|
366
381
|
<tr>
|
|
367
382
|
<td class="file low" data-value="utils"><a href="utils/index.html">utils</a></td>
|
|
368
|
-
<td data-value="
|
|
369
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
383
|
+
<td data-value="8.24" class="pic low">
|
|
384
|
+
<div class="chart"><div class="cover-fill" style="width: 8%"></div><div class="cover-empty" style="width: 92%"></div></div>
|
|
370
385
|
</td>
|
|
371
|
-
<td data-value="
|
|
372
|
-
<td data-value="
|
|
373
|
-
<td data-value="
|
|
374
|
-
<td data-value="
|
|
375
|
-
<td data-value="
|
|
376
|
-
<td data-value="
|
|
377
|
-
<td data-value="
|
|
378
|
-
<td data-value="
|
|
386
|
+
<td data-value="8.24" class="pct low">8.24%</td>
|
|
387
|
+
<td data-value="97" class="abs low">8/97</td>
|
|
388
|
+
<td data-value="2.98" class="pct low">2.98%</td>
|
|
389
|
+
<td data-value="67" class="abs low">2/67</td>
|
|
390
|
+
<td data-value="6.45" class="pct low">6.45%</td>
|
|
391
|
+
<td data-value="31" class="abs low">2/31</td>
|
|
392
|
+
<td data-value="8.79" class="pct low">8.79%</td>
|
|
393
|
+
<td data-value="91" class="abs low">8/91</td>
|
|
379
394
|
</tr>
|
|
380
395
|
|
|
381
396
|
</tbody>
|
|
@@ -386,7 +401,7 @@
|
|
|
386
401
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
387
402
|
Code coverage generated by
|
|
388
403
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
389
|
-
at
|
|
404
|
+
at Wed Mar 09 2022 12:00:59 GMT+0000 (Greenwich Mean Time)
|
|
390
405
|
</div>
|
|
391
406
|
<script src="prettify.js"></script>
|
|
392
407
|
<script>
|
|
@@ -178,7 +178,7 @@ export default function <span class="fstat-no" title="function not covered" >bui
|
|
|
178
178
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
179
179
|
Code coverage generated by
|
|
180
180
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
181
|
-
at
|
|
181
|
+
at Wed Mar 09 2022 12:00:59 GMT+0000 (Greenwich Mean Time)
|
|
182
182
|
</div>
|
|
183
183
|
<script src="../prettify.js"></script>
|
|
184
184
|
<script>
|
|
@@ -94,7 +94,7 @@ export default generateKiwtQuery;
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
97
|
-
at
|
|
97
|
+
at Wed Mar 09 2022 12:00:59 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
<script src="../prettify.js"></script>
|
|
100
100
|
<script>
|