yc-agent-ui 1.0.0 → 1.1.0

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 (261) hide show
  1. package/README.md +22 -0
  2. package/es/components/data-table/src/data-table-pagination.vue.d.ts +3 -3
  3. package/es/components/data-table/src/data-table-toolbar.vue.d.ts +1 -1
  4. package/es/components/data-table/src/data-table.vue.d.ts +3 -3
  5. package/es/components/dialog-form/index.d.ts +4 -4
  6. package/es/components/dialog-form/src/index.vue.d.ts +4 -4
  7. package/es/components/display-item/index.d.ts +12 -12
  8. package/es/components/display-item/src/index.vue.d.ts +12 -12
  9. package/es/components/drawer-form/index.d.ts +10 -10
  10. package/es/components/drawer-form/src/index.vue.d.ts +6 -6
  11. package/es/components/form/index.d.ts +36 -36
  12. package/es/components/form/src/form-content.vue.d.ts +15 -15
  13. package/es/components/form/src/index.vue.d.ts +18 -18
  14. package/es/components/form-item/index.d.ts +37 -37
  15. package/es/components/form-item/src/index.vue.d.ts +16 -16
  16. package/es/components/index.d.ts +4 -0
  17. package/es/components/page/index.d.ts +897 -897
  18. package/es/components/page/src/index.vue.d.ts +302 -302
  19. package/es/components/search/index.d.ts +242 -242
  20. package/es/components/search/src/index.vue.d.ts +84 -84
  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 +24 -24
  24. package/es/components/virtual-table/index.d.ts +10 -10
  25. package/es/components/virtual-table/src/index.vue.d.ts +3 -3
  26. package/es/components/yc-controls/capability.d.ts +4 -0
  27. package/es/components/yc-controls/index.d.ts +17 -0
  28. package/es/components/yc-controls/src/choice-cards.vue.d.ts +16 -0
  29. package/es/components/yc-controls/src/segmented.vue.d.ts +16 -0
  30. package/es/components/yc-controls/src/switch-row.vue.d.ts +13 -0
  31. package/es/components/yc-controls/src/type.d.ts +39 -0
  32. package/es/components/yc-coss-table/src/coss-table.vue.d.ts +2 -2
  33. package/es/components/yc-coss-table/src/table-head.vue.d.ts +1 -1
  34. package/es/components/yc-date-picker/src/date-picker.vue.d.ts +1 -1
  35. package/es/components/yc-feedback/capability.d.ts +4 -0
  36. package/es/components/yc-feedback/index.d.ts +21 -0
  37. package/es/components/yc-feedback/src/banner.vue.d.ts +22 -0
  38. package/es/components/yc-feedback/src/empty-state.vue.d.ts +20 -0
  39. package/es/components/yc-feedback/src/key-value-list.vue.d.ts +22 -0
  40. package/es/components/yc-feedback/src/timeline.vue.d.ts +7 -0
  41. package/es/components/yc-feedback/src/type.d.ts +46 -0
  42. package/es/components/yc-input/capability.d.ts +4 -0
  43. package/es/components/yc-input/index.d.ts +21 -0
  44. package/es/components/yc-input/src/input.vue.d.ts +50 -0
  45. package/es/components/yc-input/src/money-input.vue.d.ts +26 -0
  46. package/es/components/yc-input/src/stepper-input.vue.d.ts +18 -0
  47. package/es/components/yc-input/src/textarea.vue.d.ts +35 -0
  48. package/es/components/yc-input/src/type.d.ts +82 -0
  49. package/es/components/yc-plus-page/src/header-filter-cell.vue.d.ts +8 -8
  50. package/es/components/yc-plus-page/src/index.vue.d.ts +917 -917
  51. package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
  52. package/es/components/yc-property-table/capability.d.ts +4 -0
  53. package/es/components/yc-property-table/index.d.ts +30 -0
  54. package/es/components/yc-property-table/src/asset-table.vue.d.ts +17 -0
  55. package/es/components/yc-property-table/src/bill-table.vue.d.ts +18 -0
  56. package/es/components/yc-property-table/src/device-table.vue.d.ts +17 -0
  57. package/es/components/yc-property-table/src/order-table.vue.d.ts +18 -0
  58. package/es/components/yc-property-table/src/property-table.vue.d.ts +91 -0
  59. package/es/components/yc-property-table/src/type.d.ts +214 -0
  60. package/es/components/yc-questionnaire/src/index.vue.d.ts +1 -1
  61. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  62. package/es/hooks/usePlusFormReset.d.ts +66 -66
  63. package/es/index.css +9 -9
  64. package/es/index.mjs +4 -0
  65. package/es/packages/components/index.mjs +4 -0
  66. package/es/packages/components/table/capability.mjs +10 -29
  67. package/es/packages/components/yc-card/capability.mjs +53 -13
  68. package/es/packages/components/yc-controls/capability.mjs +100 -0
  69. package/es/packages/components/yc-controls/index.mjs +13 -0
  70. package/es/packages/components/yc-controls/src/choice-cards.vue.mjs +5 -0
  71. package/es/packages/components/yc-controls/src/choice-cards2.vue.mjs +157 -0
  72. package/es/packages/components/yc-controls/src/segmented.vue.mjs +5 -0
  73. package/es/packages/components/yc-controls/src/segmented2.vue.mjs +78 -0
  74. package/es/packages/components/yc-controls/src/switch-row.vue.mjs +5 -0
  75. package/es/packages/components/yc-controls/src/switch-row2.vue.mjs +95 -0
  76. package/es/packages/components/yc-controls/src/type.mjs +1 -0
  77. package/es/packages/components/yc-feedback/capability.mjs +109 -0
  78. package/es/packages/components/yc-feedback/index.mjs +16 -0
  79. package/es/packages/components/yc-feedback/src/banner.vue.mjs +5 -0
  80. package/es/packages/components/yc-feedback/src/banner2.vue.mjs +230 -0
  81. package/es/packages/components/yc-feedback/src/empty-state.vue.mjs +5 -0
  82. package/es/packages/components/yc-feedback/src/empty-state2.vue.mjs +97 -0
  83. package/es/packages/components/yc-feedback/src/key-value-list.vue.mjs +5 -0
  84. package/es/packages/components/yc-feedback/src/key-value-list2.vue.mjs +194 -0
  85. package/es/packages/components/yc-feedback/src/timeline.vue.mjs +5 -0
  86. package/es/packages/components/yc-feedback/src/timeline2.vue.mjs +134 -0
  87. package/es/packages/components/yc-feedback/src/type.mjs +1 -0
  88. package/es/packages/components/yc-input/capability.mjs +112 -0
  89. package/es/packages/components/yc-input/index.mjs +16 -0
  90. package/es/packages/components/yc-input/src/input.vue.mjs +5 -0
  91. package/es/packages/components/yc-input/src/input2.vue.mjs +427 -0
  92. package/es/packages/components/yc-input/src/money-input.vue.mjs +5 -0
  93. package/es/packages/components/yc-input/src/money-input2.vue.mjs +242 -0
  94. package/es/packages/components/yc-input/src/stepper-input.vue.mjs +5 -0
  95. package/es/packages/components/yc-input/src/stepper-input2.vue.mjs +211 -0
  96. package/es/packages/components/yc-input/src/textarea.vue.mjs +5 -0
  97. package/es/packages/components/yc-input/src/textarea2.vue.mjs +158 -0
  98. package/es/packages/components/yc-input/src/type.mjs +1 -0
  99. package/es/packages/components/yc-property-table/capability.mjs +350 -0
  100. package/es/packages/components/yc-property-table/index.mjs +24 -0
  101. package/es/packages/components/yc-property-table/src/asset-table.vue.mjs +5 -0
  102. package/es/packages/components/yc-property-table/src/asset-table2.vue.mjs +405 -0
  103. package/es/packages/components/yc-property-table/src/bill-table.vue.mjs +5 -0
  104. package/es/packages/components/yc-property-table/src/bill-table2.vue.mjs +654 -0
  105. package/es/packages/components/yc-property-table/src/device-table.vue.mjs +5 -0
  106. package/es/packages/components/yc-property-table/src/device-table2.vue.mjs +324 -0
  107. package/es/packages/components/yc-property-table/src/order-table.vue.mjs +5 -0
  108. package/es/packages/components/yc-property-table/src/order-table2.vue.mjs +363 -0
  109. package/es/packages/components/yc-property-table/src/property-table.vue.mjs +5 -0
  110. package/es/packages/components/yc-property-table/src/property-table2.vue.mjs +1228 -0
  111. package/es/packages/components/yc-property-table/src/type.mjs +1 -0
  112. package/es/version.d.ts +1 -1
  113. package/es/version.mjs +1 -1
  114. package/index.css +1 -1
  115. package/index.js +6385 -1362
  116. package/index.min.js +24 -24
  117. package/index.min.mjs +26 -26
  118. package/index.mjs +6341 -1355
  119. package/lib/components/data-table/src/data-table-pagination.vue.d.ts +3 -3
  120. package/lib/components/data-table/src/data-table-toolbar.vue.d.ts +1 -1
  121. package/lib/components/data-table/src/data-table.vue.d.ts +3 -3
  122. package/lib/components/dialog-form/index.d.ts +4 -4
  123. package/lib/components/dialog-form/src/index.vue.d.ts +4 -4
  124. package/lib/components/display-item/index.d.ts +12 -12
  125. package/lib/components/display-item/src/index.vue.d.ts +12 -12
  126. package/lib/components/drawer-form/index.d.ts +10 -10
  127. package/lib/components/drawer-form/src/index.vue.d.ts +6 -6
  128. package/lib/components/form/index.d.ts +36 -36
  129. package/lib/components/form/src/form-content.vue.d.ts +15 -15
  130. package/lib/components/form/src/index.vue.d.ts +18 -18
  131. package/lib/components/form-item/index.d.ts +37 -37
  132. package/lib/components/form-item/src/index.vue.d.ts +16 -16
  133. package/lib/components/index.d.ts +4 -0
  134. package/lib/components/page/index.d.ts +897 -897
  135. package/lib/components/page/src/index.vue.d.ts +302 -302
  136. package/lib/components/search/index.d.ts +242 -242
  137. package/lib/components/search/src/index.vue.d.ts +84 -84
  138. package/lib/components/table/index.d.ts +18 -18
  139. package/lib/components/table/src/index.vue.d.ts +2 -2
  140. package/lib/components/table/src/table-column.vue.d.ts +24 -24
  141. package/lib/components/virtual-table/index.d.ts +10 -10
  142. package/lib/components/virtual-table/src/index.vue.d.ts +3 -3
  143. package/lib/components/yc-controls/capability.d.ts +4 -0
  144. package/lib/components/yc-controls/index.d.ts +17 -0
  145. package/lib/components/yc-controls/src/choice-cards.vue.d.ts +16 -0
  146. package/lib/components/yc-controls/src/segmented.vue.d.ts +16 -0
  147. package/lib/components/yc-controls/src/switch-row.vue.d.ts +13 -0
  148. package/lib/components/yc-controls/src/type.d.ts +39 -0
  149. package/lib/components/yc-coss-table/src/coss-table.vue.d.ts +2 -2
  150. package/lib/components/yc-coss-table/src/table-head.vue.d.ts +1 -1
  151. package/lib/components/yc-date-picker/src/date-picker.vue.d.ts +1 -1
  152. package/lib/components/yc-feedback/capability.d.ts +4 -0
  153. package/lib/components/yc-feedback/index.d.ts +21 -0
  154. package/lib/components/yc-feedback/src/banner.vue.d.ts +22 -0
  155. package/lib/components/yc-feedback/src/empty-state.vue.d.ts +20 -0
  156. package/lib/components/yc-feedback/src/key-value-list.vue.d.ts +22 -0
  157. package/lib/components/yc-feedback/src/timeline.vue.d.ts +7 -0
  158. package/lib/components/yc-feedback/src/type.d.ts +46 -0
  159. package/lib/components/yc-input/capability.d.ts +4 -0
  160. package/lib/components/yc-input/index.d.ts +21 -0
  161. package/lib/components/yc-input/src/input.vue.d.ts +50 -0
  162. package/lib/components/yc-input/src/money-input.vue.d.ts +26 -0
  163. package/lib/components/yc-input/src/stepper-input.vue.d.ts +18 -0
  164. package/lib/components/yc-input/src/textarea.vue.d.ts +35 -0
  165. package/lib/components/yc-input/src/type.d.ts +82 -0
  166. package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +8 -8
  167. package/lib/components/yc-plus-page/src/index.vue.d.ts +917 -917
  168. package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
  169. package/lib/components/yc-property-table/capability.d.ts +4 -0
  170. package/lib/components/yc-property-table/index.d.ts +30 -0
  171. package/lib/components/yc-property-table/src/asset-table.vue.d.ts +17 -0
  172. package/lib/components/yc-property-table/src/bill-table.vue.d.ts +18 -0
  173. package/lib/components/yc-property-table/src/device-table.vue.d.ts +17 -0
  174. package/lib/components/yc-property-table/src/order-table.vue.d.ts +18 -0
  175. package/lib/components/yc-property-table/src/property-table.vue.d.ts +91 -0
  176. package/lib/components/yc-property-table/src/type.d.ts +214 -0
  177. package/lib/components/yc-questionnaire/src/index.vue.d.ts +1 -1
  178. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  179. package/lib/hooks/usePlusFormReset.d.ts +66 -66
  180. package/lib/index.css +11 -11
  181. package/lib/index.js +176 -135
  182. package/lib/packages/components/index.js +172 -131
  183. package/lib/packages/components/table/capability.js +10 -29
  184. package/lib/packages/components/yc-card/capability.js +53 -13
  185. package/lib/packages/components/yc-controls/capability.js +104 -0
  186. package/lib/packages/components/yc-controls/index.js +23 -0
  187. package/lib/packages/components/yc-controls/src/choice-cards.vue.js +9 -0
  188. package/lib/packages/components/yc-controls/src/choice-cards2.vue.js +161 -0
  189. package/lib/packages/components/yc-controls/src/segmented.vue.js +9 -0
  190. package/lib/packages/components/yc-controls/src/segmented2.vue.js +82 -0
  191. package/lib/packages/components/yc-controls/src/switch-row.vue.js +9 -0
  192. package/lib/packages/components/yc-controls/src/switch-row2.vue.js +99 -0
  193. package/lib/packages/components/yc-controls/src/type.js +2 -0
  194. package/lib/packages/components/yc-feedback/capability.js +113 -0
  195. package/lib/packages/components/yc-feedback/index.js +28 -0
  196. package/lib/packages/components/yc-feedback/src/banner.vue.js +9 -0
  197. package/lib/packages/components/yc-feedback/src/banner2.vue.js +234 -0
  198. package/lib/packages/components/yc-feedback/src/empty-state.vue.js +9 -0
  199. package/lib/packages/components/yc-feedback/src/empty-state2.vue.js +101 -0
  200. package/lib/packages/components/yc-feedback/src/key-value-list.vue.js +9 -0
  201. package/lib/packages/components/yc-feedback/src/key-value-list2.vue.js +198 -0
  202. package/lib/packages/components/yc-feedback/src/timeline.vue.js +9 -0
  203. package/lib/packages/components/yc-feedback/src/timeline2.vue.js +138 -0
  204. package/lib/packages/components/yc-feedback/src/type.js +2 -0
  205. package/lib/packages/components/yc-input/capability.js +116 -0
  206. package/lib/packages/components/yc-input/index.js +28 -0
  207. package/lib/packages/components/yc-input/src/input.vue.js +9 -0
  208. package/lib/packages/components/yc-input/src/input2.vue.js +431 -0
  209. package/lib/packages/components/yc-input/src/money-input.vue.js +9 -0
  210. package/lib/packages/components/yc-input/src/money-input2.vue.js +246 -0
  211. package/lib/packages/components/yc-input/src/stepper-input.vue.js +9 -0
  212. package/lib/packages/components/yc-input/src/stepper-input2.vue.js +215 -0
  213. package/lib/packages/components/yc-input/src/textarea.vue.js +9 -0
  214. package/lib/packages/components/yc-input/src/textarea2.vue.js +162 -0
  215. package/lib/packages/components/yc-input/src/type.js +2 -0
  216. package/lib/packages/components/yc-property-table/capability.js +354 -0
  217. package/lib/packages/components/yc-property-table/index.js +43 -0
  218. package/lib/packages/components/yc-property-table/src/asset-table.vue.js +9 -0
  219. package/lib/packages/components/yc-property-table/src/asset-table2.vue.js +409 -0
  220. package/lib/packages/components/yc-property-table/src/bill-table.vue.js +9 -0
  221. package/lib/packages/components/yc-property-table/src/bill-table2.vue.js +658 -0
  222. package/lib/packages/components/yc-property-table/src/device-table.vue.js +9 -0
  223. package/lib/packages/components/yc-property-table/src/device-table2.vue.js +328 -0
  224. package/lib/packages/components/yc-property-table/src/order-table.vue.js +9 -0
  225. package/lib/packages/components/yc-property-table/src/order-table2.vue.js +367 -0
  226. package/lib/packages/components/yc-property-table/src/property-table.vue.js +9 -0
  227. package/lib/packages/components/yc-property-table/src/property-table2.vue.js +1232 -0
  228. package/lib/packages/components/yc-property-table/src/type.js +2 -0
  229. package/lib/version.d.ts +1 -1
  230. package/lib/version.js +1 -1
  231. package/locale/en.js +1 -1
  232. package/locale/en.min.js +1 -1
  233. package/locale/en.min.mjs +1 -1
  234. package/locale/en.mjs +1 -1
  235. package/locale/ja.js +1 -1
  236. package/locale/ja.min.js +1 -1
  237. package/locale/ja.min.mjs +1 -1
  238. package/locale/ja.mjs +1 -1
  239. package/locale/ko.js +1 -1
  240. package/locale/ko.min.js +1 -1
  241. package/locale/ko.min.mjs +1 -1
  242. package/locale/ko.mjs +1 -1
  243. package/locale/zh-cn.js +1 -1
  244. package/locale/zh-cn.min.js +1 -1
  245. package/locale/zh-cn.min.mjs +1 -1
  246. package/locale/zh-cn.mjs +1 -1
  247. package/locale/zh-tw.js +1 -1
  248. package/locale/zh-tw.min.js +1 -1
  249. package/locale/zh-tw.min.mjs +1 -1
  250. package/locale/zh-tw.mjs +1 -1
  251. package/package.json +1 -1
  252. package/theme-chalk/index.css +1 -1
  253. package/theme-chalk/plus-yc-controls.css +1 -0
  254. package/theme-chalk/plus-yc-feedback.css +1 -0
  255. package/theme-chalk/plus-yc-input.css +1 -0
  256. package/theme-chalk/plus-yc-property-table.css +1 -0
  257. package/theme-chalk/src/index.scss +4 -0
  258. package/theme-chalk/src/yc-controls.scss +316 -0
  259. package/theme-chalk/src/yc-feedback.scss +452 -0
  260. package/theme-chalk/src/yc-input.scss +473 -0
  261. package/theme-chalk/src/yc-property-table.scss +1700 -0
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,116 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var index = require('./index.js');
7
+
8
+ const YcInputGalleryDemo = vue.defineComponent({
9
+ name: "YcInputGalleryDemo",
10
+ setup() {
11
+ const keyword = vue.ref("");
12
+ const room = vue.ref("1202");
13
+ return () => vue.h("div", { class: "yc-input-demo-stack" }, [
14
+ vue.h(index.YcInput, {
15
+ modelValue: keyword.value,
16
+ "onUpdate:modelValue": (val) => {
17
+ keyword.value = val;
18
+ },
19
+ type: "search",
20
+ placeholder: "\u641C\u7D22\u623F\u53F7\u3001\u59D3\u540D\u6216\u624B\u673A\u53F7",
21
+ shortcut: "\u2318K",
22
+ clearable: true
23
+ }),
24
+ vue.h(index.YcInput, {
25
+ modelValue: room.value,
26
+ "onUpdate:modelValue": (val) => {
27
+ room.value = val;
28
+ },
29
+ label: "\u697C\u680B\u623F\u53F7",
30
+ addonBefore: "3\u680B 2\u5355\u5143",
31
+ suffixText: "\u5BA4",
32
+ monospace: true
33
+ })
34
+ ]);
35
+ }
36
+ });
37
+ const YcMoneyInputGalleryDemo = vue.defineComponent({
38
+ name: "YcMoneyInputGalleryDemo",
39
+ setup() {
40
+ const amount = vue.ref(3480);
41
+ return () => vue.h(index.YcMoneyInput, {
42
+ modelValue: amount.value,
43
+ "onUpdate:modelValue": (val) => {
44
+ amount.value = val;
45
+ },
46
+ label: "\u5E94\u6536\u91D1\u989D",
47
+ hint: "\u5931\u7126\u81EA\u52A8\u6309\u5343\u5206\u4F4D\u5BF9\u9F50\u4E24\u4F4D\u5C0F\u6570",
48
+ clearable: true
49
+ });
50
+ }
51
+ });
52
+ const YcStepperInputGalleryDemo = vue.defineComponent({
53
+ name: "YcStepperInputGalleryDemo",
54
+ setup() {
55
+ const area = vue.ref(128.5);
56
+ return () => vue.h(index.YcStepperInput, {
57
+ modelValue: area.value,
58
+ "onUpdate:modelValue": (val) => {
59
+ area.value = val;
60
+ },
61
+ label: "\u8BA1\u8D39\u5EFA\u7B51\u9762\u79EF",
62
+ step: 0.5,
63
+ precision: 1,
64
+ min: 0,
65
+ unit: "\u33A1"
66
+ });
67
+ }
68
+ });
69
+ const YcTextareaGalleryDemo = vue.defineComponent({
70
+ name: "YcTextareaGalleryDemo",
71
+ setup() {
72
+ const note = vue.ref("\u5730\u4E0B\u8F66\u5E93 B108 \u8F66\u4F4D\u4E0A\u65B9\u7ED9\u6C34\u652F\u7BA1\u6E17\u6C34\uFF0C\u5DF2\u5173\u95ED\u5206\u533A\u9600\u95E8\uFF0C\u5F85\u5DE5\u7A0B\u7EC4\u66F4\u6362\u5BC6\u5C01\u5708\u3002");
73
+ return () => vue.h(index.YcTextarea, {
74
+ modelValue: note.value,
75
+ "onUpdate:modelValue": (val) => {
76
+ note.value = val;
77
+ },
78
+ label: "\u73B0\u573A\u6838\u67E5\u8BF4\u660E",
79
+ placeholder: "\u586B\u5199\u73B0\u573A\u60C5\u51B5\u3001\u5904\u7F6E\u63AA\u65BD\u4E0E\u540E\u7EED\u8DDF\u8FDB\u4E8B\u9879",
80
+ rows: 3,
81
+ maxlength: 200,
82
+ showCount: true
83
+ });
84
+ }
85
+ });
86
+ const capability = {
87
+ install: [index.YcInput, index.YcMoneyInput, index.YcTextarea, index.YcStepperInput],
88
+ gallery: [
89
+ {
90
+ id: "yc-input",
91
+ title: "YcInput \u6587\u672C\u4E0E\u7EC4\u5408\u8F93\u5165",
92
+ categories: ["\u8868\u5355\u5F55\u5165"],
93
+ component: YcInputGalleryDemo
94
+ },
95
+ {
96
+ id: "yc-money-input",
97
+ title: "YcMoneyInput \u91D1\u989D\u8F93\u5165",
98
+ categories: ["\u8868\u5355\u5F55\u5165"],
99
+ component: YcMoneyInputGalleryDemo
100
+ },
101
+ {
102
+ id: "yc-stepper-input",
103
+ title: "YcStepperInput \u6B65\u8FDB\u6570\u503C\u8F93\u5165",
104
+ categories: ["\u8868\u5355\u5F55\u5165"],
105
+ component: YcStepperInputGalleryDemo
106
+ },
107
+ {
108
+ id: "yc-textarea",
109
+ title: "YcTextarea \u591A\u884C\u5907\u6CE8\u8F93\u5165",
110
+ categories: ["\u8868\u5355\u5F55\u5165"],
111
+ component: YcTextareaGalleryDemo
112
+ }
113
+ ]
114
+ };
115
+
116
+ exports.default = capability;
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var component = require('../../utils/src/component.js');
6
+ var input_vue_vue_type_script_setup_true_lang = require('./src/input2.vue.js');
7
+ var moneyInput_vue_vue_type_script_setup_true_lang = require('./src/money-input2.vue.js');
8
+ var textarea_vue_vue_type_script_setup_true_lang = require('./src/textarea2.vue.js');
9
+ var stepperInput_vue_vue_type_script_setup_true_lang = require('./src/stepper-input2.vue.js');
10
+
11
+ const YcInput = component.withInstall(input_vue_vue_type_script_setup_true_lang.default);
12
+ const ReInput = YcInput;
13
+ const YcMoneyInput = component.withInstall(moneyInput_vue_vue_type_script_setup_true_lang.default);
14
+ const ReMoneyInput = YcMoneyInput;
15
+ const YcTextarea = component.withInstall(textarea_vue_vue_type_script_setup_true_lang.default);
16
+ const ReTextarea = YcTextarea;
17
+ const YcStepperInput = component.withInstall(stepperInput_vue_vue_type_script_setup_true_lang.default);
18
+ const ReStepperInput = YcStepperInput;
19
+
20
+ exports.ReInput = ReInput;
21
+ exports.ReMoneyInput = ReMoneyInput;
22
+ exports.ReStepperInput = ReStepperInput;
23
+ exports.ReTextarea = ReTextarea;
24
+ exports.YcInput = YcInput;
25
+ exports.YcMoneyInput = YcMoneyInput;
26
+ exports.YcStepperInput = YcStepperInput;
27
+ exports.YcTextarea = YcTextarea;
28
+ exports.default = YcInput;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var input_vue_vue_type_script_setup_true_lang = require('./input2.vue.js');
6
+
7
+
8
+
9
+ exports.default = input_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,431 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+
7
+ const _hoisted_1 = {
8
+ key: 0,
9
+ class: "yc-field__top"
10
+ };
11
+ const _hoisted_2 = {
12
+ key: 0,
13
+ class: "yc-field__req",
14
+ "aria-hidden": "true"
15
+ };
16
+ const _hoisted_3 = {
17
+ key: 1,
18
+ class: "yc-field__extra"
19
+ };
20
+ const _hoisted_4 = {
21
+ key: 0,
22
+ class: "yc-input-addon is-before"
23
+ };
24
+ const _hoisted_5 = {
25
+ key: 0,
26
+ class: "yc-input__prefix"
27
+ };
28
+ const _hoisted_6 = {
29
+ key: 0,
30
+ viewBox: "0 0 24 24",
31
+ width: "14",
32
+ height: "14",
33
+ fill: "none",
34
+ stroke: "currentColor",
35
+ "stroke-width": "1.8",
36
+ "stroke-linecap": "round",
37
+ "stroke-linejoin": "round",
38
+ "aria-hidden": "true"
39
+ };
40
+ const _hoisted_7 = {
41
+ key: 1,
42
+ class: "yc-input__affix-text"
43
+ };
44
+ const _hoisted_8 = ["type", "value", "placeholder", "disabled", "readonly", "maxlength", "name", "autocomplete"];
45
+ const _hoisted_9 = {
46
+ key: 1,
47
+ class: "yc-input__suffix"
48
+ };
49
+ const _hoisted_10 = ["aria-label"];
50
+ const _hoisted_11 = {
51
+ key: 0,
52
+ viewBox: "0 0 24 24",
53
+ width: "14",
54
+ height: "14",
55
+ fill: "none",
56
+ stroke: "currentColor",
57
+ "stroke-width": "1.8",
58
+ "stroke-linecap": "round",
59
+ "stroke-linejoin": "round"
60
+ };
61
+ const _hoisted_12 = {
62
+ key: 1,
63
+ viewBox: "0 0 24 24",
64
+ width: "14",
65
+ height: "14",
66
+ fill: "none",
67
+ stroke: "currentColor",
68
+ "stroke-width": "1.8",
69
+ "stroke-linecap": "round",
70
+ "stroke-linejoin": "round"
71
+ };
72
+ const _hoisted_13 = {
73
+ key: 0,
74
+ class: "yc-input__affix-text"
75
+ };
76
+ const _hoisted_14 = {
77
+ key: 2,
78
+ class: "yc-input__count"
79
+ };
80
+ const _hoisted_15 = {
81
+ key: 3,
82
+ class: "yc-input__kbd"
83
+ };
84
+ const _hoisted_16 = {
85
+ key: 1,
86
+ class: "yc-input-addon is-after"
87
+ };
88
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
89
+ ...{
90
+ name: "YcInput"
91
+ },
92
+ __name: "input",
93
+ props: {
94
+ modelValue: { default: "" },
95
+ label: {},
96
+ hint: {},
97
+ error: {},
98
+ placeholder: {},
99
+ type: { default: "text" },
100
+ size: { default: "default" },
101
+ variant: { default: "outline" },
102
+ status: { default: "default" },
103
+ prefixText: {},
104
+ suffixText: {},
105
+ addonBefore: {},
106
+ addonAfter: {},
107
+ shortcut: {},
108
+ clearable: { type: Boolean, default: false },
109
+ showPassword: { type: Boolean, default: true },
110
+ disabled: { type: Boolean, default: false },
111
+ readonly: { type: Boolean, default: false },
112
+ required: { type: Boolean, default: false },
113
+ maxlength: {},
114
+ showCount: { type: Boolean, default: false },
115
+ monospace: { type: Boolean, default: false },
116
+ name: {},
117
+ autocomplete: {}
118
+ },
119
+ emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "enter"],
120
+ setup(__props, { expose: __expose, emit: __emit }) {
121
+ let uid = 0;
122
+ const inputId = `yc-input-${++uid}`;
123
+ const props = __props;
124
+ const emit = __emit;
125
+ const slots = vue.useSlots();
126
+ const inputRef = vue.ref(null);
127
+ const focused = vue.ref(false);
128
+ const passwordVisible = vue.ref(false);
129
+ const stringValue = vue.computed(
130
+ () => props.modelValue === void 0 || props.modelValue === null ? "" : String(props.modelValue)
131
+ );
132
+ const resolvedStatus = vue.computed(() => props.error ? "error" : props.status);
133
+ const nativeType = vue.computed(() => {
134
+ if (props.type === "password") {
135
+ return passwordVisible.value ? "text" : "password";
136
+ }
137
+ if (props.type === "search") return "text";
138
+ return props.type;
139
+ });
140
+ const showClear = vue.computed(
141
+ () => props.clearable && !props.disabled && !props.readonly && stringValue.value.length > 0
142
+ );
143
+ const hasSuffix = vue.computed(
144
+ () => showClear.value || props.type === "password" && props.showPassword && !props.disabled || !!props.suffixText || !!slots.suffix || !!(props.showCount && props.maxlength) || !!(props.shortcut && !stringValue.value)
145
+ );
146
+ const focusInput = () => {
147
+ var _a;
148
+ if (!props.disabled) {
149
+ (_a = inputRef.value) == null ? void 0 : _a.focus();
150
+ }
151
+ };
152
+ const onInput = (event) => {
153
+ const next = event.target.value;
154
+ emit("update:modelValue", next);
155
+ emit("input", next);
156
+ };
157
+ const onFocus = (event) => {
158
+ focused.value = true;
159
+ emit("focus", event);
160
+ };
161
+ const onBlur = (event) => {
162
+ focused.value = false;
163
+ emit("blur", event);
164
+ emit("change", stringValue.value);
165
+ };
166
+ const clearValue = () => {
167
+ var _a;
168
+ emit("update:modelValue", "");
169
+ emit("input", "");
170
+ emit("change", "");
171
+ emit("clear");
172
+ (_a = inputRef.value) == null ? void 0 : _a.focus();
173
+ };
174
+ __expose({
175
+ focus: focusInput,
176
+ blur: () => {
177
+ var _a;
178
+ return (_a = inputRef.value) == null ? void 0 : _a.blur();
179
+ },
180
+ input: inputRef
181
+ });
182
+ return (_ctx, _cache) => {
183
+ return vue.openBlock(), vue.createElementBlock(
184
+ "div",
185
+ {
186
+ class: vue.normalizeClass(["yc-field", [
187
+ `is-size-${__props.size}`,
188
+ `is-variant-${__props.variant}`,
189
+ `is-status-${resolvedStatus.value}`,
190
+ { "is-disabled": __props.disabled, "is-focused": focused.value }
191
+ ]])
192
+ },
193
+ [
194
+ __props.label || _ctx.$slots["label-extra"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
195
+ __props.label ? (vue.openBlock(), vue.createElementBlock("label", {
196
+ key: 0,
197
+ class: "yc-field__label",
198
+ for: inputId
199
+ }, [
200
+ vue.createElementVNode(
201
+ "span",
202
+ null,
203
+ vue.toDisplayString(__props.label),
204
+ 1
205
+ /* TEXT */
206
+ ),
207
+ __props.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2, "*")) : vue.createCommentVNode("v-if", true)
208
+ ])) : vue.createCommentVNode("v-if", true),
209
+ _ctx.$slots["label-extra"] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
210
+ vue.renderSlot(_ctx.$slots, "label-extra")
211
+ ])) : vue.createCommentVNode("v-if", true)
212
+ ])) : vue.createCommentVNode("v-if", true),
213
+ vue.createElementVNode(
214
+ "div",
215
+ {
216
+ class: vue.normalizeClass(["yc-input-group", { "has-addon-before": !!(__props.addonBefore || _ctx.$slots["addon-before"]), "has-addon-after": !!(__props.addonAfter || _ctx.$slots["addon-after"]) }])
217
+ },
218
+ [
219
+ __props.addonBefore || _ctx.$slots["addon-before"] ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4, [
220
+ vue.renderSlot(_ctx.$slots, "addon-before", {}, () => [
221
+ vue.createTextVNode(
222
+ vue.toDisplayString(__props.addonBefore),
223
+ 1
224
+ /* TEXT */
225
+ )
226
+ ])
227
+ ])) : vue.createCommentVNode("v-if", true),
228
+ vue.createElementVNode("div", {
229
+ class: "yc-input-control",
230
+ onClick: focusInput
231
+ }, [
232
+ __props.type === "search" || _ctx.$slots.prefix || __props.prefixText ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5, [
233
+ vue.renderSlot(_ctx.$slots, "prefix", {}, () => [
234
+ __props.type === "search" && !__props.prefixText ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_6, [..._cache[4] || (_cache[4] = [
235
+ vue.createElementVNode(
236
+ "circle",
237
+ {
238
+ cx: "11",
239
+ cy: "11",
240
+ r: "7.5"
241
+ },
242
+ null,
243
+ -1
244
+ /* CACHED */
245
+ ),
246
+ vue.createElementVNode(
247
+ "path",
248
+ { d: "m20 20-3.6-3.6" },
249
+ null,
250
+ -1
251
+ /* CACHED */
252
+ )
253
+ ])])) : __props.prefixText ? (vue.openBlock(), vue.createElementBlock(
254
+ "span",
255
+ _hoisted_7,
256
+ vue.toDisplayString(__props.prefixText),
257
+ 1
258
+ /* TEXT */
259
+ )) : vue.createCommentVNode("v-if", true)
260
+ ])
261
+ ])) : vue.createCommentVNode("v-if", true),
262
+ vue.createElementVNode("input", {
263
+ id: inputId,
264
+ ref_key: "inputRef",
265
+ ref: inputRef,
266
+ class: vue.normalizeClass(["yc-input__inner", { "is-mono": __props.monospace }]),
267
+ type: nativeType.value,
268
+ value: stringValue.value,
269
+ placeholder: __props.placeholder,
270
+ disabled: __props.disabled,
271
+ readonly: __props.readonly,
272
+ maxlength: __props.maxlength,
273
+ name: __props.name,
274
+ autocomplete: __props.autocomplete,
275
+ onInput,
276
+ onFocus,
277
+ onBlur,
278
+ onKeydown: _cache[0] || (_cache[0] = vue.withKeys(($event) => emit("enter", $event), ["enter"]))
279
+ }, null, 42, _hoisted_8),
280
+ hasSuffix.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9, [
281
+ showClear.value ? (vue.openBlock(), vue.createElementBlock(
282
+ "button",
283
+ {
284
+ key: 0,
285
+ type: "button",
286
+ class: "yc-input__icon-btn",
287
+ tabindex: "-1",
288
+ "aria-label": "\u6E05\u7A7A",
289
+ onMousedown: _cache[1] || (_cache[1] = vue.withModifiers(() => {
290
+ }, ["prevent"])),
291
+ onClick: vue.withModifiers(clearValue, ["stop"])
292
+ },
293
+ [..._cache[5] || (_cache[5] = [
294
+ vue.createElementVNode(
295
+ "svg",
296
+ {
297
+ viewBox: "0 0 24 24",
298
+ width: "13",
299
+ height: "13",
300
+ fill: "none",
301
+ stroke: "currentColor",
302
+ "stroke-width": "2",
303
+ "stroke-linecap": "round"
304
+ },
305
+ [
306
+ vue.createElementVNode("path", { d: "M18 6 6 18M6 6l12 12" })
307
+ ],
308
+ -1
309
+ /* CACHED */
310
+ )
311
+ ])],
312
+ 32
313
+ /* NEED_HYDRATION */
314
+ )) : vue.createCommentVNode("v-if", true),
315
+ __props.type === "password" && __props.showPassword && !__props.disabled ? (vue.openBlock(), vue.createElementBlock("button", {
316
+ key: 1,
317
+ type: "button",
318
+ class: "yc-input__icon-btn",
319
+ tabindex: "-1",
320
+ "aria-label": passwordVisible.value ? "\u9690\u85CF\u5BC6\u7801" : "\u663E\u793A\u5BC6\u7801",
321
+ onMousedown: _cache[2] || (_cache[2] = vue.withModifiers(() => {
322
+ }, ["prevent"])),
323
+ onClick: _cache[3] || (_cache[3] = vue.withModifiers(($event) => passwordVisible.value = !passwordVisible.value, ["stop"]))
324
+ }, [
325
+ passwordVisible.value ? (vue.openBlock(), vue.createElementBlock("svg", _hoisted_11, [..._cache[6] || (_cache[6] = [
326
+ vue.createElementVNode(
327
+ "path",
328
+ { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z" },
329
+ null,
330
+ -1
331
+ /* CACHED */
332
+ ),
333
+ vue.createElementVNode(
334
+ "circle",
335
+ {
336
+ cx: "12",
337
+ cy: "12",
338
+ r: "3"
339
+ },
340
+ null,
341
+ -1
342
+ /* CACHED */
343
+ )
344
+ ])])) : (vue.openBlock(), vue.createElementBlock("svg", _hoisted_12, [..._cache[7] || (_cache[7] = [
345
+ vue.createElementVNode(
346
+ "path",
347
+ { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" },
348
+ null,
349
+ -1
350
+ /* CACHED */
351
+ ),
352
+ vue.createElementVNode(
353
+ "path",
354
+ { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c6.5 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" },
355
+ null,
356
+ -1
357
+ /* CACHED */
358
+ ),
359
+ vue.createElementVNode(
360
+ "path",
361
+ { d: "M6.61 6.61A13.52 13.52 0 0 0 2 12s3.5 7 10 7a9.74 9.74 0 0 0 5.39-1.61" },
362
+ null,
363
+ -1
364
+ /* CACHED */
365
+ ),
366
+ vue.createElementVNode(
367
+ "path",
368
+ { d: "m2 2 20 20" },
369
+ null,
370
+ -1
371
+ /* CACHED */
372
+ )
373
+ ])]))
374
+ ], 40, _hoisted_10)) : vue.createCommentVNode("v-if", true),
375
+ vue.renderSlot(_ctx.$slots, "suffix", {}, () => [
376
+ __props.suffixText ? (vue.openBlock(), vue.createElementBlock(
377
+ "span",
378
+ _hoisted_13,
379
+ vue.toDisplayString(__props.suffixText),
380
+ 1
381
+ /* TEXT */
382
+ )) : vue.createCommentVNode("v-if", true)
383
+ ]),
384
+ __props.showCount && __props.maxlength ? (vue.openBlock(), vue.createElementBlock(
385
+ "span",
386
+ _hoisted_14,
387
+ vue.toDisplayString(stringValue.value.length) + "/" + vue.toDisplayString(__props.maxlength),
388
+ 1
389
+ /* TEXT */
390
+ )) : vue.createCommentVNode("v-if", true),
391
+ __props.shortcut && !stringValue.value ? (vue.openBlock(), vue.createElementBlock(
392
+ "kbd",
393
+ _hoisted_15,
394
+ vue.toDisplayString(__props.shortcut),
395
+ 1
396
+ /* TEXT */
397
+ )) : vue.createCommentVNode("v-if", true)
398
+ ])) : vue.createCommentVNode("v-if", true)
399
+ ]),
400
+ __props.addonAfter || _ctx.$slots["addon-after"] ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_16, [
401
+ vue.renderSlot(_ctx.$slots, "addon-after", {}, () => [
402
+ vue.createTextVNode(
403
+ vue.toDisplayString(__props.addonAfter),
404
+ 1
405
+ /* TEXT */
406
+ )
407
+ ])
408
+ ])) : vue.createCommentVNode("v-if", true)
409
+ ],
410
+ 2
411
+ /* CLASS */
412
+ ),
413
+ __props.error || __props.hint ? (vue.openBlock(), vue.createElementBlock(
414
+ "p",
415
+ {
416
+ key: 1,
417
+ class: vue.normalizeClass(["yc-field__message", { "is-error": !!__props.error }])
418
+ },
419
+ vue.toDisplayString(__props.error || __props.hint),
420
+ 3
421
+ /* TEXT, CLASS */
422
+ )) : vue.createCommentVNode("v-if", true)
423
+ ],
424
+ 2
425
+ /* CLASS */
426
+ );
427
+ };
428
+ }
429
+ });
430
+
431
+ exports.default = _sfc_main;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var moneyInput_vue_vue_type_script_setup_true_lang = require('./money-input2.vue.js');
6
+
7
+
8
+
9
+ exports.default = moneyInput_vue_vue_type_script_setup_true_lang.default;