vue-amazing-ui 2.2.11 → 2.2.13

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 (193) hide show
  1. package/dist/index.iife.js +144 -69
  2. package/dist/index.js +4925 -4804
  3. package/dist/index.umd.cjs +139 -64
  4. package/dist/style.css +1 -1
  5. package/es/backtop/BackTop.css +1 -1
  6. package/es/backtop/BackTop.vue.js +1 -1
  7. package/es/backtop/BackTop.vue2.js +7 -7
  8. package/es/button/Button.css +1 -1
  9. package/es/button/Button.vue.js +2 -2
  10. package/es/button/Button.vue2.js +34 -34
  11. package/es/calendar/Calendar.css +1 -1
  12. package/es/calendar/Calendar.d.ts +6 -0
  13. package/es/calendar/Calendar.vue.js +2 -2
  14. package/es/calendar/Calendar.vue2.js +130 -126
  15. package/es/calendar/index.d.ts +9 -0
  16. package/es/collapse/Collapse.css +1 -1
  17. package/es/collapse/Collapse.vue.js +2 -2
  18. package/es/colorpicker/ColorPicker.css +1 -1
  19. package/es/colorpicker/ColorPicker.d.ts +4 -0
  20. package/es/colorpicker/ColorPicker.vue.js +2 -2
  21. package/es/colorpicker/ColorPicker.vue2.js +244 -234
  22. package/es/colorpicker/index.d.ts +6 -0
  23. package/es/floatbutton/FloatButton.css +1 -1
  24. package/es/floatbutton/FloatButton.vue.js +2 -2
  25. package/es/floatbutton/FloatButton.vue2.js +5 -3
  26. package/es/image/Image.css +1 -1
  27. package/es/image/Image.vue.js +1 -1
  28. package/es/image/Image.vue2.js +25 -21
  29. package/es/input/Input.css +1 -1
  30. package/es/input/Input.vue.js +2 -2
  31. package/es/input/Input.vue2.js +35 -29
  32. package/es/inputnumber/InputNumber.css +1 -1
  33. package/es/inputnumber/InputNumber.vue.js +2 -2
  34. package/es/inputnumber/InputNumber.vue2.js +41 -35
  35. package/es/inputsearch/InputSearch.css +1 -1
  36. package/es/inputsearch/InputSearch.vue.js +1 -1
  37. package/es/inputsearch/InputSearch.vue2.js +31 -25
  38. package/es/message/Message.css +1 -1
  39. package/es/message/Message.vue.js +2 -2
  40. package/es/message/Message.vue2.js +38 -32
  41. package/es/modal/Modal.css +1 -1
  42. package/es/modal/Modal.vue.js +1 -1
  43. package/es/modal/Modal.vue2.js +39 -29
  44. package/es/notification/Notification.css +1 -1
  45. package/es/notification/Notification.vue.js +1 -1
  46. package/es/notification/Notification.vue2.js +36 -27
  47. package/es/pagination/Pagination.css +1 -1
  48. package/es/pagination/Pagination.d.ts +5 -0
  49. package/es/pagination/Pagination.vue.js +1 -1
  50. package/es/pagination/Pagination.vue2.js +123 -103
  51. package/es/pagination/index.d.ts +7 -0
  52. package/es/popconfirm/Popconfirm.css +1 -1
  53. package/es/popconfirm/Popconfirm.vue.js +1 -1
  54. package/es/popconfirm/Popconfirm.vue2.js +20 -14
  55. package/es/progress/Progress.css +1 -1
  56. package/es/progress/Progress.vue.js +2 -2
  57. package/es/progress/Progress.vue2.js +13 -12
  58. package/es/qrcode/QRCode.css +1 -1
  59. package/es/qrcode/QRCode.vue.js +2 -2
  60. package/es/rate/Rate.css +1 -1
  61. package/es/rate/Rate.vue.js +2 -2
  62. package/es/rate/Rate.vue2.js +1 -1
  63. package/es/scrollbar/Scrollbar.css +1 -1
  64. package/es/scrollbar/Scrollbar.d.ts +1 -7
  65. package/es/scrollbar/Scrollbar.vue.js +2 -2
  66. package/es/scrollbar/index.d.ts +3 -21
  67. package/es/select/Select.css +1 -1
  68. package/es/select/Select.d.ts +2 -14
  69. package/es/select/Select.vue.js +2 -2
  70. package/es/select/Select.vue2.js +91 -82
  71. package/es/select/index.d.ts +2 -14
  72. package/es/slider/Slider.css +1 -1
  73. package/es/slider/Slider.vue.js +2 -2
  74. package/es/slider/Slider.vue2.js +18 -18
  75. package/es/spin/Spin.css +1 -1
  76. package/es/spin/Spin.vue.js +2 -2
  77. package/es/spin/Spin.vue2.js +32 -32
  78. package/es/steps/Steps.css +1 -1
  79. package/es/steps/Steps.vue.js +2 -2
  80. package/es/steps/Steps.vue2.js +22 -16
  81. package/es/style/global.css +1 -1
  82. package/es/switch/Switch.css +1 -1
  83. package/es/switch/Switch.vue.js +2 -2
  84. package/es/switch/Switch.vue2.js +19 -15
  85. package/es/table/Table.d.ts +4 -28
  86. package/es/table/index.d.ts +2 -14
  87. package/es/tabs/Tabs.css +1 -1
  88. package/es/tabs/Tabs.vue.js +2 -2
  89. package/es/tabs/Tabs.vue2.js +14 -13
  90. package/es/textarea/Textarea.css +1 -1
  91. package/es/textarea/Textarea.vue.js +4 -4
  92. package/es/textarea/Textarea.vue2.js +41 -35
  93. package/es/textscroll/TextScroll.css +1 -1
  94. package/es/textscroll/TextScroll.vue.js +1 -1
  95. package/es/textscroll/TextScroll.vue2.js +71 -71
  96. package/es/upload/Upload.css +1 -1
  97. package/es/upload/Upload.vue.js +1 -1
  98. package/es/upload/Upload.vue2.js +35 -30
  99. package/lib/backtop/BackTop.css +1 -1
  100. package/lib/backtop/BackTop.vue.cjs +1 -1
  101. package/lib/backtop/BackTop.vue2.cjs +1 -1
  102. package/lib/button/Button.css +1 -1
  103. package/lib/button/Button.vue.cjs +1 -1
  104. package/lib/button/Button.vue2.cjs +11 -11
  105. package/lib/calendar/Calendar.css +1 -1
  106. package/lib/calendar/Calendar.d.ts +6 -0
  107. package/lib/calendar/Calendar.vue.cjs +1 -1
  108. package/lib/calendar/Calendar.vue2.cjs +5 -1
  109. package/lib/calendar/index.d.ts +9 -0
  110. package/lib/collapse/Collapse.css +1 -1
  111. package/lib/collapse/Collapse.vue.cjs +1 -1
  112. package/lib/colorpicker/ColorPicker.css +1 -1
  113. package/lib/colorpicker/ColorPicker.d.ts +4 -0
  114. package/lib/colorpicker/ColorPicker.vue.cjs +1 -1
  115. package/lib/colorpicker/ColorPicker.vue2.cjs +10 -3
  116. package/lib/colorpicker/index.d.ts +6 -0
  117. package/lib/floatbutton/FloatButton.css +1 -1
  118. package/lib/floatbutton/FloatButton.vue.cjs +1 -1
  119. package/lib/floatbutton/FloatButton.vue2.cjs +4 -2
  120. package/lib/image/Image.css +1 -1
  121. package/lib/image/Image.vue.cjs +1 -1
  122. package/lib/image/Image.vue2.cjs +1 -1
  123. package/lib/input/Input.css +1 -1
  124. package/lib/input/Input.vue.cjs +1 -1
  125. package/lib/input/Input.vue2.cjs +6 -1
  126. package/lib/inputnumber/InputNumber.css +1 -1
  127. package/lib/inputnumber/InputNumber.vue.cjs +1 -1
  128. package/lib/inputnumber/InputNumber.vue2.cjs +7 -1
  129. package/lib/inputsearch/InputSearch.css +1 -1
  130. package/lib/inputsearch/InputSearch.vue.cjs +1 -1
  131. package/lib/inputsearch/InputSearch.vue2.cjs +6 -1
  132. package/lib/message/Message.css +1 -1
  133. package/lib/message/Message.vue.cjs +1 -1
  134. package/lib/message/Message.vue2.cjs +7 -1
  135. package/lib/modal/Modal.css +1 -1
  136. package/lib/modal/Modal.vue.cjs +1 -1
  137. package/lib/modal/Modal.vue2.cjs +8 -1
  138. package/lib/notification/Notification.css +1 -1
  139. package/lib/notification/Notification.vue.cjs +1 -1
  140. package/lib/notification/Notification.vue2.cjs +6 -1
  141. package/lib/pagination/Pagination.css +1 -1
  142. package/lib/pagination/Pagination.d.ts +5 -0
  143. package/lib/pagination/Pagination.vue.cjs +1 -1
  144. package/lib/pagination/Pagination.vue2.cjs +1 -1
  145. package/lib/pagination/index.d.ts +7 -0
  146. package/lib/popconfirm/Popconfirm.css +1 -1
  147. package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
  148. package/lib/popconfirm/Popconfirm.vue2.cjs +6 -1
  149. package/lib/progress/Progress.css +1 -1
  150. package/lib/progress/Progress.vue.cjs +1 -1
  151. package/lib/progress/Progress.vue2.cjs +5 -4
  152. package/lib/qrcode/QRCode.css +1 -1
  153. package/lib/qrcode/QRCode.vue.cjs +1 -1
  154. package/lib/rate/Rate.css +1 -1
  155. package/lib/rate/Rate.vue.cjs +1 -1
  156. package/lib/rate/Rate.vue2.cjs +1 -1
  157. package/lib/scrollbar/Scrollbar.css +1 -1
  158. package/lib/scrollbar/Scrollbar.d.ts +1 -7
  159. package/lib/scrollbar/Scrollbar.vue.cjs +1 -1
  160. package/lib/scrollbar/index.d.ts +3 -21
  161. package/lib/select/Select.css +1 -1
  162. package/lib/select/Select.d.ts +2 -14
  163. package/lib/select/Select.vue.cjs +1 -1
  164. package/lib/select/Select.vue2.cjs +8 -1
  165. package/lib/select/index.d.ts +2 -14
  166. package/lib/slider/Slider.css +1 -1
  167. package/lib/slider/Slider.vue.cjs +1 -1
  168. package/lib/slider/Slider.vue2.cjs +20 -20
  169. package/lib/spin/Spin.css +1 -1
  170. package/lib/spin/Spin.vue.cjs +1 -1
  171. package/lib/spin/Spin.vue2.cjs +2 -2
  172. package/lib/steps/Steps.css +1 -1
  173. package/lib/steps/Steps.vue.cjs +1 -1
  174. package/lib/steps/Steps.vue2.cjs +7 -1
  175. package/lib/style/global.css +1 -1
  176. package/lib/switch/Switch.css +1 -1
  177. package/lib/switch/Switch.vue.cjs +1 -1
  178. package/lib/switch/Switch.vue2.cjs +5 -1
  179. package/lib/table/Table.d.ts +4 -28
  180. package/lib/table/index.d.ts +2 -14
  181. package/lib/tabs/Tabs.css +1 -1
  182. package/lib/tabs/Tabs.vue.cjs +1 -1
  183. package/lib/tabs/Tabs.vue2.cjs +1 -1
  184. package/lib/textarea/Textarea.css +1 -1
  185. package/lib/textarea/Textarea.vue.cjs +1 -1
  186. package/lib/textarea/Textarea.vue2.cjs +6 -1
  187. package/lib/textscroll/TextScroll.css +1 -1
  188. package/lib/textscroll/TextScroll.vue.cjs +1 -1
  189. package/lib/textscroll/TextScroll.vue2.cjs +18 -18
  190. package/lib/upload/Upload.css +1 -1
  191. package/lib/upload/Upload.vue.cjs +1 -1
  192. package/lib/upload/Upload.vue2.cjs +1 -1
  193. package/package.json +3 -2
@@ -1,9 +1,9 @@
1
- import { defineComponent as De, ref as v, computed as S, watch as M, createElementBlock as i, openBlock as u, normalizeClass as E, createElementVNode as r, createCommentVNode as V, renderSlot as k, createTextVNode as $, toDisplayString as j, createVNode as q, createBlock as be, unref as T, Fragment as O, renderList as C, mergeProps as z } from "vue";
2
- import { getYear as _, getMonth as D, parse as A, format as b, startOfDay as G, startOfMonth as Y, getTime as y, addDays as N, getDay as Fe, startOfYear as ke, addMonths as J, addYears as Me, isSameDay as Oe, isSameMonth as K, getDate as Ce } from "date-fns";
1
+ import { defineComponent as De, ref as v, computed as V, watch as O, createElementBlock as i, openBlock as u, normalizeClass as B, createElementVNode as s, createCommentVNode as $, renderSlot as M, createTextVNode as j, toDisplayString as T, createVNode as q, createBlock as be, unref as z, mergeProps as D, Fragment as C, renderList as w } from "vue";
2
+ import { getYear as S, getMonth as b, parse as A, format as F, startOfDay as G, startOfMonth as P, getTime as y, addDays as Y, getDay as Fe, startOfYear as ke, addMonths as J, addYears as Me, isSameDay as Oe, isSameMonth as K, getDate as Ce } from "date-fns";
3
3
  import Q from "../select/index.js";
4
- import _e from "../radio/index.js";
5
- import { useSlotsExist as we } from "../utils/index.js";
6
- const Se = { class: "calendar-header-wrap" }, Ve = {
4
+ import we from "../radio/index.js";
5
+ import { useSlotsExist as Se } from "../utils/index.js";
6
+ const _e = { class: "calendar-header-wrap" }, Ve = {
7
7
  key: 0,
8
8
  class: "calendar-header-content"
9
9
  }, $e = { class: "calendar-header-actions" }, je = {
@@ -12,15 +12,18 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
12
12
  }, Te = {
13
13
  key: 0,
14
14
  class: "calendar-date-panel"
15
- }, ze = { class: "calendar-body" }, Ye = { class: "calendar-table" }, Ne = ["title"], We = ["onClick"], Be = { class: "date-value" }, Ee = { class: "date-content" }, Ue = {
15
+ }, ze = { class: "calendar-body" }, Pe = { class: "calendar-table" }, Ye = ["title", "onClick"], Ne = { class: "date-cell-inner" }, We = { class: "date-value" }, Be = { class: "date-content" }, Ee = {
16
16
  key: 1,
17
17
  class: "calendar-month-panel"
18
- }, Le = { class: "calendar-body" }, Pe = { class: "calendar-table" }, He = ["title"], Re = ["onClick"], qe = { class: "date-value" }, Ae = { class: "date-content" }, Ze = /* @__PURE__ */ De({
18
+ }, Re = { class: "calendar-body" }, Ue = { class: "calendar-table" }, Le = ["title", "onClick"], He = { class: "date-cell-inner" }, qe = { class: "date-value" }, Ae = { class: "date-content" }, Ze = /* @__PURE__ */ De({
19
19
  __name: "Calendar",
20
20
  props: {
21
21
  display: { default: "panel" },
22
22
  mode: { default: "month" },
23
23
  header: { default: void 0 },
24
+ yearSelectProps: { default: () => ({}) },
25
+ monthSelectProps: { default: () => ({}) },
26
+ modeRadioProps: { default: () => ({}) },
24
27
  startDayOfWeek: { default: 0 },
25
28
  dateStrip: { type: Boolean, default: !0 },
26
29
  dateFormat: { type: Function, default: void 0 },
@@ -32,7 +35,7 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
32
35
  },
33
36
  emits: ["update:value", "change", "panelChange", "select"],
34
37
  setup(X, { emit: Z }) {
35
- const l = X, U = v(Date.now()), L = v([]), x = v(ne()), I = v([
38
+ const l = X, E = v(Date.now()), R = v([]), I = v(ne()), x = v([
36
39
  {
37
40
  label: "月",
38
41
  value: "month"
@@ -41,51 +44,51 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
41
44
  label: "年",
42
45
  value: "year"
43
46
  }
44
- ]), c = v(_(U.value)), m = v(D(U.value) + 1), p = v(l.mode), w = v([]), s = v(), P = v([]), ee = we(["header"]), f = Z, te = S(() => {
47
+ ]), c = v(S(E.value)), m = v(b(E.value) + 1), p = v(l.mode), _ = v([]), r = v(), U = v([]), ee = Se(["header"]), h = Z, te = V(() => {
45
48
  const e = ["一", "二", "三", "四", "五", "六", "日"], t = [];
46
49
  t.push(e[l.startDayOfWeek]);
47
50
  let n = (l.startDayOfWeek + 1) % 7;
48
51
  for (; n !== l.startDayOfWeek; )
49
52
  t.push(e[n]), n = (n + 1) % 7;
50
53
  return t;
51
- }), h = S(() => {
52
- if (s.value)
53
- return typeof s.value == "string" ? A(s.value, l.valueFormat, /* @__PURE__ */ new Date()).getTime() : s.value;
54
- }), H = S(() => new Date(c.value, m.value - 1, 1).getTime()), ae = S(() => ee.header || l.header);
55
- M(
56
- h,
54
+ }), f = V(() => {
55
+ if (r.value)
56
+ return typeof r.value == "string" ? A(r.value, l.valueFormat, /* @__PURE__ */ new Date()).getTime() : r.value;
57
+ }), L = V(() => new Date(c.value, m.value - 1, 1).getTime()), ae = V(() => ee.header || l.header);
58
+ O(
59
+ f,
57
60
  (e) => {
58
- e && (c.value = _(e), m.value = D(e) + 1);
61
+ e && (c.value = S(e), m.value = b(e) + 1);
59
62
  },
60
63
  {
61
64
  immediate: !0
62
65
  }
63
- ), M(
66
+ ), O(
64
67
  () => l.mode,
65
68
  (e) => {
66
69
  p.value = e;
67
70
  }
68
- ), M(
71
+ ), O(
69
72
  () => [l.startDayOfWeek, l.dateStrip, m.value, c.value],
70
73
  () => {
71
- w.value = se();
74
+ _.value = re();
72
75
  },
73
76
  {
74
77
  immediate: !0,
75
78
  deep: !0
76
79
  }
77
- ), M(
80
+ ), O(
78
81
  c,
79
82
  () => {
80
- L.value = le(), P.value = ie();
83
+ R.value = le(), U.value = ie();
81
84
  },
82
85
  {
83
86
  immediate: !0
84
87
  }
85
- ), M(
88
+ ), O(
86
89
  () => [l.valueFormat, l.value],
87
90
  () => {
88
- l.value && (l.valueFormat === void 0 || l.valueFormat === "T" ? s.value = Number(b(G(l.value).getTime(), l.valueFormat || "T")) : s.value = b(G(l.value).getTime(), l.valueFormat));
91
+ l.value && (l.valueFormat === void 0 || l.valueFormat === "T" ? r.value = Number(F(G(l.value).getTime(), l.valueFormat || "T")) : r.value = F(G(l.value).getTime(), l.valueFormat));
89
92
  },
90
93
  {
91
94
  deep: !0,
@@ -110,13 +113,13 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
110
113
  });
111
114
  return e;
112
115
  }
113
- function W(e, t, n) {
116
+ function N(e, t, n) {
114
117
  return {
115
118
  type: "date",
116
119
  dateObject: {
117
120
  date: Ce(e),
118
- month: D(e),
119
- year: _(e)
121
+ month: b(e),
122
+ year: S(e)
120
123
  },
121
124
  timestamp: y(e),
122
125
  inCurrentMonth: K(e, t),
@@ -124,31 +127,31 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
124
127
  };
125
128
  }
126
129
  function oe(e, t, n, o = !1) {
127
- const a = D(e);
128
- let d = y(Y(e)), F = y(N(d, -1));
130
+ const a = b(e);
131
+ let d = y(P(e)), k = y(Y(d, -1));
129
132
  const g = [];
130
- let R = !o;
131
- for (; Fe(F) !== n || R; )
132
- g.unshift(W(F, e, t)), F = y(N(F, -1)), R = !1;
133
- for (; D(d) === a; )
134
- g.push(W(d, e, t)), d = y(N(d, 1));
133
+ let H = !o;
134
+ for (; Fe(k) !== n || H; )
135
+ g.unshift(N(k, e, t)), k = y(Y(k, -1)), H = !1;
136
+ for (; b(d) === a; )
137
+ g.push(N(d, e, t)), d = y(Y(d, 1));
135
138
  const ge = o ? g.length <= 28 ? 28 : g.length <= 35 ? 35 : 42 : 42;
136
139
  for (; g.length < ge; )
137
- g.push(W(d, e, t)), d = y(N(d, 1));
140
+ g.push(N(d, e, t)), d = y(Y(d, 1));
138
141
  return g;
139
142
  }
140
- function se() {
141
- const e = oe(H.value, Date.now(), l.startDayOfWeek, l.dateStrip), t = 7, n = e.length / t, o = [];
143
+ function re() {
144
+ const e = oe(L.value, Date.now(), l.startDayOfWeek, l.dateStrip), t = 7, n = e.length / t, o = [];
142
145
  for (let a = 0; a < n; a++)
143
146
  o.push(e.slice(a * t, (a + 1) * t));
144
147
  return o;
145
148
  }
146
- function re(e, t) {
149
+ function se(e, t) {
147
150
  return {
148
151
  type: "month",
149
152
  monthObject: {
150
- month: D(e),
151
- year: _(e)
153
+ month: b(e),
154
+ year: S(e)
152
155
  },
153
156
  timestamp: y(e),
154
157
  isCurrent: K(t, e)
@@ -157,20 +160,20 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
157
160
  function ue(e, t) {
158
161
  const n = [], o = ke(e);
159
162
  for (let a = 0; a < 12; a++)
160
- n.push(re(y(J(o, a)), t));
163
+ n.push(se(y(J(o, a)), t));
161
164
  return n;
162
165
  }
163
166
  function ie() {
164
- const e = ue(H.value, Date.now()), t = 3, n = e.length / t, o = [];
167
+ const e = ue(L.value, Date.now()), t = 3, n = e.length / t, o = [];
165
168
  for (let a = 0; a < n; a++)
166
169
  o.push(e.slice(a * t, (a + 1) * t));
167
170
  return o;
168
171
  }
169
172
  function de(e) {
170
- return b(e.timestamp, "yyyy-MM-dd");
173
+ return F(e.timestamp, "yyyy-MM-dd");
171
174
  }
172
175
  function ce(e) {
173
- return b(e.timestamp, "yyyy-MM");
176
+ return F(e.timestamp, "yyyy-MM");
174
177
  }
175
178
  function ve(e, t) {
176
179
  return l.dateFormat === void 0 ? `${e}` : l.dateFormat(e, t);
@@ -181,155 +184,156 @@ const Se = { class: "calendar-header-wrap" }, Ve = {
181
184
  function pe(e, t) {
182
185
  return l.monthFormat === void 0 ? `${e}月` : l.monthFormat(e, t);
183
186
  }
184
- function he(e) {
185
- h.value !== e.timestamp && (e.dateObject.month + 1 !== m.value && (m.value = e.dateObject.month + 1), l.valueFormat === void 0 || l.valueFormat === "T" ? s.value = e.timestamp : s.value = b(e.timestamp, l.valueFormat), f("update:value", s.value), f("select", s.value, "date"), f("change", s.value, e.dateObject));
187
+ function fe(e) {
188
+ f.value !== e.timestamp && (e.dateObject.month + 1 !== m.value && (m.value = e.dateObject.month + 1), l.valueFormat === void 0 || l.valueFormat === "T" ? r.value = e.timestamp : r.value = F(e.timestamp, l.valueFormat), h("update:value", r.value), h("select", r.value, "date"), h("change", r.value, e.dateObject));
186
189
  }
187
- function fe() {
188
- if (s.value) {
189
- if (typeof s.value == "string") {
190
- const e = A(s.value, l.valueFormat, /* @__PURE__ */ new Date()).getTime();
191
- return Y(e).getTime();
190
+ function he() {
191
+ if (r.value) {
192
+ if (typeof r.value == "string") {
193
+ const e = A(r.value, l.valueFormat, /* @__PURE__ */ new Date()).getTime();
194
+ return P(e).getTime();
192
195
  }
193
- return Y(s.value).getTime();
196
+ return P(r.value).getTime();
194
197
  }
195
198
  }
196
199
  function ye(e) {
197
- if (fe() !== e.timestamp) {
198
- if (m.value = e.monthObject.month + 1, s.value) {
199
- const t = e.monthObject.year - _(h.value), n = e.monthObject.month - D(h.value), o = J(Me(h.value, t), n);
200
- l.valueFormat === void 0 || l.valueFormat === "T" ? s.value = Number(b(o, l.valueFormat || "T")) : s.value = b(o, l.valueFormat);
200
+ if (he() !== e.timestamp) {
201
+ if (m.value = e.monthObject.month + 1, r.value) {
202
+ const t = e.monthObject.year - S(f.value), n = e.monthObject.month - b(f.value), o = J(Me(f.value, t), n);
203
+ l.valueFormat === void 0 || l.valueFormat === "T" ? r.value = Number(F(o, l.valueFormat || "T")) : r.value = F(o, l.valueFormat);
201
204
  }
202
- f("update:value", s.value), f("select", s.value, "month"), f("change", s.value, e.monthObject);
205
+ h("update:value", r.value), h("select", r.value, "month"), h("change", r.value, e.monthObject);
203
206
  }
204
207
  }
205
- function B() {
206
- p.value === "month" ? f(
208
+ function W() {
209
+ p.value === "month" ? h(
207
210
  "panelChange",
208
- s.value,
211
+ r.value,
209
212
  { year: c.value, month: m.value },
210
213
  p.value
211
- ) : f("panelChange", s.value, { year: c.value }, p.value);
214
+ ) : h("panelChange", r.value, { year: c.value }, p.value);
212
215
  }
213
216
  return (e, t) => (u(), i("div", {
214
- class: E(["m-calendar", `calendar-${e.display}`])
217
+ class: B(["m-calendar", `calendar-${e.display}`]),
218
+ style: `
219
+ --calendar-primary-color: #1677ff;
220
+ --calendar-panel-primary-bg-color: #e6f4ff;
221
+ --calendar-card-primary-bg-color: #1677ff;
222
+ `
215
223
  }, [
216
- r("div", Se, [
224
+ s("div", _e, [
217
225
  ae.value ? (u(), i("div", Ve, [
218
- k(e.$slots, "header", {}, () => [
219
- $(j(e.header), 1)
226
+ M(e.$slots, "header", {}, () => [
227
+ j(T(e.header), 1)
220
228
  ], !0)
221
- ])) : V("", !0),
222
- r("div", $e, [
223
- q(T(Q), {
229
+ ])) : $("", !0),
230
+ s("div", $e, [
231
+ q(z(Q), D({
224
232
  class: "calendar-year-select",
225
233
  size: e.display === "card" ? "small" : "middle",
226
- options: L.value,
234
+ options: R.value,
227
235
  "max-display": 8,
228
236
  modelValue: c.value,
229
237
  "onUpdate:modelValue": t[0] || (t[0] = (n) => c.value = n),
230
- onChange: B
231
- }, null, 8, ["size", "options", "modelValue"]),
232
- p.value === "month" ? (u(), be(T(Q), {
238
+ onChange: W
239
+ }, e.yearSelectProps), null, 16, ["size", "options", "modelValue"]),
240
+ p.value === "month" ? (u(), be(z(Q), D({
233
241
  key: 0,
234
242
  class: "calendar-month-select",
235
243
  size: e.display === "card" ? "small" : "middle",
236
- options: x.value,
244
+ options: I.value,
237
245
  "max-display": 8,
238
246
  modelValue: m.value,
239
247
  "onUpdate:modelValue": t[1] || (t[1] = (n) => m.value = n),
240
- onChange: B
241
- }, null, 8, ["size", "options", "modelValue"])) : V("", !0),
242
- q(T(_e), {
248
+ onChange: W
249
+ }, e.monthSelectProps), null, 16, ["size", "options", "modelValue"])) : $("", !0),
250
+ q(z(we), D({
243
251
  class: "calendar-mode-radio",
244
252
  "button-size": e.display === "card" ? "small" : "middle",
245
- options: I.value,
253
+ options: x.value,
246
254
  value: p.value,
247
255
  "onUpdate:value": t[2] || (t[2] = (n) => p.value = n),
248
256
  button: "",
249
- onChange: B
250
- }, null, 8, ["button-size", "options", "value"])
257
+ onChange: W
258
+ }, e.modeRadioProps), null, 16, ["button-size", "options", "value"])
251
259
  ])
252
260
  ]),
253
- r("div", je, [
261
+ s("div", je, [
254
262
  p.value === "month" ? (u(), i("div", Te, [
255
- r("div", ze, [
256
- r("table", Ye, [
257
- r("thead", null, [
258
- r("tr", null, [
259
- (u(!0), i(O, null, C(te.value, (n, o) => (u(), i("th", { key: o }, [
260
- k(e.$slots, "week", {
263
+ s("div", ze, [
264
+ s("table", Pe, [
265
+ s("thead", null, [
266
+ s("tr", null, [
267
+ (u(!0), i(C, null, w(te.value, (n, o) => (u(), i("th", { key: o }, [
268
+ M(e.$slots, "week", {
261
269
  defaultWeek: n,
262
270
  week: o,
263
- timestamp: w.value[0][o].timestamp
271
+ timestamp: _.value[0][o].timestamp
264
272
  }, () => [
265
- $(j(me(n, o, w.value[0][o].timestamp)), 1)
273
+ j(T(me(n, o, _.value[0][o].timestamp)), 1)
266
274
  ], !0)
267
275
  ]))), 128))
268
276
  ])
269
277
  ]),
270
- r("tbody", null, [
271
- (u(!0), i(O, null, C(w.value, (n, o) => (u(), i("tr", { key: o }, [
272
- (u(!0), i(O, null, C(n, (a, d) => (u(), i("td", {
273
- class: E(["calendar-date-cell", {
278
+ s("tbody", null, [
279
+ (u(!0), i(C, null, w(_.value, (n, o) => (u(), i("tr", { key: o }, [
280
+ (u(!0), i(C, null, w(n, (a, d) => (u(), i("td", {
281
+ class: B(["calendar-date-cell", {
274
282
  "date-cell-disabled": e.disabledDate && e.disabledDate(a.timestamp),
275
283
  "date-cell-in-view": a.inCurrentMonth,
276
284
  "date-cell-today": a.isCurrentDate,
277
- "date-cell-selected": h.value && h.value === a.timestamp
285
+ "date-cell-selected": f.value && f.value === a.timestamp
278
286
  }]),
279
287
  key: d,
280
- title: de(a)
288
+ title: de(a),
289
+ onClick: (k) => fe(a)
281
290
  }, [
282
- r("div", {
283
- class: "date-cell-inner",
284
- onClick: (F) => he(a)
285
- }, [
286
- r("div", Be, [
287
- k(e.$slots, "dateValue", z({ ref_for: !0 }, a), () => [
288
- $(j(ve(a.dateObject.date, a.timestamp)), 1)
291
+ s("div", Ne, [
292
+ s("div", We, [
293
+ M(e.$slots, "dateValue", D({ ref_for: !0 }, a), () => [
294
+ j(T(ve(a.dateObject.date, a.timestamp)), 1)
289
295
  ], !0)
290
296
  ]),
291
- r("div", Ee, [
292
- k(e.$slots, "dateContent", z({ ref_for: !0 }, a), void 0, !0)
297
+ s("div", Be, [
298
+ M(e.$slots, "dateContent", D({ ref_for: !0 }, a), void 0, !0)
293
299
  ])
294
- ], 8, We)
295
- ], 10, Ne))), 128))
300
+ ])
301
+ ], 10, Ye))), 128))
296
302
  ]))), 128))
297
303
  ])
298
304
  ])
299
305
  ])
300
- ])) : V("", !0),
301
- p.value === "year" ? (u(), i("div", Ue, [
302
- r("div", Le, [
303
- r("table", Pe, [
304
- r("tbody", null, [
305
- (u(!0), i(O, null, C(P.value, (n, o) => (u(), i("tr", { key: o }, [
306
- (u(!0), i(O, null, C(n, (a, d) => (u(), i("td", {
307
- class: E(["calendar-date-cell date-cell-in-view", {
306
+ ])) : $("", !0),
307
+ p.value === "year" ? (u(), i("div", Ee, [
308
+ s("div", Re, [
309
+ s("table", Ue, [
310
+ s("tbody", null, [
311
+ (u(!0), i(C, null, w(U.value, (n, o) => (u(), i("tr", { key: o }, [
312
+ (u(!0), i(C, null, w(n, (a, d) => (u(), i("td", {
313
+ class: B(["calendar-date-cell date-cell-in-view", {
308
314
  "date-cell-today": a.isCurrent,
309
- "date-cell-selected": h.value && T(Y)(h.value).getTime() === a.timestamp
315
+ "date-cell-selected": f.value && z(P)(f.value).getTime() === a.timestamp
310
316
  }]),
311
317
  key: d,
312
- title: ce(a)
318
+ title: ce(a),
319
+ onClick: (k) => ye(a)
313
320
  }, [
314
- r("div", {
315
- class: "date-cell-inner",
316
- onClick: (F) => ye(a)
317
- }, [
318
- r("div", qe, [
319
- k(e.$slots, "monthValue", z({ ref_for: !0 }, a), () => [
320
- $(j(pe(a.monthObject.month + 1, a.timestamp)), 1)
321
+ s("div", He, [
322
+ s("div", qe, [
323
+ M(e.$slots, "monthValue", D({ ref_for: !0 }, a), () => [
324
+ j(T(pe(a.monthObject.month + 1, a.timestamp)), 1)
321
325
  ], !0)
322
326
  ]),
323
- r("div", Ae, [
324
- k(e.$slots, "monthContent", z({ ref_for: !0 }, a), void 0, !0)
327
+ s("div", Ae, [
328
+ M(e.$slots, "monthContent", D({ ref_for: !0 }, a), void 0, !0)
325
329
  ])
326
- ], 8, Re)
327
- ], 10, He))), 128))
330
+ ])
331
+ ], 10, Le))), 128))
328
332
  ]))), 128))
329
333
  ])
330
334
  ])
331
335
  ])
332
- ])) : V("", !0)
336
+ ])) : $("", !0)
333
337
  ])
334
338
  ], 2));
335
339
  }
@@ -15,6 +15,9 @@ declare const _default: {
15
15
  mode: "month" | "year";
16
16
  value: string | number;
17
17
  display: "panel" | "card";
18
+ yearSelectProps: object;
19
+ monthSelectProps: object;
20
+ modeRadioProps: object;
18
21
  startDayOfWeek: import('./Calendar').DayOfWeek;
19
22
  dateStrip: boolean;
20
23
  dateFormat: (date: number, timestamp: number) => string;
@@ -39,6 +42,9 @@ declare const _default: {
39
42
  mode: "month" | "year";
40
43
  value: string | number;
41
44
  display: "panel" | "card";
45
+ yearSelectProps: object;
46
+ monthSelectProps: object;
47
+ modeRadioProps: object;
42
48
  startDayOfWeek: import('./Calendar').DayOfWeek;
43
49
  dateStrip: boolean;
44
50
  dateFormat: (date: number, timestamp: number) => string;
@@ -65,6 +71,9 @@ declare const _default: {
65
71
  mode: "month" | "year";
66
72
  value: string | number;
67
73
  display: "panel" | "card";
74
+ yearSelectProps: object;
75
+ monthSelectProps: object;
76
+ modeRadioProps: object;
68
77
  startDayOfWeek: import('./Calendar').DayOfWeek;
69
78
  dateStrip: boolean;
70
79
  dateFormat: (date: number, timestamp: number) => string;
@@ -1 +1 @@
1
- .collapse-enter-active[data-v-3a6c97aa],.collapse-leave-active[data-v-3a6c97aa]{overflow:hidden;transition:height .2s cubic-bezier(.645,.045,.355,1),opacity .2s cubic-bezier(.645,.045,.355,1)}.collapse-enter-from[data-v-3a6c97aa],.collapse-leave-to[data-v-3a6c97aa]{height:0!important;opacity:0!important}.m-collapse[data-v-3a6c97aa]{font-size:14px;color:#000000e0;line-height:1.57142857;background-color:#00000005;border:1px solid #d9d9d9;border-bottom:0;border-radius:8px}.m-collapse .collapse-item[data-v-3a6c97aa]{border-bottom:1px solid #d9d9d9}.m-collapse .collapse-item[data-v-3a6c97aa]:first-child,.m-collapse .collapse-item:first-child .collapse-header-wrap[data-v-3a6c97aa]{border-radius:8px 8px 0 0}.m-collapse .collapse-item[data-v-3a6c97aa]:last-child{border-radius:0 0 8px 8px}.m-collapse .collapse-item:last-child .collapse-header-wrap[data-v-3a6c97aa],.m-collapse .collapse-item:last-child .collapse-content-wrap[data-v-3a6c97aa]{border-radius:0 0 8px 8px}.m-collapse .collapse-item .collapse-header-wrap[data-v-3a6c97aa]{position:relative;display:flex;flex-wrap:nowrap;align-items:flex-start;padding:12px 16px;color:#000000e0;line-height:1.57142857;cursor:pointer;transition:all .3s}.m-collapse .collapse-item .collapse-header-wrap[data-v-3a6c97aa]:focus{outline:none}.m-collapse .collapse-item .collapse-header-wrap .collapse-arrow[data-v-3a6c97aa]{font-size:12px;height:22px;display:flex;align-items:center}.m-collapse .collapse-item .collapse-header-wrap .collapse-arrow[data-v-3a6c97aa] svg{fill:currentColor;transition:transform .3s}.m-collapse .collapse-item .collapse-header-wrap .collapse-arrow .arrow-svg[data-v-3a6c97aa]{transition:transform .3s}.m-collapse .collapse-item .collapse-header-wrap .collapse-arrow .arrow-rotate[data-v-3a6c97aa]{transform:rotate(90deg)}.m-collapse .collapse-item .collapse-header-wrap .collapse-header[data-v-3a6c97aa]{flex:auto;margin-right:auto;display:inline-block}.m-collapse .collapse-item .collapse-header-wrap .collapse-extra[data-v-3a6c97aa]{display:flex;align-items:center}.m-collapse .collapse-item .collapse-header-wrap .collapse-extra[data-v-3a6c97aa] svg{fill:currentColor}.m-collapse .collapse-item .collapse-header-no-arrow[data-v-3a6c97aa]{padding-left:12px}.m-collapse .collapse-item .collapse-content-wrap[data-v-3a6c97aa]{position:relative;color:#000000e0;background-color:#fff;border-top:1px solid #d9d9d9}.m-collapse .collapse-item .collapse-content-wrap .collapse-lang[data-v-3a6c97aa]{position:absolute;right:10px;top:6px;font-size:14px;color:#00000061;opacity:1;transition:opacity .3s}.m-collapse .collapse-item .collapse-content-wrap .collapse-copy[data-v-3a6c97aa]{position:absolute;right:8px;top:8px;opacity:0;pointer-events:none;transition:opacity .3s}.m-collapse .collapse-item .collapse-content-wrap .collapse-content[data-v-3a6c97aa]{padding:16px;white-space:pre-wrap}.m-collapse .collapse-item .collapse-copyable:hover .collapse-lang[data-v-3a6c97aa]{opacity:0;pointer-events:none}.m-collapse .collapse-item .collapse-copyable:hover .collapse-copy[data-v-3a6c97aa]{opacity:1;pointer-events:auto}.m-collapse .collapse-arrow-left .collapse-header-wrap .collapse-arrow[data-v-3a6c97aa]{padding-right:12px}.m-collapse .collapse-arrow-right .collapse-header-wrap .collapse-arrow[data-v-3a6c97aa]{order:1;padding-left:12px}.m-collapse .collapse-item-disabled .collapse-header-wrap[data-v-3a6c97aa]{color:#00000040;cursor:not-allowed}.collapse-borderless[data-v-3a6c97aa]{background-color:#00000005;border:0}.collapse-borderless .collapse-item[data-v-3a6c97aa]:last-child{border-bottom:0}.collapse-borderless .collapse-item:last-child .collapse-header-wrap[data-v-3a6c97aa]{border-radius:0}.collapse-borderless .collapse-item .collapse-content-wrap[data-v-3a6c97aa]{background-color:transparent;border-top:0}.collapse-ghost[data-v-3a6c97aa]{background-color:transparent;border:0}.collapse-ghost .collapse-item[data-v-3a6c97aa]{border-bottom:0}.collapse-ghost .collapse-item .collapse-content-wrap[data-v-3a6c97aa]{background-color:transparent;border:0}
1
+ .collapse-enter-active[data-v-d55b7787],.collapse-leave-active[data-v-d55b7787]{overflow:hidden;transition:height .2s cubic-bezier(.645,.045,.355,1),opacity .2s cubic-bezier(.645,.045,.355,1)}.collapse-enter-from[data-v-d55b7787],.collapse-leave-to[data-v-d55b7787]{height:0!important;opacity:0!important}.m-collapse[data-v-d55b7787]{font-size:14px;color:#000000e0;line-height:1.57142857;background-color:#00000005;border:1px solid #d9d9d9;border-bottom:0;border-radius:8px}.m-collapse .collapse-item[data-v-d55b7787]{border-bottom:1px solid #d9d9d9}.m-collapse .collapse-item[data-v-d55b7787]:first-child,.m-collapse .collapse-item:first-child .collapse-header-wrap[data-v-d55b7787]{border-radius:8px 8px 0 0}.m-collapse .collapse-item[data-v-d55b7787]:last-child{border-radius:0 0 8px 8px}.m-collapse .collapse-item:last-child .collapse-header-wrap[data-v-d55b7787],.m-collapse .collapse-item:last-child .collapse-content-wrap[data-v-d55b7787]{border-radius:0 0 8px 8px}.m-collapse .collapse-item .collapse-header-wrap[data-v-d55b7787]{position:relative;display:flex;flex-wrap:nowrap;align-items:flex-start;padding:12px 16px;color:#000000e0;line-height:1.57142857;cursor:pointer;transition:all .3s}.m-collapse .collapse-item .collapse-header-wrap[data-v-d55b7787]:focus{outline:none}.m-collapse .collapse-item .collapse-header-wrap .collapse-arrow[data-v-d55b7787]{font-size:12px;height:22px;display:flex;align-items:center}.m-collapse .collapse-item .collapse-header-wrap .collapse-arrow[data-v-d55b7787] .arrow-svg{transition:transform .3s}.m-collapse .collapse-item .collapse-header-wrap .collapse-arrow[data-v-d55b7787] .arrow-rotate{transform:rotate(90deg)}.m-collapse .collapse-item .collapse-header-wrap .collapse-arrow[data-v-d55b7787] svg{fill:currentColor;transition:transform .3s}.m-collapse .collapse-item .collapse-header-wrap .collapse-header[data-v-d55b7787]{flex:auto;margin-right:auto;display:inline-block}.m-collapse .collapse-item .collapse-header-wrap .collapse-extra[data-v-d55b7787]{display:flex;align-items:center}.m-collapse .collapse-item .collapse-header-wrap .collapse-extra[data-v-d55b7787] svg{fill:currentColor}.m-collapse .collapse-item .collapse-header-no-arrow[data-v-d55b7787]{padding-left:12px}.m-collapse .collapse-item .collapse-content-wrap[data-v-d55b7787]{position:relative;color:#000000e0;background-color:#fff;border-top:1px solid #d9d9d9}.m-collapse .collapse-item .collapse-content-wrap .collapse-lang[data-v-d55b7787]{position:absolute;right:10px;top:6px;font-size:14px;color:#00000061;opacity:1;transition:opacity .3s}.m-collapse .collapse-item .collapse-content-wrap .collapse-copy[data-v-d55b7787]{position:absolute;right:8px;top:8px;opacity:0;pointer-events:none;transition:opacity .3s}.m-collapse .collapse-item .collapse-content-wrap .collapse-content[data-v-d55b7787]{padding:16px;white-space:pre-wrap}.m-collapse .collapse-item .collapse-copyable:hover .collapse-lang[data-v-d55b7787]{opacity:0;pointer-events:none}.m-collapse .collapse-item .collapse-copyable:hover .collapse-copy[data-v-d55b7787]{opacity:1;pointer-events:auto}.m-collapse .collapse-arrow-left .collapse-header-wrap .collapse-arrow[data-v-d55b7787]{padding-right:12px}.m-collapse .collapse-arrow-right .collapse-header-wrap .collapse-arrow[data-v-d55b7787]{order:1;padding-left:12px}.m-collapse .collapse-item-disabled .collapse-header-wrap[data-v-d55b7787]{color:#00000040;cursor:not-allowed}.collapse-borderless[data-v-d55b7787]{background-color:#00000005;border:0}.collapse-borderless .collapse-item[data-v-d55b7787]:last-child{border-bottom:0}.collapse-borderless .collapse-item:last-child .collapse-header-wrap[data-v-d55b7787]{border-radius:0}.collapse-borderless .collapse-item .collapse-content-wrap[data-v-d55b7787]{background-color:transparent;border-top:0}.collapse-ghost[data-v-d55b7787]{background-color:transparent;border:0}.collapse-ghost .collapse-item[data-v-d55b7787]{border-bottom:0}.collapse-ghost .collapse-item .collapse-content-wrap[data-v-d55b7787]{background-color:transparent;border:0}
@@ -1,7 +1,7 @@
1
1
  import o from "./Collapse.vue2.js";
2
2
  /* empty css */
3
- import a from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-3a6c97aa"]]);
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d55b7787"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1 +1 @@
1
- .color-picker-panel[data-v-49c5bc8a]{padding:12px}.color-picker-panel .color-picker-pallete[data-v-49c5bc8a]{height:180px;position:relative;margin-bottom:8px;cursor:crosshair}.color-picker-panel .color-picker-pallete .color-picker-pallete-layer[data-v-49c5bc8a]{position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-pallete .pallete-layer-shadowed[data-v-49c5bc8a]{box-shadow:inset 0 0 2px #0000003d}.color-picker-panel .color-picker-preview[data-v-49c5bc8a]{display:flex}.color-picker-panel .color-picker-preview .color-picker-preview-sliders[data-v-49c5bc8a]{flex:1 0 auto}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider[data-v-49c5bc8a]{margin-bottom:8px;position:relative}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider[data-v-49c5bc8a]:after{content:"";position:absolute;border-radius:inherit;left:0;right:0;top:0;bottom:0;box-shadow:inset 0 0 2px #0000003d;pointer-events:none}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider .color-picker-checkboard[data-v-49c5bc8a]{background:#fff;position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider .color-picker-checkboard[data-v-49c5bc8a]:after{background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0px;background-repeat:repeat;content:"";position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider .color-picker-slider-image[data-v-49c5bc8a]{position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-preview .color-picker-preview-circle[data-v-49c5bc8a]{position:relative;height:30px;width:30px;margin:0 0 8px 6px;border-radius:50%;box-shadow:#00000026 0 0 0 1px inset;overflow:hidden}.color-picker-panel .color-picker-preview .color-picker-preview-circle .color-picker-circle-fill[data-v-49c5bc8a]{display:block;width:30px;height:30px}.color-picker-panel .color-picker-preview .color-picker-preview-circle .color-picker-circle-input[data-v-49c5bc8a]{position:absolute;top:0;left:0;width:30px;height:30px;opacity:0;z-index:1}.color-picker-panel .color-picker-handle[data-v-49c5bc8a]{z-index:1;box-shadow:0 0 2px #00000073;position:absolute;background-color:#fff;overflow:hidden}.color-picker-panel .color-picker-handle .color-picker-handle-fill[data-v-49c5bc8a]{border:2px solid white}.color-picker-panel .color-picker-input[data-v-49c5bc8a]{display:flex;align-items:center}.color-picker-panel .color-picker-input .color-picker-input-mode[data-v-49c5bc8a]{width:72px;text-align:center}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-49c5bc8a]{display:inline-flex;width:100%;flex-wrap:nowrap;vertical-align:bottom}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-49c5bc8a] .m-input{flex-grow:1;flex-basis:0}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-49c5bc8a] .m-input:not(:first-child){margin-left:-1px}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-49c5bc8a] .m-input:not(:first-child) .input-wrap{border-top-left-radius:0;border-bottom-left-radius:0}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-49c5bc8a] .m-input:not(:last-child) .input-wrap{border-top-right-radius:0;border-bottom-right-radius:0}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-49c5bc8a] .m-input .input-wrap{padding:1px 4px}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-49c5bc8a] .m-input .input-item{text-align:center}.color-picker-panel .color-picker-swatches[data-v-49c5bc8a]{display:flex;gap:8px;flex-wrap:wrap;position:relative;margin-top:10px}.color-picker-panel .color-picker-swatches .color-picker-swatch[data-v-49c5bc8a]{width:18px;height:18px;background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-size:8px 8px;background-position:0px 0,0px 4px,4px -4px,-4px 0px;background-repeat:repeat}.color-picker-panel .color-picker-swatches .color-picker-swatch .color-picker-swatch-fill[data-v-49c5bc8a]{position:relative;width:100%;height:100%;border-radius:3px;box-shadow:#00000026 0 0 0 1px inset;cursor:pointer}.panel-with-actions[data-v-49c5bc8a]{padding-bottom:8px}.color-picker-actions[data-v-49c5bc8a]{display:flex;gap:8px;border-top:1px solid rgba(5,5,5,.06);padding:8px 12px;justify-content:flex-end}.color-picker-footer[data-v-49c5bc8a]{border-top:1px solid rgba(5,5,5,.06);padding:8px 12px}.color-picker-display[data-v-49c5bc8a]{display:inline-block;width:100%;height:var(--color-picker-height);border-radius:4px;position:relative;outline:none}.color-picker-display:not(.color-picker-disabled):hover .color-picker-wrap[data-v-49c5bc8a]{border-color:#4096ff}.color-picker-display:not(.color-picker-disabled):focus .color-picker-wrap[data-v-49c5bc8a]{border-color:#4096ff;box-shadow:0 0 0 2px #0591ff1a}.color-picker-display .color-picker-wrap[data-v-49c5bc8a]{height:100%;cursor:pointer;border:1px solid #d9d9d9;border-radius:4px;transition:all .2s cubic-bezier(.4,0,.2,1)}.color-picker-display .color-picker-wrap .color-picker-fill[data-v-49c5bc8a]{position:absolute;left:4px;right:4px;top:4px;bottom:4px;display:flex;align-items:center;justify-content:center}.color-picker-display .color-picker-wrap .color-picker-fill .color-picker-checkboard[data-v-49c5bc8a]{width:100%;height:100%;position:relative;background:#fff;position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-display .color-picker-wrap .color-picker-fill .color-picker-checkboard[data-v-49c5bc8a]:after{background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-size:calc(var(--color-picker-block-size) * 2) calc(var(--color-picker-block-size) * 2);background-position:0 0,0 var(--color-picker-block-size),var(--color-picker-block-size) calc(-1 * var(--color-picker-block-size)),calc(-1 * var(--color-picker-block-size)) 0px;background-repeat:repeat;content:"";position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-display .color-picker-wrap .color-picker-fill .color-picker-value[data-v-49c5bc8a]{white-space:nowrap;position:relative;font-size:14px;line-height:1.71428571}.color-picker-small .color-picker-wrap .color-picker-fill[data-v-49c5bc8a]{left:3px;right:3px;top:3px;bottom:3px}.color-picker-small .color-picker-wrap .color-picker-fill .color-picker-value[data-v-49c5bc8a]{line-height:1.28571429}.color-picker-large .color-picker-wrap .color-picker-fill[data-v-49c5bc8a]{left:5px;right:5px;top:5px;bottom:5px}.color-picker-large .color-picker-wrap .color-picker-fill .color-picker-value[data-v-49c5bc8a]{font-size:16px;line-height:1.875}.color-picker-disabled[data-v-49c5bc8a]{cursor:not-allowed}
1
+ .color-picker-panel[data-v-b199915c]{padding:12px}.color-picker-panel .color-picker-pallete[data-v-b199915c]{height:180px;position:relative;margin-bottom:8px;cursor:crosshair}.color-picker-panel .color-picker-pallete .color-picker-pallete-layer[data-v-b199915c]{position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-pallete .pallete-layer-shadowed[data-v-b199915c]{box-shadow:inset 0 0 2px #0000003d}.color-picker-panel .color-picker-preview[data-v-b199915c]{display:flex}.color-picker-panel .color-picker-preview .color-picker-preview-sliders[data-v-b199915c]{flex:1 0 auto}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider[data-v-b199915c]{margin-bottom:8px;position:relative}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider[data-v-b199915c]:after{content:"";position:absolute;border-radius:inherit;left:0;right:0;top:0;bottom:0;box-shadow:inset 0 0 2px #0000003d;pointer-events:none}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider .color-picker-checkboard[data-v-b199915c]{background:#fff;position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider .color-picker-checkboard[data-v-b199915c]:after{background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0px;background-repeat:repeat;content:"";position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-preview .color-picker-preview-sliders .color-picker-slider .color-picker-slider-image[data-v-b199915c]{position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-panel .color-picker-preview .color-picker-preview-circle[data-v-b199915c]{position:relative;height:30px;width:30px;margin:0 0 8px 6px;border-radius:50%;box-shadow:#00000026 0 0 0 1px inset;overflow:hidden}.color-picker-panel .color-picker-preview .color-picker-preview-circle .color-picker-circle-fill[data-v-b199915c]{display:block;width:30px;height:30px}.color-picker-panel .color-picker-preview .color-picker-preview-circle .color-picker-circle-input[data-v-b199915c]{position:absolute;top:0;left:0;width:30px;height:30px;opacity:0;z-index:1}.color-picker-panel .color-picker-handle[data-v-b199915c]{z-index:1;box-shadow:0 0 2px #00000073;position:absolute;background-color:#fff;overflow:hidden}.color-picker-panel .color-picker-handle .color-picker-handle-fill[data-v-b199915c]{border:2px solid white}.color-picker-panel .color-picker-input[data-v-b199915c]{display:flex;align-items:center}.color-picker-panel .color-picker-input .color-picker-input-mode[data-v-b199915c]{width:72px;text-align:center}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c]{display:inline-flex;width:100%;flex-wrap:nowrap;vertical-align:bottom}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input{flex-grow:1;flex-basis:0}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input:not(:first-child){margin-left:-1px}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input:not(:first-child) .input-wrap{border-top-left-radius:0;border-bottom-left-radius:0}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input:not(:last-child) .input-wrap{border-top-right-radius:0;border-bottom-right-radius:0}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input .input-wrap{padding:1px 4px}.color-picker-panel .color-picker-input .color-picker-input-group[data-v-b199915c] .m-input .input-item{text-align:center}.color-picker-panel .color-picker-swatches[data-v-b199915c]{display:flex;gap:8px;flex-wrap:wrap;position:relative;margin-top:10px}.color-picker-panel .color-picker-swatches .color-picker-swatch[data-v-b199915c]{width:18px;height:18px;background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-size:8px 8px;background-position:0px 0,0px 4px,4px -4px,-4px 0px;background-repeat:repeat}.color-picker-panel .color-picker-swatches .color-picker-swatch .color-picker-swatch-fill[data-v-b199915c]{position:relative;width:100%;height:100%;border-radius:3px;box-shadow:#00000026 0 0 0 1px inset;cursor:pointer}.panel-with-actions[data-v-b199915c]{padding-bottom:8px}.color-picker-actions[data-v-b199915c]{display:flex;gap:8px;border-top:1px solid rgba(5,5,5,.06);padding:8px 12px;justify-content:flex-end}.color-picker-footer[data-v-b199915c]{border-top:1px solid rgba(5,5,5,.06);padding:8px 12px}.color-picker-display[data-v-b199915c]{display:inline-block;width:var(--color-picker-width);height:var(--color-picker-height);border-radius:4px;position:relative;outline:none}.color-picker-display:not(.color-picker-disabled):hover .color-picker-wrap[data-v-b199915c]{border-color:var(--color-picker-primary-color-hover)}.color-picker-display:not(.color-picker-disabled):focus .color-picker-wrap[data-v-b199915c]{border-color:var(--color-picker-primary-color-focus);box-shadow:0 0 0 2px var(--color-picker-primary-shadow-color)}.color-picker-display .color-picker-wrap[data-v-b199915c]{height:100%;cursor:pointer;border:1px solid #d9d9d9;border-radius:4px;transition:all .2s cubic-bezier(.4,0,.2,1)}.color-picker-display .color-picker-wrap .color-picker-fill[data-v-b199915c]{position:absolute;left:4px;right:4px;top:4px;bottom:4px;display:flex;align-items:center;justify-content:center}.color-picker-display .color-picker-wrap .color-picker-fill .color-picker-checkboard[data-v-b199915c]{width:100%;height:100%;position:relative;background:#fff;position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-display .color-picker-wrap .color-picker-fill .color-picker-checkboard[data-v-b199915c]:after{background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-size:calc(var(--color-picker-block-size) * 2) calc(var(--color-picker-block-size) * 2);background-position:0 0,0 var(--color-picker-block-size),var(--color-picker-block-size) calc(-1 * var(--color-picker-block-size)),calc(-1 * var(--color-picker-block-size)) 0px;background-repeat:repeat;content:"";position:absolute;left:0;right:0;top:0;bottom:0}.color-picker-display .color-picker-wrap .color-picker-fill .color-picker-value[data-v-b199915c]{white-space:nowrap;position:relative;font-size:14px;line-height:1.71428571}.color-picker-small .color-picker-wrap .color-picker-fill[data-v-b199915c]{left:3px;right:3px;top:3px;bottom:3px}.color-picker-small .color-picker-wrap .color-picker-fill .color-picker-value[data-v-b199915c]{line-height:1.28571429}.color-picker-large .color-picker-wrap .color-picker-fill[data-v-b199915c]{left:5px;right:5px;top:5px;bottom:5px}.color-picker-large .color-picker-wrap .color-picker-fill .color-picker-value[data-v-b199915c]{font-size:16px;line-height:1.875}.color-picker-disabled[data-v-b199915c]{cursor:not-allowed}
@@ -2,8 +2,10 @@ import { CSSProperties } from 'vue';
2
2
  export type ColorPickerMode = 'rgb' | 'hsl' | 'hsv' | 'hex';
3
3
  export type ColorPickerAction = 'confirm' | 'clear';
4
4
  export interface Props {
5
+ width?: string | number;
5
6
  label?: (color: string) => string;
6
7
  tooltipStyle?: CSSProperties;
8
+ inputProps?: object;
7
9
  showAlpha?: boolean;
8
10
  showPreview?: boolean;
9
11
  size?: 'small' | 'middle' | 'large';
@@ -173,9 +175,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
173
175
  footer: string;
174
176
  label: (color: string) => string;
175
177
  actions: ColorPickerAction[];
178
+ width: string | number;
176
179
  tooltipStyle: CSSProperties;
177
180
  value: string;
178
181
  disabled: boolean;
182
+ inputProps: object;
179
183
  showAlpha: boolean;
180
184
  showPreview: boolean;
181
185
  modes: ColorPickerMode[];
@@ -1,7 +1,7 @@
1
1
  import o from "./ColorPicker.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-49c5bc8a"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b199915c"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };