authscape 1.0.424 → 1.0.428
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/index.js +21 -8
- package/package.json +1 -1
- package/src/components/AuthScapeApp.js +2 -2
- package/src/components/kanban/Container.js +1 -1
- package/src/components/kanban/Handle.js +2 -0
- package/src/components/kanban/Item.js +1 -0
- package/src/components/kanban/Kanban.js +17 -2
- package/src/components/kanban/Remove.js +2 -0
package/index.js
CHANGED
|
@@ -181,10 +181,10 @@ function AuthScapeApp(_ref) {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
(0, _react.useEffect)(function () {
|
|
184
|
-
if (signedInUserState == null && enforceLoggedIn && pathname != "/signin-oidc" &&
|
|
184
|
+
if (signedInUserState == null && enforceLoggedIn && pathname != "/signin-oidc" && frontEndLoadedState == true) {
|
|
185
185
|
authService().login();
|
|
186
186
|
}
|
|
187
|
-
}, [signedInUserState, enforceLoggedIn]);
|
|
187
|
+
}, [signedInUserState, enforceLoggedIn, frontEndLoadedState]);
|
|
188
188
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_head["default"], null, /*#__PURE__*/_react["default"].createElement("meta", {
|
|
189
189
|
name: "viewport",
|
|
190
190
|
content: "width=device-width, initial-scale=0.86, maximum-scale=5.0, minimum-scale=0.86"
|
|
@@ -2283,11 +2283,10 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
2283
2283
|
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); }
|
|
2284
2284
|
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; }
|
|
2285
2285
|
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; }
|
|
2286
|
+
/// use in testing
|
|
2286
2287
|
// import { Handle } from './Handle';
|
|
2287
2288
|
// import { Remove } from './Remove';
|
|
2288
2289
|
|
|
2289
|
-
// import styles from './dist/Container.module.css';
|
|
2290
|
-
|
|
2291
2290
|
var Container = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
2292
2291
|
var children = _ref.children,
|
|
2293
2292
|
_ref$columns = _ref.columns,
|
|
@@ -2359,8 +2358,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
2359
2358
|
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); }
|
|
2360
2359
|
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; }
|
|
2361
2360
|
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); }
|
|
2361
|
+
/// use in testing
|
|
2362
2362
|
// import {Action} from './Action';
|
|
2363
|
-
|
|
2364
2363
|
var dragIcon = function dragIcon() {
|
|
2365
2364
|
return /*#__PURE__*/_react["default"].createElement(_DragIndicatorRounded["default"], null);
|
|
2366
2365
|
};
|
|
@@ -2383,7 +2382,8 @@ exports.Item = void 0;
|
|
|
2383
2382
|
var _react = _interopRequireWildcard(require("react"));
|
|
2384
2383
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
2385
2384
|
var _material = require("@mui/material");
|
|
2386
|
-
var _excluded = ["color", "dragOverlay", "dragging", "disabled", "fadeIn", "name", "handle", "handleProps", "height", "itemStyles", "cardDetail", "CardTemplate", "index", "listeners", "onRemove", "onCardClicked", "renderItem", "sorting", "style", "transition", "transform", "value", "handleMoreClick", "handleMoreClose", "wrapperStyle"];
|
|
2385
|
+
var _excluded = ["color", "dragOverlay", "dragging", "disabled", "fadeIn", "name", "handle", "handleProps", "height", "itemStyles", "cardDetail", "CardTemplate", "index", "listeners", "onRemove", "onCardClicked", "renderItem", "sorting", "style", "transition", "transform", "value", "handleMoreClick", "handleMoreClose", "wrapperStyle"]; /// use in testing
|
|
2386
|
+
// import { Handle } from './Handle';
|
|
2387
2387
|
// import { Remove } from './Remove';
|
|
2388
2388
|
// import styles from './dist/Item.module.css';
|
|
2389
2389
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -2518,7 +2518,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
2518
2518
|
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; }
|
|
2519
2519
|
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; }
|
|
2520
2520
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
2521
|
-
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); }
|
|
2521
|
+
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); } /// use in testing
|
|
2522
|
+
// import {coordinateGetter as multipleContainersCoordinateGetter} from './multipleContainersKeyboardCoordinates';
|
|
2522
2523
|
// import { apiService } from 'authscape';
|
|
2523
2524
|
// import { Item } from './item';
|
|
2524
2525
|
// import { Container } from './container';
|
|
@@ -2621,6 +2622,8 @@ function Kanban(_ref2) {
|
|
|
2621
2622
|
_ref2$vertical = _ref2.vertical,
|
|
2622
2623
|
vertical = _ref2$vertical === void 0 ? false : _ref2$vertical,
|
|
2623
2624
|
onCardClicked = _ref2.onCardClicked,
|
|
2625
|
+
_ref2$onCardChangedSt = _ref2.onCardChangedState,
|
|
2626
|
+
onCardChangedState = _ref2$onCardChangedSt === void 0 ? null : _ref2$onCardChangedSt,
|
|
2624
2627
|
scrollable = _ref2.scrollable;
|
|
2625
2628
|
var _useState = (0, _react.useState)(null),
|
|
2626
2629
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -2905,6 +2908,10 @@ function Kanban(_ref2) {
|
|
|
2905
2908
|
apiService().put("/Kanban/SetColumnOrder", {
|
|
2906
2909
|
columnsIds: array
|
|
2907
2910
|
});
|
|
2911
|
+
|
|
2912
|
+
// is this correct?
|
|
2913
|
+
// onCardChangedState(over.id, active.id);
|
|
2914
|
+
|
|
2908
2915
|
return array;
|
|
2909
2916
|
});
|
|
2910
2917
|
}
|
|
@@ -2970,6 +2977,9 @@ function Kanban(_ref2) {
|
|
|
2970
2977
|
columnId: overContainer,
|
|
2971
2978
|
cards: newArray
|
|
2972
2979
|
});
|
|
2980
|
+
if (onCardChangedState != null) {
|
|
2981
|
+
onCardChangedState(overContainer, active.id);
|
|
2982
|
+
}
|
|
2973
2983
|
} else {
|
|
2974
2984
|
// assign the order of the cards
|
|
2975
2985
|
apiService().put("/Kanban/AssignColumnForCard", {
|
|
@@ -2977,6 +2987,9 @@ function Kanban(_ref2) {
|
|
|
2977
2987
|
cardId: active.id,
|
|
2978
2988
|
orderId: 0
|
|
2979
2989
|
});
|
|
2990
|
+
if (onCardChangedState != null) {
|
|
2991
|
+
onCardChangedState(overContainer, active.id);
|
|
2992
|
+
}
|
|
2980
2993
|
}
|
|
2981
2994
|
}
|
|
2982
2995
|
setActiveId(null);
|
|
@@ -3373,8 +3386,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
3373
3386
|
var _DeleteRounded = _interopRequireDefault(require("@mui/icons-material/DeleteRounded"));
|
|
3374
3387
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
3375
3388
|
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); }
|
|
3389
|
+
/// use in testing
|
|
3376
3390
|
// import {Action} from './Action';
|
|
3377
|
-
|
|
3378
3391
|
var removeIcon = function removeIcon() {
|
|
3379
3392
|
return /*#__PURE__*/_react["default"].createElement(_DeleteRounded["default"], null);
|
|
3380
3393
|
};
|
package/package.json
CHANGED
|
@@ -135,12 +135,12 @@ export function AuthScapeApp ({Component, layout, pageProps, muiTheme = {}, enfo
|
|
|
135
135
|
|
|
136
136
|
useEffect(() => {
|
|
137
137
|
|
|
138
|
-
if (signedInUserState == null && enforceLoggedIn && pathname != "/signin-oidc" &&
|
|
138
|
+
if (signedInUserState == null && enforceLoggedIn && pathname != "/signin-oidc" && frontEndLoadedState == true)
|
|
139
139
|
{
|
|
140
140
|
authService().login();
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
}, [signedInUserState, enforceLoggedIn]);
|
|
143
|
+
}, [signedInUserState, enforceLoggedIn, frontEndLoadedState]);
|
|
144
144
|
|
|
145
145
|
return (
|
|
146
146
|
<>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, {forwardRef} from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
|
|
4
|
+
/// use in testing
|
|
4
5
|
// import { Handle } from './Handle';
|
|
5
6
|
// import { Remove } from './Remove';
|
|
6
7
|
|
|
7
|
-
// import styles from './dist/Container.module.css';
|
|
8
8
|
|
|
9
9
|
export const Container = forwardRef(
|
|
10
10
|
(
|
|
@@ -33,12 +33,14 @@ import {
|
|
|
33
33
|
horizontalListSortingStrategy,
|
|
34
34
|
} from '@dnd-kit/sortable';
|
|
35
35
|
import {CSS} from '@dnd-kit/utilities';
|
|
36
|
-
// import {coordinateGetter as multipleContainersCoordinateGetter} from './multipleContainersKeyboardCoordinates';
|
|
37
36
|
|
|
38
|
-
// import { apiService } from 'authscape';
|
|
39
37
|
|
|
38
|
+
/// use in testing
|
|
39
|
+
// import {coordinateGetter as multipleContainersCoordinateGetter} from './multipleContainersKeyboardCoordinates';
|
|
40
|
+
// import { apiService } from 'authscape';
|
|
40
41
|
// import { Item } from './item';
|
|
41
42
|
// import { Container } from './container';
|
|
43
|
+
|
|
42
44
|
import { Box } from '@mui/material';
|
|
43
45
|
|
|
44
46
|
const animateLayoutChanges = (args) =>
|
|
@@ -136,6 +138,7 @@ export function Kanban({
|
|
|
136
138
|
trashable = false,
|
|
137
139
|
vertical = false,
|
|
138
140
|
onCardClicked,
|
|
141
|
+
onCardChangedState = null,
|
|
139
142
|
scrollable,
|
|
140
143
|
}) {
|
|
141
144
|
|
|
@@ -450,6 +453,9 @@ export function Kanban({
|
|
|
450
453
|
columnsIds: array
|
|
451
454
|
});
|
|
452
455
|
|
|
456
|
+
// is this correct?
|
|
457
|
+
// onCardChangedState(over.id, active.id);
|
|
458
|
+
|
|
453
459
|
return array;
|
|
454
460
|
});
|
|
455
461
|
}
|
|
@@ -535,6 +541,10 @@ export function Kanban({
|
|
|
535
541
|
cards: newArray
|
|
536
542
|
});
|
|
537
543
|
|
|
544
|
+
if (onCardChangedState != null)
|
|
545
|
+
{
|
|
546
|
+
onCardChangedState(overContainer, active.id);
|
|
547
|
+
}
|
|
538
548
|
}
|
|
539
549
|
else
|
|
540
550
|
{
|
|
@@ -544,6 +554,11 @@ export function Kanban({
|
|
|
544
554
|
cardId: active.id,
|
|
545
555
|
orderId: 0
|
|
546
556
|
});
|
|
557
|
+
|
|
558
|
+
if (onCardChangedState != null)
|
|
559
|
+
{
|
|
560
|
+
onCardChangedState(overContainer, active.id);
|
|
561
|
+
}
|
|
547
562
|
}
|
|
548
563
|
}
|
|
549
564
|
|