@das-fed/ui 1.1.4 → 6.3.0-beta.1

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 (152) hide show
  1. package/global/icons/index.local.js +1 -1
  2. package/global/style/index.css +1 -1
  3. package/global/style/scrollbar.css +22 -22
  4. package/global/theme/index.js +12 -12
  5. package/global/theme/module/color.js +31 -31
  6. package/global/theme/module/fontSize.js +5 -5
  7. package/global/theme/module/scrollbar.js +6 -6
  8. package/package.json +15 -9
  9. package/packages/business-components/app-container/index.js +154 -147
  10. package/packages/business-components/change-enterprises/index.css +1 -0
  11. package/packages/business-components/change-enterprises/index.js +241 -0
  12. package/packages/business-components/change-pwd/index.css +1 -0
  13. package/packages/business-components/change-pwd/index.js +330 -0
  14. package/packages/business-components/currency-page/index.css +1 -0
  15. package/packages/business-components/currency-page/index.js +99 -0
  16. package/packages/business-components/device-panel/index.css +1 -0
  17. package/packages/business-components/device-panel/index.js +115939 -0
  18. package/packages/business-components/echarts/index.js +93 -122
  19. package/packages/business-components/export-button/index.js +73 -66
  20. package/packages/business-components/import-button/index.js +213 -170
  21. package/packages/business-components/index.js +8 -1
  22. package/packages/business-components/layout-breadcrumb/index.js +82 -66
  23. package/packages/business-components/model-table-dialog/index.js +299 -289
  24. package/packages/business-components/process-configuration/index.css +1 -0
  25. package/packages/business-components/process-configuration/index.js +612 -0
  26. package/packages/business-components/process-form/index.css +1 -0
  27. package/packages/business-components/process-form/index.js +524 -0
  28. package/packages/business-components/process-search-form/index.js +73 -315
  29. package/packages/business-components/process-table/index.css +1 -1
  30. package/packages/business-components/process-table/index.js +186 -152
  31. package/packages/business-components/urgent-panel/index.css +1 -0
  32. package/packages/business-components/urgent-panel/index.js +3914 -0
  33. package/packages/business-components/user-org-dialog/index.js +466 -375
  34. package/packages/business-components/video-dialog/index.css +1 -0
  35. package/packages/business-components/video-dialog/index.js +1041 -0
  36. package/packages/business.js +1 -2
  37. package/packages/components/alert/index.js +449 -633
  38. package/packages/components/audio-video/index.css +1 -1
  39. package/packages/components/audio-video/index.js +312 -126
  40. package/packages/components/autocomplete/index.css +1 -1
  41. package/packages/components/autocomplete/index.js +312 -2923
  42. package/packages/components/breadcrumb/index.js +97 -82
  43. package/packages/components/button/index.css +1 -1
  44. package/packages/components/button/index.js +646 -787
  45. package/packages/components/calendar/index.css +1 -1
  46. package/packages/components/calendar/index.js +655 -3879
  47. package/packages/components/cascader/index.js +209 -203
  48. package/packages/components/checkbox/index.css +1 -1
  49. package/packages/components/checkbox/index.js +710 -872
  50. package/packages/components/collapse-panel/index.css +1 -1
  51. package/packages/components/collapse-panel/index.js +419 -601
  52. package/packages/components/collapse-transition/index.js +23 -21
  53. package/packages/components/collaspe/index.css +1 -1
  54. package/packages/components/collaspe/index.js +413 -595
  55. package/packages/components/color-picker/index.css +1 -1
  56. package/packages/components/color-picker/index.js +176 -133
  57. package/packages/components/custom-search-item/index.js +43 -37
  58. package/packages/components/date-picker/index.js +1338 -1459
  59. package/packages/components/dialog/index.js +429 -215
  60. package/packages/components/dimple-layout/index.css +1 -1
  61. package/packages/components/dimple-layout/index.js +1298 -1794
  62. package/packages/components/drawer/index.js +105 -77
  63. package/packages/components/dropdown/index.js +129 -109
  64. package/packages/components/edit-table/index.css +1 -1
  65. package/packages/components/edit-table/index.js +868 -752
  66. package/packages/components/empty/index.js +83 -78
  67. package/packages/components/form/index.js +22 -15
  68. package/packages/components/form-item/index.css +1 -1
  69. package/packages/components/form-item/index.js +601 -440
  70. package/packages/components/icon/index.css +1 -1
  71. package/packages/components/icon/index.js +38 -22
  72. package/packages/components/image-preview/index.css +1 -0
  73. package/packages/components/image-preview/index.js +2714 -0
  74. package/packages/components/image-upload/index.js +601 -765
  75. package/packages/components/image-viewer/index.css +1 -1
  76. package/packages/components/image-viewer/index.js +909 -990
  77. package/packages/components/index.js +2 -2
  78. package/packages/components/input/index.css +1 -1
  79. package/packages/components/input/index.js +284 -256
  80. package/packages/components/input-dialog-select/index.css +1 -1
  81. package/packages/components/input-dialog-select/index.js +179 -156
  82. package/packages/components/input-number/index.css +1 -1
  83. package/packages/components/input-number/index.js +157 -170
  84. package/packages/components/live-player/index.css +1 -0
  85. package/packages/components/live-player/index.js +170 -0
  86. package/packages/components/loading/index.js +17 -26
  87. package/packages/components/map/index.css +1 -1
  88. package/packages/components/map/index.js +18913 -461
  89. package/packages/components/menu-aside/index.css +1 -1
  90. package/packages/components/menu-aside/index.js +648 -713
  91. package/packages/components/menu-header/index.js +446 -629
  92. package/packages/components/message/index.js +25 -16
  93. package/packages/components/notification/index.js +386 -575
  94. package/packages/components/overlay/index.js +112 -103
  95. package/packages/components/pagination/index.js +260 -330
  96. package/packages/components/popover/index.js +104 -93
  97. package/packages/components/popup-mask/index.css +1 -1
  98. package/packages/components/popup-mask/index.js +77 -72
  99. package/packages/components/preview/index.js +33 -28
  100. package/packages/components/progress/index.js +214 -221
  101. package/packages/components/radio/index.css +1 -1
  102. package/packages/components/radio/index.js +699 -862
  103. package/packages/components/radio-tabs/index.js +144 -107
  104. package/packages/components/rich-editor/index.css +1 -1
  105. package/packages/components/rich-editor/index.js +105 -106
  106. package/packages/components/scrollbar/index.css +3 -2
  107. package/packages/components/scrollbar/index.js +2262 -1201
  108. package/packages/components/search/index.js +500 -664
  109. package/packages/components/search-form/index.css +1 -1
  110. package/packages/components/search-form/index.js +724 -626
  111. package/packages/components/select/index.css +1 -1
  112. package/packages/components/select/index.js +1052 -950
  113. package/packages/components/select-input/index.js +63 -53
  114. package/packages/components/select-list/index.css +1 -1
  115. package/packages/components/select-list/index.js +258 -235
  116. package/packages/components/special-range-picker-month/index.css +1 -1
  117. package/packages/components/special-range-picker-month/index.js +3068 -72555
  118. package/packages/components/special-range-picker-year/index.css +1 -1
  119. package/packages/components/special-range-picker-year/index.js +345 -339
  120. package/packages/components/spin/index.js +415 -594
  121. package/packages/components/split-panel/index.css +1 -1
  122. package/packages/components/split-panel/index.js +146 -127
  123. package/packages/components/step/index.js +414 -597
  124. package/packages/components/steps/index.js +407 -590
  125. package/packages/components/switch/index.js +23 -23
  126. package/packages/components/table/index.css +1 -1
  127. package/packages/components/table/index.js +80813 -27734
  128. package/packages/components/tabs/index.css +1 -1
  129. package/packages/components/tabs/index.js +620 -813
  130. package/packages/components/tag/index.js +63 -63
  131. package/packages/components/text-tooltip/index.css +9 -0
  132. package/packages/components/text-tooltip/index.js +2739 -33
  133. package/packages/components/time-line/index.js +464 -643
  134. package/packages/components/tooltip/index.css +1 -1
  135. package/packages/components/tooltip/index.js +108 -79
  136. package/packages/components/tree/index.css +1 -1
  137. package/packages/components/tree/index.js +840 -809
  138. package/packages/components/tree-select/index.js +271 -303
  139. package/packages/components/tree-table/index.js +461 -352
  140. package/packages/components/upload/index.js +682 -858
  141. package/packages/components/virtual-tree/index.css +1 -1
  142. package/packages/components/virtual-tree/index.js +144 -126
  143. package/packages/index.d.ts +1 -0
  144. package/packages/index.js +2 -2
  145. package/style/business.css +11 -4
  146. package/style/index.css +52 -42
  147. package/packages/business-components/low-code/index.css +0 -1
  148. package/packages/business-components/low-code/index.js +0 -60
  149. package/packages/components/audio-video-player/index.css +0 -1
  150. package/packages/components/audio-video-player/index.js +0 -83
  151. package/packages/components/table-column/index.css +0 -1
  152. package/packages/components/table-column/index.js +0 -82021
@@ -1,7 +1,7 @@
1
1
  import { withInstall } from '@das-fed/utils';
2
- import { ref, defineComponent, watch, openBlock, createElementBlock, createVNode, unref, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, isRef } from 'vue';
2
+ import { ref, defineComponent, watch, openBlock, createElementBlock, createVNode, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
3
3
  import { i18n } from '@das-fed/web';
4
- import { DasMessage, DasButton, DasDialog, DasProgress } from '@das-fed/ui';
4
+ import { DasMessage, DasDialog, DasProgress, DasButton } from '@das-fed/ui';
5
5
  import { iotMinio, iotProgress } from '@das-fed/utils/api-services/modules/iot';
6
6
  import crypto from 'crypto';
7
7
  import { getConfig } from '@das-fed/utils/config';
@@ -48,8 +48,7 @@ var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
48
48
 
49
49
  const getMinioToken = iotMinio.get(`token`);
50
50
  const importMinio = iotMinio.post(`putObject`, (config) => {
51
- if (!config.headers)
52
- config.headers = {};
51
+ if (!config.headers) config.headers = {};
53
52
  config.headers["Content-Type"] = "multipart/form-data";
54
53
  config.responseType = "blob";
55
54
  return config;
@@ -110,8 +109,7 @@ const useFile = (emits) => {
110
109
  }
111
110
  fileInfo = file;
112
111
  const tokenResult = await getMinioConfig();
113
- if (!tokenResult.status)
114
- return;
112
+ if (!tokenResult.status) return;
115
113
  let minioConfig = tokenResult.data;
116
114
  const blob = await readFileAndAddToMap(file);
117
115
  const params = {
@@ -123,8 +121,7 @@ const useFile = (emits) => {
123
121
  filePath: options.importFileName
124
122
  };
125
123
  const [error, data] = await importMinio(params).run();
126
- if (error)
127
- return;
124
+ if (error) return;
128
125
  const toStringData = await toStringObject(data.data);
129
126
  const importResult = await importFunc?.(toStringData);
130
127
  if (needProgress) {
@@ -137,8 +134,7 @@ const useFile = (emits) => {
137
134
  showProgressDialog.value = true;
138
135
  checkProgress(importResult.taskId, "import", "");
139
136
  } else {
140
- if (!importResult.status)
141
- return;
137
+ if (!importResult.status) return;
142
138
  progressStatus.value = "success";
143
139
  DasMessage.success({
144
140
  message: "\u5BFC\u5165\u6210\u529F",
@@ -204,6 +200,7 @@ const useFile = (emits) => {
204
200
  progressStatus.value = "success";
205
201
  downloadFile(`${getConfig().baseURL}/oss${data.filePath}`, fileName, fileSuffix);
206
202
  progressLoading.value = false;
203
+ emits("success");
207
204
  } else if (data.status == 2) {
208
205
  errorMessage.value = data.message || `${tip}\u5931\u8D25`;
209
206
  DasMessage.error({
@@ -225,8 +222,7 @@ const useFile = (emits) => {
225
222
  errorFilePath.value = `${getConfig().baseURL}/oss${data.filePath}`;
226
223
  }
227
224
  tipHandle(data.status, tip);
228
- if (data.status == 1)
229
- importDialog.value = false;
225
+ if (data.status == 1) importDialog.value = false;
230
226
  emits("success");
231
227
  } else if (type == "action") {
232
228
  progressStatus.value = "success";
@@ -369,10 +365,8 @@ const useExport = (props, emits) => {
369
365
  };
370
366
  const exportHandle = async () => {
371
367
  let taskId = nanoid();
372
- if (props.taskIdPosition === "params")
373
- exportParams.value.taskId = taskId;
374
- if (props.taskIdPosition === "body")
375
- exportBodyParams.value.taskId = taskId;
368
+ if (props.taskIdPosition === "params") exportParams.value.taskId = taskId;
369
+ if (props.taskIdPosition === "body") exportBodyParams.value.taskId = taskId;
376
370
  const [error, data] = await props.exportFun(exportBodyParams.value, { params: exportParams.value }).run();
377
371
  if (error) {
378
372
  return { status: false };
@@ -389,7 +383,6 @@ const useExport = (props, emits) => {
389
383
  };
390
384
  };
391
385
 
392
- const _hoisted_1 = { class: "das-export-button" };
393
386
  var _sfc_main = /* @__PURE__ */ defineComponent({
394
387
  __name: "App",
395
388
  props: {
@@ -404,8 +397,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
404
397
  ghost: { type: Boolean, required: false, default: false },
405
398
  disabled: { type: Boolean, required: false, default: false }
406
399
  },
407
- emits: ["update:modelValue", "update:bodyParams"],
408
- setup(__props, { emit: __emit }) {
400
+ emits: ["update:modelValue", "update:bodyParams", "success"],
401
+ setup(__props, { expose: __expose, emit: __emit }) {
402
+ __expose();
409
403
  const props = __props;
410
404
  const emits = __emit;
411
405
  watch(props.modelValue, (newModelVal) => {
@@ -416,52 +410,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
416
410
  });
417
411
  const { showProgressDialog, percent, progressStatus, exportList } = useExport(props, emits);
418
412
  const progressMap = [i18n("\u6B63\u5728\u5BFC\u51FA\u4E2D...").value, i18n("\u5BFC\u51FA\u5931\u8D25").value, i18n("\u5BFC\u51FA\u6210\u529F").value];
419
- return (_ctx, _cache) => {
420
- return openBlock(), createElementBlock("div", _hoisted_1, [
421
- createVNode(unref(DasButton), {
422
- block: _ctx.block,
423
- size: "middle",
424
- disabled: _ctx.disabled,
425
- "btn-type": props.btnType,
426
- ghost: _ctx.ghost,
427
- onClick: _cache[0] || (_cache[0] = ($event) => unref(exportList)(props.modelValue, props.bodyParams))
428
- }, {
429
- default: withCtx(() => [
430
- renderSlot(_ctx.$slots, "default", {}, () => [
431
- createTextVNode(
432
- toDisplayString(unref(i18n)("\u5BFC\u51FA").value),
433
- 1
434
- /* TEXT */
435
- )
436
- ], true)
437
- ]),
438
- _: 3
439
- /* FORWARDED */
440
- }, 8, ["block", "disabled", "btn-type", "ghost"]),
441
- createCommentVNode(" \u8FDB\u5EA6\u5F39\u7A97 "),
442
- createVNode(unref(DasDialog), {
443
- size: "mini",
444
- title: unref(i18n)("\u5BFC\u51FA\u8FDB\u5EA6").value,
445
- "is-feedback-img": false,
446
- modelValue: unref(showProgressDialog),
447
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(showProgressDialog) ? showProgressDialog.value = $event : null),
448
- type: "feedback"
449
- }, {
450
- default: withCtx(() => [
451
- createVNode(unref(DasProgress), {
452
- modelValue: unref(percent),
453
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(percent) ? percent.value = $event : null),
454
- style: { "margin-top": "35px" },
455
- type: "circle",
456
- status: unref(progressStatus),
457
- textMap: progressMap
458
- }, null, 8, ["modelValue", "status"])
459
- ]),
460
- _: 1
461
- /* STABLE */
462
- }, 8, ["title", "modelValue"])
463
- ]);
464
- };
413
+ const __returned__ = { props, emits, showProgressDialog, percent, progressStatus, exportList, progressMap, get i18n() {
414
+ return i18n;
415
+ }, get DasDialog() {
416
+ return DasDialog;
417
+ }, get DasProgress() {
418
+ return DasProgress;
419
+ }, get DasButton() {
420
+ return DasButton;
421
+ } };
422
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
423
+ return __returned__;
465
424
  }
466
425
  });
467
426
 
@@ -473,7 +432,55 @@ var _export_sfc = (sfc, props) => {
473
432
  return target;
474
433
  };
475
434
 
476
- var dasExportButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a1e70a25"], ["__file", "E:\\company-code\\v6r3\\framework-3\\packages\\das-ui\\packages\\business-components\\export-button\\src\\App.vue"]]);
435
+ const _hoisted_1 = { class: "das-export-button" };
436
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
437
+ return openBlock(), createElementBlock("div", _hoisted_1, [
438
+ createVNode($setup["DasButton"], {
439
+ block: $props.block,
440
+ size: "middle",
441
+ disabled: $props.disabled,
442
+ "btn-type": $setup.props.btnType,
443
+ ghost: $props.ghost,
444
+ onClick: _cache[0] || (_cache[0] = ($event) => $setup.exportList($setup.props.modelValue, $setup.props.bodyParams))
445
+ }, {
446
+ default: withCtx(() => [
447
+ renderSlot(_ctx.$slots, "default", {}, () => [
448
+ createTextVNode(
449
+ toDisplayString($setup.i18n("\u5BFC\u51FA").value),
450
+ 1
451
+ /* TEXT */
452
+ )
453
+ ], true)
454
+ ]),
455
+ _: 3
456
+ /* FORWARDED */
457
+ }, 8, ["block", "disabled", "btn-type", "ghost"]),
458
+ createCommentVNode(" \u8FDB\u5EA6\u5F39\u7A97 "),
459
+ createVNode($setup["DasDialog"], {
460
+ size: "mini",
461
+ title: $setup.i18n("\u5BFC\u51FA\u8FDB\u5EA6").value,
462
+ "is-feedback-img": false,
463
+ modelValue: $setup.showProgressDialog,
464
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.showProgressDialog = $event),
465
+ "append-to-body": true,
466
+ type: "feedback"
467
+ }, {
468
+ default: withCtx(() => [
469
+ createVNode($setup["DasProgress"], {
470
+ modelValue: $setup.percent,
471
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.percent = $event),
472
+ style: { "margin-top": "35px" },
473
+ type: "circle",
474
+ status: $setup.progressStatus,
475
+ textMap: $setup.progressMap
476
+ }, null, 8, ["modelValue", "status"])
477
+ ]),
478
+ _: 1
479
+ /* STABLE */
480
+ }, 8, ["title", "modelValue"])
481
+ ]);
482
+ }
483
+ var dasExportButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a1e70a25"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/export-button/src/App.vue"]]);
477
484
 
478
485
  const DasExportButton = withInstall(dasExportButton);
479
486