@farris/ui-vue 1.2.9 → 1.3.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 (236) hide show
  1. package/components/accordion/index.esm.js +63 -63
  2. package/components/accordion/index.umd.cjs +1 -1
  3. package/components/avatar/index.esm.js +402 -323
  4. package/components/avatar/index.umd.cjs +1 -1
  5. package/components/button-edit/index.css +1 -1
  6. package/components/button-edit/index.esm.js +98 -96
  7. package/components/button-edit/index.umd.cjs +1 -1
  8. package/components/calendar/index.esm.js +66 -66
  9. package/components/calendar/index.umd.cjs +1 -1
  10. package/components/capsule/index.esm.js +118 -118
  11. package/components/capsule/index.umd.cjs +1 -1
  12. package/components/checkbox/index.esm.js +539 -460
  13. package/components/checkbox/index.umd.cjs +1 -1
  14. package/components/color-picker/index.esm.js +135 -135
  15. package/components/color-picker/index.umd.cjs +2 -2
  16. package/components/combo-list/index.css +1 -0
  17. package/components/combo-list/index.esm.js +1007 -312
  18. package/components/combo-list/index.umd.cjs +1 -1
  19. package/components/combo-tree/index.esm.js +97 -97
  20. package/components/combo-tree/index.umd.cjs +1 -1
  21. package/components/common/index.esm.js +778 -700
  22. package/components/common/index.umd.cjs +1 -1
  23. package/components/component/index.esm.js +472 -329
  24. package/components/component/index.umd.cjs +1 -1
  25. package/components/condition/index.css +1 -0
  26. package/components/condition/index.esm.js +2231 -1055
  27. package/components/condition/index.umd.cjs +1 -1
  28. package/components/content-container/index.esm.js +79 -79
  29. package/components/content-container/index.umd.cjs +1 -1
  30. package/components/data-grid/index.css +1 -1
  31. package/components/data-grid/index.esm.js +6408 -5034
  32. package/components/data-grid/index.umd.cjs +1 -1
  33. package/components/data-view/index.css +1 -0
  34. package/components/data-view/index.esm.js +4762 -3511
  35. package/components/data-view/index.umd.cjs +1 -1
  36. package/components/date-picker/index.css +1 -1
  37. package/components/date-picker/index.esm.js +3442 -2742
  38. package/components/date-picker/index.umd.cjs +1 -1
  39. package/components/designer-outline/index.esm.js +14 -13
  40. package/components/designer-outline/index.umd.cjs +1 -1
  41. package/components/dropdown/index.esm.js +73 -73
  42. package/components/dropdown/index.umd.cjs +2 -2
  43. package/components/dynamic-form/index.css +1 -0
  44. package/components/dynamic-form/index.esm.js +2597 -1141
  45. package/components/dynamic-form/index.umd.cjs +1 -1
  46. package/components/dynamic-resolver/index.esm.js +114 -71
  47. package/components/dynamic-resolver/index.umd.cjs +1 -1
  48. package/components/dynamic-view/index.esm.js +303 -290
  49. package/components/dynamic-view/index.umd.cjs +1 -1
  50. package/components/events-editor/index.esm.js +171 -171
  51. package/components/events-editor/index.umd.cjs +1 -1
  52. package/components/expression-editor/index.esm.js +65 -65
  53. package/components/expression-editor/index.umd.cjs +1 -1
  54. package/components/external-container/index.css +1 -1
  55. package/components/external-container/index.esm.js +3075 -2586
  56. package/components/external-container/index.umd.cjs +1 -1
  57. package/components/field-selector/index.css +1 -1
  58. package/components/field-selector/index.esm.js +5272 -8511
  59. package/components/field-selector/index.umd.cjs +1 -1
  60. package/components/filter-bar/index.css +1 -1
  61. package/components/filter-bar/index.esm.js +1726 -1822
  62. package/components/filter-bar/index.umd.cjs +1 -1
  63. package/components/image-cropper/index.esm.js +126 -126
  64. package/components/image-cropper/index.umd.cjs +1 -1
  65. package/components/input-group/index.esm.js +620 -540
  66. package/components/input-group/index.umd.cjs +1 -1
  67. package/components/layout/index.esm.js +88 -88
  68. package/components/layout/index.umd.cjs +1 -1
  69. package/components/list-nav/index.esm.js +71 -71
  70. package/components/list-nav/index.umd.cjs +1 -1
  71. package/components/list-view/index.css +1 -1
  72. package/components/list-view/index.esm.js +3582 -2356
  73. package/components/list-view/index.umd.cjs +1 -1
  74. package/components/lookup/index.css +1 -1
  75. package/components/lookup/index.esm.js +10752 -8972
  76. package/components/lookup/index.umd.cjs +1 -1
  77. package/components/mapping-editor/index.css +1 -1
  78. package/components/mapping-editor/index.esm.js +5601 -5329
  79. package/components/mapping-editor/index.umd.cjs +1 -1
  80. package/components/message-box/index.css +1 -1
  81. package/components/message-box/index.esm.js +511 -471
  82. package/components/message-box/index.umd.cjs +1 -1
  83. package/components/modal/index.css +1 -1
  84. package/components/modal/index.esm.js +438 -398
  85. package/components/modal/index.umd.cjs +1 -1
  86. package/components/nav/index.esm.js +535 -452
  87. package/components/nav/index.umd.cjs +2 -2
  88. package/components/notify/index.esm.js +59 -53
  89. package/components/notify/index.umd.cjs +1 -1
  90. package/components/number-range/index.esm.js +556 -477
  91. package/components/number-range/index.umd.cjs +1 -1
  92. package/components/number-spinner/index.esm.js +504 -425
  93. package/components/number-spinner/index.umd.cjs +1 -1
  94. package/components/order/index.css +1 -1
  95. package/components/order/index.esm.js +1833 -1054
  96. package/components/order/index.umd.cjs +1 -1
  97. package/components/page-footer/index.esm.js +100 -100
  98. package/components/page-footer/index.umd.cjs +1 -1
  99. package/components/page-header/index.esm.js +899 -870
  100. package/components/page-header/index.umd.cjs +1 -1
  101. package/components/pagination/index.esm.js +576 -487
  102. package/components/pagination/index.umd.cjs +1 -1
  103. package/components/popover/index.esm.js +71 -70
  104. package/components/popover/index.umd.cjs +1 -1
  105. package/components/progress/index.esm.js +73 -73
  106. package/components/progress/index.umd.cjs +2 -2
  107. package/components/property-editor/index.css +1 -1
  108. package/components/property-editor/index.esm.js +1916 -1220
  109. package/components/property-editor/index.umd.cjs +3 -3
  110. package/components/property-panel/index.esm.js +783 -886
  111. package/components/property-panel/index.umd.cjs +1 -1
  112. package/components/query-solution/index.css +1 -1
  113. package/components/query-solution/index.esm.js +3632 -2556
  114. package/components/query-solution/index.umd.cjs +1 -1
  115. package/components/radio-button/index.esm.js +72 -72
  116. package/components/radio-button/index.umd.cjs +1 -1
  117. package/components/radio-group/index.esm.js +484 -405
  118. package/components/radio-group/index.umd.cjs +1 -1
  119. package/components/rate/index.esm.js +152 -152
  120. package/components/rate/index.umd.cjs +1 -1
  121. package/components/response-layout/index.esm.js +73 -73
  122. package/components/response-layout/index.umd.cjs +1 -1
  123. package/components/response-layout-editor/index.css +1 -1
  124. package/components/response-layout-editor/index.esm.js +1081 -1043
  125. package/components/response-layout-editor/index.umd.cjs +1 -1
  126. package/components/response-toolbar/index.esm.js +753 -738
  127. package/components/response-toolbar/index.umd.cjs +1 -1
  128. package/components/schema-selector/index.css +1 -1
  129. package/components/schema-selector/index.esm.js +4418 -4177
  130. package/components/schema-selector/index.umd.cjs +2 -2
  131. package/components/search-box/index.esm.js +119 -119
  132. package/components/search-box/index.umd.cjs +1 -1
  133. package/components/section/index.esm.js +92 -91
  134. package/components/section/index.umd.cjs +1 -1
  135. package/components/smoke-detector/index.esm.js +59 -59
  136. package/components/smoke-detector/index.umd.cjs +1 -1
  137. package/components/splitter/index.esm.js +103 -103
  138. package/components/splitter/index.umd.cjs +1 -1
  139. package/components/step/index.esm.js +85 -85
  140. package/components/step/index.umd.cjs +1 -1
  141. package/components/switch/index.esm.js +457 -378
  142. package/components/switch/index.umd.cjs +1 -1
  143. package/components/tabs/index.css +1 -1
  144. package/components/tabs/index.esm.js +1696 -1617
  145. package/components/tabs/index.umd.cjs +1 -1
  146. package/components/tags/index.esm.js +53 -53
  147. package/components/tags/index.umd.cjs +1 -1
  148. package/components/text/index.esm.js +268 -268
  149. package/components/text/index.umd.cjs +1 -1
  150. package/components/textarea/index.esm.js +420 -341
  151. package/components/textarea/index.umd.cjs +1 -1
  152. package/components/time-picker/index.css +1 -1
  153. package/components/time-picker/index.esm.js +1062 -981
  154. package/components/time-picker/index.umd.cjs +1 -1
  155. package/components/transfer/index.css +1 -1
  156. package/components/transfer/index.esm.js +381 -379
  157. package/components/transfer/index.umd.cjs +1 -1
  158. package/components/tree-grid/index.css +1 -1
  159. package/components/tree-grid/index.esm.js +5252 -9560
  160. package/components/tree-grid/index.umd.cjs +1 -1
  161. package/components/tree-view/index.css +1 -0
  162. package/components/tree-view/index.esm.js +3920 -2692
  163. package/components/tree-view/index.umd.cjs +1 -1
  164. package/components/uploader/index.esm.js +373 -367
  165. package/components/uploader/index.umd.cjs +2 -2
  166. package/components/verify-detail/index.esm.js +92 -92
  167. package/components/verify-detail/index.umd.cjs +1 -1
  168. package/components/video/index.esm.js +597 -417
  169. package/components/video/index.umd.cjs +1 -1
  170. package/components/weather/index.esm.js +251 -251
  171. package/components/weather/index.umd.cjs +4 -4
  172. package/farris.all.esm.js +17125 -16176
  173. package/farris.all.umd.cjs +8 -8
  174. package/index.css +1 -1
  175. package/package.json +1 -1
  176. package/types/capsule/src/capsule.props.d.ts +2 -2
  177. package/types/combo-list/src/components/list-container.component.d.ts +0 -3
  178. package/types/combo-list/src/components/list-container.props.d.ts +0 -4
  179. package/types/common/index.d.ts +1 -0
  180. package/types/common/types.d.ts +1 -1
  181. package/types/common/utils/encrypt.d.ts +2 -0
  182. package/types/component/src/component.props.d.ts +7 -0
  183. package/types/component/src/designer/use-designer-rules.d.ts +1 -1
  184. package/types/component/src/property-config/component.property-config.d.ts +9 -0
  185. package/types/components.d.ts +1 -0
  186. package/types/data-grid/index.d.ts +5 -2
  187. package/types/data-grid/src/data-grid.component.d.ts +2 -1
  188. package/types/data-grid/src/data-grid.props.d.ts +1 -0
  189. package/types/data-view/composition/types.d.ts +18 -1
  190. package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
  191. package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
  192. package/types/designer-canvas/src/composition/types.d.ts +1 -1
  193. package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
  194. package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
  195. package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
  196. package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
  197. package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
  198. package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
  199. package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
  200. package/types/dynamic-form/src/types.d.ts +12 -1
  201. package/types/dynamic-resolver/index.d.ts +1 -0
  202. package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
  203. package/types/dynamic-resolver/src/types.d.ts +9 -0
  204. package/types/dynamic-view/index.d.ts +1 -0
  205. package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
  206. package/types/index.d.ts +2 -0
  207. package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
  208. package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
  209. package/types/lookup/src/components/modal-container.component.d.ts +25 -0
  210. package/types/lookup/src/components/modal-container.props.d.ts +29 -0
  211. package/types/lookup/src/composition/types.d.ts +8 -0
  212. package/types/lookup/src/composition/use-check-props.d.ts +9 -2
  213. package/types/lookup/src/composition/use-dialog.d.ts +5 -1
  214. package/types/lookup/src/composition/use-favorite.d.ts +12 -0
  215. package/types/lookup/src/composition/use-http.d.ts +9 -5
  216. package/types/lookup/src/composition/use-input-change.d.ts +3 -0
  217. package/types/lookup/src/composition/use-user-data.d.ts +24 -0
  218. package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
  219. package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
  220. package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
  221. package/types/modal/src/composition/use-draggable.d.ts +2 -1
  222. package/types/modal/src/composition/use-shortcut.d.ts +6 -0
  223. package/types/modal/src/modal.component.d.ts +3 -0
  224. package/types/modal/src/modal.props.d.ts +4 -0
  225. package/types/page-header/src/page-header.props.d.ts +1 -0
  226. package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
  227. package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
  228. package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
  229. package/types/response-layout-editor/src/type.d.ts +21 -0
  230. package/types/tabs/src/tabs.props.d.ts +1 -0
  231. package/types/tree-grid/index.d.ts +8 -2
  232. package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
  233. package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
  234. package/types/modal/src/composition/use-esc.d.ts +0 -1
  235. package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
  236. package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
@@ -1,27 +1,27 @@
1
- var tt = Object.defineProperty;
2
- var nt = (r, e, t) => e in r ? tt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
- var s = (r, e, t) => nt(r, typeof e != "symbol" ? e + "" : e, t);
4
- import { defineComponent as ee, ref as S, onMounted as T, watch as q, createVNode as k, withModifiers as _, createTextVNode as Re, computed as U, onBeforeMount as qe, withDirectives as W, vShow as K, vModelText as Ye, inject as rt } from "vue";
5
- import { cloneDeep as it } from "lodash-es";
6
- const Xe = {}, Ge = {};
1
+ var nt = Object.defineProperty;
2
+ var rt = (r, e, t) => e in r ? nt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var s = (r, e, t) => rt(r, typeof e != "symbol" ? e + "" : e, t);
4
+ import { defineComponent as ee, ref as S, onMounted as T, watch as q, createVNode as k, withModifiers as _, createTextVNode as Re, computed as U, onBeforeMount as Ye, withDirectives as W, vShow as K, vModelText as Xe, inject as it } from "vue";
5
+ import { isPlainObject as je, cloneDeep as st } from "lodash-es";
6
+ const Ge = {}, We = {};
7
7
  function $e(r) {
8
- const { properties: e, title: t, ignore: n } = r, i = n && Array.isArray(n), l = Object.keys(e).reduce((u, c) => ((!i || !n.find((g) => g == c)) && (u[c] = e[c].type === "object" && e[c].properties ? $e(e[c]) : it(e[c].default)), u), {});
8
+ const { properties: e, title: t, ignore: n } = r, i = n && Array.isArray(n), l = Object.keys(e).reduce((u, c) => ((!i || !n.find((g) => g == c)) && (u[c] = e[c].type === "object" && e[c].properties ? $e(e[c]) : st(e[c].default)), u), {});
9
9
  return (!i || !n.find((u) => u == "id")) && (l.id = `${t}-${Date.now()}`), l;
10
10
  }
11
11
  function ke(r, e = {}, t) {
12
- const n = Xe[r];
12
+ const n = Ge[r];
13
13
  if (n) {
14
14
  let i = $e(n);
15
- const l = Ge[r];
15
+ const l = We[r];
16
16
  return i = l ? l({ getSchemaByType: ke }, i, e, t) : i, i;
17
17
  }
18
18
  return null;
19
19
  }
20
- function st(r, e) {
20
+ function at(r, e) {
21
21
  const t = $e(e);
22
- return Object.keys(r).reduce((n, i) => (n[i] && typeof n[i] == "object" ? Object.assign(n[i], r[i]) : n[i] = r[i], n), t), t;
22
+ return Object.keys(r).reduce((n, i) => (n[i] && je(n[i]) && je(r[i]) ? Object.assign(n[i], r[i]) : n[i] = r[i], n), t), t;
23
23
  }
24
- function at(r, e) {
24
+ function ot(r, e) {
25
25
  return Object.keys(r).filter((n) => r[n] != null).reduce((n, i) => {
26
26
  if (e.has(i)) {
27
27
  const l = e.get(i);
@@ -36,11 +36,11 @@ function at(r, e) {
36
36
  return n;
37
37
  }, {});
38
38
  }
39
- function ot(r, e, t = /* @__PURE__ */ new Map()) {
40
- const n = st(r, e);
41
- return at(n, t);
39
+ function ut(r, e, t = /* @__PURE__ */ new Map()) {
40
+ const n = at(r, e);
41
+ return ot(n, t);
42
42
  }
43
- function ut(r = {}) {
43
+ function lt(r = {}) {
44
44
  function e(h, p, d, f) {
45
45
  if (typeof d == "number")
46
46
  return f[h].length === d;
@@ -94,15 +94,15 @@ function ut(r = {}) {
94
94
  }
95
95
  return { parseValueSchema: g };
96
96
  }
97
- const lt = {}, ct = {};
98
- ut();
99
- function ht(r, e, t = /* @__PURE__ */ new Map(), n = (u, c, g) => c, i = {}, l = (u) => u) {
100
- return Xe[e.title] = e, Ge[e.title] = n, lt[e.title] = i, ct[e.title] = l, (u = {}) => {
101
- const c = ot(u, e, t), g = Object.keys(r).reduce((h, p) => (h[p] = r[p].default, h), {});
97
+ const ct = {}, ht = {};
98
+ lt();
99
+ function pt(r, e, t = /* @__PURE__ */ new Map(), n = (u, c, g) => c, i = {}, l = (u) => u) {
100
+ return Ge[e.title] = e, We[e.title] = n, ct[e.title] = i, ht[e.title] = l, (u = {}) => {
101
+ const c = ut(u, e, t), g = Object.keys(r).reduce((h, p) => (h[p] = r[p].default, h), {});
102
102
  return Object.assign(g, c);
103
103
  };
104
104
  }
105
- const pt = "https://json-schema.org/draft/2020-12/schema", dt = "https://farris-design.gitee.io/color-picker.schema.json", ft = "color-picker", vt = "A Farris Component", gt = "object", yt = {
105
+ const dt = "https://json-schema.org/draft/2020-12/schema", ft = "https://farris-design.gitee.io/color-picker.schema.json", vt = "color-picker", gt = "A Farris Component", yt = "object", mt = {
106
106
  id: {
107
107
  description: "The unique identifier for color picker",
108
108
  type: "string"
@@ -164,27 +164,27 @@ const pt = "https://json-schema.org/draft/2020-12/schema", dt = "https://farris-
164
164
  type: "boolean",
165
165
  default: !0
166
166
  }
167
- }, mt = [
167
+ }, wt = [
168
168
  "id",
169
169
  "type"
170
- ], wt = {
171
- $schema: pt,
172
- $id: dt,
173
- title: ft,
174
- description: vt,
175
- type: gt,
176
- properties: yt,
177
- required: mt
170
+ ], bt = {
171
+ $schema: dt,
172
+ $id: ft,
173
+ title: vt,
174
+ description: gt,
175
+ type: yt,
176
+ properties: mt,
177
+ required: wt
178
178
  };
179
- function bt(r, e, t) {
179
+ function kt(r, e, t) {
180
180
  return e;
181
181
  }
182
- function kt(r, e) {
182
+ function St(r, e) {
183
183
  return { customClass: e.class, customStyle: e.style };
184
184
  }
185
- const St = /* @__PURE__ */ new Map([
186
- ["appearance", kt]
187
- ]), Pt = "color-picker", Et = "A Farris Component", Mt = "object", Ht = {
185
+ const Pt = /* @__PURE__ */ new Map([
186
+ ["appearance", St]
187
+ ]), Et = "color-picker", Mt = "A Farris Component", Ht = "object", Ot = {
188
188
  basic: {
189
189
  description: "Basic Infomation",
190
190
  title: "基本信息",
@@ -206,11 +206,11 @@ const St = /* @__PURE__ */ new Map([
206
206
  }
207
207
  }
208
208
  }
209
- }, Ot = {
210
- title: Pt,
211
- description: Et,
212
- type: Mt,
213
- categories: Ht
209
+ }, Bt = {
210
+ title: Et,
211
+ description: Mt,
212
+ type: Ht,
213
+ categories: Ot
214
214
  }, Ve = {
215
215
  /** 初始颜色 */
216
216
  color: { type: String, default: "#e1e2e3" },
@@ -223,7 +223,7 @@ const St = /* @__PURE__ */ new Map([
223
223
  /** 颜色值变化事件 */
224
224
  onValueChanged: { type: Function, default: () => {
225
225
  } }
226
- }, We = ht(Ve, wt, St, bt, Ot);
226
+ }, ze = pt(Ve, bt, Pt, kt, Bt);
227
227
  class ce {
228
228
  }
229
229
  class me extends ce {
@@ -662,13 +662,13 @@ function He(r, e, t) {
662
662
  function X(r) {
663
663
  return typeof r == "function";
664
664
  }
665
- function ze(r) {
665
+ function Ce(r) {
666
666
  var e = function(n) {
667
667
  Error.call(n), n.stack = new Error().stack;
668
668
  }, t = r(e);
669
669
  return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
670
670
  }
671
- var we = ze(function(r) {
671
+ var we = Ce(function(r) {
672
672
  return function(t) {
673
673
  r(this), this.message = t ? t.length + ` errors occurred during unsubscription:
674
674
  ` + t.map(function(n, i) {
@@ -724,7 +724,7 @@ var he = function() {
724
724
  for (var f = Ee(d), b = f.next(); !b.done; b = f.next()) {
725
725
  var y = b.value;
726
726
  try {
727
- je(y);
727
+ Ne(y);
728
728
  } catch (v) {
729
729
  l = l ?? [], v instanceof we ? l = He(He([], Me(l)), Me(v.errors)) : l.push(v);
730
730
  }
@@ -746,7 +746,7 @@ var he = function() {
746
746
  var t;
747
747
  if (e && e !== this)
748
748
  if (this.closed)
749
- je(e);
749
+ Ne(e);
750
750
  else {
751
751
  if (e instanceof r) {
752
752
  if (e.closed || e._hasParent(this))
@@ -771,20 +771,20 @@ var he = function() {
771
771
  var e = new r();
772
772
  return e.closed = !0, e;
773
773
  }(), r;
774
- }(), Ce = he.EMPTY;
775
- function Je(r) {
774
+ }(), Je = he.EMPTY;
775
+ function Qe(r) {
776
776
  return r instanceof he || r && "closed" in r && X(r.remove) && X(r.add) && X(r.unsubscribe);
777
777
  }
778
- function je(r) {
778
+ function Ne(r) {
779
779
  X(r) ? r() : r.unsubscribe();
780
780
  }
781
- var Qe = {
781
+ var Ze = {
782
782
  onUnhandledError: null,
783
783
  onStoppedNotification: null,
784
784
  Promise: void 0,
785
785
  useDeprecatedSynchronousErrorHandling: !1,
786
786
  useDeprecatedNextContext: !1
787
- }, Bt = {
787
+ }, Rt = {
788
788
  setTimeout: function(r, e) {
789
789
  for (var t = [], n = 2; n < arguments.length; n++)
790
790
  t[n - 2] = arguments[n];
@@ -795,12 +795,12 @@ var Qe = {
795
795
  },
796
796
  delegate: void 0
797
797
  };
798
- function Rt(r) {
799
- Bt.setTimeout(function() {
798
+ function $t(r) {
799
+ Rt.setTimeout(function() {
800
800
  throw r;
801
801
  });
802
802
  }
803
- function Ne() {
803
+ function Ue() {
804
804
  }
805
805
  function ue(r) {
806
806
  r();
@@ -809,7 +809,7 @@ var xe = function(r) {
809
809
  te(e, r);
810
810
  function e(t) {
811
811
  var n = r.call(this) || this;
812
- return n.isStopped = !1, t ? (n.destination = t, Je(t) && t.add(n)) : n.destination = At, n;
812
+ return n.isStopped = !1, t ? (n.destination = t, Qe(t) && t.add(n)) : n.destination = It, n;
813
813
  }
814
814
  return e.create = function(t, n, i) {
815
815
  return new Be(t, n, i);
@@ -836,11 +836,11 @@ var xe = function(r) {
836
836
  this.unsubscribe();
837
837
  }
838
838
  }, e;
839
- }(he), $t = Function.prototype.bind;
839
+ }(he), Vt = Function.prototype.bind;
840
840
  function be(r, e) {
841
- return $t.call(r, e);
841
+ return Vt.call(r, e);
842
842
  }
843
- var Vt = function() {
843
+ var xt = function() {
844
844
  function r(e) {
845
845
  this.partialObserver = e;
846
846
  }
@@ -883,7 +883,7 @@ var Vt = function() {
883
883
  };
884
884
  else {
885
885
  var c;
886
- l && Qe.useDeprecatedNextContext ? (c = Object.create(t), c.unsubscribe = function() {
886
+ l && Ze.useDeprecatedNextContext ? (c = Object.create(t), c.unsubscribe = function() {
887
887
  return l.unsubscribe();
888
888
  }, u = {
889
889
  next: t.next && be(t.next, c),
@@ -891,35 +891,35 @@ var Vt = function() {
891
891
  complete: t.complete && be(t.complete, c)
892
892
  }) : u = t;
893
893
  }
894
- return l.destination = new Vt(u), l;
894
+ return l.destination = new xt(u), l;
895
895
  }
896
896
  return e;
897
897
  }(xe);
898
898
  function oe(r) {
899
- Rt(r);
899
+ $t(r);
900
900
  }
901
- function xt(r) {
901
+ function At(r) {
902
902
  throw r;
903
903
  }
904
- var At = {
904
+ var It = {
905
905
  closed: !0,
906
- next: Ne,
907
- error: xt,
908
- complete: Ne
909
- }, It = function() {
906
+ next: Ue,
907
+ error: At,
908
+ complete: Ue
909
+ }, jt = function() {
910
910
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
911
911
  }();
912
- function Ze(r) {
912
+ function Ke(r) {
913
913
  return r;
914
914
  }
915
- function jt(r) {
916
- return r.length === 0 ? Ze : r.length === 1 ? r[0] : function(t) {
915
+ function Nt(r) {
916
+ return r.length === 0 ? Ke : r.length === 1 ? r[0] : function(t) {
917
917
  return r.reduce(function(n, i) {
918
918
  return i(n);
919
919
  }, t);
920
920
  };
921
921
  }
922
- var Ue = function() {
922
+ var De = function() {
923
923
  function r(e) {
924
924
  e && (this._subscribe = e);
925
925
  }
@@ -927,7 +927,7 @@ var Ue = function() {
927
927
  var t = new r();
928
928
  return t.source = this, t.operator = e, t;
929
929
  }, r.prototype.subscribe = function(e, t, n) {
930
- var i = this, l = Ut(e) ? e : new Be(e, t, n);
930
+ var i = this, l = Dt(e) ? e : new Be(e, t, n);
931
931
  return ue(function() {
932
932
  var u = i, c = u.operator, g = u.source;
933
933
  l.add(c ? c.call(l, g) : g ? i._subscribe(l) : i._trySubscribe(l));
@@ -940,7 +940,7 @@ var Ue = function() {
940
940
  }
941
941
  }, r.prototype.forEach = function(e, t) {
942
942
  var n = this;
943
- return t = De(t), new t(function(i, l) {
943
+ return t = Le(t), new t(function(i, l) {
944
944
  var u = new Be({
945
945
  next: function(c) {
946
946
  try {
@@ -957,15 +957,15 @@ var Ue = function() {
957
957
  }, r.prototype._subscribe = function(e) {
958
958
  var t;
959
959
  return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(e);
960
- }, r.prototype[It] = function() {
960
+ }, r.prototype[jt] = function() {
961
961
  return this;
962
962
  }, r.prototype.pipe = function() {
963
963
  for (var e = [], t = 0; t < arguments.length; t++)
964
964
  e[t] = arguments[t];
965
- return jt(e)(this);
965
+ return Nt(e)(this);
966
966
  }, r.prototype.toPromise = function(e) {
967
967
  var t = this;
968
- return e = De(e), new e(function(n, i) {
968
+ return e = Le(e), new e(function(n, i) {
969
969
  var l;
970
970
  t.subscribe(function(u) {
971
971
  return l = u;
@@ -979,22 +979,22 @@ var Ue = function() {
979
979
  return new r(e);
980
980
  }, r;
981
981
  }();
982
- function De(r) {
982
+ function Le(r) {
983
983
  var e;
984
- return (e = r ?? Qe.Promise) !== null && e !== void 0 ? e : Promise;
985
- }
986
- function Nt(r) {
987
- return r && X(r.next) && X(r.error) && X(r.complete);
984
+ return (e = r ?? Ze.Promise) !== null && e !== void 0 ? e : Promise;
988
985
  }
989
986
  function Ut(r) {
990
- return r && r instanceof xe || Nt(r) && Je(r);
987
+ return r && X(r.next) && X(r.error) && X(r.complete);
991
988
  }
992
989
  function Dt(r) {
993
- return X(r == null ? void 0 : r.lift);
990
+ return r && r instanceof xe || Ut(r) && Qe(r);
994
991
  }
995
992
  function Lt(r) {
993
+ return X(r == null ? void 0 : r.lift);
994
+ }
995
+ function Ft(r) {
996
996
  return function(e) {
997
- if (Dt(e))
997
+ if (Lt(e))
998
998
  return e.lift(function(t) {
999
999
  try {
1000
1000
  return r(t, this);
@@ -1005,10 +1005,10 @@ function Lt(r) {
1005
1005
  throw new TypeError("Unable to lift unknown Observable type");
1006
1006
  };
1007
1007
  }
1008
- function Ft(r, e, t, n, i) {
1009
- return new qt(r, e, t, n, i);
1008
+ function qt(r, e, t, n, i) {
1009
+ return new Yt(r, e, t, n, i);
1010
1010
  }
1011
- var qt = function(r) {
1011
+ var Yt = function(r) {
1012
1012
  te(e, r);
1013
1013
  function e(t, n, i, l, u, c) {
1014
1014
  var g = r.call(this, t) || this;
@@ -1043,7 +1043,7 @@ var qt = function(r) {
1043
1043
  r.prototype.unsubscribe.call(this), !n && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
1044
1044
  }
1045
1045
  }, e;
1046
- }(xe), Yt = ze(function(r) {
1046
+ }(xe), Xt = Ce(function(r) {
1047
1047
  return function() {
1048
1048
  r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1049
1049
  };
@@ -1054,11 +1054,11 @@ var qt = function(r) {
1054
1054
  return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
1055
1055
  }
1056
1056
  return e.prototype.lift = function(t) {
1057
- var n = new Le(this, this);
1057
+ var n = new Fe(this, this);
1058
1058
  return n.operator = t, n;
1059
1059
  }, e.prototype._throwIfClosed = function() {
1060
1060
  if (this.closed)
1061
- throw new Yt();
1061
+ throw new Xt();
1062
1062
  }, e.prototype.next = function(t) {
1063
1063
  var n = this;
1064
1064
  ue(function() {
@@ -1114,19 +1114,19 @@ var qt = function(r) {
1114
1114
  return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
1115
1115
  }, e.prototype._innerSubscribe = function(t) {
1116
1116
  var n = this, i = this, l = i.hasError, u = i.isStopped, c = i.observers;
1117
- return l || u ? Ce : (this.currentObservers = null, c.push(t), new he(function() {
1117
+ return l || u ? Je : (this.currentObservers = null, c.push(t), new he(function() {
1118
1118
  n.currentObservers = null, Oe(c, t);
1119
1119
  }));
1120
1120
  }, e.prototype._checkFinalizedStatuses = function(t) {
1121
1121
  var n = this, i = n.hasError, l = n.thrownError, u = n.isStopped;
1122
1122
  i ? t.error(l) : u && t.complete();
1123
1123
  }, e.prototype.asObservable = function() {
1124
- var t = new Ue();
1124
+ var t = new De();
1125
1125
  return t.source = this, t;
1126
1126
  }, e.create = function(t, n) {
1127
- return new Le(t, n);
1127
+ return new Fe(t, n);
1128
1128
  }, e;
1129
- }(Ue), Le = function(r) {
1129
+ }(De), Fe = function(r) {
1130
1130
  te(e, r);
1131
1131
  function e(t, n) {
1132
1132
  var i = r.call(this) || this;
@@ -1143,9 +1143,9 @@ var qt = function(r) {
1143
1143
  (n = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || n === void 0 || n.call(t);
1144
1144
  }, e.prototype._subscribe = function(t) {
1145
1145
  var n, i;
1146
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && i !== void 0 ? i : Ce;
1146
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && i !== void 0 ? i : Je;
1147
1147
  }, e;
1148
- }(Ae), Fe = function(r) {
1148
+ }(Ae), qe = function(r) {
1149
1149
  te(e, r);
1150
1150
  function e(t) {
1151
1151
  var n = r.call(this) || this;
@@ -1169,16 +1169,16 @@ var qt = function(r) {
1169
1169
  r.prototype.next.call(this, this._value = t);
1170
1170
  }, e;
1171
1171
  }(Ae);
1172
- function Xt(r, e) {
1173
- return e === void 0 && (e = Ze), r = r ?? Gt, Lt(function(t, n) {
1172
+ function Gt(r, e) {
1173
+ return e === void 0 && (e = Ke), r = r ?? Wt, Ft(function(t, n) {
1174
1174
  var i, l = !0;
1175
- t.subscribe(Ft(n, function(u) {
1175
+ t.subscribe(qt(n, function(u) {
1176
1176
  var c = e(u);
1177
1177
  (l || !r(i, c)) && (l = !1, i = c, n.next(u));
1178
1178
  }));
1179
1179
  });
1180
1180
  }
1181
- function Gt(r, e) {
1181
+ function Wt(r, e) {
1182
1182
  return r === e;
1183
1183
  }
1184
1184
  var R = /* @__PURE__ */ ((r) => (r.hex = "hex", r.hexa = "hexa", r.rgba = "rgba", r.rgb = "rgb", r.hsla = "hsla", r.hsl = "hsl", r.cmyk = "cmyk", r))(R || {});
@@ -1191,10 +1191,10 @@ class Ie {
1191
1191
  /** 初始颜色值 */
1192
1192
  s(this, "initValue", null);
1193
1193
  s(this, "valueChanged", new Ae());
1194
- s(this, "presetsVisibilityChanges", new Fe(!0));
1194
+ s(this, "presetsVisibilityChanges", new qe(!0));
1195
1195
  s(this, "initType", null);
1196
- s(this, "alphaChannelVisibilityChanges", new Fe(!0));
1197
- s(this, "valueChanges", this.valueChanged.asObservable().pipe(Xt(
1196
+ s(this, "alphaChannelVisibilityChanges", new qe(!0));
1197
+ s(this, "valueChanges", this.valueChanged.asObservable().pipe(Gt(
1198
1198
  (e, t) => e.toRgbaString() === t.toRgbaString()
1199
1199
  )));
1200
1200
  s(this, "colorPresets", []);
@@ -1290,14 +1290,14 @@ function j(r, e) {
1290
1290
  return r.toRgbaString();
1291
1291
  }
1292
1292
  }
1293
- const Wt = {
1293
+ const zt = {
1294
1294
  color: { type: Object, default: "" },
1295
1295
  hue: { type: Object, default: "" },
1296
1296
  randomId: { type: String, default: "" },
1297
1297
  allowColorNull: { type: Boolean, default: !1 }
1298
- }, Ke = /* @__PURE__ */ ee({
1298
+ }, Te = /* @__PURE__ */ ee({
1299
1299
  name: "SvPanel",
1300
- props: Wt,
1300
+ props: zt,
1301
1301
  emits: ["update:color"],
1302
1302
  setup(r, e) {
1303
1303
  const t = S(null), n = S(null), i = S(r.randomId), l = S(r.allowColorNull);
@@ -1373,14 +1373,14 @@ const Wt = {
1373
1373
  ref: t
1374
1374
  }, [k("div", null, null)])]);
1375
1375
  }
1376
- }), zt = {
1376
+ }), Ct = {
1377
1377
  color: { type: Object, default: "" },
1378
1378
  hue: { type: Object, default: "" },
1379
1379
  allowColorNull: { type: Boolean, default: !1 },
1380
1380
  onChange: { type: Function }
1381
- }, Te = /* @__PURE__ */ ee({
1381
+ }, _e = /* @__PURE__ */ ee({
1382
1382
  name: "Hue",
1383
- props: zt,
1383
+ props: Ct,
1384
1384
  emits: ["update:color", "update:hue"],
1385
1385
  setup(r, e) {
1386
1386
  const t = S(r.hue), n = S(r.allowColorNull), i = [];
@@ -1458,13 +1458,13 @@ const Wt = {
1458
1458
  ref: d
1459
1459
  }, null)]);
1460
1460
  }
1461
- }), Ct = {
1461
+ }), Jt = {
1462
1462
  color: { type: Object, default: "" },
1463
1463
  randomId: { type: String, default: "" },
1464
1464
  allowColorNull: { type: Boolean, default: !1 }
1465
- }, _e = /* @__PURE__ */ ee({
1465
+ }, et = /* @__PURE__ */ ee({
1466
1466
  name: "Alpha",
1467
- props: Ct,
1467
+ props: Jt,
1468
1468
  emits: ["update:color"],
1469
1469
  setup(r, e) {
1470
1470
  const t = S(null), n = S(null), i = S(r.randomId), l = S(r.allowColorNull), u = (p) => {
@@ -1524,14 +1524,14 @@ const Wt = {
1524
1524
  ref: n
1525
1525
  }, null)]);
1526
1526
  }
1527
- }), Jt = {
1527
+ }), Qt = {
1528
1528
  color: { type: Object, default: "" },
1529
1529
  hue: { type: Object, default: "" },
1530
1530
  colorPresets: { type: Object, default: "" },
1531
1531
  randomId: { type: String, default: "" }
1532
- }, et = /* @__PURE__ */ ee({
1532
+ }, tt = /* @__PURE__ */ ee({
1533
1533
  name: "Preset",
1534
- props: Jt,
1534
+ props: Qt,
1535
1535
  emits: ["update:hue", "update:color"],
1536
1536
  setup(r, e) {
1537
1537
  const t = S(new P()), n = S(r.colorPresets), i = S(r.randomId);
@@ -1632,7 +1632,7 @@ const Wt = {
1632
1632
  var w;
1633
1633
  h.value = !!(y != null && y.includes("a") || (w = v.initType) != null && w.includes("a"));
1634
1634
  }
1635
- qe(() => {
1635
+ Ye(() => {
1636
1636
  v.setColorPresets(c.value || ["#eaecf3"]);
1637
1637
  }), T(() => {
1638
1638
  pe(), z(), de(), ae();
@@ -1699,20 +1699,20 @@ const Wt = {
1699
1699
  style: "top:30px"
1700
1700
  }, [k("div", {
1701
1701
  class: "color-picker-main"
1702
- }, [k(Te, {
1702
+ }, [k(_e, {
1703
1703
  hue: v.hue,
1704
1704
  "onUpdate:hue": (w) => v.hue = w,
1705
1705
  allowColorNull: u.value,
1706
1706
  color: t.value,
1707
1707
  "onUpdate:color": (w) => t.value = w
1708
- }, null), k(Ke, {
1708
+ }, null), k(Te, {
1709
1709
  randomId: f,
1710
1710
  hue: v.hue,
1711
1711
  "onUpdate:hue": (w) => v.hue = w,
1712
1712
  allowColorNull: u.value,
1713
1713
  color: t.value,
1714
1714
  "onUpdate:color": (w) => t.value = w
1715
- }, null)]), k(_e, {
1715
+ }, null)]), k(et, {
1716
1716
  style: C.value,
1717
1717
  randomId: f,
1718
1718
  allowColorNull: u.value,
@@ -1729,7 +1729,7 @@ const Wt = {
1729
1729
  id: "farris-color-picker-plus-input",
1730
1730
  "onUpdate:modelValue": (w) => O.value = w,
1731
1731
  style: "float:none"
1732
- }, null), [[Ye, O.value]]), W(k("div", {
1732
+ }, null), [[Xe, O.value]]), W(k("div", {
1733
1733
  class: "type-icon-btn-wrapper",
1734
1734
  style: "cursor:pointer"
1735
1735
  }, [k("span", {
@@ -1744,7 +1744,7 @@ const Wt = {
1744
1744
  id: "farris-color-picker-plus-sure",
1745
1745
  class: "btn btn-secondary",
1746
1746
  onClick: (w) => ge(w)
1747
- }, [Re("确定")])])]), W(k(et, {
1747
+ }, [Re("确定")])])]), W(k(tt, {
1748
1748
  color: t.value,
1749
1749
  "onUpdate:color": (w) => t.value = w,
1750
1750
  hue: v.hue,
@@ -1770,7 +1770,7 @@ const Wt = {
1770
1770
  }, null)])])])]);
1771
1771
  }
1772
1772
  });
1773
- function Qt(r, e, t) {
1773
+ function Zt(r, e, t) {
1774
1774
  var I;
1775
1775
  function n() {
1776
1776
  }
@@ -1852,7 +1852,7 @@ function Qt(r, e, t) {
1852
1852
  triggerBelongedComponentToDeleteWhenDeleted: S(!1)
1853
1853
  }, u;
1854
1854
  }
1855
- const Zt = /* @__PURE__ */ ee({
1855
+ const Kt = /* @__PURE__ */ ee({
1856
1856
  name: "FColorPickerDesign",
1857
1857
  props: Ve,
1858
1858
  emits: ["valueChanged", "activeChange", "update:color", "update:hue"],
@@ -1861,7 +1861,7 @@ const Zt = /* @__PURE__ */ ee({
1861
1861
  let b = -1, y, v = new Ie("#000000");
1862
1862
  const $ = S(r.color);
1863
1863
  let E, M;
1864
- const A = S(null), N = S(null), I = S(), H = rt("design-item-context"), O = Qt(I, H);
1864
+ const A = S(null), N = S(null), I = S(), H = it("design-item-context"), O = Zt(I, H);
1865
1865
  T(() => {
1866
1866
  I.value.componentInstance = O;
1867
1867
  }), e.expose(O.value);
@@ -1916,7 +1916,7 @@ const Zt = /* @__PURE__ */ ee({
1916
1916
  var m;
1917
1917
  h.value = !!(y != null && y.includes("a") || (m = v.initType) != null && m.includes("a"));
1918
1918
  }
1919
- qe(() => {
1919
+ Ye(() => {
1920
1920
  v.setColorPresets(c.value || ["#eaecf3"]);
1921
1921
  }), T(() => {
1922
1922
  de(), ae(), fe(), ne();
@@ -1978,20 +1978,20 @@ const Zt = /* @__PURE__ */ ee({
1978
1978
  style: "top:30px"
1979
1979
  }, [k("div", {
1980
1980
  class: "color-picker-main"
1981
- }, [k(Te, {
1981
+ }, [k(_e, {
1982
1982
  hue: v.hue,
1983
1983
  "onUpdate:hue": (m) => v.hue = m,
1984
1984
  allowColorNull: u.value,
1985
1985
  color: t.value,
1986
1986
  "onUpdate:color": (m) => t.value = m
1987
- }, null), k(Ke, {
1987
+ }, null), k(Te, {
1988
1988
  randomId: f,
1989
1989
  hue: v.hue,
1990
1990
  "onUpdate:hue": (m) => v.hue = m,
1991
1991
  allowColorNull: u.value,
1992
1992
  color: t.value,
1993
1993
  "onUpdate:color": (m) => t.value = m
1994
- }, null)]), k(_e, {
1994
+ }, null)]), k(et, {
1995
1995
  style: pe.value,
1996
1996
  randomId: f,
1997
1997
  allowColorNull: u.value,
@@ -2007,7 +2007,7 @@ const Zt = /* @__PURE__ */ ee({
2007
2007
  id: "farris-color-picker-plus-input",
2008
2008
  "onUpdate:modelValue": (m) => V.value = m,
2009
2009
  style: "float:none"
2010
- }, null), [[Ye, V.value]]), W(k("div", {
2010
+ }, null), [[Xe, V.value]]), W(k("div", {
2011
2011
  class: "type-icon-btn-wrapper",
2012
2012
  style: "cursor:pointer"
2013
2013
  }, [k("span", {
@@ -2022,7 +2022,7 @@ const Zt = /* @__PURE__ */ ee({
2022
2022
  id: "farris-color-picker-plus-sure",
2023
2023
  class: "btn btn-secondary",
2024
2024
  onClick: ye
2025
- }, [Re("确定")])])]), W(k(et, {
2025
+ }, [Re("确定")])])]), W(k(tt, {
2026
2026
  color: t.value,
2027
2027
  "onUpdate:color": (m) => t.value = m,
2028
2028
  colorPresets: v.presets,
@@ -2046,20 +2046,20 @@ const Zt = /* @__PURE__ */ ee({
2046
2046
  style: J.value
2047
2047
  }, null)])])])]);
2048
2048
  }
2049
- }), Kt = (r) => {
2049
+ }), Tt = (r) => {
2050
2050
  const e = r;
2051
2051
  return e.install = function(t) {
2052
2052
  t.component(e.name, r);
2053
2053
  }, r;
2054
2054
  };
2055
2055
  le.register = (r, e, t) => {
2056
- r["color-picker"] = le, e["color-picker"] = We;
2056
+ r["color-picker"] = le, e["color-picker"] = ze;
2057
2057
  };
2058
2058
  le.registerDesigner = (r, e, t) => {
2059
- r["color-picker"] = Zt, e["color-picker"] = We;
2059
+ r["color-picker"] = Kt, e["color-picker"] = ze;
2060
2060
  };
2061
- const tn = Kt(le);
2061
+ const nn = Tt(le);
2062
2062
  export {
2063
2063
  le as FColorPicker,
2064
- tn as default
2064
+ nn as default
2065
2065
  };