@k-int/stripes-kint-components 4.4.2 → 4.5.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.
Files changed (174) hide show
  1. package/CHANGELOG.md +8 -2
  2. package/es/index.js +22 -126
  3. package/es/lib/CustomProperties/View/CustomPropertyCard.js +2 -2
  4. package/es/lib/QueryTypedown/QueryTypedown.js +8 -1
  5. package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +5 -2
  6. package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +5 -1
  7. package/es/lib/hooks/useHelperApp.js +11 -4
  8. package/junit.xml +139 -139
  9. package/package.json +1 -1
  10. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
  11. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +1 -1
  12. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +1 -1
  13. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  14. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
  15. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +128 -50
  16. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
  17. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +1 -1
  18. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +15 -15
  19. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
  20. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
  21. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
  22. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +1 -1
  23. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +1 -1
  24. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
  25. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +1 -1
  26. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
  27. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +1 -1
  28. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
  29. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
  30. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +1 -1
  31. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
  32. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
  33. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +1 -1
  34. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
  35. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +1 -1
  36. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +1 -1
  37. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
  38. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +1 -1
  39. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +1 -1
  40. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +1 -1
  41. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +5 -5
  42. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +4 -4
  43. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
  44. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
  45. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
  46. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
  47. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
  48. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
  49. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
  50. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
  51. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +1 -1
  52. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
  53. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +1 -1
  54. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +1 -1
  55. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  56. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +13 -4
  57. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +12 -3
  58. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +1 -1
  59. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +1 -1
  60. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +38 -23
  61. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +15 -15
  62. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  63. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +4 -4
  64. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  65. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +1 -1
  66. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +1 -1
  67. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  68. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
  69. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
  70. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
  71. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +1 -1
  72. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
  73. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
  74. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +1 -1
  75. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
  76. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  77. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +23 -8
  78. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +7 -7
  79. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  80. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +1 -1
  81. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
  82. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  83. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/ResponsiveButtonGroup.js.html +11 -2
  84. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.html +7 -7
  85. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/index.js.html +1 -1
  86. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +20 -5
  87. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +1 -1
  88. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
  89. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
  90. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
  91. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +1 -1
  92. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
  93. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
  94. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
  95. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +1 -1
  96. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
  97. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
  98. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
  99. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  100. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
  101. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
  102. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  103. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
  104. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
  105. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  106. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +12 -3
  107. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
  108. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +3 -3
  109. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  110. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
  111. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
  112. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  113. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
  114. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
  115. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
  116. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
  117. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  118. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  119. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +10 -10
  120. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +1 -1
  121. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
  122. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  123. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  124. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
  125. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  126. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
  127. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
  128. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +30 -18
  129. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
  130. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +1 -1
  131. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
  132. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
  133. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
  134. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
  135. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
  136. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
  137. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +1 -1
  138. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
  139. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
  140. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
  141. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +1 -1
  142. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
  143. package/src/artifacts/coverage-jest/lcov-report/index.html +43 -43
  144. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.html +3 -3
  145. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/index.js.html +1 -1
  146. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useAppSettings.js.html +1 -1
  147. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettingSection.js.html +1 -1
  148. package/src/artifacts/coverage-jest/lcov-report/settingsHooks/useSettings.js.html +9 -3
  149. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  150. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +1 -1
  151. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +1 -1
  152. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +1 -1
  153. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +1 -1
  154. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +1 -1
  155. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +1 -1
  156. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +1 -1
  157. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +1 -1
  158. package/src/artifacts/coverage-jest/lcov-report/utils/parseKiwtQueryGroups.js.html +1 -1
  159. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
  160. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +1 -1
  161. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +45 -3
  162. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +1 -1
  163. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +1 -1
  164. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +1 -1
  165. package/src/artifacts/coverage-jest/lcov-report/validators/index.html +1 -1
  166. package/src/artifacts/coverage-jest/lcov-report/validators/index.js.html +1 -1
  167. package/src/artifacts/coverage-jest/lcov-report/validators/validators.js.html +1 -1
  168. package/src/artifacts/coverage-jest/lcov.info +388 -342
  169. package/src/index.js +2 -19
  170. package/src/lib/CustomProperties/View/CustomPropertyCard.js +3 -3
  171. package/src/lib/QueryTypedown/QueryTypedown.js +8 -3
  172. package/src/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +3 -0
  173. package/src/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +5 -0
  174. package/src/lib/hooks/useHelperApp.js +14 -10
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
- ## 4.4.2 2023-02-15
1
+ ## 4.5.0 2023-03-16
2
+ * ERM-2879 FOLIO > Agreement App > Supplementary properties is showing the value of 'Visibility' as 'Public' regardless of selection
2
3
  * selectorSafe -- Ensured better compatibility with other scripts now it's used in a user facing place.
3
-
4
+ * useHelperApp: No longer redraws when keys of passed helper objects have not changed
5
+ * Export all hooks by default, both regular hooks and settings specific hooks
6
+ * QueryTypedown
7
+ * Added 'userQuery' state and a useEffect for the 'callPath' so that it is correctly updated upon a user input change
8
+ * ResponsiveButtonGroup
9
+ * Now fires an event 'responsive-button-group-loaded' or 'responsive-button-group-loaded-<id>' depending on whether or not an id has been passed to the ResponsiveButtonGroup
4
10
  ## 4.4.1 2023-02-08
5
11
  * CustomPropertiesSettings
6
12
  * Added displayConditions which act in the same way as below, allowing for programatic turning on/off of access to certain actions
package/es/index.js CHANGED
@@ -5,24 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  var _exportNames = {
8
- useActiveElement: true,
9
- useCustomProperties: true,
10
- useHelperApp: true,
11
- useInvalidateRefdata: true,
12
- useKiwtFieldArray: true,
13
- useKiwtSASQuery: true,
14
- useLocalStorageState: true,
15
- useMutateCustomProperties: true,
16
- useMutateRefdataValue: true,
17
- useQIndex: true,
18
- useRefdata: true,
19
- useTemplates: true,
20
- useIntlKeyStore: true,
21
- useKintIntl: true,
22
- useIntlKey: true,
23
- useSASQQueryMeta: true,
24
- useAppSettings: true,
25
- useSettings: true,
26
8
  SettingsContext: true,
27
9
  SettingPage: true,
28
10
  SettingPagePane: true,
@@ -288,84 +270,6 @@ Object.defineProperty(exports, "Typedown", {
288
270
  }
289
271
  });
290
272
  exports.customPropertyContants = void 0;
291
- Object.defineProperty(exports, "useActiveElement", {
292
- enumerable: true,
293
- get: function get() {
294
- return _hooks.useActiveElement;
295
- }
296
- });
297
- Object.defineProperty(exports, "useAppSettings", {
298
- enumerable: true,
299
- get: function get() {
300
- return _settingsHooks.useAppSettings;
301
- }
302
- });
303
- Object.defineProperty(exports, "useCustomProperties", {
304
- enumerable: true,
305
- get: function get() {
306
- return _hooks.useCustomProperties;
307
- }
308
- });
309
- Object.defineProperty(exports, "useHelperApp", {
310
- enumerable: true,
311
- get: function get() {
312
- return _hooks.useHelperApp;
313
- }
314
- });
315
- Object.defineProperty(exports, "useIntlKey", {
316
- enumerable: true,
317
- get: function get() {
318
- return _hooks.useIntlKey;
319
- }
320
- });
321
- Object.defineProperty(exports, "useIntlKeyStore", {
322
- enumerable: true,
323
- get: function get() {
324
- return _hooks.useIntlKeyStore;
325
- }
326
- });
327
- Object.defineProperty(exports, "useInvalidateRefdata", {
328
- enumerable: true,
329
- get: function get() {
330
- return _hooks.useInvalidateRefdata;
331
- }
332
- });
333
- Object.defineProperty(exports, "useKintIntl", {
334
- enumerable: true,
335
- get: function get() {
336
- return _hooks.useKintIntl;
337
- }
338
- });
339
- Object.defineProperty(exports, "useKiwtFieldArray", {
340
- enumerable: true,
341
- get: function get() {
342
- return _hooks.useKiwtFieldArray;
343
- }
344
- });
345
- Object.defineProperty(exports, "useKiwtSASQuery", {
346
- enumerable: true,
347
- get: function get() {
348
- return _hooks.useKiwtSASQuery;
349
- }
350
- });
351
- Object.defineProperty(exports, "useLocalStorageState", {
352
- enumerable: true,
353
- get: function get() {
354
- return _hooks.useLocalStorageState;
355
- }
356
- });
357
- Object.defineProperty(exports, "useMutateCustomProperties", {
358
- enumerable: true,
359
- get: function get() {
360
- return _hooks.useMutateCustomProperties;
361
- }
362
- });
363
- Object.defineProperty(exports, "useMutateRefdataValue", {
364
- enumerable: true,
365
- get: function get() {
366
- return _hooks.useMutateRefdataValue;
367
- }
368
- });
369
273
  Object.defineProperty(exports, "useOperators", {
370
274
  enumerable: true,
371
275
  get: function get() {
@@ -378,44 +282,36 @@ Object.defineProperty(exports, "useParseActiveFilterStrings", {
378
282
  return _CustomProperties.useParseActiveFilterStrings;
379
283
  }
380
284
  });
381
- Object.defineProperty(exports, "useQIndex", {
382
- enumerable: true,
383
- get: function get() {
384
- return _hooks.useQIndex;
385
- }
386
- });
387
- Object.defineProperty(exports, "useRefdata", {
388
- enumerable: true,
389
- get: function get() {
390
- return _hooks.useRefdata;
391
- }
392
- });
393
- Object.defineProperty(exports, "useSASQQueryMeta", {
394
- enumerable: true,
395
- get: function get() {
396
- return _hooks.useSASQQueryMeta;
397
- }
398
- });
399
285
  Object.defineProperty(exports, "useSelectedOption", {
400
286
  enumerable: true,
401
287
  get: function get() {
402
288
  return _RichSelect.useSelectedOption;
403
289
  }
404
290
  });
405
- Object.defineProperty(exports, "useSettings", {
406
- enumerable: true,
407
- get: function get() {
408
- return _settingsHooks.useSettings;
409
- }
410
- });
411
- Object.defineProperty(exports, "useTemplates", {
412
- enumerable: true,
413
- get: function get() {
414
- return _hooks.useTemplates;
415
- }
416
- });
417
291
  var _hooks = require("./lib/hooks");
292
+ Object.keys(_hooks).forEach(function (key) {
293
+ if (key === "default" || key === "__esModule") return;
294
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
295
+ if (key in exports && exports[key] === _hooks[key]) return;
296
+ Object.defineProperty(exports, key, {
297
+ enumerable: true,
298
+ get: function get() {
299
+ return _hooks[key];
300
+ }
301
+ });
302
+ });
418
303
  var _settingsHooks = require("./lib/settingsHooks");
304
+ Object.keys(_settingsHooks).forEach(function (key) {
305
+ if (key === "default" || key === "__esModule") return;
306
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
307
+ if (key in exports && exports[key] === _settingsHooks[key]) return;
308
+ Object.defineProperty(exports, key, {
309
+ enumerable: true,
310
+ get: function get() {
311
+ return _settingsHooks[key];
312
+ }
313
+ });
314
+ });
419
315
  var _utils = require("./lib/utils");
420
316
  Object.keys(_utils).forEach(function (key) {
421
317
  if (key === "default" || key === "__esModule") return;
@@ -113,8 +113,8 @@ var CustomPropertyCard = function CustomPropertyCard(_ref) {
113
113
  overrideValue: labelOverrides.visibility
114
114
  }),
115
115
  children: kintIntl.formatKintMessage({
116
- id: 'customProperties.internalFalse',
117
- overrideValue: labelOverrides.internalFalse
116
+ id: internalFalse ? 'customProperties.internalFalse' : 'customProperties.internalTrue',
117
+ overrideValue: internalFalse ? labelOverrides.internalFalse : labelOverrides.internalTrue
118
118
  })
119
119
  })
120
120
  }), internalFalse && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
@@ -40,9 +40,16 @@ var QueryTypedown = function QueryTypedown(_ref) {
40
40
  callPath = _useState2[0],
41
41
  setCallPath = _useState2[1];
42
42
  var data = dataFormatter((0, _typedownHooks.useTypedownData)(path, callPath));
43
+ var _useState3 = (0, _react.useState)(''),
44
+ _useState4 = _slicedToArray(_useState3, 2),
45
+ userQuery = _useState4[0],
46
+ setUserQuery = _useState4[1];
43
47
  var onType = function onType(e) {
44
- setCallPath(pathMutator(e.target.value, path));
48
+ setUserQuery(e.target.value);
45
49
  };
50
+ (0, _react.useEffect)(function () {
51
+ setCallPath(pathMutator(userQuery, path));
52
+ }, [path, pathMutator, userQuery]);
46
53
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typedown.default, _objectSpread(_objectSpread({}, rest), {}, {
47
54
  dataOptions: data,
48
55
  onType: onType
@@ -12,7 +12,7 @@ var _components = require("@folio/stripes/components");
12
12
  var _ResponsiveButtonGroup = _interopRequireDefault(require("../../../styles/ResponsiveButtonGroup.css"));
13
13
  var _useResponsiveButtonGroupSizing = _interopRequireDefault(require("./useResponsiveButtonGroupSizing"));
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
- var _excluded = ["children", "className", "dropdownTriggerProps", "fullWidth", "marginBottom0", "selectedIndex", "tagName"];
15
+ var _excluded = ["children", "className", "dropdownTriggerProps", "fullWidth", "id", "marginBottom0", "selectedIndex", "tagName"];
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
18
18
  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."); }
@@ -32,6 +32,7 @@ var propTypes = {
32
32
  className: _propTypes.default.string,
33
33
  dropdownTriggerProps: _propTypes.default.object,
34
34
  fullWidth: _propTypes.default.bool,
35
+ id: _propTypes.default.string,
35
36
  marginBottom0: _propTypes.default.bool,
36
37
  selectedIndex: _propTypes.default.number,
37
38
  tagName: _propTypes.default.string
@@ -61,13 +62,15 @@ var ResponsiveButtonGroup = function ResponsiveButtonGroup(props) {
61
62
  dropdownTriggerProps = _props$dropdownTrigge === void 0 ? {} : _props$dropdownTrigge,
62
63
  _props$fullWidth = props.fullWidth,
63
64
  fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,
65
+ id = props.id,
64
66
  marginBottom0 = props.marginBottom0,
65
67
  selectedIndex = props.selectedIndex,
66
68
  _props$tagName = props.tagName,
67
69
  Tag = _props$tagName === void 0 ? 'div' : _props$tagName,
68
70
  rest = _objectWithoutProperties(props, _excluded);
69
71
  var _useResponsiveButtonG = (0, _useResponsiveButtonGroupSizing.default)({
70
- buttons: childButtons
72
+ buttons: childButtons,
73
+ id: id
71
74
  }),
72
75
  buttons = _useResponsiveButtonG.buttons,
73
76
  cachedSizeArray = _useResponsiveButtonG.cachedSizeArray,
@@ -16,8 +16,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
16
16
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
17
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
  var useResponsiveButtonGroupSizing = function useResponsiveButtonGroupSizing(_ref) {
19
- var _ref$buttons = _ref.buttons,
19
+ var id = _ref.id,
20
+ _ref$buttons = _ref.buttons,
20
21
  buttons = _ref$buttons === void 0 ? [] : _ref$buttons;
22
+ var eventString = 'responsive-button-group-loaded' + (id ? "-".concat(id) : '');
23
+ var loadedEvent = new Event(eventString);
21
24
  var isMounted = (0, _react.useRef)(false);
22
25
  (0, _react.useEffect)(function () {
23
26
  isMounted.current = true;
@@ -63,6 +66,7 @@ var useResponsiveButtonGroupSizing = function useResponsiveButtonGroupSizing(_re
63
66
  if (!(cachedSizeArray !== null && cachedSizeArray !== void 0 && cachedSizeArray.length) && sizeArray !== null && sizeArray !== void 0 && sizeArray.length) {
64
67
  setCachedSizeArray(sizeArray);
65
68
  setReady(true);
69
+ document.dispatchEvent(loadedEvent);
66
70
  }
67
71
  }
68
72
  }, 150), [cachedSizeArray, sizeArray]);
@@ -8,6 +8,7 @@ exports.default = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _reactRouterDom = require("react-router-dom");
10
10
  var _queryString = _interopRequireDefault(require("query-string"));
11
+ var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
11
12
  var _jsxRuntime = require("react/jsx-runtime");
12
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -23,6 +24,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
23
24
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24
25
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
25
26
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
+ var helperObject = {};
26
28
  var useHelperApp = function useHelperApp(helpers) {
27
29
  var history = (0, _reactRouterDom.useHistory)();
28
30
  var location = (0, _reactRouterDom.useLocation)();
@@ -38,6 +40,10 @@ var useHelperApp = function useHelperApp(helpers) {
38
40
  return currentHelper === hlp;
39
41
  };
40
42
  (0, _react.useEffect)(function () {
43
+ // Keep object outside of hook to avoid redraw, oncly change when keys change
44
+ if (!(0, _isEqual.default)(Object.keys(helperObject), Object.keys(helpers))) {
45
+ helperObject = helpers;
46
+ }
41
47
  if (currentHelper !== (query === null || query === void 0 ? void 0 : query.helper)) {
42
48
  var newQuery = _objectSpread(_objectSpread({}, query), {}, {
43
49
  helper: currentHelper
@@ -47,14 +53,14 @@ var useHelperApp = function useHelperApp(helpers) {
47
53
  search: "?".concat(_queryString.default.stringify(newQuery))
48
54
  });
49
55
  }
50
- }, [currentHelper, history, location, query]);
56
+ }, [currentHelper, helpers, history, location, query]);
51
57
 
52
58
  // Set the HelperComponent
53
59
  var HelperComponent = (0, _react.useMemo)(function () {
54
60
  return function (props) {
55
61
  if (!(query !== null && query !== void 0 && query.helper)) return null;
56
62
  var Component = null;
57
- Component = helpers[query === null || query === void 0 ? void 0 : query.helper];
63
+ Component = helperObject[query === null || query === void 0 ? void 0 : query.helper];
58
64
  if (!Component) return null;
59
65
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, _objectSpread({
60
66
  onToggle: function onToggle() {
@@ -62,16 +68,17 @@ var useHelperApp = function useHelperApp(helpers) {
62
68
  }
63
69
  }, props));
64
70
  };
65
- }, [handleToggleHelper, query.helper, helpers]);
71
+ }, [handleToggleHelper, query.helper]);
66
72
 
67
73
  // Set up the helperToggleFunctions
68
74
  var helperToggleFunctions = {};
69
- Object.keys(helpers).forEach(function (h) {
75
+ Object.keys(helperObject).forEach(function (h) {
70
76
  helperToggleFunctions[h] = function () {
71
77
  return handleToggleHelper(h);
72
78
  };
73
79
  });
74
80
  return {
81
+ currentHelper: currentHelper,
75
82
  HelperComponent: HelperComponent,
76
83
  helperToggleFunctions: helperToggleFunctions,
77
84
  isOpen: isOpen