yc-agent-ui 1.2.6 → 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 (136) hide show
  1. package/es/_virtual/_commonjsHelpers.mjs +7 -0
  2. package/es/_virtual/toastify.mjs +3 -0
  3. package/es/components/data-table/src/data-table-pagination.vue.d.ts +3 -3
  4. package/es/components/data-table/src/data-table-toolbar.vue.d.ts +1 -1
  5. package/es/components/data-table/src/data-table.vue.d.ts +3 -3
  6. package/es/components/dialog-form/index.d.ts +4 -4
  7. package/es/components/dialog-form/src/index.vue.d.ts +4 -4
  8. package/es/components/display-item/index.d.ts +15 -15
  9. package/es/components/display-item/src/index.vue.d.ts +13 -13
  10. package/es/components/drawer-form/index.d.ts +10 -10
  11. package/es/components/drawer-form/src/index.vue.d.ts +6 -6
  12. package/es/components/form/index.d.ts +11 -11
  13. package/es/components/form/src/form-content.vue.d.ts +9 -9
  14. package/es/components/form/src/index.vue.d.ts +9 -9
  15. package/es/components/form-item/index.d.ts +6 -6
  16. package/es/components/form-item/src/index.vue.d.ts +6 -6
  17. package/es/components/page/index.d.ts +362 -362
  18. package/es/components/page/src/index.vue.d.ts +123 -123
  19. package/es/components/search/index.d.ts +82 -82
  20. package/es/components/search/src/index.vue.d.ts +30 -30
  21. package/es/components/table/index.d.ts +18 -18
  22. package/es/components/table/src/index.vue.d.ts +2 -2
  23. package/es/components/table/src/table-column.vue.d.ts +34 -34
  24. package/es/components/virtual-table/index.d.ts +7 -7
  25. package/es/components/virtual-table/src/index.vue.d.ts +2 -2
  26. package/es/components/yc-ai-chat/src/file-card.vue.d.ts +1 -1
  27. package/es/components/yc-ai-chat/src/select.vue.d.ts +2 -2
  28. package/es/components/yc-ai-chat/src/sidebar.vue.d.ts +3 -3
  29. package/es/components/yc-coss-table/src/coss-table.vue.d.ts +2 -2
  30. package/es/components/yc-coss-table/src/table-head.vue.d.ts +1 -1
  31. package/es/components/yc-display-cards/index.d.ts +20 -1
  32. package/es/components/yc-display-cards/src/form-card.vue.d.ts +23 -0
  33. package/es/components/yc-display-cards/src/toast.d.ts +4 -0
  34. package/es/components/yc-display-cards/src/types.d.ts +77 -0
  35. package/es/components/yc-plus-page/src/header-filter-cell.vue.d.ts +8 -8
  36. package/es/components/yc-plus-page/src/index.vue.d.ts +381 -381
  37. package/es/components/yc-property-table/src/bill-table.vue.d.ts +1 -1
  38. package/es/components/yc-property-table/src/property-table.vue.d.ts +3 -3
  39. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  40. package/es/hooks/usePlusFormReset.d.ts +66 -66
  41. package/es/index.css +18 -10
  42. package/es/index.mjs +1 -1
  43. package/es/node_modules/.pnpm/toastify-js@1.12.0/node_modules/toastify-js/src/toastify.mjs +456 -0
  44. package/es/packages/components/index.mjs +1 -1
  45. package/es/packages/components/yc-display-cards/capability.mjs +24 -2
  46. package/es/packages/components/yc-display-cards/index.mjs +3 -1
  47. package/es/packages/components/yc-display-cards/src/detail-card.vue.mjs +1 -1
  48. package/es/packages/components/yc-display-cards/src/form-card.vue.mjs +6 -0
  49. package/es/packages/components/yc-display-cards/src/form-card2.vue.mjs +1266 -0
  50. package/es/packages/components/yc-display-cards/src/metrics-card.vue.mjs +1 -1
  51. package/es/packages/components/yc-display-cards/src/table-card.vue.mjs +1 -1
  52. package/es/packages/components/yc-display-cards/src/toast.mjs +35 -0
  53. package/es/version.d.ts +1 -1
  54. package/es/version.mjs +1 -1
  55. package/index.css +11 -3
  56. package/index.js +2309 -535
  57. package/index.min.css +11 -3
  58. package/index.min.js +44 -37
  59. package/index.min.mjs +42 -35
  60. package/index.mjs +2307 -534
  61. package/lib/_virtual/_commonjsHelpers.js +10 -0
  62. package/lib/_virtual/toastify.js +5 -0
  63. package/lib/components/data-table/src/data-table-pagination.vue.d.ts +3 -3
  64. package/lib/components/data-table/src/data-table-toolbar.vue.d.ts +1 -1
  65. package/lib/components/data-table/src/data-table.vue.d.ts +3 -3
  66. package/lib/components/dialog-form/index.d.ts +4 -4
  67. package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
  68. package/lib/components/display-item/index.d.ts +15 -15
  69. package/lib/components/display-item/src/index.vue.d.ts +13 -13
  70. package/lib/components/drawer-form/index.d.ts +10 -10
  71. package/lib/components/drawer-form/src/index.vue.d.ts +6 -6
  72. package/lib/components/form/index.d.ts +11 -11
  73. package/lib/components/form/src/form-content.vue.d.ts +9 -9
  74. package/lib/components/form/src/index.vue.d.ts +9 -9
  75. package/lib/components/form-item/index.d.ts +6 -6
  76. package/lib/components/form-item/src/index.vue.d.ts +6 -6
  77. package/lib/components/page/index.d.ts +362 -362
  78. package/lib/components/page/src/index.vue.d.ts +123 -123
  79. package/lib/components/search/index.d.ts +82 -82
  80. package/lib/components/search/src/index.vue.d.ts +30 -30
  81. package/lib/components/table/index.d.ts +18 -18
  82. package/lib/components/table/src/index.vue.d.ts +2 -2
  83. package/lib/components/table/src/table-column.vue.d.ts +34 -34
  84. package/lib/components/virtual-table/index.d.ts +7 -7
  85. package/lib/components/virtual-table/src/index.vue.d.ts +2 -2
  86. package/lib/components/yc-ai-chat/src/file-card.vue.d.ts +1 -1
  87. package/lib/components/yc-ai-chat/src/select.vue.d.ts +2 -2
  88. package/lib/components/yc-ai-chat/src/sidebar.vue.d.ts +3 -3
  89. package/lib/components/yc-coss-table/src/coss-table.vue.d.ts +2 -2
  90. package/lib/components/yc-coss-table/src/table-head.vue.d.ts +1 -1
  91. package/lib/components/yc-display-cards/index.d.ts +20 -1
  92. package/lib/components/yc-display-cards/src/form-card.vue.d.ts +23 -0
  93. package/lib/components/yc-display-cards/src/toast.d.ts +4 -0
  94. package/lib/components/yc-display-cards/src/types.d.ts +77 -0
  95. package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +8 -8
  96. package/lib/components/yc-plus-page/src/index.vue.d.ts +381 -381
  97. package/lib/components/yc-property-table/src/bill-table.vue.d.ts +1 -1
  98. package/lib/components/yc-property-table/src/property-table.vue.d.ts +3 -3
  99. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  100. package/lib/hooks/usePlusFormReset.d.ts +66 -66
  101. package/lib/index.css +19 -11
  102. package/lib/index.js +1 -0
  103. package/lib/node_modules/.pnpm/toastify-js@1.12.0/node_modules/toastify-js/src/toastify.js +460 -0
  104. package/lib/packages/components/index.js +1 -0
  105. package/lib/packages/components/yc-display-cards/capability.js +23 -1
  106. package/lib/packages/components/yc-display-cards/index.js +3 -0
  107. package/lib/packages/components/yc-display-cards/src/detail-card.vue.js +1 -1
  108. package/lib/packages/components/yc-display-cards/src/form-card.vue.js +10 -0
  109. package/lib/packages/components/yc-display-cards/src/form-card2.vue.js +1270 -0
  110. package/lib/packages/components/yc-display-cards/src/metrics-card.vue.js +1 -1
  111. package/lib/packages/components/yc-display-cards/src/table-card.vue.js +1 -1
  112. package/lib/packages/components/yc-display-cards/src/toast.js +37 -0
  113. package/lib/version.d.ts +1 -1
  114. package/lib/version.js +1 -1
  115. package/locale/en.js +1 -1
  116. package/locale/en.min.js +1 -1
  117. package/locale/en.min.mjs +1 -1
  118. package/locale/en.mjs +1 -1
  119. package/locale/ja.js +1 -1
  120. package/locale/ja.min.js +1 -1
  121. package/locale/ja.min.mjs +1 -1
  122. package/locale/ja.mjs +1 -1
  123. package/locale/ko.js +1 -1
  124. package/locale/ko.min.js +1 -1
  125. package/locale/ko.min.mjs +1 -1
  126. package/locale/ko.mjs +1 -1
  127. package/locale/zh-cn.js +1 -1
  128. package/locale/zh-cn.min.js +1 -1
  129. package/locale/zh-cn.min.mjs +1 -1
  130. package/locale/zh-cn.mjs +1 -1
  131. package/locale/zh-tw.js +1 -1
  132. package/locale/zh-tw.min.js +1 -1
  133. package/locale/zh-tw.min.mjs +1 -1
  134. package/locale/zh-tw.mjs +1 -1
  135. package/package.json +2 -1
  136. package/theme-chalk/index.css +11 -3
@@ -0,0 +1,456 @@
1
+ import { commonjsGlobal, getDefaultExportFromCjs } from '../../../../../../_virtual/_commonjsHelpers.mjs';
2
+ import { __module as toastify } from '../../../../../../_virtual/toastify.mjs';
3
+
4
+ /*!
5
+ * Toastify js 1.12.0
6
+ * https://github.com/apvarun/toastify-js
7
+ * @license MIT licensed
8
+ *
9
+ * Copyright (C) 2018 Varun A P
10
+ */
11
+
12
+ (function (module) {
13
+ (function(root, factory) {
14
+ if (module.exports) {
15
+ module.exports = factory();
16
+ } else {
17
+ root.Toastify = factory();
18
+ }
19
+ })(commonjsGlobal, function(global) {
20
+ // Object initialization
21
+ var Toastify = function(options) {
22
+ // Returning a new init object
23
+ return new Toastify.lib.init(options);
24
+ },
25
+ // Library version
26
+ version = "1.12.0";
27
+
28
+ // Set the default global options
29
+ Toastify.defaults = {
30
+ oldestFirst: true,
31
+ text: "Toastify is awesome!",
32
+ node: undefined,
33
+ duration: 3000,
34
+ selector: undefined,
35
+ callback: function () {
36
+ },
37
+ destination: undefined,
38
+ newWindow: false,
39
+ close: false,
40
+ gravity: "toastify-top",
41
+ positionLeft: false,
42
+ position: '',
43
+ backgroundColor: '',
44
+ avatar: "",
45
+ className: "",
46
+ stopOnFocus: true,
47
+ onClick: function () {
48
+ },
49
+ offset: {x: 0, y: 0},
50
+ escapeMarkup: true,
51
+ ariaLive: 'polite',
52
+ style: {background: ''}
53
+ };
54
+
55
+ // Defining the prototype of the object
56
+ Toastify.lib = Toastify.prototype = {
57
+ toastify: version,
58
+
59
+ constructor: Toastify,
60
+
61
+ // Initializing the object with required parameters
62
+ init: function(options) {
63
+ // Verifying and validating the input object
64
+ if (!options) {
65
+ options = {};
66
+ }
67
+
68
+ // Creating the options object
69
+ this.options = {};
70
+
71
+ this.toastElement = null;
72
+
73
+ // Validating the options
74
+ this.options.text = options.text || Toastify.defaults.text; // Display message
75
+ this.options.node = options.node || Toastify.defaults.node; // Display content as node
76
+ this.options.duration = options.duration === 0 ? 0 : options.duration || Toastify.defaults.duration; // Display duration
77
+ this.options.selector = options.selector || Toastify.defaults.selector; // Parent selector
78
+ this.options.callback = options.callback || Toastify.defaults.callback; // Callback after display
79
+ this.options.destination = options.destination || Toastify.defaults.destination; // On-click destination
80
+ this.options.newWindow = options.newWindow || Toastify.defaults.newWindow; // Open destination in new window
81
+ this.options.close = options.close || Toastify.defaults.close; // Show toast close icon
82
+ this.options.gravity = options.gravity === "bottom" ? "toastify-bottom" : Toastify.defaults.gravity; // toast position - top or bottom
83
+ this.options.positionLeft = options.positionLeft || Toastify.defaults.positionLeft; // toast position - left or right
84
+ this.options.position = options.position || Toastify.defaults.position; // toast position - left or right
85
+ this.options.backgroundColor = options.backgroundColor || Toastify.defaults.backgroundColor; // toast background color
86
+ this.options.avatar = options.avatar || Toastify.defaults.avatar; // img element src - url or a path
87
+ this.options.className = options.className || Toastify.defaults.className; // additional class names for the toast
88
+ this.options.stopOnFocus = options.stopOnFocus === undefined ? Toastify.defaults.stopOnFocus : options.stopOnFocus; // stop timeout on focus
89
+ this.options.onClick = options.onClick || Toastify.defaults.onClick; // Callback after click
90
+ this.options.offset = options.offset || Toastify.defaults.offset; // toast offset
91
+ this.options.escapeMarkup = options.escapeMarkup !== undefined ? options.escapeMarkup : Toastify.defaults.escapeMarkup;
92
+ this.options.ariaLive = options.ariaLive || Toastify.defaults.ariaLive;
93
+ this.options.style = options.style || Toastify.defaults.style;
94
+ if(options.backgroundColor) {
95
+ this.options.style.background = options.backgroundColor;
96
+ }
97
+
98
+ // Returning the current object for chaining functions
99
+ return this;
100
+ },
101
+
102
+ // Building the DOM element
103
+ buildToast: function() {
104
+ // Validating if the options are defined
105
+ if (!this.options) {
106
+ throw "Toastify is not initialized";
107
+ }
108
+
109
+ // Creating the DOM object
110
+ var divElement = document.createElement("div");
111
+ divElement.className = "toastify on " + this.options.className;
112
+
113
+ // Positioning toast to left or right or center
114
+ if (!!this.options.position) {
115
+ divElement.className += " toastify-" + this.options.position;
116
+ } else {
117
+ // To be depreciated in further versions
118
+ if (this.options.positionLeft === true) {
119
+ divElement.className += " toastify-left";
120
+ console.warn('Property `positionLeft` will be depreciated in further versions. Please use `position` instead.');
121
+ } else {
122
+ // Default position
123
+ divElement.className += " toastify-right";
124
+ }
125
+ }
126
+
127
+ // Assigning gravity of element
128
+ divElement.className += " " + this.options.gravity;
129
+
130
+ if (this.options.backgroundColor) {
131
+ // This is being deprecated in favor of using the style HTML DOM property
132
+ console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');
133
+ }
134
+
135
+ // Loop through our style object and apply styles to divElement
136
+ for (var property in this.options.style) {
137
+ divElement.style[property] = this.options.style[property];
138
+ }
139
+
140
+ // Announce the toast to screen readers
141
+ if (this.options.ariaLive) {
142
+ divElement.setAttribute('aria-live', this.options.ariaLive);
143
+ }
144
+
145
+ // Adding the toast message/node
146
+ if (this.options.node && this.options.node.nodeType === Node.ELEMENT_NODE) {
147
+ // If we have a valid node, we insert it
148
+ divElement.appendChild(this.options.node);
149
+ } else {
150
+ if (this.options.escapeMarkup) {
151
+ divElement.innerText = this.options.text;
152
+ } else {
153
+ divElement.innerHTML = this.options.text;
154
+ }
155
+
156
+ if (this.options.avatar !== "") {
157
+ var avatarElement = document.createElement("img");
158
+ avatarElement.src = this.options.avatar;
159
+
160
+ avatarElement.className = "toastify-avatar";
161
+
162
+ if (this.options.position == "left" || this.options.positionLeft === true) {
163
+ // Adding close icon on the left of content
164
+ divElement.appendChild(avatarElement);
165
+ } else {
166
+ // Adding close icon on the right of content
167
+ divElement.insertAdjacentElement("afterbegin", avatarElement);
168
+ }
169
+ }
170
+ }
171
+
172
+ // Adding a close icon to the toast
173
+ if (this.options.close === true) {
174
+ // Create a span for close element
175
+ var closeElement = document.createElement("button");
176
+ closeElement.type = "button";
177
+ closeElement.setAttribute("aria-label", "Close");
178
+ closeElement.className = "toast-close";
179
+ closeElement.innerHTML = "✖";
180
+
181
+ // Triggering the removal of toast from DOM on close click
182
+ closeElement.addEventListener(
183
+ "click",
184
+ function(event) {
185
+ event.stopPropagation();
186
+ this.removeElement(this.toastElement);
187
+ window.clearTimeout(this.toastElement.timeOutValue);
188
+ }.bind(this)
189
+ );
190
+
191
+ //Calculating screen width
192
+ var width = window.innerWidth > 0 ? window.innerWidth : screen.width;
193
+
194
+ // Adding the close icon to the toast element
195
+ // Display on the right if screen width is less than or equal to 360px
196
+ if ((this.options.position == "left" || this.options.positionLeft === true) && width > 360) {
197
+ // Adding close icon on the left of content
198
+ divElement.insertAdjacentElement("afterbegin", closeElement);
199
+ } else {
200
+ // Adding close icon on the right of content
201
+ divElement.appendChild(closeElement);
202
+ }
203
+ }
204
+
205
+ // Clear timeout while toast is focused
206
+ if (this.options.stopOnFocus && this.options.duration > 0) {
207
+ var self = this;
208
+ // stop countdown
209
+ divElement.addEventListener(
210
+ "mouseover",
211
+ function(event) {
212
+ window.clearTimeout(divElement.timeOutValue);
213
+ }
214
+ );
215
+ // add back the timeout
216
+ divElement.addEventListener(
217
+ "mouseleave",
218
+ function() {
219
+ divElement.timeOutValue = window.setTimeout(
220
+ function() {
221
+ // Remove the toast from DOM
222
+ self.removeElement(divElement);
223
+ },
224
+ self.options.duration
225
+ );
226
+ }
227
+ );
228
+ }
229
+
230
+ // Adding an on-click destination path
231
+ if (typeof this.options.destination !== "undefined") {
232
+ divElement.addEventListener(
233
+ "click",
234
+ function(event) {
235
+ event.stopPropagation();
236
+ if (this.options.newWindow === true) {
237
+ window.open(this.options.destination, "_blank");
238
+ } else {
239
+ window.location = this.options.destination;
240
+ }
241
+ }.bind(this)
242
+ );
243
+ }
244
+
245
+ if (typeof this.options.onClick === "function" && typeof this.options.destination === "undefined") {
246
+ divElement.addEventListener(
247
+ "click",
248
+ function(event) {
249
+ event.stopPropagation();
250
+ this.options.onClick();
251
+ }.bind(this)
252
+ );
253
+ }
254
+
255
+ // Adding offset
256
+ if(typeof this.options.offset === "object") {
257
+
258
+ var x = getAxisOffsetAValue("x", this.options);
259
+ var y = getAxisOffsetAValue("y", this.options);
260
+
261
+ var xOffset = this.options.position == "left" ? x : "-" + x;
262
+ var yOffset = this.options.gravity == "toastify-top" ? y : "-" + y;
263
+
264
+ divElement.style.transform = "translate(" + xOffset + "," + yOffset + ")";
265
+
266
+ }
267
+
268
+ // Returning the generated element
269
+ return divElement;
270
+ },
271
+
272
+ // Displaying the toast
273
+ showToast: function() {
274
+ // Creating the DOM object for the toast
275
+ this.toastElement = this.buildToast();
276
+
277
+ // Getting the root element to with the toast needs to be added
278
+ var rootElement;
279
+ if (typeof this.options.selector === "string") {
280
+ rootElement = document.getElementById(this.options.selector);
281
+ } else if (this.options.selector instanceof HTMLElement || (typeof ShadowRoot !== 'undefined' && this.options.selector instanceof ShadowRoot)) {
282
+ rootElement = this.options.selector;
283
+ } else {
284
+ rootElement = document.body;
285
+ }
286
+
287
+ // Validating if root element is present in DOM
288
+ if (!rootElement) {
289
+ throw "Root element is not defined";
290
+ }
291
+
292
+ // Adding the DOM element
293
+ var elementToInsert = Toastify.defaults.oldestFirst ? rootElement.firstChild : rootElement.lastChild;
294
+ rootElement.insertBefore(this.toastElement, elementToInsert);
295
+
296
+ // Repositioning the toasts in case multiple toasts are present
297
+ Toastify.reposition();
298
+
299
+ if (this.options.duration > 0) {
300
+ this.toastElement.timeOutValue = window.setTimeout(
301
+ function() {
302
+ // Remove the toast from DOM
303
+ this.removeElement(this.toastElement);
304
+ }.bind(this),
305
+ this.options.duration
306
+ ); // Binding `this` for function invocation
307
+ }
308
+
309
+ // Supporting function chaining
310
+ return this;
311
+ },
312
+
313
+ hideToast: function() {
314
+ if (this.toastElement.timeOutValue) {
315
+ clearTimeout(this.toastElement.timeOutValue);
316
+ }
317
+ this.removeElement(this.toastElement);
318
+ },
319
+
320
+ // Removing the element from the DOM
321
+ removeElement: function(toastElement) {
322
+ // Hiding the element
323
+ // toastElement.classList.remove("on");
324
+ toastElement.className = toastElement.className.replace(" on", "");
325
+
326
+ // Removing the element from DOM after transition end
327
+ window.setTimeout(
328
+ function() {
329
+ // remove options node if any
330
+ if (this.options.node && this.options.node.parentNode) {
331
+ this.options.node.parentNode.removeChild(this.options.node);
332
+ }
333
+
334
+ // Remove the element from the DOM, only when the parent node was not removed before.
335
+ if (toastElement.parentNode) {
336
+ toastElement.parentNode.removeChild(toastElement);
337
+ }
338
+
339
+ // Calling the callback function
340
+ this.options.callback.call(toastElement);
341
+
342
+ // Repositioning the toasts again
343
+ Toastify.reposition();
344
+ }.bind(this),
345
+ 400
346
+ ); // Binding `this` for function invocation
347
+ },
348
+ };
349
+
350
+ // Positioning the toasts on the DOM
351
+ Toastify.reposition = function() {
352
+
353
+ // Top margins with gravity
354
+ var topLeftOffsetSize = {
355
+ top: 15,
356
+ bottom: 15,
357
+ };
358
+ var topRightOffsetSize = {
359
+ top: 15,
360
+ bottom: 15,
361
+ };
362
+ var offsetSize = {
363
+ top: 15,
364
+ bottom: 15,
365
+ };
366
+
367
+ // Get all toast messages on the DOM
368
+ var allToasts = document.getElementsByClassName("toastify");
369
+
370
+ var classUsed;
371
+
372
+ // Modifying the position of each toast element
373
+ for (var i = 0; i < allToasts.length; i++) {
374
+ // Getting the applied gravity
375
+ if (containsClass(allToasts[i], "toastify-top") === true) {
376
+ classUsed = "toastify-top";
377
+ } else {
378
+ classUsed = "toastify-bottom";
379
+ }
380
+
381
+ var height = allToasts[i].offsetHeight;
382
+ classUsed = classUsed.substr(9, classUsed.length-1);
383
+ // Spacing between toasts
384
+ var offset = 15;
385
+
386
+ var width = window.innerWidth > 0 ? window.innerWidth : screen.width;
387
+
388
+ // Show toast in center if screen with less than or equal to 360px
389
+ if (width <= 360) {
390
+ // Setting the position
391
+ allToasts[i].style[classUsed] = offsetSize[classUsed] + "px";
392
+
393
+ offsetSize[classUsed] += height + offset;
394
+ } else {
395
+ if (containsClass(allToasts[i], "toastify-left") === true) {
396
+ // Setting the position
397
+ allToasts[i].style[classUsed] = topLeftOffsetSize[classUsed] + "px";
398
+
399
+ topLeftOffsetSize[classUsed] += height + offset;
400
+ } else {
401
+ // Setting the position
402
+ allToasts[i].style[classUsed] = topRightOffsetSize[classUsed] + "px";
403
+
404
+ topRightOffsetSize[classUsed] += height + offset;
405
+ }
406
+ }
407
+ }
408
+
409
+ // Supporting function chaining
410
+ return this;
411
+ };
412
+
413
+ // Helper function to get offset.
414
+ function getAxisOffsetAValue(axis, options) {
415
+
416
+ if(options.offset[axis]) {
417
+ if(isNaN(options.offset[axis])) {
418
+ return options.offset[axis];
419
+ }
420
+ else {
421
+ return options.offset[axis] + 'px';
422
+ }
423
+ }
424
+
425
+ return '0px';
426
+
427
+ }
428
+
429
+ function containsClass(elem, yourClass) {
430
+ if (!elem || typeof yourClass !== "string") {
431
+ return false;
432
+ } else if (
433
+ elem.className &&
434
+ elem.className
435
+ .trim()
436
+ .split(/\s+/gi)
437
+ .indexOf(yourClass) > -1
438
+ ) {
439
+ return true;
440
+ } else {
441
+ return false;
442
+ }
443
+ }
444
+
445
+ // Setting up the prototype for the init object
446
+ Toastify.lib.init.prototype = Toastify.lib;
447
+
448
+ // Returning the Toastify function to be assigned to the window object/module
449
+ return Toastify;
450
+ });
451
+ } (toastify));
452
+
453
+ var toastifyExports = toastify.exports;
454
+ var Toastify = /*@__PURE__*/getDefaultExportFromCjs(toastifyExports);
455
+
456
+ export { Toastify as default };
@@ -37,7 +37,7 @@ export { ReChoiceCards, ReSegmented, ReSwitchRow, YcChoiceCards, YcSegmented, Yc
37
37
  export { ReBanner, ReEmptyState, ReKeyValueList, ReTimeline, YcBanner, YcEmptyState, YcKeyValueList, YcTimeline } from './yc-feedback/index.mjs';
38
38
  export { CardFrame, CossTable, ReCossTable, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, YcCardFrame, YcCossTable, YcTable, YcTableBody, YcTableCaption, YcTableCell, YcTableFooter, YcTableHead, YcTableHeader, YcTableRow } from './yc-coss-table/index.mjs';
39
39
  export { AssetTable, BillTable, DeviceTable, OrderTable, PropertyTable, ReAssetTable, ReBillTable, ReDeviceTable, ReOrderTable, RePropertyTable, YcAssetTable, YcBillTable, YcDeviceTable, YcOrderTable, YcPropertyTable } from './yc-property-table/index.mjs';
40
- export { YcDisplayDetailCard, YcDisplayMetricsCard, YcDisplayTableCard } from './yc-display-cards/index.mjs';
40
+ export { YcDisplayDetailCard, YcDisplayFormCard, YcDisplayMetricsCard, YcDisplayTableCard } from './yc-display-cards/index.mjs';
41
41
  export { GRADIENT_PALETTES, getGradientPalette, resolvePaletteStyles } from './constants/gradients.mjs';
42
42
  export { default as ReCard, default as YcCard } from './yc-card/src/index2.vue.mjs';
43
43
  export { default as ReLineTree, default as YcLineTree } from './yc-line-tree/src/index2.vue.mjs';
@@ -1,7 +1,12 @@
1
- import { YcDisplayTableCard, YcDisplayMetricsCard, YcDisplayDetailCard } from './index.mjs';
1
+ import { YcDisplayTableCard, YcDisplayMetricsCard, YcDisplayDetailCard, YcDisplayFormCard } from './index.mjs';
2
2
 
3
3
  const capability = {
4
- install: [YcDisplayTableCard, YcDisplayMetricsCard, YcDisplayDetailCard],
4
+ install: [
5
+ YcDisplayTableCard,
6
+ YcDisplayMetricsCard,
7
+ YcDisplayDetailCard,
8
+ YcDisplayFormCard
9
+ ],
5
10
  gallery: [
6
11
  {
7
12
  id: "yc.common.table",
@@ -68,6 +73,23 @@ const capability = {
68
73
  ],
69
74
  note: "\u5982\u9700\u67E5\u8BE2\u5176\u4ED6\u697C\u5C42\u623F\u53F7\uFF0C\u53EF\u7EE7\u7EED\u8865\u5145\u697C\u5C42\u4FE1\u606F\u3002"
70
75
  }
76
+ },
77
+ {
78
+ id: "yc.common.form",
79
+ title: "\u4EA4\u4E92\u8868\u5355\u5361",
80
+ categories: ["\u5361\u7247\u4E0E\u5C55\u793A"],
81
+ component: YcDisplayFormCard,
82
+ props: {
83
+ title: "\u521B\u5EFA\u62A5\u4FEE\u5DE5\u5355",
84
+ subtitle: "\u8BF7\u6838\u5BF9\u9879\u76EE\u4FE1\u606F\u5E76\u4E0A\u4F20\u73B0\u573A\u7167\u7247",
85
+ mode: "reply",
86
+ fields: [
87
+ { name: "projectName", label: "\u6240\u5C5E\u9879\u76EE", required: true },
88
+ { name: "title", label: "\u5DE5\u5355\u6807\u9898", required: true },
89
+ { name: "attachments", label: "\u73B0\u573A\u7167\u7247", widget: "image", required: true }
90
+ ],
91
+ values: { projectName: "\u5B81\u5B89\u7B2C\u4E00\u82B1\u56ED", title: "1\u680B\u7535\u68AF\u5F02\u54CD" }
92
+ }
71
93
  }
72
94
  ]
73
95
  };
@@ -2,9 +2,11 @@ import { withInstall } from '../../utils/src/component.mjs';
2
2
  import TableCard from './src/table-card.vue.mjs';
3
3
  import MetricsCard from './src/metrics-card.vue.mjs';
4
4
  import DetailCard from './src/detail-card.vue.mjs';
5
+ import FormCard from './src/form-card.vue.mjs';
5
6
 
6
7
  const YcDisplayTableCard = withInstall(TableCard);
7
8
  const YcDisplayMetricsCard = withInstall(MetricsCard);
8
9
  const YcDisplayDetailCard = withInstall(DetailCard);
10
+ const YcDisplayFormCard = withInstall(FormCard);
9
11
 
10
- export { YcDisplayDetailCard, YcDisplayMetricsCard, YcDisplayTableCard };
12
+ export { YcDisplayDetailCard, YcDisplayFormCard, YcDisplayMetricsCard, YcDisplayTableCard };
@@ -1,6 +1,6 @@
1
1
  import _sfc_main from './detail-card2.vue.mjs';
2
2
  import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var DetailCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ceb0fb47"]]);
4
+ var DetailCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d75e2d96"]]);
5
5
 
6
6
  export { DetailCard as default };
@@ -0,0 +1,6 @@
1
+ import _sfc_main from './form-card2.vue.mjs';
2
+ import _export_sfc from '../../../../_virtual/_plugin-vue_export-helper.mjs';
3
+
4
+ var FormCard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c0193546"]]);
5
+
6
+ export { FormCard as default };