orc-shared 5.10.2 → 5.99.0-dev.10
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.
- package/dist/components/AppFrame/About.js +13 -13
- package/dist/components/AppFrame/Anchor.js +7 -7
- package/dist/components/AppFrame/AppFrame.js +3 -3
- package/dist/components/AppFrame/Help.js +4 -4
- package/dist/components/AppFrame/MenuItem.js +17 -26
- package/dist/components/AppFrame/Preferences.js +14 -14
- package/dist/components/AppFrame/Sidebar.js +6 -6
- package/dist/components/AppFrame/Topbar.js +6 -6
- package/dist/components/ApplicationModuleLoader.js +3 -2
- package/dist/components/Authenticate.js +29 -22
- package/dist/components/DropMenu/Menu.js +9 -9
- package/dist/components/ErrorPlaceholder.js +8 -24
- package/dist/components/Form/Field.js +4 -4
- package/dist/components/Form/Inputs/Button.js +2 -2
- package/dist/components/Form/Inputs/MultiSelector.js +137 -0
- package/dist/components/Form/Inputs/Selector.js +13 -10
- package/dist/components/Form/Inputs/index.js +1 -1
- package/dist/components/InternetExplorerWarningMessage.js +15 -15
- package/dist/components/LoadingIcon.js +38 -17
- package/dist/components/MaterialUI/DataDisplay/Modal.js +3 -3
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +6 -6
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +1 -1
- package/dist/components/MaterialUI/DataDisplay/Table.js +2 -1
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +3 -1
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +1 -1
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +1 -1
- package/dist/components/MaterialUI/Inputs/DatePicker.js +1 -1
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +1 -1
- package/dist/components/MaterialUI/Inputs/Select.js +175 -109
- package/dist/components/MaterialUI/Inputs/SelectProps.js +11 -1
- package/dist/components/MaterialUI/Inputs/Switch.js +1 -1
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +2 -4
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +1 -1
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +27 -42
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -1
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +3 -2
- package/dist/components/MaterialUI/muiThemes.js +3 -1
- package/dist/components/Provision.js +30 -13
- package/dist/components/Routing/SegmentPage.js +117 -56
- package/dist/components/Scope/ScopeNode.js +62 -57
- package/dist/components/Sidepanel.js +59 -23
- package/dist/components/Spritesheet.js +35 -17
- package/dist/components/Text.js +1 -60
- package/dist/components/ToastList.js +95 -64
- package/dist/components/Treeview/Branch.js +82 -20
- package/dist/components/Treeview/Label.js +108 -31
- package/dist/components/Treeview/Leaf.js +56 -12
- package/dist/components/Treeview/Node.js +22 -9
- package/dist/components/Treeview/index.js +7 -1
- package/dist/components/Treeview/settings.js +17 -6
- package/dist/{components/Modal/index.js → hooks/useWindowSize.js} +38 -36
- package/dist/sharedMessages.js +8 -0
- package/dist/utils/index.js +0 -4
- package/dist/utils/testUtils.js +1 -12
- package/dist/{components/Modal/Background.js → utils/toastHelper.js} +11 -14
- package/package.json +2 -2
- package/src/components/AppFrame/About.js +13 -13
- package/src/components/AppFrame/Anchor.js +7 -7
- package/src/components/AppFrame/AppFrame.js +3 -3
- package/src/components/AppFrame/Help.js +4 -4
- package/src/components/AppFrame/MenuItem.js +15 -23
- package/src/components/AppFrame/Preferences.js +14 -14
- package/src/components/AppFrame/Sidebar.js +6 -6
- package/src/components/AppFrame/Topbar.js +6 -6
- package/src/components/ApplicationModuleLoader.js +2 -2
- package/src/components/ApplicationModuleLoader.test.js +15 -28
- package/src/components/Authenticate.js +21 -23
- package/src/components/Authenticate.test.js +19 -27
- package/src/components/DropMenu/Menu.js +9 -9
- package/src/components/ErrorPlaceholder.js +4 -21
- package/src/components/ErrorPlaceholder.test.js +7 -14
- package/src/components/Form/Field.js +4 -4
- package/src/components/Form/InputField.test.js +2 -1
- package/src/components/Form/Inputs/Button.js +2 -2
- package/src/components/Form/Inputs/MultiSelector.js +73 -0
- package/src/components/Form/Inputs/MultiSelector.test.js +332 -0
- package/src/components/Form/Inputs/Selector.js +12 -4
- package/src/components/Form/Inputs/Selector.test.js +27 -12
- package/src/components/Form/Inputs/index.js +1 -1
- package/src/components/InternetExplorerWarningMessage.js +15 -15
- package/src/components/Loader.test.js +50 -59
- package/src/components/LoadingIcon.js +27 -14
- package/src/components/LoadingIcon.test.js +11 -15
- package/src/components/MaterialUI/DataDisplay/Modal.js +3 -3
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +6 -6
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -1
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +1 -1
- package/src/components/MaterialUI/DataDisplay/SelectionList.js +1 -1
- package/src/components/MaterialUI/DataDisplay/Table.js +6 -1
- package/src/components/MaterialUI/DataDisplay/Table.test.js +21 -1
- package/src/components/MaterialUI/DataDisplay/TableProps.js +2 -0
- package/src/components/MaterialUI/DataDisplay/TableProps.test.js +20 -2
- package/src/components/MaterialUI/DataDisplay/TransferList.js +1 -1
- package/src/components/MaterialUI/Inputs/CheckboxGroup.js +1 -1
- package/src/components/MaterialUI/Inputs/DatePicker.js +1 -1
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +1 -1
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.test.js +1 -1
- package/src/components/MaterialUI/Inputs/Select.js +143 -83
- package/src/components/MaterialUI/Inputs/Select.test.js +199 -14
- package/src/components/MaterialUI/Inputs/SelectProps.js +10 -0
- package/src/components/MaterialUI/Inputs/SelectProps.test.js +10 -0
- package/src/components/MaterialUI/Inputs/Switch.js +1 -1
- package/src/components/MaterialUI/Navigation/DropDownMenu.js +2 -2
- package/src/components/MaterialUI/Navigation/DropDownMenu.test.js +5 -6
- package/src/components/MaterialUI/ScopeSelector/ScopeSelector.js +1 -2
- package/src/components/MaterialUI/ScopeSelector/TreeItem.js +8 -31
- package/src/components/MaterialUI/Surfaces/Paper.js +1 -1
- package/src/components/MaterialUI/Surfaces/SectionExpansionPanel.js +2 -1
- package/src/components/MaterialUI/muiThemes.js +4 -1
- package/src/components/Navigation/Navigation.test.js +0 -5
- package/src/components/Navigation/useNavigationState.test.js +79 -222
- package/src/components/Provision.js +36 -42
- package/src/components/Provision.test.js +10 -26
- package/src/components/Routing/SegmentPage.js +68 -52
- package/src/components/Routing/SegmentPage.test.js +4 -12
- package/src/components/Scope/ScopeNode.js +44 -55
- package/src/components/Scope/ScopeNode.test.js +84 -163
- package/src/components/ScopeExtendedConfigurationLoader.test.js +1 -4
- package/src/components/Sidepanel.js +38 -32
- package/src/components/Sidepanel.test.js +54 -27
- package/src/components/Spritesheet.js +23 -21
- package/src/components/Spritesheet.test.js +10 -10
- package/src/components/Text.js +0 -49
- package/src/components/ToastList.js +79 -90
- package/src/components/ToastList.test.js +29 -103
- package/src/components/Treeview/Branch.js +65 -47
- package/src/components/Treeview/Branch.test.js +2 -43
- package/src/components/Treeview/Label.js +68 -54
- package/src/components/Treeview/Label.test.js +55 -63
- package/src/components/Treeview/Leaf.js +41 -22
- package/src/components/Treeview/Leaf.test.js +1 -15
- package/src/components/Treeview/Node.js +16 -9
- package/src/components/Treeview/Node.test.js +269 -200
- package/src/components/Treeview/Treeview.test.js +248 -248
- package/src/components/Treeview/index.js +6 -0
- package/src/components/Treeview/settings.js +10 -6
- package/src/hooks/useMultipleFieldEditState.test.js +0 -1
- package/src/hooks/useWindowSize.js +39 -0
- package/src/hooks/useWindowSize.test.js +68 -0
- package/src/sharedMessages.js +8 -0
- package/src/translations/en-US.json +2 -0
- package/src/translations/fr-CA.json +2 -0
- package/src/utils/index.js +0 -4
- package/src/utils/testUtils.js +0 -10
- package/src/utils/testUtils.test.js +0 -68
- package/src/utils/toastHelper.js +8 -0
- package/src/utils/toastHelper.test.js +41 -0
- package/dist/components/Button.js +0 -70
- package/dist/components/CategoryList.js +0 -197
- package/dist/components/Checkbox.js +0 -103
- package/dist/components/Icon.js +0 -69
- package/dist/components/IconButton.js +0 -80
- package/dist/components/Input.js +0 -101
- package/dist/components/List/DataCell.js +0 -129
- package/dist/components/List/HeadCell.js +0 -125
- package/dist/components/List/HeadRow.js +0 -73
- package/dist/components/List/List.js +0 -274
- package/dist/components/List/Row.js +0 -109
- package/dist/components/List/enhanceColumnDefs.js +0 -111
- package/dist/components/List/index.js +0 -59
- package/dist/components/Modal/Dialog.js +0 -75
- package/dist/components/Modal/Wrapper.js +0 -69
- package/dist/components/MultiSelector.js +0 -187
- package/dist/components/Navigation/Bar.js +0 -293
- package/dist/components/Navigation/Tab.js +0 -182
- package/dist/components/Placeholder.js +0 -114
- package/dist/components/Scope/Selector.js +0 -123
- package/dist/components/Selector.js +0 -185
- package/dist/components/Switch.js +0 -128
- package/dist/components/Toolbar.js +0 -227
- package/dist/components/Tooltip.js +0 -66
- package/dist/getTheme.js +0 -158
- package/dist/getThemeOverrides.js +0 -93
- package/dist/hocs/withAuthentication.js +0 -72
- package/dist/utils/styledPropFuncs.js +0 -88
- package/src/components/Button.js +0 -90
- package/src/components/Button.test.js +0 -49
- package/src/components/CategoryList.js +0 -140
- package/src/components/CategoryList.test.js +0 -667
- package/src/components/Checkbox.js +0 -63
- package/src/components/Checkbox.test.js +0 -122
- package/src/components/Icon.js +0 -18
- package/src/components/IconButton.js +0 -30
- package/src/components/IconButton.test.js +0 -61
- package/src/components/Input.js +0 -35
- package/src/components/Input.test.js +0 -34
- package/src/components/List/DataCell.js +0 -77
- package/src/components/List/DataCell.test.js +0 -357
- package/src/components/List/HeadCell.js +0 -105
- package/src/components/List/HeadCell.test.js +0 -331
- package/src/components/List/HeadRow.js +0 -21
- package/src/components/List/HeadRow.test.js +0 -27
- package/src/components/List/List.js +0 -162
- package/src/components/List/List.test.js +0 -705
- package/src/components/List/Row.js +0 -72
- package/src/components/List/Row.test.js +0 -194
- package/src/components/List/enhanceColumnDefs.js +0 -54
- package/src/components/List/enhanceColumnDefs.test.js +0 -179
- package/src/components/List/index.js +0 -6
- package/src/components/Modal/Background.js +0 -10
- package/src/components/Modal/Dialog.js +0 -27
- package/src/components/Modal/Dialog.test.js +0 -20
- package/src/components/Modal/Modal.test.js +0 -52
- package/src/components/Modal/Wrapper.js +0 -32
- package/src/components/Modal/Wrapper.test.js +0 -55
- package/src/components/Modal/index.js +0 -22
- package/src/components/MultiSelector.js +0 -104
- package/src/components/MultiSelector.test.js +0 -348
- package/src/components/Navigation/Bar.js +0 -212
- package/src/components/Navigation/Bar.test.js +0 -552
- package/src/components/Navigation/Tab.js +0 -156
- package/src/components/Navigation/Tab.test.js +0 -404
- package/src/components/Placeholder.js +0 -61
- package/src/components/Placeholder.test.js +0 -106
- package/src/components/Scope/Selector.js +0 -70
- package/src/components/Scope/Selector.test.js +0 -138
- package/src/components/Selector.js +0 -191
- package/src/components/Selector.test.js +0 -157
- package/src/components/Switch.js +0 -112
- package/src/components/Switch.test.js +0 -130
- package/src/components/Text.test.js +0 -132
- package/src/components/Toolbar.js +0 -178
- package/src/components/Toolbar.test.js +0 -478
- package/src/components/Tooltip.js +0 -51
- package/src/components/Tooltip.test.js +0 -21
- package/src/getTheme.js +0 -103
- package/src/getTheme.test.js +0 -92
- package/src/getThemeOverrides.js +0 -27
- package/src/hocs/withAuthentication.js +0 -18
- package/src/hocs/withAuthentication.test.js +0 -120
- package/src/utils/styledPropFuncs.js +0 -20
- package/src/utils/styledPropFuncs.test.js +0 -166
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.CategoryRow = exports.CategoryList = exports.CategoryIndicator = exports.CategoryHeader = void 0;
|
|
5
|
-
var _react = _interopRequireDefault(require("react"));
|
|
6
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
7
|
-
var _recompose = require("recompose");
|
|
8
|
-
var _utils = require("../utils");
|
|
9
|
-
var _withScrollBox = _interopRequireDefault(require("../hocs/withScrollBox"));
|
|
10
|
-
var _useViewState3 = _interopRequireDefault(require("../hooks/useViewState"));
|
|
11
|
-
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
12
|
-
var _Row = _interopRequireDefault(require("./List/Row"));
|
|
13
|
-
var _HeadRow = _interopRequireDefault(require("./List/HeadRow"));
|
|
14
|
-
var _List = require("./List/List");
|
|
15
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
(function () {
|
|
19
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
20
|
-
enterModule && enterModule(module);
|
|
21
|
-
})();
|
|
22
|
-
(function () {
|
|
23
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
24
|
-
enterModule && enterModule(module);
|
|
25
|
-
})();
|
|
26
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
27
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
28
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
29
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
30
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
31
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
32
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
33
|
-
return a;
|
|
34
|
-
};
|
|
35
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
36
|
-
return a;
|
|
37
|
-
};
|
|
38
|
-
/*
|
|
39
|
-
Multiple lists with a single header, aligned with each other
|
|
40
|
-
No virtualization or page loading
|
|
41
|
-
Categories can be folded up to hide content
|
|
42
|
-
Sortable, within categories
|
|
43
|
-
*/
|
|
44
|
-
var arrayToggle = function arrayToggle(array, item) {
|
|
45
|
-
return array.includes(item) ? array.filter(function (x) {
|
|
46
|
-
return x !== item;
|
|
47
|
-
}) : array.concat(item);
|
|
48
|
-
};
|
|
49
|
-
var CategoryRow = exports.CategoryRow = _styledComponents.default.tr.withConfig({
|
|
50
|
-
displayName: "CategoryList__CategoryRow",
|
|
51
|
-
componentId: "sc-rh0l6t-0"
|
|
52
|
-
})([""]);
|
|
53
|
-
var CategoryHeader = exports.CategoryHeader = _styledComponents.default.td.withConfig({
|
|
54
|
-
displayName: "CategoryList__CategoryHeader",
|
|
55
|
-
componentId: "sc-rh0l6t-1"
|
|
56
|
-
})(["border:0 solid ", ";border-top-width:1px;tr:first-child &{border-top-width:0;}tr:last-child &{border-bottom-width:1px;}position:relative;padding:11px 45px;background-color:#f1eae0;", " cursor:pointer;"], (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"), (0, _utils.ifFlag)("closed", (0, _styledComponents.css)(["border-bottom:1px solid ", ";"], (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"))));
|
|
57
|
-
var CategoryIndicator = exports.CategoryIndicator = (0, _styledComponents.default)(_Icon.default).attrs(function (props) {
|
|
58
|
-
return {
|
|
59
|
-
id: (0, _utils.ifFlag)("closed", (0, _utils.getThemeProp)(["icons", "indicators", "right"], "chevron-right"), (0, _utils.getThemeProp)(["icons", "indicators", "down"], "chevron-down"))(props)
|
|
60
|
-
};
|
|
61
|
-
}).withConfig({
|
|
62
|
-
displayName: "CategoryList__CategoryIndicator",
|
|
63
|
-
componentId: "sc-rh0l6t-2"
|
|
64
|
-
})(["font-size:12px;position:absolute;left:22px;top:15px;"]);
|
|
65
|
-
var CategoryList = exports.CategoryList = function CategoryList(_ref) {
|
|
66
|
-
var name = _ref.name,
|
|
67
|
-
_ref$columnDefs = _ref.columnDefs,
|
|
68
|
-
columnDefs = _ref$columnDefs === void 0 ? [] : _ref$columnDefs,
|
|
69
|
-
_ref$rows = _ref.rows,
|
|
70
|
-
rows = _ref$rows === void 0 ? [] : _ref$rows,
|
|
71
|
-
rowOnClick = _ref.rowOnClick,
|
|
72
|
-
placeholder = _ref.placeholder,
|
|
73
|
-
_ref$keyField = _ref.keyField,
|
|
74
|
-
keyField = _ref$keyField === void 0 ? ["id"] : _ref$keyField,
|
|
75
|
-
_ref$categoryField = _ref.categoryField,
|
|
76
|
-
categoryField = _ref$categoryField === void 0 ? ["category"] : _ref$categoryField,
|
|
77
|
-
_ref$openAll = _ref.openAll,
|
|
78
|
-
openAll = _ref$openAll === void 0 ? false : _ref$openAll,
|
|
79
|
-
height = _ref.height,
|
|
80
|
-
_ref$rowBackgroundGet = _ref.rowBackgroundGetter,
|
|
81
|
-
rowBackgroundGetter = _ref$rowBackgroundGet === void 0 ? function () {} : _ref$rowBackgroundGet;
|
|
82
|
-
var _useListState = (0, _List.useListState)(name, columnDefs),
|
|
83
|
-
_useListState2 = _slicedToArray(_useListState, 2),
|
|
84
|
-
enhancedColumnDefs = _useListState2[0],
|
|
85
|
-
selection = _useListState2[1];
|
|
86
|
-
var _useViewState = (0, _useViewState3.default)(name),
|
|
87
|
-
_useViewState2 = _slicedToArray(_useViewState, 2),
|
|
88
|
-
_useViewState2$0$clos = _useViewState2[0].closedCategories,
|
|
89
|
-
closedCategories = _useViewState2$0$clos === void 0 ? [] : _useViewState2$0$clos,
|
|
90
|
-
updateViewState = _useViewState2[1];
|
|
91
|
-
if (columnDefs.length === 0) return null;
|
|
92
|
-
var rowIds = [],
|
|
93
|
-
rowCategories = {};
|
|
94
|
-
rows.forEach(function (row, index) {
|
|
95
|
-
var id = _utils.safeGet.apply(void 0, [row].concat(keyField)) + ""; // Ensure rowId is string
|
|
96
|
-
var category = _utils.safeGet.apply(void 0, [row].concat(categoryField)) || "";
|
|
97
|
-
rowIds.push(id);
|
|
98
|
-
if (!rowCategories[category]) {
|
|
99
|
-
rowCategories[category] = [];
|
|
100
|
-
}
|
|
101
|
-
rowCategories[category].push(/*#__PURE__*/_react.default.createElement(_Row.default, {
|
|
102
|
-
columnDefs: enhancedColumnDefs,
|
|
103
|
-
key: id,
|
|
104
|
-
rowId: id,
|
|
105
|
-
row: row,
|
|
106
|
-
rowOnClick: rowOnClick,
|
|
107
|
-
selected: selection.indexOf(id) !== -1,
|
|
108
|
-
bgColor: rowBackgroundGetter(row, index)
|
|
109
|
-
}));
|
|
110
|
-
});
|
|
111
|
-
var rowElements = [];
|
|
112
|
-
if (Object.keys(rowCategories).length === 0) {
|
|
113
|
-
if (placeholder) {
|
|
114
|
-
rowElements.push(/*#__PURE__*/_react.default.createElement(_List.Placeholder, {
|
|
115
|
-
key: "placeholder",
|
|
116
|
-
width: columnDefs.length,
|
|
117
|
-
height: height - _List.HEADER_HEIGHT
|
|
118
|
-
}, placeholder));
|
|
119
|
-
}
|
|
120
|
-
} else {
|
|
121
|
-
Object.entries(rowCategories).forEach(function (_ref2) {
|
|
122
|
-
var _ref3 = _slicedToArray(_ref2, 2),
|
|
123
|
-
key = _ref3[0],
|
|
124
|
-
rows = _ref3[1];
|
|
125
|
-
var clickHandler = function clickHandler() {
|
|
126
|
-
return updateViewState("closedCategories", arrayToggle(closedCategories, key));
|
|
127
|
-
};
|
|
128
|
-
var closed = !openAll && closedCategories.includes(key);
|
|
129
|
-
rowElements.push(/*#__PURE__*/_react.default.createElement(CategoryRow, {
|
|
130
|
-
key: "category_" + key
|
|
131
|
-
}, /*#__PURE__*/_react.default.createElement(CategoryHeader, {
|
|
132
|
-
"data-test-id": "category_" + key,
|
|
133
|
-
closed: closed,
|
|
134
|
-
colSpan: columnDefs.length,
|
|
135
|
-
onClick: clickHandler
|
|
136
|
-
}, /*#__PURE__*/_react.default.createElement(CategoryIndicator, {
|
|
137
|
-
closed: closed
|
|
138
|
-
}), key)));
|
|
139
|
-
if (!closed) {
|
|
140
|
-
rowElements.push.apply(rowElements, rows);
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
return /*#__PURE__*/_react.default.createElement(_List.Table, null, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement(_HeadRow.default, {
|
|
145
|
-
columnDefs: enhancedColumnDefs,
|
|
146
|
-
rowIds: rowIds,
|
|
147
|
-
allSelected: rows.length === selection.length && rows.length !== 0
|
|
148
|
-
})), /*#__PURE__*/_react.default.createElement("tbody", null, rowElements));
|
|
149
|
-
};
|
|
150
|
-
__signature__(CategoryList, "useListState{[enhancedColumnDefs, selection]}\nuseViewState{[{ closedCategories = [] }, updateViewState]}", function () {
|
|
151
|
-
return [_List.useListState, _useViewState3.default];
|
|
152
|
-
});
|
|
153
|
-
__signature__(CategoryList, "useListState{[enhancedColumnDefs, selection]}\nuseViewState{[{ closedCategories = [] }, updateViewState]}", function () {
|
|
154
|
-
return [_List.useListState, _useViewState3.default];
|
|
155
|
-
});
|
|
156
|
-
var StatefulCategoryList = (0, _recompose.compose)((0, _recompose.setDisplayName)("CategoryList"), _withScrollBox.default)(CategoryList);
|
|
157
|
-
var _default = StatefulCategoryList;
|
|
158
|
-
var _default2 = _default;
|
|
159
|
-
var _default3 = exports.default = _default2;
|
|
160
|
-
;
|
|
161
|
-
(function () {
|
|
162
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
163
|
-
if (!reactHotLoader) {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
reactHotLoader.register(arrayToggle, "arrayToggle", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
167
|
-
reactHotLoader.register(CategoryRow, "CategoryRow", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
168
|
-
reactHotLoader.register(CategoryHeader, "CategoryHeader", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
169
|
-
reactHotLoader.register(CategoryIndicator, "CategoryIndicator", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
170
|
-
reactHotLoader.register(CategoryList, "CategoryList", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
171
|
-
reactHotLoader.register(StatefulCategoryList, "StatefulCategoryList", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
172
|
-
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
173
|
-
})();
|
|
174
|
-
;
|
|
175
|
-
(function () {
|
|
176
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
177
|
-
leaveModule && leaveModule(module);
|
|
178
|
-
})();
|
|
179
|
-
;
|
|
180
|
-
(function () {
|
|
181
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
182
|
-
if (!reactHotLoader) {
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
reactHotLoader.register(arrayToggle, "arrayToggle", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
186
|
-
reactHotLoader.register(CategoryRow, "CategoryRow", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
187
|
-
reactHotLoader.register(CategoryHeader, "CategoryHeader", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
188
|
-
reactHotLoader.register(CategoryIndicator, "CategoryIndicator", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
189
|
-
reactHotLoader.register(CategoryList, "CategoryList", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
190
|
-
reactHotLoader.register(StatefulCategoryList, "StatefulCategoryList", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
191
|
-
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/CategoryList.js");
|
|
192
|
-
})();
|
|
193
|
-
;
|
|
194
|
-
(function () {
|
|
195
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
196
|
-
leaveModule && leaveModule(module);
|
|
197
|
-
})();
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.Wrapper = exports.Cover = exports.ContainedInput = exports.Checkbox = void 0;
|
|
5
|
-
var _react = _interopRequireDefault(require("react"));
|
|
6
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
7
|
-
var _utils = require("../utils");
|
|
8
|
-
var _polished = require("polished");
|
|
9
|
-
var _withId = _interopRequireDefault(require("../hocs/withId"));
|
|
10
|
-
var _excluded = ["value", "className", "id"];
|
|
11
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
(function () {
|
|
15
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
|
-
enterModule && enterModule(module);
|
|
17
|
-
})();
|
|
18
|
-
(function () {
|
|
19
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
20
|
-
enterModule && enterModule(module);
|
|
21
|
-
})();
|
|
22
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
23
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
24
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
25
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
|
-
return a;
|
|
27
|
-
};
|
|
28
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
29
|
-
return a;
|
|
30
|
-
};
|
|
31
|
-
var Wrapper = exports.Wrapper = _styledComponents.default.label.withConfig({
|
|
32
|
-
displayName: "Checkbox__Wrapper",
|
|
33
|
-
componentId: "sc-l110sd-0"
|
|
34
|
-
})(["padding:10px 15px;margin:-10px -15px;"]);
|
|
35
|
-
var ContainedInput = exports.ContainedInput = _styledComponents.default.input.attrs(function () {
|
|
36
|
-
return {
|
|
37
|
-
type: "checkbox"
|
|
38
|
-
};
|
|
39
|
-
}).withConfig({
|
|
40
|
-
displayName: "Checkbox__ContainedInput",
|
|
41
|
-
componentId: "sc-l110sd-1"
|
|
42
|
-
})(["position:absolute;opacity:0;z-index:10;margin:0;"]);
|
|
43
|
-
var Cover = exports.Cover = _styledComponents.default.label.withConfig({
|
|
44
|
-
displayName: "Checkbox__Cover",
|
|
45
|
-
componentId: "sc-l110sd-2"
|
|
46
|
-
})(["display:inline-block;position:relative;height:14px;width:14px;border:1px solid ", ";border-radius:3px;", ":active + &,", ":focus + &{box-shadow:0px 0px 1px 0px ", ";border-color:", ";}", ";"], (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"), ContainedInput, ContainedInput, (0, _utils.getThemeProp)(["colors", "application", "base"], "#777", function (color) {
|
|
47
|
-
return (0, _polished.tint)(0.05, color);
|
|
48
|
-
}), (0, _utils.getThemeProp)(["colors", "application", "base"], "#777"), (0, _utils.ifFlag)("value", (0, _styledComponents.css)(["background-color:", ";&::after{content:\"\u2714\";font-size:12px;line-height:1;position:absolute;top:1px;left:0;right:0;bottom:0;color:white;text-align:center;}"], (0, _utils.getThemeProp)(["colors", "application", "base"], "#777", function (color) {
|
|
49
|
-
return (0, _polished.tint)(0.05, color);
|
|
50
|
-
})), (0, _styledComponents.css)(["background-color:white;"])));
|
|
51
|
-
var Checkbox = exports.Checkbox = function Checkbox(_ref) {
|
|
52
|
-
var value = _ref.value,
|
|
53
|
-
className = _ref.className,
|
|
54
|
-
id = _ref.id,
|
|
55
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
56
|
-
return /*#__PURE__*/_react.default.createElement(Wrapper, {
|
|
57
|
-
className: className,
|
|
58
|
-
htmlFor: id
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(ContainedInput, _extends({
|
|
60
|
-
value: value,
|
|
61
|
-
id: id
|
|
62
|
-
}, otherProps)), /*#__PURE__*/_react.default.createElement(Cover, {
|
|
63
|
-
value: value,
|
|
64
|
-
htmlFor: id
|
|
65
|
-
}));
|
|
66
|
-
};
|
|
67
|
-
var _default = (0, _withId.default)("checkbox")(Checkbox);
|
|
68
|
-
var _default2 = _default;
|
|
69
|
-
var _default3 = exports.default = _default2;
|
|
70
|
-
;
|
|
71
|
-
(function () {
|
|
72
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
73
|
-
if (!reactHotLoader) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/Checkbox.js");
|
|
77
|
-
reactHotLoader.register(ContainedInput, "ContainedInput", "/home/vsts/work/1/s/src/components/Checkbox.js");
|
|
78
|
-
reactHotLoader.register(Cover, "Cover", "/home/vsts/work/1/s/src/components/Checkbox.js");
|
|
79
|
-
reactHotLoader.register(Checkbox, "Checkbox", "/home/vsts/work/1/s/src/components/Checkbox.js");
|
|
80
|
-
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Checkbox.js");
|
|
81
|
-
})();
|
|
82
|
-
;
|
|
83
|
-
(function () {
|
|
84
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
85
|
-
leaveModule && leaveModule(module);
|
|
86
|
-
})();
|
|
87
|
-
;
|
|
88
|
-
(function () {
|
|
89
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
90
|
-
if (!reactHotLoader) {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
reactHotLoader.register(Wrapper, "Wrapper", "/home/vsts/work/1/s/src/components/Checkbox.js");
|
|
94
|
-
reactHotLoader.register(ContainedInput, "ContainedInput", "/home/vsts/work/1/s/src/components/Checkbox.js");
|
|
95
|
-
reactHotLoader.register(Cover, "Cover", "/home/vsts/work/1/s/src/components/Checkbox.js");
|
|
96
|
-
reactHotLoader.register(Checkbox, "Checkbox", "/home/vsts/work/1/s/src/components/Checkbox.js");
|
|
97
|
-
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Checkbox.js");
|
|
98
|
-
})();
|
|
99
|
-
;
|
|
100
|
-
(function () {
|
|
101
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
102
|
-
leaveModule && leaveModule(module);
|
|
103
|
-
})();
|
package/dist/components/Icon.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _react = _interopRequireDefault(require("react"));
|
|
6
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
|
-
var _excluded = ["id"];
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
(function () {
|
|
10
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
11
|
-
enterModule && enterModule(module);
|
|
12
|
-
})();
|
|
13
|
-
(function () {
|
|
14
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
15
|
-
enterModule && enterModule(module);
|
|
16
|
-
})();
|
|
17
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
18
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
19
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
20
|
-
return a;
|
|
21
|
-
};
|
|
22
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
|
-
return a;
|
|
24
|
-
};
|
|
25
|
-
var IconSVG = _styledComponents.default.svg.withConfig({
|
|
26
|
-
displayName: "Icon__IconSVG",
|
|
27
|
-
componentId: "sc-qiy7iw-0"
|
|
28
|
-
})(["height:1em;width:1em;fill:currentColor;stroke:currentColor;"]);
|
|
29
|
-
console.warn("Icon has been deprecated. Use Icon from MaterialUI.");
|
|
30
|
-
var Icon = function Icon(_ref) {
|
|
31
|
-
var id = _ref.id,
|
|
32
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(IconSVG, props, /*#__PURE__*/_react.default.createElement("use", {
|
|
34
|
-
href: "#icon-".concat(id)
|
|
35
|
-
}));
|
|
36
|
-
};
|
|
37
|
-
var _default = Icon;
|
|
38
|
-
var _default2 = _default;
|
|
39
|
-
var _default3 = exports.default = _default2;
|
|
40
|
-
;
|
|
41
|
-
(function () {
|
|
42
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
43
|
-
if (!reactHotLoader) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
reactHotLoader.register(IconSVG, "IconSVG", "/home/vsts/work/1/s/src/components/Icon.js");
|
|
47
|
-
reactHotLoader.register(Icon, "Icon", "/home/vsts/work/1/s/src/components/Icon.js");
|
|
48
|
-
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Icon.js");
|
|
49
|
-
})();
|
|
50
|
-
;
|
|
51
|
-
(function () {
|
|
52
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
53
|
-
leaveModule && leaveModule(module);
|
|
54
|
-
})();
|
|
55
|
-
;
|
|
56
|
-
(function () {
|
|
57
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
58
|
-
if (!reactHotLoader) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
reactHotLoader.register(IconSVG, "IconSVG", "/home/vsts/work/1/s/src/components/Icon.js");
|
|
62
|
-
reactHotLoader.register(Icon, "Icon", "/home/vsts/work/1/s/src/components/Icon.js");
|
|
63
|
-
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Icon.js");
|
|
64
|
-
})();
|
|
65
|
-
;
|
|
66
|
-
(function () {
|
|
67
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
68
|
-
leaveModule && leaveModule(module);
|
|
69
|
-
})();
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.ButtonText = exports.ButtonIcon = void 0;
|
|
5
|
-
var _react = _interopRequireDefault(require("react"));
|
|
6
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
|
-
var _Button = _interopRequireDefault(require("./Button"));
|
|
8
|
-
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
9
|
-
var _Text = _interopRequireDefault(require("./Text"));
|
|
10
|
-
var _excluded = ["icon", "label"];
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
(function () {
|
|
13
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
|
-
enterModule && enterModule(module);
|
|
15
|
-
})();
|
|
16
|
-
(function () {
|
|
17
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
18
|
-
enterModule && enterModule(module);
|
|
19
|
-
})();
|
|
20
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
22
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
|
-
return a;
|
|
24
|
-
};
|
|
25
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
26
|
-
return a;
|
|
27
|
-
};
|
|
28
|
-
var ButtonIcon = exports.ButtonIcon = (0, _styledComponents.default)(_Icon.default).withConfig({
|
|
29
|
-
displayName: "IconButton__ButtonIcon",
|
|
30
|
-
componentId: "sc-xsbiws-0"
|
|
31
|
-
})(["font-size:1.23em;margin:-3px -2px;"]);
|
|
32
|
-
var ButtonText = exports.ButtonText = _styledComponents.default.span.withConfig({
|
|
33
|
-
displayName: "IconButton__ButtonText",
|
|
34
|
-
componentId: "sc-xsbiws-1"
|
|
35
|
-
})(["", " + &{margin-left:12px;vertical-align:top;}"], ButtonIcon);
|
|
36
|
-
var IconButton = function IconButton(_ref) {
|
|
37
|
-
var icon = _ref.icon,
|
|
38
|
-
label = _ref.label,
|
|
39
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(_Button.default, props, icon ? /*#__PURE__*/_react.default.createElement(ButtonIcon, {
|
|
41
|
-
id: icon
|
|
42
|
-
}) : null, label ? /*#__PURE__*/_react.default.createElement(ButtonText, null, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
43
|
-
message: label
|
|
44
|
-
})) : null);
|
|
45
|
-
};
|
|
46
|
-
var _default = IconButton;
|
|
47
|
-
var _default2 = _default;
|
|
48
|
-
var _default3 = exports.default = _default2;
|
|
49
|
-
;
|
|
50
|
-
(function () {
|
|
51
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
52
|
-
if (!reactHotLoader) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
reactHotLoader.register(ButtonIcon, "ButtonIcon", "/home/vsts/work/1/s/src/components/IconButton.js");
|
|
56
|
-
reactHotLoader.register(ButtonText, "ButtonText", "/home/vsts/work/1/s/src/components/IconButton.js");
|
|
57
|
-
reactHotLoader.register(IconButton, "IconButton", "/home/vsts/work/1/s/src/components/IconButton.js");
|
|
58
|
-
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/IconButton.js");
|
|
59
|
-
})();
|
|
60
|
-
;
|
|
61
|
-
(function () {
|
|
62
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
63
|
-
leaveModule && leaveModule(module);
|
|
64
|
-
})();
|
|
65
|
-
;
|
|
66
|
-
(function () {
|
|
67
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
68
|
-
if (!reactHotLoader) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
reactHotLoader.register(ButtonIcon, "ButtonIcon", "/home/vsts/work/1/s/src/components/IconButton.js");
|
|
72
|
-
reactHotLoader.register(ButtonText, "ButtonText", "/home/vsts/work/1/s/src/components/IconButton.js");
|
|
73
|
-
reactHotLoader.register(IconButton, "IconButton", "/home/vsts/work/1/s/src/components/IconButton.js");
|
|
74
|
-
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/IconButton.js");
|
|
75
|
-
})();
|
|
76
|
-
;
|
|
77
|
-
(function () {
|
|
78
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
79
|
-
leaveModule && leaveModule(module);
|
|
80
|
-
})();
|
package/dist/components/Input.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = exports.InputComponent = void 0;
|
|
5
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
|
-
var _reactIntl = require("react-intl");
|
|
8
|
-
var _utils = require("../utils");
|
|
9
|
-
var _excluded = ["placeholder"];
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
|
-
(function () {
|
|
14
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
15
|
-
enterModule && enterModule(module);
|
|
16
|
-
})();
|
|
17
|
-
(function () {
|
|
18
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
19
|
-
enterModule && enterModule(module);
|
|
20
|
-
})();
|
|
21
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
22
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
23
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
24
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
25
|
-
return a;
|
|
26
|
-
};
|
|
27
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
28
|
-
return a;
|
|
29
|
-
};
|
|
30
|
-
var defaultFormatMessage = function defaultFormatMessage(message) {
|
|
31
|
-
throw new Error("Attempting to translate message " + message.id + " outside of Intl context");
|
|
32
|
-
};
|
|
33
|
-
var maybeTranslate = function maybeTranslate(formatMessage, message) {
|
|
34
|
-
if (formatMessage === void 0) {
|
|
35
|
-
formatMessage = defaultFormatMessage;
|
|
36
|
-
}
|
|
37
|
-
return message && message.id ? formatMessage(message) : message;
|
|
38
|
-
};
|
|
39
|
-
var useIntlSoft = function useIntlSoft() {
|
|
40
|
-
return (0, _react.useContext)(_reactIntl.IntlContext) || {};
|
|
41
|
-
};
|
|
42
|
-
__signature__(useIntlSoft, "useContext{}");
|
|
43
|
-
__signature__(useIntlSoft, "useContext{}");
|
|
44
|
-
var InputComponent = exports.InputComponent = _styledComponents.default.input.withConfig({
|
|
45
|
-
displayName: "Input__InputComponent",
|
|
46
|
-
componentId: "sc-19q5ujg-0"
|
|
47
|
-
})(["font-family:", ";box-sizing:border-box;flex:0 0 auto;height:30px;padding:5px 10px;border:1px solid ", ";border-radius:5px;&:focus{border-color:#4fa1f0;box-shadow:0 0 4px #4fa1f0;outline:none;}"], (0, _utils.getThemeProp)(["fonts", "base"], "sans-serif"), (0, _utils.getThemeProp)(["colors", "borderLight"], "#cccccc"));
|
|
48
|
-
var Input = function Input(_ref) {
|
|
49
|
-
var placeholder = _ref.placeholder,
|
|
50
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
51
|
-
var _useIntlSoft = useIntlSoft(),
|
|
52
|
-
formatMessage = _useIntlSoft.formatMessage;
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement(InputComponent, _extends({}, props, {
|
|
54
|
-
placeholder: maybeTranslate(formatMessage, placeholder)
|
|
55
|
-
}));
|
|
56
|
-
};
|
|
57
|
-
__signature__(Input, "useIntlSoft{{ formatMessage }}", function () {
|
|
58
|
-
return [useIntlSoft];
|
|
59
|
-
});
|
|
60
|
-
__signature__(Input, "useIntlSoft{{ formatMessage }}", function () {
|
|
61
|
-
return [useIntlSoft];
|
|
62
|
-
});
|
|
63
|
-
var _default = Input;
|
|
64
|
-
var _default2 = _default;
|
|
65
|
-
var _default3 = exports.default = _default2;
|
|
66
|
-
;
|
|
67
|
-
(function () {
|
|
68
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
69
|
-
if (!reactHotLoader) {
|
|
70
|
-
return;
|
|
71
|
-
}
|
|
72
|
-
reactHotLoader.register(defaultFormatMessage, "defaultFormatMessage", "/home/vsts/work/1/s/src/components/Input.js");
|
|
73
|
-
reactHotLoader.register(maybeTranslate, "maybeTranslate", "/home/vsts/work/1/s/src/components/Input.js");
|
|
74
|
-
reactHotLoader.register(useIntlSoft, "useIntlSoft", "/home/vsts/work/1/s/src/components/Input.js");
|
|
75
|
-
reactHotLoader.register(InputComponent, "InputComponent", "/home/vsts/work/1/s/src/components/Input.js");
|
|
76
|
-
reactHotLoader.register(Input, "Input", "/home/vsts/work/1/s/src/components/Input.js");
|
|
77
|
-
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Input.js");
|
|
78
|
-
})();
|
|
79
|
-
;
|
|
80
|
-
(function () {
|
|
81
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
82
|
-
leaveModule && leaveModule(module);
|
|
83
|
-
})();
|
|
84
|
-
;
|
|
85
|
-
(function () {
|
|
86
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
87
|
-
if (!reactHotLoader) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
reactHotLoader.register(defaultFormatMessage, "defaultFormatMessage", "/home/vsts/work/1/s/src/components/Input.js");
|
|
91
|
-
reactHotLoader.register(maybeTranslate, "maybeTranslate", "/home/vsts/work/1/s/src/components/Input.js");
|
|
92
|
-
reactHotLoader.register(useIntlSoft, "useIntlSoft", "/home/vsts/work/1/s/src/components/Input.js");
|
|
93
|
-
reactHotLoader.register(InputComponent, "InputComponent", "/home/vsts/work/1/s/src/components/Input.js");
|
|
94
|
-
reactHotLoader.register(Input, "Input", "/home/vsts/work/1/s/src/components/Input.js");
|
|
95
|
-
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Input.js");
|
|
96
|
-
})();
|
|
97
|
-
;
|
|
98
|
-
(function () {
|
|
99
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
100
|
-
leaveModule && leaveModule(module);
|
|
101
|
-
})();
|