cx 25.11.1 → 26.0.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 (1200) hide show
  1. package/.mocharc.json +5 -0
  2. package/build.js +129 -0
  3. package/dist/charts.css +250 -250
  4. package/dist/charts.js +2421 -3102
  5. package/dist/data.js +857 -1063
  6. package/dist/hooks.js +48 -59
  7. package/dist/jsx-runtime.js +24 -0
  8. package/dist/manifest.js +925 -919
  9. package/dist/svg.js +266 -432
  10. package/dist/ui.js +1933 -2388
  11. package/dist/util.js +587 -557
  12. package/dist/widgets.css +6 -6
  13. package/dist/widgets.js +7542 -9910
  14. package/package.json +39 -5
  15. package/src/charts/Bar.scss +5 -3
  16. package/src/charts/Bar.ts +114 -0
  17. package/src/charts/BarGraph.scss +4 -3
  18. package/src/charts/BarGraph.tsx +145 -0
  19. package/src/charts/BubbleGraph.scss +5 -3
  20. package/src/charts/BubbleGraph.tsx +165 -0
  21. package/src/charts/Chart.ts +108 -0
  22. package/src/charts/ColorMap.ts +150 -0
  23. package/src/charts/Column.scss +5 -3
  24. package/src/charts/Column.ts +124 -0
  25. package/src/charts/ColumnBarBase.tsx +284 -0
  26. package/src/charts/ColumnBarGraphBase.tsx +229 -0
  27. package/src/charts/ColumnGraph.scss +5 -3
  28. package/src/charts/ColumnGraph.tsx +153 -0
  29. package/src/charts/Grid.ts +5 -0
  30. package/src/charts/Gridlines.scss +5 -3
  31. package/src/charts/Gridlines.tsx +88 -0
  32. package/src/charts/Legend.scss +5 -3
  33. package/src/charts/Legend.tsx +270 -0
  34. package/src/charts/LegendEntry.scss +5 -3
  35. package/src/charts/LegendEntry.tsx +197 -0
  36. package/src/charts/LineGraph.scss +4 -3
  37. package/src/charts/LineGraph.tsx +441 -0
  38. package/src/charts/Marker.scss +5 -3
  39. package/src/charts/Marker.tsx +483 -0
  40. package/src/charts/MarkerLine.scss +5 -3
  41. package/src/charts/MarkerLine.tsx +214 -0
  42. package/src/charts/MouseTracker.tsx +112 -0
  43. package/src/charts/Pie.ts +8 -0
  44. package/src/charts/PieChart.scss +5 -3
  45. package/src/charts/PieChart.tsx +717 -0
  46. package/src/charts/PieLabel.tsx +106 -0
  47. package/src/charts/PieLabelsContainer.ts +68 -0
  48. package/src/charts/Range.scss +4 -3
  49. package/src/charts/Range.tsx +318 -0
  50. package/src/charts/RangeMarker.scss +5 -3
  51. package/src/charts/RangeMarker.tsx +233 -0
  52. package/src/charts/ScatterGraph.scss +5 -3
  53. package/src/charts/ScatterGraph.tsx +245 -0
  54. package/src/charts/Swimlane.scss +5 -3
  55. package/src/charts/Swimlane.tsx +195 -0
  56. package/src/charts/Swimlanes.scss +5 -3
  57. package/src/charts/Swimlanes.tsx +179 -0
  58. package/src/charts/axis/Axis.tsx +444 -0
  59. package/src/charts/axis/CategoryAxis.scss +5 -3
  60. package/src/charts/axis/CategoryAxis.tsx +313 -0
  61. package/src/charts/axis/NumericAxis.scss +5 -3
  62. package/src/charts/axis/NumericAxis.tsx +437 -0
  63. package/src/charts/axis/Stack.ts +61 -0
  64. package/src/charts/axis/TimeAxis.scss +4 -3
  65. package/src/charts/axis/TimeAxis.tsx +718 -0
  66. package/src/charts/axis/index.ts +4 -0
  67. package/src/charts/helpers/MinMaxFinder.ts +66 -0
  68. package/src/charts/helpers/PointReducer.ts +135 -0
  69. package/src/charts/helpers/SnapPointFinder.ts +136 -0
  70. package/src/charts/helpers/ValueAtFinder.ts +72 -0
  71. package/src/charts/helpers/index.ts +4 -0
  72. package/src/charts/palette.scss +7 -5
  73. package/src/charts/shapes.tsx +86 -0
  74. package/src/charts/variables.scss +2 -1
  75. package/src/core.d.ts +182 -310
  76. package/src/data/AggregateFunction.ts +171 -0
  77. package/src/data/ArrayElementView.spec.ts +88 -0
  78. package/src/data/ArrayElementView.ts +90 -0
  79. package/src/data/ArrayRef.ts +35 -0
  80. package/src/data/AugmentedViewBase.ts +88 -0
  81. package/src/data/Binding.ts +104 -0
  82. package/src/data/ExposedRecordView.ts +95 -0
  83. package/src/data/ExposedValueView.ts +89 -0
  84. package/src/data/Expression.spec.ts +229 -0
  85. package/src/data/Expression.ts +233 -0
  86. package/src/data/Grouper.ts +158 -0
  87. package/src/data/NestedDataView.ts +43 -0
  88. package/src/data/ReadOnlyDataView.ts +39 -0
  89. package/src/data/Ref.spec.ts +79 -0
  90. package/src/data/Ref.ts +104 -0
  91. package/src/data/Selector.ts +10 -0
  92. package/src/data/Store.spec.ts +22 -0
  93. package/src/data/Store.ts +52 -0
  94. package/src/data/StoreProxy.ts +19 -0
  95. package/src/data/StoreRef.spec.ts +24 -0
  96. package/src/data/StoreRef.ts +66 -0
  97. package/src/data/StringTemplate.spec.ts +132 -0
  98. package/src/data/StringTemplate.ts +93 -0
  99. package/src/data/StructuredSelector.spec.ts +113 -0
  100. package/src/data/StructuredSelector.ts +146 -0
  101. package/src/data/SubscribableView.ts +63 -0
  102. package/src/data/View.ts +289 -0
  103. package/src/data/ZoomIntoPropertyView.spec.ts +64 -0
  104. package/src/data/ZoomIntoPropertyView.ts +45 -0
  105. package/src/data/comparer.ts +78 -0
  106. package/src/data/computable.spec.ts +62 -0
  107. package/src/data/computable.ts +72 -0
  108. package/src/data/createAccessorModelProxy.ts +60 -0
  109. package/src/data/createStructuredSelector.spec.ts +45 -0
  110. package/src/data/createStructuredSelector.ts +62 -0
  111. package/src/data/defaultCompare.ts +15 -0
  112. package/src/data/diff/diffArrays.ts +49 -0
  113. package/src/data/diff/diffs.spec.ts +49 -0
  114. package/src/data/diff/index.ts +1 -0
  115. package/src/data/enableFatArrowExpansion.ts +6 -0
  116. package/src/data/getAccessor.spec.ts +11 -0
  117. package/src/data/getAccessor.ts +74 -0
  118. package/src/data/getSelector.spec.ts +43 -0
  119. package/src/data/getSelector.ts +66 -0
  120. package/src/data/index.ts +30 -0
  121. package/src/data/isSelector.ts +26 -0
  122. package/src/data/ops/append.spec.ts +28 -0
  123. package/src/data/ops/append.ts +5 -0
  124. package/src/data/ops/filter.spec.ts +35 -0
  125. package/src/data/ops/filter.ts +9 -0
  126. package/src/data/ops/findTreeNode.spec.ts +23 -0
  127. package/src/data/ops/findTreeNode.ts +18 -0
  128. package/src/data/ops/findTreePath.ts +23 -0
  129. package/src/data/ops/insertElement.ts +3 -0
  130. package/src/data/ops/merge.spec.ts +27 -0
  131. package/src/data/ops/merge.ts +13 -0
  132. package/src/data/ops/moveElement.ts +21 -0
  133. package/src/data/ops/removeTreeNodes.spec.ts +37 -0
  134. package/src/data/ops/removeTreeNodes.ts +15 -0
  135. package/src/data/ops/updateArray.spec.ts +69 -0
  136. package/src/data/ops/updateArray.ts +31 -0
  137. package/src/data/ops/updateTree.spec.ts +54 -0
  138. package/src/data/ops/updateTree.ts +23 -0
  139. package/src/data/test-types.ts +7 -0
  140. package/src/hooks/createLocalStorageRef.ts +21 -0
  141. package/src/hooks/invokeCallback.spec.tsx +59 -0
  142. package/src/hooks/invokeCallback.ts +8 -0
  143. package/src/hooks/resolveCallback.spec.tsx +48 -0
  144. package/src/hooks/resolveCallback.ts +16 -0
  145. package/src/hooks/store.spec.tsx +67 -0
  146. package/src/hooks/store.ts +46 -0
  147. package/src/hooks/useEffect.ts +14 -0
  148. package/src/hooks/useInterval.ts +8 -0
  149. package/src/hooks/useState.ts +20 -0
  150. package/src/hooks/useTrigger.spec.tsx +99 -0
  151. package/src/hooks/useTrigger.ts +26 -0
  152. package/src/index.scss +6 -6
  153. package/src/jsx-runtime.ts +72 -0
  154. package/src/locale/de-de.ts +76 -0
  155. package/src/locale/en-us.ts +75 -0
  156. package/src/locale/es-es.ts +76 -0
  157. package/src/locale/fr-fr.ts +76 -0
  158. package/src/locale/nl-nl.ts +76 -0
  159. package/src/locale/pt-pt.ts +76 -0
  160. package/src/locale/sr-latn-ba.ts +76 -0
  161. package/src/svg/BoundedObject.ts +101 -0
  162. package/src/svg/ClipRect.tsx +29 -0
  163. package/src/svg/Ellipse.tsx +69 -0
  164. package/src/svg/Line.tsx +58 -0
  165. package/src/svg/NonOverlappingRect.ts +26 -0
  166. package/src/svg/NonOverlappingRectGroup.ts +49 -0
  167. package/src/svg/Rectangle.tsx +91 -0
  168. package/src/svg/Svg.scss +5 -4
  169. package/src/svg/Svg.tsx +241 -0
  170. package/src/svg/Text.tsx +134 -0
  171. package/src/svg/TextualBoundedObject.ts +35 -0
  172. package/src/svg/util/Rect.ts +105 -0
  173. package/src/ui/CSS.ts +87 -0
  174. package/src/ui/CSSHelper.ts +17 -0
  175. package/src/ui/Container.tsx +216 -0
  176. package/src/ui/ContentResolver.spec.tsx +430 -0
  177. package/src/ui/ContentResolver.ts +124 -0
  178. package/src/ui/Controller.spec.tsx +566 -0
  179. package/src/ui/Controller.ts +189 -0
  180. package/src/ui/Culture.ts +159 -0
  181. package/src/ui/Cx.spec.tsx +208 -0
  182. package/src/ui/Cx.tsx +386 -0
  183. package/src/ui/DataProxy.spec.tsx +337 -0
  184. package/src/ui/DataProxy.ts +55 -0
  185. package/src/ui/DetachedScope.tsx +159 -0
  186. package/src/ui/FocusManager.ts +171 -0
  187. package/src/ui/Format.ts +108 -0
  188. package/src/ui/HoverSync.tsx +189 -0
  189. package/src/ui/Instance.ts +868 -0
  190. package/src/ui/IsolatedScope.spec.tsx +55 -0
  191. package/src/ui/IsolatedScope.ts +50 -0
  192. package/src/ui/Localization.ts +70 -0
  193. package/src/ui/Prop.ts +112 -0
  194. package/src/ui/PureContainer.spec.tsx +230 -0
  195. package/src/ui/PureContainer.tsx +19 -0
  196. package/src/ui/RenderingContext.ts +99 -0
  197. package/src/ui/Repeater.spec.tsx +141 -0
  198. package/src/ui/Repeater.ts +203 -0
  199. package/src/ui/Rescope.spec.tsx +199 -0
  200. package/src/ui/Rescope.ts +49 -0
  201. package/src/ui/ResizeManager.ts +31 -0
  202. package/src/ui/Restate.spec.tsx +418 -0
  203. package/src/ui/Restate.tsx +217 -0
  204. package/src/ui/StaticText.ts +11 -0
  205. package/src/ui/StructuredInstanceDataAccessor.ts +32 -0
  206. package/src/ui/Text.ts +30 -0
  207. package/src/ui/VDOM.ts +34 -0
  208. package/src/ui/Widget.spec.tsx +53 -0
  209. package/src/ui/Widget.tsx +308 -0
  210. package/src/ui/ZIndexManager.ts +11 -0
  211. package/src/ui/adapter/ArrayAdapter.spec.ts +55 -0
  212. package/src/ui/adapter/ArrayAdapter.ts +226 -0
  213. package/src/ui/adapter/DataAdapter.ts +52 -0
  214. package/src/ui/adapter/GroupAdapter.ts +235 -0
  215. package/src/ui/adapter/TreeAdapter.spec.ts +76 -0
  216. package/src/ui/adapter/TreeAdapter.ts +185 -0
  217. package/src/ui/app/History.ts +133 -0
  218. package/src/ui/app/Url.spec.ts +50 -0
  219. package/src/ui/app/Url.ts +102 -0
  220. package/src/ui/app/startAppLoop.tsx +74 -0
  221. package/src/ui/app/startHotAppLoop.ts +40 -0
  222. package/src/ui/batchUpdates.ts +77 -0
  223. package/src/ui/bind.ts +10 -0
  224. package/src/ui/createFunctionalComponent.spec.tsx +399 -0
  225. package/src/ui/createFunctionalComponent.ts +65 -0
  226. package/src/ui/expr.ts +44 -0
  227. package/src/ui/flattenProps.ts +21 -0
  228. package/src/ui/index.ts +45 -0
  229. package/src/ui/keyboardShortcuts.ts +40 -0
  230. package/src/ui/layout/Content.ts +30 -0
  231. package/src/ui/layout/ContentPlaceholder.spec.tsx +587 -0
  232. package/src/ui/layout/ContentPlaceholder.ts +133 -0
  233. package/src/ui/layout/FirstVisibleChildLayout.spec.tsx +195 -0
  234. package/src/ui/layout/FirstVisibleChildLayout.ts +60 -0
  235. package/src/ui/layout/LabelsLeftLayout.scss +6 -4
  236. package/src/ui/layout/LabelsLeftLayout.tsx +76 -0
  237. package/src/ui/layout/LabelsTopLayout.scss +5 -4
  238. package/src/ui/layout/LabelsTopLayout.tsx +156 -0
  239. package/src/ui/layout/UseParentLayout.ts +8 -0
  240. package/src/ui/layout/exploreChildren.ts +38 -0
  241. package/src/ui/selection/KeySelection.ts +165 -0
  242. package/src/ui/selection/PropertySelection.ts +87 -0
  243. package/src/ui/selection/Selection.ts +118 -0
  244. package/src/ui/tpl.ts +5 -0
  245. package/src/util/Component.spec.ts +381 -0
  246. package/src/util/Component.ts +296 -0
  247. package/src/util/Console.ts +11 -0
  248. package/src/util/DOM.ts +88 -0
  249. package/src/util/Debug.ts +71 -0
  250. package/src/util/Format.spec.ts +69 -0
  251. package/src/util/Format.ts +267 -0
  252. package/src/util/GlobalCacheIdentifier.ts +11 -0
  253. package/src/util/KeyCode.ts +21 -0
  254. package/src/util/SubscriberList.ts +87 -0
  255. package/src/util/Timing.ts +59 -0
  256. package/src/util/TraversalStack.spec.ts +54 -0
  257. package/src/util/TraversalStack.ts +48 -0
  258. package/src/util/addEventListenerWithOptions.ts +41 -0
  259. package/src/util/browserSupportsPassiveEventHandlers.ts +20 -0
  260. package/src/util/calculateNaturalElementHeight.ts +22 -0
  261. package/src/util/capitalize.ts +4 -0
  262. package/src/util/coalesce.ts +6 -0
  263. package/src/util/color/hslToRgb.ts +34 -0
  264. package/src/util/color/parseColor.ts +173 -0
  265. package/src/util/color/rgbToHex.ts +15 -0
  266. package/src/util/color/rgbToHsl.ts +36 -0
  267. package/src/util/date/dateDiff.ts +9 -0
  268. package/src/util/date/diff.ts +13 -0
  269. package/src/util/date/encodeDate.ts +8 -0
  270. package/src/util/date/encodeDateWithTimezoneOffset.ts +19 -0
  271. package/src/util/date/lowerBoundCheck.ts +13 -0
  272. package/src/util/date/maxDate.ts +14 -0
  273. package/src/util/date/minDate.ts +14 -0
  274. package/src/util/date/monthStart.ts +8 -0
  275. package/src/util/date/parseDateInvariant.ts +20 -0
  276. package/src/util/date/sameDate.ts +11 -0
  277. package/src/util/date/upperBoundCheck.ts +13 -0
  278. package/src/util/date/zeroTime.ts +9 -0
  279. package/src/util/debounce.ts +26 -0
  280. package/src/util/dummyCallback.ts +1 -0
  281. package/src/util/escapeSpecialRegexCharacters.ts +8 -0
  282. package/src/util/eventCallbacks.ts +12 -0
  283. package/src/util/expandFatArrows.ts +118 -0
  284. package/src/util/findScrollableParent.ts +15 -0
  285. package/src/util/getActiveElement.ts +4 -0
  286. package/src/util/getParentFrameBoundingClientRect.ts +13 -0
  287. package/src/util/getScrollerBoundingClientRect.ts +12 -0
  288. package/src/util/getSearchQueryPredicate.ts +58 -0
  289. package/src/util/getTopLevelBoundingClientRect.ts +7 -0
  290. package/src/util/getVendorPrefix.ts +33 -0
  291. package/src/util/hasKey.ts +18 -0
  292. package/src/util/index.ts +55 -0
  293. package/src/util/innerTextTrim.ts +10 -0
  294. package/src/util/isArray.ts +3 -0
  295. package/src/util/isDataRecord.ts +5 -0
  296. package/src/util/isDefined.ts +3 -0
  297. package/src/util/isDigit.ts +8 -0
  298. package/src/util/isFunction.ts +3 -0
  299. package/src/util/isNonEmptyArray.ts +3 -0
  300. package/src/util/isNumber.ts +3 -0
  301. package/src/util/isObject.ts +3 -0
  302. package/src/util/isPromise.ts +6 -0
  303. package/src/util/isString.ts +3 -0
  304. package/src/util/isTextInputElement.ts +3 -0
  305. package/src/util/isTouchDevice.ts +7 -0
  306. package/src/util/isTouchEvent.ts +64 -0
  307. package/src/util/isUndefined.ts +3 -0
  308. package/src/util/isValidIdentifierName.ts +5 -0
  309. package/src/util/onIdleCallback.ts +10 -0
  310. package/src/util/parseStyle.ts +29 -0
  311. package/src/util/quote.ts +6 -0
  312. package/src/util/reverseSlice.ts +10 -0
  313. package/src/util/routeAppend.ts +16 -0
  314. package/src/util/scrollElementIntoView.ts +40 -0
  315. package/src/util/scss/add-rules.scss +7 -5
  316. package/src/util/scss/calc.scss +12 -8
  317. package/src/util/scss/call-once.scss +5 -3
  318. package/src/util/scss/clockwise.scss +20 -18
  319. package/src/util/scss/colors.scss +4 -2
  320. package/src/util/scss/deep-get.scss +3 -1
  321. package/src/util/scss/deep-merge.scss +6 -3
  322. package/src/util/scss/include.scss +6 -5
  323. package/src/util/shallowEquals.ts +43 -0
  324. package/src/util/test/createTestRenderer.tsx +12 -0
  325. package/src/util/throttle.ts +21 -0
  326. package/src/util/validatedDebounce.ts +23 -0
  327. package/src/widgets/AccessorBindings.spec.tsx +5 -7
  328. package/src/widgets/Button.scss +6 -4
  329. package/src/widgets/Button.tsx +201 -0
  330. package/src/widgets/Button.variables.scss +13 -10
  331. package/src/widgets/CxCredit.scss +6 -4
  332. package/src/widgets/CxCredit.tsx +46 -0
  333. package/src/widgets/DocumentTitle.ts +92 -0
  334. package/src/widgets/FlexBox.scss +7 -5
  335. package/src/widgets/FlexBox.tsx +169 -0
  336. package/src/widgets/Heading.scss +6 -4
  337. package/src/widgets/Heading.ts +43 -0
  338. package/src/widgets/HighlightedSearchText.scss +6 -4
  339. package/src/widgets/HighlightedSearchText.tsx +54 -0
  340. package/src/widgets/HtmlElement.spec.tsx +79 -0
  341. package/src/widgets/HtmlElement.tsx +349 -0
  342. package/src/widgets/Icon.scss +6 -4
  343. package/src/widgets/Icon.ts +78 -0
  344. package/src/widgets/List.scss +6 -4
  345. package/src/widgets/List.tsx +787 -0
  346. package/src/widgets/ProgressBar.scss +5 -4
  347. package/src/widgets/ProgressBar.tsx +66 -0
  348. package/src/widgets/Resizer.scss +5 -4
  349. package/src/widgets/Resizer.tsx +200 -0
  350. package/src/widgets/Sandbox.ts +103 -0
  351. package/src/widgets/Section.scss +5 -4
  352. package/src/widgets/Section.tsx +187 -0
  353. package/src/widgets/autoFocus.ts +9 -0
  354. package/src/widgets/cx.ts +63 -0
  355. package/src/widgets/drag-drop/DragClone.scss +6 -4
  356. package/src/widgets/drag-drop/DragHandle.scss +6 -4
  357. package/src/widgets/drag-drop/DragHandle.tsx +47 -0
  358. package/src/widgets/drag-drop/DragSource.scss +6 -4
  359. package/src/widgets/drag-drop/DragSource.tsx +238 -0
  360. package/src/widgets/drag-drop/DropZone.scss +6 -4
  361. package/src/widgets/drag-drop/DropZone.tsx +354 -0
  362. package/src/widgets/drag-drop/ops.tsx +422 -0
  363. package/src/widgets/drag-drop/variables.scss +4 -1
  364. package/src/widgets/enableAllInternalDependencies.ts +11 -0
  365. package/src/widgets/form/Calendar.scss +8 -5
  366. package/src/widgets/form/Calendar.tsx +760 -0
  367. package/src/widgets/form/Checkbox.scss +5 -3
  368. package/src/widgets/form/Checkbox.tsx +285 -0
  369. package/src/widgets/form/ColorField.scss +5 -3
  370. package/src/widgets/form/ColorField.tsx +491 -0
  371. package/src/widgets/form/ColorPicker.scss +5 -3
  372. package/src/widgets/form/ColorPicker.tsx +544 -0
  373. package/src/widgets/form/DateField.ts +21 -0
  374. package/src/widgets/form/DateTimeField.scss +5 -3
  375. package/src/widgets/form/DateTimeField.tsx +723 -0
  376. package/src/widgets/form/DateTimePicker.scss +6 -4
  377. package/src/widgets/form/DateTimePicker.tsx +431 -0
  378. package/src/widgets/form/Field.scss +4 -2
  379. package/src/widgets/form/Field.tsx +611 -0
  380. package/src/widgets/form/FieldGroup.ts +10 -0
  381. package/src/widgets/form/FieldIcon.ts +61 -0
  382. package/src/widgets/form/HelpText.scss +5 -4
  383. package/src/widgets/form/HelpText.ts +15 -0
  384. package/src/widgets/form/Label.scss +5 -4
  385. package/src/widgets/form/Label.tsx +116 -0
  386. package/src/widgets/form/LabeledContainer.ts +81 -0
  387. package/src/widgets/form/LookupField.scss +5 -3
  388. package/src/widgets/form/LookupField.tsx +1326 -0
  389. package/src/widgets/form/MonthField.scss +4 -3
  390. package/src/widgets/form/MonthField.tsx +665 -0
  391. package/src/widgets/form/MonthPicker.scss +8 -5
  392. package/src/widgets/form/MonthPicker.tsx +822 -0
  393. package/src/widgets/form/NumberField.scss +5 -3
  394. package/src/widgets/form/NumberField.tsx +540 -0
  395. package/src/widgets/form/Radio.scss +5 -3
  396. package/src/widgets/form/Radio.tsx +245 -0
  397. package/src/widgets/form/Select.scss +6 -4
  398. package/src/widgets/form/Select.tsx +322 -0
  399. package/src/widgets/form/Slider.scss +6 -3
  400. package/src/widgets/form/Slider.tsx +461 -0
  401. package/src/widgets/form/Switch.scss +5 -3
  402. package/src/widgets/form/Switch.tsx +174 -0
  403. package/src/widgets/form/TextArea.scss +6 -4
  404. package/src/widgets/form/TextArea.tsx +229 -0
  405. package/src/widgets/form/TextField.scss +6 -4
  406. package/src/widgets/form/TextField.tsx +345 -0
  407. package/src/widgets/form/TimeField.ts +10 -0
  408. package/src/widgets/form/TimeList.tsx +94 -0
  409. package/src/widgets/form/UploadButton.scss +5 -3
  410. package/src/widgets/form/UploadButton.tsx +256 -0
  411. package/src/widgets/form/ValidationError.scss +4 -3
  412. package/src/widgets/form/ValidationError.tsx +72 -0
  413. package/src/widgets/form/ValidationGroup.spec.tsx +147 -0
  414. package/src/widgets/form/ValidationGroup.ts +141 -0
  415. package/src/widgets/form/Validator.ts +23 -0
  416. package/src/widgets/form/Wheel.scss +9 -7
  417. package/src/widgets/form/Wheel.tsx +315 -0
  418. package/src/widgets/form/variables.scss +3 -1
  419. package/src/widgets/grid/Grid.scss +6 -4
  420. package/src/widgets/grid/Grid.tsx +4247 -0
  421. package/src/widgets/grid/GridCell.ts +143 -0
  422. package/src/widgets/grid/GridCellEditor.tsx +52 -0
  423. package/src/widgets/grid/GridRow.ts +302 -0
  424. package/src/widgets/grid/GridRowLine.ts +49 -0
  425. package/src/widgets/grid/Pagination.scss +5 -3
  426. package/src/widgets/grid/Pagination.tsx +126 -0
  427. package/src/widgets/grid/TreeNode.scss +6 -4
  428. package/src/widgets/grid/TreeNode.tsx +145 -0
  429. package/src/widgets/grid/createGridCellEditor.tsx +18 -0
  430. package/src/widgets/grid/index.ts +17 -0
  431. package/src/widgets/grid/variables.scss +8 -4
  432. package/src/widgets/icons/calendar.tsx +17 -0
  433. package/src/widgets/icons/check.tsx +13 -0
  434. package/src/widgets/icons/clear.tsx +15 -0
  435. package/src/widgets/icons/close.tsx +20 -0
  436. package/src/widgets/icons/cx.tsx +38 -0
  437. package/src/widgets/icons/drop-down.tsx +15 -0
  438. package/src/widgets/icons/file.tsx +13 -0
  439. package/src/widgets/icons/folder-open.tsx +15 -0
  440. package/src/widgets/icons/folder.tsx +13 -0
  441. package/src/widgets/icons/forward.tsx +22 -0
  442. package/src/widgets/icons/loading.tsx +24 -0
  443. package/src/widgets/icons/menu.tsx +17 -0
  444. package/src/widgets/icons/pixel-picker.tsx +18 -0
  445. package/src/widgets/icons/registry.ts +57 -0
  446. package/src/widgets/icons/search.tsx +13 -0
  447. package/src/widgets/icons/sort-asc.tsx +14 -0
  448. package/src/widgets/icons/square.tsx +18 -0
  449. package/src/widgets/nav/Link.scss +5 -3
  450. package/src/widgets/nav/Link.ts +12 -0
  451. package/src/widgets/nav/LinkButton.ts +176 -0
  452. package/src/widgets/nav/Menu.scss +7 -5
  453. package/src/widgets/nav/Menu.tsx +489 -0
  454. package/src/widgets/nav/Menu.variables.scss +3 -1
  455. package/src/widgets/nav/MenuItem.scss +6 -4
  456. package/src/widgets/nav/MenuItem.tsx +523 -0
  457. package/src/widgets/nav/MenuSpacer.ts +19 -0
  458. package/src/widgets/nav/RedirectRoute.ts +50 -0
  459. package/src/widgets/nav/Route.spec.tsx +24 -0
  460. package/src/widgets/nav/Route.ts +142 -0
  461. package/src/widgets/nav/Scroller.scss +5 -3
  462. package/src/widgets/nav/Scroller.tsx +253 -0
  463. package/src/widgets/nav/Submenu.ts +6 -0
  464. package/src/widgets/nav/Tab.scss +5 -4
  465. package/src/widgets/nav/Tab.ts +120 -0
  466. package/src/widgets/nav/cover.scss +5 -4
  467. package/src/widgets/nav/variables.scss +3 -1
  468. package/src/widgets/overlay/ContextMenu.ts +42 -0
  469. package/src/widgets/overlay/Dropdown.scss +11 -9
  470. package/src/widgets/overlay/Dropdown.tsx +762 -0
  471. package/src/widgets/overlay/FlyweightTooltipTracker.ts +57 -0
  472. package/src/widgets/overlay/MsgBox.tsx +141 -0
  473. package/src/widgets/overlay/Overlay.scss +5 -3
  474. package/src/widgets/overlay/Overlay.tsx +942 -0
  475. package/src/widgets/overlay/Toast.scss +8 -7
  476. package/src/widgets/overlay/Toast.ts +111 -0
  477. package/src/widgets/overlay/Tooltip.scss +6 -4
  478. package/src/widgets/overlay/Tooltip.tsx +393 -0
  479. package/src/widgets/overlay/Window.scss +6 -4
  480. package/src/widgets/overlay/Window.tsx +299 -0
  481. package/src/widgets/overlay/alerts.ts +46 -0
  482. package/src/widgets/overlay/captureMouse.ts +195 -0
  483. package/src/widgets/overlay/createHotPromiseWindowFactory.ts +72 -0
  484. package/src/widgets/overlay/index.d.ts +11 -11
  485. package/src/widgets/overlay/index.ts +11 -0
  486. package/src/widgets/overlay/tooltip-ops.ts +173 -0
  487. package/src/widgets/overlay/variables.scss +3 -1
  488. package/src/widgets/variables.scss +3 -1
  489. package/tsconfig.compile.json +4 -0
  490. package/tsconfig.json +34 -0
  491. package/tsconfig.mocha.json +14 -0
  492. package/charts.d.ts +0 -1
  493. package/charts.js +0 -1
  494. package/data.d.ts +0 -1
  495. package/data.js +0 -1
  496. package/hooks.d.ts +0 -1
  497. package/hooks.js +0 -1
  498. package/index.js +0 -17
  499. package/locale/de-de.js +0 -75
  500. package/locale/en-us.js +0 -75
  501. package/locale/es-es.js +0 -75
  502. package/locale/fr-fr.js +0 -75
  503. package/locale/nl-nl.js +0 -75
  504. package/locale/pt-pt.js +0 -75
  505. package/locale/sr-latn-ba.js +0 -75
  506. package/manifest.js +0 -1
  507. package/src/charts/Bar.d.ts +0 -28
  508. package/src/charts/Bar.js +0 -90
  509. package/src/charts/BarGraph.d.ts +0 -15
  510. package/src/charts/BarGraph.js +0 -112
  511. package/src/charts/BubbleGraph.js +0 -93
  512. package/src/charts/Chart.d.ts +0 -12
  513. package/src/charts/Chart.js +0 -75
  514. package/src/charts/ColorMap.d.ts +0 -21
  515. package/src/charts/ColorMap.js +0 -97
  516. package/src/charts/Column.d.ts +0 -29
  517. package/src/charts/Column.js +0 -88
  518. package/src/charts/ColumnBarBase.d.ts +0 -64
  519. package/src/charts/ColumnBarBase.js +0 -176
  520. package/src/charts/ColumnBarGraphBase.d.ts +0 -73
  521. package/src/charts/ColumnBarGraphBase.js +0 -114
  522. package/src/charts/ColumnGraph.d.ts +0 -18
  523. package/src/charts/ColumnGraph.js +0 -120
  524. package/src/charts/Grid.js +0 -5
  525. package/src/charts/Gridlines.d.ts +0 -25
  526. package/src/charts/Gridlines.js +0 -49
  527. package/src/charts/Legend.d.ts +0 -45
  528. package/src/charts/Legend.js +0 -187
  529. package/src/charts/LegendEntry.d.ts +0 -54
  530. package/src/charts/LegendEntry.js +0 -128
  531. package/src/charts/LineGraph.d.ts +0 -101
  532. package/src/charts/LineGraph.js +0 -300
  533. package/src/charts/Marker.d.ts +0 -110
  534. package/src/charts/Marker.js +0 -311
  535. package/src/charts/MarkerLine.d.ts +0 -56
  536. package/src/charts/MarkerLine.js +0 -128
  537. package/src/charts/MouseTracker.d.ts +0 -17
  538. package/src/charts/MouseTracker.js +0 -81
  539. package/src/charts/Pie.js +0 -8
  540. package/src/charts/PieChart.d.ts +0 -92
  541. package/src/charts/PieChart.js +0 -530
  542. package/src/charts/PieLabel.d.ts +0 -26
  543. package/src/charts/PieLabel.js +0 -71
  544. package/src/charts/PieLabelsContainer.d.ts +0 -6
  545. package/src/charts/PieLabelsContainer.js +0 -55
  546. package/src/charts/Range.d.ts +0 -75
  547. package/src/charts/Range.js +0 -206
  548. package/src/charts/RangeMarker.d.ts +0 -35
  549. package/src/charts/RangeMarker.js +0 -159
  550. package/src/charts/ScatterGraph.d.ts +0 -64
  551. package/src/charts/ScatterGraph.js +0 -164
  552. package/src/charts/Swimlane.d.ts +0 -24
  553. package/src/charts/Swimlane.js +0 -140
  554. package/src/charts/Swimlanes.d.ts +0 -41
  555. package/src/charts/Swimlanes.js +0 -114
  556. package/src/charts/axis/Axis.d.ts +0 -113
  557. package/src/charts/axis/Axis.js +0 -288
  558. package/src/charts/axis/CategoryAxis.d.ts +0 -30
  559. package/src/charts/axis/CategoryAxis.js +0 -241
  560. package/src/charts/axis/NumericAxis.d.ts +0 -46
  561. package/src/charts/axis/NumericAxis.js +0 -351
  562. package/src/charts/axis/Stack.d.ts +0 -11
  563. package/src/charts/axis/Stack.js +0 -55
  564. package/src/charts/axis/TimeAxis.d.ts +0 -31
  565. package/src/charts/axis/TimeAxis.js +0 -611
  566. package/src/charts/axis/index.d.ts +0 -4
  567. package/src/charts/axis/index.js +0 -4
  568. package/src/charts/helpers/MinMaxFinder.d.ts +0 -22
  569. package/src/charts/helpers/MinMaxFinder.js +0 -36
  570. package/src/charts/helpers/PointReducer.d.ts +0 -24
  571. package/src/charts/helpers/PointReducer.js +0 -61
  572. package/src/charts/helpers/SnapPointFinder.d.ts +0 -30
  573. package/src/charts/helpers/SnapPointFinder.js +0 -69
  574. package/src/charts/helpers/ValueAtFinder.d.ts +0 -16
  575. package/src/charts/helpers/ValueAtFinder.js +0 -46
  576. package/src/charts/helpers/index.d.ts +0 -4
  577. package/src/charts/helpers/index.js +0 -4
  578. package/src/charts/index.d.ts +0 -27
  579. package/src/charts/shapes.d.ts +0 -23
  580. package/src/charts/shapes.js +0 -79
  581. package/src/data/AggregateFunction.d.ts +0 -20
  582. package/src/data/AggregateFunction.js +0 -145
  583. package/src/data/ArrayElementView.d.ts +0 -13
  584. package/src/data/ArrayElementView.js +0 -64
  585. package/src/data/ArrayElementView.spec.js +0 -88
  586. package/src/data/ArrayRef.d.ts +0 -15
  587. package/src/data/ArrayRef.js +0 -35
  588. package/src/data/AugmentedViewBase.d.ts +0 -18
  589. package/src/data/AugmentedViewBase.js +0 -77
  590. package/src/data/Binding.d.ts +0 -19
  591. package/src/data/Binding.js +0 -76
  592. package/src/data/ExposedRecordView.d.ts +0 -14
  593. package/src/data/ExposedRecordView.js +0 -75
  594. package/src/data/ExposedValueView.d.ts +0 -19
  595. package/src/data/ExposedValueView.js +0 -73
  596. package/src/data/Expression.d.ts +0 -17
  597. package/src/data/Expression.js +0 -229
  598. package/src/data/Expression.spec.js +0 -229
  599. package/src/data/Grouper.d.ts +0 -21
  600. package/src/data/Grouper.js +0 -144
  601. package/src/data/NestedDataView.d.ts +0 -19
  602. package/src/data/NestedDataView.js +0 -22
  603. package/src/data/ReadOnlyDataView.d.ts +0 -14
  604. package/src/data/ReadOnlyDataView.js +0 -27
  605. package/src/data/Ref.d.ts +0 -24
  606. package/src/data/Ref.js +0 -79
  607. package/src/data/Ref.spec.js +0 -79
  608. package/src/data/Store.d.ts +0 -14
  609. package/src/data/Store.js +0 -46
  610. package/src/data/Store.spec.js +0 -22
  611. package/src/data/StoreProxy.d.ts +0 -5
  612. package/src/data/StoreProxy.js +0 -17
  613. package/src/data/StoreRef.js +0 -54
  614. package/src/data/StoreRef.spec.js +0 -24
  615. package/src/data/StringTemplate.d.ts +0 -15
  616. package/src/data/StringTemplate.js +0 -92
  617. package/src/data/StringTemplate.spec.js +0 -132
  618. package/src/data/StructuredDataAccessor.d.ts +0 -7
  619. package/src/data/StructuredSelector.d.ts +0 -17
  620. package/src/data/StructuredSelector.js +0 -132
  621. package/src/data/StructuredSelector.spec.js +0 -113
  622. package/src/data/SubscribableView.d.ts +0 -11
  623. package/src/data/SubscribableView.js +0 -54
  624. package/src/data/View.d.ts +0 -155
  625. package/src/data/View.js +0 -182
  626. package/src/data/ZoomIntoPropertyView.d.ts +0 -11
  627. package/src/data/ZoomIntoPropertyView.js +0 -33
  628. package/src/data/ZoomIntoPropertyView.spec.js +0 -65
  629. package/src/data/comparer.d.ts +0 -7
  630. package/src/data/comparer.js +0 -54
  631. package/src/data/computable.d.ts +0 -125
  632. package/src/data/computable.js +0 -56
  633. package/src/data/computable.spec.js +0 -55
  634. package/src/data/createAccessorModelProxy.d.ts +0 -6
  635. package/src/data/createAccessorModelProxy.js +0 -43
  636. package/src/data/createStructuredSelector.d.ts +0 -3
  637. package/src/data/createStructuredSelector.js +0 -43
  638. package/src/data/createStructuredSelector.spec.js +0 -46
  639. package/src/data/defaultCompare.d.ts +0 -1
  640. package/src/data/defaultCompare.js +0 -15
  641. package/src/data/diff/diffArrays.d.ts +0 -15
  642. package/src/data/diff/diffArrays.js +0 -41
  643. package/src/data/diff/diffs.spec.js +0 -49
  644. package/src/data/diff/index.d.ts +0 -1
  645. package/src/data/diff/index.js +0 -1
  646. package/src/data/enableFatArrowExpansion.d.ts +0 -1
  647. package/src/data/enableFatArrowExpansion.js +0 -6
  648. package/src/data/getAccessor.d.ts +0 -9
  649. package/src/data/getAccessor.js +0 -61
  650. package/src/data/getAccessor.spec.js +0 -11
  651. package/src/data/getSelector.d.ts +0 -3
  652. package/src/data/getSelector.js +0 -49
  653. package/src/data/getSelector.spec.js +0 -43
  654. package/src/data/index.d.ts +0 -30
  655. package/src/data/index.js +0 -29
  656. package/src/data/isSelector.d.ts +0 -1
  657. package/src/data/isSelector.js +0 -26
  658. package/src/data/ops/append.d.ts +0 -1
  659. package/src/data/ops/append.js +0 -7
  660. package/src/data/ops/append.spec.js +0 -28
  661. package/src/data/ops/filter.d.ts +0 -1
  662. package/src/data/ops/filter.js +0 -8
  663. package/src/data/ops/filter.spec.js +0 -29
  664. package/src/data/ops/findTreeNode.d.ts +0 -1
  665. package/src/data/ops/findTreeNode.js +0 -15
  666. package/src/data/ops/findTreeNode.spec.js +0 -24
  667. package/src/data/ops/findTreePath.d.ts +0 -6
  668. package/src/data/ops/findTreePath.js +0 -16
  669. package/src/data/ops/index.d.ts +0 -10
  670. package/src/data/ops/insertElement.d.ts +0 -1
  671. package/src/data/ops/insertElement.js +0 -3
  672. package/src/data/ops/merge.d.ts +0 -3
  673. package/src/data/ops/merge.js +0 -9
  674. package/src/data/ops/merge.spec.js +0 -27
  675. package/src/data/ops/moveElement.d.ts +0 -1
  676. package/src/data/ops/moveElement.js +0 -14
  677. package/src/data/ops/removeTreeNodes.d.ts +0 -5
  678. package/src/data/ops/removeTreeNodes.js +0 -5
  679. package/src/data/ops/removeTreeNodes.spec.js +0 -28
  680. package/src/data/ops/updateArray.d.ts +0 -6
  681. package/src/data/ops/updateArray.js +0 -24
  682. package/src/data/ops/updateArray.spec.js +0 -38
  683. package/src/data/ops/updateTree.d.ts +0 -7
  684. package/src/data/ops/updateTree.js +0 -25
  685. package/src/data/ops/updateTree.spec.js +0 -36
  686. package/src/hooks/createLocalStorageRef.d.ts +0 -3
  687. package/src/hooks/createLocalStorageRef.js +0 -20
  688. package/src/hooks/index.js +0 -8
  689. package/src/hooks/invokeCallback.d.ts +0 -5
  690. package/src/hooks/invokeCallback.js +0 -7
  691. package/src/hooks/invokeCallback.spec.js +0 -53
  692. package/src/hooks/resolveCallback.d.ts +0 -3
  693. package/src/hooks/resolveCallback.js +0 -12
  694. package/src/hooks/resolveCallback.spec.js +0 -54
  695. package/src/hooks/store.d.ts +0 -8
  696. package/src/hooks/store.js +0 -32
  697. package/src/hooks/store.spec.js +0 -73
  698. package/src/hooks/useEffect.d.ts +0 -3
  699. package/src/hooks/useEffect.js +0 -15
  700. package/src/hooks/useInterval.d.ts +0 -1
  701. package/src/hooks/useInterval.js +0 -8
  702. package/src/hooks/useState.d.ts +0 -3
  703. package/src/hooks/useState.js +0 -16
  704. package/src/hooks/useTrigger.d.ts +0 -5
  705. package/src/hooks/useTrigger.js +0 -20
  706. package/src/hooks/useTrigger.spec.js +0 -102
  707. package/src/svg/BoundedObject.d.ts +0 -23
  708. package/src/svg/BoundedObject.js +0 -59
  709. package/src/svg/ClipRect.d.ts +0 -5
  710. package/src/svg/ClipRect.js +0 -23
  711. package/src/svg/Ellipse.d.ts +0 -24
  712. package/src/svg/Ellipse.js +0 -37
  713. package/src/svg/Line.d.ts +0 -21
  714. package/src/svg/Line.js +0 -33
  715. package/src/svg/NonOverlappingRect.d.ts +0 -5
  716. package/src/svg/NonOverlappingRect.js +0 -15
  717. package/src/svg/NonOverlappingRectGroup.d.ts +0 -3
  718. package/src/svg/NonOverlappingRectGroup.js +0 -37
  719. package/src/svg/Rectangle.d.ts +0 -37
  720. package/src/svg/Rectangle.js +0 -42
  721. package/src/svg/Svg.d.ts +0 -32
  722. package/src/svg/Svg.js +0 -177
  723. package/src/svg/Text.d.ts +0 -40
  724. package/src/svg/Text.js +0 -78
  725. package/src/svg/TextualBoundedObject.d.ts +0 -7
  726. package/src/svg/TextualBoundedObject.js +0 -28
  727. package/src/svg/index.d.ts +0 -11
  728. package/src/svg/util/Rect.d.ts +0 -41
  729. package/src/svg/util/Rect.js +0 -109
  730. package/src/svg/util/index.js +0 -1
  731. package/src/ui/CSS.d.ts +0 -20
  732. package/src/ui/CSS.js +0 -79
  733. package/src/ui/CSSHelper.d.ts +0 -11
  734. package/src/ui/CSSHelper.js +0 -18
  735. package/src/ui/Container.d.ts +0 -18
  736. package/src/ui/Container.js +0 -154
  737. package/src/ui/ContentResolver.d.ts +0 -12
  738. package/src/ui/ContentResolver.js +0 -78
  739. package/src/ui/Controller.d.ts +0 -182
  740. package/src/ui/Controller.js +0 -114
  741. package/src/ui/Controller.spec.js +0 -415
  742. package/src/ui/Culture.d.ts +0 -57
  743. package/src/ui/Culture.js +0 -139
  744. package/src/ui/Cx.d.ts +0 -18
  745. package/src/ui/Cx.js +0 -325
  746. package/src/ui/Cx.spec.js +0 -194
  747. package/src/ui/DataProxy.d.ts +0 -12
  748. package/src/ui/DataProxy.js +0 -31
  749. package/src/ui/DataProxy.spec.js +0 -338
  750. package/src/ui/DetachedScope.d.ts +0 -21
  751. package/src/ui/DetachedScope.js +0 -98
  752. package/src/ui/FocusManager.d.ts +0 -29
  753. package/src/ui/FocusManager.js +0 -171
  754. package/src/ui/Format.d.ts +0 -3
  755. package/src/ui/Format.js +0 -108
  756. package/src/ui/HoverSync.d.ts +0 -13
  757. package/src/ui/HoverSync.js +0 -147
  758. package/src/ui/Instance.d.ts +0 -72
  759. package/src/ui/Instance.js +0 -620
  760. package/src/ui/IsolatedScope.d.ts +0 -16
  761. package/src/ui/IsolatedScope.js +0 -30
  762. package/src/ui/IsolatedScope.spec.js +0 -62
  763. package/src/ui/Localization.d.ts +0 -17
  764. package/src/ui/Localization.js +0 -70
  765. package/src/ui/PureContainer.d.ts +0 -16
  766. package/src/ui/PureContainer.js +0 -7
  767. package/src/ui/RenderingContext.d.ts +0 -9
  768. package/src/ui/RenderingContext.js +0 -88
  769. package/src/ui/Repeater.d.ts +0 -61
  770. package/src/ui/Repeater.js +0 -109
  771. package/src/ui/Repeater.spec.js +0 -143
  772. package/src/ui/Rescope.d.ts +0 -10
  773. package/src/ui/Rescope.js +0 -35
  774. package/src/ui/Rescope.spec.js +0 -195
  775. package/src/ui/ResizeManager.d.ts +0 -10
  776. package/src/ui/ResizeManager.js +0 -31
  777. package/src/ui/Restate.d.ts +0 -21
  778. package/src/ui/Restate.js +0 -167
  779. package/src/ui/Restate.spec.js +0 -422
  780. package/src/ui/StaticText.d.ts +0 -8
  781. package/src/ui/StaticText.js +0 -9
  782. package/src/ui/StructuredInstanceDataAccessor.d.ts +0 -16
  783. package/src/ui/StructuredInstanceDataAccessor.js +0 -26
  784. package/src/ui/Text.d.ts +0 -10
  785. package/src/ui/Text.js +0 -25
  786. package/src/ui/VDOM.d.ts +0 -12
  787. package/src/ui/VDOM.js +0 -2
  788. package/src/ui/Widget.d.ts +0 -14
  789. package/src/ui/Widget.js +0 -184
  790. package/src/ui/ZIndexManager.d.ts +0 -7
  791. package/src/ui/ZIndexManager.js +0 -11
  792. package/src/ui/adapter/ArrayAdapter.d.ts +0 -17
  793. package/src/ui/adapter/ArrayAdapter.js +0 -152
  794. package/src/ui/adapter/ArrayAdapter.spec.js +0 -55
  795. package/src/ui/adapter/DataAdapter.d.ts +0 -31
  796. package/src/ui/adapter/DataAdapter.js +0 -15
  797. package/src/ui/adapter/GroupAdapter.d.ts +0 -23
  798. package/src/ui/adapter/GroupAdapter.js +0 -143
  799. package/src/ui/adapter/TreeAdapter.d.ts +0 -24
  800. package/src/ui/adapter/TreeAdapter.js +0 -101
  801. package/src/ui/adapter/TreeAdapter.spec.js +0 -67
  802. package/src/ui/adapter/index.js +0 -4
  803. package/src/ui/app/History.d.ts +0 -17
  804. package/src/ui/app/History.js +0 -114
  805. package/src/ui/app/Url.d.ts +0 -21
  806. package/src/ui/app/Url.js +0 -103
  807. package/src/ui/app/Url.spec.js +0 -51
  808. package/src/ui/app/index.d.ts +0 -4
  809. package/src/ui/app/startAppLoop.d.ts +0 -4
  810. package/src/ui/app/startAppLoop.js +0 -58
  811. package/src/ui/app/startHotAppLoop.d.ts +0 -7
  812. package/src/ui/app/startHotAppLoop.js +0 -25
  813. package/src/ui/batchUpdates.d.ts +0 -11
  814. package/src/ui/batchUpdates.js +0 -67
  815. package/src/ui/bind.d.ts +0 -4
  816. package/src/ui/bind.js +0 -7
  817. package/src/ui/createFunctionalComponent.d.ts +0 -1
  818. package/src/ui/createFunctionalComponent.js +0 -63
  819. package/src/ui/createFunctionalComponent.spec.js +0 -400
  820. package/src/ui/expr.d.ts +0 -24
  821. package/src/ui/expr.js +0 -17
  822. package/src/ui/flattenProps.js +0 -21
  823. package/src/ui/index.d.ts +0 -42
  824. package/src/ui/index.js +0 -44
  825. package/src/ui/keyboardShortcuts.d.ts +0 -5
  826. package/src/ui/keyboardShortcuts.js +0 -31
  827. package/src/ui/layout/Content.d.ts +0 -14
  828. package/src/ui/layout/Content.js +0 -16
  829. package/src/ui/layout/ContentPlaceholder.d.ts +0 -19
  830. package/src/ui/layout/ContentPlaceholder.js +0 -105
  831. package/src/ui/layout/ContentPlaceholder.spec.js +0 -579
  832. package/src/ui/layout/FirstVisibleChildLayout.d.ts +0 -4
  833. package/src/ui/layout/FirstVisibleChildLayout.js +0 -66
  834. package/src/ui/layout/FirstVisibleChildLayout.spec.js +0 -196
  835. package/src/ui/layout/LabelsLeftLayout.d.ts +0 -11
  836. package/src/ui/layout/LabelsLeftLayout.js +0 -59
  837. package/src/ui/layout/LabelsTopLayout.d.ts +0 -15
  838. package/src/ui/layout/LabelsTopLayout.js +0 -135
  839. package/src/ui/layout/UseParentLayout.d.ts +0 -4
  840. package/src/ui/layout/UseParentLayout.js +0 -6
  841. package/src/ui/layout/exploreChildren.d.ts +0 -12
  842. package/src/ui/layout/exploreChildren.js +0 -27
  843. package/src/ui/layout/index.js +0 -10
  844. package/src/ui/selection/KeySelection.d.ts +0 -17
  845. package/src/ui/selection/KeySelection.js +0 -129
  846. package/src/ui/selection/PropertySelection.d.ts +0 -17
  847. package/src/ui/selection/PropertySelection.js +0 -55
  848. package/src/ui/selection/Selection.d.ts +0 -27
  849. package/src/ui/selection/Selection.js +0 -93
  850. package/src/ui/selection/index.js +0 -3
  851. package/src/ui/tpl.d.ts +0 -3
  852. package/src/ui/tpl.js +0 -5
  853. package/src/util/Component.d.ts +0 -42
  854. package/src/util/Component.js +0 -108
  855. package/src/util/Console.d.ts +0 -4
  856. package/src/util/Console.js +0 -11
  857. package/src/util/DOM.d.ts +0 -33
  858. package/src/util/DOM.js +0 -72
  859. package/src/util/Debug.d.ts +0 -11
  860. package/src/util/Debug.js +0 -45
  861. package/src/util/Format.d.ts +0 -18
  862. package/src/util/Format.js +0 -270
  863. package/src/util/Format.spec.js +0 -69
  864. package/src/util/GlobalCacheIdentifier.js +0 -11
  865. package/src/util/GlobalCacheldentifier.d.ts +0 -7
  866. package/src/util/KeyCode.d.ts +0 -21
  867. package/src/util/KeyCode.js +0 -21
  868. package/src/util/SubscriberList.d.ts +0 -42
  869. package/src/util/SubscriberList.js +0 -58
  870. package/src/util/Timing.d.ts +0 -14
  871. package/src/util/Timing.js +0 -58
  872. package/src/util/TraversalStack.js +0 -43
  873. package/src/util/TraversalStack.spec.js +0 -47
  874. package/src/util/addEventListenerWithOptions.d.ts +0 -6
  875. package/src/util/addEventListenerWithOptions.js +0 -9
  876. package/src/util/browserSupportsPassiveEventHandlers.d.ts +0 -5
  877. package/src/util/browserSupportsPassiveEventHandlers.js +0 -18
  878. package/src/util/calculateNaturalElementHeight.d.ts +0 -1
  879. package/src/util/calculateNaturalElementHeight.js +0 -22
  880. package/src/util/capitalize.d.ts +0 -1
  881. package/src/util/capitalize.js +0 -4
  882. package/src/util/coalesce.d.ts +0 -1
  883. package/src/util/coalesce.js +0 -6
  884. package/src/util/color/hslToRgb.d.ts +0 -9
  885. package/src/util/color/hslToRgb.js +0 -27
  886. package/src/util/color/index.d.ts +0 -4
  887. package/src/util/color/parseColor.d.ts +0 -60
  888. package/src/util/color/parseColor.js +0 -119
  889. package/src/util/color/rgbToHex.d.ts +0 -9
  890. package/src/util/color/rgbToHex.js +0 -8
  891. package/src/util/color/rgbToHsl.d.ts +0 -9
  892. package/src/util/color/rgbToHsl.js +0 -28
  893. package/src/util/date/dateDiff.d.ts +0 -8
  894. package/src/util/date/dateDiff.js +0 -3
  895. package/src/util/date/diff.d.ts +0 -8
  896. package/src/util/date/diff.js +0 -7
  897. package/src/util/date/encodeDate.d.ts +0 -1
  898. package/src/util/date/encodeDate.js +0 -8
  899. package/src/util/date/encodeDateWithTimezoneOffset.d.ts +0 -1
  900. package/src/util/date/encodeDateWithTimezoneOffset.js +0 -19
  901. package/src/util/date/index.js +0 -11
  902. package/src/util/date/lowerBoundCheck.d.ts +0 -8
  903. package/src/util/date/lowerBoundCheck.js +0 -6
  904. package/src/util/date/maxDate.d.ts +0 -6
  905. package/src/util/date/maxDate.js +0 -9
  906. package/src/util/date/minDate.d.ts +0 -6
  907. package/src/util/date/minDate.js +0 -9
  908. package/src/util/date/monthStart.d.ts +0 -6
  909. package/src/util/date/monthStart.js +0 -3
  910. package/src/util/date/parseDateInvariant.d.ts +0 -3
  911. package/src/util/date/parseDateInvariant.js +0 -20
  912. package/src/util/date/sameDate.d.ts +0 -7
  913. package/src/util/date/sameDate.js +0 -5
  914. package/src/util/date/upperBoundCheck.d.ts +0 -8
  915. package/src/util/date/upperBoundCheck.js +0 -6
  916. package/src/util/date/zeroTime.d.ts +0 -7
  917. package/src/util/date/zeroTime.js +0 -3
  918. package/src/util/debounce.d.ts +0 -9
  919. package/src/util/debounce.js +0 -18
  920. package/src/util/dummyCallback.d.ts +0 -1
  921. package/src/util/dummyCallback.js +0 -1
  922. package/src/util/escapeSpecialRegexCharacters.d.ts +0 -7
  923. package/src/util/escapeSpecialRegexCharacters.js +0 -3
  924. package/src/util/eventCallbacks.d.ts +0 -5
  925. package/src/util/eventCallbacks.js +0 -2
  926. package/src/util/expandFatArrows.d.ts +0 -1
  927. package/src/util/expandFatArrows.js +0 -118
  928. package/src/util/findScrollableParent.d.ts +0 -1
  929. package/src/util/findScrollableParent.js +0 -16
  930. package/src/util/getActiveElement.d.ts +0 -1
  931. package/src/util/getActiveElement.js +0 -4
  932. package/src/util/getParentFrameBoundingClientRect.d.ts +0 -1
  933. package/src/util/getParentFrameBoundingClientRect.js +0 -21
  934. package/src/util/getScrollerBoundingClientRect.d.ts +0 -1
  935. package/src/util/getScrollerBoundingClientRect.js +0 -22
  936. package/src/util/getSearchQueryPredicate.d.ts +0 -1
  937. package/src/util/getSearchQueryPredicate.js +0 -59
  938. package/src/util/getTopLevelBoundingClientRect.d.ts +0 -1
  939. package/src/util/getTopLevelBoundingClientRect.js +0 -14
  940. package/src/util/getVendorPrefix.d.ts +0 -1
  941. package/src/util/getVendorPrefix.js +0 -26
  942. package/src/util/index.d.ts +0 -51
  943. package/src/util/index.js +0 -54
  944. package/src/util/innerTextTrim.d.ts +0 -7
  945. package/src/util/innerTextTrim.js +0 -5
  946. package/src/util/isArray.d.ts +0 -1
  947. package/src/util/isArray.js +0 -3
  948. package/src/util/isDefined.d.ts +0 -1
  949. package/src/util/isDefined.js +0 -3
  950. package/src/util/isDigit.d.ts +0 -7
  951. package/src/util/isDigit.js +0 -3
  952. package/src/util/isFunction.d.ts +0 -1
  953. package/src/util/isFunction.js +0 -3
  954. package/src/util/isNonEmptyArray.d.ts +0 -1
  955. package/src/util/isNonEmptyArray.js +0 -3
  956. package/src/util/isNumber.d.ts +0 -1
  957. package/src/util/isNumber.js +0 -3
  958. package/src/util/isObject.d.ts +0 -1
  959. package/src/util/isObject.js +0 -3
  960. package/src/util/isPromise.d.ts +0 -1
  961. package/src/util/isPromise.js +0 -6
  962. package/src/util/isString.d.ts +0 -1
  963. package/src/util/isString.js +0 -3
  964. package/src/util/isTextInputElement.d.ts +0 -1
  965. package/src/util/isTextInputElement.js +0 -3
  966. package/src/util/isTouchDevice.d.ts +0 -2
  967. package/src/util/isTouchDevice.js +0 -7
  968. package/src/util/isTouchEvent.d.ts +0 -4
  969. package/src/util/isTouchEvent.js +0 -64
  970. package/src/util/isUndefined.d.ts +0 -1
  971. package/src/util/isUndefined.js +0 -3
  972. package/src/util/isValidIdentifierName.d.ts +0 -1
  973. package/src/util/isValidIdentifierName.js +0 -5
  974. package/src/util/onIdleCallback.d.ts +0 -1
  975. package/src/util/onIdleCallback.js +0 -14
  976. package/src/util/parseStyle.d.ts +0 -4
  977. package/src/util/parseStyle.js +0 -27
  978. package/src/util/quote.d.ts +0 -3
  979. package/src/util/quote.js +0 -4
  980. package/src/util/reverseSlice.d.ts +0 -1
  981. package/src/util/reverseSlice.js +0 -10
  982. package/src/util/routeAppend.d.ts +0 -1
  983. package/src/util/routeAppend.js +0 -16
  984. package/src/util/scrollElementIntoView.d.ts +0 -7
  985. package/src/util/scrollElementIntoView.js +0 -34
  986. package/src/util/shallowEquals.d.ts +0 -1
  987. package/src/util/shallowEquals.js +0 -43
  988. package/src/util/throttle.d.ts +0 -9
  989. package/src/util/throttle.js +0 -14
  990. package/src/util/validatedDebounce.js +0 -19
  991. package/src/widgets/Button.d.ts +0 -58
  992. package/src/widgets/Button.js +0 -118
  993. package/src/widgets/CxCredit.d.ts +0 -12
  994. package/src/widgets/CxCredit.js +0 -32
  995. package/src/widgets/DocumentTitle.d.ts +0 -11
  996. package/src/widgets/DocumentTitle.js +0 -69
  997. package/src/widgets/FlexBox.d.ts +0 -69
  998. package/src/widgets/FlexBox.js +0 -93
  999. package/src/widgets/Heading.d.ts +0 -16
  1000. package/src/widgets/Heading.js +0 -33
  1001. package/src/widgets/HighlightedSearchText.d.ts +0 -9
  1002. package/src/widgets/HighlightedSearchText.js +0 -36
  1003. package/src/widgets/HtmlElement.d.ts +0 -30
  1004. package/src/widgets/HtmlElement.js +0 -275
  1005. package/src/widgets/HtmlElement.spec.js +0 -57
  1006. package/src/widgets/Icon.d.ts +0 -34
  1007. package/src/widgets/Icon.js +0 -50
  1008. package/src/widgets/List.d.ts +0 -96
  1009. package/src/widgets/List.js +0 -594
  1010. package/src/widgets/ProgressBar.d.ts +0 -17
  1011. package/src/widgets/ProgressBar.js +0 -46
  1012. package/src/widgets/Resizer.d.ts +0 -27
  1013. package/src/widgets/Resizer.js +0 -151
  1014. package/src/widgets/Sandbox.d.ts +0 -18
  1015. package/src/widgets/Sandbox.js +0 -65
  1016. package/src/widgets/Section.d.ts +0 -52
  1017. package/src/widgets/Section.js +0 -139
  1018. package/src/widgets/autoFocus.d.ts +0 -1
  1019. package/src/widgets/autoFocus.js +0 -9
  1020. package/src/widgets/cx.d.ts +0 -2
  1021. package/src/widgets/cx.js +0 -72
  1022. package/src/widgets/drag-drop/DragHandle.d.ts +0 -10
  1023. package/src/widgets/drag-drop/DragHandle.js +0 -37
  1024. package/src/widgets/drag-drop/DragSource.d.ts +0 -45
  1025. package/src/widgets/drag-drop/DragSource.js +0 -160
  1026. package/src/widgets/drag-drop/DropZone.d.ts +0 -98
  1027. package/src/widgets/drag-drop/DropZone.js +0 -214
  1028. package/src/widgets/drag-drop/index.js +0 -4
  1029. package/src/widgets/drag-drop/ops.d.ts +0 -57
  1030. package/src/widgets/drag-drop/ops.js +0 -344
  1031. package/src/widgets/enableAllInternalDependencies.d.ts +0 -1
  1032. package/src/widgets/enableAllInternalDependencies.js +0 -11
  1033. package/src/widgets/form/Calendar.d.ts +0 -86
  1034. package/src/widgets/form/Calendar.js +0 -618
  1035. package/src/widgets/form/Checkbox.d.ts +0 -43
  1036. package/src/widgets/form/Checkbox.js +0 -203
  1037. package/src/widgets/form/ColorField.d.ts +0 -44
  1038. package/src/widgets/form/ColorField.js +0 -397
  1039. package/src/widgets/form/ColorPicker.d.ts +0 -23
  1040. package/src/widgets/form/ColorPicker.js +0 -485
  1041. package/src/widgets/form/DateField.d.ts +0 -6
  1042. package/src/widgets/form/DateField.js +0 -12
  1043. package/src/widgets/form/DateTimeField.d.ts +0 -89
  1044. package/src/widgets/form/DateTimeField.js +0 -576
  1045. package/src/widgets/form/DateTimePicker.js +0 -392
  1046. package/src/widgets/form/Field.d.ts +0 -112
  1047. package/src/widgets/form/Field.js +0 -446
  1048. package/src/widgets/form/FieldGroup.d.ts +0 -6
  1049. package/src/widgets/form/FieldGroup.js +0 -6
  1050. package/src/widgets/form/FieldIcon.js +0 -42
  1051. package/src/widgets/form/HelpText.d.ts +0 -10
  1052. package/src/widgets/form/HelpText.js +0 -9
  1053. package/src/widgets/form/Label.d.ts +0 -23
  1054. package/src/widgets/form/Label.js +0 -89
  1055. package/src/widgets/form/LabeledContainer.d.ts +0 -9
  1056. package/src/widgets/form/LabeledContainer.js +0 -59
  1057. package/src/widgets/form/LookupField.d.ts +0 -179
  1058. package/src/widgets/form/LookupField.js +0 -1135
  1059. package/src/widgets/form/MonthField.d.ts +0 -104
  1060. package/src/widgets/form/MonthField.js +0 -524
  1061. package/src/widgets/form/MonthPicker.d.ts +0 -97
  1062. package/src/widgets/form/MonthPicker.js +0 -687
  1063. package/src/widgets/form/NumberField.d.ts +0 -96
  1064. package/src/widgets/form/NumberField.js +0 -459
  1065. package/src/widgets/form/Radio.d.ts +0 -37
  1066. package/src/widgets/form/Radio.js +0 -188
  1067. package/src/widgets/form/Select.d.ts +0 -69
  1068. package/src/widgets/form/Select.js +0 -269
  1069. package/src/widgets/form/Slider.d.ts +0 -65
  1070. package/src/widgets/form/Slider.js +0 -351
  1071. package/src/widgets/form/Switch.d.ts +0 -38
  1072. package/src/widgets/form/Switch.js +0 -118
  1073. package/src/widgets/form/TextArea.d.ts +0 -17
  1074. package/src/widgets/form/TextArea.js +0 -195
  1075. package/src/widgets/form/TextField.d.ts +0 -78
  1076. package/src/widgets/form/TextField.js +0 -290
  1077. package/src/widgets/form/TimeField.d.ts +0 -6
  1078. package/src/widgets/form/TimeField.js +0 -11
  1079. package/src/widgets/form/TimeList.js +0 -84
  1080. package/src/widgets/form/UploadButton.d.ts +0 -34
  1081. package/src/widgets/form/UploadButton.js +0 -213
  1082. package/src/widgets/form/ValidationError.d.ts +0 -10
  1083. package/src/widgets/form/ValidationError.js +0 -44
  1084. package/src/widgets/form/ValidationGroup.d.ts +0 -41
  1085. package/src/widgets/form/ValidationGroup.js +0 -68
  1086. package/src/widgets/form/ValidationGroup.spec.js +0 -148
  1087. package/src/widgets/form/Validator.d.ts +0 -8
  1088. package/src/widgets/form/Validator.js +0 -21
  1089. package/src/widgets/form/Wheel.js +0 -261
  1090. package/src/widgets/form/index.d.ts +0 -26
  1091. package/src/widgets/grid/Grid.d.ts +0 -445
  1092. package/src/widgets/grid/Grid.js +0 -3431
  1093. package/src/widgets/grid/GridCell.d.ts +0 -38
  1094. package/src/widgets/grid/GridCell.js +0 -71
  1095. package/src/widgets/grid/GridCellEditor.js +0 -41
  1096. package/src/widgets/grid/GridRow.js +0 -228
  1097. package/src/widgets/grid/GridRowLine.js +0 -24
  1098. package/src/widgets/grid/Pagination.d.ts +0 -14
  1099. package/src/widgets/grid/Pagination.js +0 -95
  1100. package/src/widgets/grid/TreeNode.d.ts +0 -23
  1101. package/src/widgets/grid/TreeNode.js +0 -102
  1102. package/src/widgets/grid/index.d.ts +0 -4
  1103. package/src/widgets/grid/index.js +0 -15
  1104. package/src/widgets/icons/calendar.js +0 -16
  1105. package/src/widgets/icons/check.js +0 -12
  1106. package/src/widgets/icons/clear.js +0 -14
  1107. package/src/widgets/icons/close.js +0 -19
  1108. package/src/widgets/icons/cx.js +0 -37
  1109. package/src/widgets/icons/drop-down.js +0 -14
  1110. package/src/widgets/icons/file.js +0 -12
  1111. package/src/widgets/icons/folder-open.js +0 -14
  1112. package/src/widgets/icons/folder.js +0 -12
  1113. package/src/widgets/icons/forward.js +0 -21
  1114. package/src/widgets/icons/loading.js +0 -23
  1115. package/src/widgets/icons/menu.js +0 -16
  1116. package/src/widgets/icons/pixel-picker.js +0 -17
  1117. package/src/widgets/icons/registry.js +0 -54
  1118. package/src/widgets/icons/search.js +0 -12
  1119. package/src/widgets/icons/sort-asc.js +0 -13
  1120. package/src/widgets/icons/square.js +0 -17
  1121. package/src/widgets/nav/Link.d.ts +0 -26
  1122. package/src/widgets/nav/Link.js +0 -8
  1123. package/src/widgets/nav/LinkButton.d.ts +0 -34
  1124. package/src/widgets/nav/LinkButton.js +0 -128
  1125. package/src/widgets/nav/Menu.d.ts +0 -27
  1126. package/src/widgets/nav/Menu.js +0 -406
  1127. package/src/widgets/nav/MenuItem.d.ts +0 -31
  1128. package/src/widgets/nav/MenuItem.js +0 -445
  1129. package/src/widgets/nav/MenuSpacer.d.ts +0 -5
  1130. package/src/widgets/nav/MenuSpacer.js +0 -13
  1131. package/src/widgets/nav/RedirectRoute.d.ts +0 -9
  1132. package/src/widgets/nav/RedirectRoute.js +0 -41
  1133. package/src/widgets/nav/Route.d.ts +0 -21
  1134. package/src/widgets/nav/Route.js +0 -102
  1135. package/src/widgets/nav/Route.spec.js +0 -27
  1136. package/src/widgets/nav/Scroller.d.ts +0 -17
  1137. package/src/widgets/nav/Scroller.js +0 -214
  1138. package/src/widgets/nav/Submenu.d.ts +0 -6
  1139. package/src/widgets/nav/Submenu.js +0 -6
  1140. package/src/widgets/nav/Tab.d.ts +0 -33
  1141. package/src/widgets/nav/Tab.js +0 -82
  1142. package/src/widgets/nav/index.js +0 -10
  1143. package/src/widgets/overlay/ContextMenu.d.ts +0 -10
  1144. package/src/widgets/overlay/ContextMenu.js +0 -29
  1145. package/src/widgets/overlay/Dropdown.d.ts +0 -32
  1146. package/src/widgets/overlay/Dropdown.js +0 -612
  1147. package/src/widgets/overlay/FlyweightTooltipTracker.d.ts +0 -8
  1148. package/src/widgets/overlay/FlyweightTooltipTracker.js +0 -39
  1149. package/src/widgets/overlay/MsgBox.d.ts +0 -17
  1150. package/src/widgets/overlay/MsgBox.js +0 -116
  1151. package/src/widgets/overlay/Overlay.d.ts +0 -73
  1152. package/src/widgets/overlay/Overlay.js +0 -747
  1153. package/src/widgets/overlay/Toast.d.ts +0 -30
  1154. package/src/widgets/overlay/Toast.js +0 -93
  1155. package/src/widgets/overlay/Tooltip.d.ts +0 -50
  1156. package/src/widgets/overlay/Tooltip.js +0 -308
  1157. package/src/widgets/overlay/Window.d.ts +0 -42
  1158. package/src/widgets/overlay/Window.js +0 -202
  1159. package/src/widgets/overlay/alerts.d.ts +0 -7
  1160. package/src/widgets/overlay/alerts.js +0 -39
  1161. package/src/widgets/overlay/captureMouse.d.ts +0 -54
  1162. package/src/widgets/overlay/captureMouse.js +0 -124
  1163. package/src/widgets/overlay/createHotPromiseWindowFactory.d.ts +0 -18
  1164. package/src/widgets/overlay/createHotPromiseWindowFactory.js +0 -56
  1165. package/src/widgets/overlay/index.js +0 -11
  1166. package/src/widgets/overlay/tooltip-ops.d.ts +0 -11
  1167. package/src/widgets/overlay/tooltip-ops.js +0 -29
  1168. package/svg.d.ts +0 -1
  1169. package/svg.js +0 -1
  1170. package/ui.d.ts +0 -1
  1171. package/ui.js +0 -1
  1172. package/util.d.ts +0 -1
  1173. package/util.js +0 -1
  1174. package/widgets.d.ts +0 -1
  1175. package/widgets.js +0 -1
  1176. /package/src/charts/{index.js → index.ts} +0 -0
  1177. /package/src/data/{Binding.spec.js → Binding.spec.ts} +0 -0
  1178. /package/src/data/{Grouper.spec.js → Grouper.spec.ts} +0 -0
  1179. /package/src/data/{View.spec.js → View.spec.ts} +0 -0
  1180. /package/src/data/{comparer.spec.js → comparer.spec.ts} +0 -0
  1181. /package/src/data/ops/{index.js → index.ts} +0 -0
  1182. /package/src/hooks/{index.d.ts → index.ts} +0 -0
  1183. /package/src/{index.js → index.ts} +0 -0
  1184. /package/src/svg/{index.js → index.ts} +0 -0
  1185. /package/src/svg/util/{index.d.ts → index.ts} +0 -0
  1186. /package/src/ui/adapter/{index.d.ts → index.ts} +0 -0
  1187. /package/src/ui/app/{index.js → index.ts} +0 -0
  1188. /package/src/ui/layout/{index.d.ts → index.ts} +0 -0
  1189. /package/src/ui/selection/{index.d.ts → index.ts} +0 -0
  1190. /package/src/util/color/{index.js → index.ts} +0 -0
  1191. /package/src/util/date/{index.d.ts → index.ts} +0 -0
  1192. /package/src/util/date/{upperBoundCheck.spec.js → upperBoundCheck.spec.ts} +0 -0
  1193. /package/src/util/{getSearchQueryPredicate.spec.js → getSearchQueryPredicate.spec.ts} +0 -0
  1194. /package/src/util/{isValidIdentifierName.spec.js → isValidIdentifierName.spec.ts} +0 -0
  1195. /package/src/util/{routeAppend.spec.js → routeAppend.spec.ts} +0 -0
  1196. /package/src/widgets/drag-drop/{index.d.ts → index.ts} +0 -0
  1197. /package/src/widgets/form/{index.js → index.ts} +0 -0
  1198. /package/src/widgets/icons/{index.js → index.ts} +0 -0
  1199. /package/src/widgets/{index.js → index.ts} +0 -0
  1200. /package/src/widgets/nav/{index.d.ts → index.ts} +0 -0
@@ -0,0 +1,54 @@
1
+ import { TraversalStack } from './TraversalStack';
2
+
3
+ import assert from 'assert';
4
+
5
+ interface TreeNode {
6
+ id: number;
7
+ children?: TreeNode[];
8
+ }
9
+
10
+ describe('TraversalStack', function () {
11
+
12
+ it('push', function () {
13
+ let stack = new TraversalStack<number>();
14
+ stack.push(1);
15
+ assert.equal(stack.pop(), 1);
16
+ });
17
+
18
+ it('traverses the tree in the right order', function () {
19
+ let stack = new TraversalStack<TreeNode>();
20
+
21
+ let tree: TreeNode = {
22
+ id: 1,
23
+ children: [{
24
+ id: 2,
25
+ children: [{
26
+ id: 3
27
+ }, {
28
+ id: 4
29
+ }]
30
+ }, {
31
+ id: 5,
32
+ children: [{
33
+ id: 6
34
+ }]
35
+ }]
36
+ };
37
+
38
+ let list: number[] = [];
39
+ stack.push(tree);
40
+ while (!stack.empty()) {
41
+ let node = stack.pop();
42
+ if (node) {
43
+ list.push(node.id);
44
+ if (node.children) {
45
+ stack.hop();
46
+ node.children.forEach((child) => {
47
+ stack.push(child);
48
+ })
49
+ }
50
+ }
51
+ }
52
+ assert.deepEqual(list, [1, 2, 3, 4, 5, 6]);
53
+ });
54
+ });
@@ -0,0 +1,48 @@
1
+ interface StackLine<T> {
2
+ elements: T[];
3
+ index: number;
4
+ }
5
+
6
+ export class TraversalStack<T> {
7
+ private data: StackLine<T>[];
8
+
9
+ constructor() {
10
+ this.data = [];
11
+ }
12
+
13
+ push(node: T): void {
14
+ if (this.data.length == 0)
15
+ this.hop();
16
+
17
+ this.data[this.data.length - 1].elements.push(node);
18
+ }
19
+
20
+ hop(): void {
21
+ this.data.push({
22
+ elements: [],
23
+ index: 0
24
+ });
25
+ }
26
+
27
+ pop(): T | null {
28
+ while (this.data.length > 0) {
29
+ let line = this.data[this.data.length - 1];
30
+ if (line.index < line.elements.length) {
31
+ line.index++;
32
+ return line.elements[line.index - 1];
33
+ }
34
+ this.data.pop();
35
+ }
36
+ return null;
37
+ }
38
+
39
+ empty(): boolean {
40
+ while (this.data.length > 0) {
41
+ let line = this.data[this.data.length - 1];
42
+ if (line.index < line.elements.length)
43
+ return false;
44
+ this.data.pop();
45
+ }
46
+ return true;
47
+ }
48
+ }
@@ -0,0 +1,41 @@
1
+ import { browserSupportsPassiveEventHandlers } from "./browserSupportsPassiveEventHandlers";
2
+
3
+ interface EventMap {
4
+ wheel: WheelEvent;
5
+ scroll: Event;
6
+ click: MouseEvent;
7
+ mousedown: MouseEvent;
8
+ mouseup: MouseEvent;
9
+ mousemove: MouseEvent;
10
+ touchstart: TouchEvent;
11
+ touchmove: TouchEvent;
12
+ touchend: TouchEvent;
13
+ keydown: KeyboardEvent;
14
+ keyup: KeyboardEvent;
15
+ keypress: KeyboardEvent;
16
+ }
17
+
18
+ export function addEventListenerWithOptions<K extends keyof EventMap>(
19
+ element: Element,
20
+ event: K,
21
+ callback: (event: EventMap[K]) => void,
22
+ options: AddEventListenerOptions
23
+ ): () => void;
24
+ export function addEventListenerWithOptions(
25
+ element: Element,
26
+ event: string,
27
+ callback: (event: Event) => void,
28
+ options: AddEventListenerOptions
29
+ ): () => void;
30
+ export function addEventListenerWithOptions(
31
+ element: Element,
32
+ event: string,
33
+ callback: (event: Event) => void,
34
+ options: AddEventListenerOptions
35
+ ): () => void {
36
+ let thirdParam = browserSupportsPassiveEventHandlers() ? options : options.capture === true;
37
+ element.addEventListener(event, callback as any, thirdParam);
38
+ return () => {
39
+ element.removeEventListener(event, callback as any, thirdParam);
40
+ };
41
+ }
@@ -0,0 +1,20 @@
1
+ let passiveEventsSupported: boolean | null = null;
2
+
3
+ /**
4
+ * Checks if the browser supports passive event handlers.
5
+ * @returns {boolean}
6
+ */
7
+ export function browserSupportsPassiveEventHandlers(): boolean {
8
+ if (passiveEventsSupported == null) {
9
+ try {
10
+ passiveEventsSupported = false;
11
+ const options = Object.defineProperty({}, "passive", {
12
+ get() {
13
+ passiveEventsSupported = true;
14
+ },
15
+ });
16
+ window.addEventListener("test" as any, null as any, options);
17
+ } catch (e) {}
18
+ }
19
+ return passiveEventsSupported!;
20
+ }
@@ -0,0 +1,22 @@
1
+ export function calculateNaturalElementHeight(el: HTMLElement): number {
2
+ if (el.scrollHeight > el.clientHeight) return naturalElementHeight(el);
3
+ let h = el.offsetHeight;
4
+ for (let i = 0; i < el.children.length; i++) {
5
+ let child = el.children[i];
6
+ if (child instanceof HTMLElement && child.scrollHeight > child.clientHeight) {
7
+ h -= child.offsetHeight;
8
+ h += naturalElementHeight(child);
9
+ }
10
+ }
11
+ return h;
12
+ }
13
+
14
+ function naturalElementHeight(el: HTMLElement): number {
15
+ let h = el.offsetHeight;
16
+ let overflow = el.scrollHeight - el.clientHeight;
17
+ if (overflow <= 0) return h;
18
+ let computedStyle = getComputedStyle(el);
19
+ let maxH = parseFloat(computedStyle.getPropertyValue("max-height"));
20
+ if (!isNaN(maxH)) return Math.min(maxH, h + overflow);
21
+ return h + overflow;
22
+ }
@@ -0,0 +1,4 @@
1
+ export function capitalize(str: string): string {
2
+ if (typeof str != "string") return str;
3
+ return str.charAt(0).toUpperCase() + str.substring(1);
4
+ }
@@ -0,0 +1,6 @@
1
+ export function coalesce(...args: any[]): any {
2
+ for (let i = 0; i < args.length; i++) {
3
+ if (args[i] != null) return args[i];
4
+ }
5
+ return null;
6
+ }
@@ -0,0 +1,34 @@
1
+ function hue2rgb(p: number, q: number, t: number): number {
2
+ if (t < 0) t += 1;
3
+ if (t > 1) t -= 1;
4
+ if (t < 1 / 6) return p + (q - p) * 6 * t;
5
+ if (t < 1 / 2) return q;
6
+ if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
7
+ return p;
8
+ };
9
+
10
+ /**
11
+ *
12
+ * @param h
13
+ * @param s
14
+ * @param l
15
+ * @returns {array}
16
+ */
17
+ export function hslToRgb(h: number, s: number, l: number): [number, number, number] {
18
+ h/=360;
19
+ s/=100;
20
+ l/=100;
21
+ var r, g, b;
22
+
23
+ if (s == 0) {
24
+ r = g = b = l; // achromatic
25
+ } else {
26
+ var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
27
+ var p = 2 * l - q;
28
+ r = hue2rgb(p, q, h + 1 / 3);
29
+ g = hue2rgb(p, q, h);
30
+ b = hue2rgb(p, q, h - 1 / 3);
31
+ }
32
+
33
+ return [Math.round(r * 255), Math.round(g * 255), Math.round(b * 255)];
34
+ }
@@ -0,0 +1,173 @@
1
+ /**
2
+ * An object representing `rgba` color.
3
+ * @typedef RGBColor
4
+ * @property type
5
+ * @property r
6
+ * @property g
7
+ * @property b
8
+ * @property a
9
+ */
10
+ type RGBColor = {
11
+ type: 'rgba',
12
+ r: number,
13
+ g: number,
14
+ b: number,
15
+ a: number
16
+ }
17
+
18
+ /**
19
+ * An object representing `hsla` color.
20
+ * @typedef HSLColor
21
+ * @property type
22
+ * @property h
23
+ * @property s
24
+ * @property l
25
+ * @property a
26
+ */
27
+ type HSLColor = {
28
+ type: 'hsla',
29
+ h: number,
30
+ s: number,
31
+ l: number,
32
+ a: number
33
+ }
34
+
35
+ /**
36
+ *
37
+ * @param color
38
+ * @returns {RGBColor|HSLColor}
39
+ */
40
+ export function parseColor(color: string | null): RGBColor | HSLColor | null {
41
+
42
+ if (!color)
43
+ return null;
44
+
45
+ if (color[0] == '#')
46
+ return parseHexColor(color);
47
+
48
+ if (color.indexOf('rgb') == 0)
49
+ return parseRgbColor(color);
50
+
51
+ if (color.indexOf('hsl') == 0)
52
+ return parseHslColor(color);
53
+
54
+ throw new Error(`Unknown color format: ${color}.`);
55
+ }
56
+
57
+ /**
58
+ *
59
+ * @param color
60
+ * @returns {RGBColor}
61
+ */
62
+ export function parseHexColor(color: string | null): RGBColor | null {
63
+
64
+ if (!color)
65
+ return null;
66
+
67
+ if (color[0] != '#')
68
+ throw new Error(`Invalid color ${color}.`);
69
+
70
+ if (color.length == 4)
71
+ return {
72
+ type: 'rgba',
73
+ r: parseInt(color.charAt(1), 16) * 0x11,
74
+ g: parseInt(color.charAt(2), 16) * 0x11,
75
+ b: parseInt(color.charAt(3), 16) * 0x11,
76
+ a: 1
77
+ };
78
+
79
+ if (color.length != 7)
80
+ throw new Error(`Invalid color ${color}.`);
81
+
82
+ return {
83
+ type: 'rgba',
84
+ r: parseInt(color.substr(1, 2), 16),
85
+ g: parseInt(color.substr(3, 2), 16),
86
+ b: parseInt(color.substr(5, 2), 16),
87
+ a: 1
88
+ }
89
+ }
90
+
91
+ /**
92
+ *
93
+ * @param color
94
+ * @returns {RGBColor}
95
+ */
96
+ export function parseRgbColor(color: string | null): RGBColor | null {
97
+ if (!color)
98
+ return null;
99
+
100
+ color = color.trim();
101
+ var values;
102
+
103
+ if (color.indexOf('rgba(') == 0) {
104
+ values = color.substring(5, color.length - 1).split(',').map(x=>parseFloat(x.trim()));
105
+ if (values.length != 4)
106
+ throw new Error(`Invalid color ${color}.`);
107
+
108
+ return {
109
+ type: 'rgba',
110
+ r: values[0],
111
+ g: values[1],
112
+ b: values[2],
113
+ a: values[3]
114
+ }
115
+ }
116
+
117
+ if (color.indexOf('rgb(') != 0)
118
+ throw new Error(`Invalid color ${color}.`);
119
+
120
+ values = color.substring(5, color.length - 1).split(',').map(x=>parseFloat(x.trim()));
121
+ if (values.length != 3)
122
+ throw new Error(`Invalid color ${color}.`);
123
+
124
+ return {
125
+ type: 'rgba',
126
+ r: values[0],
127
+ g: values[1],
128
+ b: values[2],
129
+ a: 1
130
+ }
131
+ }
132
+
133
+ /**
134
+ *
135
+ * @param color
136
+ * @returns {HSLColor}
137
+ */
138
+ export function parseHslColor(color: string | null): HSLColor | null {
139
+ if (!color)
140
+ return null;
141
+
142
+ color = color.trim();
143
+ var values;
144
+
145
+ if (color.indexOf('hsla(') == 0) {
146
+ values = color.substring(5, color.length - 1).split(',').map(x=>parseFloat(x.trim()));
147
+ if (values.length != 4)
148
+ throw new Error(`Invalid color ${color}.`);
149
+
150
+ return {
151
+ type: 'hsla',
152
+ h: values[0],
153
+ s: values[1],
154
+ l: values[2],
155
+ a: values[3]
156
+ }
157
+ }
158
+
159
+ if (color.indexOf('hsl(') != 0)
160
+ throw new Error(`Invalid color ${color}.`);
161
+
162
+ values = color.substring(5, color.length - 1).split(',').map(x=>parseFloat(x.trim()));
163
+ if (values.length != 3)
164
+ throw new Error(`Invalid color ${color}.`);
165
+
166
+ return {
167
+ type: 'hsla',
168
+ h: values[0],
169
+ s: values[1],
170
+ l: values[2],
171
+ a: 1
172
+ }
173
+ }
@@ -0,0 +1,15 @@
1
+ function componentToHex(c: number): string {
2
+ var hex = c.toString(16);
3
+ return hex.length == 1 ? "0" + hex : hex;
4
+ }
5
+
6
+ /**
7
+ *
8
+ * @param r
9
+ * @param g
10
+ * @param b
11
+ * @returns {string}
12
+ */
13
+ export function rgbToHex(r: number, g: number, b: number): string {
14
+ return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
15
+ }
@@ -0,0 +1,36 @@
1
+ /**
2
+ *
3
+ * @param r
4
+ * @param g
5
+ * @param b
6
+ * @returns {array}
7
+ */
8
+ export function rgbToHsl(r: number, g: number, b: number): [number, number, number] {
9
+ r /= 255;
10
+ g /= 255;
11
+ b /= 255;
12
+ let max = Math.max(r, g, b), min = Math.min(r, g, b);
13
+ let h: number, s: number, l = (max + min) / 2;
14
+
15
+ if (max == min) {
16
+ h = s = 0; // achromatic
17
+ } else {
18
+ let d = max - min;
19
+ s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
20
+ switch (max) {
21
+ case r:
22
+ h = (g - b) / d + (g < b ? 6 : 0);
23
+ break;
24
+ case g:
25
+ h = (b - r) / d + 2;
26
+ break;
27
+ case b:
28
+ default:
29
+ h = (r - g) / d + 4;
30
+ break;
31
+ }
32
+ h /= 6;
33
+ }
34
+
35
+ return [h * 360, s * 100, l * 100]
36
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Returns the difference between two dates in miliseconds.
3
+ * @param d1
4
+ * @param d2
5
+ * @returns {number}
6
+ */
7
+ export function dateDiff(d1: Date, d2: Date): number {
8
+ return d1.getTime() - d2.getTime();
9
+ };
@@ -0,0 +1,13 @@
1
+ import {debug, deprecatedFlag} from '../../util/Debug';
2
+
3
+ debug(deprecatedFlag, 'date/diff function is deprecated since v16.8. It will be removed in future versions. Use dateDiff instead.');
4
+
5
+ /**
6
+ * @deprecated
7
+ * date/diff function is deprecated since v16.8. It will be removed in future versions. Use dateDiff instead.
8
+ * @param d1
9
+ * @param d2
10
+ */
11
+ export function diff(d1: Date, d2: Date): number {
12
+ return d1.getTime() - d2.getTime();
13
+ }
@@ -0,0 +1,8 @@
1
+ function pad(num: number): string {
2
+ const norm = Math.floor(Math.abs(num));
3
+ return (norm < 10 ? "0" : "") + norm;
4
+ }
5
+
6
+ export function encodeDate(date: Date): string {
7
+ return date.getFullYear() + "-" + pad(date.getMonth() + 1) + "-" + pad(date.getDate());
8
+ }
@@ -0,0 +1,19 @@
1
+ //https://stackoverflow.com/questions/17415579/how-to-iso-8601-format-a-date-with-timezone-offset-in-javascript
2
+
3
+ function pad(num: number): string {
4
+ const norm = Math.floor(Math.abs(num));
5
+ return (norm < 10 ? '0' : '') + norm;
6
+ }
7
+
8
+ export function encodeDateWithTimezoneOffset(date: Date): string {
9
+ const tzo = -date.getTimezoneOffset(),
10
+ dif = tzo >= 0 ? '+' : '-';
11
+ return date.getFullYear() +
12
+ '-' + pad(date.getMonth() + 1) +
13
+ '-' + pad(date.getDate()) +
14
+ 'T' + pad(date.getHours()) +
15
+ ':' + pad(date.getMinutes()) +
16
+ ':' + pad(date.getSeconds()) +
17
+ dif + pad(tzo / 60) +
18
+ ':' + pad(tzo % 60);
19
+ }
@@ -0,0 +1,13 @@
1
+ import {dateDiff} from './dateDiff';
2
+
3
+ /**
4
+ * Checks `date` against the lower bound `minDate`. Set `exclusive` to true to disallow the border value.
5
+ * @param date
6
+ * @param minDate
7
+ * @param [exclusive=false]
8
+ * @returns {boolean}
9
+ */
10
+ export function lowerBoundCheck(date: Date, minDate: Date, exclusive: boolean = false): boolean {
11
+ var d = dateDiff(date, minDate);
12
+ return d > 0 || (d == 0 && !exclusive);
13
+ }
@@ -0,0 +1,14 @@
1
+ import {dateDiff} from './dateDiff';
2
+
3
+ /**
4
+ * Returns the maximum Date value from the provided values.
5
+ * @param args
6
+ * @returns {Date}
7
+ */
8
+ export function maxDate(...args: Date[]): Date {
9
+ var max = args[0];
10
+ for (var i = 1; i < args.length; i++)
11
+ if (dateDiff(max, args[i]) < 0)
12
+ max = args[i];
13
+ return max;
14
+ }
@@ -0,0 +1,14 @@
1
+ import {dateDiff} from './dateDiff';
2
+
3
+ /**
4
+ * Returns the minimum Date value from the provided values.
5
+ * @param args
6
+ * @returns {Date}
7
+ */
8
+ export function minDate(...args: Date[]): Date {
9
+ var min = args[0];
10
+ for (var i = 1; i<args.length; i++)
11
+ if (dateDiff(min, args[i]) > 0)
12
+ min = args[i];
13
+ return min;
14
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns the date representing the beginning of the month in respect to the date provided.
3
+ * @param d
4
+ * @returns {Date}
5
+ */
6
+ export function monthStart(d: Date): Date {
7
+ return new Date(d.getFullYear(), d.getMonth(), 1);
8
+ }
@@ -0,0 +1,20 @@
1
+ // This module addresses a common issue when handling date strings in the format "yyyy-MM-dd" usually returned by backends.
2
+ // In time zones earlier than UTC, creating a Date object from such a string can result in the date being shifted one day earlier.
3
+ // This happens because "yyyy-MM-dd" is interpreted as a UTC date at 00:00, and when the browser displays it in local time, it adjusts backward.
4
+ // To resolve this, the default implementation (`defaultInvariantParseDate`) appends " 00:00" to the date string,
5
+ // explicitly indicating local time. Custom parsing logic can also be registered dynamically using `registerInvariantParseDateImpl`
6
+ // to accommodate other formats or requirements.
7
+ function defaultParseDateInvariant(input: string | number | Date): Date {
8
+ if (typeof input == "string" && input.length == 10 && input[4] == "-" && input[7] == "-")
9
+ return new Date(`${input} 00:00`);
10
+ return new Date(input);
11
+ }
12
+ let impl: (input: string | number | Date) => Date = defaultParseDateInvariant;
13
+
14
+ export function parseDateInvariant(input: string | number | Date): Date {
15
+ return impl(input);
16
+ }
17
+
18
+ export function overrideParseDateInvariant(newImpl: (input: string | number | Date) => Date): void {
19
+ impl = newImpl;
20
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Returns `true` if the dates provided represent the same day.
3
+ * @param d1
4
+ * @param d2
5
+ * @returns {boolean}
6
+ */
7
+ export function sameDate(d1: Date, d2: Date): boolean {
8
+ return d1.getDate() == d2.getDate()
9
+ && d1.getMonth() == d2.getMonth()
10
+ && d1.getFullYear() == d2.getFullYear();
11
+ }
@@ -0,0 +1,13 @@
1
+ import {dateDiff} from './dateDiff';
2
+
3
+ /**
4
+ * Checks `date` against the upper bound `maxDate`. Set `exclusive` to true to disallow the border value.
5
+ * @param date
6
+ * @param maxDate
7
+ * @param exclusive
8
+ * @returns {boolean}
9
+ */
10
+ export function upperBoundCheck(date: Date, maxDate: Date, exclusive: boolean = false): boolean {
11
+ var d = dateDiff(date, maxDate);
12
+ return d < 0 || (d == 0 && !exclusive);
13
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Zeros out time for the given Date object. E.g. for date object representing Wed Apr 19 2017 14:31:51 GMT+0200
3
+ * returns Wed Apr 19 2017 00:00:00 GMT+0200.
4
+ * @param d
5
+ * @returns {Date}
6
+ */
7
+ export function zeroTime(d: Date): Date {
8
+ return new Date(d.getFullYear(), d.getMonth(), d.getDate());
9
+ }
@@ -0,0 +1,26 @@
1
+ export interface DebouncedFunction<T extends (...args: any[]) => any> {
2
+ (...args: Parameters<T>): void;
3
+ reset(...args: Parameters<T>): void;
4
+ }
5
+
6
+ export function debounce<T extends (...args: any[]) => any>(
7
+ callback: T,
8
+ delay: number
9
+ ): DebouncedFunction<T> {
10
+ let timer: ReturnType<typeof setTimeout> | undefined;
11
+
12
+ const result = function (this: any, ...args: Parameters<T>): void {
13
+ const context = this;
14
+ clearTimeout(timer);
15
+ timer = setTimeout(() => {
16
+ callback.apply(context, args);
17
+ }, delay);
18
+ } as DebouncedFunction<T>;
19
+
20
+ result.reset = function (this: any, ...args: Parameters<T>): void {
21
+ clearTimeout(timer);
22
+ callback.apply(this, args);
23
+ };
24
+
25
+ return result;
26
+ }
@@ -0,0 +1 @@
1
+ export function dummyCallback(): void {}
@@ -0,0 +1,8 @@
1
+ /**
2
+ *
3
+ * @param s
4
+ * @return {string}
5
+ */
6
+ export function escapeSpecialRegexCharacters(s: string): string {
7
+ return s.replace(/[\\^$*+?.()|[\]{}]/g, '\\$&');
8
+ }
@@ -0,0 +1,12 @@
1
+ interface SyntheticEvent<T> {
2
+ stopPropagation(): void;
3
+ preventDefault(): void;
4
+ }
5
+
6
+ export function stopPropagation(e: SyntheticEvent<any>): void {
7
+ e.stopPropagation();
8
+ }
9
+
10
+ export function preventDefault(e: SyntheticEvent<any>): void {
11
+ e.preventDefault();
12
+ }