@cloud-app-dev/vidc 3.2.37 → 3.2.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/.dumirc.ts +7 -11
  2. package/.fatherrc.ts +0 -1
  3. package/es/CheckGroupFixed/demo.js +2 -3
  4. package/es/CheckGroupFixed/index.js +4 -7
  5. package/es/Config/index.js +10 -9
  6. package/es/Config/interface.d.ts +2 -3
  7. package/es/CustomRenderSelect/index.js +2 -3
  8. package/es/DynamicList/demo.js +3 -4
  9. package/es/DynamicList/index.js +2 -3
  10. package/es/ErrorFallback/index.js +3 -6
  11. package/es/FrontendPlayer/index.d.ts +4 -2
  12. package/es/List/index.d.ts +0 -13
  13. package/es/List/index.js +1 -19
  14. package/es/LoaderScript/utils.d.ts +0 -1
  15. package/es/LoaderScript/utils.js +1 -36
  16. package/es/Map/FindPio/index.js +2 -3
  17. package/es/Map/LevelCenter/demo.js +2 -4
  18. package/es/Map/ResetTools/index.js +4 -5
  19. package/es/Picture/component/Tools/index.d.ts +1 -2
  20. package/es/Picture/component/Tools/index.js +7 -14
  21. package/es/Picture/demo.js +14 -28
  22. package/es/Picture/index.d.ts +1 -1
  23. package/es/Picture/index.js +91 -141
  24. package/es/Picture/index.less +7 -2
  25. package/es/Picture/utils.d.ts +6 -0
  26. package/es/Picture/utils.js +57 -2
  27. package/es/Player/api/index.js +2 -1
  28. package/es/Player/contraller_bar/volume.js +3 -6
  29. package/es/Player/demo.js +28 -58
  30. package/es/Player/frontend_timeline.js +1 -1
  31. package/es/Player/segment_timeline.js +3 -5
  32. package/es/Player/single_player.js +1 -1
  33. package/es/Player/util.d.ts +0 -1
  34. package/es/Player/util.js +2 -40
  35. package/es/PlayerExt/demo.js +12 -20
  36. package/es/Progress/index.js +4 -6
  37. package/es/RefDrawer/Footer.d.ts +9 -0
  38. package/es/{Drawer → RefDrawer}/Footer.js +3 -5
  39. package/es/{Drawer/Demo.d.ts → RefDrawer/demo.d.ts} +0 -0
  40. package/es/RefDrawer/demo.js +35 -0
  41. package/es/RefDrawer/index.d.ts +26 -0
  42. package/es/{Input → RefDrawer}/index.js +54 -58
  43. package/es/{Input → RefModal}/demo.d.ts +0 -0
  44. package/es/RefModal/demo.js +35 -0
  45. package/es/RefModal/index.d.ts +17 -0
  46. package/es/RefModal/index.js +71 -0
  47. package/es/ScreenPlayer/PlayerWithExt.js +1 -1
  48. package/es/ScreenPlayer/RatePick.js +8 -9
  49. package/es/ScreenPlayer/ScreenSelect.js +2 -3
  50. package/es/ScreenPlayer/SegmentTimeLine.js +3 -11
  51. package/es/ScreenPlayer/TimeMode.js +3 -4
  52. package/es/ScreenPlayer/TimeSelect.js +14 -39
  53. package/es/ScreenPlayer/demo.js +2 -3
  54. package/es/ScreenPlayer/demo2.js +8 -28
  55. package/es/ScreenPlayer/useTimeSlider.js +1 -1
  56. package/es/Service/http.js +6 -8
  57. package/es/TableLayout/index.d.ts +0 -3
  58. package/es/TableLayout/index.js +8 -10
  59. package/es/ThemeAntd/demo.js +21 -40
  60. package/es/ThemeAntd/index.js +16 -2
  61. package/es/ThemeAntd/index.less +0 -12
  62. package/es/Timeout/index.js +2 -2
  63. package/es/core.d.ts +0 -149
  64. package/es/index.d.ts +2 -6
  65. package/es/index.js +2 -6
  66. package/es/useDrawROI/index.js +4 -4
  67. package/es/utils.d.ts +1 -12
  68. package/es/utils.js +0 -56
  69. package/package.json +24 -24
  70. package/theme-config.ts +3 -1
  71. package/typings/global.d.ts +4 -4
  72. package/es/Api/index.d.ts +0 -12
  73. package/es/Api/index.js +0 -267
  74. package/es/Box/BetweenBox/index.d.ts +0 -12
  75. package/es/Box/BetweenBox/index.js +0 -31
  76. package/es/Box/BetweenBox/index.less +0 -5
  77. package/es/Box/InfoBox/index.d.ts +0 -12
  78. package/es/Box/InfoBox/index.js +0 -30
  79. package/es/Box/InfoBox/index.less +0 -24
  80. package/es/Box/TwoColumnBox/index.d.ts +0 -10
  81. package/es/Box/TwoColumnBox/index.js +0 -54
  82. package/es/Box/TwoColumnBox/index.less +0 -80
  83. package/es/Box/deps/content-grid.d.ts +0 -9
  84. package/es/Box/deps/content-grid.js +0 -9
  85. package/es/Box/deps/grid-factory.d.ts +0 -10
  86. package/es/Box/deps/grid-factory.js +0 -72
  87. package/es/Box/deps/simple-grid.d.ts +0 -9
  88. package/es/Box/deps/simple-grid.js +0 -8
  89. package/es/Box/index.d.ts +0 -14
  90. package/es/Box/index.js +0 -39
  91. package/es/Box/index.less +0 -10
  92. package/es/Drawer/Demo.js +0 -109
  93. package/es/Drawer/Footer.d.ts +0 -5
  94. package/es/Drawer/index.d.ts +0 -38
  95. package/es/Drawer/index.js +0 -207
  96. package/es/Drawer/index.less +0 -42
  97. package/es/Drawer/interface.d.ts +0 -22
  98. package/es/Input/demo.js +0 -16
  99. package/es/Input/index.d.ts +0 -19
  100. package/es/Input/index.less +0 -12
  101. package/es/Modal/demo.d.ts +0 -3
  102. package/es/Modal/demo.js +0 -106
  103. package/es/Modal/index.d.ts +0 -44
  104. package/es/Modal/index.js +0 -197
  105. package/es/Modal/index.less +0 -44
  106. package/es/Modal/interface.d.ts +0 -23
  107. package/es/Picture/dragBound.d.ts +0 -5
  108. package/es/Picture/dragBound.js +0 -77
  109. package/es/Service/fetch-adapter.d.ts +0 -12
  110. package/es/Service/fetch-adapter.js +0 -203
  111. package/es/ThemeAntd/style/button.less +0 -67
  112. package/es/ThemeAntd/style/checkbox.less +0 -72
  113. package/es/ThemeAntd/style/form.less +0 -12
  114. package/es/ThemeAntd/style/input.less +0 -83
  115. package/es/ThemeAntd/style/pagination.less +0 -96
  116. package/es/ThemeAntd/style/picker.less +0 -106
  117. package/es/ThemeAntd/style/popover.less +0 -5
  118. package/es/ThemeAntd/style/radio.less +0 -87
  119. package/es/ThemeAntd/style/scrollbar.less +0 -23
  120. package/es/ThemeAntd/style/select.less +0 -81
  121. package/es/ThemeAntd/style/table.less +0 -57
  122. package/es/ThemeAntd/style/tree.less +0 -18
  123. package/es/Tree/demo.d.ts +0 -3
  124. package/es/Tree/demo.js +0 -32
  125. package/es/Tree/index.d.ts +0 -24
  126. package/es/Tree/index.js +0 -100
  127. package/es/Tree/index.less +0 -60
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "3.2.37",
5
+ "version": "3.2.39",
6
6
  "scripts": {
7
7
  "docs:deploy": "gh-pages -d docs-dist",
8
8
  "build": "npm run entry && father build",
@@ -46,45 +46,45 @@
46
46
  "@turf/boolean-disjoint": "^6.5.0",
47
47
  "@turf/helpers": "^6.5.0",
48
48
  "@turf/line-to-polygon": "^6.5.0",
49
- "ahooks": "^3.7.0",
50
- "axios": "^0.27.2",
51
- "hls.js": "^1.2.1",
52
- "immer": "^9.0.15",
49
+ "ahooks": "^3.7.2",
50
+ "axios": "^1.2.1",
51
+ "dayjs": "^1.11.6",
52
+ "history": "^5.3.0",
53
+ "hls.js": "^1.2.8",
54
+ "immer": "^9.0.16",
53
55
  "lodash-es": "^4.17.21",
54
- "moment": "^2.29.4",
55
56
  "react-error-boundary": "^3.1.4",
56
- "react-hotkeys-hook": "^3.4.7",
57
- "screenfull": "^6.0.2",
58
- "history": "^5.3.0"
57
+ "react-hotkeys-hook": "^4.0.4",
58
+ "screenfull": "^6.0.2"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@cloud-app-dev/utils": "^4.0.1",
62
- "@types/leaflet": "^1.7.11",
63
- "@types/lodash-es": "^4.17.6",
64
- "@types/node": "^18.7.6",
65
- "@types/react": "^18.0.17",
66
- "@types/react-dom": "^18.0.6",
67
- "antd": "^4.22.6",
68
- "babel-plugin-import": "^1.13.5",
69
- "dumi": "^2.0.11",
70
- "gh-pages": "^4.0.0",
71
- "react": "^18.2.0",
72
- "react-dom": "^18.2.0",
73
- "react-router-dom": "^6.3.0",
74
62
  "@commitlint/cli": "^17.1.2",
75
63
  "@commitlint/config-conventional": "^17.1.0",
64
+ "@types/leaflet": "^1.9.0",
65
+ "@types/lodash-es": "^4.17.6",
66
+ "@types/node": "^18.11.11",
67
+ "@types/react": "^18.0.26",
68
+ "@types/react-dom": "^18.0.9",
69
+ "@umijs/lint": "^4.0.36",
70
+ "antd": "^5.0.4",
71
+ "babel-plugin-import": "^1.13.5",
72
+ "dumi": "^2.0.16",
76
73
  "eslint": "^8.28.0",
77
- "father": "^4.1.0",
74
+ "father": "^4.1.2",
75
+ "gh-pages": "^4.0.0",
78
76
  "husky": "^8.0.1",
79
77
  "lint-staged": "^13.0.3",
78
+ "postcss-less": "^6.0.0",
80
79
  "prettier": "^2.7.1",
81
80
  "prettier-plugin-organize-imports": "^3.0.0",
82
81
  "prettier-plugin-packagejson": "^2.2.18",
83
- "postcss-less": "^6.0.0",
82
+ "react": "^18.2.0",
83
+ "react-dom": "^18.2.0",
84
+ "react-router-dom": "^6.3.0",
84
85
  "stylelint": "^14.15.0",
85
86
  "stylelint-config-prettier": "^9.0.4",
86
87
  "stylelint-config-standard": "^29.0.0",
87
88
  "stylelint-order": "^5.0.0"
88
89
  }
89
-
90
90
  }
package/theme-config.ts CHANGED
@@ -43,7 +43,7 @@ export const themeConfig = `
43
43
  --fs-small: 12px;
44
44
  --fs-large: 20px;
45
45
  --bd:rgba(255, 255, 255, 0.3);
46
- --color:#ffffff;
46
+ --color:#000000;
47
47
  --color1:#ffffff;
48
48
  --color2:#fefefe;
49
49
  --color3:#eeeeee;
@@ -119,5 +119,7 @@ export const themeConfig = `
119
119
  --scrollbar-thumb-hover-bg: rgba(195,209,229,1);
120
120
  --scrollbar-track-shadow: 0 0 3px 0 rgba(255, 255, 255, 0.1) inset;
121
121
  --scrollbar-thumb-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3) inset;
122
+
123
+
122
124
  }
123
125
  `;
@@ -1,4 +1,4 @@
1
- declare module 'axios/lib/core/settle';
2
- declare module 'axios/lib/helpers/buildURL';
3
- declare module 'axios/lib/core/buildFullPath';
4
- declare module 'axios/lib/cancel/CanceledError';
1
+ // declare module 'axios/lib/core/settle';
2
+ // declare module 'axios/lib/helpers/buildURL';
3
+ // declare module 'axios/lib/core/buildFullPath';
4
+ // declare module 'axios/lib/cancel/CanceledError';
package/es/Api/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { BzTreeItemType, PostItemType, OrgItemType } from '../core';
2
- import { UserInfoType } from '../AppContext/interface';
3
- declare class Api {
4
- getOrgs(): Promise<OrgItemType[]>;
5
- getUsers(organizationId: string, params?: any, filterUserIds?: string[]): Promise<UserInfoType[]>;
6
- getPosts(orgId: string): Promise<PostItemType[]>;
7
- getDeviceBzTree(): Promise<BzTreeItemType[]>;
8
- getCustomDeviceGroup(): Promise<BzTreeItemType[]>;
9
- getPlacesByHasDevice(): Promise<BzTreeItemType[]>;
10
- }
11
- declare const _default: Api;
12
- export default _default;
package/es/Api/index.js DELETED
@@ -1,267 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
-
3
- 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; }
4
-
5
- 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; }
6
-
7
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
-
9
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
10
-
11
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
12
-
13
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
14
-
15
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
-
17
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
18
-
19
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
-
21
- import Service from "../Service";
22
- import { getHeader } from "../utils";
23
-
24
- var Api = /*#__PURE__*/function () {
25
- function Api() {
26
- _classCallCheck(this, Api);
27
- }
28
-
29
- _createClass(Api, [{
30
- key: "getOrgs",
31
- value: function () {
32
- var _getOrgs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33
- var res;
34
- return _regeneratorRuntime().wrap(function _callee$(_context) {
35
- while (1) {
36
- switch (_context.prev = _context.next) {
37
- case 0:
38
- _context.next = 2;
39
- return Service.http({
40
- url: '/api/user/v1/organization/queryChildOrganizationsById',
41
- method: 'post',
42
- requestId: 'queryChildOrganizationsById',
43
- data: {
44
- selectChildOrganization: true
45
- },
46
- headers: getHeader()
47
- });
48
-
49
- case 2:
50
- res = _context.sent;
51
- return _context.abrupt("return", res.data);
52
-
53
- case 4:
54
- case "end":
55
- return _context.stop();
56
- }
57
- }
58
- }, _callee);
59
- }));
60
-
61
- function getOrgs() {
62
- return _getOrgs.apply(this, arguments);
63
- }
64
-
65
- return getOrgs;
66
- }()
67
- }, {
68
- key: "getUsers",
69
- value: function () {
70
- var _getUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(organizationId) {
71
- var _res$data, _res$data2;
72
-
73
- var params,
74
- filterUserIds,
75
- res,
76
- _args2 = arguments;
77
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
78
- while (1) {
79
- switch (_context2.prev = _context2.next) {
80
- case 0:
81
- params = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : {};
82
- filterUserIds = _args2.length > 2 ? _args2[2] : undefined;
83
- _context2.next = 4;
84
- return Service.http({
85
- url: '/api/user/v1/queryUsers',
86
- method: 'post',
87
- requestId: 'queryUsers',
88
- headers: getHeader(),
89
- data: _objectSpread({
90
- containSubOrganization: 1,
91
- limit: 10000,
92
- offset: 0,
93
- organizationId: organizationId,
94
- postId: ''
95
- }, params)
96
- });
97
-
98
- case 4:
99
- res = _context2.sent;
100
- return _context2.abrupt("return", !filterUserIds ? (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list : (((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list) || []).filter(function (v) {
101
- return !filterUserIds.includes(v.id);
102
- }));
103
-
104
- case 6:
105
- case "end":
106
- return _context2.stop();
107
- }
108
- }
109
- }, _callee2);
110
- }));
111
-
112
- function getUsers(_x) {
113
- return _getUsers.apply(this, arguments);
114
- }
115
-
116
- return getUsers;
117
- }()
118
- }, {
119
- key: "getPosts",
120
- value: function () {
121
- var _getPosts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(orgId) {
122
- var res;
123
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
124
- while (1) {
125
- switch (_context3.prev = _context3.next) {
126
- case 0:
127
- _context3.next = 2;
128
- return Service.http({
129
- url: "/api/user/v2/post/queryPostByOrgId/".concat(orgId),
130
- method: 'post',
131
- requestId: 'queryPostByOrgId',
132
- headers: getHeader(),
133
- data: {}
134
- });
135
-
136
- case 2:
137
- res = _context3.sent;
138
- return _context3.abrupt("return", res.data);
139
-
140
- case 4:
141
- case "end":
142
- return _context3.stop();
143
- }
144
- }
145
- }, _callee3);
146
- }));
147
-
148
- function getPosts(_x2) {
149
- return _getPosts.apply(this, arguments);
150
- }
151
-
152
- return getPosts;
153
- }()
154
- }, {
155
- key: "getDeviceBzTree",
156
- value: function () {
157
- var _getDeviceBzTree = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
158
- var res;
159
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
160
- while (1) {
161
- switch (_context4.prev = _context4.next) {
162
- case 0:
163
- _context4.next = 2;
164
- return Service.http({
165
- url: '/api/udm-api/DeviceBuzTree/queryList',
166
- method: 'post',
167
- requestId: 'getDeviceBzTree',
168
- data: {},
169
- headers: getHeader()
170
- });
171
-
172
- case 2:
173
- res = _context4.sent;
174
- return _context4.abrupt("return", res.data);
175
-
176
- case 4:
177
- case "end":
178
- return _context4.stop();
179
- }
180
- }
181
- }, _callee4);
182
- }));
183
-
184
- function getDeviceBzTree() {
185
- return _getDeviceBzTree.apply(this, arguments);
186
- }
187
-
188
- return getDeviceBzTree;
189
- }()
190
- }, {
191
- key: "getCustomDeviceGroup",
192
- value: function () {
193
- var _getCustomDeviceGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
194
- var res;
195
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
196
- while (1) {
197
- switch (_context5.prev = _context5.next) {
198
- case 0:
199
- _context5.next = 2;
200
- return Service.http({
201
- url: '/api/udm-api/customDeviceGroup/queryList',
202
- method: 'post',
203
- requestId: 'customDeviceGroup',
204
- data: {},
205
- headers: getHeader()
206
- });
207
-
208
- case 2:
209
- res = _context5.sent;
210
- return _context5.abrupt("return", res.data);
211
-
212
- case 4:
213
- case "end":
214
- return _context5.stop();
215
- }
216
- }
217
- }, _callee5);
218
- }));
219
-
220
- function getCustomDeviceGroup() {
221
- return _getCustomDeviceGroup.apply(this, arguments);
222
- }
223
-
224
- return getCustomDeviceGroup;
225
- }()
226
- }, {
227
- key: "getPlacesByHasDevice",
228
- value: function () {
229
- var _getPlacesByHasDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
230
- var res;
231
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
232
- while (1) {
233
- switch (_context6.prev = _context6.next) {
234
- case 0:
235
- _context6.next = 2;
236
- return Service.http({
237
- url: '/api/place/v1/getPlacesByHasDevice',
238
- method: 'post',
239
- requestId: 'getPlacesByHasDevice',
240
- data: {},
241
- headers: getHeader()
242
- });
243
-
244
- case 2:
245
- res = _context6.sent;
246
- return _context6.abrupt("return", res.data);
247
-
248
- case 4:
249
- case "end":
250
- return _context6.stop();
251
- }
252
- }
253
- }, _callee6);
254
- }));
255
-
256
- function getPlacesByHasDevice() {
257
- return _getPlacesByHasDevice.apply(this, arguments);
258
- }
259
-
260
- return getPlacesByHasDevice;
261
- }()
262
- }]);
263
-
264
- return Api;
265
- }();
266
-
267
- export default new Api();
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface BetweentBoxProps {
4
- className?: string;
5
- children?: React.ReactNode;
6
- extNode?: React.ReactNode;
7
- style?: React.CSSProperties;
8
- left?: React.ReactNode;
9
- right?: React.ReactNode;
10
- }
11
- declare function BetweenBox({ className, left, right, style, children, extNode }: BetweentBoxProps): JSX.Element;
12
- export default BetweenBox;
@@ -1,31 +0,0 @@
1
- import React, { useMemo } from 'react';
2
- import "./index.less";
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- import { jsxs as _jsxs } from "react/jsx-runtime";
5
-
6
- function BetweenBox(_ref) {
7
- var _ref$className = _ref.className,
8
- className = _ref$className === void 0 ? '' : _ref$className,
9
- left = _ref.left,
10
- right = _ref.right,
11
- style = _ref.style,
12
- children = _ref.children,
13
- extNode = _ref.extNode;
14
- var title = useMemo(function () {
15
- return left || children;
16
- }, [left, children]);
17
- var other = useMemo(function () {
18
- return right || extNode;
19
- }, [right, extNode]);
20
- return /*#__PURE__*/_jsxs("div", {
21
- className: "lm-between-box ".concat(className),
22
- style: style,
23
- children: [title && /*#__PURE__*/_jsx("div", {
24
- children: title
25
- }), other && /*#__PURE__*/_jsx("div", {
26
- children: other
27
- })]
28
- });
29
- }
30
-
31
- export default BetweenBox;
@@ -1,5 +0,0 @@
1
- .lm-between-box {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- }
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- interface InfoBoxProps {
4
- className?: string;
5
- title?: React.ReactNode;
6
- titleExt?: React.ReactNode;
7
- style?: React.CSSProperties;
8
- contentStyle?: React.CSSProperties;
9
- children?: React.ReactNode;
10
- }
11
- declare function InfoBox({ title, titleExt, children, className, style, contentStyle }: InfoBoxProps): JSX.Element;
12
- export default InfoBox;
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import BetweenBox from "../BetweenBox";
3
- import "./index.less";
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- import { jsxs as _jsxs } from "react/jsx-runtime";
6
-
7
- function InfoBox(_ref) {
8
- var title = _ref.title,
9
- titleExt = _ref.titleExt,
10
- children = _ref.children,
11
- _ref$className = _ref.className,
12
- className = _ref$className === void 0 ? '' : _ref$className,
13
- style = _ref.style,
14
- contentStyle = _ref.contentStyle;
15
- return /*#__PURE__*/_jsxs("div", {
16
- className: "info-box-layout ".concat(className),
17
- style: style,
18
- children: [(!!title || !!titleExt) && /*#__PURE__*/_jsx(BetweenBox, {
19
- className: "info-box-title-wrapper",
20
- left: title,
21
- right: titleExt
22
- }), /*#__PURE__*/_jsx("div", {
23
- className: "info-box-content-wrapper",
24
- style: contentStyle,
25
- children: children
26
- })]
27
- });
28
- }
29
-
30
- export default InfoBox;
@@ -1,24 +0,0 @@
1
- .info-box-layout {
2
- display: flex;
3
- width: 100%;
4
- margin-bottom: 20px;
5
- flex-direction: column;
6
-
7
- .info-box-title-wrapper {
8
- display: flex;
9
- height: 3em;
10
- min-height: max-content;
11
- padding: 0 10px;
12
- font-weight: 700;
13
- background-color: var(--gray2);
14
- border: 1px solid var(--gray3);
15
- border-bottom: none;
16
- align-items: center;
17
- }
18
-
19
- .info-box-content-wrapper {
20
- background-color: var(--gray1);
21
- border: 1px solid var(--gray3);
22
- flex: 1;
23
- }
24
- }
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface TwoColumnBoxProps {
4
- className?: string;
5
- collapsible?: boolean;
6
- leftContent?: React.ReactNode | JSX.Element;
7
- children?: React.ReactNode;
8
- }
9
- declare function TwoColumnBox({ className, collapsible, leftContent, children }: TwoColumnBoxProps): JSX.Element;
10
- export default TwoColumnBox;
@@ -1,54 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
-
3
- 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."); }
4
-
5
- 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); }
6
-
7
- 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; }
8
-
9
- 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; }
10
-
11
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
-
13
- import React, { useState } from 'react';
14
- import "./index.less";
15
- import { jsx as _jsx } from "react/jsx-runtime";
16
- import { jsxs as _jsxs } from "react/jsx-runtime";
17
-
18
- function TwoColumnBox(_ref) {
19
- var _ref$className = _ref.className,
20
- className = _ref$className === void 0 ? '' : _ref$className,
21
- _ref$collapsible = _ref.collapsible,
22
- collapsible = _ref$collapsible === void 0 ? true : _ref$collapsible,
23
- leftContent = _ref.leftContent,
24
- children = _ref.children;
25
-
26
- var _useState = useState(false),
27
- _useState2 = _slicedToArray(_useState, 2),
28
- collapsed = _useState2[0],
29
- setCollapsed = _useState2[1];
30
-
31
- return /*#__PURE__*/_jsxs("div", {
32
- className: "two-column-layout-container ".concat(className),
33
- children: [/*#__PURE__*/_jsx("div", {
34
- className: "two-column-aside ".concat(collapsed ? 'hide-left-aside' : ''),
35
- children: /*#__PURE__*/_jsx("div", {
36
- className: "two-colum-left-wrapper",
37
- children: /*#__PURE__*/_jsxs("div", {
38
- className: "two-colum-left-content",
39
- children: [leftContent, collapsible && /*#__PURE__*/_jsx("span", {
40
- onClick: function onClick() {
41
- return setCollapsed(!collapsed);
42
- },
43
- className: "left-aside-slider-btn"
44
- })]
45
- })
46
- })
47
- }), /*#__PURE__*/_jsx("div", {
48
- className: "two-column-content",
49
- children: children
50
- })]
51
- });
52
- }
53
-
54
- export default TwoColumnBox;