yc-agent-ui 1.2.7 → 1.2.8

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 (184) hide show
  1. package/es/_virtual/_commonjsHelpers.mjs +7 -0
  2. package/es/_virtual/toastify.mjs +3 -0
  3. package/es/components/chart/src/chart-card.vue.d.ts +21 -21
  4. package/es/components/chart/src/chart-container.vue.d.ts +2 -2
  5. package/es/components/chart/src/metric-card.vue.d.ts +1 -1
  6. package/es/components/data-table/src/data-table.vue.d.ts +8 -8
  7. package/es/components/descriptions/index.d.ts +9 -9
  8. package/es/components/descriptions/src/index.vue.d.ts +3 -3
  9. package/es/components/dialog/index.d.ts +6 -6
  10. package/es/components/dialog/src/index.vue.d.ts +2 -2
  11. package/es/components/dialog-form/index.d.ts +10 -10
  12. package/es/components/dialog-form/src/index.vue.d.ts +6 -6
  13. package/es/components/display-item/index.d.ts +12 -12
  14. package/es/components/display-item/src/index.vue.d.ts +12 -12
  15. package/es/components/drawer-form/index.d.ts +19 -19
  16. package/es/components/drawer-form/src/index.vue.d.ts +9 -9
  17. package/es/components/form/index.d.ts +17 -17
  18. package/es/components/form/src/form-content.vue.d.ts +11 -11
  19. package/es/components/form/src/index.vue.d.ts +11 -11
  20. package/es/components/form-item/index.d.ts +25 -25
  21. package/es/components/form-item/src/index.vue.d.ts +12 -12
  22. package/es/components/input-tag/index.d.ts +3 -3
  23. package/es/components/input-tag/src/index.vue.d.ts +3 -3
  24. package/es/components/page/index.d.ts +494 -494
  25. package/es/components/page/src/index.vue.d.ts +167 -167
  26. package/es/components/pagination/index.d.ts +3 -3
  27. package/es/components/pagination/src/index.vue.d.ts +1 -1
  28. package/es/components/radio/index.d.ts +5 -5
  29. package/es/components/radio/src/index.vue.d.ts +5 -5
  30. package/es/components/render/index.d.ts +1 -1
  31. package/es/components/render/src/index.vue.d.ts +1 -1
  32. package/es/components/search/index.d.ts +130 -130
  33. package/es/components/search/src/index.vue.d.ts +46 -46
  34. package/es/components/table/src/table-action-bar.vue.d.ts +2 -2
  35. package/es/components/table/src/table-column.vue.d.ts +24 -24
  36. package/es/components/utils/index.d.ts +3 -3
  37. package/es/components/virtual-table/index.d.ts +3 -3
  38. package/es/components/virtual-table/src/index.vue.d.ts +1 -1
  39. package/es/components/yc-ai-chat/src/bubble.vue.d.ts +1 -1
  40. package/es/components/yc-ai-chat/src/mobile-frame.vue.d.ts +1 -1
  41. package/es/components/yc-ai-chat/src/select.vue.d.ts +5 -5
  42. package/es/components/yc-ai-chat/src/sender.vue.d.ts +1 -1
  43. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +2 -2
  44. package/es/components/yc-ai-chat/src/studio.vue.d.ts +1 -1
  45. package/es/components/yc-controls/src/choice-cards.vue.d.ts +2 -2
  46. package/es/components/yc-controls/src/segmented.vue.d.ts +1 -1
  47. package/es/components/yc-coss-table/src/coss-table.vue.d.ts +3 -3
  48. package/es/components/yc-coss-table/src/table-head.vue.d.ts +2 -2
  49. package/es/components/yc-display-cards/index.d.ts +4 -3
  50. package/es/components/yc-display-cards/src/form-card.vue.d.ts +3 -2
  51. package/es/components/yc-display-cards/src/table-card.vue.d.ts +1 -1
  52. package/es/components/yc-display-cards/src/toast.d.ts +4 -0
  53. package/es/components/yc-display-cards/src/types.d.ts +21 -0
  54. package/es/components/yc-gradient-card/src/index.vue.d.ts +2 -2
  55. package/es/components/yc-input/src/input.vue.d.ts +4 -4
  56. package/es/components/yc-input/src/money-input.vue.d.ts +3 -3
  57. package/es/components/yc-input/src/stepper-input.vue.d.ts +3 -3
  58. package/es/components/yc-input/src/textarea.vue.d.ts +1 -1
  59. package/es/components/yc-input-otp/src/index.vue.d.ts +3 -3
  60. package/es/components/yc-pagination/src/index.vue.d.ts +2 -2
  61. package/es/components/yc-plus-page/src/index.vue.d.ts +504 -504
  62. package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
  63. package/es/components/yc-property-table/src/asset-table.vue.d.ts +2 -2
  64. package/es/components/yc-property-table/src/bill-table.vue.d.ts +2 -2
  65. package/es/components/yc-property-table/src/device-table.vue.d.ts +2 -2
  66. package/es/components/yc-property-table/src/order-table.vue.d.ts +2 -2
  67. package/es/components/yc-property-table/src/property-table.vue.d.ts +6 -6
  68. package/es/components/yc-select-v2/src/index.vue.d.ts +4 -4
  69. package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  70. package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
  71. package/es/hooks/usePlusFormReset.d.ts +168 -168
  72. package/es/index.css +15 -8
  73. package/es/node_modules/.pnpm/toastify-js@1.12.0/node_modules/toastify-js/src/toastify.mjs +456 -0
  74. package/es/packages/components/yc-display-cards/src/form-card.vue.mjs +1 -1
  75. package/es/packages/components/yc-display-cards/src/form-card2.vue.mjs +449 -90
  76. package/es/packages/components/yc-display-cards/src/toast.mjs +35 -0
  77. package/es/version.d.ts +1 -1
  78. package/es/version.mjs +1 -1
  79. package/index.css +8 -1
  80. package/index.js +937 -93
  81. package/index.min.css +8 -1
  82. package/index.min.js +40 -34
  83. package/index.min.mjs +40 -34
  84. package/index.mjs +937 -93
  85. package/lib/_virtual/_commonjsHelpers.js +10 -0
  86. package/lib/_virtual/toastify.js +5 -0
  87. package/lib/components/chart/src/chart-card.vue.d.ts +21 -21
  88. package/lib/components/chart/src/chart-container.vue.d.ts +2 -2
  89. package/lib/components/chart/src/metric-card.vue.d.ts +1 -1
  90. package/lib/components/data-table/src/data-table.vue.d.ts +8 -8
  91. package/lib/components/descriptions/index.d.ts +9 -9
  92. package/lib/components/descriptions/src/index.vue.d.ts +3 -3
  93. package/lib/components/dialog/index.d.ts +6 -6
  94. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  95. package/lib/components/dialog-form/index.d.ts +10 -10
  96. package/lib/components/dialog-form/src/index.vue.d.ts +6 -6
  97. package/lib/components/display-item/index.d.ts +12 -12
  98. package/lib/components/display-item/src/index.vue.d.ts +12 -12
  99. package/lib/components/drawer-form/index.d.ts +19 -19
  100. package/lib/components/drawer-form/src/index.vue.d.ts +9 -9
  101. package/lib/components/form/index.d.ts +17 -17
  102. package/lib/components/form/src/form-content.vue.d.ts +11 -11
  103. package/lib/components/form/src/index.vue.d.ts +11 -11
  104. package/lib/components/form-item/index.d.ts +25 -25
  105. package/lib/components/form-item/src/index.vue.d.ts +12 -12
  106. package/lib/components/input-tag/index.d.ts +3 -3
  107. package/lib/components/input-tag/src/index.vue.d.ts +3 -3
  108. package/lib/components/page/index.d.ts +494 -494
  109. package/lib/components/page/src/index.vue.d.ts +167 -167
  110. package/lib/components/pagination/index.d.ts +3 -3
  111. package/lib/components/pagination/src/index.vue.d.ts +1 -1
  112. package/lib/components/radio/index.d.ts +5 -5
  113. package/lib/components/radio/src/index.vue.d.ts +5 -5
  114. package/lib/components/render/index.d.ts +1 -1
  115. package/lib/components/render/src/index.vue.d.ts +1 -1
  116. package/lib/components/search/index.d.ts +130 -130
  117. package/lib/components/search/src/index.vue.d.ts +46 -46
  118. package/lib/components/table/src/table-action-bar.vue.d.ts +2 -2
  119. package/lib/components/table/src/table-column.vue.d.ts +24 -24
  120. package/lib/components/utils/index.d.ts +3 -3
  121. package/lib/components/virtual-table/index.d.ts +3 -3
  122. package/lib/components/virtual-table/src/index.vue.d.ts +1 -1
  123. package/lib/components/yc-ai-chat/src/bubble.vue.d.ts +1 -1
  124. package/lib/components/yc-ai-chat/src/mobile-frame.vue.d.ts +1 -1
  125. package/lib/components/yc-ai-chat/src/select.vue.d.ts +5 -5
  126. package/lib/components/yc-ai-chat/src/sender.vue.d.ts +1 -1
  127. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +2 -2
  128. package/lib/components/yc-ai-chat/src/studio.vue.d.ts +1 -1
  129. package/lib/components/yc-controls/src/choice-cards.vue.d.ts +2 -2
  130. package/lib/components/yc-controls/src/segmented.vue.d.ts +1 -1
  131. package/lib/components/yc-coss-table/src/coss-table.vue.d.ts +3 -3
  132. package/lib/components/yc-coss-table/src/table-head.vue.d.ts +2 -2
  133. package/lib/components/yc-display-cards/index.d.ts +4 -3
  134. package/lib/components/yc-display-cards/src/form-card.vue.d.ts +3 -2
  135. package/lib/components/yc-display-cards/src/table-card.vue.d.ts +1 -1
  136. package/lib/components/yc-display-cards/src/toast.d.ts +4 -0
  137. package/lib/components/yc-display-cards/src/types.d.ts +21 -0
  138. package/lib/components/yc-gradient-card/src/index.vue.d.ts +2 -2
  139. package/lib/components/yc-input/src/input.vue.d.ts +4 -4
  140. package/lib/components/yc-input/src/money-input.vue.d.ts +3 -3
  141. package/lib/components/yc-input/src/stepper-input.vue.d.ts +3 -3
  142. package/lib/components/yc-input/src/textarea.vue.d.ts +1 -1
  143. package/lib/components/yc-input-otp/src/index.vue.d.ts +3 -3
  144. package/lib/components/yc-pagination/src/index.vue.d.ts +2 -2
  145. package/lib/components/yc-plus-page/src/index.vue.d.ts +504 -504
  146. package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
  147. package/lib/components/yc-property-table/src/asset-table.vue.d.ts +2 -2
  148. package/lib/components/yc-property-table/src/bill-table.vue.d.ts +2 -2
  149. package/lib/components/yc-property-table/src/device-table.vue.d.ts +2 -2
  150. package/lib/components/yc-property-table/src/order-table.vue.d.ts +2 -2
  151. package/lib/components/yc-property-table/src/property-table.vue.d.ts +6 -6
  152. package/lib/components/yc-select-v2/src/index.vue.d.ts +4 -4
  153. package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  154. package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
  155. package/lib/hooks/usePlusFormReset.d.ts +168 -168
  156. package/lib/index.css +17 -10
  157. package/lib/node_modules/.pnpm/toastify-js@1.12.0/node_modules/toastify-js/src/toastify.js +460 -0
  158. package/lib/packages/components/yc-display-cards/src/form-card.vue.js +1 -1
  159. package/lib/packages/components/yc-display-cards/src/form-card2.vue.js +449 -90
  160. package/lib/packages/components/yc-display-cards/src/toast.js +37 -0
  161. package/lib/version.d.ts +1 -1
  162. package/lib/version.js +1 -1
  163. package/locale/en.js +1 -1
  164. package/locale/en.min.js +1 -1
  165. package/locale/en.min.mjs +1 -1
  166. package/locale/en.mjs +1 -1
  167. package/locale/ja.js +1 -1
  168. package/locale/ja.min.js +1 -1
  169. package/locale/ja.min.mjs +1 -1
  170. package/locale/ja.mjs +1 -1
  171. package/locale/ko.js +1 -1
  172. package/locale/ko.min.js +1 -1
  173. package/locale/ko.min.mjs +1 -1
  174. package/locale/ko.mjs +1 -1
  175. package/locale/zh-cn.js +1 -1
  176. package/locale/zh-cn.min.js +1 -1
  177. package/locale/zh-cn.min.mjs +1 -1
  178. package/locale/zh-cn.mjs +1 -1
  179. package/locale/zh-tw.js +1 -1
  180. package/locale/zh-tw.min.js +1 -1
  181. package/locale/zh-tw.min.mjs +1 -1
  182. package/locale/zh-tw.mjs +1 -1
  183. package/package.json +2 -1
  184. package/theme-chalk/index.css +8 -1
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! yc-agent-ui v1.2.7 */
1
+ /*! yc-agent-ui v1.2.8 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('echarts'), require('element-plus'), require('@element-plus/icons-vue'), require('element-plus/es')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'echarts', 'element-plus', '@element-plus/icons-vue', 'element-plus/es'], factory) :
@@ -21341,6 +21341,492 @@
21341
21341
 
21342
21342
  var DetailCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["__scopeId", "data-v-d75e2d96"]]);
21343
21343
 
21344
+ var toastify = {exports: {}};
21345
+
21346
+ /*!
21347
+ * Toastify js 1.12.0
21348
+ * https://github.com/apvarun/toastify-js
21349
+ * @license MIT licensed
21350
+ *
21351
+ * Copyright (C) 2018 Varun A P
21352
+ */
21353
+
21354
+ (function (module) {
21355
+ (function(root, factory) {
21356
+ if (module.exports) {
21357
+ module.exports = factory();
21358
+ } else {
21359
+ root.Toastify = factory();
21360
+ }
21361
+ })(commonjsGlobal, function(global) {
21362
+ // Object initialization
21363
+ var Toastify = function(options) {
21364
+ // Returning a new init object
21365
+ return new Toastify.lib.init(options);
21366
+ },
21367
+ // Library version
21368
+ version = "1.12.0";
21369
+
21370
+ // Set the default global options
21371
+ Toastify.defaults = {
21372
+ oldestFirst: true,
21373
+ text: "Toastify is awesome!",
21374
+ node: undefined,
21375
+ duration: 3000,
21376
+ selector: undefined,
21377
+ callback: function () {
21378
+ },
21379
+ destination: undefined,
21380
+ newWindow: false,
21381
+ close: false,
21382
+ gravity: "toastify-top",
21383
+ positionLeft: false,
21384
+ position: '',
21385
+ backgroundColor: '',
21386
+ avatar: "",
21387
+ className: "",
21388
+ stopOnFocus: true,
21389
+ onClick: function () {
21390
+ },
21391
+ offset: {x: 0, y: 0},
21392
+ escapeMarkup: true,
21393
+ ariaLive: 'polite',
21394
+ style: {background: ''}
21395
+ };
21396
+
21397
+ // Defining the prototype of the object
21398
+ Toastify.lib = Toastify.prototype = {
21399
+ toastify: version,
21400
+
21401
+ constructor: Toastify,
21402
+
21403
+ // Initializing the object with required parameters
21404
+ init: function(options) {
21405
+ // Verifying and validating the input object
21406
+ if (!options) {
21407
+ options = {};
21408
+ }
21409
+
21410
+ // Creating the options object
21411
+ this.options = {};
21412
+
21413
+ this.toastElement = null;
21414
+
21415
+ // Validating the options
21416
+ this.options.text = options.text || Toastify.defaults.text; // Display message
21417
+ this.options.node = options.node || Toastify.defaults.node; // Display content as node
21418
+ this.options.duration = options.duration === 0 ? 0 : options.duration || Toastify.defaults.duration; // Display duration
21419
+ this.options.selector = options.selector || Toastify.defaults.selector; // Parent selector
21420
+ this.options.callback = options.callback || Toastify.defaults.callback; // Callback after display
21421
+ this.options.destination = options.destination || Toastify.defaults.destination; // On-click destination
21422
+ this.options.newWindow = options.newWindow || Toastify.defaults.newWindow; // Open destination in new window
21423
+ this.options.close = options.close || Toastify.defaults.close; // Show toast close icon
21424
+ this.options.gravity = options.gravity === "bottom" ? "toastify-bottom" : Toastify.defaults.gravity; // toast position - top or bottom
21425
+ this.options.positionLeft = options.positionLeft || Toastify.defaults.positionLeft; // toast position - left or right
21426
+ this.options.position = options.position || Toastify.defaults.position; // toast position - left or right
21427
+ this.options.backgroundColor = options.backgroundColor || Toastify.defaults.backgroundColor; // toast background color
21428
+ this.options.avatar = options.avatar || Toastify.defaults.avatar; // img element src - url or a path
21429
+ this.options.className = options.className || Toastify.defaults.className; // additional class names for the toast
21430
+ this.options.stopOnFocus = options.stopOnFocus === undefined ? Toastify.defaults.stopOnFocus : options.stopOnFocus; // stop timeout on focus
21431
+ this.options.onClick = options.onClick || Toastify.defaults.onClick; // Callback after click
21432
+ this.options.offset = options.offset || Toastify.defaults.offset; // toast offset
21433
+ this.options.escapeMarkup = options.escapeMarkup !== undefined ? options.escapeMarkup : Toastify.defaults.escapeMarkup;
21434
+ this.options.ariaLive = options.ariaLive || Toastify.defaults.ariaLive;
21435
+ this.options.style = options.style || Toastify.defaults.style;
21436
+ if(options.backgroundColor) {
21437
+ this.options.style.background = options.backgroundColor;
21438
+ }
21439
+
21440
+ // Returning the current object for chaining functions
21441
+ return this;
21442
+ },
21443
+
21444
+ // Building the DOM element
21445
+ buildToast: function() {
21446
+ // Validating if the options are defined
21447
+ if (!this.options) {
21448
+ throw "Toastify is not initialized";
21449
+ }
21450
+
21451
+ // Creating the DOM object
21452
+ var divElement = document.createElement("div");
21453
+ divElement.className = "toastify on " + this.options.className;
21454
+
21455
+ // Positioning toast to left or right or center
21456
+ if (!!this.options.position) {
21457
+ divElement.className += " toastify-" + this.options.position;
21458
+ } else {
21459
+ // To be depreciated in further versions
21460
+ if (this.options.positionLeft === true) {
21461
+ divElement.className += " toastify-left";
21462
+ console.warn('Property `positionLeft` will be depreciated in further versions. Please use `position` instead.');
21463
+ } else {
21464
+ // Default position
21465
+ divElement.className += " toastify-right";
21466
+ }
21467
+ }
21468
+
21469
+ // Assigning gravity of element
21470
+ divElement.className += " " + this.options.gravity;
21471
+
21472
+ if (this.options.backgroundColor) {
21473
+ // This is being deprecated in favor of using the style HTML DOM property
21474
+ console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');
21475
+ }
21476
+
21477
+ // Loop through our style object and apply styles to divElement
21478
+ for (var property in this.options.style) {
21479
+ divElement.style[property] = this.options.style[property];
21480
+ }
21481
+
21482
+ // Announce the toast to screen readers
21483
+ if (this.options.ariaLive) {
21484
+ divElement.setAttribute('aria-live', this.options.ariaLive);
21485
+ }
21486
+
21487
+ // Adding the toast message/node
21488
+ if (this.options.node && this.options.node.nodeType === Node.ELEMENT_NODE) {
21489
+ // If we have a valid node, we insert it
21490
+ divElement.appendChild(this.options.node);
21491
+ } else {
21492
+ if (this.options.escapeMarkup) {
21493
+ divElement.innerText = this.options.text;
21494
+ } else {
21495
+ divElement.innerHTML = this.options.text;
21496
+ }
21497
+
21498
+ if (this.options.avatar !== "") {
21499
+ var avatarElement = document.createElement("img");
21500
+ avatarElement.src = this.options.avatar;
21501
+
21502
+ avatarElement.className = "toastify-avatar";
21503
+
21504
+ if (this.options.position == "left" || this.options.positionLeft === true) {
21505
+ // Adding close icon on the left of content
21506
+ divElement.appendChild(avatarElement);
21507
+ } else {
21508
+ // Adding close icon on the right of content
21509
+ divElement.insertAdjacentElement("afterbegin", avatarElement);
21510
+ }
21511
+ }
21512
+ }
21513
+
21514
+ // Adding a close icon to the toast
21515
+ if (this.options.close === true) {
21516
+ // Create a span for close element
21517
+ var closeElement = document.createElement("button");
21518
+ closeElement.type = "button";
21519
+ closeElement.setAttribute("aria-label", "Close");
21520
+ closeElement.className = "toast-close";
21521
+ closeElement.innerHTML = "✖";
21522
+
21523
+ // Triggering the removal of toast from DOM on close click
21524
+ closeElement.addEventListener(
21525
+ "click",
21526
+ function(event) {
21527
+ event.stopPropagation();
21528
+ this.removeElement(this.toastElement);
21529
+ window.clearTimeout(this.toastElement.timeOutValue);
21530
+ }.bind(this)
21531
+ );
21532
+
21533
+ //Calculating screen width
21534
+ var width = window.innerWidth > 0 ? window.innerWidth : screen.width;
21535
+
21536
+ // Adding the close icon to the toast element
21537
+ // Display on the right if screen width is less than or equal to 360px
21538
+ if ((this.options.position == "left" || this.options.positionLeft === true) && width > 360) {
21539
+ // Adding close icon on the left of content
21540
+ divElement.insertAdjacentElement("afterbegin", closeElement);
21541
+ } else {
21542
+ // Adding close icon on the right of content
21543
+ divElement.appendChild(closeElement);
21544
+ }
21545
+ }
21546
+
21547
+ // Clear timeout while toast is focused
21548
+ if (this.options.stopOnFocus && this.options.duration > 0) {
21549
+ var self = this;
21550
+ // stop countdown
21551
+ divElement.addEventListener(
21552
+ "mouseover",
21553
+ function(event) {
21554
+ window.clearTimeout(divElement.timeOutValue);
21555
+ }
21556
+ );
21557
+ // add back the timeout
21558
+ divElement.addEventListener(
21559
+ "mouseleave",
21560
+ function() {
21561
+ divElement.timeOutValue = window.setTimeout(
21562
+ function() {
21563
+ // Remove the toast from DOM
21564
+ self.removeElement(divElement);
21565
+ },
21566
+ self.options.duration
21567
+ );
21568
+ }
21569
+ );
21570
+ }
21571
+
21572
+ // Adding an on-click destination path
21573
+ if (typeof this.options.destination !== "undefined") {
21574
+ divElement.addEventListener(
21575
+ "click",
21576
+ function(event) {
21577
+ event.stopPropagation();
21578
+ if (this.options.newWindow === true) {
21579
+ window.open(this.options.destination, "_blank");
21580
+ } else {
21581
+ window.location = this.options.destination;
21582
+ }
21583
+ }.bind(this)
21584
+ );
21585
+ }
21586
+
21587
+ if (typeof this.options.onClick === "function" && typeof this.options.destination === "undefined") {
21588
+ divElement.addEventListener(
21589
+ "click",
21590
+ function(event) {
21591
+ event.stopPropagation();
21592
+ this.options.onClick();
21593
+ }.bind(this)
21594
+ );
21595
+ }
21596
+
21597
+ // Adding offset
21598
+ if(typeof this.options.offset === "object") {
21599
+
21600
+ var x = getAxisOffsetAValue("x", this.options);
21601
+ var y = getAxisOffsetAValue("y", this.options);
21602
+
21603
+ var xOffset = this.options.position == "left" ? x : "-" + x;
21604
+ var yOffset = this.options.gravity == "toastify-top" ? y : "-" + y;
21605
+
21606
+ divElement.style.transform = "translate(" + xOffset + "," + yOffset + ")";
21607
+
21608
+ }
21609
+
21610
+ // Returning the generated element
21611
+ return divElement;
21612
+ },
21613
+
21614
+ // Displaying the toast
21615
+ showToast: function() {
21616
+ // Creating the DOM object for the toast
21617
+ this.toastElement = this.buildToast();
21618
+
21619
+ // Getting the root element to with the toast needs to be added
21620
+ var rootElement;
21621
+ if (typeof this.options.selector === "string") {
21622
+ rootElement = document.getElementById(this.options.selector);
21623
+ } else if (this.options.selector instanceof HTMLElement || (typeof ShadowRoot !== 'undefined' && this.options.selector instanceof ShadowRoot)) {
21624
+ rootElement = this.options.selector;
21625
+ } else {
21626
+ rootElement = document.body;
21627
+ }
21628
+
21629
+ // Validating if root element is present in DOM
21630
+ if (!rootElement) {
21631
+ throw "Root element is not defined";
21632
+ }
21633
+
21634
+ // Adding the DOM element
21635
+ var elementToInsert = Toastify.defaults.oldestFirst ? rootElement.firstChild : rootElement.lastChild;
21636
+ rootElement.insertBefore(this.toastElement, elementToInsert);
21637
+
21638
+ // Repositioning the toasts in case multiple toasts are present
21639
+ Toastify.reposition();
21640
+
21641
+ if (this.options.duration > 0) {
21642
+ this.toastElement.timeOutValue = window.setTimeout(
21643
+ function() {
21644
+ // Remove the toast from DOM
21645
+ this.removeElement(this.toastElement);
21646
+ }.bind(this),
21647
+ this.options.duration
21648
+ ); // Binding `this` for function invocation
21649
+ }
21650
+
21651
+ // Supporting function chaining
21652
+ return this;
21653
+ },
21654
+
21655
+ hideToast: function() {
21656
+ if (this.toastElement.timeOutValue) {
21657
+ clearTimeout(this.toastElement.timeOutValue);
21658
+ }
21659
+ this.removeElement(this.toastElement);
21660
+ },
21661
+
21662
+ // Removing the element from the DOM
21663
+ removeElement: function(toastElement) {
21664
+ // Hiding the element
21665
+ // toastElement.classList.remove("on");
21666
+ toastElement.className = toastElement.className.replace(" on", "");
21667
+
21668
+ // Removing the element from DOM after transition end
21669
+ window.setTimeout(
21670
+ function() {
21671
+ // remove options node if any
21672
+ if (this.options.node && this.options.node.parentNode) {
21673
+ this.options.node.parentNode.removeChild(this.options.node);
21674
+ }
21675
+
21676
+ // Remove the element from the DOM, only when the parent node was not removed before.
21677
+ if (toastElement.parentNode) {
21678
+ toastElement.parentNode.removeChild(toastElement);
21679
+ }
21680
+
21681
+ // Calling the callback function
21682
+ this.options.callback.call(toastElement);
21683
+
21684
+ // Repositioning the toasts again
21685
+ Toastify.reposition();
21686
+ }.bind(this),
21687
+ 400
21688
+ ); // Binding `this` for function invocation
21689
+ },
21690
+ };
21691
+
21692
+ // Positioning the toasts on the DOM
21693
+ Toastify.reposition = function() {
21694
+
21695
+ // Top margins with gravity
21696
+ var topLeftOffsetSize = {
21697
+ top: 15,
21698
+ bottom: 15,
21699
+ };
21700
+ var topRightOffsetSize = {
21701
+ top: 15,
21702
+ bottom: 15,
21703
+ };
21704
+ var offsetSize = {
21705
+ top: 15,
21706
+ bottom: 15,
21707
+ };
21708
+
21709
+ // Get all toast messages on the DOM
21710
+ var allToasts = document.getElementsByClassName("toastify");
21711
+
21712
+ var classUsed;
21713
+
21714
+ // Modifying the position of each toast element
21715
+ for (var i = 0; i < allToasts.length; i++) {
21716
+ // Getting the applied gravity
21717
+ if (containsClass(allToasts[i], "toastify-top") === true) {
21718
+ classUsed = "toastify-top";
21719
+ } else {
21720
+ classUsed = "toastify-bottom";
21721
+ }
21722
+
21723
+ var height = allToasts[i].offsetHeight;
21724
+ classUsed = classUsed.substr(9, classUsed.length-1);
21725
+ // Spacing between toasts
21726
+ var offset = 15;
21727
+
21728
+ var width = window.innerWidth > 0 ? window.innerWidth : screen.width;
21729
+
21730
+ // Show toast in center if screen with less than or equal to 360px
21731
+ if (width <= 360) {
21732
+ // Setting the position
21733
+ allToasts[i].style[classUsed] = offsetSize[classUsed] + "px";
21734
+
21735
+ offsetSize[classUsed] += height + offset;
21736
+ } else {
21737
+ if (containsClass(allToasts[i], "toastify-left") === true) {
21738
+ // Setting the position
21739
+ allToasts[i].style[classUsed] = topLeftOffsetSize[classUsed] + "px";
21740
+
21741
+ topLeftOffsetSize[classUsed] += height + offset;
21742
+ } else {
21743
+ // Setting the position
21744
+ allToasts[i].style[classUsed] = topRightOffsetSize[classUsed] + "px";
21745
+
21746
+ topRightOffsetSize[classUsed] += height + offset;
21747
+ }
21748
+ }
21749
+ }
21750
+
21751
+ // Supporting function chaining
21752
+ return this;
21753
+ };
21754
+
21755
+ // Helper function to get offset.
21756
+ function getAxisOffsetAValue(axis, options) {
21757
+
21758
+ if(options.offset[axis]) {
21759
+ if(isNaN(options.offset[axis])) {
21760
+ return options.offset[axis];
21761
+ }
21762
+ else {
21763
+ return options.offset[axis] + 'px';
21764
+ }
21765
+ }
21766
+
21767
+ return '0px';
21768
+
21769
+ }
21770
+
21771
+ function containsClass(elem, yourClass) {
21772
+ if (!elem || typeof yourClass !== "string") {
21773
+ return false;
21774
+ } else if (
21775
+ elem.className &&
21776
+ elem.className
21777
+ .trim()
21778
+ .split(/\s+/gi)
21779
+ .indexOf(yourClass) > -1
21780
+ ) {
21781
+ return true;
21782
+ } else {
21783
+ return false;
21784
+ }
21785
+ }
21786
+
21787
+ // Setting up the prototype for the init object
21788
+ Toastify.lib.init.prototype = Toastify.lib;
21789
+
21790
+ // Returning the Toastify function to be assigned to the window object/module
21791
+ return Toastify;
21792
+ });
21793
+ } (toastify));
21794
+
21795
+ var toastifyExports = toastify.exports;
21796
+ var Toastify = /*@__PURE__*/getDefaultExportFromCjs(toastifyExports);
21797
+
21798
+ const TOAST_BG = {
21799
+ info: "linear-gradient(135deg, #2563eb, #1d4ed8)",
21800
+ success: "linear-gradient(135deg, #16a34a, #15803d)",
21801
+ warning: "linear-gradient(135deg, #d97706, #b45309)",
21802
+ error: "linear-gradient(135deg, #dc2626, #b91c1c)"
21803
+ };
21804
+ function showDisplayToast(message, type = "info", duration = 3600) {
21805
+ if (typeof document === "undefined" || !message.trim()) return;
21806
+ try {
21807
+ Toastify({
21808
+ text: message.trim(),
21809
+ duration,
21810
+ gravity: "top",
21811
+ position: "center",
21812
+ close: true,
21813
+ stopOnFocus: true,
21814
+ style: {
21815
+ background: TOAST_BG[type],
21816
+ color: "#ffffff",
21817
+ borderRadius: "10px",
21818
+ fontSize: "13px",
21819
+ lineHeight: "1.45",
21820
+ padding: "10px 14px",
21821
+ maxWidth: "calc(100vw - 32px)",
21822
+ boxShadow: "0 8px 24px rgba(15, 23, 42, 0.18)",
21823
+ zIndex: "9999"
21824
+ }
21825
+ }).showToast();
21826
+ } catch (e) {
21827
+ }
21828
+ }
21829
+
21344
21830
  const _hoisted_1$O = { class: "yc-display-card__header" };
21345
21831
  const _hoisted_2$B = { class: "yc-display-card__title-wrap yc-display-form-card__title-group" };
21346
21832
  const _hoisted_3$x = { class: "yc-display-form-card__titles" };
@@ -21366,61 +21852,98 @@
21366
21852
  key: 0,
21367
21853
  class: "is-required"
21368
21854
  };
21369
- const _hoisted_11$h = ["value", "disabled", "onFocus", "onChange"];
21370
- const _hoisted_12$g = { value: "" };
21371
- const _hoisted_13$f = ["value"];
21372
- const _hoisted_14$d = ["type", "value", "disabled", "onInput"];
21373
- const _hoisted_15$c = ["step", "inputmode", "value", "disabled", "placeholder", "onInput"];
21374
- const _hoisted_16$c = ["aria-checked", "disabled", "onClick"];
21375
- const _hoisted_17$b = {
21376
- key: 4,
21855
+ const _hoisted_11$h = {
21856
+ key: 1,
21857
+ class: "yc-display-form-card__dynamic-tag"
21858
+ };
21859
+ const _hoisted_12$g = {
21860
+ key: 0,
21861
+ class: "yc-display-form-card__choice-group",
21862
+ role: "radiogroup"
21863
+ };
21864
+ const _hoisted_13$f = ["aria-checked", "disabled", "onClick"];
21865
+ const _hoisted_14$d = {
21866
+ key: 1,
21867
+ class: "yc-display-form-card__choice-group",
21868
+ role: "group"
21869
+ };
21870
+ const _hoisted_15$c = ["aria-checked", "disabled", "onClick"];
21871
+ const _hoisted_16$c = ["value", "disabled", "onFocus", "onChange"];
21872
+ const _hoisted_17$b = { value: "" };
21873
+ const _hoisted_18$b = ["value"];
21874
+ const _hoisted_19$a = ["type", "value", "disabled", "onInput"];
21875
+ const _hoisted_20$a = ["step", "inputmode", "value", "disabled", "placeholder", "onInput"];
21876
+ const _hoisted_21$9 = ["aria-checked", "disabled", "onClick"];
21877
+ const _hoisted_22$9 = {
21878
+ key: 6,
21377
21879
  class: "yc-display-form-card__upload"
21378
21880
  };
21379
- const _hoisted_18$b = ["accept", "onChange"];
21380
- const _hoisted_19$a = { class: "yc-display-form-card__upload-list" };
21381
- const _hoisted_20$a = {
21881
+ const _hoisted_23$7 = ["accept", "onChange"];
21882
+ const _hoisted_24$6 = { class: "yc-display-form-card__upload-list" };
21883
+ const _hoisted_25$6 = {
21382
21884
  key: 0,
21383
21885
  class: "yc-display-form-card__thumb"
21384
21886
  };
21385
- const _hoisted_21$9 = ["src", "alt"];
21386
- const _hoisted_22$9 = ["onClick"];
21387
- const _hoisted_23$7 = {
21887
+ const _hoisted_26$6 = ["src", "alt"];
21888
+ const _hoisted_27$6 = ["onClick"];
21889
+ const _hoisted_28$6 = {
21388
21890
  key: 1,
21389
21891
  class: "yc-display-form-card__file-chip"
21390
21892
  };
21391
- const _hoisted_24$6 = { class: "yc-display-form-card__file-name" };
21392
- const _hoisted_25$6 = ["onClick"];
21393
- const _hoisted_26$6 = ["disabled", "onClick"];
21394
- const _hoisted_27$6 = { key: 0 };
21395
- const _hoisted_28$6 = { key: 1 };
21396
- const _hoisted_29$6 = ["value", "disabled", "placeholder", "onInput"];
21397
- const _hoisted_30$6 = ["value", "disabled", "placeholder", "onInput"];
21398
- const _hoisted_31$6 = { class: "yc-display-form-card__actions" };
21399
- const _hoisted_32$5 = ["disabled"];
21400
- const _hoisted_33$4 = ["disabled"];
21401
- const _hoisted_34$4 = {
21893
+ const _hoisted_29$6 = { class: "yc-display-form-card__file-name" };
21894
+ const _hoisted_30$6 = ["onClick"];
21895
+ const _hoisted_31$6 = ["disabled", "onClick"];
21896
+ const _hoisted_32$5 = { key: 0 };
21897
+ const _hoisted_33$4 = { key: 1 };
21898
+ const _hoisted_34$4 = ["value", "disabled", "placeholder", "onInput", "onBlur"];
21899
+ const _hoisted_35$4 = ["value", "disabled", "placeholder", "onInput", "onBlur"];
21900
+ const _hoisted_36$3 = ["value", "disabled", "placeholder", "onInput"];
21901
+ const _hoisted_37$3 = ["value", "disabled", "placeholder", "onInput"];
21902
+ const _hoisted_38$3 = {
21903
+ key: 11,
21904
+ class: "yc-display-form-card__field-error"
21905
+ };
21906
+ const _hoisted_39$2 = { class: "yc-display-form-card__actions" };
21907
+ const _hoisted_40$2 = ["disabled"];
21908
+ const _hoisted_41$2 = ["disabled"];
21909
+ const _hoisted_42$2 = {
21402
21910
  key: 1,
21403
21911
  class: "yc-display-form-card__alert is-error"
21404
21912
  };
21405
- const _hoisted_35$4 = {
21913
+ const _hoisted_43$2 = {
21406
21914
  key: 2,
21407
21915
  class: "yc-display-form-card__alert is-success"
21408
21916
  };
21409
- const _hoisted_36$3 = {
21917
+ const _hoisted_44$1 = {
21410
21918
  key: 3,
21919
+ class: "yc-display-form-card__trace"
21920
+ };
21921
+ const _hoisted_45$1 = { class: "yc-display-form-card__trace-arrow" };
21922
+ const _hoisted_46$1 = {
21923
+ key: 0,
21924
+ class: "yc-display-form-card__trace-list"
21925
+ };
21926
+ const _hoisted_47$1 = { class: "yc-display-form-card__trace-content" };
21927
+ const _hoisted_48$1 = { class: "yc-display-form-card__trace-label" };
21928
+ const _hoisted_49$1 = {
21929
+ key: 0,
21930
+ class: "yc-display-form-card__trace-detail"
21931
+ };
21932
+ const _hoisted_50$1 = {
21933
+ key: 4,
21411
21934
  class: "yc-display-form-card__result"
21412
21935
  };
21413
- const _hoisted_37$3 = {
21936
+ const _hoisted_51$1 = {
21414
21937
  key: 0,
21415
21938
  class: "yc-display-form-card__table-wrap"
21416
21939
  };
21417
- const _hoisted_38$3 = { class: "yc-display-form-card__table" };
21418
- const _hoisted_39$2 = {
21940
+ const _hoisted_52$1 = { class: "yc-display-form-card__table" };
21941
+ const _hoisted_53$1 = {
21419
21942
  key: 1,
21420
21943
  class: "yc-display-form-card__kv"
21421
21944
  };
21422
- const _hoisted_40$2 = { class: "yc-display-form-card__kv-label" };
21423
- const _hoisted_41$2 = { class: "yc-display-form-card__kv-value" };
21945
+ const _hoisted_54$1 = { class: "yc-display-form-card__kv-label" };
21946
+ const _hoisted_55$1 = { class: "yc-display-form-card__kv-value" };
21424
21947
  var _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
21425
21948
  ...{ name: "YcDisplayFormCard" },
21426
21949
  __name: "form-card",
@@ -21436,7 +21959,8 @@
21436
21959
  compact: { type: Boolean, default: false },
21437
21960
  skillName: { default: "" },
21438
21961
  executeAction: { type: Function, default: void 0 },
21439
- uploadFile: { type: Function, default: void 0 }
21962
+ uploadFile: { type: Function, default: void 0 },
21963
+ submitReply: { type: Function, default: void 0 }
21440
21964
  },
21441
21965
  emits: ["action"],
21442
21966
  setup(__props, { emit: __emit }) {
@@ -21452,6 +21976,9 @@
21452
21976
  const resultData = vue.ref(null);
21453
21977
  const hasExecuted = vue.ref(false);
21454
21978
  const replySent = vue.ref(false);
21979
+ const dynamicFields = vue.ref([]);
21980
+ const traceSteps = vue.ref([]);
21981
+ const traceExpanded = vue.ref(false);
21455
21982
  const formValues = vue.reactive({});
21456
21983
  const remoteOptions = vue.reactive({});
21457
21984
  const loadingOptions = vue.reactive({});
@@ -21507,27 +22034,51 @@
21507
22034
  return options.length ? options : void 0;
21508
22035
  }
21509
22036
  const inlineFields = vue.computed(() => {
21510
- if (!Array.isArray(props.fields)) return [];
21511
- return props.fields.filter((item) => Boolean(item) && typeof item === "object" && Boolean(item.name)).map((item) => {
21512
- var _a;
21513
- return {
22037
+ var _a;
22038
+ const base = Array.isArray(props.fields) ? props.fields : [];
22039
+ const merged = [...base, ...dynamicFields.value];
22040
+ const seen = /* @__PURE__ */ new Set();
22041
+ const result = [];
22042
+ for (const item of merged) {
22043
+ if (!item || typeof item !== "object" || !item.name) continue;
22044
+ const name = String(item.name);
22045
+ if (seen.has(name)) continue;
22046
+ seen.add(name);
22047
+ result.push({
21514
22048
  ...item,
21515
- name: String(item.name),
21516
- label: String((_a = item.label) != null ? _a : item.name),
22049
+ name,
22050
+ label: String((_a = item.label) != null ? _a : name),
21517
22051
  visible: item.visible !== false
21518
- };
21519
- });
22052
+ });
22053
+ }
22054
+ return result;
21520
22055
  });
22056
+ const dynamicFieldNames = vue.computed(
22057
+ () => new Set(dynamicFields.value.map((f) => f.name))
22058
+ );
21521
22059
  const visibleFields = vue.computed(() => {
21522
22060
  const source = inlineFields.value.length > 0 ? inlineFields.value : loadedFields.value;
21523
22061
  return source.filter((field) => field.visible !== false);
21524
22062
  });
22063
+ function isRadioField(field) {
22064
+ return field.widget === "radio";
22065
+ }
22066
+ function isCheckboxField(field) {
22067
+ return field.widget === "checkbox";
22068
+ }
21525
22069
  function isSelectField(field) {
21526
22070
  var _a, _b;
22071
+ if (isRadioField(field) || isCheckboxField(field)) return false;
21527
22072
  return Boolean(
21528
22073
  field.widget === "select" || field.options_operation || ((_a = field.options) == null ? void 0 : _a.length) || ((_b = field.enum) == null ? void 0 : _b.length)
21529
22074
  );
21530
22075
  }
22076
+ function isPhoneField(field) {
22077
+ return field.widget === "phone" || field.widget === "tel";
22078
+ }
22079
+ function isEmailField(field) {
22080
+ return field.widget === "email";
22081
+ }
21531
22082
  function isDateField(field) {
21532
22083
  return field.widget === "date" || field.widget === "datetime";
21533
22084
  }
@@ -21784,6 +22335,47 @@
21784
22335
  }
21785
22336
  return result;
21786
22337
  }
22338
+ function isCheckboxChecked(field, optionValue) {
22339
+ const current = formValues[field.name];
22340
+ return Array.isArray(current) && current.includes(optionValue);
22341
+ }
22342
+ function toggleCheckboxOption(field, optionValue) {
22343
+ if (replySent.value) return;
22344
+ const current = Array.isArray(formValues[field.name]) ? [...formValues[field.name]] : [];
22345
+ const idx = current.indexOf(optionValue);
22346
+ if (idx >= 0) {
22347
+ current.splice(idx, 1);
22348
+ } else {
22349
+ current.push(optionValue);
22350
+ }
22351
+ formValues[field.name] = current.length ? current : void 0;
22352
+ }
22353
+ const fieldValidationErrors = vue.reactive({});
22354
+ function validateFieldFormat(field, value) {
22355
+ if (isBlank(value)) return "";
22356
+ const text = String(value).trim();
22357
+ const label = field.label || field.name;
22358
+ if (isPhoneField(field)) {
22359
+ const normalized = text.replace(/[\s-]/g, "");
22360
+ if (!/^1[3-9]\d{9}$/.test(normalized) && !/^0\d{2,3}\d{7,8}$/.test(normalized)) {
22361
+ return `\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u300C${label}\u300D\uFF0811\u4F4D\u624B\u673A\u53F7\u6216\u56FA\u8BDD\uFF09`;
22362
+ }
22363
+ }
22364
+ if (isEmailField(field)) {
22365
+ if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(text)) {
22366
+ return `\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u300C${label}\u300D\u90AE\u7BB1\u683C\u5F0F`;
22367
+ }
22368
+ }
22369
+ return "";
22370
+ }
22371
+ function handleFieldBlur(field) {
22372
+ const msg = validateFieldFormat(field, formValues[field.name]);
22373
+ if (msg) {
22374
+ fieldValidationErrors[field.name] = msg;
22375
+ } else {
22376
+ delete fieldValidationErrors[field.name];
22377
+ }
22378
+ }
21787
22379
  function isBlank(value) {
21788
22380
  if (Array.isArray(value)) return value.length === 0;
21789
22381
  return value === void 0 || value === null || String(value).trim() === "";
@@ -21796,6 +22388,13 @@
21796
22388
  return `\u5DF2\u968F\u6D88\u606F\u4E0A\u4F20 ${items.length} \u4E2A\u9644\u4EF6\uFF08${items.map((item) => item.attachment.fileName).join("\u3001")}\uFF09`;
21797
22389
  }
21798
22390
  }
22391
+ if (Array.isArray(value)) {
22392
+ const opts = fieldOptions(field);
22393
+ return value.map((v) => {
22394
+ const opt = opts.find((o) => o.value === v);
22395
+ return !opt || opt.label === String(v) ? String(v) : `${opt.label}\uFF08${String(v)}\uFF09`;
22396
+ }).join("\u3001");
22397
+ }
21799
22398
  const option = fieldOptions(field).find((opt) => opt.value === value);
21800
22399
  if (!option || option.label === String(value)) return String(value);
21801
22400
  return `${option.label}\uFF08${String(value)}\uFF09`;
@@ -21811,6 +22410,35 @@
21811
22410
  }
21812
22411
  return [`${prefix}\uFF1A`, ...lines].join("\n");
21813
22412
  }
22413
+ function upsertTraceStep(step) {
22414
+ const idx = traceSteps.value.findIndex((item) => item.id === step.id);
22415
+ if (idx >= 0) {
22416
+ traceSteps.value[idx] = { ...traceSteps.value[idx], ...step };
22417
+ } else {
22418
+ traceSteps.value.push(step);
22419
+ }
22420
+ }
22421
+ function appendMissingFieldsFromResult(missingFields, message) {
22422
+ const existingNames = new Set(inlineFields.value.map((f) => f.name));
22423
+ const candidates = Array.isArray(missingFields) ? [...missingFields] : [];
22424
+ if (candidates.length === 0 && message && /(附件|图片|照片|photo|image|attachment)/i.test(message) && !inlineFields.value.some((f) => isUploadField(f))) {
22425
+ candidates.push({
22426
+ name: "attachments",
22427
+ label: "\u73B0\u573A\u7167\u7247",
22428
+ widget: "image",
22429
+ required: true,
22430
+ visible: true
22431
+ });
22432
+ }
22433
+ for (const field of candidates) {
22434
+ if (!(field == null ? void 0 : field.name) || existingNames.has(field.name)) continue;
22435
+ existingNames.add(field.name);
22436
+ dynamicFields.value.push({
22437
+ ...field,
22438
+ visible: field.visible !== false
22439
+ });
22440
+ }
22441
+ }
21814
22442
  async function handleExecute() {
21815
22443
  if (!canExecute.value || executing.value) return;
21816
22444
  errorMessage.value = "";
@@ -21820,20 +22448,85 @@
21820
22448
  return;
21821
22449
  }
21822
22450
  for (const field of visibleFields.value) {
21823
- if (field.required && isBlank(formValues[field.name])) {
22451
+ const val = formValues[field.name];
22452
+ if (field.required && isBlank(val)) {
21824
22453
  const label = field.label || field.name;
21825
22454
  errorMessage.value = isUploadField(field) ? `\u8BF7\u5148\u4E0A\u4F20\u300C${label}\u300D` : `\u8BF7\u5148\u586B\u5199\u300C${label}\u300D`;
21826
22455
  return;
21827
22456
  }
22457
+ const formatErr = validateFieldFormat(field, val);
22458
+ if (formatErr) {
22459
+ fieldValidationErrors[field.name] = formatErr;
22460
+ errorMessage.value = formatErr;
22461
+ return;
22462
+ }
22463
+ delete fieldValidationErrors[field.name];
21828
22464
  }
21829
22465
  if (resolvedMode.value === "reply") {
21830
22466
  const attachments = collectUploadedAttachments();
22467
+ const replyText = buildReplyText();
22468
+ if (props.submitReply) {
22469
+ executing.value = true;
22470
+ traceExpanded.value = true;
22471
+ traceSteps.value = [
22472
+ {
22473
+ id: "submit",
22474
+ label: "\u6B63\u5728\u63D0\u4EA4\u8868\u5355\u4EA4\u7531\u4E1A\u52A1\u52A9\u624B\u5904\u7406\u2026",
22475
+ status: "running"
22476
+ }
22477
+ ];
22478
+ try {
22479
+ const res = await props.submitReply({
22480
+ text: replyText,
22481
+ attachments: attachments.length ? attachments : void 0,
22482
+ values: { ...formValues },
22483
+ onTrace: upsertTraceStep
22484
+ });
22485
+ if (Array.isArray(res.trace)) {
22486
+ for (const step of res.trace) upsertTraceStep(step);
22487
+ }
22488
+ if (res.ok) {
22489
+ upsertTraceStep({
22490
+ id: "submit",
22491
+ label: "\u8868\u5355\u63D0\u4EA4\u4E0E\u5904\u7406\u5B8C\u6210",
22492
+ status: "succeeded",
22493
+ detail: res.message
22494
+ });
22495
+ replySent.value = true;
22496
+ submitReceipt.value = res.message || `${cardTitle.value}\u5904\u7406\u6210\u529F`;
22497
+ showDisplayToast(submitReceipt.value, "success");
22498
+ } else {
22499
+ upsertTraceStep({
22500
+ id: "submit",
22501
+ label: "\u5904\u7406\u672A\u5B8C\u6210\uFF0C\u9700\u8865\u5145\u4FE1\u606F",
22502
+ status: "failed",
22503
+ detail: res.message
22504
+ });
22505
+ errorMessage.value = res.message || "\u4FE1\u606F\u4E0D\u5B8C\u6574\u6216\u5904\u7406\u5931\u8D25\uFF0C\u8BF7\u8865\u5145\u540E\u91CD\u65B0\u63D0\u4EA4";
22506
+ appendMissingFieldsFromResult(res.missingFields, res.message);
22507
+ showDisplayToast(errorMessage.value, "warning", 4500);
22508
+ }
22509
+ } catch (err) {
22510
+ const msg = err instanceof Error ? err.message : "\u63D0\u4EA4\u5904\u7406\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5";
22511
+ upsertTraceStep({
22512
+ id: "submit",
22513
+ label: "\u63D0\u4EA4\u8FC7\u7A0B\u53D1\u751F\u5F02\u5E38",
22514
+ status: "failed",
22515
+ detail: msg
22516
+ });
22517
+ errorMessage.value = msg;
22518
+ showDisplayToast(msg, "error", 4500);
22519
+ } finally {
22520
+ executing.value = false;
22521
+ }
22522
+ return;
22523
+ }
21831
22524
  replySent.value = true;
21832
- submitReceipt.value = "\u5DF2\u63D0\u4EA4\uFF0CAgent \u6B63\u5728\u6309\u4F60\u586B\u5199\u7684\u4FE1\u606F\u5904\u7406";
22525
+ submitReceipt.value = "\u5DF2\u63D0\u4EA4\uFF0CAgent \u6B63\u5728\u6309\u4F60\u586B\u5199\u7684\u4FE1\u606F\u5904\u7406\uFF08\u82E5\u5904\u7406\u5931\u8D25\u53EF\u70B9\u300C\u4FEE\u6539\u91CD\u63D0\u300D\uFF09";
21833
22526
  if (attachments.length) {
21834
- emit("action", buildReplyText(), attachments);
22527
+ emit("action", replyText, attachments);
21835
22528
  } else {
21836
- emit("action", buildReplyText());
22529
+ emit("action", replyText);
21837
22530
  }
21838
22531
  return;
21839
22532
  }
@@ -21872,10 +22565,18 @@
21872
22565
  }
21873
22566
  }
21874
22567
  }
22568
+ function unlockReplyEdit() {
22569
+ replySent.value = false;
22570
+ errorMessage.value = "";
22571
+ submitReceipt.value = null;
22572
+ }
21875
22573
  function handleReset() {
21876
22574
  for (const key of Object.keys(formValues)) {
21877
22575
  delete formValues[key];
21878
22576
  }
22577
+ for (const key of Object.keys(fieldValidationErrors)) {
22578
+ delete fieldValidationErrors[key];
22579
+ }
21879
22580
  revokeAllUploadPreviews();
21880
22581
  for (const key of Object.keys(uploadedFiles)) {
21881
22582
  delete uploadedFiles[key];
@@ -21907,7 +22608,7 @@
21907
22608
  [
21908
22609
  vue.createElementVNode("div", _hoisted_1$O, [
21909
22610
  vue.createElementVNode("div", _hoisted_2$B, [
21910
- _cache[0] || (_cache[0] = vue.createElementVNode(
22611
+ _cache[1] || (_cache[1] = vue.createElementVNode(
21911
22612
  "span",
21912
22613
  { class: "yc-display-form-card__accent" },
21913
22614
  null,
@@ -21947,7 +22648,7 @@
21947
22648
  vue.Fragment,
21948
22649
  null,
21949
22650
  vue.renderList(visibleFields.value, (field) => {
21950
- var _a2, _b, _c, _d, _e;
22651
+ var _a2, _b, _c, _d, _e, _f, _g;
21951
22652
  return vue.openBlock(), vue.createElementBlock(
21952
22653
  "div",
21953
22654
  {
@@ -21960,13 +22661,50 @@
21960
22661
  vue.createElementVNode("label", _hoisted_9$i, [
21961
22662
  field.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10$h, "*")) : vue.createCommentVNode("v-if", true),
21962
22663
  vue.createTextVNode(
21963
- " " + vue.toDisplayString(field.label || field.name),
22664
+ " " + vue.toDisplayString(field.label || field.name) + " ",
21964
22665
  1
21965
22666
  /* TEXT */
21966
- )
22667
+ ),
22668
+ dynamicFieldNames.value.has(field.name) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11$h, " \u9700\u8865\u5145 ")) : vue.createCommentVNode("v-if", true)
21967
22669
  ]),
21968
- isSelectField(field) ? (vue.openBlock(), vue.createElementBlock("select", {
21969
- key: 0,
22670
+ isRadioField(field) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$g, [
22671
+ (vue.openBlock(true), vue.createElementBlock(
22672
+ vue.Fragment,
22673
+ null,
22674
+ vue.renderList(fieldOptions(field), (opt) => {
22675
+ return vue.openBlock(), vue.createElementBlock("button", {
22676
+ key: String(opt.value),
22677
+ type: "button",
22678
+ role: "radio",
22679
+ "aria-checked": formValues[field.name] === opt.value,
22680
+ disabled: replySent.value,
22681
+ class: vue.normalizeClass(["yc-display-form-card__choice-item", { "is-selected": formValues[field.name] === opt.value }]),
22682
+ onClick: ($event) => formValues[field.name] = opt.value
22683
+ }, vue.toDisplayString(opt.label), 11, _hoisted_13$f);
22684
+ }),
22685
+ 128
22686
+ /* KEYED_FRAGMENT */
22687
+ ))
22688
+ ])) : isCheckboxField(field) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14$d, [
22689
+ (vue.openBlock(true), vue.createElementBlock(
22690
+ vue.Fragment,
22691
+ null,
22692
+ vue.renderList(fieldOptions(field), (opt) => {
22693
+ return vue.openBlock(), vue.createElementBlock("button", {
22694
+ key: String(opt.value),
22695
+ type: "button",
22696
+ role: "checkbox",
22697
+ "aria-checked": isCheckboxChecked(field, opt.value),
22698
+ disabled: replySent.value,
22699
+ class: vue.normalizeClass(["yc-display-form-card__choice-item", { "is-selected": isCheckboxChecked(field, opt.value) }]),
22700
+ onClick: ($event) => toggleCheckboxOption(field, opt.value)
22701
+ }, vue.toDisplayString(opt.label), 11, _hoisted_15$c);
22702
+ }),
22703
+ 128
22704
+ /* KEYED_FRAGMENT */
22705
+ ))
22706
+ ])) : isSelectField(field) ? (vue.openBlock(), vue.createElementBlock("select", {
22707
+ key: 2,
21970
22708
  value: (_a2 = formValues[field.name]) != null ? _a2 : "",
21971
22709
  disabled: replySent.value,
21972
22710
  class: "yc-display-form-card__control yc-display-form-card__select",
@@ -21975,7 +22713,7 @@
21975
22713
  }, [
21976
22714
  vue.createElementVNode(
21977
22715
  "option",
21978
- _hoisted_12$g,
22716
+ _hoisted_17$b,
21979
22717
  vue.toDisplayString(loadingOptions[field.name] ? "\u52A0\u8F7D\u9009\u9879\u4E2D\u2026" : `\u8BF7\u9009\u62E9${field.label || field.name}`),
21980
22718
  1
21981
22719
  /* TEXT */
@@ -21987,20 +22725,20 @@
21987
22725
  return vue.openBlock(), vue.createElementBlock("option", {
21988
22726
  key: String(opt.value),
21989
22727
  value: String(opt.value)
21990
- }, vue.toDisplayString(opt.label), 9, _hoisted_13$f);
22728
+ }, vue.toDisplayString(opt.label), 9, _hoisted_18$b);
21991
22729
  }),
21992
22730
  128
21993
22731
  /* KEYED_FRAGMENT */
21994
22732
  ))
21995
- ], 40, _hoisted_11$h)) : isDateField(field) ? (vue.openBlock(), vue.createElementBlock("input", {
21996
- key: 1,
22733
+ ], 40, _hoisted_16$c)) : isDateField(field) ? (vue.openBlock(), vue.createElementBlock("input", {
22734
+ key: 3,
21997
22735
  type: field.widget === "datetime" ? "datetime-local" : "date",
21998
22736
  value: formatDateInputValue(field, formValues[field.name]),
21999
22737
  disabled: replySent.value,
22000
22738
  class: "yc-display-form-card__control yc-display-form-card__input",
22001
22739
  onInput: (event) => handleDateInput(field, event)
22002
- }, null, 40, _hoisted_14$d)) : isNumberField(field) ? (vue.openBlock(), vue.createElementBlock("input", {
22003
- key: 2,
22740
+ }, null, 40, _hoisted_19$a)) : isNumberField(field) ? (vue.openBlock(), vue.createElementBlock("input", {
22741
+ key: 4,
22004
22742
  type: "number",
22005
22743
  step: field.type === "integer" ? "1" : "any",
22006
22744
  inputmode: field.type === "integer" ? "numeric" : "decimal",
@@ -22009,15 +22747,15 @@
22009
22747
  placeholder: `\u8BF7\u8F93\u5165${field.label || field.name}`,
22010
22748
  class: "yc-display-form-card__control yc-display-form-card__input",
22011
22749
  onInput: (event) => handleNumberInput(field, event)
22012
- }, null, 40, _hoisted_15$c)) : field.type === "boolean" ? (vue.openBlock(), vue.createElementBlock("button", {
22013
- key: 3,
22750
+ }, null, 40, _hoisted_20$a)) : field.type === "boolean" ? (vue.openBlock(), vue.createElementBlock("button", {
22751
+ key: 5,
22014
22752
  type: "button",
22015
22753
  role: "switch",
22016
22754
  "aria-checked": Boolean(formValues[field.name]),
22017
22755
  disabled: replySent.value,
22018
22756
  class: vue.normalizeClass(["yc-display-form-card__switch", { "is-checked": Boolean(formValues[field.name]) }]),
22019
22757
  onClick: ($event) => formValues[field.name] = !formValues[field.name]
22020
- }, [..._cache[1] || (_cache[1] = [
22758
+ }, [..._cache[2] || (_cache[2] = [
22021
22759
  vue.createElementVNode(
22022
22760
  "span",
22023
22761
  { class: "yc-display-form-card__switch-thumb" },
@@ -22025,7 +22763,7 @@
22025
22763
  -1
22026
22764
  /* CACHED */
22027
22765
  )
22028
- ])], 10, _hoisted_16$c)) : isUploadField(field) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17$b, [
22766
+ ])], 10, _hoisted_21$9)) : isUploadField(field) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22$9, [
22029
22767
  vue.createElementVNode("input", {
22030
22768
  ref_for: true,
22031
22769
  ref: (el) => setFileInputRef(field.name, el),
@@ -22034,8 +22772,8 @@
22034
22772
  accept: field.widget === "image" ? "image/*" : void 0,
22035
22773
  class: "yc-display-form-card__upload-input",
22036
22774
  onChange: (event) => handleFileInputChange(field, event)
22037
- }, null, 40, _hoisted_18$b),
22038
- vue.createElementVNode("div", _hoisted_19$a, [
22775
+ }, null, 40, _hoisted_23$7),
22776
+ vue.createElementVNode("div", _hoisted_24$6, [
22039
22777
  (vue.openBlock(true), vue.createElementBlock(
22040
22778
  vue.Fragment,
22041
22779
  null,
@@ -22046,22 +22784,22 @@
22046
22784
  key: `${item.attachment.fileRef || item.attachment.fileName}-${idx}`
22047
22785
  },
22048
22786
  [
22049
- item.previewUrl ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_20$a, [
22787
+ item.previewUrl ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25$6, [
22050
22788
  vue.createElementVNode("img", {
22051
22789
  src: item.previewUrl,
22052
22790
  alt: item.attachment.fileName
22053
- }, null, 8, _hoisted_21$9),
22791
+ }, null, 8, _hoisted_26$6),
22054
22792
  !replySent.value ? (vue.openBlock(), vue.createElementBlock("button", {
22055
22793
  key: 0,
22056
22794
  type: "button",
22057
22795
  class: "yc-display-form-card__thumb-remove",
22058
22796
  title: "\u79FB\u9664",
22059
22797
  onClick: ($event) => removeUploadedItem(field.name, idx)
22060
- }, " \xD7 ", 8, _hoisted_22$9)) : vue.createCommentVNode("v-if", true)
22061
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_23$7, [
22798
+ }, " \xD7 ", 8, _hoisted_27$6)) : vue.createCommentVNode("v-if", true)
22799
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_28$6, [
22062
22800
  vue.createElementVNode(
22063
22801
  "span",
22064
- _hoisted_24$6,
22802
+ _hoisted_29$6,
22065
22803
  vue.toDisplayString(item.attachment.fileName),
22066
22804
  1
22067
22805
  /* TEXT */
@@ -22072,7 +22810,7 @@
22072
22810
  class: "yc-display-form-card__file-remove",
22073
22811
  title: "\u79FB\u9664",
22074
22812
  onClick: ($event) => removeUploadedItem(field.name, idx)
22075
- }, " \xD7 ", 8, _hoisted_25$6)) : vue.createCommentVNode("v-if", true)
22813
+ }, " \xD7 ", 8, _hoisted_30$6)) : vue.createCommentVNode("v-if", true)
22076
22814
  ]))
22077
22815
  ],
22078
22816
  64
@@ -22092,32 +22830,66 @@
22092
22830
  disabled: Boolean(uploadingFields[field.name]),
22093
22831
  onClick: ($event) => triggerFileSelect(field.name)
22094
22832
  }, [
22095
- uploadingFields[field.name] ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_27$6, "\u4E0A\u4F20\u4E2D\u2026")) : (vue.openBlock(), vue.createElementBlock(
22833
+ uploadingFields[field.name] ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_32$5, "\u4E0A\u4F20\u4E2D\u2026")) : (vue.openBlock(), vue.createElementBlock(
22096
22834
  "span",
22097
- _hoisted_28$6,
22835
+ _hoisted_33$4,
22098
22836
  vue.toDisplayString(field.widget === "image" ? "+ \u4E0A\u4F20\u56FE\u7247" : "+ \u4E0A\u4F20\u9644\u4EF6"),
22099
22837
  1
22100
22838
  /* TEXT */
22101
22839
  ))
22102
- ], 10, _hoisted_26$6)) : vue.createCommentVNode("v-if", true)
22840
+ ], 10, _hoisted_31$6)) : vue.createCommentVNode("v-if", true)
22103
22841
  ])
22104
- ])) : field.widget === "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
22105
- key: 5,
22106
- rows: "3",
22842
+ ])) : isPhoneField(field) ? (vue.openBlock(), vue.createElementBlock("input", {
22843
+ key: 7,
22844
+ type: "tel",
22845
+ inputmode: "tel",
22846
+ maxlength: "20",
22107
22847
  value: String((_d = formValues[field.name]) != null ? _d : ""),
22108
22848
  disabled: replySent.value,
22109
22849
  placeholder: `\u8BF7\u8F93\u5165${field.label || field.name}`,
22850
+ class: vue.normalizeClass(["yc-display-form-card__control yc-display-form-card__input", { "is-invalid": Boolean(fieldValidationErrors[field.name]) }]),
22851
+ onInput: (event) => {
22852
+ formValues[field.name] = event.target.value;
22853
+ delete fieldValidationErrors[field.name];
22854
+ },
22855
+ onBlur: ($event) => handleFieldBlur(field)
22856
+ }, null, 42, _hoisted_34$4)) : isEmailField(field) ? (vue.openBlock(), vue.createElementBlock("input", {
22857
+ key: 8,
22858
+ type: "email",
22859
+ inputmode: "email",
22860
+ value: String((_e = formValues[field.name]) != null ? _e : ""),
22861
+ disabled: replySent.value,
22862
+ placeholder: `\u8BF7\u8F93\u5165${field.label || field.name}`,
22863
+ class: vue.normalizeClass(["yc-display-form-card__control yc-display-form-card__input", { "is-invalid": Boolean(fieldValidationErrors[field.name]) }]),
22864
+ onInput: (event) => {
22865
+ formValues[field.name] = event.target.value;
22866
+ delete fieldValidationErrors[field.name];
22867
+ },
22868
+ onBlur: ($event) => handleFieldBlur(field)
22869
+ }, null, 42, _hoisted_35$4)) : field.widget === "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
22870
+ key: 9,
22871
+ rows: "3",
22872
+ value: String((_f = formValues[field.name]) != null ? _f : ""),
22873
+ disabled: replySent.value,
22874
+ placeholder: `\u8BF7\u8F93\u5165${field.label || field.name}`,
22110
22875
  class: "yc-display-form-card__control yc-display-form-card__textarea",
22111
22876
  onInput: (event) => formValues[field.name] = event.target.value
22112
- }, null, 40, _hoisted_29$6)) : (vue.openBlock(), vue.createElementBlock("input", {
22113
- key: 6,
22877
+ }, null, 40, _hoisted_36$3)) : (vue.openBlock(), vue.createElementBlock("input", {
22878
+ key: 10,
22114
22879
  type: "text",
22115
- value: String((_e = formValues[field.name]) != null ? _e : ""),
22880
+ value: String((_g = formValues[field.name]) != null ? _g : ""),
22116
22881
  disabled: replySent.value,
22117
22882
  placeholder: `\u8BF7\u8F93\u5165${field.label || field.name}`,
22118
22883
  class: "yc-display-form-card__control yc-display-form-card__input",
22119
22884
  onInput: (event) => formValues[field.name] = event.target.value
22120
- }, null, 40, _hoisted_30$6))
22885
+ }, null, 40, _hoisted_37$3)),
22886
+ fieldValidationErrors[field.name] ? (vue.openBlock(), vue.createElementBlock(
22887
+ "span",
22888
+ _hoisted_38$3,
22889
+ vue.toDisplayString(fieldValidationErrors[field.name]),
22890
+ 1
22891
+ /* TEXT */
22892
+ )) : vue.createCommentVNode("v-if", true)
22121
22893
  ],
22122
22894
  2
22123
22895
  /* CLASS */
@@ -22127,37 +22899,109 @@
22127
22899
  /* KEYED_FRAGMENT */
22128
22900
  ))
22129
22901
  ])) : vue.createCommentVNode("v-if", true),
22130
- vue.createElementVNode("div", _hoisted_31$6, [
22902
+ vue.createElementVNode("div", _hoisted_39$2, [
22903
+ resolvedMode.value === "reply" && replySent.value ? (vue.openBlock(), vue.createElementBlock("button", {
22904
+ key: 0,
22905
+ type: "button",
22906
+ class: "yc-display-form-card__btn is-default",
22907
+ onClick: unlockReplyEdit
22908
+ }, " \u4FEE\u6539\u91CD\u63D0 ")) : vue.createCommentVNode("v-if", true),
22131
22909
  vue.createElementVNode("button", {
22132
22910
  type: "button",
22133
22911
  class: "yc-display-form-card__btn is-primary",
22134
22912
  disabled: !canExecute.value || executing.value,
22135
22913
  onClick: handleExecute
22136
- }, vue.toDisplayString(executing.value ? "\u5904\u7406\u4E2D\u2026" : resolvedSubmitLabel.value), 9, _hoisted_32$5),
22914
+ }, vue.toDisplayString(executing.value ? "\u5904\u7406\u4E2D\u2026" : resolvedSubmitLabel.value), 9, _hoisted_40$2),
22137
22915
  vue.createElementVNode("button", {
22138
22916
  type: "button",
22139
22917
  class: "yc-display-form-card__btn is-default",
22140
22918
  disabled: executing.value || replySent.value,
22141
22919
  onClick: handleReset
22142
- }, " \u91CD\u7F6E ", 8, _hoisted_33$4)
22920
+ }, " \u91CD\u7F6E ", 8, _hoisted_41$2)
22143
22921
  ]),
22144
22922
  errorMessage.value ? (vue.openBlock(), vue.createElementBlock(
22145
22923
  "div",
22146
- _hoisted_34$4,
22924
+ _hoisted_42$2,
22147
22925
  vue.toDisplayString(errorMessage.value),
22148
22926
  1
22149
22927
  /* TEXT */
22150
22928
  )) : vue.createCommentVNode("v-if", true),
22151
22929
  submitReceipt.value ? (vue.openBlock(), vue.createElementBlock(
22152
22930
  "div",
22153
- _hoisted_35$4,
22931
+ _hoisted_43$2,
22154
22932
  vue.toDisplayString(submitReceipt.value),
22155
22933
  1
22156
22934
  /* TEXT */
22157
22935
  )) : vue.createCommentVNode("v-if", true),
22158
- hasExecuted.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_36$3, [
22159
- ((_a = resultRows.value) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_37$3, [
22160
- vue.createElementVNode("table", _hoisted_38$3, [
22936
+ traceSteps.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_44$1, [
22937
+ vue.createElementVNode("button", {
22938
+ type: "button",
22939
+ class: "yc-display-form-card__trace-toggle",
22940
+ onClick: _cache[0] || (_cache[0] = ($event) => traceExpanded.value = !traceExpanded.value)
22941
+ }, [
22942
+ vue.createElementVNode(
22943
+ "span",
22944
+ null,
22945
+ " \u6267\u884C\u8FFD\u8E2A\uFF08" + vue.toDisplayString(traceSteps.value.length) + " \u6B65\uFF09 ",
22946
+ 1
22947
+ /* TEXT */
22948
+ ),
22949
+ vue.createElementVNode(
22950
+ "span",
22951
+ _hoisted_45$1,
22952
+ vue.toDisplayString(traceExpanded.value ? "\u6536\u8D77" : "\u5C55\u5F00"),
22953
+ 1
22954
+ /* TEXT */
22955
+ )
22956
+ ]),
22957
+ traceExpanded.value ? (vue.openBlock(), vue.createElementBlock("ul", _hoisted_46$1, [
22958
+ (vue.openBlock(true), vue.createElementBlock(
22959
+ vue.Fragment,
22960
+ null,
22961
+ vue.renderList(traceSteps.value, (step) => {
22962
+ return vue.openBlock(), vue.createElementBlock(
22963
+ "li",
22964
+ {
22965
+ key: step.id,
22966
+ class: vue.normalizeClass(["yc-display-form-card__trace-item", `is-${step.status}`])
22967
+ },
22968
+ [
22969
+ _cache[3] || (_cache[3] = vue.createElementVNode(
22970
+ "span",
22971
+ { class: "yc-display-form-card__trace-dot" },
22972
+ null,
22973
+ -1
22974
+ /* CACHED */
22975
+ )),
22976
+ vue.createElementVNode("div", _hoisted_47$1, [
22977
+ vue.createElementVNode(
22978
+ "div",
22979
+ _hoisted_48$1,
22980
+ vue.toDisplayString(step.label),
22981
+ 1
22982
+ /* TEXT */
22983
+ ),
22984
+ step.detail ? (vue.openBlock(), vue.createElementBlock(
22985
+ "div",
22986
+ _hoisted_49$1,
22987
+ vue.toDisplayString(step.detail),
22988
+ 1
22989
+ /* TEXT */
22990
+ )) : vue.createCommentVNode("v-if", true)
22991
+ ])
22992
+ ],
22993
+ 2
22994
+ /* CLASS */
22995
+ );
22996
+ }),
22997
+ 128
22998
+ /* KEYED_FRAGMENT */
22999
+ ))
23000
+ ])) : vue.createCommentVNode("v-if", true)
23001
+ ])) : vue.createCommentVNode("v-if", true),
23002
+ hasExecuted.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_50$1, [
23003
+ ((_a = resultRows.value) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_51$1, [
23004
+ vue.createElementVNode("table", _hoisted_52$1, [
22161
23005
  vue.createElementVNode("thead", null, [
22162
23006
  vue.createElementVNode("tr", null, [
22163
23007
  (vue.openBlock(true), vue.createElementBlock(
@@ -22206,7 +23050,7 @@
22206
23050
  ))
22207
23051
  ])
22208
23052
  ])
22209
- ])) : resultDetailEntries.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_39$2, [
23053
+ ])) : resultDetailEntries.value.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_53$1, [
22210
23054
  (vue.openBlock(true), vue.createElementBlock(
22211
23055
  vue.Fragment,
22212
23056
  null,
@@ -22217,14 +23061,14 @@
22217
23061
  }, [
22218
23062
  vue.createElementVNode(
22219
23063
  "span",
22220
- _hoisted_40$2,
23064
+ _hoisted_54$1,
22221
23065
  vue.toDisplayString(entry.label),
22222
23066
  1
22223
23067
  /* TEXT */
22224
23068
  ),
22225
23069
  vue.createElementVNode(
22226
23070
  "span",
22227
- _hoisted_41$2,
23071
+ _hoisted_55$1,
22228
23072
  vue.toDisplayString(entry.value),
22229
23073
  1
22230
23074
  /* TEXT */
@@ -22245,7 +23089,7 @@
22245
23089
  }
22246
23090
  });
22247
23091
 
22248
- var FormCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["__scopeId", "data-v-4190ddf5"]]);
23092
+ var FormCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["__scopeId", "data-v-c0193546"]]);
22249
23093
 
22250
23094
  const YcDisplayTableCard = withInstall(TableCard);
22251
23095
  const YcDisplayMetricsCard = withInstall(MetricsCard);
@@ -75824,7 +76668,7 @@
75824
76668
  }
75825
76669
  });
75826
76670
 
75827
- const version = "1.2.7";
76671
+ const version = "1.2.8";
75828
76672
 
75829
76673
  const install = installer.install;
75830
76674