@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,42 @@
1
+ import { defineComponent as s, inject as r, openBlock as c, createBlock as a, unref as l, withCtx as m, renderSlot as u } from "vue";
2
+ import { Link as k } from "@arco-design/web-vue";
3
+ import { R as h } from "./chunk-0d0f8483.js";
4
+ const d = {
5
+ href: {
6
+ type: String,
7
+ default: ""
8
+ },
9
+ name: {
10
+ type: String
11
+ },
12
+ openType: {
13
+ type: String,
14
+ default: "spa"
15
+ }
16
+ }, g = /* @__PURE__ */ s({
17
+ __name: "flink",
18
+ props: d,
19
+ emits: ["click"],
20
+ setup(o, { emit: i }) {
21
+ const p = i, t = o;
22
+ r("clickFn", () => {
23
+ });
24
+ const n = r(h, null);
25
+ function f(...e) {
26
+ p("click", ...e), t.openType === "spa" && n && n.push(t.href);
27
+ }
28
+ return (e, y) => (c(), a(l(k), {
29
+ href: e.openType === "raw" ? e.href : void 0,
30
+ onClick: f
31
+ }, {
32
+ default: m(() => [
33
+ u(e.$slots, "default")
34
+ ]),
35
+ _: 3
36
+ }, 8, ["href"]));
37
+ }
38
+ });
39
+ export {
40
+ g as _,
41
+ d as f
42
+ };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./chunk-e7fc446a.js"),a={addQLDefaultFormData(e,t={}){var r;return{...e,fFormProps:{...e.fFormProps,defaultData:{...(r=e.fFormProps)==null?void 0:r.defaultData,...t}}}},buildQLDefaultConfig(e){const t={id:String(Math.floor(Math.random()*1e6)),title:!1,fTableProps:{toolbar:!1,scroll:{maxHeight:"500px"},selection:"checkbox",selectionConfig:{onlyCurrent:!1}}};return o.lodash.exports.merge(t,e),t}};exports.index=a;
@@ -0,0 +1,5 @@
1
+ const t = Symbol("formCtx"), o = Symbol("formItemCtx");
2
+ export {
3
+ t as a,
4
+ o as f
5
+ };
@@ -0,0 +1,82 @@
1
+ import { defineComponent as y, mergeModels as v, ref as g, useModel as w, computed as n, inject as $, openBlock as h, createBlock as B, unref as M, createSlots as S, renderList as V, withCtx as b, renderSlot as k, mergeProps as I } from "vue";
2
+ import { InputPassword as C, Input as j } from "@arco-design/web-vue";
3
+ import { f as P } from "./chunk-c9e8fc0f.js";
4
+ const R = {
5
+ defaultValue: {
6
+ type: String,
7
+ default: null
8
+ },
9
+ placeholder: {
10
+ type: String,
11
+ default: ""
12
+ },
13
+ allowClear: {
14
+ type: Boolean,
15
+ default: !0
16
+ },
17
+ type: {
18
+ type: String,
19
+ default: "text"
20
+ },
21
+ autocomplete: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ includeMimus: {
26
+ type: Boolean,
27
+ default: !1
28
+ }
29
+ }, N = /* @__PURE__ */ y({
30
+ __name: "finput",
31
+ props: /* @__PURE__ */ v(R, {
32
+ modelValue: {},
33
+ modelModifiers: {}
34
+ }),
35
+ emits: ["update:modelValue"],
36
+ setup(p, { expose: d }) {
37
+ const a = p, o = g(), l = w(p, "modelValue"), c = n(() => {
38
+ var e;
39
+ return String((e = l.value) != null ? e : "");
40
+ });
41
+ function s(e) {
42
+ ["password", "text"].includes(a.type) && (l.value = e), a.type === "number" && (l.value = e.replace(/(?!^)-|[^\d-]/g, "")), a.type === "decimal" && (a.includeMimus ? l.value = e.replaceAll("\u3002", ".").replace(/[^-\d.]/g, "").replace(/^(-?\d+(\.\d*)?).*$/, "$1") : l.value = e.replaceAll("\u3002", ".").replace(/^(\d+(\.\d*)?)?.*$/, "$1"));
43
+ }
44
+ a.defaultValue && (l.value = a.defaultValue), typeof l.value == "number" && String(l.value) === "NaN" && (l.value = "");
45
+ const u = $(P, null), f = n(
46
+ () => a.placeholder || `\u8BF7\u586B\u5199${((u == null ? void 0 : u.label) || "\u2026\u2026").replace(/[: | :]$/, "")}`
47
+ ), i = n(
48
+ () => a.type === "password" ? C : j
49
+ );
50
+ return d({
51
+ value: l,
52
+ focus(...e) {
53
+ var t;
54
+ (t = o.value) == null || t.focus(...e);
55
+ },
56
+ blur(...e) {
57
+ var t;
58
+ (t = o.value) == null || t.blur(...e);
59
+ },
60
+ ins: o
61
+ }), (e, t) => (h(), B(M(i), {
62
+ ref_key: "inputRef",
63
+ ref: o,
64
+ "model-value": c.value,
65
+ placeholder: f.value,
66
+ "allow-clear": e.allowClear,
67
+ autocomplete: e.autocomplete ? "on" : "off",
68
+ "onUpdate:modelValue": s
69
+ }, S({ _: 2 }, [
70
+ V(Object.keys(e.$slots), (r) => ({
71
+ name: r,
72
+ fn: b((m) => [
73
+ k(e.$slots, r, I({ key: r }, m))
74
+ ])
75
+ }))
76
+ ]), 1032, ["model-value", "placeholder", "allow-clear", "autocomplete"]));
77
+ }
78
+ });
79
+ export {
80
+ N as _,
81
+ R as f
82
+ };
@@ -0,0 +1,34 @@
1
+ import { openBlock as l, createElementBlock as a, renderSlot as t, createVNode as r, unref as s, withCtx as p } from "vue";
2
+ import { Skeleton as u, SkeletonLine as c } from "@arco-design/web-vue";
3
+ const f = {
4
+ loading: {
5
+ type: Boolean,
6
+ required: !0
7
+ },
8
+ rows: {
9
+ type: Number,
10
+ default: 3
11
+ }
12
+ }, d = { class: "f-skeleton" }, _ = {
13
+ __name: "fskeleton",
14
+ props: f,
15
+ setup(n) {
16
+ const e = n;
17
+ return (o, i) => (l(), a("div", d, [
18
+ e.loading ? t(o.$slots, "skeleton", { key: 0 }, () => [
19
+ r(s(u), null, {
20
+ default: p(() => [
21
+ r(s(c), {
22
+ rows: e.rows
23
+ }, null, 8, ["rows"])
24
+ ]),
25
+ _: 1
26
+ })
27
+ ]) : t(o.$slots, "default", { key: 1 })
28
+ ]));
29
+ }
30
+ };
31
+ export {
32
+ _,
33
+ f
34
+ };