@quoreadmin/ui 1.10.21 → 1.10.23

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 (202) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index182.js +14 -14
  3. package/dist/index183.js +3 -3
  4. package/dist/index186.js +4 -4
  5. package/dist/index193.js +10 -10
  6. package/dist/index194.js +15 -0
  7. package/dist/index195.js +10 -10
  8. package/dist/index198.js +17 -17
  9. package/dist/index201.js +28 -28
  10. package/dist/index202.js +2 -2
  11. package/dist/index203.js +2 -2
  12. package/dist/index204.js +1 -1
  13. package/dist/index206.js +2 -2
  14. package/dist/index208.js +14 -14
  15. package/dist/index209.js +1 -1
  16. package/dist/index210.js +1 -1
  17. package/dist/index211.js +3 -3
  18. package/dist/index212.js +6 -6
  19. package/dist/index213.js +84 -29
  20. package/dist/index214.js +400 -109
  21. package/dist/index215.js +22 -36
  22. package/dist/index216.js +33 -26
  23. package/dist/index217.js +111 -31
  24. package/dist/index218.js +35 -50
  25. package/dist/index219.js +26 -43
  26. package/dist/index220.js +35 -3
  27. package/dist/index221.js +51 -9
  28. package/dist/index222.js +42 -18
  29. package/dist/index223.js +4 -10
  30. package/dist/index224.js +9 -10
  31. package/dist/index225.js +18 -38
  32. package/dist/index226.js +10 -21
  33. package/dist/index227.js +10 -88
  34. package/dist/index228.js +35 -403
  35. package/dist/index229.js +21 -22
  36. package/dist/index230.js +156 -122
  37. package/dist/index231.js +225 -35
  38. package/dist/index232.js +37 -80
  39. package/dist/index233.js +10 -20
  40. package/dist/index234.js +160 -19
  41. package/dist/index235.js +10 -10
  42. package/dist/index236.js +11 -11
  43. package/dist/index237.js +15 -13
  44. package/dist/index238.js +194 -156
  45. package/dist/index239.js +66 -224
  46. package/dist/index240.js +34 -37
  47. package/dist/index241.js +39 -9
  48. package/dist/index242.js +3624 -149
  49. package/dist/index243.js +55 -20
  50. package/dist/index244.js +77 -22
  51. package/dist/index245.js +43 -190
  52. package/dist/index246.js +211 -66
  53. package/dist/index247.js +9 -33
  54. package/dist/index248.js +53 -36
  55. package/dist/index249.js +61 -22
  56. package/dist/index250.js +54 -22
  57. package/dist/index251.js +75 -20
  58. package/dist/index252.js +681 -791
  59. package/dist/index253.js +33 -693
  60. package/dist/index254.js +56 -168
  61. package/dist/index255.js +11 -22
  62. package/dist/index256.js +705 -20
  63. package/dist/index257.js +820 -20
  64. package/dist/index258.js +127 -3
  65. package/dist/index259.js +24 -173
  66. package/dist/index260.js +78 -131
  67. package/dist/index261.js +20 -1223
  68. package/dist/index262.js +9 -9
  69. package/dist/index263.js +13 -15
  70. package/dist/index264.js +13 -15
  71. package/dist/index265.js +15 -22
  72. package/dist/index266.js +15 -13
  73. package/dist/index267.js +12 -12
  74. package/dist/index268.js +836 -2
  75. package/dist/index269.js +702 -2
  76. package/dist/index270.js +170 -3630
  77. package/dist/index271.js +22 -55
  78. package/dist/index272.js +20 -77
  79. package/dist/index273.js +20 -52
  80. package/dist/index274.js +3 -215
  81. package/dist/index275.js +187 -10
  82. package/dist/index276.js +128 -52
  83. package/dist/index277.js +1214 -52
  84. package/dist/index278.js +20 -54
  85. package/dist/index279.js +22 -75
  86. package/dist/index280.js +21 -725
  87. package/dist/index281.js +29 -42
  88. package/dist/index282.js +20 -64
  89. package/dist/index283.js +20 -11
  90. package/dist/index284.js +2 -705
  91. package/dist/index285.js +2 -820
  92. package/dist/index290.js +54 -2
  93. package/dist/index291.js +1 -1
  94. package/dist/index292.js +25 -53
  95. package/dist/index293.js +15 -19
  96. package/dist/index294.js +9 -9
  97. package/dist/index295.js +16 -22
  98. package/dist/index296.js +15 -14
  99. package/dist/index297.js +21 -15
  100. package/dist/index298.js +1534 -23
  101. package/dist/index299.js +386 -3
  102. package/dist/index300.js +2727 -23
  103. package/dist/index301.js +82 -75
  104. package/dist/index302.js +3792 -22
  105. package/dist/index303.js +56 -931
  106. package/dist/index304.js +15 -22
  107. package/dist/index305.js +83 -19
  108. package/dist/index306.js +202 -20
  109. package/dist/index307.js +241 -64
  110. package/dist/index308.js +2 -19
  111. package/dist/index309.js +76 -16
  112. package/dist/index310.js +16 -16
  113. package/dist/index311.js +935 -22
  114. package/dist/index312.js +22 -63
  115. package/dist/index313.js +19 -261
  116. package/dist/index314.js +19 -5
  117. package/dist/index315.js +63 -134
  118. package/dist/index316.js +19 -73
  119. package/dist/index317.js +17 -85
  120. package/dist/index318.js +21 -28
  121. package/dist/index319.js +21 -15
  122. package/dist/index320.js +63 -75
  123. package/dist/index321.js +261 -3
  124. package/dist/index322.js +6 -2
  125. package/dist/index323.js +134 -77
  126. package/dist/index324.js +69 -49
  127. package/dist/index325.js +86 -5
  128. package/dist/index326.js +28 -4
  129. package/dist/index327.js +14 -177
  130. package/dist/index328.js +68 -56
  131. package/dist/index329.js +4 -75
  132. package/dist/index330.js +2 -1534
  133. package/dist/index331.js +73 -376
  134. package/dist/index332.js +48 -2726
  135. package/dist/index333.js +4 -84
  136. package/dist/index334.js +4 -3791
  137. package/dist/index335.js +170 -51
  138. package/dist/index336.js +62 -14
  139. package/dist/index337.js +75 -84
  140. package/dist/index338.js +3 -202
  141. package/dist/index339.js +21 -240
  142. package/dist/index341.js +19 -8
  143. package/dist/index342.js +19 -12
  144. package/dist/index343.js +60 -51
  145. package/dist/index344.js +37 -12
  146. package/dist/index345.js +18 -13
  147. package/dist/index346.js +54 -55
  148. package/dist/index347.js +27 -50
  149. package/dist/index348.js +6 -30
  150. package/dist/index349.js +52 -2
  151. package/dist/index350.js +6 -4
  152. package/dist/index351.js +12 -2
  153. package/dist/index352.js +6 -22
  154. package/dist/index353.js +27 -40
  155. package/dist/index354.js +2 -2
  156. package/dist/index355.js +69 -10
  157. package/dist/index356.js +165 -18
  158. package/dist/index357.js +9 -10
  159. package/dist/index358.js +13 -10
  160. package/dist/index359.js +53 -15
  161. package/dist/index360.js +12 -2
  162. package/dist/index361.js +14 -9
  163. package/dist/index362.js +57 -9
  164. package/dist/index363.js +52 -14
  165. package/dist/index364.js +30 -19
  166. package/dist/index365.js +2 -20
  167. package/dist/index366.js +5 -64
  168. package/dist/index367.js +2 -37
  169. package/dist/index368.js +23 -19
  170. package/dist/index369.js +40 -56
  171. package/dist/index370.js +2 -29
  172. package/dist/index371.js +11 -7
  173. package/dist/index372.js +17 -49
  174. package/dist/index373.js +9 -6
  175. package/dist/index374.js +10 -12
  176. package/dist/index375.js +16 -6
  177. package/dist/index376.js +2 -28
  178. package/dist/index377.js +9 -2
  179. package/dist/index378.js +10 -70
  180. package/dist/index379.js +12 -165
  181. package/dist/index38.js +2 -2
  182. package/dist/index380.js +100 -16
  183. package/dist/index381.js +90 -30
  184. package/dist/index382.js +98 -11
  185. package/dist/index383.js +17 -4
  186. package/dist/index384.js +30 -3
  187. package/dist/index385.js +11 -13
  188. package/dist/index386.js +4 -7
  189. package/dist/index387.js +3 -11
  190. package/dist/index388.js +13 -5
  191. package/dist/index389.js +7 -33
  192. package/dist/index390.js +11 -30
  193. package/dist/index391.js +5 -28
  194. package/dist/index392.js +33 -61
  195. package/dist/index393.js +29 -96
  196. package/dist/index394.js +26 -99
  197. package/dist/index395.js +61 -91
  198. package/dist/index396.js +1 -1
  199. package/dist/index401.js +1 -1
  200. package/dist/index402.js +2 -2
  201. package/dist/src/components/icon/icon.stories.d.ts +1 -0
  202. package/package.json +1 -1
package/dist/index258.js CHANGED
@@ -1,5 +1,129 @@
1
- import { EventBus as e } from "./index180.js";
2
- var a = e();
1
+ import { DomHandler as s, ObjectUtils as h } from "./index180.js";
2
+ import E from "./index286.js";
3
+ import $ from "./index308.js";
4
+ var g = E.extend({
5
+ style: $
6
+ });
7
+ function m(o) {
8
+ "@babel/helpers - typeof";
9
+ return m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
10
+ return typeof e;
11
+ } : function(e) {
12
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
13
+ }, m(o);
14
+ }
15
+ function v(o, e) {
16
+ var t = Object.keys(o);
17
+ if (Object.getOwnPropertySymbols) {
18
+ var r = Object.getOwnPropertySymbols(o);
19
+ e && (r = r.filter(function(n) {
20
+ return Object.getOwnPropertyDescriptor(o, n).enumerable;
21
+ })), t.push.apply(t, r);
22
+ }
23
+ return t;
24
+ }
25
+ function F(o) {
26
+ for (var e = 1; e < arguments.length; e++) {
27
+ var t = arguments[e] != null ? arguments[e] : {};
28
+ e % 2 ? v(Object(t), !0).forEach(function(r) {
29
+ S(o, r, t[r]);
30
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(t)) : v(Object(t)).forEach(function(r) {
31
+ Object.defineProperty(o, r, Object.getOwnPropertyDescriptor(t, r));
32
+ });
33
+ }
34
+ return o;
35
+ }
36
+ function S(o, e, t) {
37
+ return e = y(e), e in o ? Object.defineProperty(o, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : o[e] = t, o;
38
+ }
39
+ function y(o) {
40
+ var e = O(o, "string");
41
+ return m(e) == "symbol" ? e : String(e);
42
+ }
43
+ function O(o, e) {
44
+ if (m(o) != "object" || !o) return o;
45
+ var t = o[Symbol.toPrimitive];
46
+ if (t !== void 0) {
47
+ var r = t.call(o, e);
48
+ if (m(r) != "object") return r;
49
+ throw new TypeError("@@toPrimitive must return a primitive value.");
50
+ }
51
+ return (e === "string" ? String : Number)(o);
52
+ }
53
+ var x = g.extend("focustrap", {
54
+ mounted: function(e, t) {
55
+ var r = t.value || {}, n = r.disabled;
56
+ n || (this.createHiddenFocusableElements(e, t), this.bind(e, t), this.autoElementFocus(e, t)), e.setAttribute("data-pd-focustrap", !0), this.$el = e;
57
+ },
58
+ updated: function(e, t) {
59
+ var r = t.value || {}, n = r.disabled;
60
+ n && this.unbind(e);
61
+ },
62
+ unmounted: function(e) {
63
+ this.unbind(e);
64
+ },
65
+ methods: {
66
+ getComputedSelector: function(e) {
67
+ return ':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(e ?? "");
68
+ },
69
+ bind: function(e, t) {
70
+ var r = this, n = t.value || {}, u = n.onFocusIn, l = n.onFocusOut;
71
+ e.$_pfocustrap_mutationobserver = new MutationObserver(function(c) {
72
+ c.forEach(function(f) {
73
+ if (f.type === "childList" && !e.contains(document.activeElement)) {
74
+ var d = function p(a) {
75
+ var i = s.isFocusableElement(a) ? s.isFocusableElement(a, r.getComputedSelector(e.$_pfocustrap_focusableselector)) ? a : s.getFirstFocusableElement(e, r.getComputedSelector(e.$_pfocustrap_focusableselector)) : s.getFirstFocusableElement(a);
76
+ return h.isNotEmpty(i) ? i : a.nextSibling && p(a.nextSibling);
77
+ };
78
+ s.focus(d(f.nextSibling));
79
+ }
80
+ });
81
+ }), e.$_pfocustrap_mutationobserver.disconnect(), e.$_pfocustrap_mutationobserver.observe(e, {
82
+ childList: !0
83
+ }), e.$_pfocustrap_focusinlistener = function(c) {
84
+ return u && u(c);
85
+ }, e.$_pfocustrap_focusoutlistener = function(c) {
86
+ return l && l(c);
87
+ }, e.addEventListener("focusin", e.$_pfocustrap_focusinlistener), e.addEventListener("focusout", e.$_pfocustrap_focusoutlistener);
88
+ },
89
+ unbind: function(e) {
90
+ e.$_pfocustrap_mutationobserver && e.$_pfocustrap_mutationobserver.disconnect(), e.$_pfocustrap_focusinlistener && e.removeEventListener("focusin", e.$_pfocustrap_focusinlistener) && (e.$_pfocustrap_focusinlistener = null), e.$_pfocustrap_focusoutlistener && e.removeEventListener("focusout", e.$_pfocustrap_focusoutlistener) && (e.$_pfocustrap_focusoutlistener = null);
91
+ },
92
+ autoFocus: function(e) {
93
+ this.autoElementFocus(this.$el, {
94
+ value: F(F({}, e), {}, {
95
+ autoFocus: !0
96
+ })
97
+ });
98
+ },
99
+ autoElementFocus: function(e, t) {
100
+ var r = t.value || {}, n = r.autoFocusSelector, u = n === void 0 ? "" : n, l = r.firstFocusableSelector, c = l === void 0 ? "" : l, f = r.autoFocus, d = f === void 0 ? !1 : f, p = s.getFirstFocusableElement(e, "[autofocus]".concat(this.getComputedSelector(u)));
101
+ d && !p && (p = s.getFirstFocusableElement(e, this.getComputedSelector(c))), s.focus(p);
102
+ },
103
+ onFirstHiddenElementFocus: function(e) {
104
+ var t, r = e.currentTarget, n = e.relatedTarget, u = n === r.$_pfocustrap_lasthiddenfocusableelement || !((t = this.$el) !== null && t !== void 0 && t.contains(n)) ? s.getFirstFocusableElement(r.parentElement, this.getComputedSelector(r.$_pfocustrap_focusableselector)) : r.$_pfocustrap_lasthiddenfocusableelement;
105
+ s.focus(u);
106
+ },
107
+ onLastHiddenElementFocus: function(e) {
108
+ var t, r = e.currentTarget, n = e.relatedTarget, u = n === r.$_pfocustrap_firsthiddenfocusableelement || !((t = this.$el) !== null && t !== void 0 && t.contains(n)) ? s.getLastFocusableElement(r.parentElement, this.getComputedSelector(r.$_pfocustrap_focusableselector)) : r.$_pfocustrap_firsthiddenfocusableelement;
109
+ s.focus(u);
110
+ },
111
+ createHiddenFocusableElements: function(e, t) {
112
+ var r = this, n = t.value || {}, u = n.tabIndex, l = u === void 0 ? 0 : u, c = n.firstFocusableSelector, f = c === void 0 ? "" : c, d = n.lastFocusableSelector, p = d === void 0 ? "" : d, a = function(_) {
113
+ return s.createElement("span", {
114
+ class: "p-hidden-accessible p-hidden-focusable",
115
+ tabIndex: l,
116
+ role: "presentation",
117
+ "aria-hidden": !0,
118
+ "data-p-hidden-accessible": !0,
119
+ "data-p-hidden-focusable": !0,
120
+ onFocus: _?.bind(r)
121
+ });
122
+ }, i = a(this.onFirstHiddenElementFocus), b = a(this.onLastHiddenElementFocus);
123
+ i.$_pfocustrap_lasthiddenfocusableelement = b, i.$_pfocustrap_focusableselector = f, i.setAttribute("data-pc-section", "firstfocusableelement"), b.$_pfocustrap_firsthiddenfocusableelement = i, b.$_pfocustrap_focusableselector = p, b.setAttribute("data-pc-section", "lastfocusableelement"), e.prepend(i), e.append(b);
124
+ }
125
+ }
126
+ });
3
127
  export {
4
- a as default
128
+ x as default
5
129
  };
package/dist/index259.js CHANGED
@@ -1,189 +1,40 @@
1
- import f from "./index256.js";
2
- import { ObjectUtils as o } from "./index180.js";
3
- import h from "./index228.js";
4
- import p from "./index308.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,
1
+ import { DomHandler as d } from "./index180.js";
2
+ import { renderSlot as t, openBlock as a, createBlock as l, Teleport as i, createCommentVNode as u } from "vue";
3
+ var p = {
4
+ name: "Portal",
9
5
  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
6
+ appendTo: {
7
+ type: [String, Object],
8
+ default: "body"
32
9
  },
33
10
  disabled: {
34
11
  type: Boolean,
35
12
  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
13
  }
69
14
  },
70
- style: p,
71
- provide: function() {
15
+ data: function() {
72
16
  return {
73
- $parentInstance: this
17
+ mounted: !1
74
18
  };
75
- }
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.`);
83
- }
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);
90
- }
91
- }
92
- function V(e) {
93
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
94
- }
95
- function I(e) {
96
- if (Array.isArray(e)) return i(e);
97
- }
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;
102
- }
103
- var O = {
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
- });
117
- },
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);
132
- }
19
+ },
20
+ mounted: function() {
21
+ this.mounted = d.isClient();
133
22
  },
134
23
  computed: {
135
- checked: function() {
136
- return this.binary ? this.modelValue === this.trueValue : o.contains(this.value, this.modelValue);
24
+ inline: function() {
25
+ return this.disabled || this.appendTo === "self";
137
26
  }
138
- },
139
- components: {
140
- CheckIcon: f
141
27
  }
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);
28
+ };
29
+ function s(e, f, n, m, o, r) {
30
+ return r.inline ? t(e.$slots, "default", {
31
+ key: 0
32
+ }) : o.mounted ? (a(), l(i, {
33
+ key: 1,
34
+ to: n.appendTo
35
+ }, [t(e.$slots, "default")], 8, ["to"])) : u("", !0);
185
36
  }
186
- O.render = j;
37
+ p.render = s;
187
38
  export {
188
- O as default
39
+ p as default
189
40
  };
package/dist/index260.js CHANGED
@@ -1,135 +1,82 @@
1
- import { ObjectUtils as d } from "./index180.js";
2
- import u from "./index228.js";
3
- import r from "./index309.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
- }
1
+ import l from "./index288.js";
2
+ var r = {
3
+ mask: function(i) {
4
+ var a = i.instance;
5
+ return ["p-galleria-mask p-component-overlay p-component-overlay-enter", {
6
+ "p-ripple-disabled": a.$primevue.config.ripple === !1
7
+ }];
56
8
  },
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
- }
9
+ root: function(i) {
10
+ var a = i.instance, e = a.$attrs.showThumbnails && a.getPositionClass("p-galleria-thumbnails", a.$attrs.thumbnailsPosition), n = a.$attrs.showIndicators && a.getPositionClass("p-galleria-indicators", a.$attrs.indicatorsPosition);
11
+ return ["p-galleria p-component", {
12
+ "p-galleria-fullscreen": a.$attrs.fullScreen,
13
+ "p-galleria-indicator-onitem": a.$attrs.showIndicatorsOnItem,
14
+ "p-galleria-item-nav-onhover": a.$attrs.showItemNavigatorsOnHover && !a.$attrs.fullScreen
15
+ }, e, n];
90
16
  },
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);
131
- }
132
- h.render = c;
17
+ closeButton: "p-galleria-close p-link",
18
+ closeIcon: "p-galleria-close-icon",
19
+ header: "p-galleria-header",
20
+ content: "p-galleria-content",
21
+ footer: "p-galleria-footer",
22
+ itemWrapper: "p-galleria-item-wrapper",
23
+ itemContainer: "p-galleria-item-container",
24
+ previousItemButton: function(i) {
25
+ var a = i.instance;
26
+ return ["p-galleria-item-prev p-galleria-item-nav p-link", {
27
+ "p-disabled": a.isNavBackwardDisabled()
28
+ }];
29
+ },
30
+ previousItemIcon: "p-galleria-item-prev-icon",
31
+ item: "p-galleria-item",
32
+ nextItemButton: function(i) {
33
+ var a = i.instance;
34
+ return ["p-galleria-item-next p-galleria-item-nav p-link", {
35
+ "p-disabled": a.isNavForwardDisabled()
36
+ }];
37
+ },
38
+ nextItemIcon: "p-galleria-item-next-icon",
39
+ caption: "p-galleria-caption",
40
+ indicators: "p-galleria-indicators p-reset",
41
+ indicator: function(i) {
42
+ var a = i.instance, e = i.index;
43
+ return ["p-galleria-indicator", {
44
+ "p-highlight": a.isIndicatorItemActive(e)
45
+ }];
46
+ },
47
+ indicatorButton: "p-link",
48
+ thumbnailWrapper: "p-galleria-thumbnail-wrapper",
49
+ thumbnailContainer: "p-galleria-thumbnail-container",
50
+ previousThumbnailButton: function(i) {
51
+ var a = i.instance;
52
+ return ["p-galleria-thumbnail-prev p-link", {
53
+ "p-disabled": a.isNavBackwardDisabled()
54
+ }];
55
+ },
56
+ previousThumbnailIcon: "p-galleria-thumbnail-prev-icon",
57
+ thumbnailItemsContainer: "p-galleria-thumbnail-items-container",
58
+ thumbnailItems: "p-galleria-thumbnail-items",
59
+ thumbnailItem: function(i) {
60
+ var a = i.instance, e = i.index, n = i.activeIndex;
61
+ return ["p-galleria-thumbnail-item", {
62
+ "p-galleria-thumbnail-item-current": n === e,
63
+ "p-galleria-thumbnail-item-active": a.isItemActive(e),
64
+ "p-galleria-thumbnail-item-start": a.firstItemAciveIndex() === e,
65
+ "p-galleria-thumbnail-item-end": a.lastItemActiveIndex() === e
66
+ }];
67
+ },
68
+ thumbnailItemContent: "p-galleria-thumbnail-item-content",
69
+ nextThumbnailButton: function(i) {
70
+ var a = i.instance;
71
+ return ["p-galleria-thumbnail-next p-link", {
72
+ "p-disabled": a.isNavForwardDisabled()
73
+ }];
74
+ },
75
+ nextThumbnailIcon: "p-galleria-thumbnail-next-icon"
76
+ }, s = l.extend({
77
+ name: "galleria",
78
+ classes: r
79
+ });
133
80
  export {
134
- h as default
81
+ s as default
135
82
  };