vue-data-ui 3.17.1 → 3.17.3

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 (149) hide show
  1. package/README.md +4 -3
  2. package/dist/{PackageVersion-BsoZuuHw.js → PackageVersion-DP_kfXUM.js} +1 -1
  3. package/dist/{RecursiveLinks-BYh0tHDW.js → RecursiveLinks-BDwyYfP-.js} +33 -28
  4. package/dist/components/vue-ui-3d-bar.js +1 -1
  5. package/dist/components/vue-ui-accordion.js +1 -1
  6. package/dist/components/vue-ui-age-pyramid.js +1 -1
  7. package/dist/components/vue-ui-annotator.js +1 -1
  8. package/dist/components/vue-ui-bullet.js +1 -1
  9. package/dist/components/vue-ui-bump.js +1 -1
  10. package/dist/components/vue-ui-candlestick.js +1 -1
  11. package/dist/components/vue-ui-carousel-table.js +1 -1
  12. package/dist/components/vue-ui-chestnut.js +1 -1
  13. package/dist/components/vue-ui-chord.js +1 -1
  14. package/dist/components/vue-ui-circle-pack.js +1 -1
  15. package/dist/components/vue-ui-cursor.js +1 -1
  16. package/dist/components/vue-ui-dag.js +1 -1
  17. package/dist/components/vue-ui-dashboard.js +1 -1
  18. package/dist/components/vue-ui-digits.js +1 -1
  19. package/dist/components/vue-ui-donut-evolution.js +1 -1
  20. package/dist/components/vue-ui-donut.js +1 -1
  21. package/dist/components/vue-ui-dumbbell.js +1 -1
  22. package/dist/components/vue-ui-flow.js +1 -1
  23. package/dist/components/vue-ui-funnel.js +1 -1
  24. package/dist/components/vue-ui-galaxy.js +1 -1
  25. package/dist/components/vue-ui-gauge.js +1 -1
  26. package/dist/components/vue-ui-geo.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-pattern-seed.js +5 -0
  39. package/dist/components/vue-ui-quadrant.js +1 -1
  40. package/dist/components/vue-ui-quick-chart.js +1 -1
  41. package/dist/components/vue-ui-radar.js +1 -1
  42. package/dist/components/vue-ui-rating.js +1 -1
  43. package/dist/components/vue-ui-relation-circle.js +1 -1
  44. package/dist/components/vue-ui-ridgeline.js +1 -1
  45. package/dist/components/vue-ui-rings.js +1 -1
  46. package/dist/components/vue-ui-scatter.js +1 -1
  47. package/dist/components/vue-ui-skeleton.js +1 -1
  48. package/dist/components/vue-ui-smiley.js +1 -1
  49. package/dist/components/vue-ui-spark-trend.js +1 -1
  50. package/dist/components/vue-ui-sparkbar.js +1 -1
  51. package/dist/components/vue-ui-sparkgauge.js +1 -1
  52. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  53. package/dist/components/vue-ui-sparkline.js +1 -1
  54. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  55. package/dist/components/vue-ui-stackbar.js +1 -1
  56. package/dist/components/vue-ui-stackline.js +1 -1
  57. package/dist/components/vue-ui-strip-plot.js +1 -1
  58. package/dist/components/vue-ui-table-heatmap.js +1 -1
  59. package/dist/components/vue-ui-table-sparkline.js +1 -1
  60. package/dist/components/vue-ui-table.js +1 -1
  61. package/dist/components/vue-ui-thermometer.js +1 -1
  62. package/dist/components/vue-ui-timer.js +1 -1
  63. package/dist/components/vue-ui-tiremarks.js +1 -1
  64. package/dist/components/vue-ui-treemap.js +1 -1
  65. package/dist/components/vue-ui-vertical-bar.js +1 -1
  66. package/dist/components/vue-ui-waffle.js +1 -1
  67. package/dist/components/vue-ui-wheel.js +1 -1
  68. package/dist/components/vue-ui-word-cloud.js +1 -1
  69. package/dist/components/vue-ui-world.js +1 -1
  70. package/dist/components/vue-ui-xy-canvas.js +1 -1
  71. package/dist/components/vue-ui-xy.js +1 -1
  72. package/dist/patternUtils-DtjWtDHU.js +532 -0
  73. package/dist/style.css +1 -1
  74. package/dist/types/utils.d.ts +49 -1
  75. package/dist/types/vue-data-ui.d.ts +20 -7
  76. package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
  77. package/dist/{useConfig-ChRble71.js → useConfig-C40HvGpD.js} +3 -1
  78. package/dist/{useObjectBindings-BVFCsss5.js → useObjectBindings-DOokNdQ_.js} +1 -1
  79. package/dist/utils.js +28 -25
  80. package/dist/{vue-data-ui-QwRPnKF7.js → vue-data-ui-kiw3y7gG.js} +67 -67
  81. package/dist/vue-data-ui.js +102 -98
  82. package/dist/{vue-ui-3d-bar-BfNCTkJM.js → vue-ui-3d-bar-CWaSxiqw.js} +2 -2
  83. package/dist/{vue-ui-accordion-CnDW2UQL.js → vue-ui-accordion-DDuJT1xA.js} +1 -1
  84. package/dist/{vue-ui-age-pyramid-xeDAxQtf.js → vue-ui-age-pyramid-B6S8XYmi.js} +2 -2
  85. package/dist/{vue-ui-annotator-BA4hRkfX.js → vue-ui-annotator-BdmTltyl.js} +2 -2
  86. package/dist/{vue-ui-bullet-wZd5-rn-.js → vue-ui-bullet-_zHE8JoR.js} +2 -2
  87. package/dist/{vue-ui-bump-z7nLFbIM.js → vue-ui-bump-BX-bnhix.js} +2 -2
  88. package/dist/{vue-ui-candlestick-HMOUtySY.js → vue-ui-candlestick-CgtRA-EI.js} +2 -2
  89. package/dist/{vue-ui-carousel-table-DMuP07s-.js → vue-ui-carousel-table-BnwS5nMG.js} +2 -2
  90. package/dist/{vue-ui-chestnut-B4irb5V2.js → vue-ui-chestnut-3JG1dMba.js} +2 -2
  91. package/dist/{vue-ui-chord-BrW7tRqY.js → vue-ui-chord-DsA-qrl6.js} +2 -2
  92. package/dist/{vue-ui-circle-pack-QxFpROdc.js → vue-ui-circle-pack-BSHUo-L7.js} +2 -2
  93. package/dist/{vue-ui-cursor-DFp4uEMQ.js → vue-ui-cursor-Gqh_JBGA.js} +2 -2
  94. package/dist/{vue-ui-dag-Dr369vOS.js → vue-ui-dag-BTB1DCrs.js} +2 -2
  95. package/dist/{vue-ui-dashboard-NRPnkhg3.js → vue-ui-dashboard-xAW1vWaB.js} +65 -65
  96. package/dist/{vue-ui-digits-DnFPYC_f.js → vue-ui-digits-D2wQOhMt.js} +2 -2
  97. package/dist/{vue-ui-donut-CarXGPCp.js → vue-ui-donut-UUgV1d0_.js} +2 -2
  98. package/dist/{vue-ui-donut-evolution-B6JpnTLM.js → vue-ui-donut-evolution-B0EEKpQC.js} +2 -2
  99. package/dist/{vue-ui-dumbbell-B77a5xel.js → vue-ui-dumbbell-Ct2RXkIX.js} +2 -2
  100. package/dist/{vue-ui-flow-u-d87wQV.js → vue-ui-flow-Ci_h8KNf.js} +2 -2
  101. package/dist/{vue-ui-funnel-CtLaACja.js → vue-ui-funnel-Ciy-udDH.js} +2 -2
  102. package/dist/{vue-ui-galaxy-WHdw5nGN.js → vue-ui-galaxy-DJ6_911b.js} +2 -2
  103. package/dist/{vue-ui-gauge-Bz5mj8lp.js → vue-ui-gauge-CJ5OH_wa.js} +2 -2
  104. package/dist/{vue-ui-geo-_xkrOV2I.js → vue-ui-geo-B-8UJvBt.js} +2 -2
  105. package/dist/{vue-ui-gizmo-DHJflepE.js → vue-ui-gizmo-BgdUIouA.js} +2 -2
  106. package/dist/{vue-ui-heatmap-ZwHHJWae.js → vue-ui-heatmap-ZdZ22EDj.js} +3 -3
  107. package/dist/{vue-ui-history-plot-CrjjEQ7W.js → vue-ui-history-plot-D1vpgQ8I.js} +2 -2
  108. package/dist/{vue-ui-horizontal-bar-mNda_AP8.js → vue-ui-horizontal-bar-C1gYSz7t.js} +3 -3
  109. package/dist/{vue-ui-kpi-Dw9tUq7D.js → vue-ui-kpi-B0sOyO7s.js} +2 -2
  110. package/dist/{vue-ui-mini-loader-CPfZsqWP.js → vue-ui-mini-loader-DrROXJIX.js} +1 -1
  111. package/dist/{vue-ui-molecule-KD4eBVpd.js → vue-ui-molecule-C2wW_JqJ.js} +110 -109
  112. package/dist/{vue-ui-mood-radar-CFaoRvfp.js → vue-ui-mood-radar-Bgd30qfN.js} +2 -2
  113. package/dist/{vue-ui-nested-donuts-goSM60if.js → vue-ui-nested-donuts-CDtrnUDs.js} +2 -2
  114. package/dist/{vue-ui-onion-hzfd8mmr.js → vue-ui-onion-CeLy3EjT.js} +2 -2
  115. package/dist/{vue-ui-parallel-coordinate-plot-KimsvB0z.js → vue-ui-parallel-coordinate-plot-rRuHDWD1.js} +2 -2
  116. package/dist/vue-ui-pattern-seed-lL5yS7nX.js +36 -0
  117. package/dist/{vue-ui-quadrant-BBCRnDi3.js → vue-ui-quadrant-CqcWTgh-.js} +2 -2
  118. package/dist/{vue-ui-quick-chart-Bestt35B.js → vue-ui-quick-chart-Bbdoq3j3.js} +2 -2
  119. package/dist/{vue-ui-radar-Cg-blCRM.js → vue-ui-radar-BF2eWMEl.js} +2 -2
  120. package/dist/{vue-ui-rating-DiLLVHq3.js → vue-ui-rating-C1f6x_PD.js} +1 -1
  121. package/dist/{vue-ui-relation-circle-C1hu5buI.js → vue-ui-relation-circle-D3jsasRD.js} +2 -2
  122. package/dist/{vue-ui-ridgeline-CihubDmE.js → vue-ui-ridgeline-Lhxi4BNZ.js} +2 -2
  123. package/dist/{vue-ui-rings-CuoGouLA.js → vue-ui-rings-D0tnHXEe.js} +2 -2
  124. package/dist/{vue-ui-scatter-D7XDXi9q.js → vue-ui-scatter-CIK8j5sT.js} +2 -2
  125. package/dist/{vue-ui-skeleton-Df9kRTno.js → vue-ui-skeleton-BD5hXmIt.js} +2 -2
  126. package/dist/{vue-ui-smiley-BioqmYwT.js → vue-ui-smiley-M5Gn70_Z.js} +1 -1
  127. package/dist/{vue-ui-spark-trend-CoIhut26.js → vue-ui-spark-trend-exj63CUB.js} +2 -2
  128. package/dist/{vue-ui-sparkbar-hzFfEGbB.js → vue-ui-sparkbar-D3UXwhmT.js} +2 -2
  129. package/dist/{vue-ui-sparkgauge-CUYvDR0P.js → vue-ui-sparkgauge-BsQY5Cwp.js} +2 -2
  130. package/dist/{vue-ui-sparkhistogram-CUhHTlT2.js → vue-ui-sparkhistogram-4oHi6IHt.js} +2 -2
  131. package/dist/{vue-ui-sparkline-DLprVCRI.js → vue-ui-sparkline-BypShxpX.js} +2 -2
  132. package/dist/{vue-ui-sparkstackbar-BAiNL0YG.js → vue-ui-sparkstackbar-8dpxOXr_.js} +2 -2
  133. package/dist/{vue-ui-stackbar-CW5vdT-C.js → vue-ui-stackbar-BKLo9L3P.js} +2 -2
  134. package/dist/{vue-ui-stackline-6Ck5Pcab.js → vue-ui-stackline-CSBogzBf.js} +2 -2
  135. package/dist/{vue-ui-strip-plot-DwWEI_oX.js → vue-ui-strip-plot-BQiNmxPk.js} +2 -2
  136. package/dist/{vue-ui-table-B4XcIRq_.js → vue-ui-table-CKlHkISC.js} +3 -3
  137. package/dist/{vue-ui-table-heatmap-Da6sqBlI.js → vue-ui-table-heatmap-C6rSAGDu.js} +1 -1
  138. package/dist/{vue-ui-table-sparkline-CD4I2kGA.js → vue-ui-table-sparkline-DHPemUVJ.js} +2 -2
  139. package/dist/{vue-ui-thermometer-BsedVnae.js → vue-ui-thermometer-Cy1oHbQ-.js} +2 -2
  140. package/dist/{vue-ui-timer-DkAprhb_.js → vue-ui-timer-DsYVGo-1.js} +2 -2
  141. package/dist/{vue-ui-tiremarks-DLP287zM.js → vue-ui-tiremarks-BvEM8AvM.js} +2 -2
  142. package/dist/{vue-ui-treemap-Cy-WXcRy.js → vue-ui-treemap-5qrvks6n.js} +2 -2
  143. package/dist/{vue-ui-waffle-CdrJhbWb.js → vue-ui-waffle-Uo1RM5Yy.js} +2 -2
  144. package/dist/{vue-ui-wheel-D8NMMTEo.js → vue-ui-wheel-Cood5EN7.js} +2 -2
  145. package/dist/{vue-ui-word-cloud-CD6qLQQ3.js → vue-ui-word-cloud-BrQKo4eQ.js} +2 -2
  146. package/dist/{vue-ui-world-DP1bH4Zv.js → vue-ui-world-Cjm9SD0h.js} +2 -2
  147. package/dist/{vue-ui-xy-CgwzrN2l.js → vue-ui-xy-BAlrZ3W9.js} +3 -3
  148. package/dist/{vue-ui-xy-canvas-DFhxqDzK.js → vue-ui-xy-canvas-BR-Qogdl.js} +2 -2
  149. package/package.json +5 -3
@@ -1,4 +1,4 @@
1
- import { default as f, default as t } from "../vue-ui-xy-canvas-DFhxqDzK.js";
1
+ import { default as f, default as t } from "../vue-ui-xy-canvas-BR-Qogdl.js";
2
2
  export {
3
3
  f as VueUiXyCanvas,
4
4
  t as default
@@ -1,4 +1,4 @@
1
- import { default as f, default as t } from "../vue-ui-xy-CgwzrN2l.js";
1
+ import { default as f, default as t } from "../vue-ui-xy-BAlrZ3W9.js";
2
2
  export {
3
3
  f as VueUiXy,
4
4
  t as default
@@ -0,0 +1,532 @@
1
+ function A(n) {
2
+ const a = String(n ?? "");
3
+ let t = 2166136261;
4
+ for (let s = 0; s < a.length; s += 1)
5
+ t ^= a.charCodeAt(s), t = Math.imul(t, 16777619);
6
+ return t >>> 0;
7
+ }
8
+ function D(n) {
9
+ let a = (Number.isFinite(n) ? n : 0) >>> 0;
10
+ return function() {
11
+ a += 1831565813;
12
+ let s = a;
13
+ return s = Math.imul(
14
+ s ^ s >>> 15,
15
+ s | 1
16
+ ), s ^= s + Math.imul(s ^ s >>> 7, s | 61), ((s ^ s >>> 14) >>> 0) / 4294967296;
17
+ };
18
+ }
19
+ function e(n, a, t) {
20
+ if (!Array.isArray(n) || n.length === 0)
21
+ return console.error("VueUiPatternSeed - pickValue requires a non-empty array"), t;
22
+ const s = typeof a == "function" ? a() : 0, c = Math.floor(s * n.length), r = n[c];
23
+ return r === void 0 ? (console.error("VueUiPatternSeed - pickValue selected an invalid index"), t ?? n[0]) : r;
24
+ }
25
+ function d(n) {
26
+ return String(n ?? "").replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
27
+ }
28
+ function h(n, a, t, s, c, r, u) {
29
+ const $ = d(c);
30
+ return `<line x1="${n}" y1="${a}" x2="${t}" y2="${s}" stroke="${$}" stroke-width="${r}" opacity="${u}" shape-rendering="crispEdges" stroke-linecap="round" stroke-linejoin="round" />`;
31
+ }
32
+ function m(n, a, t, s, c) {
33
+ const r = d(s);
34
+ return `<circle cx="${n}" cy="${a}" r="${t}" fill="${r}" opacity="${c}" />`;
35
+ }
36
+ function U(n, a, t, s, c) {
37
+ const r = d(a), u = d(t);
38
+ return `<path d="${n}" fill="${r}" stroke="${u}" stroke-width="${s}" opacity="${c}" stroke-linecap="round" stroke-linejoin="round" />`;
39
+ }
40
+ function k(n, a, t, s, c, r, u = 0, $ = n + t / 2, p = a + s / 2) {
41
+ const P = d(c), M = u ? ` transform="rotate(${u} ${$} ${p})"` : "";
42
+ return `<rect x="${n}" y="${a}" width="${t}" height="${s}" fill="${P}" opacity="${r}"${M} />`;
43
+ }
44
+ function f(n, a, t, s, c) {
45
+ const r = t / 2, u = [
46
+ `M ${n} ${a - r}`,
47
+ `L ${n + r} ${a}`,
48
+ `L ${n} ${a + r}`,
49
+ `L ${n - r} ${a}`,
50
+ "Z"
51
+ ].join(" ");
52
+ return U(u, s, "none", 0, c);
53
+ }
54
+ function w(n, a) {
55
+ return Number.isFinite(n) && n > 0 ? n : a;
56
+ }
57
+ function L(n, a) {
58
+ let t = w(n, 8), s = w(a, 20);
59
+ if (t > s) {
60
+ const c = t;
61
+ t = s, s = c;
62
+ }
63
+ return {
64
+ minimumSize: t,
65
+ maximumSize: s
66
+ };
67
+ }
68
+ function q(n, a, t, s) {
69
+ const c = e(
70
+ [
71
+ n * 0.08,
72
+ n * 0.1,
73
+ n * 0.12
74
+ ],
75
+ s,
76
+ n * 0.1
77
+ );
78
+ switch (e(
79
+ [
80
+ "grid",
81
+ "offsetGrid",
82
+ "corners",
83
+ "centered"
84
+ ],
85
+ s,
86
+ "grid"
87
+ )) {
88
+ case "offsetGrid":
89
+ return [
90
+ m(n * 0.25, n * 0.25, c, a, t),
91
+ m(n * 0.75, n * 0.25, c, a, t),
92
+ m(n * 0.5, n * 0.5, c, a, t),
93
+ m(n * 0.25, n * 0.75, c, a, t),
94
+ m(n * 0.75, n * 0.75, c, a, t)
95
+ ].join("");
96
+ case "corners":
97
+ return [
98
+ m(n * 0.2, n * 0.2, c, a, t),
99
+ m(n * 0.8, n * 0.2, c, a, t),
100
+ m(n * 0.2, n * 0.8, c, a, t),
101
+ m(n * 0.8, n * 0.8, c, a, t)
102
+ ].join("");
103
+ case "centered":
104
+ return [
105
+ m(n * 0.5, n * 0.2, c, a, t),
106
+ m(n * 0.2, n * 0.5, c, a, t),
107
+ m(n * 0.5, n * 0.5, c, a, t),
108
+ m(n * 0.8, n * 0.5, c, a, t),
109
+ m(n * 0.5, n * 0.8, c, a, t)
110
+ ].join("");
111
+ default:
112
+ return [
113
+ m(n * 0.25, n * 0.25, c, a, t),
114
+ m(n * 0.75, n * 0.25, c, a, t),
115
+ m(n * 0.25, n * 0.75, c, a, t),
116
+ m(n * 0.75, n * 0.75, c, a, t)
117
+ ].join("");
118
+ }
119
+ }
120
+ function E(n, a, t, s, c) {
121
+ const r = e(
122
+ [
123
+ "diagonal",
124
+ "vertical",
125
+ "horizontal",
126
+ "crosshatch",
127
+ "grid"
128
+ ],
129
+ c,
130
+ "diagonal"
131
+ ), u = e(
132
+ [
133
+ n * 0.28,
134
+ n * 0.33,
135
+ n * 0.4,
136
+ n * 0.5
137
+ ],
138
+ c,
139
+ n * 0.33
140
+ );
141
+ switch (r) {
142
+ case "vertical":
143
+ return [0, u, u * 2].map(
144
+ (p) => h(
145
+ p,
146
+ 0,
147
+ p,
148
+ n,
149
+ a,
150
+ t,
151
+ s
152
+ )
153
+ ).join("");
154
+ case "horizontal":
155
+ return [0, u, u * 2].map(
156
+ (p) => h(
157
+ 0,
158
+ p,
159
+ n,
160
+ p,
161
+ a,
162
+ t,
163
+ s
164
+ )
165
+ ).join("");
166
+ case "crosshatch":
167
+ return [
168
+ h(
169
+ -n,
170
+ n,
171
+ n,
172
+ -n,
173
+ a,
174
+ t,
175
+ s
176
+ ),
177
+ h(
178
+ 0,
179
+ n,
180
+ n,
181
+ 0,
182
+ a,
183
+ t,
184
+ s
185
+ ),
186
+ h(
187
+ 0,
188
+ 0,
189
+ n,
190
+ n,
191
+ a,
192
+ t,
193
+ s * 0.8
194
+ ),
195
+ h(
196
+ n,
197
+ 0,
198
+ 0,
199
+ n,
200
+ a,
201
+ t * 0.8,
202
+ s * 0.8
203
+ )
204
+ ].join("");
205
+ case "grid":
206
+ return [
207
+ h(
208
+ n * 0.5,
209
+ 0,
210
+ n * 0.5,
211
+ n,
212
+ a,
213
+ t,
214
+ s
215
+ ),
216
+ h(
217
+ 0,
218
+ n * 0.5,
219
+ n,
220
+ n * 0.5,
221
+ a,
222
+ t,
223
+ s
224
+ )
225
+ ].join("");
226
+ default:
227
+ return [
228
+ h(
229
+ -n,
230
+ n,
231
+ n,
232
+ -n,
233
+ a,
234
+ t,
235
+ s
236
+ ),
237
+ h(
238
+ 0,
239
+ n,
240
+ n,
241
+ 0,
242
+ a,
243
+ t,
244
+ s
245
+ ),
246
+ h(
247
+ 0,
248
+ n * 2,
249
+ n * 2,
250
+ 0,
251
+ a,
252
+ t,
253
+ s
254
+ )
255
+ ].join("");
256
+ }
257
+ }
258
+ function G(n, a, t, s) {
259
+ const c = e(
260
+ [
261
+ "diamonds",
262
+ "squares",
263
+ "mixed"
264
+ ],
265
+ s,
266
+ "diamonds"
267
+ ), r = e(
268
+ [
269
+ n * 0.16,
270
+ n * 0.2,
271
+ n * 0.24
272
+ ],
273
+ s,
274
+ n * 0.2
275
+ );
276
+ switch (c) {
277
+ case "squares":
278
+ return [
279
+ k(
280
+ n * 0.2,
281
+ n * 0.2,
282
+ r,
283
+ r,
284
+ a,
285
+ t
286
+ ),
287
+ k(
288
+ n * 0.65,
289
+ n * 0.2,
290
+ r,
291
+ r,
292
+ a,
293
+ t
294
+ ),
295
+ k(
296
+ n * 0.2,
297
+ n * 0.65,
298
+ r,
299
+ r,
300
+ a,
301
+ t
302
+ ),
303
+ k(
304
+ n * 0.65,
305
+ n * 0.65,
306
+ r,
307
+ r,
308
+ a,
309
+ t
310
+ )
311
+ ].join("");
312
+ case "mixed":
313
+ return [
314
+ f(
315
+ n * 0.3,
316
+ n * 0.3,
317
+ r,
318
+ a,
319
+ t
320
+ ),
321
+ k(
322
+ n * 0.6,
323
+ n * 0.2,
324
+ r,
325
+ r,
326
+ a,
327
+ t
328
+ ),
329
+ f(
330
+ n * 0.7,
331
+ n * 0.7,
332
+ r,
333
+ a,
334
+ t
335
+ )
336
+ ].join("");
337
+ default:
338
+ return [
339
+ f(
340
+ n * 0.25,
341
+ n * 0.25,
342
+ r,
343
+ a,
344
+ t
345
+ ),
346
+ f(
347
+ n * 0.75,
348
+ n * 0.25,
349
+ r,
350
+ a,
351
+ t
352
+ ),
353
+ f(
354
+ n * 0.25,
355
+ n * 0.75,
356
+ r,
357
+ a,
358
+ t
359
+ ),
360
+ f(
361
+ n * 0.75,
362
+ n * 0.75,
363
+ r,
364
+ a,
365
+ t
366
+ )
367
+ ].join("");
368
+ }
369
+ }
370
+ function O(n, a, t) {
371
+ if (!e(
372
+ [!0, !1, !1],
373
+ t,
374
+ !1
375
+ ))
376
+ return "";
377
+ const c = e(
378
+ [
379
+ "singleDot",
380
+ "cornerDiamond",
381
+ "softBand"
382
+ ],
383
+ t,
384
+ "singleDot"
385
+ ), r = e(
386
+ [0.12, 0.16, 0.2],
387
+ t,
388
+ 0.16
389
+ );
390
+ switch (c) {
391
+ case "cornerDiamond":
392
+ return f(
393
+ n * 0.5,
394
+ n * 0.5,
395
+ n * 0.3,
396
+ a,
397
+ r
398
+ );
399
+ case "softBand":
400
+ return k(
401
+ 0,
402
+ n * 0.4,
403
+ n,
404
+ n * 0.2,
405
+ a,
406
+ r
407
+ );
408
+ default:
409
+ return m(
410
+ n * 0.5,
411
+ n * 0.5,
412
+ n * 0.12,
413
+ a,
414
+ r
415
+ );
416
+ }
417
+ }
418
+ function T(n, a, t) {
419
+ const s = e(
420
+ [1, 1.25, 1.5, 1.75],
421
+ t,
422
+ 1.25
423
+ ), c = e(
424
+ [0.4, 0.5, 0.6, 0.7],
425
+ t,
426
+ 0.5
427
+ ), r = e(
428
+ [
429
+ "lines",
430
+ "dots",
431
+ "shapes"
432
+ ],
433
+ t,
434
+ "lines"
435
+ );
436
+ let u = "";
437
+ r === "lines" ? u = E(
438
+ n,
439
+ a,
440
+ s,
441
+ c,
442
+ t
443
+ ) : r === "dots" ? u = q(
444
+ n,
445
+ a,
446
+ c,
447
+ t
448
+ ) : u = G(
449
+ n,
450
+ a,
451
+ c,
452
+ t
453
+ );
454
+ const $ = O(
455
+ n,
456
+ a,
457
+ t
458
+ );
459
+ return `${u}${$}`;
460
+ }
461
+ function B(n, a = {}) {
462
+ try {
463
+ const t = a?.disambiguator ?? "", s = `${String(n ?? "")}::${String(t)}`, c = a?.foregroundColor ?? "#111111", r = a?.backgroundColor ?? "transparent", { minimumSize: u, maximumSize: $ } = L(
464
+ a?.minimumSize,
465
+ a?.maximumSize
466
+ ), p = A(s), P = D(p), M = [];
467
+ for (let x = u; x <= $; x += 2)
468
+ M.push(x);
469
+ const j = e(
470
+ M.length > 0 ? M : [8],
471
+ P,
472
+ 8
473
+ ), F = e(
474
+ [0, 0, 0, 15, 30, 45, 60, 90],
475
+ P,
476
+ 0
477
+ ), V = [];
478
+ if (r !== "transparent") {
479
+ const x = d(r);
480
+ V.push(
481
+ `<rect x="0" y="0" width="${j}" height="${j}" fill="${x}" />`
482
+ );
483
+ }
484
+ return V.push(
485
+ T(
486
+ j,
487
+ c,
488
+ P
489
+ )
490
+ ), {
491
+ width: j,
492
+ height: j,
493
+ rotation: F,
494
+ patternType: "prettyUniquePattern",
495
+ contentMarkup: V.join("")
496
+ };
497
+ } catch (t) {
498
+ return console.error("VueUiPatternSeed - Failed to create seeded SVG pattern", t), {
499
+ width: 8,
500
+ height: 8,
501
+ rotation: 0,
502
+ patternType: "prettyUniquePattern",
503
+ contentMarkup: ""
504
+ };
505
+ }
506
+ }
507
+ function b({
508
+ id: n,
509
+ seed: a,
510
+ foregroundColor: t,
511
+ backgroundColor: s,
512
+ maxSize: c,
513
+ minSize: r,
514
+ disambiguator: u
515
+ }) {
516
+ try {
517
+ const $ = B(a, {
518
+ foregroundColor: t ?? "#1A1A1A",
519
+ backgroundColor: s ?? "transparent",
520
+ minimumSize: r,
521
+ maximumSize: c,
522
+ disambiguator: u
523
+ });
524
+ return `<defs><pattern id="${d(n)}" patternUnits="userSpaceOnUse" width="${$.width}" height="${$.height}" patternTransform="rotate(${$.rotation})">${$.contentMarkup}</pattern></defs>`;
525
+ } catch ($) {
526
+ return console.error("VueUiPatternSeed - Failed to create chart pattern slot markup", $), `<defs><pattern id="${d(n)}" patternUnits="userSpaceOnUse" width="8" height="8" patternTransform="rotate(0)"></pattern></defs>`;
527
+ }
528
+ }
529
+ export {
530
+ B as a,
531
+ b as c
532
+ };