inl-ui 0.0.6 → 0.0.7

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/index.js CHANGED
@@ -330,12 +330,12 @@ function isEdge() {
330
330
  } // eslint-disable-next-line require-jsdoc
331
331
  // Copyright (C) <2018> Intel Corporation
332
332
 
333
- /**
334
- * @class AudioSourceInfo
335
- * @classDesc Source info about an audio track. Values: 'mic', 'screen-cast', 'file', 'mixed'.
336
- * @memberOf Owt.Base
337
- * @readonly
338
- * @enum {string}
333
+ /**
334
+ * @class AudioSourceInfo
335
+ * @classDesc Source info about an audio track. Values: 'mic', 'screen-cast', 'file', 'mixed'.
336
+ * @memberOf Owt.Base
337
+ * @readonly
338
+ * @enum {string}
339
339
  */
340
340
 
341
341
 
@@ -345,12 +345,12 @@ const AudioSourceInfo = {
345
345
  FILE: "file",
346
346
  MIXED: "mixed"
347
347
  };
348
- /**
349
- * @class VideoSourceInfo
350
- * @classDesc Source info about a video track. Values: 'camera', 'screen-cast', 'file', 'mixed'.
351
- * @memberOf Owt.Base
352
- * @readonly
353
- * @enum {string}
348
+ /**
349
+ * @class VideoSourceInfo
350
+ * @classDesc Source info about a video track. Values: 'camera', 'screen-cast', 'file', 'mixed'.
351
+ * @memberOf Owt.Base
352
+ * @readonly
353
+ * @enum {string}
354
354
  */
355
355
 
356
356
  const VideoSourceInfo = {
@@ -359,52 +359,52 @@ const VideoSourceInfo = {
359
359
  FILE: "file",
360
360
  MIXED: "mixed"
361
361
  };
362
- /**
363
- * @class Resolution
364
- * @memberOf Owt.Base
365
- * @classDesc The Resolution defines the size of a rectangle.
366
- * @constructor
367
- * @param {number} width
368
- * @param {number} height
362
+ /**
363
+ * @class Resolution
364
+ * @memberOf Owt.Base
365
+ * @classDesc The Resolution defines the size of a rectangle.
366
+ * @constructor
367
+ * @param {number} width
368
+ * @param {number} height
369
369
  */
370
370
 
371
371
  class Resolution {
372
372
  // eslint-disable-next-line require-jsdoc
373
373
  constructor(width, height) {
374
- /**
375
- * @member {number} width
376
- * @instance
377
- * @memberof Owt.Base.Resolution
374
+ /**
375
+ * @member {number} width
376
+ * @instance
377
+ * @memberof Owt.Base.Resolution
378
378
  */
379
379
  this.width = width;
380
- /**
381
- * @member {number} height
382
- * @instance
383
- * @memberof Owt.Base.Resolution
380
+ /**
381
+ * @member {number} height
382
+ * @instance
383
+ * @memberof Owt.Base.Resolution
384
384
  */
385
385
 
386
386
  this.height = height;
387
387
  }
388
388
 
389
389
  }
390
- /*
391
- * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
392
- *
393
- * Use of this source code is governed by a BSD-style license
394
- * that can be found in the LICENSE file in the root of the source
395
- * tree.
390
+ /*
391
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
392
+ *
393
+ * Use of this source code is governed by a BSD-style license
394
+ * that can be found in the LICENSE file in the root of the source
395
+ * tree.
396
396
  */
397
397
 
398
398
 
399
399
  let logDisabled_ = true;
400
400
  let deprecationWarnings_ = true;
401
- /**
402
- * Extract browser version out of the provided user agent string.
403
- *
404
- * @param {!string} uastring userAgent string.
405
- * @param {!string} expr Regular expression used as match criteria.
406
- * @param {!number} pos position in the version string to be returned.
407
- * @return {!number} browser version.
401
+ /**
402
+ * Extract browser version out of the provided user agent string.
403
+ *
404
+ * @param {!string} uastring userAgent string.
405
+ * @param {!string} expr Regular expression used as match criteria.
406
+ * @param {!number} pos position in the version string to be returned.
407
+ * @return {!number} browser version.
408
408
  */
409
409
 
410
410
  function extractVersion(uastring, expr, pos) {
@@ -506,9 +506,9 @@ function disableLog(bool) {
506
506
  logDisabled_ = bool;
507
507
  return bool ? "adapter.js logging disabled" : "adapter.js logging enabled";
508
508
  }
509
- /**
510
- * Disable or enable deprecation warnings
511
- * @param {!boolean} bool set to true to disable warnings.
509
+ /**
510
+ * Disable or enable deprecation warnings
511
+ * @param {!boolean} bool set to true to disable warnings.
512
512
  */
513
513
 
514
514
 
@@ -532,8 +532,8 @@ function log$1() {
532
532
  }
533
533
  }
534
534
  }
535
- /**
536
- * Shows a deprecation warning suggesting the modern and spec-compatible API.
535
+ /**
536
+ * Shows a deprecation warning suggesting the modern and spec-compatible API.
537
537
  */
538
538
 
539
539
 
@@ -544,11 +544,11 @@ function deprecated(oldMethod, newMethod) {
544
544
 
545
545
  console.warn(oldMethod + " is deprecated, please use " + newMethod + " instead.");
546
546
  }
547
- /**
548
- * Browser detector.
549
- *
550
- * @return {object} result containing browser and version
551
- * properties.
547
+ /**
548
+ * Browser detector.
549
+ *
550
+ * @return {object} result containing browser and version
551
+ * properties.
552
552
  */
553
553
 
554
554
 
@@ -596,21 +596,21 @@ function detectBrowser(window) {
596
596
 
597
597
  return result;
598
598
  }
599
- /**
600
- * Checks if something is an object.
601
- *
602
- * @param {*} val The something you want to check.
603
- * @return true if val is an object, false otherwise.
599
+ /**
600
+ * Checks if something is an object.
601
+ *
602
+ * @param {*} val The something you want to check.
603
+ * @return true if val is an object, false otherwise.
604
604
  */
605
605
 
606
606
 
607
607
  function isObject(val) {
608
608
  return Object.prototype.toString.call(val) === "[object Object]";
609
609
  }
610
- /**
611
- * Remove all empty objects and undefined values
612
- * from a nested object -- an enhanced and vanilla version
613
- * of Lodash's `compact`.
610
+ /**
611
+ * Remove all empty objects and undefined values
612
+ * from a nested object -- an enhanced and vanilla version
613
+ * of Lodash's `compact`.
614
614
  */
615
615
 
616
616
 
@@ -678,12 +678,12 @@ function filterStats(result, track, outbound) {
678
678
  });
679
679
  return filteredResult;
680
680
  }
681
- /*
682
- * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
683
- *
684
- * Use of this source code is governed by a BSD-style license
685
- * that can be found in the LICENSE file in the root of the source
686
- * tree.
681
+ /*
682
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
683
+ *
684
+ * Use of this source code is governed by a BSD-style license
685
+ * that can be found in the LICENSE file in the root of the source
686
+ * tree.
687
687
  */
688
688
 
689
689
 
@@ -890,12 +890,12 @@ function shimGetUserMedia$3(window, browserDetails) {
890
890
  };
891
891
  }
892
892
  }
893
- /*
894
- * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
895
- *
896
- * Use of this source code is governed by a BSD-style license
897
- * that can be found in the LICENSE file in the root of the source
898
- * tree.
893
+ /*
894
+ * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
895
+ *
896
+ * Use of this source code is governed by a BSD-style license
897
+ * that can be found in the LICENSE file in the root of the source
898
+ * tree.
899
899
  */
900
900
 
901
901
 
@@ -940,12 +940,12 @@ function shimGetDisplayMedia$2(window, getSourceId) {
940
940
  });
941
941
  };
942
942
  }
943
- /*
944
- * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
945
- *
946
- * Use of this source code is governed by a BSD-style license
947
- * that can be found in the LICENSE file in the root of the source
948
- * tree.
943
+ /*
944
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
945
+ *
946
+ * Use of this source code is governed by a BSD-style license
947
+ * that can be found in the LICENSE file in the root of the source
948
+ * tree.
949
949
  */
950
950
 
951
951
 
@@ -1243,9 +1243,9 @@ function shimSenderReceiverGetStats(window) {
1243
1243
  window.RTCRtpSender.prototype.getStats = function getStats() {
1244
1244
  const sender = this;
1245
1245
  return this._pc.getStats().then(result =>
1246
- /* Note: this will include stats of all senders that
1247
- * send a track with the same id as sender.track as
1248
- * it is not possible to identify the RTCRtpSender.
1246
+ /* Note: this will include stats of all senders that
1247
+ * send a track with the same id as sender.track as
1248
+ * it is not possible to identify the RTCRtpSender.
1249
1249
  */
1250
1250
  filterStats(result, sender.track, true));
1251
1251
  };
@@ -1672,12 +1672,12 @@ var chromeShim = /*#__PURE__*/Object.freeze({
1672
1672
  shimGetUserMedia: shimGetUserMedia$3,
1673
1673
  shimGetDisplayMedia: shimGetDisplayMedia$2
1674
1674
  });
1675
- /*
1676
- * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
1677
- *
1678
- * Use of this source code is governed by a BSD-style license
1679
- * that can be found in the LICENSE file in the root of the source
1680
- * tree.
1675
+ /*
1676
+ * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
1677
+ *
1678
+ * Use of this source code is governed by a BSD-style license
1679
+ * that can be found in the LICENSE file in the root of the source
1680
+ * tree.
1681
1681
  */
1682
1682
  // Edge does not like
1683
1683
  // 1) stun: filtered after 14393 unless ?transport=udp is present
@@ -2559,12 +2559,12 @@ var sdp = createCommonjsModule(function (module) {
2559
2559
  module.exports = SDPUtils;
2560
2560
  }
2561
2561
  });
2562
- /*
2563
- * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
2564
- *
2565
- * Use of this source code is governed by a BSD-style license
2566
- * that can be found in the LICENSE file in the root of the source
2567
- * tree.
2562
+ /*
2563
+ * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
2564
+ *
2565
+ * Use of this source code is governed by a BSD-style license
2566
+ * that can be found in the LICENSE file in the root of the source
2567
+ * tree.
2568
2568
  */
2569
2569
 
2570
2570
  function fixStatsType(stat) {
@@ -3753,10 +3753,10 @@ var rtcpeerconnection = function (window, edgeVersion) {
3753
3753
 
3754
3754
  RTCPeerConnection.prototype.close = function () {
3755
3755
  this.transceivers.forEach(function (transceiver) {
3756
- /* not yet
3757
- if (transceiver.iceGatherer) {
3758
- transceiver.iceGatherer.close();
3759
- }
3756
+ /* not yet
3757
+ if (transceiver.iceGatherer) {
3758
+ transceiver.iceGatherer.close();
3759
+ }
3760
3760
  */
3761
3761
  if (transceiver.iceTransport) {
3762
3762
  transceiver.iceTransport.stop();
@@ -4357,12 +4357,12 @@ var rtcpeerconnection = function (window, edgeVersion) {
4357
4357
  });
4358
4358
  return RTCPeerConnection;
4359
4359
  };
4360
- /*
4361
- * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
4362
- *
4363
- * Use of this source code is governed by a BSD-style license
4364
- * that can be found in the LICENSE file in the root of the source
4365
- * tree.
4360
+ /*
4361
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
4362
+ *
4363
+ * Use of this source code is governed by a BSD-style license
4364
+ * that can be found in the LICENSE file in the root of the source
4365
+ * tree.
4366
4366
  */
4367
4367
 
4368
4368
 
@@ -4391,12 +4391,12 @@ function shimGetUserMedia$2(window) {
4391
4391
  return origGetUserMedia(c).catch(e => Promise.reject(shimError_(e)));
4392
4392
  };
4393
4393
  }
4394
- /*
4395
- * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
4396
- *
4397
- * Use of this source code is governed by a BSD-style license
4398
- * that can be found in the LICENSE file in the root of the source
4399
- * tree.
4394
+ /*
4395
+ * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
4396
+ *
4397
+ * Use of this source code is governed by a BSD-style license
4398
+ * that can be found in the LICENSE file in the root of the source
4399
+ * tree.
4400
4400
  */
4401
4401
 
4402
4402
 
@@ -4415,12 +4415,12 @@ function shimGetDisplayMedia$1(window) {
4415
4415
 
4416
4416
  window.navigator.mediaDevices.getDisplayMedia = window.navigator.getDisplayMedia.bind(window.navigator);
4417
4417
  }
4418
- /*
4419
- * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
4420
- *
4421
- * Use of this source code is governed by a BSD-style license
4422
- * that can be found in the LICENSE file in the root of the source
4423
- * tree.
4418
+ /*
4419
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
4420
+ *
4421
+ * Use of this source code is governed by a BSD-style license
4422
+ * that can be found in the LICENSE file in the root of the source
4423
+ * tree.
4424
4424
  */
4425
4425
 
4426
4426
 
@@ -4508,12 +4508,12 @@ var edgeShim = /*#__PURE__*/Object.freeze({
4508
4508
  shimGetUserMedia: shimGetUserMedia$2,
4509
4509
  shimGetDisplayMedia: shimGetDisplayMedia$1
4510
4510
  });
4511
- /*
4512
- * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
4513
- *
4514
- * Use of this source code is governed by a BSD-style license
4515
- * that can be found in the LICENSE file in the root of the source
4516
- * tree.
4511
+ /*
4512
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
4513
+ *
4514
+ * Use of this source code is governed by a BSD-style license
4515
+ * that can be found in the LICENSE file in the root of the source
4516
+ * tree.
4517
4517
  */
4518
4518
 
4519
4519
  function shimGetUserMedia$1(window, browserDetails) {
@@ -4572,12 +4572,12 @@ function shimGetUserMedia$1(window, browserDetails) {
4572
4572
  }
4573
4573
  }
4574
4574
  }
4575
- /*
4576
- * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
4577
- *
4578
- * Use of this source code is governed by a BSD-style license
4579
- * that can be found in the LICENSE file in the root of the source
4580
- * tree.
4575
+ /*
4576
+ * Copyright (c) 2018 The adapter.js project authors. All Rights Reserved.
4577
+ *
4578
+ * Use of this source code is governed by a BSD-style license
4579
+ * that can be found in the LICENSE file in the root of the source
4580
+ * tree.
4581
4581
  */
4582
4582
 
4583
4583
 
@@ -4610,12 +4610,12 @@ function shimGetDisplayMedia(window, preferredMediaSource) {
4610
4610
  return window.navigator.mediaDevices.getUserMedia(constraints);
4611
4611
  };
4612
4612
  }
4613
- /*
4614
- * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
4615
- *
4616
- * Use of this source code is governed by a BSD-style license
4617
- * that can be found in the LICENSE file in the root of the source
4618
- * tree.
4613
+ /*
4614
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
4615
+ *
4616
+ * Use of this source code is governed by a BSD-style license
4617
+ * that can be found in the LICENSE file in the root of the source
4618
+ * tree.
4619
4619
  */
4620
4620
 
4621
4621
 
@@ -4935,12 +4935,12 @@ var firefoxShim = /*#__PURE__*/Object.freeze({
4935
4935
  shimGetUserMedia: shimGetUserMedia$1,
4936
4936
  shimGetDisplayMedia: shimGetDisplayMedia
4937
4937
  });
4938
- /*
4939
- * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
4940
- *
4941
- * Use of this source code is governed by a BSD-style license
4942
- * that can be found in the LICENSE file in the root of the source
4943
- * tree.
4938
+ /*
4939
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
4940
+ *
4941
+ * Use of this source code is governed by a BSD-style license
4942
+ * that can be found in the LICENSE file in the root of the source
4943
+ * tree.
4944
4944
  */
4945
4945
 
4946
4946
  function shimLocalStreamsAPI(window) {
@@ -5334,12 +5334,12 @@ var safariShim = /*#__PURE__*/Object.freeze({
5334
5334
  shimCreateOfferLegacy: shimCreateOfferLegacy,
5335
5335
  shimAudioContext: shimAudioContext
5336
5336
  });
5337
- /*
5338
- * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
5339
- *
5340
- * Use of this source code is governed by a BSD-style license
5341
- * that can be found in the LICENSE file in the root of the source
5342
- * tree.
5337
+ /*
5338
+ * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
5339
+ *
5340
+ * Use of this source code is governed by a BSD-style license
5341
+ * that can be found in the LICENSE file in the root of the source
5342
+ * tree.
5343
5343
  */
5344
5344
 
5345
5345
  function shimRTCIceCandidate(window) {
@@ -5586,12 +5586,12 @@ function shimSendThrowTypeError(window) {
5586
5586
  return e;
5587
5587
  });
5588
5588
  }
5589
- /* shims RTCConnectionState by pretending it is the same as iceConnectionState.
5590
- * See https://bugs.chromium.org/p/webrtc/issues/detail?id=6145#c12
5591
- * for why this is a valid hack in Chrome. In Firefox it is slightly incorrect
5592
- * since DTLS failures would be hidden. See
5593
- * https://bugzilla.mozilla.org/show_bug.cgi?id=1265827
5594
- * for the Firefox tracking bug.
5589
+ /* shims RTCConnectionState by pretending it is the same as iceConnectionState.
5590
+ * See https://bugs.chromium.org/p/webrtc/issues/detail?id=6145#c12
5591
+ * for why this is a valid hack in Chrome. In Firefox it is slightly incorrect
5592
+ * since DTLS failures would be hidden. See
5593
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=1265827
5594
+ * for the Firefox tracking bug.
5595
5595
  */
5596
5596
 
5597
5597
 
@@ -5738,12 +5738,12 @@ var commonShim = /*#__PURE__*/Object.freeze({
5738
5738
  removeExtmapAllowMixed: removeExtmapAllowMixed,
5739
5739
  shimAddIceCandidateNullOrEmpty: shimAddIceCandidateNullOrEmpty
5740
5740
  });
5741
- /*
5742
- * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
5743
- *
5744
- * Use of this source code is governed by a BSD-style license
5745
- * that can be found in the LICENSE file in the root of the source
5746
- * tree.
5741
+ /*
5742
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
5743
+ *
5744
+ * Use of this source code is governed by a BSD-style license
5745
+ * that can be found in the LICENSE file in the root of the source
5746
+ * tree.
5747
5747
  */
5748
5748
  // Shimming starts here.
5749
5749
 
@@ -5877,24 +5877,24 @@ function adapterFactory({
5877
5877
 
5878
5878
  return adapter;
5879
5879
  }
5880
- /*
5881
- * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
5882
- *
5883
- * Use of this source code is governed by a BSD-style license
5884
- * that can be found in the LICENSE file in the root of the source
5885
- * tree.
5880
+ /*
5881
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
5882
+ *
5883
+ * Use of this source code is governed by a BSD-style license
5884
+ * that can be found in the LICENSE file in the root of the source
5885
+ * tree.
5886
5886
  */
5887
5887
 
5888
5888
 
5889
5889
  adapterFactory({
5890
5890
  window: typeof window === "undefined" ? undefined : window
5891
5891
  });
5892
- /**
5893
- * @class AudioTrackConstraints
5894
- * @classDesc Constraints for creating an audio MediaStreamTrack.
5895
- * @memberof Owt.Base
5896
- * @constructor
5897
- * @param {Owt.Base.AudioSourceInfo} source Source info of this audio track.
5892
+ /**
5893
+ * @class AudioTrackConstraints
5894
+ * @classDesc Constraints for creating an audio MediaStreamTrack.
5895
+ * @memberof Owt.Base
5896
+ * @constructor
5897
+ * @param {Owt.Base.AudioSourceInfo} source Source info of this audio track.
5898
5898
  */
5899
5899
 
5900
5900
  class AudioTrackConstraints {
@@ -5903,33 +5903,33 @@ class AudioTrackConstraints {
5903
5903
  if (!Object.values(AudioSourceInfo).some(v => v === source)) {
5904
5904
  throw new TypeError("Invalid source.");
5905
5905
  }
5906
- /**
5907
- * @member {string} source
5908
- * @memberof Owt.Base.AudioTrackConstraints
5909
- * @desc Values could be "mic", "screen-cast", "file" or "mixed".
5910
- * @instance
5906
+ /**
5907
+ * @member {string} source
5908
+ * @memberof Owt.Base.AudioTrackConstraints
5909
+ * @desc Values could be "mic", "screen-cast", "file" or "mixed".
5910
+ * @instance
5911
5911
  */
5912
5912
 
5913
5913
 
5914
5914
  this.source = source;
5915
- /**
5916
- * @member {string} deviceId
5917
- * @memberof Owt.Base.AudioTrackConstraints
5918
- * @desc Do not provide deviceId if source is not "mic".
5919
- * @instance
5920
- * @see https://w3c.github.io/mediacapture-main/#def-constraint-deviceId
5915
+ /**
5916
+ * @member {string} deviceId
5917
+ * @memberof Owt.Base.AudioTrackConstraints
5918
+ * @desc Do not provide deviceId if source is not "mic".
5919
+ * @instance
5920
+ * @see https://w3c.github.io/mediacapture-main/#def-constraint-deviceId
5921
5921
  */
5922
5922
 
5923
5923
  this.deviceId = undefined;
5924
5924
  }
5925
5925
 
5926
5926
  }
5927
- /**
5928
- * @class VideoTrackConstraints
5929
- * @classDesc Constraints for creating a video MediaStreamTrack.
5930
- * @memberof Owt.Base
5931
- * @constructor
5932
- * @param {Owt.Base.VideoSourceInfo} source Source info of this video track.
5927
+ /**
5928
+ * @class VideoTrackConstraints
5929
+ * @classDesc Constraints for creating a video MediaStreamTrack.
5930
+ * @memberof Owt.Base
5931
+ * @constructor
5932
+ * @param {Owt.Base.VideoSourceInfo} source Source info of this video track.
5933
5933
  */
5934
5934
 
5935
5935
 
@@ -5939,64 +5939,64 @@ class VideoTrackConstraints {
5939
5939
  if (!Object.values(VideoSourceInfo).some(v => v === source)) {
5940
5940
  throw new TypeError("Invalid source.");
5941
5941
  }
5942
- /**
5943
- * @member {string} source
5944
- * @memberof Owt.Base.VideoTrackConstraints
5945
- * @desc Values could be "camera", "screen-cast", "file" or "mixed".
5946
- * @instance
5942
+ /**
5943
+ * @member {string} source
5944
+ * @memberof Owt.Base.VideoTrackConstraints
5945
+ * @desc Values could be "camera", "screen-cast", "file" or "mixed".
5946
+ * @instance
5947
5947
  */
5948
5948
 
5949
5949
 
5950
5950
  this.source = source;
5951
- /**
5952
- * @member {string} deviceId
5953
- * @memberof Owt.Base.VideoTrackConstraints
5954
- * @desc Do not provide deviceId if source is not "camera".
5955
- * @instance
5956
- * @see https://w3c.github.io/mediacapture-main/#def-constraint-deviceId
5951
+ /**
5952
+ * @member {string} deviceId
5953
+ * @memberof Owt.Base.VideoTrackConstraints
5954
+ * @desc Do not provide deviceId if source is not "camera".
5955
+ * @instance
5956
+ * @see https://w3c.github.io/mediacapture-main/#def-constraint-deviceId
5957
5957
  */
5958
5958
 
5959
5959
  this.deviceId = undefined;
5960
- /**
5961
- * @member {Owt.Base.Resolution} resolution
5962
- * @memberof Owt.Base.VideoTrackConstraints
5963
- * @instance
5960
+ /**
5961
+ * @member {Owt.Base.Resolution} resolution
5962
+ * @memberof Owt.Base.VideoTrackConstraints
5963
+ * @instance
5964
5964
  */
5965
5965
 
5966
5966
  this.resolution = undefined;
5967
- /**
5968
- * @member {number} frameRate
5969
- * @memberof Owt.Base.VideoTrackConstraints
5970
- * @instance
5967
+ /**
5968
+ * @member {number} frameRate
5969
+ * @memberof Owt.Base.VideoTrackConstraints
5970
+ * @instance
5971
5971
  */
5972
5972
 
5973
5973
  this.frameRate = undefined;
5974
5974
  }
5975
5975
 
5976
5976
  }
5977
- /**
5978
- * @class StreamConstraints
5979
- * @classDesc Constraints for creating a MediaStream from screen mic and camera.
5980
- * @memberof Owt.Base
5981
- * @constructor
5982
- * @param {?Owt.Base.AudioTrackConstraints} audioConstraints
5983
- * @param {?Owt.Base.VideoTrackConstraints} videoConstraints
5977
+ /**
5978
+ * @class StreamConstraints
5979
+ * @classDesc Constraints for creating a MediaStream from screen mic and camera.
5980
+ * @memberof Owt.Base
5981
+ * @constructor
5982
+ * @param {?Owt.Base.AudioTrackConstraints} audioConstraints
5983
+ * @param {?Owt.Base.VideoTrackConstraints} videoConstraints
5984
5984
  */
5985
5985
 
5986
5986
 
5987
5987
  class StreamConstraints {
5988
5988
  // eslint-disable-next-line require-jsdoc
5989
5989
  constructor(audioConstraints = false, videoConstraints = false) {
5990
- /**
5991
- * @member {Owt.Base.MediaStreamTrackDeviceConstraintsForAudio} audio
5992
- * @memberof Owt.Base.MediaStreamDeviceConstraints
5993
- * @instance
5990
+ /**
5991
+ * @member {Owt.Base.MediaStreamTrackDeviceConstraintsForAudio} audio
5992
+ * @memberof Owt.Base.MediaStreamDeviceConstraints
5993
+ * @instance
5994
5994
  */
5995
5995
  this.audio = audioConstraints;
5996
- /**
5997
- * @member {Owt.Base.MediaStreamTrackDeviceConstraintsForVideo} Video
5998
- * @memberof Owt.Base.MediaStreamDeviceConstraints
5999
- * @instance
5996
+ /**
5997
+ * @member {Owt.Base.MediaStreamTrackDeviceConstraintsForVideo} Video
5998
+ * @memberof Owt.Base.MediaStreamDeviceConstraints
5999
+ * @instance
6000
6000
  */
6001
6001
 
6002
6002
  this.video = videoConstraints;
@@ -6008,26 +6008,26 @@ class StreamConstraints {
6008
6008
  function isVideoConstrainsForScreenCast(constraints) {
6009
6009
  return typeof constraints.video === "object" && constraints.video.source === VideoSourceInfo.SCREENCAST;
6010
6010
  }
6011
- /**
6012
- * @class MediaStreamFactory
6013
- * @classDesc A factory to create MediaStream. You can also create MediaStream by yourself.
6014
- * @memberof Owt.Base
6011
+ /**
6012
+ * @class MediaStreamFactory
6013
+ * @classDesc A factory to create MediaStream. You can also create MediaStream by yourself.
6014
+ * @memberof Owt.Base
6015
6015
  */
6016
6016
 
6017
6017
 
6018
6018
  class MediaStreamFactory {
6019
- /**
6020
- * @function createMediaStream
6021
- * @static
6022
- * @desc Create a MediaStream with given constraints. If you want to create a MediaStream for screen cast, please make sure both audio and video's source are "screen-cast".
6023
- * @memberof Owt.Base.MediaStreamFactory
6024
- * @return {Promise<MediaStream, Error>} Return a promise that is resolved when stream is successfully created, or rejected if one of the following error happened:
6025
- * - One or more parameters cannot be satisfied.
6026
- * - Specified device is busy.
6027
- * - Cannot obtain necessary permission or operation is canceled by user.
6028
- * - Video source is screen cast, while audio source is not.
6029
- * - Audio source is screen cast, while video source is disabled.
6030
- * @param {Owt.Base.StreamConstraints} constraints
6019
+ /**
6020
+ * @function createMediaStream
6021
+ * @static
6022
+ * @desc Create a MediaStream with given constraints. If you want to create a MediaStream for screen cast, please make sure both audio and video's source are "screen-cast".
6023
+ * @memberof Owt.Base.MediaStreamFactory
6024
+ * @return {Promise<MediaStream, Error>} Return a promise that is resolved when stream is successfully created, or rejected if one of the following error happened:
6025
+ * - One or more parameters cannot be satisfied.
6026
+ * - Specified device is busy.
6027
+ * - Cannot obtain necessary permission or operation is canceled by user.
6028
+ * - Video source is screen cast, while audio source is not.
6029
+ * - Audio source is screen cast, while video source is disabled.
6030
+ * @param {Owt.Base.StreamConstraints} constraints
6031
6031
  */
6032
6032
  static createMediaStream(constraints) {
6033
6033
  if (typeof constraints !== "object" || !constraints.audio && !constraints.video) {
@@ -6334,11 +6334,11 @@ class RTCEndpoint extends Event$1 {
6334
6334
  VideoTransceiverInit.direction = "recvonly";
6335
6335
  this.pc.addTransceiver("video", VideoTransceiverInit);
6336
6336
  }
6337
- /*
6338
- stream.getTracks().forEach((track,idx)=>{
6339
- debug.log(this.TAG,track);
6340
- this.pc.addTrack(track);
6341
- });
6337
+ /*
6338
+ stream.getTracks().forEach((track,idx)=>{
6339
+ debug.log(this.TAG,track);
6340
+ this.pc.addTrack(track);
6341
+ });
6342
6342
  */
6343
6343
 
6344
6344
 
@@ -6380,15 +6380,15 @@ class RTCEndpoint extends Event$1 {
6380
6380
  this.dispatch(Events$1.CAPTURE_STREAM_FAILED); //debug.error(this.TAG,e);
6381
6381
  }); //const offerOptions = {};
6382
6382
 
6383
- /*
6384
- if (typeof this.pc.addTransceiver === 'function') {
6385
- // |direction| seems not working on Safari.
6386
- this.pc.addTransceiver('audio', { direction: 'recvonly' });
6387
- this.pc.addTransceiver('video', { direction: 'recvonly' });
6388
- } else {
6389
- offerOptions.offerToReceiveAudio = true;
6390
- offerOptions.offerToReceiveVideo = true;
6391
- }
6383
+ /*
6384
+ if (typeof this.pc.addTransceiver === 'function') {
6385
+ // |direction| seems not working on Safari.
6386
+ this.pc.addTransceiver('audio', { direction: 'recvonly' });
6387
+ this.pc.addTransceiver('video', { direction: 'recvonly' });
6388
+ } else {
6389
+ offerOptions.offerToReceiveAudio = true;
6390
+ offerOptions.offerToReceiveVideo = true;
6391
+ }
6392
6392
  */
6393
6393
  }
6394
6394
 
@@ -6858,17 +6858,17 @@ const About = defineComponent({
6858
6858
  });
6859
6859
  var About$1 = utils.installComponent(About, "about");
6860
6860
 
6861
- /*
6862
- * @Abstract: 表格查询hook
6863
- * @Author: wang liang
6864
- * @Date: 2022-03-30 16:56:21
6865
- * @LastEditors: wang liang
6866
- * @LastEditTime: 2022-03-31 13:05:01
6861
+ /*
6862
+ * @Abstract: 表格查询hook
6863
+ * @Author: wang liang
6864
+ * @Date: 2022-03-30 16:56:21
6865
+ * @LastEditors: wang liang
6866
+ * @LastEditTime: 2022-03-31 13:05:01
6867
6867
  */
6868
- /**
6869
- * 通用表格查询hook
6870
- * @param getData 获取数据的函数 返回Promise
6871
- * @param listProp 数据列表在data中的属性 不传代表不分页
6868
+ /**
6869
+ * 通用表格查询hook
6870
+ * @param getData 获取数据的函数 返回Promise
6871
+ * @param listProp 数据列表在data中的属性 不传代表不分页
6872
6872
  */
6873
6873
 
6874
6874
  function useTableList(getData, listProp) {
@@ -6911,12 +6911,12 @@ function useTableList(getData, listProp) {
6911
6911
  };
6912
6912
  }
6913
6913
 
6914
- /*
6915
- * @Abstract: 摘要
6916
- * @Author: wang liang
6917
- * @Date: 2022-03-25 10:44:08
6918
- * @LastEditors: wang liang
6919
- * @LastEditTime: 2022-04-19 16:10:57
6914
+ /*
6915
+ * @Abstract: 摘要
6916
+ * @Author: wang liang
6917
+ * @Date: 2022-03-25 10:44:08
6918
+ * @LastEditors: wang liang
6919
+ * @LastEditTime: 2022-04-19 16:10:57
6920
6920
  */
6921
6921
  const instance = axios.create({
6922
6922
  baseURL: "/api/",
@@ -6984,16 +6984,16 @@ instance.interceptors.response.use(res => {
6984
6984
  return Promise.reject(err);
6985
6985
  });
6986
6986
 
6987
- /*
6988
- * @Abstract: 用户管理 api
6989
- * @Author: wang liang
6990
- * @Date: 2022-03-30 17:05:32
6991
- * @LastEditors: wang liang
6992
- * @LastEditTime: 2022-04-26 17:29:51
6987
+ /*
6988
+ * @Abstract: 用户管理 api
6989
+ * @Author: wang liang
6990
+ * @Date: 2022-03-30 17:05:32
6991
+ * @LastEditors: wang liang
6992
+ * @LastEditTime: 2022-04-26 17:29:51
6993
6993
  */
6994
6994
  var api$7 = {
6995
- /**
6996
- * 获取用户列表 分页
6995
+ /**
6996
+ * 获取用户列表 分页
6997
6997
  */
6998
6998
  getUserList: url => params => {
6999
6999
  return instance.get(url, {
@@ -7001,37 +7001,37 @@ var api$7 = {
7001
7001
  });
7002
7002
  },
7003
7003
 
7004
- /**
7005
- * 获取角色下拉列表
7004
+ /**
7005
+ * 获取角色下拉列表
7006
7006
  */
7007
7007
  getRoleList: url => () => {
7008
7008
  return instance.get(url);
7009
7009
  },
7010
7010
 
7011
- /**
7012
- * 获取员工下拉列表
7011
+ /**
7012
+ * 获取员工下拉列表
7013
7013
  */
7014
7014
  getEmployeeList: url => () => {
7015
7015
  return instance.get(url);
7016
7016
  },
7017
7017
 
7018
- /**
7019
- * 新增用户
7018
+ /**
7019
+ * 新增用户
7020
7020
  */
7021
7021
  insertOneUserRecord: url => data => {
7022
7022
  return instance.post(url, data);
7023
7023
  },
7024
7024
 
7025
- /**
7026
- * 修改用户
7025
+ /**
7026
+ * 修改用户
7027
7027
  */
7028
7028
  editUserRecord: url => data => {
7029
7029
  return instance.put(url, data);
7030
7030
  },
7031
7031
 
7032
- /**
7033
- * 编辑页面重置密码
7034
- * @param userId 用户id
7032
+ /**
7033
+ * 编辑页面重置密码
7034
+ * @param userId 用户id
7035
7035
  */
7036
7036
  resetPassword: url => userId => {
7037
7037
  return instance.post(url, {
@@ -7039,16 +7039,16 @@ var api$7 = {
7039
7039
  });
7040
7040
  },
7041
7041
 
7042
- /**
7043
- * 个人设置 修改密码
7042
+ /**
7043
+ * 个人设置 修改密码
7044
7044
  */
7045
7045
  changePassword: url => data => {
7046
7046
  return instance.post(url, data);
7047
7047
  },
7048
7048
 
7049
- /**
7050
- * 查询用户详情|个人设置页
7051
- * userId 个人设置页 此值为null
7049
+ /**
7050
+ * 查询用户详情|个人设置页
7051
+ * userId 个人设置页 此值为null
7052
7052
  */
7053
7053
  detail: url => params => {
7054
7054
  return instance.get(url, {
@@ -7056,30 +7056,30 @@ var api$7 = {
7056
7056
  });
7057
7057
  },
7058
7058
 
7059
- /**
7060
- * 删除用户
7059
+ /**
7060
+ * 删除用户
7061
7061
  */
7062
7062
  deleteUserById: url => id => {
7063
7063
  return instance.delete(`${url}${id}`);
7064
7064
  },
7065
7065
 
7066
- /**
7067
- * 获取员工详情 (点击员工姓名)
7066
+ /**
7067
+ * 获取员工详情 (点击员工姓名)
7068
7068
  */
7069
7069
  getEmployeeDetailInfo: url => employeeId => {
7070
7070
  return instance.get(`${url}${employeeId}`);
7071
7071
  }
7072
7072
  };
7073
7073
 
7074
- /*
7075
- * @Abstract: 系统管理 - 对话框控制
7076
- * @Author: wang liang
7077
- * @Date: 2022-04-01 19:26:44
7078
- * @LastEditors: wang liang
7079
- * @LastEditTime: 2022-04-01 19:36:20
7074
+ /*
7075
+ * @Abstract: 系统管理 - 对话框控制
7076
+ * @Author: wang liang
7077
+ * @Date: 2022-04-01 19:26:44
7078
+ * @LastEditors: wang liang
7079
+ * @LastEditTime: 2022-04-01 19:36:20
7080
7080
  */
7081
- /**
7082
- * 控制新增、编辑等对话框的显示
7081
+ /**
7082
+ * 控制新增、编辑等对话框的显示
7083
7083
  */
7084
7084
 
7085
7085
  function useModalVisibleControl() {
@@ -7097,26 +7097,26 @@ function useModalVisibleControl() {
7097
7097
  return [isDialogVisible, handleOpenDialog, tableRow];
7098
7098
  }
7099
7099
 
7100
- /*
7101
- * @Abstract: base64
7102
- * @Author: wang liang
7103
- * @Date: 2022-04-19 13:14:09
7104
- * @LastEditors: wang liang
7105
- * @LastEditTime: 2022-04-19 13:17:00
7100
+ /*
7101
+ * @Abstract: base64
7102
+ * @Author: wang liang
7103
+ * @Date: 2022-04-19 13:14:09
7104
+ * @LastEditors: wang liang
7105
+ * @LastEditTime: 2022-04-19 13:17:00
7106
7106
  */
7107
7107
 
7108
- /**
7109
- * base64加密字符串
7110
- * @param str 要加密的字符串
7111
- * @returns 加密后的字符串
7108
+ /**
7109
+ * base64加密字符串
7110
+ * @param str 要加密的字符串
7111
+ * @returns 加密后的字符串
7112
7112
  */
7113
7113
  function encodeStr(str) {
7114
7114
  return window.btoa(str);
7115
7115
  }
7116
7116
 
7117
- /**
7118
- * 创建必填的规则对象
7119
- * @param label 表单项中文名称
7117
+ /**
7118
+ * 创建必填的规则对象
7119
+ * @param label 表单项中文名称
7120
7120
  */
7121
7121
 
7122
7122
  function getRequiredRule(label) {
@@ -7125,10 +7125,10 @@ function getRequiredRule(label) {
7125
7125
  message: `${label}是必填项`
7126
7126
  };
7127
7127
  }
7128
- /**
7129
- * 创建最大长度规则对象
7130
- * @param label 名称
7131
- * @param max 最大长度
7128
+ /**
7129
+ * 创建最大长度规则对象
7130
+ * @param label 名称
7131
+ * @param max 最大长度
7132
7132
  */
7133
7133
 
7134
7134
  function getMaxRule(label, max) {
@@ -7236,11 +7236,11 @@ const UserProfileDialog = defineComponent({
7236
7236
 
7237
7237
  });
7238
7238
 
7239
- /**
7240
- * 判断一个对象的所有属性是否都符合条件
7241
- * @param obj 源对象
7242
- * @param _func 判断函数
7243
- * @returns 是否符合条件
7239
+ /**
7240
+ * 判断一个对象的所有属性是否都符合条件
7241
+ * @param obj 源对象
7242
+ * @param _func 判断函数
7243
+ * @returns 是否符合条件
7244
7244
  */
7245
7245
  function every(obj, _func) {
7246
7246
  let flag = true;
@@ -7729,7 +7729,7 @@ const UserManager = defineComponent({
7729
7729
  ...props.url
7730
7730
  };
7731
7731
  provide("urlMap", urlMap);
7732
- const formState = reactive({
7732
+ const formState = ref({
7733
7733
  userName: ""
7734
7734
  });
7735
7735
  /* 调用hook 初始化查询一次 */
@@ -7742,7 +7742,7 @@ const UserManager = defineComponent({
7742
7742
  tableList,
7743
7743
  total
7744
7744
  } = useTableList(() => api$7.getUserList(urlMap.list)({
7745
- keyWord: formState.userName,
7745
+ keyWord: formState.value.userName,
7746
7746
  pageNum: currPage.value,
7747
7747
  pageSize: 10
7748
7748
  }), "userJsons");
@@ -7831,8 +7831,8 @@ const UserManager = defineComponent({
7831
7831
  marginBottom: "16px"
7832
7832
  }
7833
7833
  }, [createVNode(resolveComponent("a-form"), {
7834
- "modelValue": formState,
7835
- "onUpdate:modelValue": $event => formState = $event,
7834
+ "modelValue": formState.value,
7835
+ "onUpdate:modelValue": $event => formState.value = $event,
7836
7836
  "name": "basic",
7837
7837
  "layout": "inline",
7838
7838
  "class": "searchLine",
@@ -7844,8 +7844,8 @@ const UserManager = defineComponent({
7844
7844
  default: () => [createVNode(resolveComponent("a-input"), {
7845
7845
  "placeholder": "请输入用户名称",
7846
7846
  "allowClear": true,
7847
- "value": formState.userName,
7848
- "onUpdate:value": $event => formState.userName = $event
7847
+ "value": formState.value.userName,
7848
+ "onUpdate:value": $event => formState.value.userName = $event
7849
7849
  }, null)]
7850
7850
  }), createVNode(resolveComponent("a-button"), {
7851
7851
  "type": "primary",
@@ -7932,16 +7932,16 @@ const UserManager = defineComponent({
7932
7932
  });
7933
7933
  var UserManager$1 = utils.installComponent(UserManager, "user-manager");
7934
7934
 
7935
- /*
7936
- * @Abstract: 权限管理-角色管理
7937
- * @Author: wang liang
7938
- * @Date: 2022-03-31 11:52:26
7939
- * @LastEditors: wang liang
7940
- * @LastEditTime: 2022-04-22 16:00:59
7935
+ /*
7936
+ * @Abstract: 权限管理-角色管理
7937
+ * @Author: wang liang
7938
+ * @Date: 2022-03-31 11:52:26
7939
+ * @LastEditors: wang liang
7940
+ * @LastEditTime: 2022-04-22 16:00:59
7941
7941
  */
7942
7942
  const api$6 = {
7943
- /**
7944
- * 获取角色列表
7943
+ /**
7944
+ * 获取角色列表
7945
7945
  */
7946
7946
  getRoleListByPager: url => params => {
7947
7947
  return instance.get(url, {
@@ -7949,8 +7949,8 @@ const api$6 = {
7949
7949
  });
7950
7950
  },
7951
7951
 
7952
- /**
7953
- * 切换角色启用状态
7952
+ /**
7953
+ * 切换角色启用状态
7954
7954
  */
7955
7955
  switchRoleEnableStatus: url => params => {
7956
7956
  return instance.get(url, {
@@ -7958,15 +7958,15 @@ const api$6 = {
7958
7958
  });
7959
7959
  },
7960
7960
 
7961
- /**
7962
- * 保存角色及权限树
7961
+ /**
7962
+ * 保存角色及权限树
7963
7963
  */
7964
7964
  insertRole: url => params => {
7965
7965
  return instance.post(url, params);
7966
7966
  },
7967
7967
 
7968
- /**
7969
- * 获取角色权限树- 编辑角色
7968
+ /**
7969
+ * 获取角色权限树- 编辑角色
7970
7970
  */
7971
7971
  getRoleTreeEdit: url => params => {
7972
7972
  return instance.get(url, {
@@ -7974,15 +7974,15 @@ const api$6 = {
7974
7974
  });
7975
7975
  },
7976
7976
 
7977
- /**
7978
- * 获取角色权限树- 新建角色
7977
+ /**
7978
+ * 获取角色权限树- 新建角色
7979
7979
  */
7980
7980
  getRoleTree: url => () => {
7981
7981
  return instance.get(url);
7982
7982
  },
7983
7983
 
7984
- /**
7985
- * 删除角色
7984
+ /**
7985
+ * 删除角色
7986
7986
  */
7987
7987
  deleteRoleById: url => roleTypeId => {
7988
7988
  return instance.get(url, {
@@ -7993,20 +7993,20 @@ const api$6 = {
7993
7993
  }
7994
7994
  };
7995
7995
 
7996
- /*
7997
- * @Abstract: 转换数据
7998
- * @Author: wang liang
7999
- * @Date: 2022-04-06 15:18:26
8000
- * @LastEditors: wang liang
8001
- * @LastEditTime: 2022-04-06 15:28:29
7996
+ /*
7997
+ * @Abstract: 转换数据
7998
+ * @Author: wang liang
7999
+ * @Date: 2022-04-06 15:18:26
8000
+ * @LastEditors: wang liang
8001
+ * @LastEditTime: 2022-04-06 15:28:29
8002
8002
  */
8003
8003
 
8004
- /**
8005
- * 转换菜单树结构数据
8006
- * 第一层menuList 转换为 subList 和子列表key保持一致
8007
- * softSysName 转换为 name
8008
- * softSysId 转换为 sys${id} ※取数据时要去掉sys
8009
- * @param treeData 树结构数据
8004
+ /**
8005
+ * 转换菜单树结构数据
8006
+ * 第一层menuList 转换为 subList 和子列表key保持一致
8007
+ * softSysName 转换为 name
8008
+ * softSysId 转换为 sys${id} ※取数据时要去掉sys
8009
+ * @param treeData 树结构数据
8010
8010
  */
8011
8011
  function transformMenuTree(treeData) {
8012
8012
  return treeData.map(item => {
@@ -8244,8 +8244,8 @@ const columns$1 = [{
8244
8244
  customRender: "operation"
8245
8245
  }
8246
8246
  }];
8247
- /**
8248
- * 角色管理
8247
+ /**
8248
+ * 角色管理
8249
8249
  */
8250
8250
 
8251
8251
  const RoleManager = defineComponent({
@@ -8353,8 +8353,8 @@ const RoleManager = defineComponent({
8353
8353
  }, [createVNode("div", {
8354
8354
  "class": "table-search"
8355
8355
  }, [createVNode(resolveComponent("a-form"), {
8356
- "modelValue": filter,
8357
- "onUpdate:modelValue": $event => filter = $event,
8356
+ "modelValue": filter.value,
8357
+ "onUpdate:modelValue": $event => filter.value = $event,
8358
8358
  "name": "basic",
8359
8359
  "layout": "inline",
8360
8360
  "class": "searchLine",
@@ -8445,17 +8445,17 @@ const RoleManager = defineComponent({
8445
8445
  });
8446
8446
  var RoleManager$1 = utils.installComponent(RoleManager, "role-manager");
8447
8447
 
8448
- /*
8449
- * @Abstract: 全局自定义事件
8450
- * @Author: wang liang
8451
- * @Date: 2022-04-15 16:52:41
8452
- * @LastEditors: wang liang
8453
- * @LastEditTime: 2022-04-15 16:59:27
8448
+ /*
8449
+ * @Abstract: 全局自定义事件
8450
+ * @Author: wang liang
8451
+ * @Date: 2022-04-15 16:52:41
8452
+ * @LastEditors: wang liang
8453
+ * @LastEditTime: 2022-04-15 16:59:27
8454
8454
  */
8455
8455
  const emitterMap = new Map();
8456
- /**
8457
- * 自定义事件 (按模块区分)
8458
- * @param module 模块名称 默认global
8456
+ /**
8457
+ * 自定义事件 (按模块区分)
8458
+ * @param module 模块名称 默认global
8459
8459
  */
8460
8460
 
8461
8461
  function useBus(module = 'global') {
@@ -8468,16 +8468,16 @@ function useBus(module = 'global') {
8468
8468
  return emitter;
8469
8469
  }
8470
8470
 
8471
- /*
8472
- * @Abstract: 权限管理-菜单管理
8473
- * @Author: wang liang
8474
- * @Date: 2022-03-31 15:40:05
8475
- * @LastEditors: wang liang
8476
- * @LastEditTime: 2022-04-26 15:45:58
8471
+ /*
8472
+ * @Abstract: 权限管理-菜单管理
8473
+ * @Author: wang liang
8474
+ * @Date: 2022-03-31 15:40:05
8475
+ * @LastEditors: wang liang
8476
+ * @LastEditTime: 2022-04-26 15:45:58
8477
8477
  */
8478
8478
  const api$5 = {
8479
- /**
8480
- * 用户权限树- 以树状结构返回菜单项
8479
+ /**
8480
+ * 用户权限树- 以树状结构返回菜单项
8481
8481
  */
8482
8482
  getMenuTreeList: url => params => {
8483
8483
  return instance.get(url, {
@@ -8485,36 +8485,36 @@ const api$5 = {
8485
8485
  });
8486
8486
  },
8487
8487
 
8488
- /**
8489
- * 添加菜单
8488
+ /**
8489
+ * 添加菜单
8490
8490
  */
8491
8491
  insertMenuRecord: url => data => {
8492
8492
  return instance.post(url, data);
8493
8493
  },
8494
8494
 
8495
- /**
8496
- * 修改菜单
8495
+ /**
8496
+ * 修改菜单
8497
8497
  */
8498
8498
  editMenuRecord: url => data => {
8499
8499
  return instance.post(url, data);
8500
8500
  },
8501
8501
 
8502
- /**
8503
- * 删除菜单
8502
+ /**
8503
+ * 删除菜单
8504
8504
  */
8505
8505
  deleteMenuById: url => menuId => {
8506
8506
  return instance.get(`${url}${menuId}`);
8507
8507
  },
8508
8508
 
8509
- /**
8510
- * 菜单排序接口
8509
+ /**
8510
+ * 菜单排序接口
8511
8511
  */
8512
8512
  sortMenu: url => data => {
8513
8513
  return instance.post(url, data);
8514
8514
  },
8515
8515
 
8516
- /**
8517
- * 上传JSON文件
8516
+ /**
8517
+ * 上传JSON文件
8518
8518
  */
8519
8519
  uploadJSONFile: url => file => {
8520
8520
  const formData = new FormData();
@@ -8527,27 +8527,27 @@ const api$5 = {
8527
8527
  }
8528
8528
  };
8529
8529
 
8530
- /**
8531
- * 获取当实例的proxy
8530
+ /**
8531
+ * 获取当实例的proxy
8532
8532
  */
8533
8533
 
8534
8534
  function useProxy() {
8535
8535
  return getCurrentInstance().proxy;
8536
8536
  }
8537
8537
 
8538
- /*
8539
- * @Abstract: 树结构工具
8540
- * @Author: wang liang
8541
- * @Date: 2022-04-18 09:12:12
8542
- * @LastEditors: wang liang
8543
- * @LastEditTime: 2022-04-26 16:06:15
8538
+ /*
8539
+ * @Abstract: 树结构工具
8540
+ * @Author: wang liang
8541
+ * @Date: 2022-04-18 09:12:12
8542
+ * @LastEditors: wang liang
8543
+ * @LastEditTime: 2022-04-26 16:06:15
8544
8544
  */
8545
8545
 
8546
- /**
8547
- * 从树结构中筛选
8548
- * @param treeData 树结构数据
8549
- * @param id id
8550
- * @param childProp 子列表属性名
8546
+ /**
8547
+ * 从树结构中筛选
8548
+ * @param treeData 树结构数据
8549
+ * @param id id
8550
+ * @param childProp 子列表属性名
8551
8551
  */
8552
8552
  function findById(treeData, id, childProp = 'subList') {
8553
8553
  const find = dataList => {
@@ -8574,8 +8574,8 @@ function findById(treeData, id, childProp = 'subList') {
8574
8574
 
8575
8575
  return find(treeData);
8576
8576
  }
8577
- /**
8578
- * 递归去除树结构中的 createDt/updateDt
8577
+ /**
8578
+ * 递归去除树结构中的 createDt/updateDt
8579
8579
  */
8580
8580
 
8581
8581
  function removeDateProp(treeData) {
@@ -8591,8 +8591,8 @@ function removeDateProp(treeData) {
8591
8591
  }
8592
8592
  });
8593
8593
  }
8594
- /**
8595
- * 查询父节点数据
8594
+ /**
8595
+ * 查询父节点数据
8596
8596
  */
8597
8597
 
8598
8598
  function getParentById(list, id, sub = 'subList', obj) {
@@ -9216,8 +9216,8 @@ const UploadJSONDialog = defineComponent({
9216
9216
 
9217
9217
  });
9218
9218
 
9219
- /**
9220
- * 菜单树结构
9219
+ /**
9220
+ * 菜单树结构
9221
9221
  */
9222
9222
 
9223
9223
  const MenuSelectTree = defineComponent({
@@ -9491,8 +9491,8 @@ const DEFAULT_URL$6 = {
9491
9491
  sort: "/comlite/v1/menu/sort/adjust",
9492
9492
  upload: "/comlite/v1/menu/json/upload"
9493
9493
  };
9494
- /**
9495
- * 菜单管理
9494
+ /**
9495
+ * 菜单管理
9496
9496
  */
9497
9497
 
9498
9498
  const MenuManager = defineComponent({
@@ -9538,16 +9538,16 @@ const MenuManager = defineComponent({
9538
9538
  });
9539
9539
  var MenuManager$1 = utils.installComponent(MenuManager, "menu-manager");
9540
9540
 
9541
- /*
9542
- * @Abstract: 组织管理 - 岗位管理
9543
- * @Author: wang liang
9544
- * @Date: 2022-04-01 17:59:26
9545
- * @LastEditors: wang liang
9546
- * @LastEditTime: 2022-04-06 16:40:19
9541
+ /*
9542
+ * @Abstract: 组织管理 - 岗位管理
9543
+ * @Author: wang liang
9544
+ * @Date: 2022-04-01 17:59:26
9545
+ * @LastEditors: wang liang
9546
+ * @LastEditTime: 2022-04-06 16:40:19
9547
9547
  */
9548
9548
  const api$4 = {
9549
- /**
9550
- * 获取岗位列表
9549
+ /**
9550
+ * 获取岗位列表
9551
9551
  */
9552
9552
  getPostList: url => params => {
9553
9553
  return instance.get(url, {
@@ -9555,15 +9555,15 @@ const api$4 = {
9555
9555
  });
9556
9556
  },
9557
9557
 
9558
- /**
9559
- * 切换岗位启用状态
9558
+ /**
9559
+ * 切换岗位启用状态
9560
9560
  */
9561
9561
  switchPostEnable: url => data => {
9562
9562
  return instance.post(url, data);
9563
9563
  },
9564
9564
 
9565
- /**
9566
- * 获取部门列表(添加、编辑 部门下拉框)
9565
+ /**
9566
+ * 获取部门列表(添加、编辑 部门下拉框)
9567
9567
  */
9568
9568
  getDepList: url => async () => {
9569
9569
  const {
@@ -9576,39 +9576,39 @@ const api$4 = {
9576
9576
  return data.departmentList ?? [];
9577
9577
  },
9578
9578
 
9579
- /**
9580
- * 修改岗位信息
9579
+ /**
9580
+ * 修改岗位信息
9581
9581
  */
9582
9582
  updatePostRecord: url => data => {
9583
9583
  return instance.post(url, data);
9584
9584
  },
9585
9585
 
9586
- /**
9587
- * 新增岗位信息
9586
+ /**
9587
+ * 新增岗位信息
9588
9588
  */
9589
9589
  insertPostRecord: url => data => {
9590
9590
  return instance.post(url, data);
9591
9591
  },
9592
9592
 
9593
- /**
9594
- * 删除一条岗位信息
9593
+ /**
9594
+ * 删除一条岗位信息
9595
9595
  */
9596
9596
  deletePostById: url => jobPostId => {
9597
9597
  return instance.get(`${url}${jobPostId}`);
9598
9598
  }
9599
9599
  };
9600
9600
 
9601
- /*
9602
- * @Abstract: 系统管理模块 - 根据模式 返回对话框的标题
9603
- * @Author: wang liang
9604
- * @Date: 2022-04-01 18:15:19
9605
- * @LastEditors: wang liang
9606
- * @LastEditTime: 2022-04-14 17:42:45
9601
+ /*
9602
+ * @Abstract: 系统管理模块 - 根据模式 返回对话框的标题
9603
+ * @Author: wang liang
9604
+ * @Date: 2022-04-01 18:15:19
9605
+ * @LastEditors: wang liang
9606
+ * @LastEditTime: 2022-04-14 17:42:45
9607
9607
  */
9608
- /**
9609
- * 根据模式返回对话框标题
9610
- * @param mode 模式
9611
- * @param moduleName 模块名称
9608
+ /**
9609
+ * 根据模式返回对话框标题
9610
+ * @param mode 模式
9611
+ * @param moduleName 模块名称
9612
9612
  */
9613
9613
 
9614
9614
  function useModalTitle(mode, moduleName) {
@@ -9626,12 +9626,12 @@ function useModalTitle(mode, moduleName) {
9626
9626
  return modalTitle;
9627
9627
  }
9628
9628
 
9629
- /*
9630
- * @Abstract: 系统管理 - 编辑对话框的表单
9631
- * @Author: wang liang
9632
- * @Date: 2022-04-01 18:56:13
9633
- * @LastEditors: wang liang
9634
- * @LastEditTime: 2022-04-02 09:53:00
9629
+ /*
9630
+ * @Abstract: 系统管理 - 编辑对话框的表单
9631
+ * @Author: wang liang
9632
+ * @Date: 2022-04-01 18:56:13
9633
+ * @LastEditors: wang liang
9634
+ * @LastEditTime: 2022-04-02 09:53:00
9635
9635
  */
9636
9636
  function useModalForm(isVisible, getRecord, mode, transformForm) {
9637
9637
  const formRef = ref();
@@ -9990,16 +9990,16 @@ const PostManager = defineComponent({
9990
9990
  });
9991
9991
  var PostManager$1 = utils.installComponent(PostManager, "post-manager");
9992
9992
 
9993
- /*
9994
- * @Abstract: 系统管理-组织管理-班组管理
9995
- * @Author: wang liang
9996
- * @Date: 2022-04-02 09:33:09
9997
- * @LastEditors: wang liang
9998
- * @LastEditTime: 2022-04-22 11:04:56
9993
+ /*
9994
+ * @Abstract: 系统管理-组织管理-班组管理
9995
+ * @Author: wang liang
9996
+ * @Date: 2022-04-02 09:33:09
9997
+ * @LastEditors: wang liang
9998
+ * @LastEditTime: 2022-04-22 11:04:56
9999
9999
  */
10000
10000
  const api$3 = {
10001
- /**
10002
- * 分页获取班组列表
10001
+ /**
10002
+ * 分页获取班组列表
10003
10003
  */
10004
10004
  getTeamListByPage: url => params => {
10005
10005
  return instance.get(url, {
@@ -10007,15 +10007,15 @@ const api$3 = {
10007
10007
  });
10008
10008
  },
10009
10009
 
10010
- /**
10011
- * 切换是否启用班组
10010
+ /**
10011
+ * 切换是否启用班组
10012
10012
  */
10013
10013
  switchEnableTeam: url => data => {
10014
10014
  return instance.post(url, data);
10015
10015
  },
10016
10016
 
10017
- /**
10018
- * 获取部门列表(添加、编辑 部门下拉框)
10017
+ /**
10018
+ * 获取部门列表(添加、编辑 部门下拉框)
10019
10019
  */
10020
10020
  getDepList: url => async () => {
10021
10021
  const {
@@ -10028,8 +10028,8 @@ const api$3 = {
10028
10028
  return data.departmentList ?? [];
10029
10029
  },
10030
10030
 
10031
- /**
10032
- * 获取岗位下拉列表
10031
+ /**
10032
+ * 获取岗位下拉列表
10033
10033
  */
10034
10034
  getPostList: url => params => {
10035
10035
  return instance.get(url, {
@@ -10037,8 +10037,8 @@ const api$3 = {
10037
10037
  });
10038
10038
  },
10039
10039
 
10040
- /**
10041
- * 获取人员列表 (下拉框)
10040
+ /**
10041
+ * 获取人员列表 (下拉框)
10042
10042
  */
10043
10043
  getEmployeeList: url => depId => {
10044
10044
  return instance.get(url, {
@@ -10048,22 +10048,22 @@ const api$3 = {
10048
10048
  });
10049
10049
  },
10050
10050
 
10051
- /**
10052
- * 修改班组
10051
+ /**
10052
+ * 修改班组
10053
10053
  */
10054
10054
  edidTeamRecord: url => data => {
10055
10055
  return instance.post(url, data);
10056
10056
  },
10057
10057
 
10058
- /**
10059
- * 新增班组
10058
+ /**
10059
+ * 新增班组
10060
10060
  */
10061
10061
  insertTeam: url => data => {
10062
10062
  return instance.post(url, data);
10063
10063
  },
10064
10064
 
10065
- /**
10066
- * 删除班组
10065
+ /**
10066
+ * 删除班组
10067
10067
  */
10068
10068
  deleteTeamById: url => id => {
10069
10069
  return instance.get(`${url}${id}`);
@@ -10502,16 +10502,16 @@ const TeamManager = defineComponent({
10502
10502
  });
10503
10503
  var TeamManager$1 = utils.installComponent(TeamManager, "team-manager");
10504
10504
 
10505
- /*
10506
- * @Abstract: 摘要
10507
- * @Author: wang liang
10508
- * @Date: 2022-04-05 10:23:24
10509
- * @LastEditors: wang liang
10510
- * @LastEditTime: 2022-04-24 11:55:24
10505
+ /*
10506
+ * @Abstract: 摘要
10507
+ * @Author: wang liang
10508
+ * @Date: 2022-04-05 10:23:24
10509
+ * @LastEditors: wang liang
10510
+ * @LastEditTime: 2022-04-24 11:55:24
10511
10511
  */
10512
10512
  const api$2 = {
10513
- /**
10514
- * 查询组织树- 部门列表
10513
+ /**
10514
+ * 查询组织树- 部门列表
10515
10515
  */
10516
10516
  getDepData: url => params => {
10517
10517
  return instance.get(url, {
@@ -10519,29 +10519,29 @@ const api$2 = {
10519
10519
  });
10520
10520
  },
10521
10521
 
10522
- /**
10523
- * 新增部门
10522
+ /**
10523
+ * 新增部门
10524
10524
  */
10525
10525
  insertDepRecord: url => data => {
10526
10526
  return instance.post(url, data);
10527
10527
  },
10528
10528
 
10529
- /**
10530
- * 编辑部门
10529
+ /**
10530
+ * 编辑部门
10531
10531
  */
10532
10532
  updateDepRecord: url => data => {
10533
10533
  return instance.post(url, data);
10534
10534
  },
10535
10535
 
10536
- /**
10537
- * 删除部门
10536
+ /**
10537
+ * 删除部门
10538
10538
  */
10539
10539
  deleteDepById: url => departmentId => {
10540
10540
  return instance.get(`${url}${departmentId}`);
10541
10541
  },
10542
10542
 
10543
- /**
10544
- * 获取部门下的员工下拉列表
10543
+ /**
10544
+ * 获取部门下的员工下拉列表
10545
10545
  */
10546
10546
  getDepEmployeeSelectList: url => (departmentId, ruleType = 1) => {
10547
10547
  return instance.get(url, {
@@ -10552,15 +10552,15 @@ const api$2 = {
10552
10552
  });
10553
10553
  },
10554
10554
 
10555
- /**
10556
- * 部门排序
10555
+ /**
10556
+ * 部门排序
10557
10557
  */
10558
10558
  sortDepList: url => data => {
10559
10559
  return instance.post(url, data);
10560
10560
  },
10561
10561
 
10562
- /**
10563
- * 查询部门详情
10562
+ /**
10563
+ * 查询部门详情
10564
10564
  */
10565
10565
  getDetail: url => params => {
10566
10566
  return instance.get(`${url}${params}`);
@@ -10568,8 +10568,8 @@ const api$2 = {
10568
10568
 
10569
10569
  /* ====== 人员api ====== */
10570
10570
 
10571
- /**
10572
- * 获取部门下的员工列表
10571
+ /**
10572
+ * 获取部门下的员工列表
10573
10573
  */
10574
10574
  getEmployeeList: url => params => {
10575
10575
  return instance.get(url, {
@@ -10577,36 +10577,36 @@ const api$2 = {
10577
10577
  });
10578
10578
  },
10579
10579
 
10580
- /**
10581
- * 获取岗位下拉列表
10580
+ /**
10581
+ * 获取岗位下拉列表
10582
10582
  */
10583
10583
  getPostList: url => () => {
10584
10584
  return instance.get(url);
10585
10585
  },
10586
10586
 
10587
- /**
10588
- * 获取员工详细信息 查看/编辑 回显
10587
+ /**
10588
+ * 获取员工详细信息 查看/编辑 回显
10589
10589
  */
10590
10590
  getEmployeeDetail: url => employeeId => {
10591
10591
  return instance.get(`${url}${employeeId}`);
10592
10592
  },
10593
10593
 
10594
- /**
10595
- * 新增员工
10594
+ /**
10595
+ * 新增员工
10596
10596
  */
10597
10597
  insetEmployee: url => data => {
10598
10598
  return instance.post(url, data);
10599
10599
  },
10600
10600
 
10601
- /**
10602
- * 修改员工信息
10601
+ /**
10602
+ * 修改员工信息
10603
10603
  */
10604
10604
  updateEmployee: url => data => {
10605
10605
  return instance.post(url, data);
10606
10606
  },
10607
10607
 
10608
- /**
10609
- * 删除员工
10608
+ /**
10609
+ * 删除员工
10610
10610
  */
10611
10611
  deleteEmployeeById: url => employeeId => {
10612
10612
  return instance.get(`${url}${employeeId}`);
@@ -11522,15 +11522,15 @@ const DepManager = defineComponent({
11522
11522
  var DepManager$1 = utils.installComponent(DepManager, "dep-manager");
11523
11523
 
11524
11524
  const api$1 = {
11525
- /**
11526
- *分页查询日志
11525
+ /**
11526
+ *分页查询日志
11527
11527
  */
11528
11528
  getList: url => params => {
11529
11529
  return instance.post(url, params);
11530
11530
  },
11531
11531
 
11532
- /**
11533
- *查询日志标题
11532
+ /**
11533
+ *查询日志标题
11534
11534
  */
11535
11535
  getHead: url => params => {
11536
11536
  return instance.get(url, {
@@ -11934,23 +11934,23 @@ const LogManager = defineComponent({
11934
11934
  });
11935
11935
  var LogManager$1 = utils.installComponent(LogManager, "log-manager");
11936
11936
 
11937
- /*
11938
- * @Abstract: 摘要
11939
- * @Author: wang liang
11940
- * @Date: 2022-03-29 10:28:00
11941
- * @LastEditors: wang liang
11942
- * @LastEditTime: 2022-03-31 11:30:27
11937
+ /*
11938
+ * @Abstract: 摘要
11939
+ * @Author: wang liang
11940
+ * @Date: 2022-03-29 10:28:00
11941
+ * @LastEditors: wang liang
11942
+ * @LastEditTime: 2022-03-31 11:30:27
11943
11943
  */
11944
11944
  const api = {
11945
- /**
11946
- * 查询参数组列表
11945
+ /**
11946
+ * 查询参数组列表
11947
11947
  */
11948
11948
  getGroupList: url => data => {
11949
11949
  return instance.post(url, data);
11950
11950
  },
11951
11951
 
11952
- /**
11953
- * 查询参数定义、参数值列表 (表单项描述列表)
11952
+ /**
11953
+ * 查询参数定义、参数值列表 (表单项描述列表)
11954
11954
  */
11955
11955
  getParamDefineList: url => groupId => {
11956
11956
  return instance.get(url, {
@@ -11960,8 +11960,8 @@ const api = {
11960
11960
  });
11961
11961
  },
11962
11962
 
11963
- /**
11964
- * 批量保存参数值
11963
+ /**
11964
+ * 批量保存参数值
11965
11965
  */
11966
11966
  batchSaveParamsValue: url => form => {
11967
11967
  return instance.post(url, form);