xmlui 0.7.21 → 0.7.23

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 (267) hide show
  1. package/dist/{apiInterceptorWorker-LRHkKnha.mjs → apiInterceptorWorker-BZ3Gd4mb.mjs} +25 -10
  2. package/dist/{grammar.tmLanguage-DNepe_jP.mjs → grammar.tmLanguage-JAlHWPqw.mjs} +1 -1
  3. package/dist/{index-5NLXyjX0.mjs → index-C9zkAour.mjs} +27520 -25814
  4. package/dist/index.css +1 -1
  5. package/dist/scripts/bin/build-lib.js +10 -4
  6. package/dist/scripts/bin/build.js +1 -4
  7. package/dist/scripts/bin/index.js +7 -7
  8. package/dist/scripts/bin/preview.js +19 -2
  9. package/dist/scripts/bin/start.js +2 -4
  10. package/dist/scripts/bin/viteConfig.js +2 -11
  11. package/dist/scripts/src/abstractions/ComponentDefs.js +2 -1
  12. package/dist/scripts/src/components/APICall/APICall.js +3 -3
  13. package/dist/scripts/src/components/APICall/APICallNative.js +2 -2
  14. package/dist/scripts/src/components/Accordion/Accordion.js +5 -5
  15. package/dist/scripts/src/components/Accordion/AccordionContext.js +1 -1
  16. package/dist/scripts/src/components/Accordion/AccordionItem.js +5 -5
  17. package/dist/scripts/src/components/Accordion/AccordionItemNative.js +3 -3
  18. package/dist/scripts/src/components/Accordion/AccordionNative.js +3 -3
  19. package/dist/scripts/src/components/Alert/Alert.js +4 -4
  20. package/dist/scripts/src/components/App/App.js +5 -5
  21. package/dist/scripts/src/components/App/AppNative.js +33 -34
  22. package/dist/scripts/src/components/App/Sheet.js +4 -4
  23. package/dist/scripts/src/components/AppHeader/AppHeader.js +6 -6
  24. package/dist/scripts/src/components/AppHeader/AppHeaderNative.js +9 -9
  25. package/dist/scripts/src/components/AppState/AppState.js +2 -2
  26. package/dist/scripts/src/components/AppState/AppStateNative.js +2 -2
  27. package/dist/scripts/src/components/AutoComplete/AutoComplete.js +7 -7
  28. package/dist/scripts/src/components/AutoComplete/AutoCompleteNative.js +29 -31
  29. package/dist/scripts/src/components/Avatar/Avatar.js +4 -4
  30. package/dist/scripts/src/components/Avatar/AvatarNative.js +1 -1
  31. package/dist/scripts/src/components/Backdrop/Backdrop.js +4 -4
  32. package/dist/scripts/src/components/Badge/Badge.js +5 -5
  33. package/dist/scripts/src/components/Badge/BadgeNative.js +5 -5
  34. package/dist/scripts/src/components/Bookmark/Bookmark.js +7 -3
  35. package/dist/scripts/src/components/Bookmark/BookmarkNative.js +6 -5
  36. package/dist/scripts/src/components/Breakout/Breakout.js +2 -2
  37. package/dist/scripts/src/components/Button/Button.js +6 -6
  38. package/dist/scripts/src/components/Button/ButtonNative.js +3 -3
  39. package/dist/scripts/src/components/ButtonGroup/ButtonGroup.js +5 -5
  40. package/dist/scripts/src/components/Card/Card.js +5 -5
  41. package/dist/scripts/src/components/Card/CardNative.js +7 -7
  42. package/dist/scripts/src/components/Carousel/Carousel.js +5 -5
  43. package/dist/scripts/src/components/Carousel/CarouselItem.js +3 -3
  44. package/dist/scripts/src/components/Carousel/CarouselItemNative.js +3 -3
  45. package/dist/scripts/src/components/Carousel/CarouselNative.js +6 -6
  46. package/dist/scripts/src/components/ChangeListener/ChangeListener.js +3 -3
  47. package/dist/scripts/src/components/ChangeListener/ChangeListenerNative.js +1 -1
  48. package/dist/scripts/src/components/Checkbox/Checkbox.js +6 -6
  49. package/dist/scripts/src/components/ColorPicker/ColorPicker.js +46 -0
  50. package/dist/scripts/src/components/ColorPicker/ColorPickerNative.js +54 -0
  51. package/dist/scripts/src/components/Column/Column.js +2 -2
  52. package/dist/scripts/src/components/Column/ColumnNative.js +2 -2
  53. package/dist/scripts/src/components/ComponentProvider.js +191 -97
  54. package/dist/scripts/src/components/ContentSeparator/ContentSeparator.js +4 -4
  55. package/dist/scripts/src/components/ContentSeparator/ContentSeparatorNative.js +1 -1
  56. package/dist/scripts/src/components/DatePicker/DatePicker.js +4 -4
  57. package/dist/scripts/src/components/DatePicker/DatePickerNative.js +18 -19
  58. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +6 -6
  59. package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +5 -5
  60. package/dist/scripts/src/components/EmojiSelector/EmojiSelector.js +4 -4
  61. package/dist/scripts/src/components/EmojiSelector/EmojiSelectorNative.js +1 -1
  62. package/dist/scripts/src/components/FileInput/FileInput.js +6 -6
  63. package/dist/scripts/src/components/FileInput/FileInputNative.js +6 -6
  64. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZone.js +3 -3
  65. package/dist/scripts/src/components/FileUploadDropZone/FileUploadDropZoneNative.js +6 -7
  66. package/dist/scripts/src/components/FlowLayout/FlowLayout.js +8 -6
  67. package/dist/scripts/src/components/FlowLayout/FlowLayoutNative.js +27 -16
  68. package/dist/scripts/src/components/Footer/Footer.js +4 -4
  69. package/dist/scripts/src/components/Footer/FooterNative.js +2 -2
  70. package/dist/scripts/src/components/Form/Form.js +5 -5
  71. package/dist/scripts/src/components/Form/FormNative.js +29 -29
  72. package/dist/scripts/src/components/FormItem/FormItem.js +4 -4
  73. package/dist/scripts/src/components/FormItem/FormItemNative.js +26 -16
  74. package/dist/scripts/src/components/FormItem/HelperText.js +3 -3
  75. package/dist/scripts/src/components/FormItem/ItemWithLabel.js +5 -6
  76. package/dist/scripts/src/components/FormItem/Validations.js +5 -5
  77. package/dist/scripts/src/components/FormSection/FormSection.js +2 -2
  78. package/dist/scripts/src/components/Heading/Heading.js +17 -4
  79. package/dist/scripts/src/components/Heading/HeadingNative.js +25 -14
  80. package/dist/scripts/src/components/HoverCard/HoverCard.js +3 -3
  81. package/dist/scripts/src/components/HoverCard/HovercardNative.js +1 -1
  82. package/dist/scripts/src/components/HtmlTags/HtmlTags.js +1208 -19
  83. package/dist/scripts/src/components/Icon/Icon.js +3 -3
  84. package/dist/scripts/src/components/Icon/IconNative.js +3 -3
  85. package/dist/scripts/src/components/IconInfoCard/IconInfoCard.js +5 -4
  86. package/dist/scripts/src/components/IconProvider.js +49 -49
  87. package/dist/scripts/src/components/Image/Image.js +4 -4
  88. package/dist/scripts/src/components/Image/ImageNative.js +2 -2
  89. package/dist/scripts/src/components/Input/InputAdornment.js +3 -3
  90. package/dist/scripts/src/components/Items/Items.js +3 -3
  91. package/dist/scripts/src/components/Link/Link.js +6 -6
  92. package/dist/scripts/src/components/Link/LinkNative.js +29 -11
  93. package/dist/scripts/src/components/List/List.js +14 -16
  94. package/dist/scripts/src/components/List/ListNative.js +193 -223
  95. package/dist/scripts/src/components/Logo/Logo.js +2 -2
  96. package/dist/scripts/src/components/Logo/LogoNative.js +2 -2
  97. package/dist/scripts/src/components/Markdown/Markdown.js +3 -3
  98. package/dist/scripts/src/components/Markdown/MarkdownNative.js +4 -4
  99. package/dist/scripts/src/components/ModalDialog/ModalDialog.js +5 -5
  100. package/dist/scripts/src/components/ModalDialog/ModalDialogNative.js +8 -8
  101. package/dist/scripts/src/components/NavGroup/NavGroup.js +6 -6
  102. package/dist/scripts/src/components/NavGroup/NavGroupNative.js +8 -8
  103. package/dist/scripts/src/components/NavLink/NavLink.js +5 -5
  104. package/dist/scripts/src/components/NavLink/NavLinkNative.js +6 -6
  105. package/dist/scripts/src/components/NavPanel/NavPanel.js +5 -5
  106. package/dist/scripts/src/components/NavPanel/NavPanelNative.js +6 -6
  107. package/dist/scripts/src/components/NoResult/NoResult.js +4 -4
  108. package/dist/scripts/src/components/NoResult/NoResultNative.js +2 -2
  109. package/dist/scripts/src/components/NumberBox/NumberBox.js +4 -4
  110. package/dist/scripts/src/components/NumberBox/NumberBoxNative.js +7 -7
  111. package/dist/scripts/src/components/OffCanvas/OffCanvas.js +5 -5
  112. package/dist/scripts/src/components/OffCanvas/OffCanvasNative.js +2 -2
  113. package/dist/scripts/src/components/Option/Option.js +4 -4
  114. package/dist/scripts/src/components/PageHeader/PageHeader.js +2 -2
  115. package/dist/scripts/src/components/PageMetaTitle/PageMetaTitle.js +2 -2
  116. package/dist/scripts/src/components/Pages/Pages.js +3 -3
  117. package/dist/scripts/src/components/Pages/PagesNative.js +2 -2
  118. package/dist/scripts/src/components/PositionedContainer/PositionedContainer.js +3 -3
  119. package/dist/scripts/src/components/PositionedContainer/PositionedContainerNative.js +1 -1
  120. package/dist/scripts/src/components/ProgressBar/ProgressBar.js +3 -3
  121. package/dist/scripts/src/components/ProgressBar/ProgressBarNative.js +1 -1
  122. package/dist/scripts/src/components/Queue/Queue.js +3 -3
  123. package/dist/scripts/src/components/Queue/QueueNative.js +5 -5
  124. package/dist/scripts/src/components/RadioGroup/RadioGroup.js +4 -4
  125. package/dist/scripts/src/components/RadioGroup/RadioGroupNative.js +6 -6
  126. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapter.js +2 -2
  127. package/dist/scripts/src/components/RealTimeAdapter/RealTimeAdapterNative.js +3 -3
  128. package/dist/scripts/src/components/Redirect/Redirect.js +2 -2
  129. package/dist/scripts/src/components/Select/Select.js +7 -7
  130. package/dist/scripts/src/components/Select/SelectNative.js +36 -37
  131. package/dist/scripts/src/components/SelectionStore/SelectionStore.js +2 -2
  132. package/dist/scripts/src/components/SelectionStore/SelectionStoreNative.js +2 -2
  133. package/dist/scripts/src/components/Slider/Slider.js +40 -25
  134. package/dist/scripts/src/components/Slider/SliderNative.js +98 -3
  135. package/dist/scripts/src/components/SlotItem.js +2 -2
  136. package/dist/scripts/src/components/SpaceFiller/SpaceFiller.js +3 -3
  137. package/dist/scripts/src/components/Spinner/Spinner.js +3 -3
  138. package/dist/scripts/src/components/Spinner/SpinnerNative.js +3 -4
  139. package/dist/scripts/src/components/Splitter/Splitter.js +6 -6
  140. package/dist/scripts/src/components/Splitter/SplitterNative.js +3 -3
  141. package/dist/scripts/src/components/Stack/Stack.js +6 -6
  142. package/dist/scripts/src/components/Stack/StackNative.js +3 -3
  143. package/dist/scripts/src/components/StickyBox/StickyBox.js +3 -3
  144. package/dist/scripts/src/components/StickyBox/StickyBoxNative.js +1 -1
  145. package/dist/scripts/src/components/Switch/Switch.js +6 -6
  146. package/dist/scripts/src/components/Table/Table.js +9 -9
  147. package/dist/scripts/src/components/Table/TableNative.js +15 -15
  148. package/dist/scripts/src/components/Table/useRowSelection.js +4 -4
  149. package/dist/scripts/src/components/TableHeader/TableHeader.js +2 -2
  150. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +7 -5
  151. package/dist/scripts/src/components/TableOfContents/TableOfContentsNative.js +29 -24
  152. package/dist/scripts/src/components/Tabs/TabContext.js +1 -1
  153. package/dist/scripts/src/components/Tabs/TabItem.js +3 -3
  154. package/dist/scripts/src/components/Tabs/TabItemNative.js +2 -2
  155. package/dist/scripts/src/components/Tabs/Tabs.js +5 -5
  156. package/dist/scripts/src/components/Tabs/TabsNative.js +2 -2
  157. package/dist/scripts/src/components/Text/Text.js +5 -4
  158. package/dist/scripts/src/components/Text/TextNative.js +6 -7
  159. package/dist/scripts/src/components/TextArea/TextArea.js +4 -4
  160. package/dist/scripts/src/components/TextArea/TextAreaNative.js +6 -6
  161. package/dist/scripts/src/components/TextBox/TextBox.js +4 -4
  162. package/dist/scripts/src/components/TextBox/TextBoxNative.js +5 -5
  163. package/dist/scripts/src/components/Theme/Theme.js +2 -2
  164. package/dist/scripts/src/components/Theme/ThemeNative.js +7 -7
  165. package/dist/scripts/src/components/ThemeChanger/ThemeChanger.js +11 -11
  166. package/dist/scripts/src/components/ThemeChanger/ToneChangerButton.js +5 -5
  167. package/dist/scripts/src/components/Toggle/Toggle.js +4 -4
  168. package/dist/scripts/src/components/Toolbar/Toolbar.js +2 -2
  169. package/dist/scripts/src/components/ToolbarButton/ToolbarButton.js +2 -2
  170. package/dist/scripts/src/components/Tree/TreeComponent.js +4 -4
  171. package/dist/scripts/src/components/Tree/TreeNative.js +2 -2
  172. package/dist/scripts/src/components/TrendLabel/TrendLabel.js +2 -2
  173. package/dist/scripts/src/components/ValidationSummary/ValidationSummary.js +8 -8
  174. package/dist/scripts/src/components/abstractions.js +6 -2
  175. package/dist/scripts/src/components/container-helpers.js +2 -2
  176. package/dist/scripts/src/components-core/CompoundComponent.js +2 -2
  177. package/dist/scripts/src/components-core/Fragment.js +2 -2
  178. package/dist/scripts/src/components-core/InspectorContext.js +5 -5
  179. package/dist/scripts/src/components-core/LoaderComponent.js +6 -3
  180. package/dist/scripts/src/components-core/RestApiProxy.js +4 -4
  181. package/dist/scripts/src/components-core/Slot.js +2 -2
  182. package/dist/scripts/src/components-core/TableOfContentsContext.js +12 -2
  183. package/dist/scripts/src/components-core/XmluiCodeHighlighter.js +2 -2
  184. package/dist/scripts/src/components-core/action/APICall.js +10 -10
  185. package/dist/scripts/src/components-core/action/FileDownloadAction.js +1 -1
  186. package/dist/scripts/src/components-core/action/FileUploadAction.js +3 -3
  187. package/dist/scripts/src/components-core/action/NavigateAction.js +1 -1
  188. package/dist/scripts/src/components-core/action/TimedAction.js +1 -1
  189. package/dist/scripts/src/components-core/component-hooks.js +2 -2
  190. package/dist/scripts/src/components-core/descriptorHelper.js +1 -0
  191. package/dist/scripts/src/components-core/loader/ApiLoader.js +5 -5
  192. package/dist/scripts/src/components-core/loader/DataLoader.js +18 -10
  193. package/dist/scripts/src/components-core/loader/ExternalDataLoader.js +5 -5
  194. package/dist/scripts/src/components-core/loader/Loader.js +3 -3
  195. package/dist/scripts/src/components-core/loader/MockLoaderRenderer.js +5 -5
  196. package/dist/scripts/src/components-core/loader/PageableLoader.js +7 -4
  197. package/dist/scripts/src/components-core/rendering/ComponentAdapter.js +21 -15
  198. package/dist/scripts/src/components-core/rendering/ComponentWrapper.js +2 -2
  199. package/dist/scripts/src/components-core/rendering/Container.js +16 -16
  200. package/dist/scripts/src/components-core/rendering/ContainerWrapper.js +1 -1
  201. package/dist/scripts/src/components-core/rendering/InvalidComponent.js +1 -1
  202. package/dist/scripts/src/components-core/rendering/StateContainer.js +15 -15
  203. package/dist/scripts/src/components-core/rendering/reducer.js +1 -1
  204. package/dist/scripts/src/components-core/rendering/renderChild.js +1 -1
  205. package/dist/scripts/src/components-core/rendering/valueExtractor.js +4 -4
  206. package/dist/scripts/src/components-core/script-runner/asyncProxy.js +1 -1
  207. package/dist/scripts/src/components-core/script-runner/eval-tree-common.js +1 -1
  208. package/dist/scripts/src/components-core/script-runner/eval-tree-sync.js +1 -1
  209. package/dist/scripts/src/components-core/script-runner/process-statement-async.js +2 -2
  210. package/dist/scripts/src/components-core/script-runner/process-statement-common.js +1 -1
  211. package/dist/scripts/src/components-core/script-runner/process-statement-sync.js +3 -3
  212. package/dist/scripts/src/components-core/script-runner/syncProxy.js +1 -1
  213. package/dist/scripts/src/components-core/script-runner/visitors.js +1 -1
  214. package/dist/scripts/src/components-core/theming/ThemeProvider.js +10 -10
  215. package/dist/scripts/src/components-core/theming/extendThemeUtils.js +1 -1
  216. package/dist/scripts/src/components-core/theming/layout-resolver.js +356 -0
  217. package/dist/scripts/src/components-core/theming/transformThemeVars.js +1 -1
  218. package/dist/scripts/src/components-core/utils/DataLoaderQueryKeyGenerator.js +9 -3
  219. package/dist/scripts/src/components-core/utils/actionUtils.js +3 -3
  220. package/dist/scripts/src/components-core/utils/compound-utils.js +1 -1
  221. package/dist/scripts/src/components-core/utils/css-utils.js +2 -2
  222. package/dist/scripts/src/components-core/utils/extractParam.js +47 -3
  223. package/dist/scripts/src/components-core/utils/hooks.js +3 -3
  224. package/dist/scripts/src/parsers/scripting/modules.js +1 -1
  225. package/dist/scripts/src/parsers/style-parser/style-compiler.js +6 -2
  226. package/dist/scripts/src/parsers/xmlui-parser/transform.js +14 -15
  227. package/dist/scripts/src/syntax/grammar.tmLanguage.json +1 -1
  228. package/dist/scripts/src/syntax/textMate/xmlui.json +27 -93
  229. package/dist/style.css +1 -1
  230. package/dist/xmlui-metadata.mjs +5438 -4508
  231. package/dist/xmlui-metadata.umd.js +23 -18
  232. package/dist/xmlui-standalone.umd.js +204 -193
  233. package/dist/xmlui.d.ts +3 -2
  234. package/dist/xmlui.mjs +1 -1
  235. package/package.json +3 -3
  236. package/dist/scripts/package.json +0 -210
  237. package/dist/scripts/src/components/Chart/Chart.js +0 -24
  238. package/dist/scripts/src/components/Chart/ChartNative.js +0 -165
  239. package/dist/scripts/src/components/ModalDialog/ConfirmationModalContextProvider.js +0 -116
  240. package/dist/scripts/src/components/ModalDialog/Dialog.js +0 -20
  241. package/dist/scripts/src/components/Range/Range.js +0 -56
  242. package/dist/scripts/src/components/Range/RangeNative.js +0 -8
  243. package/dist/scripts/src/components/RawHtml/RawHtml.js +0 -39
  244. package/dist/scripts/src/components/RawHtml/RawHtmlNative.js +0 -13
  245. package/dist/scripts/src/components-core/StandaloneApp.js +0 -589
  246. package/dist/scripts/src/components-core/abstractions/standalone.js +0 -2
  247. package/dist/scripts/src/components-core/appContext/date-functions.js +0 -19
  248. package/dist/scripts/src/components-core/appContext/math-function.js +0 -27
  249. package/dist/scripts/src/components-core/appContext/misc-utils.js +0 -13
  250. package/dist/scripts/src/components-core/interception/ApiInterceptor.js +0 -198
  251. package/dist/scripts/src/components-core/interception/ApiInterceptorProvider.js +0 -94
  252. package/dist/scripts/src/components-core/interception/Backend.js +0 -129
  253. package/dist/scripts/src/components-core/interception/Errors.js +0 -129
  254. package/dist/scripts/src/components-core/interception/InMemoryDb.js +0 -41
  255. package/dist/scripts/src/components-core/interception/IndexedDb.js +0 -205
  256. package/dist/scripts/src/components-core/interception/ReadonlyCollection.js +0 -145
  257. package/dist/scripts/src/components-core/interception/abstractions.js +0 -2
  258. package/dist/scripts/src/components-core/interception/apiInterceptorWorker.js +0 -46
  259. package/dist/scripts/src/components-core/interception/useApiInterceptorContext.js +0 -9
  260. package/dist/scripts/src/components-core/markup-check.js +0 -279
  261. package/dist/scripts/src/components-core/rendering/AppContent.js +0 -339
  262. package/dist/scripts/src/components-core/rendering/AppRoot.js +0 -55
  263. package/dist/scripts/src/components-core/rendering/AppWrapper.js +0 -44
  264. package/dist/scripts/src/components-core/utils/classnames.js +0 -58
  265. package/dist/scripts/src/components-core/utils/date-utils.js +0 -78
  266. package/dist/scripts/src/components-core/utils/request-params.js +0 -70
  267. package/dist/scripts/src/index.js +0 -66
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createContainerReducer = createContainerReducer;
7
- const containers_1 = require("@components-core/abstractions/containers");
8
7
  const immer_1 = __importDefault(require("immer"));
9
8
  const lodash_es_1 = require("lodash-es");
9
+ const containers_1 = require("../abstractions/containers");
10
10
  const MAX_STATE_TRANSITION_LENGTH = 100;
11
11
  /**
12
12
  * This function creates a reducer for the container state. For diagnostics, it may
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.renderChild = renderChild;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const extractParam_1 = require("../utils/extractParam");
5
6
  const ComponentWrapper_1 = require("./ComponentWrapper");
6
- const extractParam_1 = require("@components-core/utils/extractParam");
7
7
  /**
8
8
  * This function is the jolly-joker of the rendering process. It renders a child component
9
9
  * based on the specified context, which contains the component's definition, the current state,
@@ -7,10 +7,10 @@ exports.asOptionalBoolean = asOptionalBoolean;
7
7
  exports.createValueExtractor = createValueExtractor;
8
8
  const memoize_one_1 = __importDefault(require("memoize-one"));
9
9
  const lodash_es_1 = require("lodash-es");
10
- const ParameterParser_1 = require("@components-core/script-runner/ParameterParser");
11
- const misc_1 = require("@components-core/utils/misc");
12
- const visitors_1 = require("@components-core/script-runner/visitors");
13
- const extractParam_1 = require("@components-core/utils/extractParam");
10
+ const ParameterParser_1 = require("../script-runner/ParameterParser");
11
+ const misc_1 = require("../utils/misc");
12
+ const visitors_1 = require("../script-runner/visitors");
13
+ const extractParam_1 = require("../utils/extractParam");
14
14
  const StyleParser_1 = require("../../parsers/style-parser/StyleParser");
15
15
  function parseStringArray(input) {
16
16
  const trimmedInput = input.trim();
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getAsyncProxy = getAsyncProxy;
13
- const EngineError_1 = require("@components-core/EngineError");
13
+ const EngineError_1 = require("../EngineError");
14
14
  /**
15
15
  * Gets a proxy function for one that does not support async operations
16
16
  * @param fn Function to replace with a proxy
@@ -13,11 +13,11 @@ exports.evalAssignmentCore = evalAssignmentCore;
13
13
  exports.evalPreOrPostCore = evalPreOrPostCore;
14
14
  exports.evalArrow = evalArrow;
15
15
  exports.evalTemplateLiteralCore = evalTemplateLiteralCore;
16
+ const modules_1 = require("../../parsers/scripting/modules");
16
17
  const custom_operations_registry_1 = require("./custom-operations-registry");
17
18
  const custom_ui_data_1 = require("./custom-ui-data");
18
19
  const eval_tree_async_1 = require("./eval-tree-async");
19
20
  const ICustomOperations_1 = require("./ICustomOperations");
20
- const modules_1 = require("../../parsers/scripting/modules");
21
21
  // --- Type guard to check for a Promise
22
22
  function isPromise(obj) {
23
23
  return obj && typeof obj.then === "function";
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.evalBindingExpression = evalBindingExpression;
4
4
  exports.evalBinding = evalBinding;
5
5
  exports.executeArrowExpressionSync = executeArrowExpressionSync;
6
- const eval_tree_common_1 = require("./eval-tree-common");
7
6
  const Parser_1 = require("../../parsers/scripting/Parser");
8
7
  const process_statement_common_1 = require("./process-statement-common");
9
8
  const process_statement_sync_1 = require("./process-statement-sync");
10
9
  const bannedFunctions_1 = require("./bannedFunctions");
11
10
  const syncProxy_1 = require("./syncProxy");
11
+ const eval_tree_common_1 = require("./eval-tree-common");
12
12
  /**
13
13
  * Evaluates the specified binding expression tree and retrieves the evaluated value
14
14
  * @param source Binding tree expression
@@ -11,11 +11,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.processStatementQueueAsync = processStatementQueueAsync;
13
13
  exports.processDeclarationsAsync = processDeclarationsAsync;
14
+ const EngineError_1 = require("../EngineError");
15
+ const reportEngineError_1 = require("../reportEngineError");
14
16
  const eval_tree_async_1 = require("./eval-tree-async");
15
17
  const process_statement_common_1 = require("./process-statement-common");
16
18
  const statement_queue_1 = require("./statement-queue");
17
- const EngineError_1 = require("../EngineError");
18
- const reportEngineError_1 = require("../reportEngineError");
19
19
  // --- Helper function to process the entire queue asynchronously
20
20
  function processStatementQueueAsync(statements, evalContext, thread, onStatementCompleted) {
21
21
  return __awaiter(this, void 0, void 0, function* () {
@@ -13,8 +13,8 @@ exports.provideFinallyBody = provideFinallyBody;
13
13
  exports.provideFinallyErrorBody = provideFinallyErrorBody;
14
14
  exports.ensureMainThread = ensureMainThread;
15
15
  exports.hoistFunctionDeclarations = hoistFunctionDeclarations;
16
- const statement_queue_1 = require("./statement-queue");
17
16
  const modules_1 = require("../../parsers/scripting/modules");
17
+ const statement_queue_1 = require("./statement-queue");
18
18
  function innermostLoopScope(thread) {
19
19
  if (!thread.loops || thread.loops.length === 0) {
20
20
  throw new Error("Missing loop scope");
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.processStatementQueue = processStatementQueue;
4
4
  exports.processDeclarations = processDeclarations;
5
- const eval_tree_sync_1 = require("@components-core/script-runner/eval-tree-sync");
6
- const process_statement_common_1 = require("./process-statement-common");
7
- const statement_queue_1 = require("./statement-queue");
5
+ const eval_tree_sync_1 = require("../script-runner/eval-tree-sync");
8
6
  const reportEngineError_1 = require("../reportEngineError");
9
7
  const EngineError_1 = require("../EngineError");
8
+ const process_statement_common_1 = require("./process-statement-common");
9
+ const statement_queue_1 = require("./statement-queue");
10
10
  const SYNC_EVAL_TIMEOUT = 1000;
11
11
  // --- Helper function to process the entire queue synchronously
12
12
  function processStatementQueue(statements, evalContext, thread) {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getSyncProxy = getSyncProxy;
4
- const EngineError_1 = require("@components-core/EngineError");
4
+ const EngineError_1 = require("../EngineError");
5
5
  /**
6
6
  * Gets a proxy function for one that does not support async operations
7
7
  * @param fn Function to replace with a proxy
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.collectVariableDependencies = collectVariableDependencies;
4
4
  const lodash_es_1 = require("lodash-es");
5
- const process_statement_common_1 = require("./process-statement-common");
6
5
  const eval_tree_common_1 = require("./eval-tree-common");
6
+ const process_statement_common_1 = require("./process-statement-common");
7
7
  /**
8
8
  * Collects the name of local context variables the specified program depends on
9
9
  * @param program Program to visit
@@ -48,16 +48,16 @@ const jsx_runtime_1 = require("react/jsx-runtime");
48
48
  const abstractions_1 = require("./abstractions");
49
49
  const react_1 = require("react");
50
50
  const transformThemeVars_1 = require("./transformThemeVars");
51
- const misc_1 = require("@components-core/utils/misc");
52
- const hvar_1 = require("@components-core/theming/hvar");
53
- const ThemeContext_1 = require("@components-core/theming/ThemeContext");
54
- const themeVars_1 = __importStar(require("@components-core/theming/themeVars"));
55
- const constants_1 = require("@components-core/constants");
56
- const extendThemeUtils_1 = require("@components-core/theming/extendThemeUtils");
57
- const ComponentRegistryContext_1 = require("@components/ComponentRegistryContext");
58
- const xmlui_1 = require("@components-core/theming/themes/xmlui");
59
- const solid_1 = require("@components-core/theming/themes/solid");
60
- const hooks_1 = require("@components-core/utils/hooks");
51
+ const misc_1 = require("../utils/misc");
52
+ const hvar_1 = require("../theming/hvar");
53
+ const ThemeContext_1 = require("../theming/ThemeContext");
54
+ const themeVars_1 = __importStar(require("../theming/themeVars"));
55
+ const constants_1 = require("../constants");
56
+ const extendThemeUtils_1 = require("../theming/extendThemeUtils");
57
+ const ComponentRegistryContext_1 = require("../../components/ComponentRegistryContext");
58
+ const xmlui_1 = require("../theming/themes/xmlui");
59
+ const solid_1 = require("../theming/themes/solid");
60
+ const hooks_1 = require("../utils/hooks");
61
61
  function useCompiledTheme(activeTheme, activeTone, themes = constants_1.EMPTY_ARRAY, resources = constants_1.EMPTY_OBJECT, resourceMap = constants_1.EMPTY_OBJECT) {
62
62
  const componentRegistry = (0, ComponentRegistryContext_1.useComponentRegistry)();
63
63
  const { componentThemeVars, componentDefaultThemeVars } = componentRegistry;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.collectThemeChainByExtends = collectThemeChainByExtends;
4
4
  exports.expandTheme = expandTheme;
5
5
  const lodash_es_1 = require("lodash-es");
6
- const root_1 = require("@components-core/theming/themes/root");
6
+ const root_1 = require("../theming/themes/root");
7
7
  function collectExtends(cTheme, allThemes) {
8
8
  if (!cTheme) {
9
9
  return [];
@@ -0,0 +1,356 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.THEME_VAR_PREFIX = void 0;
4
+ exports.resolveLayoutProps = resolveLayoutProps;
5
+ exports.toCssVar = toCssVar;
6
+ const constants_1 = require("../constants");
7
+ const lodash_es_1 = require("lodash-es");
8
+ exports.THEME_VAR_PREFIX = "xmlui";
9
+ const themeVarCapturesRegex = /(\$[a-zA-Z][a-zA-Z0-9-_]*)/g;
10
+ const alignmentRegex = /^(start|end|center)$/;
11
+ const orientationRegex = /^(horizontal|vertical)$/;
12
+ const booleanRegex = /^(true|false)$/;
13
+ const starSizeRegex = /^\d*\*$/;
14
+ const defaultCompResult = {
15
+ cssProps: {},
16
+ nonCssProps: {},
17
+ issues: new Set(),
18
+ };
19
+ function resolveLayoutProps(layoutProps = constants_1.EMPTY_OBJECT, layoutContext) {
20
+ const result = {
21
+ cssProps: {},
22
+ nonCssProps: {},
23
+ issues: new Set(),
24
+ };
25
+ // --- Aligments & orientation
26
+ collectNonCss("horizontalAlignment");
27
+ collectNonCss("verticalAlignment");
28
+ collectNonCss("orientation");
29
+ // --- Adjust flex
30
+ if (!!getOrientation(layoutContext)) {
31
+ // --- In a container, we always use "flex-shrink: 0"
32
+ result.cssProps.flexShrink = 0;
33
+ }
34
+ // --- Dimensions
35
+ collectCss("width");
36
+ const horizontalStarSize = getHorizontalStartSize(result.cssProps.width, layoutContext);
37
+ if (horizontalStarSize !== null) {
38
+ // --- We use "flex" when width is in start-size and allow shrinking
39
+ result.cssProps.flex = horizontalStarSize;
40
+ result.cssProps.flexShrink = 1;
41
+ }
42
+ collectCss("minWidth");
43
+ collectCss("maxWidth");
44
+ collectCss("height");
45
+ const verticalStarSize = getVerticalStartSize(result.cssProps.height, layoutContext);
46
+ if (verticalStarSize !== null) {
47
+ // --- We use "flex" when width is in start-size and allow shrinking
48
+ result.cssProps.flex = verticalStarSize;
49
+ result.cssProps.flexShrink = 1;
50
+ }
51
+ collectCss("minHeight");
52
+ collectCss("maxHeight");
53
+ // --- Positions
54
+ collectCss("top");
55
+ collectCss("right");
56
+ collectCss("bottom");
57
+ collectCss("left");
58
+ // --- Paddings and gap
59
+ collectCss("gap");
60
+ collectCss("padding");
61
+ const horizontalPadding = transformLayoutValue("horizontalPadding");
62
+ if (horizontalPadding) {
63
+ result.cssProps.paddingLeft = horizontalPadding;
64
+ result.cssProps.paddingRight = horizontalPadding;
65
+ }
66
+ collectCss("paddingRight");
67
+ collectCss("paddingLeft");
68
+ const verticalPadding = transformLayoutValue("verticalPadding");
69
+ if (verticalPadding) {
70
+ result.cssProps.paddingTop = verticalPadding;
71
+ result.cssProps.paddingBottom = verticalPadding;
72
+ }
73
+ collectCss("paddingTop");
74
+ collectCss("paddingBottom");
75
+ // --- Margins
76
+ collectCss("margin");
77
+ const horizontalMargin = transformLayoutValue("horizontalMargin");
78
+ if (horizontalMargin) {
79
+ result.cssProps.marginLeft = horizontalMargin;
80
+ result.cssProps.marginRight = horizontalMargin;
81
+ }
82
+ collectCss("marginRight");
83
+ collectCss("marginLeft");
84
+ const verticalMargin = transformLayoutValue("verticalMargin");
85
+ if (verticalMargin) {
86
+ result.cssProps.marginTop = verticalMargin;
87
+ result.cssProps.marginBottom = verticalMargin;
88
+ }
89
+ collectCss("marginTop");
90
+ collectCss("marginBottom");
91
+ // --- Borders
92
+ collectCss("border");
93
+ collectCss("borderTop");
94
+ collectCss("borderRight");
95
+ collectCss("borderBottom");
96
+ collectCss("borderLeft");
97
+ collectCss("borderColor");
98
+ collectCss("borderStyle");
99
+ collectCss("borderThickness");
100
+ // --- Radius
101
+ collectCss("radius", "borderRadius");
102
+ collectCss("radiusTopLeft", "borderTopLeftRadius");
103
+ collectCss("radiusTopRight", "borderTopRightRadius");
104
+ collectCss("radiusBottomLeft", "borderBottomLeftRadius");
105
+ collectCss("radiusBottomRight", "borderBottomRightRadius");
106
+ // --- Typography
107
+ collectCss("color");
108
+ collectCss("fontFamily");
109
+ collectCss("fontSize");
110
+ collectCss("fontWeight");
111
+ collectCss("italic");
112
+ collectCss("textDecoration");
113
+ collectCss("userSelect");
114
+ collectCss("letterSpacing");
115
+ collectCss("textTransform");
116
+ collectCss("lineHeight");
117
+ collectCss("textAlign");
118
+ collectCss("textAlignLast");
119
+ collectCss("textWrap");
120
+ // --- Other
121
+ collectCss("backgroundColor");
122
+ collectCss("background");
123
+ collectCss("shadow", "boxShadow");
124
+ collectCss("direction");
125
+ collectCss("horizontalOverflow", "overflowX");
126
+ collectCss("verticalOverflow", "overflowY");
127
+ collectCss("zIndex");
128
+ collectCss("opacity");
129
+ collectCss("zoom");
130
+ collectCss("cursor");
131
+ collectCss("whiteSpace");
132
+ // --- Content rendering
133
+ const wrapContent = transformLayoutValue("wrapContent");
134
+ if (wrapContent) {
135
+ result.cssProps.flexWrap = wrapContent === "true" ? "wrap" : "nowrap";
136
+ }
137
+ collectCss("canShrink", "flexShrink");
138
+ const canShrink = transformLayoutValue("canShrink");
139
+ if (canShrink) {
140
+ result.cssProps.flexShrink = canShrink === "true" ? 1 : 0;
141
+ }
142
+ // --- If we didn't set any props, return a referentially stable result
143
+ if ((0, lodash_es_1.isEmpty)(result.cssProps) && (0, lodash_es_1.isEmpty)(result.nonCssProps) && (0, lodash_es_1.isEmpty)(result.issues)) {
144
+ return defaultCompResult;
145
+ }
146
+ // --- Done
147
+ return result;
148
+ // --- Replaces all variable occurrences in the input string with the result of toCssVar
149
+ function transformLayoutValue(prop) {
150
+ var _a, _b, _c, _d;
151
+ const defValue = resolveSingleValue();
152
+ if (((_a = layoutContext === null || layoutContext === void 0 ? void 0 : layoutContext.mediaSize) === null || _a === void 0 ? void 0 : _a.sizeIndex) !== undefined) {
153
+ const sizeIndex = (_b = layoutContext.mediaSize) === null || _b === void 0 ? void 0 : _b.sizeIndex;
154
+ const xsValue = resolveSingleValue("xs");
155
+ const smValue = resolveSingleValue("sm");
156
+ const mdValue = resolveSingleValue("md");
157
+ const lgValue = resolveSingleValue("lg");
158
+ const xlValue = resolveSingleValue("xl");
159
+ const xxlValue = resolveSingleValue("xxl");
160
+ let mergedValue;
161
+ switch (sizeIndex) {
162
+ case 0: // xs
163
+ mergedValue = (_c = xsValue !== null && xsValue !== void 0 ? xsValue : smValue) !== null && _c !== void 0 ? _c : mdValue;
164
+ break;
165
+ case 1: // sm
166
+ mergedValue = smValue !== null && smValue !== void 0 ? smValue : mdValue;
167
+ break;
168
+ case 2: // md
169
+ mergedValue = mdValue;
170
+ break;
171
+ case 3: // lg
172
+ mergedValue = lgValue;
173
+ break;
174
+ case 4: // xl
175
+ mergedValue = xlValue !== null && xlValue !== void 0 ? xlValue : lgValue;
176
+ break;
177
+ case 5: // xxl
178
+ mergedValue = (_d = xxlValue !== null && xxlValue !== void 0 ? xxlValue : xlValue) !== null && _d !== void 0 ? _d : lgValue;
179
+ break;
180
+ }
181
+ return mergedValue !== null && mergedValue !== void 0 ? mergedValue : defValue;
182
+ }
183
+ return defValue;
184
+ function resolveSingleValue(sizeTag = "") {
185
+ if (prop === "shadow") {
186
+ let x = 1;
187
+ }
188
+ const fullProp = sizeTag ? `${prop}-${sizeTag}` : prop;
189
+ let singleInput = layoutProps[fullProp];
190
+ if (singleInput == undefined) {
191
+ return;
192
+ }
193
+ if (typeof singleInput === "string") {
194
+ singleInput = singleInput.trim();
195
+ }
196
+ else {
197
+ singleInput = singleInput.toString();
198
+ }
199
+ // --- Evaluate
200
+ const value = singleInput
201
+ ? singleInput.replace(themeVarCapturesRegex, (match) => toCssVar(match.trim()))
202
+ : undefined;
203
+ if (singleInput !== value) {
204
+ // --- Theme variable replaced, do not check pattern validity
205
+ return value;
206
+ }
207
+ // --- Check value validity
208
+ const propPatterns = layoutPatterns[prop];
209
+ if (!propPatterns || propPatterns.length === 0) {
210
+ return value;
211
+ }
212
+ for (const pattern of propPatterns) {
213
+ if (pattern.test(value)) {
214
+ return value;
215
+ }
216
+ }
217
+ // --- Done
218
+ result.issues.add(fullProp);
219
+ return value;
220
+ }
221
+ }
222
+ function collectNonCss(prop) {
223
+ const value = transformLayoutValue(prop);
224
+ if (value) {
225
+ // --- Evaluate
226
+ result.nonCssProps[prop] = value;
227
+ }
228
+ }
229
+ function collectCss(prop, propCssName = "") {
230
+ const value = transformLayoutValue(prop);
231
+ if (value) {
232
+ result.cssProps[propCssName || prop] = value;
233
+ }
234
+ }
235
+ // --- Checks if the specified size is a star size and the orientation is horizontal
236
+ function getHorizontalStartSize(size, layoutContext) {
237
+ if (!size)
238
+ return null;
239
+ const orientation = getOrientation(layoutContext);
240
+ return orientation === "horizontal" && starSizeRegex.test(size.toString())
241
+ ? getStarSizeNumber(size.toString())
242
+ : null;
243
+ }
244
+ // --- Checks if the specified size is a star size and the orientation is vertical
245
+ function getVerticalStartSize(size, layoutContext) {
246
+ if (!size)
247
+ return null;
248
+ const orientation = getOrientation(layoutContext);
249
+ return orientation === "vertical" && starSizeRegex.test(size.toString())
250
+ ? getStarSizeNumber(size.toString())
251
+ : null;
252
+ }
253
+ // --- Obtains the integer number from a string that matches the starSizeRegex.
254
+ function getStarSizeNumber(input) {
255
+ if (starSizeRegex.test(input)) {
256
+ const numberPart = input.slice(0, -1); // Remove the trailing '*'
257
+ return numberPart === "" ? 1 : parseInt(numberPart, 10); // Default to 1 if no number is present
258
+ }
259
+ return null;
260
+ }
261
+ // --- Gets the current orientation from the layout context
262
+ function getOrientation(layoutContext) {
263
+ if (!layoutContext)
264
+ return;
265
+ let orientation = (layoutContext === null || layoutContext === void 0 ? void 0 : layoutContext.type) === "Stack" && (layoutContext === null || layoutContext === void 0 ? void 0 : layoutContext.orientation);
266
+ return orientation === null || orientation === void 0 ? void 0 : orientation.toString();
267
+ }
268
+ }
269
+ /**
270
+ * Converts the specified themeID to a CSS var string
271
+ * @param c segment to convert
272
+ */
273
+ function toCssVar(c) {
274
+ return `var(--${exports.THEME_VAR_PREFIX}-${c.substring(1)})`;
275
+ }
276
+ // The properties constituting a component's layout
277
+ const layoutPatterns = {
278
+ // --- Context-dependent/non-CSS props
279
+ horizontalAlignment: [alignmentRegex],
280
+ verticalAlignment: [alignmentRegex],
281
+ orientation: [orientationRegex],
282
+ // --- Dimensions
283
+ width: [],
284
+ minWidth: [],
285
+ maxWidth: [],
286
+ height: [],
287
+ minHeight: [],
288
+ maxHeight: [],
289
+ gap: [],
290
+ // --- Positions
291
+ top: [],
292
+ right: [],
293
+ bottom: [],
294
+ left: [],
295
+ // --- Border
296
+ border: [],
297
+ borderTop: [],
298
+ borderRight: [],
299
+ borderBottom: [],
300
+ borderLeft: [],
301
+ borderColor: [],
302
+ borderStyle: [],
303
+ borderThickness: [],
304
+ // --- Border radius
305
+ radius: [],
306
+ radiusTopLeft: [],
307
+ radiusTopRight: [],
308
+ radiusBottomLeft: [],
309
+ radiusBottomRight: [],
310
+ // --- Padding
311
+ padding: [],
312
+ horizontalPadding: [],
313
+ verticalPadding: [],
314
+ paddingTop: [],
315
+ paddingRight: [],
316
+ paddingBottom: [],
317
+ paddingLeft: [],
318
+ // --- Margin
319
+ margin: [],
320
+ horizontalMargin: [],
321
+ verticalMargin: [],
322
+ marginTop: [],
323
+ marginRight: [],
324
+ marginBottom: [],
325
+ marginLeft: [],
326
+ // --- Other
327
+ backgroundColor: [],
328
+ background: [],
329
+ shadow: [],
330
+ direction: [],
331
+ horizontalOverflow: [],
332
+ verticalOverflow: [],
333
+ zIndex: [],
334
+ opacity: [],
335
+ // --- Typography
336
+ color: [],
337
+ fontFamily: [],
338
+ fontSize: [],
339
+ fontWeight: [],
340
+ italic: [booleanRegex],
341
+ textDecoration: [],
342
+ userSelect: [],
343
+ letterSpacing: [],
344
+ textTransform: [],
345
+ lineHeight: [],
346
+ textAlign: [],
347
+ textWrap: [],
348
+ textAlignLast: [],
349
+ // --- Content rendering
350
+ wrapContent: [],
351
+ canShrink: [],
352
+ // --- Other
353
+ cursor: [],
354
+ zoom: [],
355
+ whiteSpace: [],
356
+ };
@@ -10,7 +10,7 @@ exports.generateBaseSpacings = generateBaseSpacings;
10
10
  exports.generateBaseFontSizes = generateBaseFontSizes;
11
11
  exports.generateButtonTones = generateButtonTones;
12
12
  const color_1 = __importDefault(require("color"));
13
- const hvar_1 = require("@components-core/theming/hvar");
13
+ const hvar_1 = require("../theming/hvar");
14
14
  function isThemeVarName(varName) {
15
15
  return typeof varName === 'string' && (varName === null || varName === void 0 ? void 0 : varName.startsWith("$"));
16
16
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataLoaderQueryKeyGenerator = void 0;
4
4
  const lodash_es_1 = require("lodash-es");
5
5
  class DataLoaderQueryKeyGenerator {
6
- constructor(url, queryParams, apiUrl) {
6
+ constructor(url, queryParams, apiUrl, body, rawBody) {
7
7
  this.url = url;
8
8
  this.queryParams = queryParams;
9
9
  this.key = [url];
@@ -13,6 +13,12 @@ class DataLoaderQueryKeyGenerator {
13
13
  if (apiUrl) {
14
14
  this.key.push(apiUrl);
15
15
  }
16
+ if (body) {
17
+ this.key.push(body);
18
+ }
19
+ if (rawBody) {
20
+ this.key.push(rawBody);
21
+ }
16
22
  }
17
23
  asKey() {
18
24
  if (!this.key) {
@@ -27,8 +33,8 @@ class DataLoaderQueryKeyGenerator {
27
33
  return {
28
34
  predicate: (query) => {
29
35
  const queryKey = query.queryKey;
30
- return queryKey[0] === this.url && (!this.queryParams || (0, lodash_es_1.isEqual)(queryKey[1], this.queryParams));
31
- }
36
+ return (queryKey[0] === this.url && (!this.queryParams || (0, lodash_es_1.isEqual)(queryKey[1], this.queryParams)));
37
+ },
32
38
  };
33
39
  }
34
40
  }
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.invalidateQueries = invalidateQueries;
13
- const DataLoaderQueryKeyGenerator_1 = require("@components-core/utils/DataLoaderQueryKeyGenerator");
14
- const extractParam_1 = require("@components-core/utils/extractParam");
13
+ const DataLoaderQueryKeyGenerator_1 = require("../utils/DataLoaderQueryKeyGenerator");
14
+ const extractParam_1 = require("../utils/extractParam");
15
15
  function invalidateQueries(invalidates, appContext, state) {
16
16
  return __awaiter(this, void 0, void 0, function* () {
17
17
  var _a;
@@ -22,7 +22,7 @@ function invalidateQueries(invalidates, appContext, state) {
22
22
  }
23
23
  arrayToInvalidate.forEach((invalidate) => {
24
24
  var _a;
25
- (_a = appContext.queryClient) === null || _a === void 0 ? void 0 : _a.invalidateQueries(new DataLoaderQueryKeyGenerator_1.DataLoaderQueryKeyGenerator((0, extractParam_1.extractParam)(state, invalidate, appContext), undefined, appContext === null || appContext === void 0 ? void 0 : appContext.appGlobals.apiUrl).asPredicate());
25
+ (_a = appContext.queryClient) === null || _a === void 0 ? void 0 : _a.invalidateQueries(new DataLoaderQueryKeyGenerator_1.DataLoaderQueryKeyGenerator((0, extractParam_1.extractParam)(state, invalidate, appContext), undefined, appContext === null || appContext === void 0 ? void 0 : appContext.appGlobals.apiUrl, undefined, undefined).asPredicate());
26
26
  });
27
27
  }
28
28
  else {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.compoundComponentDefFromSource = compoundComponentDefFromSource;
4
- const xmlui_parser_1 = require("@components-core/xmlui-parser");
4
+ const xmlui_parser_1 = require("../xmlui-parser");
5
5
  function compoundComponentDefFromSource(name, componentSource) {
6
6
  const compoundComponentDef = (0, xmlui_parser_1.xmlUiMarkupToComponent)(componentSource).component;
7
7
  if (!compoundComponentDef) {
@@ -13,8 +13,8 @@ exports.getMaxLinesStyle = getMaxLinesStyle;
13
13
  exports.getSizeString = getSizeString;
14
14
  const react_1 = require("react");
15
15
  const color_1 = __importDefault(require("color"));
16
- const themeVars_1 = require("@components-core/theming/themeVars");
17
- const constants_1 = require("@components-core/constants");
16
+ const themeVars_1 = require("../theming/themeVars");
17
+ const constants_1 = require("../constants");
18
18
  /**
19
19
  * Converts a string to its kebab-case representation
20
20
  * @param str Input string