@pareto-engineering/design-system 5.9.0 → 5.10.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 (204) hide show
  1. package/dist/{FormBuilder-D0lMP-MB.js → FormBuilder-DfzGoJzj.js} +13098 -13034
  2. package/dist/assets/DraggableItem.css +1 -1
  3. package/dist/assets/FormBuilder.css +1 -1
  4. package/dist/assets/ProgressBar.css +1 -1
  5. package/dist/assets/ToggleSwitch.css +1 -1
  6. package/dist/index.js +105 -104
  7. package/dist/stories/a/AppContext.stories.js +7 -6
  8. package/dist/stories/a/AreaChart.stories.js +5 -4
  9. package/dist/stories/a/BarChart.stories.js +9 -8
  10. package/dist/stories/a/BlurOverlay.stories.js +5 -4
  11. package/dist/stories/a/ContentTree.stories.js +7 -6
  12. package/dist/stories/a/Conversation.stories.js +9 -8
  13. package/dist/stories/a/DatePicker.stories.js +5 -4
  14. package/dist/stories/a/DotInfo.stories.js +7 -6
  15. package/dist/stories/a/Figure.stories.js +7 -6
  16. package/dist/stories/a/HamburgerButton.stories.js +7 -6
  17. package/dist/stories/a/IconList.stories.js +7 -6
  18. package/dist/stories/a/Label.stories.js +7 -6
  19. package/dist/stories/a/LoadingCircle.stories.js +7 -6
  20. package/dist/stories/a/MetaCard.stories.js +5 -4
  21. package/dist/stories/a/Notification.stories.js +13 -12
  22. package/dist/stories/a/NotificationStack.stories.js +7 -6
  23. package/dist/stories/a/People.stories.js +11 -10
  24. package/dist/stories/a/PieChart.stories.js +5 -4
  25. package/dist/stories/a/Popover.stories.js +5 -4
  26. package/dist/stories/a/ProgressBar.stories.js +7 -6
  27. package/dist/stories/a/Quote.stories.js +5 -4
  28. package/dist/stories/a/Removable.stories.js +7 -6
  29. package/dist/stories/a/SVG.stories.js +13 -12
  30. package/dist/stories/a/SnapScroller.stories.js +12 -11
  31. package/dist/stories/a/Spinner.stories.js +7 -6
  32. package/dist/stories/a/TextSteps.stories.js +7 -6
  33. package/dist/stories/a/Timestamp.stories.js +5 -4
  34. package/dist/stories/a/Tip.stories.js +5 -4
  35. package/dist/stories/a/ToggleSwitch.stories.js +8 -7
  36. package/dist/stories/a/Tooltip.stories.js +11 -10
  37. package/dist/stories/a/XMLEditor.stories.js +5 -4
  38. package/dist/stories/b/Button/Button.stories.js +10 -9
  39. package/dist/stories/b/Button/Group.stories.js +5 -4
  40. package/dist/stories/b/Card/Card.stories.js +5 -4
  41. package/dist/stories/b/Card/Group.stories.js +5 -4
  42. package/dist/stories/b/Logo.stories.js +8 -7
  43. package/dist/stories/b/Page.stories.js +10 -9
  44. package/dist/stories/b/SocialMediaButton.stories.js +5 -4
  45. package/dist/stories/b/ThemeSelector.stories.js +7 -6
  46. package/dist/stories/b/Title.stories.js +7 -6
  47. package/dist/stories/c/Modal.stories.js +5 -4
  48. package/dist/stories/c/Shortener.stories.js +5 -4
  49. package/dist/stories/c/SocialMediaShareButton.stories.js +5 -4
  50. package/dist/stories/f/Checkbox.stories.js +5 -4
  51. package/dist/stories/f/ChoicesInput.stories.js +5 -4
  52. package/dist/stories/f/Combobox.stories.js +95 -0
  53. package/dist/stories/f/Description.stories.js +5 -4
  54. package/dist/stories/f/DragAndDropFileUpload.stories.js +139 -0
  55. package/dist/stories/f/EditorInput.stories.js +5 -4
  56. package/dist/stories/f/FileUpload.stories.js +11 -10
  57. package/dist/stories/f/Label.stories.js +7 -6
  58. package/dist/stories/f/LinkInput.stories.js +5 -4
  59. package/dist/stories/f/RadioInput.stories.js +7 -6
  60. package/dist/stories/f/RatingsInput.stories.js +5 -4
  61. package/dist/stories/f/SelectInput.stories.js +7 -6
  62. package/dist/stories/f/TextInput.stories.js +5 -4
  63. package/dist/stories/f/TextareaInput.stories.js +5 -4
  64. package/dist/stories/g/DragAndDrop.stories.js +9 -8
  65. package/dist/stories/g/ExpandableLexicalPreview.stories.js +8 -7
  66. package/dist/stories/g/FormBuilder.stories.js +25 -16
  67. package/dist/stories/utils/defaultFormBuilderConfig.js +115 -0
  68. package/dist/ui/a/AnimatedGradient/AnimatedGradient.js +1 -1
  69. package/dist/ui/a/AnimatedGradient/index.js +1 -1
  70. package/dist/ui/a/ContentTree/ContentTree.js +1 -1
  71. package/dist/ui/a/ContentTree/common/Tree/Tree.js +4 -3
  72. package/dist/ui/a/ContentTree/common/Tree/index.js +2 -2
  73. package/dist/ui/a/ContentTree/common/index.js +1 -1
  74. package/dist/ui/a/ContentTree/index.js +1 -1
  75. package/dist/ui/a/Conversation/Conversation.js +4 -3
  76. package/dist/ui/a/Conversation/index.js +1 -1
  77. package/dist/ui/a/Notification/Notification.js +4 -3
  78. package/dist/ui/a/Notification/index.js +1 -1
  79. package/dist/ui/a/NotificationStack/NotificationStack.js +1 -1
  80. package/dist/ui/a/NotificationStack/index.js +1 -1
  81. package/dist/ui/a/ToggleSwitch/ToggleSwitch.js +21 -53
  82. package/dist/ui/a/index.js +1 -1
  83. package/dist/ui/b/Button/Button.js +4 -3
  84. package/dist/ui/b/Button/index.js +1 -1
  85. package/dist/ui/b/Card/Card.js +4 -3
  86. package/dist/ui/b/Card/common/Group/Group.js +4 -3
  87. package/dist/ui/b/Card/common/Group/index.js +2 -2
  88. package/dist/ui/b/Card/common/index.js +4 -4
  89. package/dist/ui/b/Card/index.js +1 -1
  90. package/dist/ui/b/Logo/Logo.js +1 -1
  91. package/dist/ui/b/Logo/index.js +1 -1
  92. package/dist/ui/b/Page/Page.js +1 -1
  93. package/dist/ui/b/Page/common/PageHelmet/PageHelmet.js +1 -1
  94. package/dist/ui/b/Page/common/PageHelmet/index.js +1 -1
  95. package/dist/ui/b/Page/common/index.js +1 -1
  96. package/dist/ui/b/Page/index.js +1 -1
  97. package/dist/ui/b/SocialMediaButton/SocialMediaButton.js +1 -1
  98. package/dist/ui/b/SocialMediaButton/index.js +1 -1
  99. package/dist/ui/b/ThemeSelector/ThemeSelector.js +1 -1
  100. package/dist/ui/b/ThemeSelector/index.js +1 -1
  101. package/dist/ui/b/index.js +1 -1
  102. package/dist/ui/c/Modal/Modal.js +1 -1
  103. package/dist/ui/c/Modal/common/ModalHeader/ModalHeader.js +4 -3
  104. package/dist/ui/c/Modal/common/ModalHeader/index.js +1 -1
  105. package/dist/ui/c/Modal/common/index.js +1 -1
  106. package/dist/ui/c/Modal/index.js +1 -1
  107. package/dist/ui/c/Shortener/Shortener.js +1 -1
  108. package/dist/ui/c/Shortener/index.js +1 -1
  109. package/dist/ui/c/index.js +1 -1
  110. package/dist/ui/f/FormInput/FormInput.js +1 -1
  111. package/dist/ui/f/FormInput/index.js +1 -1
  112. package/dist/ui/f/common/Debugger/Debugger.js +1 -1
  113. package/dist/ui/f/common/Debugger/index.js +1 -1
  114. package/dist/ui/f/common/index.js +5 -5
  115. package/dist/ui/f/common/utils/index.js +2 -2
  116. package/dist/ui/f/common/utils/{lookUpInputValueFromFetchedOptions.js → lookUpInputValueFromOptions.js} +5 -6
  117. package/dist/ui/f/fields/Checkbox/Checkbox.js +1 -1
  118. package/dist/ui/f/fields/Checkbox/index.js +1 -1
  119. package/dist/ui/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  120. package/dist/ui/f/fields/ChoicesInput/index.js +1 -1
  121. package/dist/ui/f/fields/DragAndDropFileUpload/DragAndDropFileUpload.js +10 -0
  122. package/dist/ui/f/fields/DragAndDropFileUpload/index.js +4 -0
  123. package/dist/ui/f/fields/EditorInput/EditorInput.js +1 -1
  124. package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +2 -2
  125. package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +1 -1
  126. package/dist/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +1 -1
  127. package/dist/ui/f/fields/EditorInput/common/ColorPicker/index.js +1 -1
  128. package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +1 -1
  129. package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +1 -1
  130. package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +1 -1
  131. package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +1 -1
  132. package/dist/ui/f/fields/EditorInput/common/index.js +1 -1
  133. package/dist/ui/f/fields/EditorInput/index.js +1 -1
  134. package/dist/ui/f/fields/FileUpload/FileUpload.js +1 -1
  135. package/dist/ui/f/fields/FileUpload/common/Preview/Preview.js +2 -2
  136. package/dist/ui/f/fields/FileUpload/common/Preview/index.js +1 -1
  137. package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/PreviewNewRegistration.js +42 -0
  138. package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/index.js +4 -0
  139. package/dist/ui/f/fields/FileUpload/common/index.js +3 -2
  140. package/dist/ui/f/fields/FileUpload/index.js +1 -1
  141. package/dist/ui/f/fields/LatexPreviewInput/LatexPreviewInput.js +1 -1
  142. package/dist/ui/f/fields/LatexPreviewInput/index.js +1 -1
  143. package/dist/ui/f/fields/LinkInput/LinkInput.js +1 -1
  144. package/dist/ui/f/fields/LinkInput/index.js +1 -1
  145. package/dist/ui/f/fields/QueryChoices/QueryChoices.js +1 -1
  146. package/dist/ui/f/fields/QueryChoices/index.js +1 -1
  147. package/dist/ui/f/fields/QueryCombobox/QueryCombobox.js +2 -3
  148. package/dist/ui/f/fields/QueryCombobox/common/Combobox/Combobox.js +7 -7
  149. package/dist/ui/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
  150. package/dist/ui/f/fields/QueryCombobox/common/Menu/Menu.js +435 -74
  151. package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +4 -4
  152. package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
  153. package/dist/ui/f/fields/QueryCombobox/common/index.js +1 -1
  154. package/dist/ui/f/fields/QueryCombobox/index.js +1 -1
  155. package/dist/ui/f/fields/QuerySelect/QuerySelect.js +6 -4
  156. package/dist/ui/f/fields/QuerySelect/index.js +1 -1
  157. package/dist/ui/f/fields/RatingsInput/RatingsInput.js +1 -1
  158. package/dist/ui/f/fields/RatingsInput/index.js +1 -1
  159. package/dist/ui/f/fields/SearchDropdown/SearchDropdown.js +4 -2
  160. package/dist/ui/f/fields/SearchDropdown/index.js +1 -1
  161. package/dist/ui/f/fields/SelectInput/SelectInput.js +1 -1
  162. package/dist/ui/f/fields/SelectInput/common/Menu/Menu.js +2 -2
  163. package/dist/ui/f/fields/SelectInput/common/Menu/index.js +1 -1
  164. package/dist/ui/f/fields/SelectInput/common/Multiple/Multiple.js +4 -2
  165. package/dist/ui/f/fields/SelectInput/common/Multiple/index.js +1 -1
  166. package/dist/ui/f/fields/SelectInput/common/Single/Single.js +6 -4
  167. package/dist/ui/f/fields/SelectInput/common/Single/index.js +1 -1
  168. package/dist/ui/f/fields/SelectInput/common/index.js +1 -1
  169. package/dist/ui/f/fields/SelectInput/index.js +1 -1
  170. package/dist/ui/f/fields/SelectSingle/SelectSingle.js +16 -14
  171. package/dist/ui/f/fields/TextInput/TextInput.js +1 -1
  172. package/dist/ui/f/fields/TextInput/index.js +1 -1
  173. package/dist/ui/f/fields/TextareaInput/TextareaInput.js +1 -1
  174. package/dist/ui/f/fields/TextareaInput/index.js +1 -1
  175. package/dist/ui/f/fields/ToggleInput/ToggleInput.js +1 -1
  176. package/dist/ui/f/fields/ToggleInput/index.js +1 -1
  177. package/dist/ui/f/fields/index.js +18 -17
  178. package/dist/ui/f/index.js +22 -21
  179. package/dist/ui/g/DragAndDrop/DragAndDrop.js +21 -21
  180. package/dist/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +6 -4
  181. package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +3 -2
  182. package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +1 -1
  183. package/dist/ui/g/ExpandableLexicalPreview/common/index.js +1 -1
  184. package/dist/ui/g/ExpandableLexicalPreview/index.js +1 -1
  185. package/dist/ui/g/FormBuilder/FormBuilder.js +1 -1
  186. package/dist/ui/g/FormBuilder/common/Builder/Builder.js +6 -4
  187. package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +1 -1
  188. package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +1 -1
  189. package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +6 -5
  190. package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +1 -1
  191. package/dist/ui/g/FormBuilder/common/Builder/common/Section/Section.js +7 -4
  192. package/dist/ui/g/FormBuilder/common/Builder/common/Section/index.js +3 -2
  193. package/dist/ui/g/FormBuilder/common/Builder/common/index.js +5 -4
  194. package/dist/ui/g/FormBuilder/common/Builder/index.js +1 -1
  195. package/dist/ui/g/FormBuilder/common/Renderer/Renderer.js +1 -1
  196. package/dist/ui/g/FormBuilder/common/Renderer/common/Section/Section.js +7 -5
  197. package/dist/ui/g/FormBuilder/common/Renderer/common/Section/index.js +1 -1
  198. package/dist/ui/g/FormBuilder/common/Renderer/common/index.js +1 -1
  199. package/dist/ui/g/FormBuilder/common/Renderer/index.js +1 -1
  200. package/dist/ui/g/FormBuilder/common/index.js +3 -3
  201. package/dist/ui/g/FormBuilder/index.js +1 -1
  202. package/dist/ui/g/index.js +1 -1
  203. package/dist/ui/index.js +105 -104
  204. package/package.json +9 -8
@@ -4,7 +4,7 @@ import "../../../../index-CxkFVI6N.js";
4
4
  import "../../../../exports.module-DmUnHWIJ.js";
5
5
  import "formik";
6
6
  import "./convertLatexToHtml.js";
7
- import { m as f } from "../../../../FormBuilder-D0lMP-MB.js";
7
+ import { m as f } from "../../../../FormBuilder-DfzGoJzj.js";
8
8
  export {
9
9
  f as default
10
10
  };
@@ -1,4 +1,4 @@
1
- import { m as o } from "../../../../FormBuilder-D0lMP-MB.js";
1
+ import { m as o } from "../../../../FormBuilder-DfzGoJzj.js";
2
2
  import { default as a } from "./convertLatexToHtml.js";
3
3
  export {
4
4
  o as LatexPreviewInput,
@@ -5,7 +5,7 @@ import "../../../../exports.module-DmUnHWIJ.js";
5
5
  import "formik";
6
6
  import "../../common/Label/Label.js";
7
7
  import "../../common/Description/Description.js";
8
- import { l } from "../../../../FormBuilder-D0lMP-MB.js";
8
+ import { l } from "../../../../FormBuilder-DfzGoJzj.js";
9
9
  export {
10
10
  l as default
11
11
  };
@@ -1,4 +1,4 @@
1
- import { l as p } from "../../../../FormBuilder-D0lMP-MB.js";
1
+ import { l as p } from "../../../../FormBuilder-DfzGoJzj.js";
2
2
  export {
3
3
  p as LinkInput
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { k as a } from "../../../../FormBuilder-D0lMP-MB.js";
3
+ import { k as a } from "../../../../FormBuilder-DfzGoJzj.js";
4
4
  import "formik";
5
5
  import "../../../../index-CxkFVI6N.js";
6
6
  export {
@@ -1,4 +1,4 @@
1
- import { k as r } from "../../../../FormBuilder-D0lMP-MB.js";
1
+ import { k as r } from "../../../../FormBuilder-DfzGoJzj.js";
2
2
  export {
3
3
  r as QueryChoices
4
4
  };
@@ -1,9 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "formik";
4
- import { Q as e } from "../../../../FormBuilder-D0lMP-MB.js";
5
- import "../../../../index-CxkFVI6N.js";
4
+ import { Q as a } from "../../../../FormBuilder-DfzGoJzj.js";
6
5
  import "./common/Menu/Menu.js";
7
6
  export {
8
- e as default
7
+ a as default
9
8
  };
@@ -1,11 +1,15 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../../../../../index-CxkFVI6N.js";
4
- import { H as U } from "../../../../../../FormBuilder-D0lMP-MB.js";
3
+ import "../../../../../../debounce-Cm69Z_cF.js";
4
+ import { K as U } from "../../../../../../FormBuilder-DfzGoJzj.js";
5
5
  import "../../../../../../exports.module-DmUnHWIJ.js";
6
6
  import "../../../../common/Label/Label.js";
7
7
  import "../../../../common/Description/Description.js";
8
- import "../../../../common/utils/lookUpInputValueFromFetchedOptions.js";
8
+ import "../../../../common/utils/lookUpInputValueFromOptions.js";
9
+ import "formik";
10
+ import "../Menu/Menu.js";
11
+ import "../../../../../b/Page/Context.js";
12
+ import "../../../../../b/Title/Title.js";
9
13
  import "../../../../../a/AppContext/Context.js";
10
14
  import "../../../../../a/AppContext/ContextProvider.js";
11
15
  import "../../../../../a/BlurOverlay/BlurOverlay.js";
@@ -37,12 +41,8 @@ import "../../../../../a/Charts/AreaChart/AreaChart.js";
37
41
  import "../../../../../a/Charts/BarChart/BarChart.js";
38
42
  import "../../../../../a/Charts/PieChart/PieChart.js";
39
43
  import "../../../../../a/ThroughPutIndicator/ThroughPutIndicator.js";
40
- import "formik";
41
44
  import "../../../LatexPreviewInput/convertLatexToHtml.js";
42
45
  import "../../../RadioInput/RadioInput.js";
43
- import "../../../../../b/Page/Context.js";
44
- import "../../../../../b/Title/Title.js";
45
- import "../Menu/Menu.js";
46
46
  export {
47
47
  U as default
48
48
  };
@@ -1,4 +1,4 @@
1
- import { H as m } from "../../../../../../FormBuilder-D0lMP-MB.js";
1
+ import { K as m } from "../../../../../../FormBuilder-DfzGoJzj.js";
2
2
  export {
3
3
  m as Combobox
4
4
  };
@@ -1,78 +1,439 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import * as g from "react";
3
- import { P as e } from "../../../../../../index-CxkFVI6N.js";
4
- import { s as l } from "../../../../../../exports.module-DmUnHWIJ.js";
5
- const u = l.base, h = "menu", o = g.forwardRef(({
6
- id: t,
7
- className: i,
8
- style: m,
9
- items: n,
10
- isOpen: p,
11
- highlightedIndex: c,
12
- getItemProps: f,
13
- ...d
14
- }, b) => /* @__PURE__ */ a(
15
- "ul",
16
- {
17
- id: t,
18
- className: [
19
- u,
20
- h,
21
- i
22
- ].filter((s) => s).join(" "),
23
- style: m,
24
- ref: b,
25
- ...d,
26
- children: p && n.map((s, r) => /* @__PURE__ */ a(
27
- "li",
28
- {
29
- ...f({ item: s, index: r }),
30
- className: [
31
- "item",
32
- c === r && l.modifierActive
33
- ].filter(Boolean).join(" "),
34
- children: /* @__PURE__ */ a("p", { children: s.label })
35
- },
36
- s.label
37
- ))
38
- }
39
- ));
40
- o.propTypes = {
41
- /**
42
- * The HTML id for this element
43
- */
44
- id: e.string,
45
- /**
46
- * The HTML class names for this element
47
- */
48
- className: e.string,
49
- /**
50
- * The React-written, css properties for this element.
51
- */
52
- style: e.objectOf(e.string),
53
- /**
54
- * The items to be displayed in the menu
55
- */
56
- items: e.arrayOf(e.shape({
57
- value: e.string,
58
- label: e.string
59
- })),
60
- /**
61
- * Whether or not the menu is open
62
- */
63
- isOpen: e.bool,
64
- /**
65
- * The index of the highlighted item
66
- */
67
- highlightedIndex: e.number,
68
- /**
69
- * The function to get the item props
70
- */
71
- getItemProps: e.func
1
+ import { jsx as P } from "react/jsx-runtime";
2
+ import * as oe from "react";
3
+ import { createElement as W, PureComponent as ae } from "react";
4
+ import { s as Z } from "../../../../../../exports.module-DmUnHWIJ.js";
5
+ function q(r) {
6
+ if (r === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7
+ return r;
8
+ }
9
+ function D(r, t) {
10
+ return D = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, a) {
11
+ return i.__proto__ = a, i;
12
+ }, D(r, t);
13
+ }
14
+ function F() {
15
+ return F = Object.assign ? Object.assign.bind() : function(r) {
16
+ for (var t = 1; t < arguments.length; t++) {
17
+ var i = arguments[t];
18
+ for (var a in i) ({}).hasOwnProperty.call(i, a) && (r[a] = i[a]);
19
+ }
20
+ return r;
21
+ }, F.apply(null, arguments);
22
+ }
23
+ function le(r, t) {
24
+ r.prototype = Object.create(t.prototype), r.prototype.constructor = r, D(r, t);
25
+ }
26
+ var j = Number.isNaN || function(t) {
27
+ return typeof t == "number" && t !== t;
72
28
  };
73
- o.defaultProps = {
74
- // someProp:false
29
+ function se(r, t) {
30
+ return !!(r === t || j(r) && j(t));
31
+ }
32
+ function ce(r, t) {
33
+ if (r.length !== t.length)
34
+ return !1;
35
+ for (var i = 0; i < r.length; i++)
36
+ if (!se(r[i], t[i]))
37
+ return !1;
38
+ return !0;
39
+ }
40
+ function k(r, t) {
41
+ t === void 0 && (t = ce);
42
+ var i, a = [], c, v = !1;
43
+ function y() {
44
+ for (var g = [], S = 0; S < arguments.length; S++)
45
+ g[S] = arguments[S];
46
+ return v && i === this && t(g, a) || (c = r.apply(this, g), v = !0, i = this, a = g), c;
47
+ }
48
+ return y;
49
+ }
50
+ var ue = typeof performance == "object" && typeof performance.now == "function", H = ue ? function() {
51
+ return performance.now();
52
+ } : function() {
53
+ return Date.now();
75
54
  };
55
+ function K(r) {
56
+ cancelAnimationFrame(r.id);
57
+ }
58
+ function de(r, t) {
59
+ var i = H();
60
+ function a() {
61
+ H() - i >= t ? r.call(null) : c.id = requestAnimationFrame(a);
62
+ }
63
+ var c = {
64
+ id: requestAnimationFrame(a)
65
+ };
66
+ return c;
67
+ }
68
+ var A = -1;
69
+ function B(r) {
70
+ if (r === void 0 && (r = !1), A === -1 || r) {
71
+ var t = document.createElement("div"), i = t.style;
72
+ i.width = "50px", i.height = "50px", i.overflow = "scroll", document.body.appendChild(t), A = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
73
+ }
74
+ return A;
75
+ }
76
+ var _ = null;
77
+ function G(r) {
78
+ if (r === void 0 && (r = !1), _ === null || r) {
79
+ var t = document.createElement("div"), i = t.style;
80
+ i.width = "50px", i.height = "50px", i.overflow = "scroll", i.direction = "rtl";
81
+ var a = document.createElement("div"), c = a.style;
82
+ return c.width = "100px", c.height = "100px", t.appendChild(a), document.body.appendChild(t), t.scrollLeft > 0 ? _ = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? _ = "negative" : _ = "positive-ascending"), document.body.removeChild(t), _;
83
+ }
84
+ return _;
85
+ }
86
+ process.env.NODE_ENV;
87
+ var fe = 150, he = function(t, i) {
88
+ return t;
89
+ }, x = null, R = null;
90
+ process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (x = /* @__PURE__ */ new WeakSet(), R = /* @__PURE__ */ new WeakSet());
91
+ function pe(r) {
92
+ var t, i = r.getItemOffset, a = r.getEstimatedTotalSize, c = r.getItemSize, v = r.getOffsetForIndexAndAlignment, y = r.getStartIndexForOffset, g = r.getStopIndexForStartIndex, S = r.initInstanceProps, I = r.shouldResetStyleCacheOnItemSizeChange, p = r.validateProps;
93
+ return t = /* @__PURE__ */ function(b) {
94
+ le(T, b);
95
+ function T(m) {
96
+ var e;
97
+ return e = b.call(this, m) || this, e._instanceProps = S(e.props, q(e)), e._outerRef = void 0, e._resetIsScrollingTimeoutId = null, e.state = {
98
+ instance: q(e),
99
+ isScrolling: !1,
100
+ scrollDirection: "forward",
101
+ scrollOffset: typeof e.props.initialScrollOffset == "number" ? e.props.initialScrollOffset : 0,
102
+ scrollUpdateWasRequested: !1
103
+ }, e._callOnItemsRendered = void 0, e._callOnItemsRendered = k(function(n, o, l, u) {
104
+ return e.props.onItemsRendered({
105
+ overscanStartIndex: n,
106
+ overscanStopIndex: o,
107
+ visibleStartIndex: l,
108
+ visibleStopIndex: u
109
+ });
110
+ }), e._callOnScroll = void 0, e._callOnScroll = k(function(n, o, l) {
111
+ return e.props.onScroll({
112
+ scrollDirection: n,
113
+ scrollOffset: o,
114
+ scrollUpdateWasRequested: l
115
+ });
116
+ }), e._getItemStyle = void 0, e._getItemStyle = function(n) {
117
+ var o = e.props, l = o.direction, u = o.itemSize, f = o.layout, s = e._getItemStyleCache(I && u, I && f, I && l), d;
118
+ if (s.hasOwnProperty(n))
119
+ d = s[n];
120
+ else {
121
+ var h = i(e.props, n, e._instanceProps), O = c(e.props, n, e._instanceProps), z = l === "horizontal" || f === "horizontal", N = l === "rtl", E = z ? h : 0;
122
+ s[n] = d = {
123
+ position: "absolute",
124
+ left: N ? void 0 : E,
125
+ right: N ? E : void 0,
126
+ top: z ? 0 : h,
127
+ height: z ? "100%" : O,
128
+ width: z ? O : "100%"
129
+ };
130
+ }
131
+ return d;
132
+ }, e._getItemStyleCache = void 0, e._getItemStyleCache = k(function(n, o, l) {
133
+ return {};
134
+ }), e._onScrollHorizontal = function(n) {
135
+ var o = n.currentTarget, l = o.clientWidth, u = o.scrollLeft, f = o.scrollWidth;
136
+ e.setState(function(s) {
137
+ if (s.scrollOffset === u)
138
+ return null;
139
+ var d = e.props.direction, h = u;
140
+ if (d === "rtl")
141
+ switch (G()) {
142
+ case "negative":
143
+ h = -u;
144
+ break;
145
+ case "positive-descending":
146
+ h = f - l - u;
147
+ break;
148
+ }
149
+ return h = Math.max(0, Math.min(h, f - l)), {
150
+ isScrolling: !0,
151
+ scrollDirection: s.scrollOffset < h ? "forward" : "backward",
152
+ scrollOffset: h,
153
+ scrollUpdateWasRequested: !1
154
+ };
155
+ }, e._resetIsScrollingDebounced);
156
+ }, e._onScrollVertical = function(n) {
157
+ var o = n.currentTarget, l = o.clientHeight, u = o.scrollHeight, f = o.scrollTop;
158
+ e.setState(function(s) {
159
+ if (s.scrollOffset === f)
160
+ return null;
161
+ var d = Math.max(0, Math.min(f, u - l));
162
+ return {
163
+ isScrolling: !0,
164
+ scrollDirection: s.scrollOffset < d ? "forward" : "backward",
165
+ scrollOffset: d,
166
+ scrollUpdateWasRequested: !1
167
+ };
168
+ }, e._resetIsScrollingDebounced);
169
+ }, e._outerRefSetter = function(n) {
170
+ var o = e.props.outerRef;
171
+ e._outerRef = n, typeof o == "function" ? o(n) : o != null && typeof o == "object" && o.hasOwnProperty("current") && (o.current = n);
172
+ }, e._resetIsScrollingDebounced = function() {
173
+ e._resetIsScrollingTimeoutId !== null && K(e._resetIsScrollingTimeoutId), e._resetIsScrollingTimeoutId = de(e._resetIsScrolling, fe);
174
+ }, e._resetIsScrolling = function() {
175
+ e._resetIsScrollingTimeoutId = null, e.setState({
176
+ isScrolling: !1
177
+ }, function() {
178
+ e._getItemStyleCache(-1, null);
179
+ });
180
+ }, e;
181
+ }
182
+ T.getDerivedStateFromProps = function(e, n) {
183
+ return me(e, n), p(e), null;
184
+ };
185
+ var w = T.prototype;
186
+ return w.scrollTo = function(e) {
187
+ e = Math.max(0, e), this.setState(function(n) {
188
+ return n.scrollOffset === e ? null : {
189
+ scrollDirection: n.scrollOffset < e ? "forward" : "backward",
190
+ scrollOffset: e,
191
+ scrollUpdateWasRequested: !0
192
+ };
193
+ }, this._resetIsScrollingDebounced);
194
+ }, w.scrollToItem = function(e, n) {
195
+ n === void 0 && (n = "auto");
196
+ var o = this.props, l = o.itemCount, u = o.layout, f = this.state.scrollOffset;
197
+ e = Math.max(0, Math.min(e, l - 1));
198
+ var s = 0;
199
+ if (this._outerRef) {
200
+ var d = this._outerRef;
201
+ u === "vertical" ? s = d.scrollWidth > d.clientWidth ? B() : 0 : s = d.scrollHeight > d.clientHeight ? B() : 0;
202
+ }
203
+ this.scrollTo(v(this.props, e, n, f, this._instanceProps, s));
204
+ }, w.componentDidMount = function() {
205
+ var e = this.props, n = e.direction, o = e.initialScrollOffset, l = e.layout;
206
+ if (typeof o == "number" && this._outerRef != null) {
207
+ var u = this._outerRef;
208
+ n === "horizontal" || l === "horizontal" ? u.scrollLeft = o : u.scrollTop = o;
209
+ }
210
+ this._callPropsCallbacks();
211
+ }, w.componentDidUpdate = function() {
212
+ var e = this.props, n = e.direction, o = e.layout, l = this.state, u = l.scrollOffset, f = l.scrollUpdateWasRequested;
213
+ if (f && this._outerRef != null) {
214
+ var s = this._outerRef;
215
+ if (n === "horizontal" || o === "horizontal")
216
+ if (n === "rtl")
217
+ switch (G()) {
218
+ case "negative":
219
+ s.scrollLeft = -u;
220
+ break;
221
+ case "positive-ascending":
222
+ s.scrollLeft = u;
223
+ break;
224
+ default:
225
+ var d = s.clientWidth, h = s.scrollWidth;
226
+ s.scrollLeft = h - d - u;
227
+ break;
228
+ }
229
+ else
230
+ s.scrollLeft = u;
231
+ else
232
+ s.scrollTop = u;
233
+ }
234
+ this._callPropsCallbacks();
235
+ }, w.componentWillUnmount = function() {
236
+ this._resetIsScrollingTimeoutId !== null && K(this._resetIsScrollingTimeoutId);
237
+ }, w.render = function() {
238
+ var e = this.props, n = e.children, o = e.className, l = e.direction, u = e.height, f = e.innerRef, s = e.innerElementType, d = e.innerTagName, h = e.itemCount, O = e.itemData, z = e.itemKey, N = z === void 0 ? he : z, E = e.layout, J = e.outerElementType, Q = e.outerTagName, Y = e.style, ee = e.useIsScrolling, te = e.width, L = this.state.isScrolling, M = l === "horizontal" || E === "horizontal", re = M ? this._onScrollHorizontal : this._onScrollVertical, U = this._getRangeToRender(), ie = U[0], ne = U[1], V = [];
239
+ if (h > 0)
240
+ for (var C = ie; C <= ne; C++)
241
+ V.push(W(n, {
242
+ data: O,
243
+ key: N(C, O),
244
+ index: C,
245
+ isScrolling: ee ? L : void 0,
246
+ style: this._getItemStyle(C)
247
+ }));
248
+ var $ = a(this.props, this._instanceProps);
249
+ return W(J || Q || "div", {
250
+ className: o,
251
+ onScroll: re,
252
+ ref: this._outerRefSetter,
253
+ style: F({
254
+ position: "relative",
255
+ height: u,
256
+ width: te,
257
+ overflow: "auto",
258
+ WebkitOverflowScrolling: "touch",
259
+ willChange: "transform",
260
+ direction: l
261
+ }, Y)
262
+ }, W(s || d || "div", {
263
+ children: V,
264
+ ref: f,
265
+ style: {
266
+ height: M ? "100%" : $,
267
+ pointerEvents: L ? "none" : void 0,
268
+ width: M ? $ : "100%"
269
+ }
270
+ }));
271
+ }, w._callPropsCallbacks = function() {
272
+ if (typeof this.props.onItemsRendered == "function") {
273
+ var e = this.props.itemCount;
274
+ if (e > 0) {
275
+ var n = this._getRangeToRender(), o = n[0], l = n[1], u = n[2], f = n[3];
276
+ this._callOnItemsRendered(o, l, u, f);
277
+ }
278
+ }
279
+ if (typeof this.props.onScroll == "function") {
280
+ var s = this.state, d = s.scrollDirection, h = s.scrollOffset, O = s.scrollUpdateWasRequested;
281
+ this._callOnScroll(d, h, O);
282
+ }
283
+ }, w._getRangeToRender = function() {
284
+ var e = this.props, n = e.itemCount, o = e.overscanCount, l = this.state, u = l.isScrolling, f = l.scrollDirection, s = l.scrollOffset;
285
+ if (n === 0)
286
+ return [0, 0, 0, 0];
287
+ var d = y(this.props, s, this._instanceProps), h = g(this.props, d, s, this._instanceProps), O = !u || f === "backward" ? Math.max(1, o) : 1, z = !u || f === "forward" ? Math.max(1, o) : 1;
288
+ return [Math.max(0, d - O), Math.max(0, Math.min(n - 1, h + z)), d, h];
289
+ }, T;
290
+ }(ae), t.defaultProps = {
291
+ direction: "ltr",
292
+ itemData: void 0,
293
+ layout: "vertical",
294
+ overscanCount: 2,
295
+ useIsScrolling: !1
296
+ }, t;
297
+ }
298
+ var me = function(t, i) {
299
+ var a = t.children, c = t.direction, v = t.height, y = t.layout, g = t.innerTagName, S = t.outerTagName, I = t.width, p = i.instance;
300
+ if (process.env.NODE_ENV !== "production") {
301
+ (g != null || S != null) && R && !R.has(p) && (R.add(p), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));
302
+ var b = c === "horizontal" || y === "horizontal";
303
+ switch (c) {
304
+ case "horizontal":
305
+ case "vertical":
306
+ x && !x.has(p) && (x.add(p), console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));
307
+ break;
308
+ case "ltr":
309
+ case "rtl":
310
+ break;
311
+ default:
312
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + c + '" was specified.'));
313
+ }
314
+ switch (y) {
315
+ case "horizontal":
316
+ case "vertical":
317
+ break;
318
+ default:
319
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + y + '" was specified.'));
320
+ }
321
+ if (a == null)
322
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
323
+ if (b && typeof I != "number")
324
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (I === null ? "null" : typeof I) + '" was specified.'));
325
+ if (!b && typeof v != "number")
326
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (v === null ? "null" : typeof v) + '" was specified.'));
327
+ }
328
+ }, ve = /* @__PURE__ */ pe({
329
+ getItemOffset: function(t, i) {
330
+ var a = t.itemSize;
331
+ return i * a;
332
+ },
333
+ getItemSize: function(t, i) {
334
+ var a = t.itemSize;
335
+ return a;
336
+ },
337
+ getEstimatedTotalSize: function(t) {
338
+ var i = t.itemCount, a = t.itemSize;
339
+ return a * i;
340
+ },
341
+ getOffsetForIndexAndAlignment: function(t, i, a, c, v, y) {
342
+ var g = t.direction, S = t.height, I = t.itemCount, p = t.itemSize, b = t.layout, T = t.width, w = g === "horizontal" || b === "horizontal", m = w ? T : S, e = Math.max(0, I * p - m), n = Math.min(e, i * p), o = Math.max(0, i * p - m + p + y);
343
+ switch (a === "smart" && (c >= o - m && c <= n + m ? a = "auto" : a = "center"), a) {
344
+ case "start":
345
+ return n;
346
+ case "end":
347
+ return o;
348
+ case "center": {
349
+ var l = Math.round(o + (n - o) / 2);
350
+ return l < Math.ceil(m / 2) ? 0 : l > e + Math.floor(m / 2) ? e : l;
351
+ }
352
+ case "auto":
353
+ default:
354
+ return c >= o && c <= n ? c : c < o ? o : n;
355
+ }
356
+ },
357
+ getStartIndexForOffset: function(t, i) {
358
+ var a = t.itemCount, c = t.itemSize;
359
+ return Math.max(0, Math.min(a - 1, Math.floor(i / c)));
360
+ },
361
+ getStopIndexForStartIndex: function(t, i, a) {
362
+ var c = t.direction, v = t.height, y = t.itemCount, g = t.itemSize, S = t.layout, I = t.width, p = c === "horizontal" || S === "horizontal", b = i * g, T = p ? I : v, w = Math.ceil((T + a - b) / g);
363
+ return Math.max(0, Math.min(
364
+ y - 1,
365
+ i + w - 1
366
+ // -1 is because stop index is inclusive
367
+ ));
368
+ },
369
+ initInstanceProps: function(t) {
370
+ },
371
+ shouldResetStyleCacheOnItemSizeChange: !0,
372
+ validateProps: function(t) {
373
+ var i = t.itemSize;
374
+ if (process.env.NODE_ENV !== "production" && typeof i != "number")
375
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a number. ' + ('"' + (i === null ? "null" : typeof i) + '" was specified.'));
376
+ }
377
+ });
378
+ const ge = Z.base, Se = "menu", ye = ({
379
+ index: r,
380
+ style: t,
381
+ items: i,
382
+ getItemProps: a,
383
+ highlightedIndex: c
384
+ }) => {
385
+ const v = i[r];
386
+ return /* @__PURE__ */ P(
387
+ "div",
388
+ {
389
+ style: t,
390
+ ...a({ item: v, index: r }),
391
+ className: [
392
+ "item",
393
+ c === r && Z.modifierActive
394
+ ].filter(Boolean).join(" "),
395
+ children: /* @__PURE__ */ P("p", { children: v.label })
396
+ }
397
+ );
398
+ }, X = 40, Ie = 300, ze = oe.forwardRef(({
399
+ id: r,
400
+ className: t,
401
+ style: i,
402
+ items: a,
403
+ isOpen: c,
404
+ highlightedIndex: v,
405
+ getItemProps: y,
406
+ ...g
407
+ }, S) => {
408
+ const I = Math.min(a.length * X, Ie);
409
+ return /* @__PURE__ */ P(
410
+ ve,
411
+ {
412
+ itemSize: X,
413
+ itemCount: a.length,
414
+ height: I,
415
+ id: r,
416
+ overscanCount: 2,
417
+ className: [
418
+ ge,
419
+ Se,
420
+ t
421
+ ].filter((p) => p).join(" "),
422
+ style: i,
423
+ ref: S,
424
+ ...g,
425
+ children: (p) => /* @__PURE__ */ P(
426
+ ye,
427
+ {
428
+ items: a,
429
+ getItemProps: y,
430
+ highlightedIndex: v,
431
+ ...p
432
+ }
433
+ )
434
+ }
435
+ );
436
+ });
76
437
  export {
77
- o as default
438
+ ze as default
78
439
  };
@@ -1,8 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../../../../../index-CxkFVI6N.js";
3
+ import "../../../../../../debounce-Cm69Z_cF.js";
4
4
  import "../../../../../../exports.module-DmUnHWIJ.js";
5
- import { J as U } from "../../../../../../FormBuilder-D0lMP-MB.js";
5
+ import { O as U } from "../../../../../../FormBuilder-DfzGoJzj.js";
6
6
  import "../../../../../b/Page/Context.js";
7
7
  import "../../../../../b/Title/Title.js";
8
8
  import "../../../../../a/AppContext/Context.js";
@@ -38,11 +38,11 @@ import "../../../../../a/Charts/PieChart/PieChart.js";
38
38
  import "../../../../../a/ThroughPutIndicator/ThroughPutIndicator.js";
39
39
  import "../../../../common/Label/Label.js";
40
40
  import "../../../../common/Description/Description.js";
41
- import "../../../../common/utils/lookUpInputValueFromFetchedOptions.js";
41
+ import "../../../../common/utils/lookUpInputValueFromOptions.js";
42
42
  import "formik";
43
+ import "../Menu/Menu.js";
43
44
  import "../../../LatexPreviewInput/convertLatexToHtml.js";
44
45
  import "../../../RadioInput/RadioInput.js";
45
- import "../Menu/Menu.js";
46
46
  export {
47
47
  U as default
48
48
  };
@@ -1,4 +1,4 @@
1
- import { J as e } from "../../../../../../FormBuilder-D0lMP-MB.js";
1
+ import { O as e } from "../../../../../../FormBuilder-DfzGoJzj.js";
2
2
  export {
3
3
  e as MultipleCombobox
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { default as a } from "./Menu/Menu.js";
2
- import { H as m, J as r } from "../../../../../FormBuilder-D0lMP-MB.js";
2
+ import { K as m, O as r } from "../../../../../FormBuilder-DfzGoJzj.js";
3
3
  export {
4
4
  m as Combobox,
5
5
  a as Menu,
@@ -1,4 +1,4 @@
1
- import { Q as b } from "../../../../FormBuilder-D0lMP-MB.js";
1
+ import { Q as b } from "../../../../FormBuilder-DfzGoJzj.js";
2
2
  export {
3
3
  b as QueryCombobox
4
4
  };