authscape 1.0.428 → 1.0.430

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 CHANGED
@@ -2600,6 +2600,8 @@ function Kanban(_ref2) {
2600
2600
  initialItems = _ref2.items,
2601
2601
  containerStyles = _ref2.containerStyles,
2602
2602
  itemStyles = _ref2.itemStyles,
2603
+ _ref2$filterBy = _ref2.filterBy,
2604
+ filterBy = _ref2$filterBy === void 0 ? null : _ref2$filterBy,
2603
2605
  containerStyle = _ref2.containerStyle,
2604
2606
  _ref2$coordinateGette = _ref2.coordinateGetter,
2605
2607
  coordinateGetter = _ref2$coordinateGette === void 0 ? multipleContainersCoordinateGetter : _ref2$coordinateGette,
@@ -2649,10 +2651,23 @@ function Kanban(_ref2) {
2649
2651
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2650
2652
  while (1) switch (_context.prev = _context.next) {
2651
2653
  case 0:
2652
- _context.next = 2;
2654
+ response = null;
2655
+ if (!(filterBy == null)) {
2656
+ _context.next = 7;
2657
+ break;
2658
+ }
2659
+ _context.next = 4;
2653
2660
  return apiService().get("/Kanban/GetKanban");
2654
- case 2:
2661
+ case 4:
2655
2662
  response = _context.sent;
2663
+ _context.next = 10;
2664
+ break;
2665
+ case 7:
2666
+ _context.next = 9;
2667
+ return apiService().get("/Kanban/GetKanban?filterBy=" + filterBy);
2668
+ case 9:
2669
+ response = _context.sent;
2670
+ case 10:
2656
2671
  if (response != null && response.status == 200) {
2657
2672
  _containers = [];
2658
2673
  _initItems = response.data;
@@ -2672,7 +2687,7 @@ function Kanban(_ref2) {
2672
2687
  setItems(container);
2673
2688
  setContainers(_containers);
2674
2689
  }
2675
- case 4:
2690
+ case 11:
2676
2691
  case "end":
2677
2692
  return _context.stop();
2678
2693
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.428",
3
+ "version": "1.0.430",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -127,6 +127,7 @@ export function Kanban({
127
127
  items: initialItems,
128
128
  containerStyles,
129
129
  itemStyles,
130
+ filterBy = null,
130
131
  containerStyle,
131
132
  coordinateGetter = multipleContainersCoordinateGetter,
132
133
  getItemStyles = () => ({}),
@@ -153,7 +154,16 @@ export function Kanban({
153
154
  {
154
155
  const fetchData = async () => {
155
156
 
156
- let response = await apiService().get("/Kanban/GetKanban");
157
+ let response = null;
158
+ if (filterBy == null)
159
+ {
160
+ response = await apiService().get("/Kanban/GetKanban");
161
+ }
162
+ else
163
+ {
164
+ response = await apiService().get("/Kanban/GetKanban?filterBy=" + filterBy);
165
+ }
166
+
157
167
  if (response != null && response.status == 200)
158
168
  {
159
169
  let containers = [];