onekijs-ui 0.22.0 → 1.0.2

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 (306) hide show
  1. package/dist/components/accordion/index.d.ts +5 -1
  2. package/dist/components/alert/index.d.ts +19 -1
  3. package/dist/components/button/DropdownButton.d.ts +1 -2
  4. package/dist/components/button/index.d.ts +1 -2
  5. package/dist/components/card/FormBlock.d.ts +4 -0
  6. package/dist/components/card/FormBlockDisplayer.d.ts +14 -0
  7. package/dist/components/card/FormCardDisplayer.d.ts +13 -2
  8. package/dist/components/card/components/FormBlockDisplayerComponent.d.ts +4 -0
  9. package/dist/components/card/index.d.ts +5 -1
  10. package/dist/components/card/typings.d.ts +3 -1
  11. package/dist/components/checkbox/index.d.ts +1 -2
  12. package/dist/components/checkbox/typings.d.ts +2 -2
  13. package/dist/components/contextmenu/index.d.ts +5 -1
  14. package/dist/components/contextmenu/typings.d.ts +1 -2
  15. package/dist/components/dashboard/DashboardService.d.ts +16 -7
  16. package/dist/components/dashboard/components/DashboardBody.d.ts +1 -2
  17. package/dist/components/dashboard/components/DashboardContainer.d.ts +6 -1
  18. package/dist/components/dashboard/components/DashboardOverlay.d.ts +5 -1
  19. package/dist/components/dashboard/components/DashboardToggler.d.ts +23 -1
  20. package/dist/components/dashboard/hooks/useDashboardController.d.ts +3 -0
  21. package/dist/components/dashboard/typings.d.ts +17 -5
  22. package/dist/components/dashboard/utils/dashboardArea.d.ts +2 -2
  23. package/dist/components/dashboard/utils/dashboardLength.d.ts +4 -4
  24. package/dist/components/datetime/hooks/useDateRangeAdapter.d.ts +1 -1
  25. package/dist/components/datetime/hooks/useTimestampRangeAdapter.d.ts +2 -2
  26. package/dist/components/datetime/index.d.ts +214 -7
  27. package/dist/components/datetime/typings.d.ts +0 -1
  28. package/dist/components/datetime/util.d.ts +1 -0
  29. package/dist/components/dropdown/index.d.ts +9 -1
  30. package/dist/components/dropdown/typings.d.ts +4 -3
  31. package/dist/components/field/FieldDescription.d.ts +1 -2
  32. package/dist/components/field/FieldDisplayer.d.ts +15 -2
  33. package/dist/components/field/FieldHelp.d.ts +1 -2
  34. package/dist/components/field/FieldLayout.d.ts +5 -1
  35. package/dist/components/field/hooks/useFieldLayout.d.ts +1 -1
  36. package/dist/components/grid/Col.d.ts +22 -1
  37. package/dist/components/grid/Row.d.ts +44 -1
  38. package/dist/components/grid/typings.d.ts +0 -1
  39. package/dist/components/icon/CalendarIcon.d.ts +9 -1
  40. package/dist/components/icon/CloseAllIcon.d.ts +9 -1
  41. package/dist/components/icon/CloseIcon.d.ts +9 -1
  42. package/dist/components/icon/CrossIcon.d.ts +9 -1
  43. package/dist/components/icon/DebugIcon.d.ts +9 -1
  44. package/dist/components/icon/ErrorIcon.d.ts +9 -1
  45. package/dist/components/icon/FileIcon.d.ts +9 -1
  46. package/dist/components/icon/FilterIcon.d.ts +9 -1
  47. package/dist/components/icon/FolderIcon.d.ts +9 -1
  48. package/dist/components/icon/HelpIcon.d.ts +9 -1
  49. package/dist/components/icon/HideIcon.d.ts +9 -1
  50. package/dist/components/icon/InfoIcon.d.ts +9 -1
  51. package/dist/components/icon/LoadingIcon.d.ts +9 -1
  52. package/dist/components/icon/MenuIcon.d.ts +9 -1
  53. package/dist/components/icon/RefreshIcon.d.ts +9 -1
  54. package/dist/components/icon/RemoveIcon.d.ts +9 -1
  55. package/dist/components/icon/SearchIcon.d.ts +9 -1
  56. package/dist/components/icon/ShowIcon.d.ts +9 -1
  57. package/dist/components/icon/SuccessIcon.d.ts +9 -1
  58. package/dist/components/icon/TogglerIcon.d.ts +23 -1
  59. package/dist/components/icon/WarningIcon.d.ts +9 -1
  60. package/dist/components/icon/typings.d.ts +0 -1
  61. package/dist/components/icon/util.d.ts +96 -87
  62. package/dist/components/input/index.d.ts +13 -2
  63. package/dist/components/input/typings.d.ts +1 -1
  64. package/dist/components/label/index.d.ts +1 -2
  65. package/dist/components/list/DropdownList.d.ts +2 -5
  66. package/dist/components/list/components/CollectionListComponent.d.ts +1 -1
  67. package/dist/components/list/components/ListBodyComponent.d.ts +1 -1
  68. package/dist/components/list/components/ListComponent.d.ts +2 -1
  69. package/dist/components/list/components/ListItemComponent.d.ts +3 -2
  70. package/dist/components/list/components/ListLoadingComponent.d.ts +1 -1
  71. package/dist/components/list/components/LoadingItem.d.ts +10 -4
  72. package/dist/components/list/components/VirtualListComponent.d.ts +1 -1
  73. package/dist/components/list/hooks/useListController.d.ts +1 -1
  74. package/dist/components/list/hooks/useListView.d.ts +1 -1
  75. package/dist/components/list/index.d.ts +2 -5
  76. package/dist/components/list/typings.d.ts +3 -2
  77. package/dist/components/list/utils.d.ts +2 -2
  78. package/dist/components/modal/index.d.ts +5 -1
  79. package/dist/components/notifications/index.d.ts +1 -2
  80. package/dist/components/password/Password.d.ts +15 -2
  81. package/dist/components/password/components/PasswordComponent.d.ts +5 -1
  82. package/dist/components/properties/index.d.ts +1 -2
  83. package/dist/components/resizer/ResizerService.d.ts +4 -5
  84. package/dist/components/resizer/index.d.ts +5 -1
  85. package/dist/components/resizer/typings.d.ts +1 -2
  86. package/dist/components/select/FormSelect.d.ts +2 -1
  87. package/dist/components/select/SelectService.d.ts +3 -3
  88. package/dist/components/select/TreeSelect.d.ts +2 -5
  89. package/dist/components/select/components/ArrayTreeSelectComponent.d.ts +1 -2
  90. package/dist/components/select/components/ControlledSelectComponent.d.ts +1 -1
  91. package/dist/components/select/components/SelectComponent.d.ts +2 -1
  92. package/dist/components/select/components/SelectOptionComponent.d.ts +2 -1
  93. package/dist/components/select/components/SelectTokenComponent.d.ts +2 -1
  94. package/dist/components/select/components/SelectTokensComponent.d.ts +2 -1
  95. package/dist/components/select/components/TreeSelectComponent.d.ts +2 -1
  96. package/dist/components/select/hooks/useSelect.d.ts +0 -0
  97. package/dist/components/select/hooks/useSelectController.d.ts +1 -1
  98. package/dist/components/select/hooks/useTreeSelectController.d.ts +1 -1
  99. package/dist/components/select/index.d.ts +2 -5
  100. package/dist/components/select/typings.d.ts +2 -1
  101. package/dist/components/select/util.d.ts +2 -2
  102. package/dist/components/slider/index.d.ts +5 -1
  103. package/dist/components/tab/index.d.ts +5 -1
  104. package/dist/components/tab/typings.d.ts +1 -0
  105. package/dist/components/table/TableService.d.ts +4 -4
  106. package/dist/components/table/columns/enumColumn.d.ts +1 -1
  107. package/dist/components/table/columns/inputColumn.d.ts +1 -1
  108. package/dist/components/table/components/TableLoadingComponent.d.ts +1 -1
  109. package/dist/components/table/components/TableLoadingRowComponent.d.ts +21 -1
  110. package/dist/components/table/displayers/FormTableValueDisplayer.d.ts +1 -1
  111. package/dist/components/table/hooks/useTableController.d.ts +1 -1
  112. package/dist/components/table/hooks/useTableInitialState.d.ts +1 -1
  113. package/dist/components/table/index.d.ts +15 -2
  114. package/dist/components/table/typings.d.ts +10 -5
  115. package/dist/components/tag/index.d.ts +5 -1
  116. package/dist/components/textarea/index.d.ts +7 -2
  117. package/dist/components/textarea/typings.d.ts +0 -1
  118. package/dist/components/timer/index.d.ts +17 -2
  119. package/dist/components/tooltip/index.d.ts +5 -1
  120. package/dist/components/tooltip/typings.d.ts +3 -3
  121. package/dist/components/tree/components/ControllerTreeComponent.d.ts +1 -1
  122. package/dist/components/tree/components/TreeBodyComponent.d.ts +1 -1
  123. package/dist/components/tree/components/TreeComponent.d.ts +2 -1
  124. package/dist/components/tree/components/TreeItemComponent.d.ts +2 -1
  125. package/dist/components/tree/components/VirtualTreeBodyComponent.d.ts +1 -1
  126. package/dist/components/tree/hooks/useTreeController.d.ts +1 -1
  127. package/dist/components/tree/hooks/useTreeInitialState.d.ts +1 -1
  128. package/dist/components/tree/index.d.ts +2 -5
  129. package/dist/components/tree/typings.d.ts +4 -3
  130. package/dist/components/tree/util.d.ts +1 -1
  131. package/dist/components/wizard/WizardModal.d.ts +43 -1
  132. package/dist/components/wizard/WizardSummary.d.ts +1 -2
  133. package/dist/components/wizard/components/StepTitleContent.d.ts +4 -0
  134. package/dist/components/wizard/index.d.ts +43 -1
  135. package/dist/components/wizard/typings.d.ts +2 -0
  136. package/dist/index.d.ts +2 -0
  137. package/dist/index.js +3335 -3014
  138. package/dist/index.js.map +1 -1
  139. package/dist/index.module.js +3451 -3132
  140. package/dist/index.module.js.map +1 -1
  141. package/dist/styles/border.d.ts +1 -1
  142. package/dist/styles/flex.d.ts +1 -1
  143. package/dist/styles/size.d.ts +6 -6
  144. package/dist/styles/typography.d.ts +2 -2
  145. package/dist/utils/style.d.ts +1 -1
  146. package/dist/vendor/reactVirtual.d.ts +57 -0
  147. package/dist/vendor/useIsomorphicLayoutEffect.d.ts +3 -0
  148. package/dist/vendor/useRect.d.ts +4 -0
  149. package/package.json +15 -18
  150. package/src/components/accordion/components/AccordionPanel.tsx +12 -5
  151. package/src/components/accordion/style.ts +0 -1
  152. package/src/components/alert/components/AlertComponent.tsx +10 -15
  153. package/src/components/alert/style.ts +44 -24
  154. package/src/components/alert/typings.ts +3 -3
  155. package/src/components/button/SubmitButton.tsx +17 -8
  156. package/src/components/button/components/ButtonComponent.tsx +16 -18
  157. package/src/components/button/components/DropdownButtonComponent.tsx +4 -1
  158. package/src/components/button/style.ts +18 -20
  159. package/src/components/card/FormBlock.tsx +80 -0
  160. package/src/components/card/FormBlockDisplayer.tsx +7 -0
  161. package/src/components/card/FormCard.tsx +21 -6
  162. package/src/components/card/components/CardComponent.tsx +13 -5
  163. package/src/components/card/components/FormBlockDisplayerComponent.tsx +17 -0
  164. package/src/components/card/components/FormCardDisplayerComponent.tsx +11 -2
  165. package/src/components/card/typings.ts +4 -1
  166. package/src/components/checkbox/FormCheckbox.tsx +26 -26
  167. package/src/components/checkbox/components/CheckboxComponent.tsx +8 -1
  168. package/src/components/checkbox/typings.ts +2 -1
  169. package/src/components/contextmenu/components/ContextMenuComponent.tsx +18 -32
  170. package/src/components/contextmenu/typings.ts +1 -1
  171. package/src/components/dashboard/DashboardService.ts +143 -251
  172. package/src/components/dashboard/components/DashboardBody.tsx +11 -83
  173. package/src/components/dashboard/components/DashboardComponent.tsx +17 -18
  174. package/src/components/dashboard/components/DashboardContainer.tsx +588 -9
  175. package/src/components/dashboard/hoc/dashboardHorizontalPanel.tsx +124 -76
  176. package/src/components/dashboard/hoc/dashboardVerticalPanel.tsx +116 -78
  177. package/src/components/dashboard/hooks/useDashboardController.tsx +11 -0
  178. package/src/components/dashboard/index.tsx +12 -2
  179. package/src/components/dashboard/typings.ts +19 -8
  180. package/src/components/dashboard/utils/dashboardLength.ts +38 -14
  181. package/src/components/datetime/components/CalendarComponent.tsx +44 -15
  182. package/src/components/datetime/components/DatePickerComponent.tsx +18 -12
  183. package/src/components/datetime/components/DateRangePickerComponent.tsx +16 -14
  184. package/src/components/datetime/components/DateTimePickerComponent.tsx +18 -12
  185. package/src/components/datetime/components/DateTimeRangePickerComponent.tsx +16 -14
  186. package/src/components/datetime/components/PickerComponent.tsx +24 -14
  187. package/src/components/datetime/components/TimeComponent.tsx +38 -4
  188. package/src/components/datetime/components/TimePickerComponent.tsx +4 -4
  189. package/src/components/datetime/components/TimeRangeComponent.tsx +31 -9
  190. package/src/components/datetime/components/TimeRangePickerComponent.tsx +4 -4
  191. package/src/components/datetime/components/TimeSelectorComponent.tsx +37 -8
  192. package/src/components/datetime/components/TimeSelectorPartComponent.tsx +8 -3
  193. package/src/components/datetime/hooks/useDateRangeAdapter.ts +5 -5
  194. package/src/components/datetime/hooks/useQuickRanges.ts +7 -9
  195. package/src/components/datetime/hooks/useTimestampRangeAdapter.ts +9 -9
  196. package/src/components/datetime/style.ts +39 -9
  197. package/src/components/datetime/typings.ts +3 -3
  198. package/src/components/datetime/util.ts +63 -34
  199. package/src/components/dropdown/components/DropdownComponent.tsx +81 -81
  200. package/src/components/dropdown/hooks/useDropdown.tsx +7 -9
  201. package/src/components/dropdown/typings.ts +5 -3
  202. package/src/components/field/hoc/defaultFIeldDisplayer.tsx +9 -3
  203. package/src/components/icon/CloseIcon.tsx +7 -1
  204. package/src/components/icon/DebugIcon.tsx +7 -1
  205. package/src/components/icon/ErrorIcon.tsx +7 -1
  206. package/src/components/icon/FileIcon.tsx +7 -1
  207. package/src/components/icon/FolderIcon.tsx +7 -1
  208. package/src/components/icon/HelpIcon.tsx +8 -5
  209. package/src/components/icon/HideIcon.tsx +7 -1
  210. package/src/components/icon/MenuIcon.tsx +7 -1
  211. package/src/components/icon/RefreshIcon.tsx +7 -1
  212. package/src/components/icon/RemoveIcon.tsx +7 -1
  213. package/src/components/icon/ShowIcon.tsx +7 -1
  214. package/src/components/icon/SuccessIcon.tsx +7 -1
  215. package/src/components/icon/TogglerIcon.tsx +8 -2
  216. package/src/components/icon/WarningIcon.tsx +7 -1
  217. package/src/components/icon/typings.ts +2 -2
  218. package/src/components/icon/util.ts +1 -1
  219. package/src/components/input/components/InputComponent.tsx +11 -3
  220. package/src/components/input/typings.ts +2 -2
  221. package/src/components/list/components/CollectionListComponent.tsx +3 -1
  222. package/src/components/list/components/ListBodyComponent.tsx +2 -2
  223. package/src/components/list/components/ListItemComponent.tsx +3 -1
  224. package/src/components/list/components/LoadingItem.tsx +2 -2
  225. package/src/components/list/components/VirtualListComponent.tsx +1 -1
  226. package/src/components/list/hooks/useListService.ts +1 -1
  227. package/src/components/list/hooks/useListView.tsx +1 -3
  228. package/src/components/list/typings.ts +3 -2
  229. package/src/components/modal/components/ModalComponent.tsx +15 -5
  230. package/src/components/notifications/components/NotificationsComponent.tsx +39 -23
  231. package/src/components/notifications/style.ts +1 -1
  232. package/src/components/password/components/PasswordComponent.tsx +0 -1
  233. package/src/components/password/style.ts +11 -11
  234. package/src/components/properties/components/PropertiesComponent.tsx +10 -2
  235. package/src/components/properties/components/Property.tsx +1 -1
  236. package/src/components/resizer/ResizerService.ts +1 -1
  237. package/src/components/resizer/typings.ts +1 -1
  238. package/src/components/select/AutoComplete.tsx +0 -1
  239. package/src/components/select/FormSelect.tsx +15 -15
  240. package/src/components/select/SelectService.ts +0 -2
  241. package/src/components/select/components/ArrayTreeSelectComponent.tsx +2 -2
  242. package/src/components/select/components/ControlledSelectComponent.tsx +15 -6
  243. package/src/components/select/components/ControlledTreeSelectComponent.tsx +11 -7
  244. package/src/components/select/components/SelectInputComponent.tsx +9 -4
  245. package/src/components/select/components/SelectOptionComponent.tsx +2 -2
  246. package/src/components/select/components/SelectTokenComponent.tsx +13 -11
  247. package/src/components/select/components/SelectTokensComponent.tsx +32 -16
  248. package/src/components/select/hooks/useSelectController.ts +2 -5
  249. package/src/components/select/typings.ts +2 -1
  250. package/src/components/select/util.ts +2 -2
  251. package/src/components/slider/style.ts +1 -2
  252. package/src/components/slider/typings.ts +1 -1
  253. package/src/components/tab/components/Tab.tsx +19 -3
  254. package/src/components/tab/components/TabsContainer.tsx +5 -3
  255. package/src/components/tab/style.ts +0 -3
  256. package/src/components/tab/typings.ts +1 -0
  257. package/src/components/table/TableService.ts +8 -8
  258. package/src/components/table/columns/enumColumn.tsx +2 -3
  259. package/src/components/table/columns/selectColumn.ts +4 -4
  260. package/src/components/table/components/ArrayTableComponent.tsx +3 -3
  261. package/src/components/table/components/FormTableComponent.tsx +41 -12
  262. package/src/components/table/components/TableBodyCellComponent.tsx +6 -2
  263. package/src/components/table/components/TableBodyComponent.tsx +3 -3
  264. package/src/components/table/components/TableBodyRowComponent.tsx +9 -3
  265. package/src/components/table/components/TableLoadingRowComponent.tsx +2 -2
  266. package/src/components/table/components/TableToolbarTopComponent.tsx +2 -8
  267. package/src/components/table/components/cells/DefaultCellComponent.tsx +1 -1
  268. package/src/components/table/components/filters/TableFilterOperatorComponent.tsx +1 -1
  269. package/src/components/table/components/hoc/linkCellComponent.tsx +1 -4
  270. package/src/components/table/displayers/DefaultCellDisplayer.tsx +14 -3
  271. package/src/components/table/displayers/FormTableValueDisplayer.tsx +2 -2
  272. package/src/components/table/seralizers/defaultCellSerializer.tsx +1 -1
  273. package/src/components/table/typings.ts +18 -8
  274. package/src/components/textarea/components/TextareaComponent.tsx +11 -3
  275. package/src/components/tooltip/components/TooltipComponent.tsx +46 -31
  276. package/src/components/tooltip/style.ts +3 -2
  277. package/src/components/tooltip/typings.ts +3 -3
  278. package/src/components/tree/TreeService.ts +10 -0
  279. package/src/components/tree/components/ControllerTreeComponent.tsx +3 -0
  280. package/src/components/tree/components/TreeBodyComponent.tsx +2 -0
  281. package/src/components/tree/components/TreeListComponent.tsx +7 -2
  282. package/src/components/tree/components/VirtualTreeBodyComponent.tsx +2 -0
  283. package/src/components/tree/components/VirtualTreeListComponent.tsx +9 -2
  284. package/src/components/tree/typings.ts +10 -3
  285. package/src/components/wizard/WizardService.ts +1 -1
  286. package/src/components/wizard/components/FormStep.tsx +16 -3
  287. package/src/components/wizard/components/Step.tsx +22 -6
  288. package/src/components/wizard/components/StepTitle.tsx +4 -5
  289. package/src/components/wizard/components/StepTitleContent.tsx +15 -0
  290. package/src/components/wizard/components/WizardContainer.tsx +8 -6
  291. package/src/components/wizard/components/WizardSummaryComponent.tsx +11 -2
  292. package/src/components/wizard/style.ts +22 -14
  293. package/src/components/wizard/typings.ts +2 -1
  294. package/src/index.ts +2 -0
  295. package/src/styles/background.ts +1 -3
  296. package/src/styles/border.ts +5 -4
  297. package/src/styles/display.ts +7 -7
  298. package/src/styles/size.ts +1 -3
  299. package/src/styles/spacing.ts +4 -1
  300. package/src/styles/typings.ts +7 -8
  301. package/src/styles/typography.ts +2 -3
  302. package/src/utils/date.ts +7 -5
  303. package/src/utils/formatter.ts +4 -6
  304. package/src/utils/misc.ts +6 -3
  305. package/src/utils/style.ts +15 -15
  306. package/src/vendor/reactVirtual.d.ts +2 -6
@@ -5,17 +5,17 @@ declare class SelectService<T = any, I extends SelectItem<T> = SelectItem<T>, S
5
5
  protected lastCheckQuery: Query | undefined;
6
6
  get defaultValue(): T | T[] | null | undefined;
7
7
  get defaultValueLoading(): boolean | undefined;
8
- check(): Generator<void | import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<Generator<I[] | Generator<void | import("redux-saga/effects").CancelEffect | import("redux-saga/effects").ForkEffect<Generator<void | import("redux-saga/effects").CallEffect<true>, void, unknown>> | CollectionFetcherResult<T> | Promise<CollectionFetcherResult<T> | undefined>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>>> | import("redux-saga/effects").AllEffect<Generator<I[] | Generator<void | import("redux-saga/effects").CancelEffect | import("redux-saga/effects").ForkEffect<Generator<void | import("redux-saga/effects").CallEffect<true>, void, unknown>> | CollectionFetcherResult<T> | Promise<CollectionFetcherResult<T> | undefined>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>> | import("redux-saga/effects").CallEffect<void>, void, (I | undefined)[]>;
8
+ check(): Generator<void | import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<Generator<I[] | Generator<void | import("redux-saga/effects").ForkEffect<Generator<void | import("redux-saga/effects").CallEffect<true>, void, unknown>> | import("redux-saga/effects").CancelEffect | CollectionFetcherResult<T> | Promise<CollectionFetcherResult<T> | undefined>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & (CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined))>, I | undefined, I[] & CollectionFetcherResult<T>>>> | import("redux-saga/effects").AllEffect<Generator<I[] | Generator<void | import("redux-saga/effects").ForkEffect<Generator<void | import("redux-saga/effects").CallEffect<true>, void, unknown>> | import("redux-saga/effects").CancelEffect | CollectionFetcherResult<T> | Promise<CollectionFetcherResult<T> | undefined>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & (CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined))>, I | undefined, I[] & CollectionFetcherResult<T>>> | import("redux-saga/effects").CallEffect<void>, void, (I | undefined)[]>;
9
9
  get status(): CollectionStatus;
10
10
  setData(data: T[], query?: Query): void;
11
- setDefaultValue(value: T | T[] | null | undefined): Generator<void | Generator<void | import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<Generator<I[] | Generator<void | import("redux-saga/effects").CancelEffect | import("redux-saga/effects").ForkEffect<Generator<void | import("redux-saga/effects").CallEffect<true>, void, unknown>> | CollectionFetcherResult<T> | Promise<CollectionFetcherResult<T> | undefined>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>>> | import("redux-saga/effects").AllEffect<Generator<I[] | Generator<void | import("redux-saga/effects").CancelEffect | import("redux-saga/effects").ForkEffect<Generator<void | import("redux-saga/effects").CallEffect<true>, void, unknown>> | CollectionFetcherResult<T> | Promise<CollectionFetcherResult<T> | undefined>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>> | import("redux-saga/effects").CallEffect<void>, void, (I | undefined)[]>, void, unknown>;
11
+ setDefaultValue(value: T | T[] | null | undefined): Generator<void | Generator<void | import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<Generator<I[] | Generator<void | import("redux-saga/effects").ForkEffect<Generator<void | import("redux-saga/effects").CallEffect<true>, void, unknown>> | import("redux-saga/effects").CancelEffect | CollectionFetcherResult<T> | Promise<CollectionFetcherResult<T> | undefined>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & (CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined))>, I | undefined, I[] & CollectionFetcherResult<T>>>> | import("redux-saga/effects").AllEffect<Generator<I[] | Generator<void | import("redux-saga/effects").ForkEffect<Generator<void | import("redux-saga/effects").CallEffect<true>, void, unknown>> | import("redux-saga/effects").CancelEffect | CollectionFetcherResult<T> | Promise<CollectionFetcherResult<T> | undefined>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & (CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined))>, I | undefined, I[] & CollectionFetcherResult<T>>> | import("redux-saga/effects").CallEffect<void>, void, (I | undefined)[]>, void, unknown>;
12
12
  setDefaultValueLoading(loading: boolean): void;
13
13
  setInputValue(value: string | null): Generator<void | T | Promise<T | null> | null, void, T>;
14
14
  setItemWidth(_item: I, value: number): void;
15
15
  setValue(value: null | T | T[]): void;
16
16
  setUrl(url: string, query?: Query): void;
17
17
  _buildItem(data: T | null | undefined, adaptee: unknown, context?: AnonymousObject): I;
18
- _filterItem(item: I | undefined, query: Query, valid: boolean): Generator<I[] | Generator<void | import("redux-saga/effects").CancelEffect | import("redux-saga/effects").ForkEffect<Generator<void | import("redux-saga/effects").CallEffect<true>, void, unknown>> | CollectionFetcherResult<T> | Promise<CollectionFetcherResult<T> | undefined>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>;
18
+ _filterItem(item: I | undefined, query: Query, valid: boolean): Generator<I[] | Generator<void | import("redux-saga/effects").ForkEffect<Generator<void | import("redux-saga/effects").CallEffect<true>, void, unknown>> | import("redux-saga/effects").CancelEffect | CollectionFetcherResult<T> | Promise<CollectionFetcherResult<T> | undefined>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & (CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined))>, I | undefined, I[] & CollectionFetcherResult<T>>;
19
19
  _compareItem(a: I | undefined, b: I | undefined): boolean;
20
20
  _doSearch(search: Primitive | undefined): boolean;
21
21
  _setDefaultValue(value: T | T[] | null | undefined): void;
@@ -1,6 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- <T = any, I extends import("./typings").TreeSelectItem<T> = import("./typings").TreeSelectItem<T>, S extends import("./typings").TreeSelectState<T, I> = import("./typings").TreeSelectState<T, I>, C extends import("./typings").TreeSelectController<T, I, S> = import("./typings").TreeSelectController<T, I, S>>(props: import("./typings").TreeSelectProps<T, I, S, C>): import("react").JSX.Element;
4
- displayName: string;
5
- };
1
+ import TreeSelectComponent from './components/TreeSelectComponent';
2
+ declare const _default: typeof TreeSelectComponent;
6
3
  export default _default;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { ArrayTreeSelectProps, TreeSelectItem } from '../typings';
3
- declare const ArrayTreeSelectComponent: <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>>(props: ArrayTreeSelectProps<T, I>) => React.JSX.Element;
2
+ declare const ArrayTreeSelectComponent: <T extends any = any, I extends TreeSelectItem<T> = TreeSelectItem<T>>(props: ArrayTreeSelectProps<T, I>) => import("react").JSX.Element;
4
3
  export default ArrayTreeSelectComponent;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { ControllerSelectProps, SelectController, SelectItem, SelectState } from '../typings';
3
- declare const ControlledSelectComponent: <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>({ attachDropdownToBody, className, placeholder, controller, InputComponent, IconComponent, OptionContentComponent, OptionComponent, OptionLoadingComponent, MultiOptionsComponent, NotFoundComponent, autoFocus, value, onChange, onBlur: forwardBlur, onFocus: forwardFocus, height, multiple, status, size, nullable, minChars, openOnFocus, searchable, dropdownWidthModifier, preload, increment, animationMs, disabled, defaultValue, defaultValueLoading, required, sameWidth, overscan, clickable, ListComponent, autoCompleteSearch, autoCompleteAdapter, mode, maxDisplayTokens, validateValue, }: ControllerSelectProps<T, I, S, C>) => React.JSX.Element;
3
+ declare const ControlledSelectComponent: <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>({ attachDropdownToBody, className, placeholder, controller, InputComponent, IconComponent, OptionContentComponent, OptionComponent, OptionLoadingComponent, MultiOptionsComponent, NotFoundComponent, autoFocus, value, onChange, onBlur: forwardBlur, onFocus: forwardFocus, height, multiple, status, size, nullable, minChars, openOnFocus, searchable, dropdownWidthModifier, preload, increment, animationMs, disabled, defaultValue, defaultValueLoading, required, sameWidth, overscan, clickable, ListComponent, autoCompleteSearch, autoCompleteAdapter, mode, maxDisplayTokens, validateValue, open: externalOpen, }: ControllerSelectProps<T, I, S, C>) => React.JSX.Element;
4
4
  export default ControlledSelectComponent;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { SelectController, SelectItem, SelectProps, SelectState } from '../typings';
3
- declare const _default: {
3
+ declare const SelectComponent: {
4
4
  <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>(props: SelectProps<T, I, S, C>): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
+ declare const _default: typeof SelectComponent;
7
8
  export default _default;
@@ -3,8 +3,9 @@ import { ListItemProps } from '../../list/typings';
3
3
  import { SelectItem } from '../typings';
4
4
  export declare const SelectOptionContent: <T, I extends SelectItem<T> = SelectItem<T>>({ item }: ListItemProps<T, I>) => React.JSX.Element;
5
5
  export declare const SelectOptionGroup: <T, I extends SelectItem<T> = SelectItem<T>>({ item }: ListItemProps<T, I>) => React.JSX.Element;
6
- declare const _default: {
6
+ declare const SelectOptionComponent: {
7
7
  <T, I extends SelectItem<T> = SelectItem<T>>(props: ListItemProps<T, I>): React.JSX.Element | null;
8
8
  displayName: string;
9
9
  };
10
+ declare const _default: typeof SelectOptionComponent;
10
11
  export default _default;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { SelectItem, SelectTokenProps } from '../typings';
3
- declare const _default: {
3
+ declare const SelectTokenComponent: {
4
4
  <T, I extends SelectItem<T> = SelectItem<T>>({ token, onRemove, index, }: SelectTokenProps<T, I>): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
+ declare const _default: typeof SelectTokenComponent;
7
8
  export default _default;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { SelectItem, SelectTokensProps } from '../typings';
3
- declare const _default: {
3
+ declare const SelectTokensComponent: {
4
4
  <T, I extends SelectItem<T> = SelectItem<T>>({ tokens, onRemove, maxDisplayTokens, }: SelectTokensProps<T, I>): React.JSX.Element | null;
5
5
  displayName: string;
6
6
  };
7
+ declare const _default: typeof SelectTokensComponent;
7
8
  export default _default;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { TreeSelectController, TreeSelectItem, TreeSelectProps, TreeSelectState } from '../typings';
3
- declare const _default: {
3
+ declare const TreeSelectComponent: {
4
4
  <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>, C extends TreeSelectController<T, I, S> = TreeSelectController<T, I, S>>(props: TreeSelectProps<T, I, S, C>): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
+ declare const _default: typeof TreeSelectComponent;
7
8
  export default _default;
File without changes
@@ -1,5 +1,5 @@
1
1
  import { CollectionProxy } from 'onekijs-framework';
2
2
  import SelectService from '../SelectService';
3
3
  import { SelectItem, SelectState, UseSelectOptions } from '../typings';
4
- declare const useSelectController: <T = any, I extends SelectItem<T> = SelectItem<T>>(dataSource: string | T[] | [T, string][] | undefined, options?: UseSelectOptions<T, I>) => CollectionProxy<T, I, SelectState<T, I>, SelectService<T, I, SelectState<T, I>>>;
4
+ declare const useSelectController: <T = any, I extends SelectItem<T> = SelectItem<T>>(dataSource: T[] | [T, string][] | string | undefined, options?: UseSelectOptions<T, I>) => CollectionProxy<T, I, SelectState<T, I>, SelectService<T, I, SelectState<T, I>>>;
5
5
  export default useSelectController;
@@ -2,5 +2,5 @@ import { CollectionProxy } from 'onekijs-framework';
2
2
  import { UseTreeOptions } from '../../tree/typings';
3
3
  import TreeSelectService from '../TreeSelectService';
4
4
  import { TreeSelectItem, TreeSelectState } from '../typings';
5
- declare const useTreeSelectController: <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>>(dataSource: string | T[] | undefined, options?: UseTreeOptions<T, I>) => CollectionProxy<T, I, TreeSelectState<T, I>, TreeSelectService<T, I, TreeSelectState<T, I>>>;
5
+ declare const useTreeSelectController: <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>>(dataSource: T[] | string | undefined, options?: UseTreeOptions<T, I>) => CollectionProxy<T, I, TreeSelectState<T, I>, TreeSelectService<T, I, TreeSelectState<T, I>>>;
6
6
  export default useTreeSelectController;
@@ -1,6 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- <T = any, I extends import("./typings").SelectItem<T> = import("./typings").SelectItem<T>, S extends import("./typings").SelectState<T, I> = import("./typings").SelectState<T, I>, C extends import("./typings").SelectController<T, I, S> = import("./typings").SelectController<T, I, S>>(props: import("./typings").SelectProps<T, I, S, C>): import("react").JSX.Element;
4
- displayName: string;
5
- };
1
+ import SelectComponent from './components/SelectComponent';
2
+ declare const _default: typeof SelectComponent;
6
3
  export default _default;
@@ -114,6 +114,7 @@ export type SelectConfig<T = any, I extends SelectItem<T> = SelectItem<T>> = Omi
114
114
  clickable?: boolean;
115
115
  searchable?: boolean;
116
116
  dropdownWidthModifier?: DropdownWidthModifier;
117
+ open?: boolean;
117
118
  OptionComponent?: FC<SelectOptionProps<T, I>>;
118
119
  OptionGroupComponent?: FC<SelectOptionProps<T, I>>;
119
120
  OptionContentComponent?: FC<SelectOptionProps<T, I>>;
@@ -133,7 +134,7 @@ export type SelectConfig<T = any, I extends SelectItem<T> = SelectItem<T>> = Omi
133
134
  mode?: 'default' | 'autocomplete';
134
135
  };
135
136
  export type SelectListComponentProps<T = any, I extends SelectItem<T> = SelectItem<T>> = CollectionListProps<T, I> & {
136
- optionsRef: React.RefObject<HTMLDivElement>;
137
+ optionsRef: React.RefObject<HTMLDivElement | null>;
137
138
  };
138
139
  export type SelectState<T = any, I extends SelectItem<T> = SelectItem<T>> = ListState<T, I> & {
139
140
  invalidItems?: I[];
@@ -2,7 +2,7 @@ import { CollectionProxy, Query } from 'onekijs-framework';
2
2
  import { SelectController, SelectItem, SelectState } from './typings';
3
3
  export declare const defaultAutocompleteAdapter: <T>(value: string | null) => T | null;
4
4
  export declare const numberAutocompleteAdapter: <T>(value: string | null) => T | null;
5
- export declare const findSelectItem: <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>(controller: C | CollectionProxy<T, I, S, C>, pattern: string) => I | undefined;
6
- export declare const findSelectItemIndex: <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>(controller: C | CollectionProxy<T, I, S, C>, item?: I | undefined) => number;
5
+ export declare const findSelectItem: <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>(controller: CollectionProxy<T, I, S, C> | C, pattern: string) => I | undefined;
6
+ export declare const findSelectItemIndex: <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>(controller: CollectionProxy<T, I, S, C> | C, item?: I) => number;
7
7
  export declare const shouldCheckSelect: (currentQuery: Query, lastCheckQuery?: Query) => boolean;
8
8
  export declare const getGroupText: (item: SelectItem<unknown> | undefined) => string | undefined;
@@ -1,2 +1,6 @@
1
- declare const Resizer: import("styled-components").StyledComponent<import("onekijs-framework").FCC<import("./typings").SliderProps>, import("styled-components").DefaultTheme, {}, never>;
1
+ declare const Resizer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("./typings").SliderProps & {
2
+ children?: import("react").ReactNode | undefined;
3
+ }, never> & Partial<Pick<import("./typings").SliderProps & {
4
+ children?: import("react").ReactNode | undefined;
5
+ }, never>>> & string & Omit<import("onekijs-framework").FCC<import("./typings").SliderProps>, keyof import("react").Component<any, {}, any>>;
2
6
  export default Resizer;
@@ -1,2 +1,6 @@
1
- declare const Tabs: import("styled-components").StyledComponent<import("onekijs-framework").FCC<import("./typings").TabsProps>, import("styled-components").DefaultTheme, {}, never>;
1
+ declare const Tabs: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("./typings").TabsProps & {
2
+ children?: import("react").ReactNode | undefined;
3
+ }, never> & Partial<Pick<import("./typings").TabsProps & {
4
+ children?: import("react").ReactNode | undefined;
5
+ }, never>>> & string & Omit<import("onekijs-framework").FCC<import("./typings").TabsProps>, keyof import("react").Component<any, {}, any>>;
2
6
  export default Tabs;
@@ -40,6 +40,7 @@ export type TabsProps = {
40
40
  controller?: TabsService;
41
41
  onAdd?: AnyFunction;
42
42
  layout?: 'horizontal' | 'vertical';
43
+ onActivate?: (tab: TabState) => void;
43
44
  };
44
45
  export type ControlledTabsProps = TabsProps & {
45
46
  controller: TabsService;
@@ -3,14 +3,14 @@ import React from 'react';
3
3
  import { TableColumn, TableColumnWidth, TableConfig, TableController, TableItem, TableSerializerFormat, TableState } from './typings';
4
4
  export declare const parseColumnWidth: (width?: string | number) => TableColumnWidth;
5
5
  declare class TableService<T = any, I extends TableItem<T> = TableItem<T>, S extends TableState<T, I> = TableState<T, I>> extends CollectionService<T, I, S> implements TableController<T, I> {
6
- protected cells: AnonymousObject<AnonymousObject<React.RefObject<HTMLDivElement>>>;
7
- protected tableRef: React.RefObject<HTMLDivElement> | null;
8
- protected contentRef: React.RefObject<HTMLDivElement> | null;
6
+ protected cells: AnonymousObject<AnonymousObject<React.RefObject<HTMLDivElement | null>>>;
7
+ protected tableRef: React.RefObject<HTMLDivElement | null> | null;
8
+ protected contentRef: React.RefObject<HTMLDivElement | null> | null;
9
9
  config: TableConfig<T, I> | undefined;
10
10
  adapt(data: T | null | undefined): I;
11
11
  addColumn(column: TableColumn<T, I>, position?: number): void;
12
12
  get columns(): TableColumn<T, I>[];
13
- initCell(rowNumber: number | 'header-title' | 'header-filter' | 'footer', colId: string, ref: React.RefObject<HTMLDivElement>): void;
13
+ initCell(rowNumber: number | 'header-title' | 'header-filter' | 'footer', colId: string, ref: React.RefObject<HTMLDivElement | null>): void;
14
14
  removeColumn(id: string): void;
15
15
  resetWidth(): void;
16
16
  serialize(data: T[], format: TableSerializerFormat): string;
@@ -1,3 +1,3 @@
1
1
  import { EnumColumnOptions, TableColumn, TableItem } from '../typings';
2
- declare const enumColumn: <T extends unknown = any, I extends TableItem<T> = TableItem<T>>(id: string, options: EnumColumnOptions<T, I>) => TableColumn<T, I>;
2
+ declare const enumColumn: <T extends any = any, I extends TableItem<T> = TableItem<T>>(id: string, options: EnumColumnOptions<T, I>) => TableColumn<T, I>;
3
3
  export default enumColumn;
@@ -1,3 +1,3 @@
1
1
  import { InputColumn, InputColumnOptions, TableItem } from '../typings';
2
- declare const inputColumn: <T extends unknown = any, I extends TableItem<T> = TableItem<T>>(id: string, options: InputColumnOptions<T, I>) => InputColumn<T, I>;
2
+ declare const inputColumn: <T extends any = any, I extends TableItem<T> = TableItem<T>>(id: string, options: InputColumnOptions<T, I>) => InputColumn<T, I>;
3
3
  export default inputColumn;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const _default: import("styled-components").StyledComponent<React.FC<{}>, import("styled-components").DefaultTheme, {}, never>;
2
+ declare const _default: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<{}, never> & Partial<Pick<{}, never>>> & string & Omit<React.FC<{}>, keyof React.Component<any, {}, any>>;
3
3
  export default _default;
@@ -1,4 +1,24 @@
1
1
  import React from 'react';
2
2
  import { TableBodyRowProps } from '../typings';
3
- declare const _default: import("styled-components").StyledComponent<React.FC<TableBodyRowProps>, import("styled-components").DefaultTheme, {}, never>;
3
+ declare const _default: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("../../..").ListItemProps<any, import("../typings").TableItem<any>>, "CellComponent"> & {
4
+ className?: string;
5
+ CellComponent?: React.FC<Omit<import("../typings").TableBodyCellProps<any, import("../typings").TableItem<any>>, "data">> | undefined;
6
+ columns: import("../typings").TableColumn<any, import("../typings").TableItem<any>>[];
7
+ onExpand?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
8
+ onExpanding?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
9
+ onExpanded?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
10
+ onCollapse?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
11
+ onCollapsing?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
12
+ onCollapsed?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
13
+ }, never> & Partial<Pick<Omit<import("../../..").ListItemProps<any, import("../typings").TableItem<any>>, "CellComponent"> & {
14
+ className?: string;
15
+ CellComponent?: React.FC<Omit<import("../typings").TableBodyCellProps<any, import("../typings").TableItem<any>>, "data">> | undefined;
16
+ columns: import("../typings").TableColumn<any, import("../typings").TableItem<any>>[];
17
+ onExpand?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
18
+ onExpanding?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
19
+ onExpanded?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
20
+ onCollapse?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
21
+ onCollapsing?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
22
+ onCollapsed?: ((item: import("../typings").TableItem<any> | undefined, index: number) => void) | undefined;
23
+ }, never>>> & string & Omit<React.FC<TableBodyRowProps>, keyof React.Component<any, {}, any>>;
4
24
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { TableValueDisplayerProps } from '../typings';
3
- declare const _default: import("styled-components").StyledComponent<React.FC<TableValueDisplayerProps>, import("styled-components").DefaultTheme, {}, never>;
3
+ declare const _default: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<TableValueDisplayerProps, never> & Partial<Pick<TableValueDisplayerProps, never>>> & string & Omit<React.FC<TableValueDisplayerProps>, keyof React.Component<any, {}, any>>;
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { CollectionProxy } from 'onekijs-framework';
2
2
  import TableService from '../TableService';
3
3
  import { TableColumn, TableItem, TableState, UseTableOptions } from '../typings';
4
- declare const useTableController: <T>(dataSource: string | T[] | undefined, initialColumns: TableColumn<T, TableItem<T>>[] | undefined, options?: UseTableOptions<T, TableItem<T>>) => CollectionProxy<T, TableItem<T>, TableState<T, TableItem<T>>, TableService<T, TableItem<T>, TableState<T, TableItem<T>>>>;
4
+ declare const useTableController: <T>(dataSource: T[] | string | undefined, initialColumns: TableColumn<T, TableItem<T>>[] | undefined, options?: UseTableOptions<T, TableItem<T>>) => CollectionProxy<T, TableItem<T>, TableState<T, TableItem<T>>, TableService<T, TableItem<T>, TableState<T, TableItem<T>>>>;
5
5
  export default useTableController;
@@ -1,3 +1,3 @@
1
1
  import { TableColumn, TableItem, TableState, UseTableOptions } from '../typings';
2
- declare const useTableInitialState: <T, I extends TableItem<T>>(dataSource: string | T[] | undefined, initialColumns: TableColumn<T, I>[] | undefined, options: UseTableOptions<T, I>) => TableState<T, I>;
2
+ declare const useTableInitialState: <T, I extends TableItem<T>>(dataSource: T[] | string | undefined, initialColumns: TableColumn<T, I>[] | undefined, options: UseTableOptions<T, I>) => TableState<T, I>;
3
3
  export default useTableInitialState;
@@ -1,3 +1,16 @@
1
- /// <reference types="react" />
2
- declare const Table: import("styled-components").StyledComponent<import("react").FC<import("./typings").TableProps>, import("styled-components").DefaultTheme, {}, never>;
1
+ declare const Table: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("./typings").TableConfig<any, import("./typings").TableItem<any>> & {
2
+ adapter?: import("./typings").TableItemAdapter<any> | undefined;
3
+ controller?: import("onekijs-framework").CollectionProxy<any, import("./typings").TableItem<any>, import("./typings").TableState<any, import("./typings").TableItem<any>>, import("./typings").TableController<any, import("./typings").TableItem<any>, import("./typings").TableState<any, import("./typings").TableItem<any>>>> | undefined;
4
+ columns?: import("./typings").TableColumn<any, import("./typings").TableItem<any>>[] | undefined;
5
+ dataSource?: string | any[] | (() => any[] | Promise<any[]>) | undefined;
6
+ fetchOnce?: boolean;
7
+ selected?: any[] | undefined;
8
+ }, never> & Partial<Pick<import("./typings").TableConfig<any, import("./typings").TableItem<any>> & {
9
+ adapter?: import("./typings").TableItemAdapter<any> | undefined;
10
+ controller?: import("onekijs-framework").CollectionProxy<any, import("./typings").TableItem<any>, import("./typings").TableState<any, import("./typings").TableItem<any>>, import("./typings").TableController<any, import("./typings").TableItem<any>, import("./typings").TableState<any, import("./typings").TableItem<any>>>> | undefined;
11
+ columns?: import("./typings").TableColumn<any, import("./typings").TableItem<any>>[] | undefined;
12
+ dataSource?: string | any[] | (() => any[] | Promise<any[]>) | undefined;
13
+ fetchOnce?: boolean;
14
+ selected?: any[] | undefined;
15
+ }, never>>> & string & Omit<import("react").FC<import("./typings").TableProps>, keyof import("react").Component<any, {}, any>>;
3
16
  export default Table;
@@ -1,4 +1,4 @@
1
- import { Collection, CollectionBy, CollectionProxy, FormDisplayerProps, FormFieldProps, Item, ItemAdaptee, Primitive, QueryFilterCriteriaOperator, QueryFilterOrCriteria, QuerySortBy, UseCollectionOptions, ValidationStatus } from 'onekijs-framework';
1
+ import { Collection, CollectionBy, CollectionProxy, FormDisplayerProps, FormFieldProps, FormService, Item, ItemAdaptee, Primitive, QueryFilterCriteriaOperator, QueryFilterOrCriteria, QuerySortBy, UseCollectionOptions, ValidationStatus } from 'onekijs-framework';
2
2
  import React, { ComponentType, FC, PropsWithChildren, ReactNode } from 'react';
3
3
  import { StylableProps, TshirtSize } from '../../styles/typings';
4
4
  import { CheckboxProps } from '../checkbox/typings';
@@ -27,11 +27,15 @@ export type FormTableProps<T = any, I extends TableItem<T> = TableItem<T>, S ext
27
27
  addLabel?: string;
28
28
  format?: 'id' | 'object' | 'auto';
29
29
  defaultValue?: T[];
30
+ DeleteRowComponent?: React.FC<TableBodyCellProps<T, I>>;
30
31
  FieldComponent?: React.FC<FormTableProps<T, I, S, C>>;
31
32
  value?: T[];
32
- onFocus?: () => void;
33
+ onAdd?: (initialValue: Partial<T> | undefined) => void;
33
34
  onBlur?: () => void;
34
35
  onChange?: (value: T[]) => void;
36
+ onFocus?: () => void;
37
+ onRemove?: (form: FormService, removedValue: T, index: number) => void;
38
+ SelectRowComponent?: React.FC<TableBodyCellProps<T, I>>;
35
39
  status?: ValidationStatus;
36
40
  size?: TshirtSize;
37
41
  showAddButton?: boolean;
@@ -41,6 +45,7 @@ export type FormTableContext<T = any> = {
41
45
  tableName: string;
42
46
  onSelect: (item: TableItem<T>, selected: boolean) => void;
43
47
  onAdd: (initialValue: Partial<T> | undefined) => void;
48
+ onRemove?: (form: FormService, removedValue: T, index: number) => void;
44
49
  addLabel: string;
45
50
  required?: boolean;
46
51
  maxLength?: number;
@@ -78,8 +83,8 @@ export type TableBodyProps<T = any, I extends TableItem<T> = TableItem<T>> = {
78
83
  className?: string;
79
84
  columns: TableColumn<T, I>[];
80
85
  items: (I | undefined)[];
81
- contentRef: React.RefObject<HTMLDivElement>;
82
- tableRef: React.RefObject<HTMLDivElement>;
86
+ contentRef: React.RefObject<HTMLDivElement | null>;
87
+ tableRef: React.RefObject<HTMLDivElement | null>;
83
88
  };
84
89
  export type TableBodyRowProps<T = any, I extends TableItem<T> = TableItem<T>> = Omit<ListItemProps<T, I>, 'CellComponent'> & {
85
90
  className?: string;
@@ -146,7 +151,7 @@ export type TableController<T = any, I extends TableItem<T> = TableItem<T>, S ex
146
151
  addSelected<B extends keyof CollectionBy<T, I>>(by: B, target: CollectionBy<T, I>[B] | CollectionBy<T, I>[B][]): I[];
147
152
  columns: TableColumn<T, I>[];
148
153
  config?: TableConfig<T, I>;
149
- initCell(rowIndex: number | 'header-title' | 'header-filter' | 'footer', colId: string, ref: React.RefObject<HTMLDivElement>): void;
154
+ initCell(rowIndex: number | 'header-title' | 'header-filter' | 'footer', colId: string, ref: React.RefObject<HTMLDivElement | null>): void;
150
155
  removeColumn(id: string): void;
151
156
  removeSelected<B extends keyof CollectionBy<T, I>>(by: B, target: CollectionBy<T, I>[B] | CollectionBy<T, I>[B][]): I[];
152
157
  serialize: (data: T[], format: TableSerializerFormat) => string;
@@ -1,2 +1,6 @@
1
- declare const Tag: import("styled-components").StyledComponent<import("onekijs-framework").FCC<import("./typings").TagProps>, import("styled-components").DefaultTheme, {}, never>;
1
+ declare const Tag: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("./typings").TagProps & {
2
+ children?: import("react").ReactNode | undefined;
3
+ }, never> & Partial<Pick<import("./typings").TagProps & {
4
+ children?: import("react").ReactNode | undefined;
5
+ }, never>>> & string & Omit<import("onekijs-framework").FCC<import("./typings").TagProps>, keyof import("react").Component<any, {}, any>>;
2
6
  export default Tag;
@@ -1,3 +1,8 @@
1
- /// <reference types="react" />
2
- declare const Textarea: import("styled-components").StyledComponent<import("react").FC<import("./typings").TextareaProps>, import("styled-components").DefaultTheme, {}, never>;
1
+ declare const Textarea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & {
2
+ status?: import("onekijs-framework").ValidationStatus;
3
+ size?: import("../..").TshirtSize;
4
+ }, never> & Partial<Pick<Omit<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & {
5
+ status?: import("onekijs-framework").ValidationStatus;
6
+ size?: import("../..").TshirtSize;
7
+ }, never>>> & string & Omit<import("react").FC<import("./typings").TextareaProps>, keyof import("react").Component<any, {}, any>>;
3
8
  export default Textarea;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormFieldProps, ValidationStatus } from 'onekijs-framework';
3
2
  import { TshirtSize } from '../../styles/typings';
4
3
  import { FieldLayoutProps } from '../field/typings';
@@ -1,3 +1,18 @@
1
- /// <reference types="react" />
2
- declare const Timer: import("styled-components").StyledComponent<import("react").FC<import("./typings").TimerProps>, import("styled-components").DefaultTheme, {}, never>;
1
+ declare const Timer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Partial<import("./typings").TimerOptions> & {
2
+ autoStart?: boolean;
3
+ className?: string;
4
+ controller?: import("./TimerService").TimerService;
5
+ format?: (ttlMs: number, timeMs: number) => string | number;
6
+ height?: import("../..").SizePropertyTheme | import("csstype").Property.Height<import("../..").TLength>;
7
+ thickness?: import("csstype").Property.StrokeWidth<import("../..").TLength>;
8
+ width?: import("../..").SizePropertyTheme | import("csstype").Property.Width<import("../..").TLength>;
9
+ }, never> & Partial<Pick<Partial<import("./typings").TimerOptions> & {
10
+ autoStart?: boolean;
11
+ className?: string;
12
+ controller?: import("./TimerService").TimerService;
13
+ format?: (ttlMs: number, timeMs: number) => string | number;
14
+ height?: import("../..").SizePropertyTheme | import("csstype").Property.Height<import("../..").TLength>;
15
+ thickness?: import("csstype").Property.StrokeWidth<import("../..").TLength>;
16
+ width?: import("../..").SizePropertyTheme | import("csstype").Property.Width<import("../..").TLength>;
17
+ }, never>>> & string & Omit<import("react").FC<import("./typings").TimerProps>, keyof import("react").Component<any, {}, any>>;
3
18
  export default Timer;
@@ -1,2 +1,6 @@
1
- declare const Tooltip: import("styled-components").StyledComponent<import("onekijs-framework").FCC<import("./typings").TooltipProps>, import("styled-components").DefaultTheme, {}, never>;
1
+ declare const Tooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("./typings").TooltipProps & {
2
+ children?: import("react").ReactNode | undefined;
3
+ }, never> & Partial<Pick<import("./typings").TooltipProps & {
4
+ children?: import("react").ReactNode | undefined;
5
+ }, never>>> & string & Omit<import("onekijs-framework").FCC<import("./typings").TooltipProps>, keyof import("react").Component<any, {}, any>>;
2
6
  export default Tooltip;
@@ -1,10 +1,10 @@
1
+ import { Placement } from '@floating-ui/react';
1
2
  import { ReactNode } from 'react';
2
- import { Config, PopperOptions } from 'react-popper-tooltip';
3
3
  import { ColorPropertyTheme } from '../../styles/typings';
4
- export interface TooltipProps extends Config {
4
+ export interface TooltipProps {
5
5
  content?: ReactNode;
6
6
  className?: string;
7
- popperOptions?: PopperOptions;
7
+ placement?: Placement;
8
8
  kind?: ColorPropertyTheme;
9
9
  delayHide?: number;
10
10
  delayShow?: number;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ControllerTreeProps, TreeItem } from '../typings';
3
3
  declare const ControllerTreeComponent: {
4
- <T extends unknown = any, I extends TreeItem<T> = TreeItem<T>>({ controller, className, onActivate, onDeactivate, onSelect, onUnselect, onHighlight, onUnhighlight, height, virtual, gap, TreeIconComponent, TreeItemComponent, TreeItemContentComponent, treeItemClassName, TreeTogglerComponent, paddingLeft, paddingRight, animate, keyboardNavigable, listRef, }: ControllerTreeProps<T, I>): React.JSX.Element;
4
+ <T extends unknown = any, I extends TreeItem<T> = TreeItem<T>>({ controller, className, onActivate, onDeactivate, onSelect, onUnselect, onHighlight, onUnhighlight, height, virtual, gap, TreeIconComponent, TreeItemComponent, TreeItemContentComponent, treeItemClassName, TreeTogglerComponent, NotFoundComponent, paddingLeft, paddingRight, animate, keyboardNavigable, listRef, }: ControllerTreeProps<T, I>): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default ControllerTreeComponent;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ControllerTreeProps, TreeItem } from '../typings';
3
3
  declare const TreeBodyComponent: {
4
- <T extends unknown = any, I extends TreeItem<T> = TreeItem<T>>({ className, controller, }: ControllerTreeProps<T, I>): React.JSX.Element;
4
+ <T extends unknown = any, I extends TreeItem<T> = TreeItem<T>>({ className, controller, NotFoundComponent, }: ControllerTreeProps<T, I>): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default TreeBodyComponent;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { TreeItem, TreeProps } from '../typings';
3
- declare const _default: {
3
+ declare const TreeComponent: {
4
4
  <T = any, I extends TreeItem<T> = TreeItem<T>>(props: TreeProps<T, I>): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
+ declare const _default: typeof TreeComponent;
7
8
  export default _default;
@@ -3,8 +3,9 @@ import { ListItemProps } from '../../list/typings';
3
3
  import { TreeItem, TreeItemProps, TreeItemToggleProps } from '../typings';
4
4
  export declare const TreeItemToggler: <T = any, I extends TreeItem<T> = TreeItem<T>>({ item, onExpand, onCollapse, index, }: TreeItemToggleProps<T, I>) => React.JSX.Element | null;
5
5
  export declare const TreeItemContent: <T = any, I extends TreeItem<T> = TreeItem<T>>(props: TreeItemProps<T, I>) => React.JSX.Element | null;
6
- declare const _default: {
6
+ declare const TreeItemComponent: {
7
7
  <T = any, I extends TreeItem<T> = TreeItem<T>>(props: ListItemProps<T, I>): React.JSX.Element;
8
8
  displayName: string;
9
9
  };
10
+ declare const _default: typeof TreeItemComponent;
10
11
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ControllerTreeProps, TreeItem } from '../typings';
3
3
  declare const VirtualTreeBodyComponent: {
4
- <T extends unknown = any, I extends TreeItem<T> = TreeItem<T>>({ className, controller, height, }: ControllerTreeProps<T, I>): React.JSX.Element;
4
+ <T extends unknown = any, I extends TreeItem<T> = TreeItem<T>>({ className, controller, height, NotFoundComponent }: ControllerTreeProps<T, I>): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default VirtualTreeBodyComponent;
@@ -1,5 +1,5 @@
1
1
  import { CollectionProxy } from 'onekijs-framework';
2
2
  import TreeService from '../TreeService';
3
3
  import { TreeItem, TreeState, UseTreeOptions } from '../typings';
4
- declare const useTreeController: <T, I extends TreeItem<T> = TreeItem<T>>(dataSource?: string | CollectionProxy<T, I, TreeState<T, I>, TreeService<T, I, TreeState<T, I>>> | T[] | undefined, options?: UseTreeOptions<T, I>) => CollectionProxy<T, I, TreeState<T, I>, TreeService<T, I, TreeState<T, I>>>;
4
+ declare const useTreeController: <T, I extends TreeItem<T> = TreeItem<T>>(dataSource?: string | T[] | CollectionProxy<T, I, TreeState<T, I>, TreeService<T, I, TreeState<T, I>>>, options?: UseTreeOptions<T, I>) => CollectionProxy<T, I, TreeState<T, I>, TreeService<T, I, TreeState<T, I>>>;
5
5
  export default useTreeController;
@@ -1,5 +1,5 @@
1
1
  import { CollectionProxy } from 'onekijs-framework';
2
2
  import TreeService from '../TreeService';
3
3
  import { TreeItem, TreeState, UseTreeOptions } from '../typings';
4
- declare const useTreeInitialState: <T, I extends TreeItem<T>>(dataSource: string | CollectionProxy<T, I, TreeState<T, I>, TreeService<T, I, TreeState<T, I>>> | T[] | undefined, options: UseTreeOptions<T, I>) => TreeState<T, I>;
4
+ declare const useTreeInitialState: <T, I extends TreeItem<T>>(dataSource: string | T[] | undefined | CollectionProxy<T, I, TreeState<T, I>, TreeService<T, I, TreeState<T, I>>>, options: UseTreeOptions<T, I>) => TreeState<T, I>;
5
5
  export default useTreeInitialState;
@@ -1,6 +1,3 @@
1
- /// <reference types="react" />
2
- declare const _default: {
3
- <T = any, I extends import("./typings").TreeItem<T> = import("./typings").TreeItem<T>>(props: import("./typings").TreeProps<T, I>): import("react").JSX.Element;
4
- displayName: string;
5
- };
1
+ import TreeComponent from './components/TreeComponent';
2
+ declare const _default: typeof TreeComponent;
6
3
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { Collection, CollectionProxy, CollectionState, Item, ItemAdaptee, UseCollectionOptions } from 'onekijs-framework';
2
- import React, { ReactNode } from 'react';
3
- import { ListItemHandler, ListItemProps, StandardListProps, VirtualListProps } from '../list/typings';
2
+ import React, { FC, ReactNode } from 'react';
3
+ import { ListItemHandler, ListItemProps, ListNotFoundProps, StandardListProps, VirtualListProps } from '../list/typings';
4
4
  export type ArrayTreeProps<T = any, I extends TreeItem<T> = TreeItem<T>> = TreeConfig<T, I> & {
5
5
  adapter?: TreeItemAdapter<T>;
6
6
  dataSource?: string | T[];
@@ -18,6 +18,7 @@ export type TreeConfig<T = any, I extends TreeItem<T> = TreeItem<T>> = {
18
18
  TreeItemContentComponent?: React.FC<TreeItemProps<T, I>>;
19
19
  TreeIconComponent?: React.FC<TreeItemProps<T, I>>;
20
20
  TreeTogglerComponent?: React.FC<TreeItemToggleProps<T, I>>;
21
+ NotFoundComponent?: FC<ListNotFoundProps> | null;
21
22
  onActivate?: TreeItemHandler<T, I>;
22
23
  onDeactivate?: TreeItemHandler<T, I>;
23
24
  onHighlight?: TreeItemHandler<T, I>;
@@ -30,7 +31,7 @@ export type TreeConfig<T = any, I extends TreeItem<T> = TreeItem<T>> = {
30
31
  paddingRight?: number;
31
32
  animate?: boolean;
32
33
  keyboardNavigable?: boolean;
33
- listRef?: React.RefObject<HTMLDivElement>;
34
+ listRef?: React.RefObject<HTMLDivElement | null>;
34
35
  };
35
36
  export type TreeController<T = any, I extends TreeItem<T> = TreeItem<T>, S extends TreeState<T, I> = TreeState<T, I>> = Collection<T, I, S> & {
36
37
  collapse: TreeItemHandler<T, I>;
@@ -1,4 +1,4 @@
1
1
  import { AnonymousObject, LocalQuery, QuerySearcher, QuerySortComparator } from 'onekijs-framework';
2
2
  import { TreeController, TreeItem } from './typings';
3
- export declare const defaultTreeQueryEngine: <T = any, I extends TreeItem<T> = TreeItem<T>>(items: I[], query: LocalQuery, comparator: QuerySortComparator<T>, comparators: AnonymousObject<QuerySortComparator<T>>, searcher?: QuerySearcher<T> | undefined) => I[];
3
+ export declare const defaultTreeQueryEngine: <T = any, I extends TreeItem<T> = TreeItem<T>>(items: I[], query: LocalQuery, comparator: QuerySortComparator<T>, comparators: AnonymousObject<QuerySortComparator<T>>, searcher?: QuerySearcher<T>) => I[];
4
4
  export declare const isTreeItemExpanded: <T = any, I extends TreeItem<T> = TreeItem<T>>(item: I, service: TreeController<T, I>) => boolean;