@quoreadmin/ui 1.10.27 → 1.10.30

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 (200) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index103.js +11 -6
  3. package/dist/index147.js +147 -147
  4. package/dist/index157.js +160 -160
  5. package/dist/index186.js +4 -4
  6. package/dist/index193.js +8 -8
  7. package/dist/index195.js +8 -8
  8. package/dist/index198.js +17 -17
  9. package/dist/index201.js +26 -26
  10. package/dist/index202.js +1 -1
  11. package/dist/index203.js +1 -1
  12. package/dist/index206.js +2 -2
  13. package/dist/index208.js +14 -14
  14. package/dist/index209.js +1 -1
  15. package/dist/index210.js +1 -1
  16. package/dist/index211.js +3 -3
  17. package/dist/index212.js +6 -6
  18. package/dist/index216.js +2 -2
  19. package/dist/index217.js +1 -1
  20. package/dist/index219.js +4 -4
  21. package/dist/index221.js +1 -1
  22. package/dist/index222.js +1 -1
  23. package/dist/index223.js +1 -1
  24. package/dist/index224.js +4 -4
  25. package/dist/index226.js +1 -1
  26. package/dist/index227.js +2 -2
  27. package/dist/index228.js +2 -2
  28. package/dist/index229.js +1 -1
  29. package/dist/index23.js +47 -27
  30. package/dist/index230.js +159 -159
  31. package/dist/index231.js +228 -20
  32. package/dist/index232.js +36 -19
  33. package/dist/index233.js +10 -22
  34. package/dist/index234.js +129 -167
  35. package/dist/index235.js +19 -69
  36. package/dist/index236.js +20 -34
  37. package/dist/index237.js +21 -39
  38. package/dist/index238.js +185 -113
  39. package/dist/index239.js +57 -25
  40. package/dist/index240.js +31 -77
  41. package/dist/index241.js +39 -19
  42. package/dist/index242.js +126 -19
  43. package/dist/index243.js +34 -16
  44. package/dist/index244.js +80 -20
  45. package/dist/index245.js +19 -160
  46. package/dist/index246.js +20 -228
  47. package/dist/index247.js +19 -36
  48. package/dist/index248.js +20 -10
  49. package/dist/index249.js +3709 -22
  50. package/dist/index250.js +60 -22
  51. package/dist/index251.js +83 -20
  52. package/dist/index252.js +39 -823
  53. package/dist/index253.js +198 -685
  54. package/dist/index254.js +9 -175
  55. package/dist/index255.js +57 -22
  56. package/dist/index256.js +61 -20
  57. package/dist/index257.js +54 -20
  58. package/dist/index258.js +81 -3
  59. package/dist/index259.js +711 -170
  60. package/dist/index260.js +41 -127
  61. package/dist/index261.js +55 -1214
  62. package/dist/index262.js +11 -20
  63. package/dist/index263.js +705 -22
  64. package/dist/index264.js +820 -22
  65. package/dist/index265.js +15 -22
  66. package/dist/index266.js +15 -13
  67. package/dist/index267.js +12 -12
  68. package/dist/index268.js +836 -2
  69. package/dist/index269.js +702 -2
  70. package/dist/index270.js +164 -241
  71. package/dist/index271.js +21 -7
  72. package/dist/index272.js +20 -138
  73. package/dist/index273.js +20 -83
  74. package/dist/index274.js +3 -54
  75. package/dist/index275.js +173 -65
  76. package/dist/index276.js +132 -25
  77. package/dist/index277.js +1223 -22
  78. package/dist/index278.js +13 -15
  79. package/dist/index279.js +22 -16
  80. package/dist/index280.js +22 -17
  81. package/dist/index281.js +28 -22
  82. package/dist/index282.js +20 -3
  83. package/dist/index283.js +19 -26
  84. package/dist/index284.js +2 -3709
  85. package/dist/index285.js +2 -60
  86. package/dist/index286.js +242 -72
  87. package/dist/index287.js +7 -51
  88. package/dist/index288.js +132 -209
  89. package/dist/index289.js +83 -10
  90. package/dist/index290.js +3 -57
  91. package/dist/index291.js +26 -60
  92. package/dist/index292.js +51 -51
  93. package/dist/index293.js +76 -78
  94. package/dist/index294.js +25 -727
  95. package/dist/index295.js +22 -47
  96. package/dist/index296.js +22 -64
  97. package/dist/index297.js +15 -10
  98. package/dist/index298.js +16 -704
  99. package/dist/index299.js +23 -820
  100. package/dist/index301.js +1534 -79
  101. package/dist/index302.js +386 -22
  102. package/dist/index303.js +2698 -902
  103. package/dist/index304.js +85 -21
  104. package/dist/index305.js +3798 -20
  105. package/dist/index306.js +59 -19
  106. package/dist/index307.js +15 -69
  107. package/dist/index308.js +84 -19
  108. package/dist/index309.js +201 -18
  109. package/dist/index310.js +246 -22
  110. package/dist/index311.js +78 -21
  111. package/dist/index312.js +22 -63
  112. package/dist/index313.js +920 -250
  113. package/dist/index314.js +21 -5
  114. package/dist/index315.js +19 -149
  115. package/dist/index316.js +19 -68
  116. package/dist/index317.js +64 -86
  117. package/dist/index318.js +19 -29
  118. package/dist/index319.js +19 -16
  119. package/dist/index320.js +21 -74
  120. package/dist/index321.js +21 -3
  121. package/dist/index322.js +63 -2
  122. package/dist/index323.js +227 -76
  123. package/dist/index324.js +5 -57
  124. package/dist/index325.js +133 -5
  125. package/dist/index326.js +67 -4
  126. package/dist/index327.js +79 -178
  127. package/dist/index328.js +26 -60
  128. package/dist/index329.js +8 -74
  129. package/dist/index330.js +73 -35
  130. package/dist/index331.js +3 -8
  131. package/dist/index332.js +2 -13
  132. package/dist/index333.js +78 -50
  133. package/dist/index334.js +53 -11
  134. package/dist/index335.js +4 -12
  135. package/dist/index336.js +4 -57
  136. package/dist/index337.js +175 -48
  137. package/dist/index338.js +60 -28
  138. package/dist/index339.js +75 -2
  139. package/dist/index340.js +10 -5
  140. package/dist/index341.js +10 -2
  141. package/dist/index342.js +12 -21
  142. package/dist/index343.js +9 -40
  143. package/dist/index344.js +17 -2
  144. package/dist/index345.js +9 -11
  145. package/dist/index346.js +12 -19
  146. package/dist/index347.js +55 -10
  147. package/dist/index348.js +12 -10
  148. package/dist/index349.js +12 -15
  149. package/dist/index350.js +58 -2
  150. package/dist/index351.js +52 -9
  151. package/dist/index352.js +30 -9
  152. package/dist/index353.js +2 -14
  153. package/dist/index354.js +4 -1533
  154. package/dist/index355.js +2 -386
  155. package/dist/index356.js +22 -2730
  156. package/dist/index357.js +37 -82
  157. package/dist/index358.js +2 -3798
  158. package/dist/index359.js +11 -60
  159. package/dist/index360.js +20 -15
  160. package/dist/index361.js +2 -84
  161. package/dist/index362.js +9 -202
  162. package/dist/index363.js +31 -240
  163. package/dist/index364.js +1 -1
  164. package/dist/index365.js +1 -1
  165. package/dist/index366.js +1 -1
  166. package/dist/index367.js +1 -1
  167. package/dist/index368.js +14 -12
  168. package/dist/index369.js +1 -2
  169. package/dist/index370.js +22 -18
  170. package/dist/index371.js +2 -2
  171. package/dist/index372.js +3 -6
  172. package/dist/index373.js +3 -4
  173. package/dist/index374.js +2 -2
  174. package/dist/index375.js +2 -2
  175. package/dist/index376.js +1 -1
  176. package/dist/index378.js +20 -32
  177. package/dist/index379.js +45 -58
  178. package/dist/index380.js +100 -16
  179. package/dist/index381.js +90 -30
  180. package/dist/index382.js +98 -11
  181. package/dist/index383.js +17 -4
  182. package/dist/index384.js +30 -3
  183. package/dist/index385.js +11 -13
  184. package/dist/index386.js +4 -7
  185. package/dist/index387.js +3 -13
  186. package/dist/index388.js +13 -5
  187. package/dist/index389.js +7 -36
  188. package/dist/index390.js +11 -36
  189. package/dist/index391.js +5 -30
  190. package/dist/index392.js +33 -64
  191. package/dist/index393.js +29 -99
  192. package/dist/index394.js +28 -91
  193. package/dist/index395.js +59 -96
  194. package/dist/index396.js +1 -1
  195. package/dist/index402.js +1 -1
  196. package/dist/index50.js +1 -1
  197. package/dist/src/components/event/event.d.ts +12 -0
  198. package/dist/src/components/event/event.stories.d.ts +2 -0
  199. package/dist/src/components/room-details-popover/room-details-popover.d.ts +9 -3
  200. package/package.json +2 -2
package/dist/index273.js CHANGED
@@ -1,85 +1,22 @@
1
- import { DomHandler as u } from "./index180.js";
2
- import { ref as d, readonly as q, getCurrentInstance as B, onMounted as H, nextTick as N, watch as z } from "vue";
3
- function a(t) {
4
- "@babel/helpers - typeof";
5
- return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
6
- return typeof e;
7
- } : function(e) {
8
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
9
- }, a(t);
10
- }
11
- function S(t, e) {
12
- var n = Object.keys(t);
13
- if (Object.getOwnPropertySymbols) {
14
- var r = Object.getOwnPropertySymbols(t);
15
- e && (r = r.filter(function(o) {
16
- return Object.getOwnPropertyDescriptor(t, o).enumerable;
17
- })), n.push.apply(n, r);
18
- }
19
- return n;
20
- }
21
- function j(t) {
22
- for (var e = 1; e < arguments.length; e++) {
23
- var n = arguments[e] != null ? arguments[e] : {};
24
- e % 2 ? S(Object(n), !0).forEach(function(r) {
25
- F(t, r, n[r]);
26
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : S(Object(n)).forEach(function(r) {
27
- Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
28
- });
29
- }
30
- return t;
31
- }
32
- function F(t, e, n) {
33
- return e = G(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
34
- }
35
- function G(t) {
36
- var e = J(t, "string");
37
- return a(e) == "symbol" ? e : String(e);
38
- }
39
- function J(t, e) {
40
- if (a(t) != "object" || !t) return t;
41
- var n = t[Symbol.toPrimitive];
42
- if (n !== void 0) {
43
- var r = n.call(t, e);
44
- if (a(r) != "object") return r;
45
- throw new TypeError("@@toPrimitive must return a primitive value.");
46
- }
47
- return (e === "string" ? String : Number)(t);
48
- }
49
- function Q(t) {
50
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
51
- B() ? H(t) : e ? t() : N(t);
52
- }
53
- var U = 0;
54
- function X(t) {
55
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = d(!1), r = d(t), o = d(null), $ = u.isClient() ? window.document : void 0, c = e.document, i = c === void 0 ? $ : c, m = e.immediate, C = m === void 0 ? !0 : m, f = e.manual, D = f === void 0 ? !1 : f, p = e.name, l = p === void 0 ? "style_".concat(++U) : p, v = e.id, y = v === void 0 ? void 0 : v, b = e.media, E = b === void 0 ? void 0 : b, g = e.nonce, x = g === void 0 ? void 0 : g, _ = e.props, A = _ === void 0 ? {} : _, O = function() {
56
- }, P = function(K) {
57
- var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
58
- if (i) {
59
- var s = j(j({}, A), L), M = s.name || l, w = s.id || y, R = s.nonce || x;
60
- o.value = i.querySelector('style[data-primevue-style-id="'.concat(M, '"]')) || i.getElementById(w) || i.createElement("style"), o.value.isConnected || (r.value = K || t, u.setAttributes(o.value, {
61
- type: "text/css",
62
- id: w,
63
- media: E,
64
- nonce: R
65
- }), i.head.appendChild(o.value), u.setAttribute(o.value, "data-primevue-style-id", l), u.setAttributes(o.value, s)), !n.value && (O = z(r, function(T) {
66
- o.value.textContent = T;
67
- }, {
68
- immediate: !0
69
- }), n.value = !0);
70
- }
71
- }, I = function() {
72
- !i || !n.value || (O(), u.isExist(o.value) && i.head.removeChild(o.value), n.value = !1);
73
- };
74
- return C && !D && Q(P), {
75
- id: y,
76
- name: l,
77
- css: r,
78
- unload: I,
79
- load: P,
80
- isLoaded: q(n)
81
- };
82
- }
1
+ import r from "./index293.js";
2
+ import { openBlock as t, createElementBlock as o, mergeProps as n, createElementVNode as C } from "vue";
3
+ var i = {
4
+ name: "PencilIcon",
5
+ extends: r
6
+ }, l = /* @__PURE__ */ C("path", {
7
+ d: "M0.609628 13.959C0.530658 13.9599 0.452305 13.9451 0.379077 13.9156C0.305849 13.8861 0.239191 13.8424 0.18294 13.787C0.118447 13.7234 0.0688234 13.6464 0.0376166 13.5614C0.00640987 13.4765 -0.00560954 13.3857 0.00241768 13.2956L0.25679 10.1501C0.267698 10.0041 0.331934 9.86709 0.437312 9.76516L9.51265 0.705715C10.0183 0.233014 10.6911 -0.0203041 11.3835 0.00127367C12.0714 0.00660201 12.7315 0.27311 13.2298 0.746671C13.7076 1.23651 13.9824 1.88848 13.9992 2.57201C14.0159 3.25554 13.7733 3.92015 13.32 4.4327L4.23648 13.5331C4.13482 13.6342 4.0017 13.6978 3.85903 13.7133L0.667067 14L0.609628 13.959ZM1.43018 10.4696L1.25787 12.714L3.50619 12.5092L12.4502 3.56444C12.6246 3.35841 12.7361 3.10674 12.7714 2.83933C12.8067 2.57193 12.7644 2.30002 12.6495 2.05591C12.5346 1.8118 12.3519 1.60575 12.1231 1.46224C11.8943 1.31873 11.6291 1.2438 11.3589 1.24633C11.1813 1.23508 11.0033 1.25975 10.8355 1.31887C10.6677 1.37798 10.5136 1.47033 10.3824 1.59036L1.43018 10.4696Z",
8
+ fill: "currentColor"
9
+ }, null, -1), p = [l];
10
+ function s(e, a, c, d, m, L) {
11
+ return t(), o("svg", n({
12
+ width: "14",
13
+ height: "14",
14
+ viewBox: "0 0 14 14",
15
+ fill: "none",
16
+ xmlns: "http://www.w3.org/2000/svg"
17
+ }, e.pti()), p, 16);
18
+ }
19
+ i.render = s;
83
20
  export {
84
- X as useStyle
21
+ i as default
85
22
  };
package/dist/index274.js CHANGED
@@ -1,56 +1,5 @@
1
- import l from "./index272.js";
2
- function r(e) {
3
- "@babel/helpers - typeof";
4
- return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
5
- return typeof t;
6
- } : function(t) {
7
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
8
- }, r(e);
9
- }
10
- function i(e, t, n) {
11
- return t = u(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
12
- }
13
- function u(e) {
14
- var t = a(e, "string");
15
- return r(t) == "symbol" ? t : String(t);
16
- }
17
- function a(e, t) {
18
- if (r(e) != "object" || !e) return e;
19
- var n = e[Symbol.toPrimitive];
20
- if (n !== void 0) {
21
- var o = n.call(e, t);
22
- if (r(o) != "object") return o;
23
- throw new TypeError("@@toPrimitive must return a primitive value.");
24
- }
25
- return (t === "string" ? String : Number)(e);
26
- }
27
- var p = {
28
- root: function(t) {
29
- var n = t.instance, o = t.props;
30
- return ["p-button p-component", i(i(i(i(i(i(i(i({
31
- "p-button-icon-only": n.hasIcon && !o.label && !o.badge,
32
- "p-button-vertical": (o.iconPos === "top" || o.iconPos === "bottom") && o.label,
33
- "p-disabled": n.$attrs.disabled || n.$attrs.disabled === "" || o.loading,
34
- "p-button-loading": o.loading,
35
- "p-button-loading-label-only": o.loading && !n.hasIcon && o.label,
36
- "p-button-link": o.link
37
- }, "p-button-".concat(o.severity), o.severity), "p-button-raised", o.raised), "p-button-rounded", o.rounded), "p-button-text", o.text), "p-button-outlined", o.outlined), "p-button-sm", o.size === "small"), "p-button-lg", o.size === "large"), "p-button-plain", o.plain)];
38
- },
39
- loadingIcon: "p-button-loading-icon pi-spin",
40
- icon: function(t) {
41
- var n = t.props;
42
- return ["p-button-icon", {
43
- "p-button-icon-left": n.iconPos === "left" && n.label,
44
- "p-button-icon-right": n.iconPos === "right" && n.label,
45
- "p-button-icon-top": n.iconPos === "top" && n.label,
46
- "p-button-icon-bottom": n.iconPos === "bottom" && n.label
47
- }];
48
- },
49
- label: "p-button-label"
50
- }, s = l.extend({
51
- name: "button",
52
- classes: p
53
- });
1
+ import { EventBus as e } from "./index180.js";
2
+ var a = e();
54
3
  export {
55
- s as default
4
+ a as default
56
5
  };
package/dist/index275.js CHANGED
@@ -1,81 +1,189 @@
1
- import s from "./index228.js";
2
- import c from "./index330.js";
3
- import { ObjectUtils as l } from "./index180.js";
4
- function i(t) {
5
- "@babel/helpers - typeof";
6
- return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
7
- return typeof e;
8
- } : function(e) {
9
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
10
- }, i(t);
11
- }
12
- function o(t, e) {
13
- var r = Object.keys(t);
14
- if (Object.getOwnPropertySymbols) {
15
- var n = Object.getOwnPropertySymbols(t);
16
- e && (n = n.filter(function(u) {
17
- return Object.getOwnPropertyDescriptor(t, u).enumerable;
18
- })), r.push.apply(r, n);
1
+ import f from "./index272.js";
2
+ import { ObjectUtils as o } from "./index180.js";
3
+ import h from "./index228.js";
4
+ import p from "./index318.js";
5
+ import { resolveComponent as m, openBlock as d, createElementBlock as y, mergeProps as l, createElementVNode as s, renderSlot as b, normalizeClass as g, createBlock as v, createCommentVNode as k } from "vue";
6
+ var C = {
7
+ name: "BaseCheckbox",
8
+ extends: h,
9
+ props: {
10
+ value: null,
11
+ modelValue: null,
12
+ binary: Boolean,
13
+ name: {
14
+ type: String,
15
+ default: null
16
+ },
17
+ trueValue: {
18
+ type: null,
19
+ default: !0
20
+ },
21
+ falseValue: {
22
+ type: null,
23
+ default: !1
24
+ },
25
+ variant: {
26
+ type: String,
27
+ default: null
28
+ },
29
+ invalid: {
30
+ type: Boolean,
31
+ default: !1
32
+ },
33
+ disabled: {
34
+ type: Boolean,
35
+ default: !1
36
+ },
37
+ readonly: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ required: {
42
+ type: Boolean,
43
+ default: !1
44
+ },
45
+ tabindex: {
46
+ type: Number,
47
+ default: null
48
+ },
49
+ inputId: {
50
+ type: String,
51
+ default: null
52
+ },
53
+ inputClass: {
54
+ type: [String, Object],
55
+ default: null
56
+ },
57
+ inputStyle: {
58
+ type: Object,
59
+ default: null
60
+ },
61
+ ariaLabelledby: {
62
+ type: String,
63
+ default: null
64
+ },
65
+ ariaLabel: {
66
+ type: String,
67
+ default: null
68
+ }
69
+ },
70
+ style: p,
71
+ provide: function() {
72
+ return {
73
+ $parentInstance: this
74
+ };
19
75
  }
20
- return r;
76
+ };
77
+ function S(e) {
78
+ return I(e) || V(e) || A(e) || B();
79
+ }
80
+ function B() {
81
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
21
83
  }
22
- function p(t) {
23
- for (var e = 1; e < arguments.length; e++) {
24
- var r = arguments[e] != null ? arguments[e] : {};
25
- e % 2 ? o(Object(r), !0).forEach(function(n) {
26
- f(t, n, r[n]);
27
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : o(Object(r)).forEach(function(n) {
28
- Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
29
- });
84
+ function A(e, t) {
85
+ if (e) {
86
+ if (typeof e == "string") return i(e, t);
87
+ var n = Object.prototype.toString.call(e).slice(8, -1);
88
+ if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
89
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return i(e, t);
30
90
  }
31
- return t;
32
91
  }
33
- function f(t, e, r) {
34
- return e = a(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
92
+ function V(e) {
93
+ if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
35
94
  }
36
- function a(t) {
37
- var e = y(t, "string");
38
- return i(e) == "symbol" ? e : String(e);
95
+ function I(e) {
96
+ if (Array.isArray(e)) return i(e);
39
97
  }
40
- function y(t, e) {
41
- if (i(t) != "object" || !t) return t;
42
- var r = t[Symbol.toPrimitive];
43
- if (r !== void 0) {
44
- var n = r.call(t, e);
45
- if (i(n) != "object") return n;
46
- throw new TypeError("@@toPrimitive must return a primitive value.");
47
- }
48
- return (e === "string" ? String : Number)(t);
98
+ function i(e, t) {
99
+ (t == null || t > e.length) && (t = e.length);
100
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
101
+ return r;
49
102
  }
50
103
  var O = {
51
- name: "BaseIcon",
52
- extends: s,
53
- props: {
54
- label: {
55
- type: String,
56
- default: void 0
104
+ name: "Checkbox",
105
+ extends: C,
106
+ inheritAttrs: !1,
107
+ emits: ["update:modelValue", "change", "focus", "blur"],
108
+ methods: {
109
+ getPTOptions: function(t) {
110
+ var n = t === "root" ? this.ptmi : this.ptm;
111
+ return n(t, {
112
+ context: {
113
+ checked: this.checked,
114
+ disabled: this.disabled
115
+ }
116
+ });
57
117
  },
58
- spin: {
59
- type: Boolean,
60
- default: !1
118
+ onChange: function(t) {
119
+ var n = this;
120
+ if (!this.disabled && !this.readonly) {
121
+ var r;
122
+ this.binary ? r = this.checked ? this.falseValue : this.trueValue : this.checked ? r = this.modelValue.filter(function(u) {
123
+ return !o.equals(u, n.value);
124
+ }) : r = this.modelValue ? [].concat(S(this.modelValue), [this.value]) : [this.value], this.$emit("update:modelValue", r), this.$emit("change", t);
125
+ }
126
+ },
127
+ onFocus: function(t) {
128
+ this.$emit("focus", t);
129
+ },
130
+ onBlur: function(t) {
131
+ this.$emit("blur", t);
61
132
  }
62
133
  },
63
- style: c,
64
- methods: {
65
- pti: function() {
66
- var e = l.isEmpty(this.label);
67
- return p(p({}, !this.isUnstyled && {
68
- class: ["p-icon", {
69
- "p-icon-spin": this.spin
70
- }]
71
- }), {}, {
72
- role: e ? void 0 : "img",
73
- "aria-label": e ? void 0 : this.label,
74
- "aria-hidden": e
75
- });
134
+ computed: {
135
+ checked: function() {
136
+ return this.binary ? this.modelValue === this.trueValue : o.contains(this.value, this.modelValue);
76
137
  }
138
+ },
139
+ components: {
140
+ CheckIcon: f
77
141
  }
78
- };
142
+ }, T = ["data-p-highlight", "data-p-disabled"], P = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label", "aria-invalid"];
143
+ function j(e, t, n, r, u, a) {
144
+ var c = m("CheckIcon");
145
+ return d(), y("div", l({
146
+ class: e.cx("root")
147
+ }, a.getPTOptions("root"), {
148
+ "data-p-highlight": a.checked,
149
+ "data-p-disabled": e.disabled
150
+ }), [s("input", l({
151
+ id: e.inputId,
152
+ type: "checkbox",
153
+ class: [e.cx("input"), e.inputClass],
154
+ style: e.inputStyle,
155
+ value: e.value,
156
+ name: e.name,
157
+ checked: a.checked,
158
+ tabindex: e.tabindex,
159
+ disabled: e.disabled,
160
+ readonly: e.readonly,
161
+ required: e.required,
162
+ "aria-labelledby": e.ariaLabelledby,
163
+ "aria-label": e.ariaLabel,
164
+ "aria-invalid": e.invalid || void 0,
165
+ onFocus: t[0] || (t[0] = function() {
166
+ return a.onFocus && a.onFocus.apply(a, arguments);
167
+ }),
168
+ onBlur: t[1] || (t[1] = function() {
169
+ return a.onBlur && a.onBlur.apply(a, arguments);
170
+ }),
171
+ onChange: t[2] || (t[2] = function() {
172
+ return a.onChange && a.onChange.apply(a, arguments);
173
+ })
174
+ }, a.getPTOptions("input")), null, 16, P), s("div", l({
175
+ class: e.cx("box")
176
+ }, a.getPTOptions("box")), [b(e.$slots, "icon", {
177
+ checked: a.checked,
178
+ class: g(e.cx("icon"))
179
+ }, function() {
180
+ return [a.checked ? (d(), v(c, l({
181
+ key: 0,
182
+ class: e.cx("icon")
183
+ }, a.getPTOptions("icon")), null, 16, ["class"])) : k("", !0)];
184
+ })], 16)], 16, T);
185
+ }
186
+ O.render = j;
79
187
  export {
80
188
  O as default
81
189
  };
package/dist/index276.js CHANGED
@@ -1,28 +1,135 @@
1
- import t from "./index275.js";
2
- import { openBlock as C, createElementBlock as o, mergeProps as l, createElementVNode as e } from "vue";
3
- var n = {
4
- name: "ExclamationTriangleIcon",
5
- extends: t
6
- }, i = /* @__PURE__ */ e("path", {
7
- d: "M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",
8
- fill: "currentColor"
9
- }, null, -1), a = /* @__PURE__ */ e("path", {
10
- d: "M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",
11
- fill: "currentColor"
12
- }, null, -1), p = /* @__PURE__ */ e("path", {
13
- d: "M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",
14
- fill: "currentColor"
15
- }, null, -1), s = [i, a, p];
16
- function c(r, d, h, m, u, _) {
17
- return C(), o("svg", l({
18
- width: "14",
19
- height: "14",
20
- viewBox: "0 0 14 14",
21
- fill: "none",
22
- xmlns: "http://www.w3.org/2000/svg"
23
- }, r.pti()), s, 16);
1
+ import { ObjectUtils as d } from "./index180.js";
2
+ import u from "./index228.js";
3
+ import r from "./index319.js";
4
+ import { openBlock as o, createElementBlock as s, mergeProps as n, createElementVNode as i } from "vue";
5
+ var p = {
6
+ name: "BaseRadioButton",
7
+ extends: u,
8
+ props: {
9
+ value: null,
10
+ modelValue: null,
11
+ binary: Boolean,
12
+ name: {
13
+ type: String,
14
+ default: null
15
+ },
16
+ variant: {
17
+ type: String,
18
+ default: null
19
+ },
20
+ invalid: {
21
+ type: Boolean,
22
+ default: !1
23
+ },
24
+ disabled: {
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ readonly: {
29
+ type: Boolean,
30
+ default: !1
31
+ },
32
+ tabindex: {
33
+ type: Number,
34
+ default: null
35
+ },
36
+ inputId: {
37
+ type: String,
38
+ default: null
39
+ },
40
+ inputClass: {
41
+ type: [String, Object],
42
+ default: null
43
+ },
44
+ inputStyle: {
45
+ type: Object,
46
+ default: null
47
+ },
48
+ ariaLabelledby: {
49
+ type: String,
50
+ default: null
51
+ },
52
+ ariaLabel: {
53
+ type: String,
54
+ default: null
55
+ }
56
+ },
57
+ style: r,
58
+ provide: function() {
59
+ return {
60
+ $parentInstance: this
61
+ };
62
+ }
63
+ }, h = {
64
+ name: "RadioButton",
65
+ extends: p,
66
+ inheritAttrs: !1,
67
+ emits: ["update:modelValue", "change", "focus", "blur"],
68
+ methods: {
69
+ getPTOptions: function(a) {
70
+ var t = a === "root" ? this.ptmi : this.ptm;
71
+ return t(a, {
72
+ context: {
73
+ checked: this.checked,
74
+ disabled: this.disabled
75
+ }
76
+ });
77
+ },
78
+ onChange: function(a) {
79
+ if (!this.disabled && !this.readonly) {
80
+ var t = this.binary ? !this.checked : this.value;
81
+ this.$emit("update:modelValue", t), this.$emit("change", a);
82
+ }
83
+ },
84
+ onFocus: function(a) {
85
+ this.$emit("focus", a);
86
+ },
87
+ onBlur: function(a) {
88
+ this.$emit("blur", a);
89
+ }
90
+ },
91
+ computed: {
92
+ checked: function() {
93
+ return this.modelValue != null && (this.binary ? !!this.modelValue : d.equals(this.modelValue, this.value));
94
+ }
95
+ }
96
+ }, b = ["data-p-highlight", "data-p-disabled"], m = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "aria-labelledby", "aria-label", "aria-invalid"];
97
+ function c(e, a, t, f, y, l) {
98
+ return o(), s("div", n({
99
+ class: e.cx("root")
100
+ }, l.getPTOptions("root"), {
101
+ "data-p-highlight": l.checked,
102
+ "data-p-disabled": e.disabled
103
+ }), [i("input", n({
104
+ id: e.inputId,
105
+ type: "radio",
106
+ class: [e.cx("input"), e.inputClass],
107
+ style: e.inputStyle,
108
+ value: e.value,
109
+ name: e.name,
110
+ checked: l.checked,
111
+ tabindex: e.tabindex,
112
+ disabled: e.disabled,
113
+ readonly: e.readonly,
114
+ "aria-labelledby": e.ariaLabelledby,
115
+ "aria-label": e.ariaLabel,
116
+ "aria-invalid": e.invalid || void 0,
117
+ onFocus: a[0] || (a[0] = function() {
118
+ return l.onFocus && l.onFocus.apply(l, arguments);
119
+ }),
120
+ onBlur: a[1] || (a[1] = function() {
121
+ return l.onBlur && l.onBlur.apply(l, arguments);
122
+ }),
123
+ onChange: a[2] || (a[2] = function() {
124
+ return l.onChange && l.onChange.apply(l, arguments);
125
+ })
126
+ }, l.getPTOptions("input")), null, 16, m), i("div", n({
127
+ class: e.cx("box")
128
+ }, l.getPTOptions("box")), [i("div", n({
129
+ class: e.cx("icon")
130
+ }, l.getPTOptions("icon")), null, 16)], 16)], 16, b);
24
131
  }
25
- n.render = c;
132
+ h.render = c;
26
133
  export {
27
- n as default
134
+ h as default
28
135
  };