@teselagen/ui 0.4.8 → 0.4.9

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 (103) hide show
  1. package/AdvancedOptions.d.ts +7 -0
  2. package/AssignDefaultsModeContext.d.ts +25 -0
  3. package/AsyncValidateFieldSpinner/index.d.ts +3 -0
  4. package/BlueprintError/index.d.ts +3 -0
  5. package/BounceLoader/index.d.ts +4 -0
  6. package/CollapsibleCard/index.d.ts +11 -0
  7. package/DNALoader/index.d.ts +4 -0
  8. package/DataTable/CellDragHandle.d.ts +6 -0
  9. package/DataTable/DisabledLoadingComponent.d.ts +6 -0
  10. package/DataTable/DisplayOptions.d.ts +14 -0
  11. package/DataTable/FilterAndSortMenu.d.ts +9 -0
  12. package/DataTable/PagingTool.d.ts +2 -0
  13. package/DataTable/SearchBar.d.ts +9 -0
  14. package/DataTable/SortableColumns.d.ts +10 -0
  15. package/DataTable/TableFormTrackerContext.d.ts +7 -0
  16. package/DataTable/dataTableEnhancer.d.ts +12 -0
  17. package/DataTable/defaultFormatters.d.ts +6 -0
  18. package/DataTable/defaultProps.d.ts +43 -0
  19. package/DataTable/defaultValidators.d.ts +6 -0
  20. package/DataTable/editCellHelper.d.ts +10 -0
  21. package/DataTable/getCellVal.d.ts +1 -0
  22. package/DataTable/getVals.d.ts +1 -0
  23. package/DataTable/index.d.ts +8 -0
  24. package/DataTable/isTruthy.d.ts +1 -0
  25. package/DataTable/isValueEmpty.d.ts +1 -0
  26. package/DataTable/utils/computePresets.d.ts +1 -0
  27. package/DataTable/utils/convertSchema.d.ts +3 -0
  28. package/DataTable/utils/getIdOrCodeOrIndex.d.ts +2 -0
  29. package/DataTable/utils/getTableConfigFromStorage.d.ts +1 -0
  30. package/DataTable/utils/queryParams.d.ts +54 -0
  31. package/DataTable/utils/rowClick.d.ts +11 -0
  32. package/DataTable/utils/selection.d.ts +1 -0
  33. package/DataTable/utils/withSelectedEntities.d.ts +11 -0
  34. package/DataTable/utils/withTableParams.d.ts +49 -0
  35. package/DataTable/validateTableWideErrors.d.ts +6 -0
  36. package/DataTable/viewColumn.d.ts +12 -0
  37. package/DialogFooter/index.d.ts +23 -0
  38. package/DropdownButton.d.ts +9 -0
  39. package/FillWindow.d.ts +5 -0
  40. package/FormComponents/LoadingDots.d.ts +1 -0
  41. package/FormComponents/Uploader.d.ts +2 -0
  42. package/FormComponents/getNewName.d.ts +1 -0
  43. package/FormComponents/index.d.ts +152 -0
  44. package/FormComponents/itemUpload.d.ts +2 -0
  45. package/FormComponents/sortify.d.ts +2 -0
  46. package/FormComponents/tryToMatchSchemas.d.ts +17 -0
  47. package/FormComponents/utils.d.ts +2 -0
  48. package/HotkeysDialog/index.d.ts +1 -0
  49. package/InfoHelper/index.d.ts +6 -0
  50. package/IntentText/index.d.ts +5 -0
  51. package/Loading/index.d.ts +12 -0
  52. package/MatchHeaders.d.ts +16 -0
  53. package/MenuBar/index.d.ts +29 -0
  54. package/PromptUnsavedChanges/index.d.ts +6 -0
  55. package/ResizableDraggableDialog/index.d.ts +24 -0
  56. package/ScrollToTop/index.d.ts +5 -0
  57. package/SimpleStepViz.d.ts +4 -0
  58. package/TgSelect/index.d.ts +10 -0
  59. package/TgSuggest/index.d.ts +22 -0
  60. package/Timeline/TimelineEvent.d.ts +5 -0
  61. package/Timeline/index.d.ts +12 -0
  62. package/UploadCsvWizard.d.ts +4 -0
  63. package/autoTooltip.d.ts +1 -0
  64. package/constants.d.ts +1 -0
  65. package/customIcons.d.ts +19 -0
  66. package/enhancers/withDialog/index.d.ts +23 -0
  67. package/enhancers/withDialog/tg_modalState.d.ts +6 -0
  68. package/enhancers/withField.d.ts +4 -0
  69. package/enhancers/withFields.d.ts +1 -0
  70. package/enhancers/withLocalStorage.d.ts +1 -0
  71. package/index.cjs.js +398 -285
  72. package/index.d.ts +61 -0
  73. package/index.es.js +398 -285
  74. package/package.json +1 -1
  75. package/rerenderOnWindowResize.d.ts +1 -0
  76. package/showAppSpinner.d.ts +1 -0
  77. package/showConfirmationDialog/index.d.ts +10 -0
  78. package/showDialogOnDocBody.d.ts +1 -0
  79. package/throwFormError.d.ts +1 -0
  80. package/toastr.d.ts +1 -0
  81. package/typeToCommonType.d.ts +6 -0
  82. package/useDialog.d.ts +10 -0
  83. package/utils/adHoc.d.ts +2 -0
  84. package/utils/basicHandleActionsWithFullState.d.ts +1 -0
  85. package/utils/browserUtils.d.ts +1 -0
  86. package/utils/combineReducersWithFullState.d.ts +1 -0
  87. package/utils/commandControls.d.ts +25 -0
  88. package/utils/commandUtils.d.ts +4 -0
  89. package/utils/determineBlackOrWhiteTextColor.d.ts +2 -0
  90. package/utils/getDayjsFormatter.d.ts +5 -0
  91. package/utils/getTextFromEl.d.ts +1 -0
  92. package/utils/handlerHelpers.d.ts +10 -0
  93. package/utils/hotkeyUtils.d.ts +6 -0
  94. package/utils/menuUtils.d.ts +23 -0
  95. package/utils/popoverOverflowModifiers.d.ts +13 -0
  96. package/utils/pureNoFunc.d.ts +2 -0
  97. package/utils/renderOnDoc.d.ts +2 -0
  98. package/utils/showProgressToast.d.ts +2 -0
  99. package/utils/tagUtils.d.ts +20 -0
  100. package/utils/tgFormValues.d.ts +3 -0
  101. package/utils/withSelectTableRecords.d.ts +1 -0
  102. package/utils/withStore.d.ts +2 -0
  103. package/wrapDialog.d.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -0,0 +1 @@
1
+ export default function rerenderOnWindowResize(that: any): void;
@@ -0,0 +1 @@
1
+ export default function showAppSpinner(): () => void;
@@ -0,0 +1,10 @@
1
+ export default function showConfirmationDialog(opts: any): Promise<any>;
2
+ export class AlertWrapper extends React.Component<any, any, any> {
3
+ constructor(props: any);
4
+ constructor(props: any, context: any);
5
+ state: {
6
+ isOpen: boolean;
7
+ };
8
+ render(): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
9
+ }
10
+ import React from '../../../../node_modules/react';
@@ -0,0 +1 @@
1
+ export default function showDialogOnDocBody(DialogComp: any, options?: {}): void;
@@ -0,0 +1 @@
1
+ export function throwFormError(error: any): never;
package/toastr.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export namespace typeToCommonType {
2
+ let string: string;
3
+ let number: string;
4
+ let boolean: string;
5
+ let dropdown: string;
6
+ }
package/useDialog.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export function useDialog({ ModalComponent, ...rest }: {
2
+ [x: string]: any;
3
+ ModalComponent: any;
4
+ }): {
5
+ comp: import('../../../node_modules/react/jsx-runtime').JSX.Element;
6
+ showDialogPromise: (handlerName: any, moreProps?: {}) => Promise<any>;
7
+ toggleDialog: () => void;
8
+ setAdditionalProps: React.Dispatch<React.SetStateAction<boolean>>;
9
+ };
10
+ import React from '../../../node_modules/react';
@@ -0,0 +1,2 @@
1
+ declare function _default(func: any): (WrappedComponent: any) => (props: any) => import('../../../../node_modules/react/jsx-runtime').JSX.Element;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export default function basicHandleActionsWithFullState(handlers: any, defaultState: any): (state: any, action: any, fullState: any) => any;
@@ -0,0 +1 @@
1
+ export const isSafari: boolean;
@@ -0,0 +1 @@
1
+ export default function combineReducers(reducers?: {}): (state: {} | undefined, action: any, fullState: any) => {};
@@ -0,0 +1,25 @@
1
+ export function withCommand(mappings: any): (WrappedComponent: any) => ({ cmd, cmdOptions, ...props }: {
2
+ [x: string]: any;
3
+ cmd: any;
4
+ cmdOptions?: {} | undefined;
5
+ }) => import('../../../../node_modules/react/jsx-runtime').JSX.Element | null;
6
+ export function CmdCheckbox({ cmd, cmdOptions, ...props }: {
7
+ [x: string]: any;
8
+ cmd: any;
9
+ cmdOptions?: {} | undefined;
10
+ }): import('../../../../node_modules/react/jsx-runtime').JSX.Element | null;
11
+ export function CmdSwitch({ cmd, cmdOptions, ...props }: {
12
+ [x: string]: any;
13
+ cmd: any;
14
+ cmdOptions?: {} | undefined;
15
+ }): import('../../../../node_modules/react/jsx-runtime').JSX.Element | null;
16
+ export function CmdDiv({ cmd, cmdOptions, ...props }: {
17
+ [x: string]: any;
18
+ cmd: any;
19
+ cmdOptions?: {} | undefined;
20
+ }): import('../../../../node_modules/react/jsx-runtime').JSX.Element | null;
21
+ export function CmdButton({ cmd, cmdOptions, ...props }: {
22
+ [x: string]: any;
23
+ cmd: any;
24
+ cmdOptions?: {} | undefined;
25
+ }): import('../../../../node_modules/react/jsx-runtime').JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ export function genericCommandFactory(config: any): {};
2
+ export function getCommandHotkeys(commandsOrDefs: any): {};
3
+ export function getCommandHandlers(commands: any): {};
4
+ export function getCommandHotkeyHandlers(commands: any): {};
@@ -0,0 +1,2 @@
1
+ declare function _default(c: any): "#000000" | "#FFFFFF";
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export default function getDayjsFormatter(format: any): {
2
+ formatDate: (date: any) => string;
3
+ parseDate: (str: any) => Date;
4
+ placeholder: any;
5
+ };
@@ -0,0 +1 @@
1
+ export default function getTextFromEl(el: any, options?: {}): any;
@@ -0,0 +1,10 @@
1
+ export function onEnterHelper(callback: any): {
2
+ onKeyDown: (event: any) => void;
3
+ };
4
+ export function onBlurHelper(callback: any): {
5
+ onBlur: (event: any) => void;
6
+ };
7
+ export function onEnterOrBlurHelper(callback: any): {
8
+ onKeyDown: (event: any) => void;
9
+ onBlur: (event: any) => void;
10
+ };
@@ -0,0 +1,6 @@
1
+ export function comboToLabel(def: any, useSymbols?: boolean): any;
2
+ export function hotkeysById(hotkeys: any, mode?: string): (id: any) => any;
3
+ export function getHotkeyProps(def: any, id: any): any;
4
+ export function withHotkeys(hotkeys: any, handlers: any): ({ children }?: {
5
+ children: any;
6
+ }) => import('../../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1,23 @@
1
+ export function showCommandContextMenu(menuDef: any, commands: any, config: any, event: any, onClose: any, context: any): void;
2
+ export function showContextMenu(menuDef: any, enhancers: any, event: any, onClose: any, context: any, menuComp?: typeof Menu): void;
3
+ export function getStringFromReactComponent(comp: any): any;
4
+ export function doesSearchValMatchText(searchVal: any, justText: any): any;
5
+ export const EnhancedMenuItem: any;
6
+ export function tickMenuEnhancer(def: any): any;
7
+ export function commandMenuEnhancer(commands: any, config?: {}): (def: any, context: any) => any;
8
+ export function DynamicMenuItem({ def, enhancers, context, doNotEnhanceTopLevelItem }: {
9
+ def: any;
10
+ enhancers?: ((x: any) => any)[] | undefined;
11
+ context: any;
12
+ doNotEnhanceTopLevelItem: any;
13
+ }): import('../../../../node_modules/react/jsx-runtime').JSX.Element | null;
14
+ export function createDynamicMenu(menuDef: any, enhancers: any, context: any): import('../../../../node_modules/react/jsx-runtime').JSX.Element | import('../../../../node_modules/react/jsx-runtime').JSX.Element[];
15
+ export function createDynamicBarMenu(topMenuDef: any, enhancers: any, context: any): any;
16
+ export function createCommandMenu(menuDef: any, commands: any, config: any, context: any): import('../../../../node_modules/react/jsx-runtime').JSX.Element | import('../../../../node_modules/react/jsx-runtime').JSX.Element[];
17
+ export function createCommandBarMenu(menuDef: any, commands: any, config: any, context: any): any;
18
+ export function createMenu(menuDef: any, enhancers: any, context: any): import('../../../../node_modules/react/jsx-runtime').JSX.Element | import('../../../../node_modules/react/jsx-runtime').JSX.Element[];
19
+ export function MenuItemWithTooltip({ tooltip, ...rest }: {
20
+ [x: string]: any;
21
+ tooltip: any;
22
+ }): import('../../../../node_modules/react/jsx-runtime').JSX.Element;
23
+ import { Menu } from '../../../../node_modules/@blueprintjs/core';
@@ -0,0 +1,13 @@
1
+ export default popoverOverflowModifiers;
2
+ declare namespace popoverOverflowModifiers {
3
+ namespace preventOverflow {
4
+ let enabled: boolean;
5
+ }
6
+ namespace hide {
7
+ let enabled_1: boolean;
8
+ export { enabled_1 as enabled };
9
+ }
10
+ namespace flip {
11
+ let boundariesElement: string;
12
+ }
13
+ }
@@ -0,0 +1,2 @@
1
+ export default pure;
2
+ declare function pure(BaseComponent: any): any;
@@ -0,0 +1,2 @@
1
+ export function renderOnDoc(fn: any): Element;
2
+ export function renderOnDocSimple(el: any): () => void;
@@ -0,0 +1,2 @@
1
+ declare function _default(message: any, value: any, key: any, opts: any): any;
2
+ export default _default;
@@ -0,0 +1,20 @@
1
+ export function getTagsAndTagOptions(allTags: any): any[];
2
+ export function getKeyedTagsAndTagOptions(tags: any): import("lodash").Dictionary<any>;
3
+ export function getTagColorStyle(color: any): {
4
+ style: {
5
+ backgroundColor: any;
6
+ color: string;
7
+ };
8
+ } | {
9
+ style?: undefined;
10
+ };
11
+ export function getTagProps(vals: any): {
12
+ children: any;
13
+ style: {
14
+ backgroundColor: any;
15
+ color: string;
16
+ };
17
+ } | {
18
+ children: any;
19
+ style?: undefined;
20
+ };
@@ -0,0 +1,3 @@
1
+ export default tgFormValues;
2
+ export function tgFormValueSelector(formName: any, ...fields: any[]): import('../../../../node_modules/react-redux').InferableComponentEnhancerWithProps<any, {}>;
3
+ declare function tgFormValues(...fieldNames: any[]): (Component: any) => (props: any) => import('../../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1 @@
1
+ export default function _default(_tableFormName: any, propName?: string): any;
@@ -0,0 +1,2 @@
1
+ export default withStore;
2
+ declare function withStore(Component: any): (props: any) => import('../../../../node_modules/react/jsx-runtime').JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare function _default(topLevelDialogProps?: {}): (Component: any) => (props: any) => import('../../../node_modules/react/jsx-runtime').JSX.Element;
2
+ export default _default;