orc-shared 1.5.0-dev.1 → 1.5.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/actions/applications.js +14 -52
- package/dist/actions/authentication.js +10 -45
- package/dist/actions/countries.js +6 -36
- package/dist/actions/locale.js +14 -54
- package/dist/actions/makeApiAction.js +31 -79
- package/dist/actions/makeOrcApiAction.js +3 -26
- package/dist/actions/metadata.js +65 -174
- package/dist/actions/modules.js +0 -26
- package/dist/actions/navigation.js +3 -33
- package/dist/actions/requestState.js +0 -18
- package/dist/actions/requestsApi.js +0 -17
- package/dist/actions/scopes.js +14 -56
- package/dist/actions/timezones.js +6 -36
- package/dist/actions/toasts.js +3 -23
- package/dist/actions/versionInfo.js +6 -39
- package/dist/actions/view.js +0 -38
- package/dist/buildStore.js +3 -53
- package/dist/components/AppFrame/About.js +8 -70
- package/dist/components/AppFrame/Anchor.js +1 -25
- package/dist/components/AppFrame/AppFrame.js +23 -92
- package/dist/components/AppFrame/ApplicationSelector/ApplicationDialog.js +4 -35
- package/dist/components/AppFrame/ApplicationSelector/Header.js +1 -31
- package/dist/components/AppFrame/ApplicationSelector/index.js +1 -30
- package/dist/components/AppFrame/ConnectedToastList.js +0 -31
- package/dist/components/AppFrame/Help.js +0 -25
- package/dist/components/AppFrame/MenuItem.js +17 -70
- package/dist/components/AppFrame/Preferences.js +17 -79
- package/dist/components/AppFrame/Sidebar.js +8 -53
- package/dist/components/AppFrame/Topbar.js +9 -65
- package/dist/components/AppFrame/index.js +0 -20
- package/dist/components/AppFrame/useApplicationHelpUrl.js +0 -22
- package/dist/components/ApplicationModuleLoader.js +7 -46
- package/dist/components/Authenticate.js +5 -48
- package/dist/components/Button.js +0 -24
- package/dist/components/CategoryList.js +27 -82
- package/dist/components/Checkbox.js +3 -41
- package/dist/components/ColumnWrapper.js +0 -19
- package/dist/components/Culture.js +0 -29
- package/dist/components/DevPages.js +0 -21
- package/dist/components/DropMenu/Menu.js +4 -36
- package/dist/components/DropMenu/index.js +12 -50
- package/dist/components/ErrorPlaceholder.js +3 -31
- package/dist/components/Form/Combination.js +3 -28
- package/dist/components/Form/Field.js +6 -37
- package/dist/components/Form/FieldElements.js +9 -41
- package/dist/components/Form/FieldList.js +28 -92
- package/dist/components/Form/Fieldset.js +1 -27
- package/dist/components/Form/Form.js +6 -37
- package/dist/components/Form/FormElement.js +1 -20
- package/dist/components/Form/InputField.js +17 -66
- package/dist/components/Form/Inputs/Button.js +5 -35
- package/dist/components/Form/Inputs/Date.js +2 -28
- package/dist/components/Form/Inputs/FieldButtons.js +0 -25
- package/dist/components/Form/Inputs/Number.js +7 -46
- package/dist/components/Form/Inputs/ReadOnly.js +0 -29
- package/dist/components/Form/Inputs/SmallButton.js +6 -38
- package/dist/components/Form/Inputs/Text.js +8 -41
- package/dist/components/Form/Inputs/Time.js +4 -33
- package/dist/components/Form/Inputs/Toggles.js +5 -39
- package/dist/components/Form/Inputs/Translation.js +21 -78
- package/dist/components/Form/Inputs/index.js +0 -28
- package/dist/components/Form/index.js +0 -20
- package/dist/components/Head.js +0 -22
- package/dist/components/I18n.js +0 -28
- package/dist/components/Icon.js +1 -27
- package/dist/components/IconButton.js +2 -32
- package/dist/components/Input.js +2 -42
- package/dist/components/InternetExplorerWarningMessage.js +0 -31
- package/dist/components/List/DataCell.js +3 -42
- package/dist/components/List/HeadCell.js +3 -43
- package/dist/components/List/HeadRow.js +2 -25
- package/dist/components/List/List.js +37 -107
- package/dist/components/List/Row.js +7 -38
- package/dist/components/List/enhanceColumnDefs.js +3 -29
- package/dist/components/List/index.js +0 -20
- package/dist/components/Loader.js +5 -48
- package/dist/components/LoadingIcon.js +0 -24
- package/dist/components/MaterialUI/DataDisplay/Badge.js +2 -31
- package/dist/components/MaterialUI/DataDisplay/Chip.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/CollapsableList.js +7 -51
- package/dist/components/MaterialUI/DataDisplay/Divider.js +0 -30
- package/dist/components/MaterialUI/DataDisplay/Icon.js +2 -28
- package/dist/components/MaterialUI/DataDisplay/List.js +16 -55
- package/dist/components/MaterialUI/DataDisplay/Modal.js +4 -37
- package/dist/components/MaterialUI/DataDisplay/Notification.js +17 -69
- package/dist/components/MaterialUI/DataDisplay/NotificationProps.js +3 -34
- package/dist/components/MaterialUI/DataDisplay/PopperedElements/PopperedIcon.js +0 -22
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ActionModal.js +5 -37
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Address.js +1 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/ConfirmationModal.js +7 -28
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/DiscountedPrice.js +2 -32
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +17 -57
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Placeholder.js +4 -33
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/SectionTitle.js +0 -25
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +14 -60
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/TableInfoBar.js +0 -29
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/Translations.js +15 -59
- package/dist/components/MaterialUI/DataDisplay/SelectionList.js +23 -70
- package/dist/components/MaterialUI/DataDisplay/Table.js +34 -123
- package/dist/components/MaterialUI/DataDisplay/TableHeaderCell.js +0 -35
- package/dist/components/MaterialUI/DataDisplay/TableProps.js +3 -49
- package/dist/components/MaterialUI/DataDisplay/Timeline.js +1 -21
- package/dist/components/MaterialUI/DataDisplay/TimelineItem.js +4 -32
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +7 -46
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedIcon.js +3 -29
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/TooltippedTypography.js +0 -21
- package/dist/components/MaterialUI/DataDisplay/TransferList.js +32 -97
- package/dist/components/MaterialUI/DataDisplay/chipProps.js +3 -38
- package/dist/components/MaterialUI/DataDisplay/collapsableListProps.js +3 -37
- package/dist/components/MaterialUI/DataDisplay/dividerProps.js +3 -41
- package/dist/components/MaterialUI/DataDisplay/index.js +0 -33
- package/dist/components/MaterialUI/DataDisplay/modalProps.js +3 -36
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +5 -68
- package/dist/components/MaterialUI/DataDisplay/useTableSelection.js +11 -48
- package/dist/components/MaterialUI/Feedback/NotificationContext.js +5 -40
- package/dist/components/MaterialUI/Feedback/loadingScreen.js +5 -44
- package/dist/components/MaterialUI/Feedback/useNotification.js +0 -21
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +5 -44
- package/dist/components/MaterialUI/Inputs/AutocompleteProps.js +3 -37
- package/dist/components/MaterialUI/Inputs/Checkbox.js +3 -40
- package/dist/components/MaterialUI/Inputs/CheckboxGroup.js +3 -43
- package/dist/components/MaterialUI/Inputs/CheckboxGroupProps.js +3 -38
- package/dist/components/MaterialUI/Inputs/CheckboxProps.js +3 -39
- package/dist/components/MaterialUI/Inputs/DatePicker.js +18 -57
- package/dist/components/MaterialUI/Inputs/InputBase.js +7 -56
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +3 -51
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +12 -65
- package/dist/components/MaterialUI/Inputs/PredefinedElements/TitledSelect.js +3 -31
- package/dist/components/MaterialUI/Inputs/Radio.js +8 -54
- package/dist/components/MaterialUI/Inputs/RadioProps.js +3 -41
- package/dist/components/MaterialUI/Inputs/Select.js +10 -72
- package/dist/components/MaterialUI/Inputs/SelectProps.js +3 -46
- package/dist/components/MaterialUI/Inputs/StandaloneRadio.js +3 -35
- package/dist/components/MaterialUI/Inputs/Switch.js +4 -38
- package/dist/components/MaterialUI/Inputs/SwitchProps.js +3 -40
- package/dist/components/MaterialUI/Inputs/TimePicker.js +14 -91
- package/dist/components/MaterialUI/Inputs/createInput.js +5 -30
- package/dist/components/MaterialUI/Inputs/index.js +0 -35
- package/dist/components/MaterialUI/Inputs/standaloneRadioProps.js +3 -41
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +12 -56
- package/dist/components/MaterialUI/Navigation/DropDownMenuProps.js +3 -33
- package/dist/components/MaterialUI/Navigation/ExternalLink.js +2 -27
- package/dist/components/MaterialUI/Navigation/PredefinedElements/ActionMenu.js +4 -31
- package/dist/components/MaterialUI/Navigation/TabBar.js +22 -103
- package/dist/components/MaterialUI/Navigation/TabLabel.js +7 -41
- package/dist/components/MaterialUI/ScopeSelector/ScopeSelector.js +7 -42
- package/dist/components/MaterialUI/ScopeSelector/ScopeTreeView.js +22 -62
- package/dist/components/MaterialUI/ScopeSelector/TreeItem.js +16 -68
- package/dist/components/MaterialUI/Surfaces/ExpansionPanel.js +15 -55
- package/dist/components/MaterialUI/Surfaces/Paper.js +1 -31
- package/dist/components/MaterialUI/Surfaces/PredefinedElements/TitledPaper.js +3 -28
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +19 -62
- package/dist/components/MaterialUI/Surfaces/expansionPanelProps.js +3 -55
- package/dist/components/MaterialUI/Surfaces/paperProps.js +3 -36
- package/dist/components/MaterialUI/componentProps.js +3 -29
- package/dist/components/MaterialUI/hocs/withDeferredPopper.js +10 -59
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +8 -44
- package/dist/components/MaterialUI/muiThemes.js +5 -57
- package/dist/components/MaterialUI/textProps.js +3 -33
- package/dist/components/Modal/Background.js +0 -19
- package/dist/components/Modal/Dialog.js +2 -26
- package/dist/components/Modal/Wrapper.js +0 -26
- package/dist/components/Modal/index.js +8 -44
- package/dist/components/Modules.js +21 -93
- package/dist/components/MultiSelector.js +21 -74
- package/dist/components/Navigation/Bar.js +29 -90
- package/dist/components/Navigation/Tab.js +22 -74
- package/dist/components/Navigation/index.js +2 -21
- package/dist/components/Navigation/useNavigationState.js +90 -173
- package/dist/components/Placeholder.js +5 -43
- package/dist/components/Provision.js +4 -36
- package/dist/components/Routing/FullPage.js +14 -37
- package/dist/components/Routing/Page.js +14 -51
- package/dist/components/Routing/Segment.js +5 -30
- package/dist/components/Routing/SegmentPage.js +26 -106
- package/dist/components/Routing/SubPage.js +22 -59
- package/dist/components/Routing/withWaypointing.js +5 -36
- package/dist/components/Scope/ScopeModificationConfirmationDialog.js +3 -30
- package/dist/components/Scope/ScopeNode.js +8 -49
- package/dist/components/Scope/Selector.js +8 -44
- package/dist/components/Scope/index.js +29 -96
- package/dist/components/Scope/useScopeConfirmationModalState.js +33 -100
- package/dist/components/Scope/useScopeData.js +0 -25
- package/dist/components/Scope/useScopeSelect.js +0 -26
- package/dist/components/Selector.js +15 -76
- package/dist/components/Sidepanel.js +0 -28
- package/dist/components/Spritesheet.js +0 -26
- package/dist/components/Switch.js +11 -51
- package/dist/components/Text.js +6 -50
- package/dist/components/ToastList.js +5 -45
- package/dist/components/Toolbar.js +16 -74
- package/dist/components/Tooltip.js +0 -24
- package/dist/components/Treeview/Branch.js +0 -25
- package/dist/components/Treeview/Label.js +0 -29
- package/dist/components/Treeview/Leaf.js +0 -21
- package/dist/components/Treeview/Node.js +17 -55
- package/dist/components/Treeview/index.js +25 -66
- package/dist/components/Treeview/settings.js +0 -17
- package/dist/constants.js +5 -18
- package/dist/content/iconsSheet.svg +22 -0
- package/dist/content/orckestra-logo-white.png +0 -0
- package/dist/getTheme.js +0 -29
- package/dist/getThemeOverrides.js +3 -22
- package/dist/hocs/routingConnector.js +0 -21
- package/dist/hocs/withAuthentication.js +4 -26
- package/dist/hocs/withClickOutside.js +2 -28
- package/dist/hocs/withErrorBoundary.js +2 -37
- package/dist/hocs/withId.js +1 -30
- package/dist/hocs/withInfiniteScroll.js +15 -32
- package/dist/hocs/withInitialLoad.js +0 -20
- package/dist/hocs/withLocaleSwitch.js +0 -19
- package/dist/hocs/withNavigationLink.js +5 -32
- package/dist/hocs/withRequestActivity.js +0 -21
- package/dist/hocs/withScopeData.js +6 -33
- package/dist/hocs/withScrollBox.js +2 -31
- package/dist/hocs/withToggle.js +9 -37
- package/dist/hocs/withUpdateHandler.js +3 -23
- package/dist/hocs/withViewState.js +5 -32
- package/dist/hooks/useDispatchWithModulesData.js +0 -26
- package/dist/hooks/useEditState.js +10 -105
- package/dist/hooks/useEntityLoader.js +18 -67
- package/dist/hooks/useFullEntityEditState.js +9 -56
- package/dist/hooks/useInfiniteScroll.js +5 -33
- package/dist/hooks/useLabelMessage.js +3 -42
- package/dist/hooks/useLoader.js +0 -27
- package/dist/hooks/useMultipleFieldEditState.js +3 -40
- package/dist/hooks/useNavigationHandler.js +3 -28
- package/dist/hooks/useNotificationRequestState.js +17 -47
- package/dist/hooks/usePreviousModified.js +0 -24
- package/dist/hooks/useRequestState.js +8 -38
- package/dist/hooks/useSelectorAndUnwrap.js +0 -23
- package/dist/hooks/useToggle.js +5 -35
- package/dist/hooks/useViewState.js +0 -23
- package/dist/index.js +1 -2
- package/dist/reducers/applications.js +0 -23
- package/dist/reducers/authentication.js +6 -37
- package/dist/reducers/countries.js +0 -25
- package/dist/reducers/localeFactory.js +0 -30
- package/dist/reducers/metadata.js +3 -63
- package/dist/reducers/modules.js +0 -36
- package/dist/reducers/navigation.js +8 -47
- package/dist/reducers/request.js +0 -28
- package/dist/reducers/requestStates.js +0 -42
- package/dist/reducers/scopes.js +0 -28
- package/dist/reducers/settings.js +4 -39
- package/dist/reducers/timezones.js +0 -25
- package/dist/reducers/toasts.js +0 -27
- package/dist/reducers/versionInfo.js +0 -24
- package/dist/reducers/view.js +36 -84
- package/dist/schemas/countries.js +0 -17
- package/dist/schemas/definitions.js +0 -17
- package/dist/schemas/metadata.js +0 -17
- package/dist/schemas/productDefinitions.js +0 -17
- package/dist/schemas/scopes.js +0 -17
- package/dist/schemas/timezones.js +0 -17
- package/dist/selectors/applications.js +0 -20
- package/dist/selectors/authentication.js +17 -41
- package/dist/selectors/countries.js +0 -22
- package/dist/selectors/locale.js +1 -29
- package/dist/selectors/metadata.js +4 -45
- package/dist/selectors/modules.js +3 -22
- package/dist/selectors/navigation.js +9 -39
- package/dist/selectors/requestStates.js +0 -22
- package/dist/selectors/requests.js +2 -22
- package/dist/selectors/route.js +0 -21
- package/dist/selectors/scope.js +0 -32
- package/dist/selectors/settings.js +0 -18
- package/dist/selectors/timezones.js +0 -19
- package/dist/selectors/versionInfo.js +0 -18
- package/dist/selectors/view.js +3 -74
- package/dist/sharedMessages.js +0 -17
- package/dist/spawnerMiddleware.js +0 -24
- package/dist/utils/buildUrl.js +7 -38
- package/dist/utils/countryHelper.js +0 -18
- package/dist/utils/curry.js +0 -19
- package/dist/utils/debounce.js +1 -20
- package/dist/utils/displayModeHelper.js +0 -24
- package/dist/utils/domHelper.js +0 -17
- package/dist/utils/flatten.js +7 -38
- package/dist/utils/index.js +0 -31
- package/dist/utils/insertIcons.js +0 -21
- package/dist/utils/localizationHelper.js +0 -26
- package/dist/utils/logPass.js +1 -22
- package/dist/utils/mapHelper.js +1 -25
- package/dist/utils/memoize.js +0 -23
- package/dist/utils/modelValidationHelper.js +3 -42
- package/dist/utils/normalizeForSearch.js +2 -19
- package/dist/utils/objectHelper.js +2 -24
- package/dist/utils/parseHelper.js +0 -32
- package/dist/utils/profilerHelper.js +0 -18
- package/dist/utils/propertyHelper.js +1 -38
- package/dist/utils/propertyValidator.js +0 -25
- package/dist/utils/requestProcessingHelper.js +0 -24
- package/dist/utils/safeGet.js +0 -18
- package/dist/utils/setTranslation.js +1 -28
- package/dist/utils/setTranslationWithFallback.js +1 -33
- package/dist/utils/stripKey.js +1 -23
- package/dist/utils/styledPropFuncs.js +3 -29
- package/dist/utils/testUtils.js +14 -91
- package/dist/utils/timezoneHelper.js +8 -46
- package/dist/utils/unwrapImmutable.js +0 -19
- package/dist/utils/urlHelper.js +3 -28
- package/dist/whyDidYouRerender.js +0 -5
- package/package.json +3 -3
- package/src/components/Routing/SubPage.js +17 -2
- package/src/components/Routing/SubPage.test.js +168 -1
- package/src/constants.js +2 -0
- package/src/content/iconsSheet.svg +22 -0
- package/src/content/orckestra-logo-white.png +0 -0
- package/src/hooks/useEditState.js +12 -2
- package/src/hooks/useEditState.test.js +1 -1
- package/src/selectors/authentication.js +13 -0
- package/src/selectors/authentication.test.js +322 -0
|
@@ -2,74 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.TreeContext = exports.RootNode = exports.Node = exports.LeafNode = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _Branch = require("./Branch");
|
|
9
|
-
|
|
10
7
|
var _Leaf = require("./Leaf");
|
|
11
|
-
|
|
12
8
|
var _Label = require("./Label");
|
|
13
|
-
|
|
14
9
|
var _utils = require("../../utils");
|
|
15
|
-
|
|
16
10
|
var _excluded = ["dark", "isSelectedNode"],
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
_excluded2 = ["isSelectedNode"];
|
|
19
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
|
|
21
13
|
(function () {
|
|
22
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
23
15
|
enterModule && enterModule(module);
|
|
24
16
|
})();
|
|
25
|
-
|
|
26
17
|
(function () {
|
|
27
18
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
28
19
|
enterModule && enterModule(module);
|
|
29
20
|
})();
|
|
30
|
-
|
|
31
21
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
32
|
-
|
|
33
22
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
34
|
-
|
|
35
23
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
36
|
-
|
|
37
|
-
function
|
|
38
|
-
|
|
24
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
26
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
39
27
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
40
|
-
|
|
41
28
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
42
|
-
|
|
43
29
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
44
30
|
return a;
|
|
45
31
|
};
|
|
46
|
-
|
|
47
32
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
48
33
|
return a;
|
|
49
34
|
};
|
|
50
|
-
|
|
51
35
|
var TreeContext = _react.default.createContext();
|
|
52
|
-
|
|
53
36
|
exports.TreeContext = TreeContext;
|
|
54
|
-
|
|
55
37
|
var LeafNode = function LeafNode(_ref) {
|
|
56
38
|
var dark = _ref.dark,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
39
|
+
isSelectedNode = _ref.isSelectedNode,
|
|
40
|
+
nodeData = _objectWithoutProperties(_ref, _excluded);
|
|
60
41
|
return /*#__PURE__*/_react.default.createElement(_Leaf.Leaf, {
|
|
61
42
|
dark: dark
|
|
62
43
|
}, /*#__PURE__*/_react.default.createElement(TreeContext.Consumer, null, function (_ref2) {
|
|
63
44
|
var Content = _ref2.Content,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
45
|
+
nodeState = _ref2.nodeState,
|
|
46
|
+
updateNodeState = _ref2.updateNodeState,
|
|
47
|
+
dark = _ref2.dark,
|
|
48
|
+
otherProps = _ref2.otherProps;
|
|
69
49
|
var toggle = function toggle() {
|
|
70
50
|
return updateNodeState(_objectSpread(_objectSpread({}, nodeState), {}, _defineProperty({}, nodeData.id, !nodeData.open)));
|
|
71
51
|
};
|
|
72
|
-
|
|
73
52
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _utils.safeGet)(nodeData, "children", "length") ? [/*#__PURE__*/_react.default.createElement(_Label.BeforeIndicator, {
|
|
74
53
|
key: "a"
|
|
75
54
|
}), /*#__PURE__*/_react.default.createElement(_Label.Indicator, {
|
|
@@ -82,35 +61,30 @@ var LeafNode = function LeafNode(_ref) {
|
|
|
82
61
|
}, /*#__PURE__*/_react.default.createElement(Content, _extends({}, (0, _utils.stripKey)("children", nodeData), otherProps))));
|
|
83
62
|
}));
|
|
84
63
|
};
|
|
85
|
-
|
|
86
64
|
exports.LeafNode = LeafNode;
|
|
87
65
|
LeafNode.displayName = "LeafNode";
|
|
88
|
-
|
|
89
66
|
var RootNode = function RootNode(_ref3) {
|
|
90
67
|
var isSelectedNode = _ref3.isSelectedNode,
|
|
91
|
-
|
|
92
|
-
|
|
68
|
+
nodeData = _objectWithoutProperties(_ref3, _excluded2);
|
|
93
69
|
return /*#__PURE__*/_react.default.createElement(_Leaf.Root, null, /*#__PURE__*/_react.default.createElement(_Label.Label, {
|
|
94
70
|
isSelectedNode: isSelectedNode
|
|
95
71
|
}, /*#__PURE__*/_react.default.createElement(TreeContext.Consumer, null, function (_ref4) {
|
|
96
72
|
var Content = _ref4.Content,
|
|
97
|
-
|
|
73
|
+
otherProps = _ref4.otherProps;
|
|
98
74
|
return /*#__PURE__*/_react.default.createElement(Content, _extends({}, (0, _utils.stripKey)("children", nodeData), otherProps));
|
|
99
75
|
})));
|
|
100
76
|
};
|
|
101
|
-
|
|
102
77
|
exports.RootNode = RootNode;
|
|
103
78
|
RootNode.displayName = "RootNode";
|
|
104
|
-
|
|
105
79
|
var Node = function Node(_ref5) {
|
|
106
80
|
var root = _ref5.root,
|
|
107
|
-
|
|
81
|
+
id = _ref5.id;
|
|
108
82
|
return /*#__PURE__*/_react.default.createElement(TreeContext.Consumer, null, function (_ref6) {
|
|
109
83
|
var openAll = _ref6.openAll,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
84
|
+
getNode = _ref6.getNode,
|
|
85
|
+
selectedNodeId = _ref6.selectedNodeId,
|
|
86
|
+
nodeState = _ref6.nodeState,
|
|
87
|
+
dark = _ref6.dark;
|
|
114
88
|
var nodeData = getNode(id);
|
|
115
89
|
if (!nodeData) return null;
|
|
116
90
|
var isSelectedNode = selectedNodeId === id;
|
|
@@ -131,7 +105,6 @@ var Node = function Node(_ref5) {
|
|
|
131
105
|
})) : null);
|
|
132
106
|
});
|
|
133
107
|
};
|
|
134
|
-
|
|
135
108
|
exports.Node = Node;
|
|
136
109
|
Node.displayName = "Node";
|
|
137
110
|
var _default = Node;
|
|
@@ -139,46 +112,35 @@ var _default2 = _default;
|
|
|
139
112
|
var _default3 = _default2;
|
|
140
113
|
exports.default = _default3;
|
|
141
114
|
;
|
|
142
|
-
|
|
143
115
|
(function () {
|
|
144
116
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
145
|
-
|
|
146
117
|
if (!reactHotLoader) {
|
|
147
118
|
return;
|
|
148
119
|
}
|
|
149
|
-
|
|
150
120
|
reactHotLoader.register(TreeContext, "TreeContext", "/home/vsts/work/1/s/src/components/Treeview/Node.js");
|
|
151
121
|
reactHotLoader.register(LeafNode, "LeafNode", "/home/vsts/work/1/s/src/components/Treeview/Node.js");
|
|
152
122
|
reactHotLoader.register(RootNode, "RootNode", "/home/vsts/work/1/s/src/components/Treeview/Node.js");
|
|
153
123
|
reactHotLoader.register(Node, "Node", "/home/vsts/work/1/s/src/components/Treeview/Node.js");
|
|
154
124
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Treeview/Node.js");
|
|
155
125
|
})();
|
|
156
|
-
|
|
157
126
|
;
|
|
158
|
-
|
|
159
127
|
(function () {
|
|
160
128
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
161
129
|
leaveModule && leaveModule(module);
|
|
162
130
|
})();
|
|
163
|
-
|
|
164
131
|
;
|
|
165
|
-
|
|
166
132
|
(function () {
|
|
167
133
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
168
|
-
|
|
169
134
|
if (!reactHotLoader) {
|
|
170
135
|
return;
|
|
171
136
|
}
|
|
172
|
-
|
|
173
137
|
reactHotLoader.register(TreeContext, "TreeContext", "/home/vsts/work/1/s/src/components/Treeview/Node.js");
|
|
174
138
|
reactHotLoader.register(LeafNode, "LeafNode", "/home/vsts/work/1/s/src/components/Treeview/Node.js");
|
|
175
139
|
reactHotLoader.register(RootNode, "RootNode", "/home/vsts/work/1/s/src/components/Treeview/Node.js");
|
|
176
140
|
reactHotLoader.register(Node, "Node", "/home/vsts/work/1/s/src/components/Treeview/Node.js");
|
|
177
141
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Treeview/Node.js");
|
|
178
142
|
})();
|
|
179
|
-
|
|
180
143
|
;
|
|
181
|
-
|
|
182
144
|
(function () {
|
|
183
145
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
184
146
|
leaveModule && leaveModule(module);
|
|
@@ -2,94 +2,68 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = exports.Treeview = void 0;
|
|
5
|
-
|
|
6
5
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
|
|
8
6
|
var _useViewState3 = _interopRequireDefault(require("../../hooks/useViewState"));
|
|
9
|
-
|
|
10
7
|
var _Branch = require("./Branch");
|
|
11
|
-
|
|
12
8
|
var _Node = _interopRequireWildcard(require("./Node"));
|
|
13
|
-
|
|
14
9
|
var _excluded = ["dark", "Content", "rootId", "selectedNodeId", "getNode", "openAll", "name", "defaultNodeState"];
|
|
15
|
-
|
|
16
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
|
|
18
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
20
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
22
13
|
(function () {
|
|
23
14
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
24
15
|
enterModule && enterModule(module);
|
|
25
16
|
})();
|
|
26
|
-
|
|
27
17
|
(function () {
|
|
28
18
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
29
19
|
enterModule && enterModule(module);
|
|
30
20
|
})();
|
|
31
|
-
|
|
32
21
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
|
-
|
|
34
22
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
35
|
-
|
|
36
|
-
function
|
|
37
|
-
|
|
23
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
24
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
25
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
38
26
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
39
|
-
|
|
40
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."); }
|
|
41
|
-
|
|
42
28
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
43
|
-
|
|
44
|
-
function
|
|
45
|
-
|
|
46
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
47
|
-
|
|
29
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
30
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
48
31
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
|
-
|
|
50
32
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
51
|
-
|
|
52
33
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53
|
-
|
|
54
34
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
55
35
|
return a;
|
|
56
36
|
};
|
|
57
|
-
|
|
58
37
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
59
38
|
return a;
|
|
60
39
|
};
|
|
61
|
-
|
|
62
40
|
var Treeview = function Treeview(_ref) {
|
|
63
41
|
var dark = _ref.dark,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
42
|
+
_ref$Content = _ref.Content,
|
|
43
|
+
Content = _ref$Content === void 0 ? function () {
|
|
44
|
+
console.warn("Treeview is missing a Content prop, will render blank nodes");
|
|
45
|
+
return null;
|
|
46
|
+
} : _ref$Content,
|
|
47
|
+
rootId = _ref.rootId,
|
|
48
|
+
selectedNodeId = _ref.selectedNodeId,
|
|
49
|
+
_ref$getNode = _ref.getNode,
|
|
50
|
+
getNode = _ref$getNode === void 0 ? function () {
|
|
51
|
+
console.warn("Treeview is missing a getNode prop, will render empty");
|
|
52
|
+
return null;
|
|
53
|
+
} : _ref$getNode,
|
|
54
|
+
openAll = _ref.openAll,
|
|
55
|
+
name = _ref.name,
|
|
56
|
+
_ref$defaultNodeState = _ref.defaultNodeState,
|
|
57
|
+
defaultNodeState = _ref$defaultNodeState === void 0 ? {} : _ref$defaultNodeState,
|
|
58
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
82
59
|
var _useViewState = (0, _useViewState3.default)(name),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
60
|
+
_useViewState2 = _slicedToArray(_useViewState, 2),
|
|
61
|
+
viewState = _useViewState2[0],
|
|
62
|
+
updateViewState = _useViewState2[1];
|
|
87
63
|
var nodeState = _objectSpread(_objectSpread({}, defaultNodeState), viewState.nodeState);
|
|
88
|
-
|
|
89
64
|
var updateNodeState = function updateNodeState(update) {
|
|
90
65
|
return updateViewState("nodeState", update);
|
|
91
66
|
};
|
|
92
|
-
|
|
93
67
|
return /*#__PURE__*/_react.default.createElement(_Branch.Wrapper, null, /*#__PURE__*/_react.default.createElement(_Node.TreeContext.Provider, {
|
|
94
68
|
value: {
|
|
95
69
|
dark: dark,
|
|
@@ -106,56 +80,41 @@ var Treeview = function Treeview(_ref) {
|
|
|
106
80
|
root: true
|
|
107
81
|
})));
|
|
108
82
|
};
|
|
109
|
-
|
|
110
83
|
exports.Treeview = Treeview;
|
|
111
|
-
|
|
112
84
|
__signature__(Treeview, "useViewState{[viewState, updateViewState]}", function () {
|
|
113
85
|
return [_useViewState3.default];
|
|
114
86
|
});
|
|
115
|
-
|
|
116
87
|
__signature__(Treeview, "useViewState{[viewState, updateViewState]}", function () {
|
|
117
88
|
return [_useViewState3.default];
|
|
118
89
|
});
|
|
119
|
-
|
|
120
90
|
var _default = Treeview;
|
|
121
91
|
var _default2 = _default;
|
|
122
92
|
var _default3 = _default2;
|
|
123
93
|
exports.default = _default3;
|
|
124
94
|
;
|
|
125
|
-
|
|
126
95
|
(function () {
|
|
127
96
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
128
|
-
|
|
129
97
|
if (!reactHotLoader) {
|
|
130
98
|
return;
|
|
131
99
|
}
|
|
132
|
-
|
|
133
100
|
reactHotLoader.register(Treeview, "Treeview", "/home/vsts/work/1/s/src/components/Treeview/index.js");
|
|
134
101
|
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/components/Treeview/index.js");
|
|
135
102
|
})();
|
|
136
|
-
|
|
137
103
|
;
|
|
138
|
-
|
|
139
104
|
(function () {
|
|
140
105
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
141
106
|
leaveModule && leaveModule(module);
|
|
142
107
|
})();
|
|
143
|
-
|
|
144
108
|
;
|
|
145
|
-
|
|
146
109
|
(function () {
|
|
147
110
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
148
|
-
|
|
149
111
|
if (!reactHotLoader) {
|
|
150
112
|
return;
|
|
151
113
|
}
|
|
152
|
-
|
|
153
114
|
reactHotLoader.register(Treeview, "Treeview", "/home/vsts/work/1/s/src/components/Treeview/index.js");
|
|
154
115
|
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/components/Treeview/index.js");
|
|
155
116
|
})();
|
|
156
|
-
|
|
157
117
|
;
|
|
158
|
-
|
|
159
118
|
(function () {
|
|
160
119
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
161
120
|
leaveModule && leaveModule(module);
|
|
@@ -2,27 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.branchLength = exports.branchIndent = exports.branchHeight = void 0;
|
|
5
|
-
|
|
6
5
|
var _utils = require("../../utils");
|
|
7
|
-
|
|
8
6
|
(function () {
|
|
9
7
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
8
|
enterModule && enterModule(module);
|
|
11
9
|
})();
|
|
12
|
-
|
|
13
10
|
(function () {
|
|
14
11
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
15
12
|
enterModule && enterModule(module);
|
|
16
13
|
})();
|
|
17
|
-
|
|
18
14
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
19
15
|
return a;
|
|
20
16
|
};
|
|
21
|
-
|
|
22
17
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
23
18
|
return a;
|
|
24
19
|
};
|
|
25
|
-
|
|
26
20
|
// Functions to easily get the tree settings from theme, or sensible defaults
|
|
27
21
|
var branchIndent = (0, _utils.getThemeProp)(["treeSettings", "branchIndent"], 14);
|
|
28
22
|
exports.branchIndent = branchIndent;
|
|
@@ -31,42 +25,31 @@ exports.branchLength = branchLength;
|
|
|
31
25
|
var branchHeight = (0, _utils.getThemeProp)(["treeSettings", "branchHeight"], 18);
|
|
32
26
|
exports.branchHeight = branchHeight;
|
|
33
27
|
;
|
|
34
|
-
|
|
35
28
|
(function () {
|
|
36
29
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
37
|
-
|
|
38
30
|
if (!reactHotLoader) {
|
|
39
31
|
return;
|
|
40
32
|
}
|
|
41
|
-
|
|
42
33
|
reactHotLoader.register(branchIndent, "branchIndent", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
43
34
|
reactHotLoader.register(branchLength, "branchLength", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
44
35
|
reactHotLoader.register(branchHeight, "branchHeight", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
45
36
|
})();
|
|
46
|
-
|
|
47
37
|
;
|
|
48
|
-
|
|
49
38
|
(function () {
|
|
50
39
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
51
40
|
leaveModule && leaveModule(module);
|
|
52
41
|
})();
|
|
53
|
-
|
|
54
42
|
;
|
|
55
|
-
|
|
56
43
|
(function () {
|
|
57
44
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
58
|
-
|
|
59
45
|
if (!reactHotLoader) {
|
|
60
46
|
return;
|
|
61
47
|
}
|
|
62
|
-
|
|
63
48
|
reactHotLoader.register(branchIndent, "branchIndent", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
64
49
|
reactHotLoader.register(branchLength, "branchLength", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
65
50
|
reactHotLoader.register(branchHeight, "branchHeight", "/home/vsts/work/1/s/src/components/Treeview/settings.js");
|
|
66
51
|
})();
|
|
67
|
-
|
|
68
52
|
;
|
|
69
|
-
|
|
70
53
|
(function () {
|
|
71
54
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
72
55
|
leaveModule && leaveModule(module);
|
package/dist/constants.js
CHANGED
|
@@ -2,25 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.validationErrorTypes = exports.scopeTypes = exports.scopeConfirmationDialogTypes = exports.roleGroups = exports.requestStates = exports.requestStateOperations = exports.requestStateOperationMap = exports.platformRoles = exports.overtureModule = exports.infoBar = exports.displayMode = exports.definitionType = exports.attributeDataType = void 0;
|
|
5
|
-
|
|
6
5
|
(function () {
|
|
7
6
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
8
7
|
enterModule && enterModule(module);
|
|
9
8
|
})();
|
|
10
|
-
|
|
11
9
|
(function () {
|
|
12
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
13
11
|
enterModule && enterModule(module);
|
|
14
12
|
})();
|
|
15
|
-
|
|
16
13
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
14
|
return a;
|
|
18
15
|
};
|
|
19
|
-
|
|
20
16
|
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
21
17
|
return a;
|
|
22
18
|
};
|
|
23
|
-
|
|
24
19
|
var infoBar = "infoBar";
|
|
25
20
|
exports.infoBar = infoBar;
|
|
26
21
|
var scopeTypes = {
|
|
@@ -35,12 +30,14 @@ var platformRoles = {
|
|
|
35
30
|
Integrator: "Integrator",
|
|
36
31
|
Administrator: "Administrator",
|
|
37
32
|
Editor: "Editor",
|
|
38
|
-
Reader: "Reader"
|
|
33
|
+
Reader: "Reader",
|
|
34
|
+
Recipient: "Recipient"
|
|
39
35
|
};
|
|
40
36
|
exports.platformRoles = platformRoles;
|
|
41
37
|
var roleGroups = {
|
|
42
38
|
Products: "Products",
|
|
43
39
|
Orders: "Orders",
|
|
40
|
+
OrderReturn: "OrderReturn",
|
|
44
41
|
Marketing: "Marketing",
|
|
45
42
|
Analytics: "Analytics",
|
|
46
43
|
Shopping: "Shopping",
|
|
@@ -95,8 +92,9 @@ var attributeDataType = {
|
|
|
95
92
|
lookup: "Lookup",
|
|
96
93
|
entityReference: "EntityReference",
|
|
97
94
|
customType: "CustomType"
|
|
98
|
-
};
|
|
95
|
+
};
|
|
99
96
|
|
|
97
|
+
// It is intended that some of them have a different value of its keys
|
|
100
98
|
exports.attributeDataType = attributeDataType;
|
|
101
99
|
var overtureModule = {
|
|
102
100
|
System: "System",
|
|
@@ -131,14 +129,11 @@ var requestStateOperationMap = {
|
|
|
131
129
|
};
|
|
132
130
|
exports.requestStateOperationMap = requestStateOperationMap;
|
|
133
131
|
;
|
|
134
|
-
|
|
135
132
|
(function () {
|
|
136
133
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
137
|
-
|
|
138
134
|
if (!reactHotLoader) {
|
|
139
135
|
return;
|
|
140
136
|
}
|
|
141
|
-
|
|
142
137
|
reactHotLoader.register(infoBar, "infoBar", "/home/vsts/work/1/s/src/constants.js");
|
|
143
138
|
reactHotLoader.register(scopeTypes, "scopeTypes", "/home/vsts/work/1/s/src/constants.js");
|
|
144
139
|
reactHotLoader.register(platformRoles, "platformRoles", "/home/vsts/work/1/s/src/constants.js");
|
|
@@ -153,23 +148,17 @@ exports.requestStateOperationMap = requestStateOperationMap;
|
|
|
153
148
|
reactHotLoader.register(requestStateOperations, "requestStateOperations", "/home/vsts/work/1/s/src/constants.js");
|
|
154
149
|
reactHotLoader.register(requestStateOperationMap, "requestStateOperationMap", "/home/vsts/work/1/s/src/constants.js");
|
|
155
150
|
})();
|
|
156
|
-
|
|
157
151
|
;
|
|
158
|
-
|
|
159
152
|
(function () {
|
|
160
153
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
161
154
|
leaveModule && leaveModule(module);
|
|
162
155
|
})();
|
|
163
|
-
|
|
164
156
|
;
|
|
165
|
-
|
|
166
157
|
(function () {
|
|
167
158
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
168
|
-
|
|
169
159
|
if (!reactHotLoader) {
|
|
170
160
|
return;
|
|
171
161
|
}
|
|
172
|
-
|
|
173
162
|
reactHotLoader.register(infoBar, "infoBar", "/home/vsts/work/1/s/src/constants.js");
|
|
174
163
|
reactHotLoader.register(scopeTypes, "scopeTypes", "/home/vsts/work/1/s/src/constants.js");
|
|
175
164
|
reactHotLoader.register(platformRoles, "platformRoles", "/home/vsts/work/1/s/src/constants.js");
|
|
@@ -184,9 +173,7 @@ exports.requestStateOperationMap = requestStateOperationMap;
|
|
|
184
173
|
reactHotLoader.register(requestStateOperations, "requestStateOperations", "/home/vsts/work/1/s/src/constants.js");
|
|
185
174
|
reactHotLoader.register(requestStateOperationMap, "requestStateOperationMap", "/home/vsts/work/1/s/src/constants.js");
|
|
186
175
|
})();
|
|
187
|
-
|
|
188
176
|
;
|
|
189
|
-
|
|
190
177
|
(function () {
|
|
191
178
|
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
192
179
|
leaveModule && leaveModule(module);
|
|
@@ -708,4 +708,26 @@
|
|
|
708
708
|
<polygon fill="#FFF" points="9.6 12 16 8.4 9.6 4.8"/>
|
|
709
709
|
</g>
|
|
710
710
|
</symbol>
|
|
711
|
+
<symbol id="icon-barcode" viewBox="0 0 25 20" xmlns="http://www.w3.org/2000/svg">
|
|
712
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.00031 16.0315C1.27645 16.0315 1.50031 16.2554 1.50031 16.5315V19.0005H3.96931C4.24545 19.0005 4.46931 19.2244 4.46931 19.5005C4.46931 19.7766 4.24545 20.0005 3.96931 20.0005H1.00031C0.724163 20.0005 0.500305 19.7766 0.500305 19.5005V16.5315C0.500305 16.2554 0.724163 16.0315 1.00031 16.0315Z" fill="#333333"/>
|
|
713
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M0.5 0.500244C0.5 0.224102 0.723858 0.000244141 1 0.000244141H3.969C4.24514 0.000244141 4.469 0.224102 4.469 0.500244C4.469 0.776386 4.24514 1.00024 3.969 1.00024H1.5V3.46924C1.5 3.74539 1.27614 3.96924 1 3.96924C0.723858 3.96924 0.5 3.74539 0.5 3.46924V0.500244Z" fill="#333333"/>
|
|
714
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.5313 0.5C20.5313 0.223858 20.7552 0 21.0313 0H24.0003C24.2765 0 24.5003 0.223858 24.5003 0.5V3.469C24.5003 3.74514 24.2765 3.969 24.0003 3.969C23.7242 3.969 23.5003 3.74514 23.5003 3.469V1H21.0313C20.7552 1 20.5313 0.776142 20.5313 0.5Z" fill="#333333"/>
|
|
715
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.0005 16.0312C24.2766 16.0312 24.5005 16.2551 24.5005 16.5312V19.5002C24.5005 19.7764 24.2766 20.0002 24.0005 20.0002H21.0315C20.7554 20.0002 20.5315 19.7764 20.5315 19.5002C20.5315 19.2241 20.7554 19.0002 21.0315 19.0002H23.5005V16.5312C23.5005 16.2551 23.7244 16.0312 24.0005 16.0312Z" fill="#333333"/>
|
|
716
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.50031 15.0002V5.00024H4.50031V15.0002H3.50031Z" fill="#333333"/>
|
|
717
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.50031 12.0002V5.00024H6.50031V12.0002H5.50031Z" fill="#333333"/>
|
|
718
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.50031 12.0002V5.00024H8.50031V12.0002H7.50031Z" fill="#333333"/>
|
|
719
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.5003 12.0002V5.00024H11.5003V12.0002H10.5003Z" fill="#333333"/>
|
|
720
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.5003 12.0002V5.00024H13.5003V12.0002H12.5003Z" fill="#333333"/>
|
|
721
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.5003 12.0002V5.00024H15.5003V12.0002H14.5003Z" fill="#333333"/>
|
|
722
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.5003 12.0002V5.00024H17.5003V12.0002H16.5003Z" fill="#333333"/>
|
|
723
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.5003 12.0002V5.00024H19.5003V12.0002H18.5003Z" fill="#333333"/>
|
|
724
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.5003 15.0002V5.00024H21.5003V15.0002H20.5003Z" fill="#333333"/>
|
|
725
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.50031 13.0002H5.50031V14.0002H6.50031V13.0002Z" fill="#333333"/>
|
|
726
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.50031 13.0002H7.50031V14.0002H8.50031V13.0002Z" fill="#333333"/>
|
|
727
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.5003 13.0002H10.5003V14.0002H11.5003V13.0002Z" fill="#333333"/>
|
|
728
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.5003 13.0002H12.5003V14.0002H13.5003V13.0002Z" fill="#333333"/>
|
|
729
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.5003 13.0002H14.5003V14.0002H15.5003V13.0002Z" fill="#333333"/>
|
|
730
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.5003 13.0002H16.5003V14.0002H17.5003V13.0002Z" fill="#333333"/>
|
|
731
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.5003 13.0002H18.5003V14.0002H19.5003V13.0002Z" fill="#333333"/>
|
|
732
|
+
</symbol>
|
|
711
733
|
</svg>
|
|
Binary file
|