@vendorflow/components 2.0.97 → 2.0.99

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 (68) hide show
  1. package/lib/components/material-ui/ButtonMenu/ButtonMenu.js +1 -1
  2. package/lib/components/material-ui/ColorPicker/styles.d.ts +1 -1
  3. package/lib/components/material-ui/DataTable/DataTable.d.ts +1 -0
  4. package/lib/components/material-ui/DataTable/DataTable.js +2 -1
  5. package/lib/components/material-ui/DataTable/TablePieces/BodyRow.d.ts +3 -1
  6. package/lib/components/material-ui/DataTable/TablePieces/BodyRow.js +3 -2
  7. package/lib/components/material-ui/DataTable/TablePieces/TableBodyContent.d.ts +3 -1
  8. package/lib/components/material-ui/DataTable/TablePieces/TableBodyContent.js +3 -3
  9. package/lib/types/Component.types.d.ts +1 -0
  10. package/package.json +1 -1
  11. package/lib/TempHooks.d.ts +0 -9
  12. package/lib/TempHooks.js +0 -25
  13. package/lib/components/InfiniteScroll/InfiniteScroll.d.ts +0 -16
  14. package/lib/components/InfiniteScroll/InfiniteScroll.js +0 -159
  15. package/lib/components/InfiniteScroll/index.d.ts +0 -1
  16. package/lib/components/InfiniteScroll/index.js +0 -8
  17. package/lib/components/blueprint/InputGroup/InputGroup.d.ts +0 -20
  18. package/lib/components/blueprint/InputGroup/InputGroup.js +0 -13
  19. package/lib/components/blueprint/InputGroup/InputGroup.story.d.ts +0 -2
  20. package/lib/components/blueprint/InputGroup/InputGroup.story.js +0 -11
  21. package/lib/components/blueprint/InputGroup/index.d.ts +0 -1
  22. package/lib/components/blueprint/InputGroup/index.js +0 -4
  23. package/lib/components/blueprint/InputSelect/InputSelect.d.ts +0 -51
  24. package/lib/components/blueprint/InputSelect/InputSelect.js +0 -98
  25. package/lib/components/blueprint/InputSelect/InputSelect.story.d.ts +0 -3
  26. package/lib/components/blueprint/InputSelect/InputSelect.story.js +0 -19
  27. package/lib/components/blueprint/InputSelect/index.d.ts +0 -1
  28. package/lib/components/blueprint/InputSelect/index.js +0 -4
  29. package/lib/components/blueprint/InputTime/InputTime.d.ts +0 -24
  30. package/lib/components/blueprint/InputTime/InputTime.js +0 -28
  31. package/lib/components/blueprint/InputTime/InputTime.story.d.ts +0 -2
  32. package/lib/components/blueprint/InputTime/InputTime.story.js +0 -11
  33. package/lib/components/blueprint/InputTime/index.d.ts +0 -1
  34. package/lib/components/blueprint/InputTime/index.js +0 -4
  35. package/lib/components/material-ui/ChatInterface/ActionsMenu.d.ts +0 -4
  36. package/lib/components/material-ui/ChatInterface/ActionsMenu.js +0 -37
  37. package/lib/components/material-ui/ChatInterface/ChatInterface.d.ts +0 -33
  38. package/lib/components/material-ui/ChatInterface/ChatInterface.js +0 -109
  39. package/lib/components/material-ui/ChatInterface/ChatInterface.story.d.ts +0 -1
  40. package/lib/components/material-ui/ChatInterface/ChatInterface.story.js +0 -134
  41. package/lib/components/material-ui/ChatInterface/MessageInput.d.ts +0 -9
  42. package/lib/components/material-ui/ChatInterface/MessageInput.js +0 -53
  43. package/lib/components/material-ui/ChatInterface/MessageItem.d.ts +0 -8
  44. package/lib/components/material-ui/ChatInterface/MessageItem.js +0 -71
  45. package/lib/components/material-ui/ChatInterface/MessageThread.d.ts +0 -6
  46. package/lib/components/material-ui/ChatInterface/MessageThread.js +0 -119
  47. package/lib/components/material-ui/ChatInterface/index.d.ts +0 -1
  48. package/lib/components/material-ui/ChatInterface/index.js +0 -8
  49. package/lib/components/material-ui/DataTable/AppliedFilters.d.ts +0 -12
  50. package/lib/components/material-ui/DataTable/AppliedFilters.js +0 -26
  51. package/lib/components/material-ui/DataTable/GlobalSearchFilter.d.ts +0 -10
  52. package/lib/components/material-ui/DataTable/GlobalSearchFilter.js +0 -49
  53. package/lib/components/material-ui/DataTable/IndeterminateCheckbox.d.ts +0 -4
  54. package/lib/components/material-ui/DataTable/IndeterminateCheckbox.js +0 -65
  55. package/lib/components/material-ui/DataTable/SortIndicator.d.ts +0 -10
  56. package/lib/components/material-ui/DataTable/SortIndicator.js +0 -33
  57. package/lib/components/material-ui/DataTable/Toolbar.d.ts +0 -24
  58. package/lib/components/material-ui/DataTable/Toolbar.js +0 -63
  59. package/lib/components/material-ui/DataTable/Utils.d.ts +0 -25
  60. package/lib/components/material-ui/DataTable/Utils.js +0 -119
  61. package/lib/components/material-ui/DataTable/ViewColumnTool.d.ts +0 -11
  62. package/lib/components/material-ui/DataTable/ViewColumnTool.js +0 -76
  63. package/lib/components/material-ui/ErrorBoundary/ErrorBoundary.d.ts +0 -7
  64. package/lib/components/material-ui/ErrorBoundary/ErrorBoundary.js +0 -20
  65. package/lib/components/material-ui/ErrorBoundary/index.d.ts +0 -1
  66. package/lib/components/material-ui/ErrorBoundary/index.js +0 -8
  67. package/lib/services/Select.service.d.ts +0 -5
  68. package/lib/services/Select.service.js +0 -67
@@ -1,76 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __read = (this && this.__read) || function (o, n) {
18
- var m = typeof Symbol === "function" && o[Symbol.iterator];
19
- if (!m) return o;
20
- var i = m.call(o), r, ar = [], e;
21
- try {
22
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
23
- }
24
- catch (error) { e = { error: error }; }
25
- finally {
26
- try {
27
- if (r && !r.done && (m = i["return"])) m.call(i);
28
- }
29
- finally { if (e) throw e.error; }
30
- }
31
- return ar;
32
- };
33
- var __importDefault = (this && this.__importDefault) || function (mod) {
34
- return (mod && mod.__esModule) ? mod : { "default": mod };
35
- };
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- /** @jsxRuntime classic */
38
- /** @jsx jsx */
39
- var react_1 = require("@emotion/react");
40
- var react_2 = require("react");
41
- var material_1 = require("@mui/material");
42
- var icons_material_1 = require("@mui/icons-material");
43
- var nanoid_1 = require("nanoid");
44
- var IndeterminateCheckbox_1 = __importDefault(require("./IndeterminateCheckbox"));
45
- function ViewColumnTool(_a) {
46
- var allColumns = _a.allColumns, columnNameById = _a.columnNameById;
47
- var id = (0, react_2.useMemo)(function () { return (0, nanoid_1.nanoid)(); }, []);
48
- var _b = __read((0, react_2.useState)(null), 2), anchorEl = _b[0], setAnchorEl = _b[1];
49
- var open = !!anchorEl;
50
- function handleClick(evt) {
51
- setAnchorEl(evt.currentTarget);
52
- }
53
- function handleClose() {
54
- setAnchorEl(null);
55
- }
56
- return ((0, react_1.jsx)(react_2.Fragment, null,
57
- (0, react_1.jsx)(material_1.Tooltip, { title: "Show Columns" },
58
- (0, react_1.jsx)(material_1.IconButton, { "aria-describedby": id, onClick: handleClick },
59
- (0, react_1.jsx)(icons_material_1.ViewColumn, null))),
60
- (0, react_1.jsx)(material_1.Popover, { id: id, open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: { vertical: 'bottom', horizontal: 'center' } },
61
- (0, react_1.jsx)("div", { css: (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0.5rem;\n "], ["\n padding: 0.5rem;\n "]))) },
62
- (0, react_1.jsx)("div", { css: (0, react_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n "], ["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n "]))) },
63
- (0, react_1.jsx)(material_1.Typography, { css: (0, react_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 14px;\n color: rgba(0, 0, 0, 0.54);\n "], ["\n font-size: 14px;\n color: rgba(0, 0, 0, 0.54);\n "]))) }, "Show Columns"),
64
- (0, react_1.jsx)(material_1.Tooltip, { title: "Close" },
65
- (0, react_1.jsx)(material_1.IconButton, { onClick: handleClose },
66
- (0, react_1.jsx)(icons_material_1.Close, null)))),
67
- (0, react_1.jsx)("div", { css: (0, react_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n "], ["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n "]))) }, allColumns
68
- .filter(function (column) { return column.id !== 'custom'; })
69
- .map(function (column) {
70
- return ((0, react_1.jsx)(material_1.FormControlLabel, { key: column.id, label: columnNameById[column.id],
71
- // @ts-ignore
72
- control: (0, react_1.jsx)(IndeterminateCheckbox_1.default, __assign({}, column.getToggleHiddenProps())) }));
73
- }))))));
74
- }
75
- exports.default = ViewColumnTool;
76
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -1,7 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import { ReactNode } from 'react';
4
- export default function ErrorBoundary({ children, onReset, }: {
5
- children: ReactNode;
6
- onReset: (...args: Array<unknown>) => void | Promise<void>;
7
- }): jsx.JSX.Element;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- /** @jsx jsx */
8
- var react_1 = require("@emotion/react");
9
- var material_1 = require("@mui/material");
10
- var react_error_boundary_1 = require("react-error-boundary");
11
- function ErrorFallback(_a) {
12
- var resetErrorBoundary = _a.resetErrorBoundary;
13
- return ((0, react_1.jsx)(material_1.Alert, { css: (0, react_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n "], ["\n width: 100%;\n "]))), severity: "error", action: (0, react_1.jsx)(material_1.Button, { color: "inherit", size: "small", onClick: resetErrorBoundary }, "Reload") }, "Something went wrong when trying to load this view's data. Please try to reload the data again."));
14
- }
15
- function ErrorBoundary(_a) {
16
- var children = _a.children, onReset = _a.onReset;
17
- return ((0, react_1.jsx)(react_error_boundary_1.ErrorBoundary, { FallbackComponent: ErrorFallback, onReset: onReset }, children));
18
- }
19
- exports.default = ErrorBoundary;
20
- var templateObject_1;
@@ -1 +0,0 @@
1
- export { default } from './ErrorBoundary';
@@ -1,8 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = void 0;
7
- var ErrorBoundary_1 = require("./ErrorBoundary");
8
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(ErrorBoundary_1).default; } });
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { IItemRendererProps } from '@blueprintjs/select';
3
- import { UniqueKey, InputValueRender } from 'types/Component.types';
4
- export declare function getFilter<T>(inputValueRenderer: InputValueRender<T>): (query: string, item: T, index?: number | undefined, exactMatch?: boolean | undefined) => boolean;
5
- export declare function getItemRenderer<T>(uniqueKey: UniqueKey<T>, inputValueRenderer: InputValueRender<T>, isItemSelected?: (item: T) => boolean): (item: T, { handleClick, modifiers, query }: IItemRendererProps) => JSX.Element | null;
@@ -1,67 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var react_1 = __importDefault(require("react"));
7
- var core_1 = require("@blueprintjs/core");
8
- function escapeRegExpChars(text) {
9
- return text.replace(/([.*+?^=!:${}()|[\]/\\])/g, '\\$1');
10
- }
11
- function highlightText(text, query) {
12
- var lastIndex = 0;
13
- var words = query
14
- .split(/\s+/)
15
- .filter(function (word) { return word.length > 0; })
16
- .map(escapeRegExpChars);
17
- if (words.length === 0) {
18
- return [text];
19
- }
20
- var regexp = new RegExp(words.join('|'), 'gi');
21
- var tokens = [];
22
- while (true) {
23
- var match = regexp.exec(text);
24
- if (!match) {
25
- break;
26
- }
27
- var length_1 = match[0].length;
28
- var before = text.slice(lastIndex, regexp.lastIndex - length_1);
29
- if (before.length > 0) {
30
- tokens.push(before);
31
- }
32
- lastIndex = regexp.lastIndex;
33
- tokens.push(react_1.default.createElement("strong", { key: lastIndex }, match[0]));
34
- }
35
- var rest = text.slice(lastIndex);
36
- if (rest.length > 0) {
37
- tokens.push(rest);
38
- }
39
- return tokens;
40
- }
41
- function getFilter(inputValueRenderer) {
42
- return function filterItems(query, item, index, exactMatch) {
43
- return exactMatch
44
- ? inputValueRenderer(item).toLowerCase() === query.toLowerCase()
45
- : inputValueRenderer(item).toLowerCase().includes(query.toLowerCase());
46
- };
47
- }
48
- exports.getFilter = getFilter;
49
- function getItemRenderer(uniqueKey, inputValueRenderer, isItemSelected) {
50
- return function renderItem(item, _a) {
51
- var handleClick = _a.handleClick, modifiers = _a.modifiers, query = _a.query;
52
- if (!modifiers.matchesPredicate) {
53
- return null;
54
- }
55
- var text = inputValueRenderer(item);
56
- var key = null;
57
- if (typeof uniqueKey === 'string') {
58
- // @ts-ignore
59
- key = item[uniqueKey];
60
- }
61
- else if (typeof uniqueKey === 'function') {
62
- key = uniqueKey(item);
63
- }
64
- return (react_1.default.createElement(core_1.MenuItem, { active: modifiers.active, icon: isItemSelected && isItemSelected(item) ? 'tick' : 'blank', disabled: modifiers.disabled, label: undefined, key: key, onClick: handleClick, text: highlightText(text, query) }));
65
- };
66
- }
67
- exports.getItemRenderer = getItemRenderer;