@flyto/farco 1.2.1 → 1.4.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 (166) hide show
  1. package/dist/chunk-0b1102a0.js +95 -0
  2. package/dist/chunk-0d0f8483.js +6 -0
  3. package/dist/chunk-0ec0668f.js +42 -0
  4. package/dist/chunk-0f50b26a.js +153 -0
  5. package/dist/chunk-17a233d7.js +1 -0
  6. package/dist/chunk-18dd07f2.js +71 -0
  7. package/dist/chunk-28ba1e67.js +4525 -0
  8. package/dist/chunk-2d4cc9ab.js +287 -0
  9. package/dist/chunk-32aa5901.js +1 -0
  10. package/dist/chunk-3659754f.js +103 -0
  11. package/dist/chunk-3e27c862.js +38 -0
  12. package/dist/chunk-3e3782aa.js +1 -0
  13. package/dist/chunk-451afd44.js +58 -0
  14. package/dist/chunk-45dbb8f9.js +1 -0
  15. package/dist/chunk-540a3872.js +1 -0
  16. package/dist/chunk-5672685f.js +2 -0
  17. package/dist/chunk-592857c5.js +1 -0
  18. package/dist/chunk-5f89350b.js +2 -0
  19. package/dist/chunk-6c665483.js +4 -0
  20. package/dist/chunk-7779a34c.js +169 -0
  21. package/dist/chunk-7e78427e.js +1 -0
  22. package/dist/chunk-7f0e9b41.js +1 -0
  23. package/dist/chunk-82468a2e.js +1 -0
  24. package/dist/chunk-867494bd.js +99 -0
  25. package/dist/chunk-8a4bafe4.js +135 -0
  26. package/dist/chunk-912642ce.js +36 -0
  27. package/dist/chunk-995c23b4.js +85 -0
  28. package/dist/chunk-a016ffab.js +1 -0
  29. package/dist/chunk-a1e9227b.js +1 -0
  30. package/dist/chunk-a67d2308.js +1 -0
  31. package/dist/chunk-abb01801.js +955 -0
  32. package/dist/chunk-b2838051.js +42 -0
  33. package/dist/chunk-c4c93c86.js +1 -0
  34. package/dist/chunk-c9e8fc0f.js +5 -0
  35. package/dist/chunk-db179b28.js +82 -0
  36. package/dist/chunk-dc6689c4.js +34 -0
  37. package/dist/chunk-e7fc446a.js +29 -0
  38. package/dist/chunk-ed8bf4fb.js +12607 -0
  39. package/dist/chunk-f363e104.js +1 -0
  40. package/dist/chunk-fe45f9f8.js +1 -0
  41. package/dist/fbutton.cjs.js +1 -0
  42. package/dist/fbutton.es.js +9 -0
  43. package/dist/fcheckbox.cjs.js +1 -0
  44. package/dist/fcheckbox.es.js +8 -0
  45. package/dist/fdate.cjs.js +1 -0
  46. package/dist/fdate.es.js +8 -0
  47. package/dist/fform-item.cjs.js +1 -0
  48. package/dist/fform-item.es.js +26 -0
  49. package/dist/fform.cjs.js +1 -0
  50. package/dist/fform.es.js +24 -0
  51. package/dist/ficon.cjs.js +1 -0
  52. package/dist/ficon.es.js +9 -0
  53. package/dist/finput.cjs.js +1 -0
  54. package/dist/finput.es.js +9 -0
  55. package/dist/flink.cjs.js +1 -0
  56. package/dist/flink.es.js +9 -0
  57. package/dist/fml-input.cjs.js +1 -0
  58. package/dist/fml-input.es.js +11 -0
  59. package/dist/fpop-choice.cjs.js +1 -0
  60. package/dist/fpop-choice.es.js +26 -0
  61. package/dist/fquery-list.cjs.js +1 -0
  62. package/dist/fquery-list.es.js +24 -0
  63. package/dist/fradio.cjs.js +1 -0
  64. package/dist/fradio.es.js +8 -0
  65. package/dist/frange.cjs.js +1 -0
  66. package/dist/frange.es.js +10 -0
  67. package/dist/fsearch.cjs.js +1 -0
  68. package/dist/fsearch.es.js +24 -0
  69. package/dist/fselect.cjs.js +1 -0
  70. package/dist/fselect.es.js +12 -0
  71. package/dist/fskeleton.cjs.js +1 -0
  72. package/dist/fskeleton.es.js +8 -0
  73. package/dist/fswitch.cjs.js +1 -0
  74. package/dist/fswitch.es.js +8 -0
  75. package/dist/ftable.cjs.js +1 -0
  76. package/dist/ftable.es.js +13 -0
  77. package/dist/ftext.cjs.js +1 -0
  78. package/dist/ftext.es.js +12 -0
  79. package/dist/ftextarea.cjs.js +1 -0
  80. package/dist/ftextarea.es.js +9 -0
  81. package/dist/index.cjs.js +1 -0
  82. package/dist/index.es.js +175 -19505
  83. package/dist/index.umd.js +25 -25
  84. package/dist/keys.cjs.js +1 -0
  85. package/dist/keys.es.js +9 -0
  86. package/dist/style.css +1 -1
  87. package/dist/types/components/fbutton/fbutton.d.ts +35 -35
  88. package/dist/types/components/fbutton/fbutton.vue.d.ts +35 -33
  89. package/dist/types/components/fbutton/index.d.ts +4 -4
  90. package/dist/types/components/fcheckbox/constants/index.d.ts +10 -10
  91. package/dist/types/components/fcheckbox/fcheckbox.d.ts +41 -41
  92. package/dist/types/components/fcheckbox/fcheckbox.vue.d.ts +168 -166
  93. package/dist/types/components/fcheckbox/index.d.ts +4 -4
  94. package/dist/types/components/fdate/fdate.d.ts +67 -67
  95. package/dist/types/components/fdate/fdate.vue.d.ts +47 -45
  96. package/dist/types/components/fdate/index.d.ts +4 -4
  97. package/dist/types/components/fform/fform.d.ts +83 -83
  98. package/dist/types/components/fform/fform.vue.d.ts +124 -122
  99. package/dist/types/components/fform/index.d.ts +4 -4
  100. package/dist/types/components/fform-item/fform-item.d.ts +91 -91
  101. package/dist/types/components/fform-item/fform-item.vue.d.ts +121 -117
  102. package/dist/types/components/fform-item/index.d.ts +4 -4
  103. package/dist/types/components/ficon/ficon.d.ts +44 -44
  104. package/dist/types/components/ficon/ficon.vue.d.ts +63 -59
  105. package/dist/types/components/ficon/index.d.ts +4 -4
  106. package/dist/types/components/finput/finput.d.ts +54 -54
  107. package/dist/types/components/finput/finput.vue.d.ts +87 -83
  108. package/dist/types/components/finput/index.d.ts +4 -4
  109. package/dist/types/components/flink/flink.d.ts +26 -26
  110. package/dist/types/components/flink/flink.vue.d.ts +42 -40
  111. package/dist/types/components/flink/index.d.ts +4 -4
  112. package/dist/types/components/fml-input/fml-input.d.ts +74 -74
  113. package/dist/types/components/fml-input/fml-input.vue.d.ts +601 -622
  114. package/dist/types/components/fml-input/index.d.ts +4 -4
  115. package/dist/types/components/fpop-choice/fpop-choice.d.ts +52 -52
  116. package/dist/types/components/fpop-choice/fpop-choice.vue.d.ts +884 -891
  117. package/dist/types/components/fpop-choice/index.d.ts +5 -5
  118. package/dist/types/components/fpop-choice/utils/index.d.ts +16 -16
  119. package/dist/types/components/fquery-list/fquery-list.d.ts +133 -133
  120. package/dist/types/components/fquery-list/fquery-list.vue.d.ts +467 -1352
  121. package/dist/types/components/fquery-list/index.d.ts +4 -4
  122. package/dist/types/components/fradio/constants/index.d.ts +8 -8
  123. package/dist/types/components/fradio/fradio.d.ts +48 -48
  124. package/dist/types/components/fradio/fradio.vue.d.ts +176 -174
  125. package/dist/types/components/fradio/index.d.ts +4 -4
  126. package/dist/types/components/frange/frange.d.ts +47 -47
  127. package/dist/types/components/frange/frange.vue.d.ts +92 -90
  128. package/dist/types/components/frange/index.d.ts +4 -4
  129. package/dist/types/components/fsearch/fsearch.d.ts +75 -75
  130. package/dist/types/components/fsearch/fsearch.vue.d.ts +103 -103
  131. package/dist/types/components/fsearch/index.d.ts +4 -4
  132. package/dist/types/components/fselect/constants/index.d.ts +6 -6
  133. package/dist/types/components/fselect/fselect-option.vue.d.ts +25 -25
  134. package/dist/types/components/fselect/fselect.d.ts +120 -120
  135. package/dist/types/components/fselect/fselect.vue.d.ts +184 -182
  136. package/dist/types/components/fselect/index.d.ts +4 -4
  137. package/dist/types/components/fskeleton/fskeleton.d.ts +18 -18
  138. package/dist/types/components/fskeleton/fskeleton.vue.d.ts +17 -15
  139. package/dist/types/components/fskeleton/index.d.ts +4 -4
  140. package/dist/types/components/fswitch/fswitch.d.ts +8 -8
  141. package/dist/types/components/fswitch/fswitch.vue.d.ts +365 -365
  142. package/dist/types/components/fswitch/index.d.ts +4 -4
  143. package/dist/types/components/ftable/constants/index.d.ts +14 -14
  144. package/dist/types/components/ftable/ftable-cols-set.vue.d.ts +6 -6
  145. package/dist/types/components/ftable/ftable-toolbar.vue.d.ts +57 -54
  146. package/dist/types/components/ftable/ftable.d.ts +332 -332
  147. package/dist/types/components/ftable/ftable.vue.d.ts +139 -333
  148. package/dist/types/components/ftable/index.d.ts +4 -4
  149. package/dist/types/components/ftable/utils/index.d.ts +13 -13
  150. package/dist/types/components/ftext/ftext.d.ts +97 -96
  151. package/dist/types/components/ftext/ftext.vue.d.ts +88 -86
  152. package/dist/types/components/ftext/index.d.ts +4 -4
  153. package/dist/types/components/ftextarea/ftextarea.d.ts +32 -32
  154. package/dist/types/components/ftextarea/ftextarea.vue.d.ts +569 -575
  155. package/dist/types/components/ftextarea/index.d.ts +4 -4
  156. package/dist/types/components/index.d.ts +40 -40
  157. package/dist/types/constants/fform.d.ts +8 -8
  158. package/dist/types/constants/global.d.ts +9 -24
  159. package/dist/types/constants/keys.d.ts +14 -0
  160. package/dist/types/env.d.ts +4 -0
  161. package/dist/types/index.d.ts +14 -15
  162. package/dist/types/types/global.d.ts +44 -44
  163. package/dist/types/types/index.d.ts +1 -1
  164. package/dist/types/utils/business-format.d.ts +136 -136
  165. package/dist/types/utils/index.d.ts +4 -4
  166. package/package.json +24 -4
@@ -0,0 +1,6 @@
1
+ const o = Symbol("iconfont"), c = Symbol("arcoIcon"), n = Symbol("vueRouter");
2
+ export {
3
+ c as A,
4
+ o as I,
5
+ n as R
6
+ };
@@ -0,0 +1,42 @@
1
+ import "vue";
2
+ import { Message as f, Modal as r } from "@arco-design/web-vue";
3
+ function u(n, t, s) {
4
+ const o = { duration: 2500, content: "" };
5
+ return typeof n == "string" || typeof n == "function" ? (o.content = n, Object.assign(o, s)) : Object.assign(o, n), f[t || "info"](o);
6
+ }
7
+ function i(n, t, s, o) {
8
+ const e = { content: "", hideCancel: !0, title: "\u63D0\u793A" };
9
+ let c = !1;
10
+ return typeof n == "string" || typeof n == "function" ? (e.content = n, Object.assign(e, s), c = Boolean(o)) : (Object.assign(e, n), c = Boolean(s)), r[t !== "normal" && t ? t : "open"]({ ...e, hideCancel: !c });
11
+ }
12
+ function p(n, t, s) {
13
+ return new Promise((o, e) => {
14
+ typeof n != "string" && typeof n != "function" ? i({ ...n, onOk() {
15
+ o();
16
+ }, onClose() {
17
+ e();
18
+ } }, t, !1) : i(n, t, { ...s, onOk() {
19
+ o();
20
+ }, onClose() {
21
+ e();
22
+ } }, !1);
23
+ });
24
+ }
25
+ function g(n, t, s) {
26
+ return new Promise((o, e) => {
27
+ typeof n != "string" && typeof n != "function" ? i({ maskClosable: !1, ...n, onOk() {
28
+ o();
29
+ }, onClose() {
30
+ e();
31
+ } }, t, !0) : i(n, t, { maskClosable: !1, ...s, onOk() {
32
+ o();
33
+ }, onClose() {
34
+ e();
35
+ } }, !0);
36
+ });
37
+ }
38
+ export {
39
+ u as a,
40
+ g as f,
41
+ p as s
42
+ };
@@ -0,0 +1,153 @@
1
+ import { defineComponent as $, mergeModels as _, ref as s, useModel as h, computed as v, inject as k, openBlock as B, createElementBlock as M, Fragment as S, createVNode as f, unref as d, mergeProps as A, withCtx as y, renderSlot as I, createElementVNode as T, toDisplayString as j, nextTick as D } from "vue";
2
+ import { Input as N, Modal as U, Textarea as z } from "@arco-design/web-vue";
3
+ import { f as O } from "./chunk-c9e8fc0f.js";
4
+ import { _ as P } from "./chunk-451afd44.js";
5
+ const K = {
6
+ defaultValue: {
7
+ type: String,
8
+ default: null
9
+ },
10
+ separator: {
11
+ type: String,
12
+ default: ","
13
+ },
14
+ placeholder: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ type: {
19
+ type: String,
20
+ default: "text"
21
+ },
22
+ allowClear: {
23
+ type: Boolean,
24
+ default: !0
25
+ },
26
+ popupConfig: {
27
+ type: Object,
28
+ default: null
29
+ }
30
+ }, L = { class: "f-ml-input__modal-tip" }, Q = /* @__PURE__ */ $({
31
+ inheritAttrs: !1,
32
+ __name: "fml-input",
33
+ props: /* @__PURE__ */ _(K, {
34
+ modelValue: {},
35
+ modelModifiers: {}
36
+ }),
37
+ emits: ["update:modelValue"],
38
+ setup(g, { expose: V }) {
39
+ const u = g;
40
+ function w(e, l = u.separator) {
41
+ if (!e)
42
+ return "";
43
+ const a = new RegExp(`[^0-9${l}]`, "g"), b = new RegExp(`${l}+`, "g"), C = new RegExp(`^${l}`, "g");
44
+ return e.replace(a, "").replace(b, l).replace(C, "");
45
+ }
46
+ const r = s(), c = h(g, "modelValue"), o = v({
47
+ get: () => {
48
+ var e;
49
+ return (e = c.value) != null ? e : "";
50
+ },
51
+ set: (e) => {
52
+ u.type === "number" ? c.value = w(e) : c.value = e;
53
+ }
54
+ });
55
+ u.defaultValue && (o.value = u.defaultValue);
56
+ const t = k(O, null), x = v(
57
+ () => u.placeholder || `\u652F\u6301\u591A\u4E2A${((t == null ? void 0 : t.label) || "\u6570\u636E").replace(/[: | :]$/, "")}\u8F93\u5165`
58
+ ), m = s(), i = v(() => {
59
+ var e;
60
+ return {
61
+ title: `\u591A\u4E2A${((t == null ? void 0 : t.label) || "\u6570\u636E").replace(
62
+ /[: | :]$/,
63
+ ""
64
+ )}\u586B\u5199`,
65
+ tip: "\u4F7F\u7528\u82F1\u6587\u72B6\u6001\u9017\u53F7\uFF08,\uFF09\u6216\u56DE\u8F66\uFF08\u4E00\u884C\u4E00\u4E2A\uFF09\u8FDB\u884C\u5206\u5272",
66
+ placeholder: x.value,
67
+ ...u.popupConfig,
68
+ rows: (e = u.popupConfig) != null && e.rows ? typeof u.popupConfig.rows == "number" ? {
69
+ minRows: u.popupConfig.rows,
70
+ maxRows: u.popupConfig.rows
71
+ } : u.popupConfig.rows : { minRows: 10, maxRows: 10 }
72
+ };
73
+ }), n = s("");
74
+ function E(e) {
75
+ u.type === "number" ? n.value = w(e, `
76
+ `) : n.value = e;
77
+ }
78
+ const p = s(!1);
79
+ function F(e) {
80
+ var l;
81
+ p.value = e === void 0 ? !p.value : e, p.value && (D(() => {
82
+ var a;
83
+ return (a = m.value) == null ? void 0 : a.focus();
84
+ }), n.value = o.value ? `${((l = o.value) == null ? void 0 : l.replace(new RegExp(u.separator, "g"), `
85
+ `)) || ""}
86
+ ` : "");
87
+ }
88
+ function R() {
89
+ o.value = n.value.replace(/\n/g, u.separator);
90
+ }
91
+ return V({
92
+ value: o,
93
+ focus(...e) {
94
+ var l;
95
+ (l = r.value) == null || l.focus(...e);
96
+ },
97
+ blur(...e) {
98
+ var l;
99
+ (l = r.value) == null || l.blur(...e);
100
+ },
101
+ toggleModal: F,
102
+ inputIns: r,
103
+ textareaIns: m
104
+ }), (e, l) => (B(), M(S, null, [
105
+ f(d(N), A({
106
+ ref_key: "inputRef",
107
+ ref: r,
108
+ modelValue: o.value,
109
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => o.value = a),
110
+ class: "f-ml-input",
111
+ placeholder: x.value,
112
+ "allow-clear": e.allowClear
113
+ }, e.$attrs), {
114
+ prefix: y(() => [
115
+ I(e.$slots, "prefix", {}, () => [
116
+ f(d(P), {
117
+ name: "IconList",
118
+ pointer: !0,
119
+ onClick: l[0] || (l[0] = (a) => F())
120
+ })
121
+ ])
122
+ ]),
123
+ _: 3
124
+ }, 16, ["modelValue", "placeholder", "allow-clear"]),
125
+ f(d(U), {
126
+ visible: p.value,
127
+ "onUpdate:visible": l[2] || (l[2] = (a) => p.value = a),
128
+ "modal-class": "f-ml-input__modal",
129
+ simple: "",
130
+ title: i.value.title,
131
+ "unmount-on-close": "",
132
+ onOk: R
133
+ }, {
134
+ default: y(() => [
135
+ T("p", L, j(i.value.tip), 1),
136
+ f(d(z), {
137
+ ref_key: "textareaRef",
138
+ ref: m,
139
+ "model-value": n.value,
140
+ "auto-size": i.value.rows,
141
+ placeholder: i.value.placeholder,
142
+ "onUpdate:modelValue": E
143
+ }, null, 8, ["model-value", "auto-size", "placeholder"])
144
+ ]),
145
+ _: 1
146
+ }, 8, ["visible", "title"])
147
+ ], 64));
148
+ }
149
+ });
150
+ export {
151
+ Q as _,
152
+ K as f
153
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),f=require("@arco-design/web-vue"),p=require("./chunk-a016ffab.js"),i={href:{type:String,default:""},name:{type:String},openType:{type:String,default:"spa"}},a=e.defineComponent({__name:"flink",props:i,emits:["click"],setup(o,{emit:c}){const s=c,t=o;e.inject("clickFn",()=>{});const r=e.inject(p.ROUTER_KEY,null);function u(...n){s("click",...n),t.openType==="spa"&&r&&r.push(t.href)}return(n,l)=>(e.openBlock(),e.createBlock(e.unref(f.Link),{href:n.openType==="raw"?n.href:void 0,onClick:u},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["href"]))}});exports._sfc_main=a;exports.fLinkProps=i;
@@ -0,0 +1,71 @@
1
+ import { defineComponent as y, mergeModels as g, useModel as k, ref as P, computed as d, openBlock as v, createBlock as V, resolveDynamicComponent as h, mergeProps as x, createSlots as M, renderList as R, withCtx as w, renderSlot as C, normalizeProps as D, guardReactiveProps as S } from "vue";
2
+ import { RangePicker as _, DatePicker as i, MonthPicker as B, WeekPicker as T, QuarterPicker as $, YearPicker as b } from "@arco-design/web-vue";
3
+ const q = {
4
+ defaultValue: {
5
+ type: [Date, String, Number, Array]
6
+ },
7
+ type: {
8
+ type: String,
9
+ default: "date"
10
+ },
11
+ range: {
12
+ type: Boolean,
13
+ default: !1
14
+ }
15
+ }, L = /* @__PURE__ */ y({
16
+ __name: "fdate",
17
+ props: /* @__PURE__ */ g(q, {
18
+ modelValue: {},
19
+ modelModifiers: {}
20
+ }),
21
+ emits: ["update:modelValue"],
22
+ setup(a, { expose: u }) {
23
+ const e = a, r = k(a, "modelValue");
24
+ e.defaultValue && (r.value = e.defaultValue);
25
+ const o = P(), m = {
26
+ time: i,
27
+ date: i,
28
+ month: B,
29
+ week: T,
30
+ quarter: $,
31
+ year: b
32
+ }, p = d(() => e.range ? _ : m[e.type]), f = d(() => {
33
+ let t = {
34
+ type: "date",
35
+ range: !1
36
+ };
37
+ return e.type === "time" && (t.showTime = !0), e.range && (t = {
38
+ range: !0,
39
+ mode: e.type === "time" ? "date" : e.type,
40
+ showTime: e.type === "time",
41
+ exchangeTime: !1
42
+ }), {
43
+ ...t,
44
+ type: void 0,
45
+ range: void 0
46
+ };
47
+ });
48
+ return u({
49
+ value: r,
50
+ ins: o
51
+ }), (t, n) => (v(), V(h(p.value), x({
52
+ ref_key: "dateRef",
53
+ ref: o
54
+ }, f.value, {
55
+ modelValue: r.value,
56
+ "onUpdate:modelValue": n[0] || (n[0] = (l) => r.value = l),
57
+ class: "f-date"
58
+ }), M({ _: 2 }, [
59
+ R(t.$slots, (l, s) => ({
60
+ name: s,
61
+ fn: w((c) => [
62
+ C(t.$slots, s, D(S(c)))
63
+ ])
64
+ }))
65
+ ]), 1040, ["modelValue"]));
66
+ }
67
+ });
68
+ export {
69
+ L as _,
70
+ q as f
71
+ };