@valaxyjs/devtools 0.22.13 → 0.22.15
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.
- package/dist/client/assets/{about-DIN6FYRD.js → about-ClCBmHNf.js} +1 -1
- package/dist/client/assets/{categories-qSfQ0X1a.js → categories-Ct7J11Nm.js} +1 -1
- package/dist/client/assets/{index-ChxUjQc_.js → index-CUyzvQjw.js} +3787 -9148
- package/dist/client/assets/{index-CBcmQosO.css → index-CxI6E8SF.css} +1 -1
- package/dist/client/assets/{index-ES59byhe.js → index-lB-p08e3.js} +363 -228
- package/dist/client/assets/{migration-BPggtrZx.js → migration-BSCZg6uh.js} +5 -5
- package/dist/client/assets/{splitpanes.es-oE07QrQG.js → splitpanes.es-qAuBPxFz.js} +516 -614
- package/dist/client/assets/{tags-BQz02NM_.js → tags-t3P852Pi.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +12 -12
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
import { ae as getKeyValue, m as mergeProps, af as isFunction$1, ag as toCapitalCase, ah as service_default, ai as config_default, B as BaseStyle, aj as isString$1, ak as toFlatCase, al as resolve, am as isObject$1, an as isEmpty, ao as PrimeVueService, ap as isArray$1, M as getAttribute, aq as removeClass, ar as getHeight, as as getWidth, O as getOuterWidth, at as getOuterHeight, au as getOffset, av as addClass, aw as createElement,
|
|
1
|
+
import { ae as getKeyValue, m as mergeProps, af as isFunction$1, ag as toCapitalCase, ah as service_default, ai as config_default, B as BaseStyle, aj as isString$1, ak as toFlatCase, al as resolve, am as isObject$1, an as isEmpty, ao as PrimeVueService, ap as isArray$1, M as getAttribute, aq as removeClass, ar as getHeight, as as getWidth, O as getOuterWidth, at as getOuterHeight, au as getOffset, av as addClass, aw as createElement, ax as useId, i as isNotEmpty, K as findSingle, ay as isElement, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, z as createTextVNode, t as toDisplayString, h as resolveComponent, r as resolveDirective, w as withDirectives, k as createBlock, p as withCtx, d as createCommentVNode, n as normalizeClass, U as resolveDynamicComponent, az as useSlots, s as ref, aA as computed, v as watch, a6 as onMounted, aB as onBeforeUnmount, aC as provide, aD as inject, aE as getCurrentInstance, S as normalizeStyle, y as unref, aF as h, aG as nextTick } from './index-CUyzvQjw.js';
|
|
2
|
+
|
|
3
|
+
// src/classnames/index.ts
|
|
4
|
+
function cn(...args) {
|
|
5
|
+
if (args) {
|
|
6
|
+
let classes = [];
|
|
7
|
+
for (let i = 0; i < args.length; i++) {
|
|
8
|
+
const className = args[i];
|
|
9
|
+
if (!className) {
|
|
10
|
+
continue;
|
|
11
|
+
}
|
|
12
|
+
const type = typeof className;
|
|
13
|
+
if (type === "string" || type === "number") {
|
|
14
|
+
classes.push(className);
|
|
15
|
+
} else if (type === "object") {
|
|
16
|
+
const _classes = Array.isArray(className) ? [cn(...className)] : Object.entries(className).map(([key, value]) => value ? key : void 0);
|
|
17
|
+
classes = _classes.length ? classes.concat(_classes.filter((c) => !!c)) : classes;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return classes.join(" ").trim();
|
|
21
|
+
}
|
|
22
|
+
return void 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Injected with object hook! */
|
|
2
26
|
|
|
3
27
|
// src/uuid/index.ts
|
|
4
28
|
var lastIds = {};
|
|
5
29
|
function uuid(prefix = "pui_id_") {
|
|
6
|
-
if (!
|
|
30
|
+
if (!Object.hasOwn(lastIds, prefix)) {
|
|
7
31
|
lastIds[prefix] = 0;
|
|
8
32
|
}
|
|
9
33
|
lastIds[prefix]++;
|
|
@@ -34,7 +58,7 @@ var Base = {
|
|
|
34
58
|
|
|
35
59
|
/* Injected with object hook! */
|
|
36
60
|
|
|
37
|
-
function _typeof$
|
|
61
|
+
function _typeof$6(o) { "@babel/helpers - typeof"; return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$6(o); }
|
|
38
62
|
function _slicedToArray$1(r, e) { return _arrayWithHoles$1(r) || _iterableToArrayLimit$1(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest$1(); }
|
|
39
63
|
function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
40
64
|
function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
|
|
@@ -42,10 +66,10 @@ function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
42
66
|
function _iterableToArrayLimit$1(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = true, o = false; try { if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = true, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
43
67
|
function _arrayWithHoles$1(r) { if (Array.isArray(r)) return r; }
|
|
44
68
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty$
|
|
46
|
-
function _defineProperty$
|
|
47
|
-
function _toPropertyKey$
|
|
48
|
-
function _toPrimitive$
|
|
69
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty$6(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
70
|
+
function _defineProperty$6(e, r, t) { return (r = _toPropertyKey$6(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
71
|
+
function _toPropertyKey$6(t) { var i = _toPrimitive$6(t, "string"); return "symbol" == _typeof$6(i) ? i : i + ""; }
|
|
72
|
+
function _toPrimitive$6(t, r) { if ("object" != _typeof$6(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$6(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
49
73
|
var BaseDirective = {
|
|
50
74
|
_getMeta: function _getMeta() {
|
|
51
75
|
return [isObject$1(arguments.length <= 0 ? undefined : arguments[0]) ? undefined : arguments.length <= 0 ? undefined : arguments[0], resolve(isObject$1(arguments.length <= 0 ? undefined : arguments[0]) ? arguments.length <= 0 ? undefined : arguments[0] : arguments.length <= 1 ? undefined : arguments[1])];
|
|
@@ -84,7 +108,7 @@ var BaseDirective = {
|
|
|
84
108
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
85
109
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
86
110
|
var datasetPrefix = 'data-pc-';
|
|
87
|
-
return _objectSpread$2(_objectSpread$2({}, key === 'root' && _defineProperty$
|
|
111
|
+
return _objectSpread$2(_objectSpread$2({}, key === 'root' && _defineProperty$6({}, "".concat(datasetPrefix, "name"), toFlatCase(instance.$name))), {}, _defineProperty$6({}, "".concat(datasetPrefix, "section"), toFlatCase(key)));
|
|
88
112
|
},
|
|
89
113
|
_getPT: function _getPT(pt) {
|
|
90
114
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
@@ -95,7 +119,7 @@ var BaseDirective = {
|
|
|
95
119
|
var _key = toFlatCase(key);
|
|
96
120
|
return (_computedValue$_key = computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) !== null && _computedValue$_key !== void 0 ? _computedValue$_key : computedValue;
|
|
97
121
|
};
|
|
98
|
-
return pt
|
|
122
|
+
return pt && Object.hasOwn(pt, '_usept') ? {
|
|
99
123
|
_usept: pt['_usept'],
|
|
100
124
|
originalValue: getValue(pt.originalValue),
|
|
101
125
|
value: getValue(pt.value)
|
|
@@ -110,7 +134,7 @@ var BaseDirective = {
|
|
|
110
134
|
var fn = function fn(value) {
|
|
111
135
|
return callback(value, key, params);
|
|
112
136
|
};
|
|
113
|
-
if (pt
|
|
137
|
+
if (pt && Object.hasOwn(pt, '_usept')) {
|
|
114
138
|
var _instance$$primevueCo2;
|
|
115
139
|
var _ref4 = pt['_usept'] || ((_instance$$primevueCo2 = instance.$primevueConfig) === null || _instance$$primevueCo2 === void 0 ? void 0 : _instance$$primevueCo2.ptOptions) || {},
|
|
116
140
|
_ref4$mergeSections = _ref4.mergeSections,
|
|
@@ -132,18 +156,23 @@ var BaseDirective = {
|
|
|
132
156
|
var params = arguments.length > 4 ? arguments[4] : undefined;
|
|
133
157
|
return BaseDirective._usePT(instance, defaultPT, callback, key, params);
|
|
134
158
|
},
|
|
135
|
-
_loadStyles: function _loadStyles(
|
|
159
|
+
_loadStyles: function _loadStyles() {
|
|
136
160
|
var _config$csp;
|
|
161
|
+
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
162
|
+
var binding = arguments.length > 1 ? arguments[1] : undefined;
|
|
163
|
+
var vnode = arguments.length > 2 ? arguments[2] : undefined;
|
|
137
164
|
var config = BaseDirective._getConfig(binding, vnode);
|
|
138
165
|
var useStyleOptions = {
|
|
139
166
|
nonce: config === null || config === void 0 || (_config$csp = config.csp) === null || _config$csp === void 0 ? void 0 : _config$csp.nonce
|
|
140
167
|
};
|
|
141
|
-
BaseDirective._loadCoreStyles(
|
|
142
|
-
BaseDirective._loadThemeStyles(
|
|
143
|
-
BaseDirective._loadScopedThemeStyles(
|
|
144
|
-
BaseDirective.
|
|
145
|
-
|
|
146
|
-
|
|
168
|
+
BaseDirective._loadCoreStyles(instance, useStyleOptions);
|
|
169
|
+
BaseDirective._loadThemeStyles(instance, useStyleOptions);
|
|
170
|
+
BaseDirective._loadScopedThemeStyles(instance, useStyleOptions);
|
|
171
|
+
BaseDirective._removeThemeListeners(instance);
|
|
172
|
+
instance.$loadStyles = function () {
|
|
173
|
+
return BaseDirective._loadThemeStyles(instance, useStyleOptions);
|
|
174
|
+
};
|
|
175
|
+
BaseDirective._themeChangeListener(instance.$loadStyles);
|
|
147
176
|
},
|
|
148
177
|
_loadCoreStyles: function _loadCoreStyles() {
|
|
149
178
|
var _instance$$style, _instance$$style2;
|
|
@@ -179,7 +208,7 @@ var BaseDirective = {
|
|
|
179
208
|
BaseStyle.load(global === null || global === void 0 ? void 0 : global.css, _objectSpread$2({
|
|
180
209
|
name: 'global-variables'
|
|
181
210
|
}, useStyleOptions));
|
|
182
|
-
BaseStyle.
|
|
211
|
+
BaseStyle.loadStyle(_objectSpread$2({
|
|
183
212
|
name: 'global-style'
|
|
184
213
|
}, useStyleOptions), style);
|
|
185
214
|
config_default.setLoadedStyleName('common');
|
|
@@ -194,7 +223,7 @@ var BaseDirective = {
|
|
|
194
223
|
(_instance$$style8 = instance.$style) === null || _instance$$style8 === void 0 || _instance$$style8.load(css, _objectSpread$2({
|
|
195
224
|
name: "".concat(instance.$style.name, "-variables")
|
|
196
225
|
}, useStyleOptions));
|
|
197
|
-
(_instance$$style9 = instance.$style) === null || _instance$$style9 === void 0 || _instance$$style9.
|
|
226
|
+
(_instance$$style9 = instance.$style) === null || _instance$$style9 === void 0 || _instance$$style9.loadStyle(_objectSpread$2({
|
|
198
227
|
name: "".concat(instance.$style.name, "-style")
|
|
199
228
|
}, useStyleOptions), _style);
|
|
200
229
|
config_default.setLoadedStyleName(instance.$style.name);
|
|
@@ -230,6 +259,10 @@ var BaseDirective = {
|
|
|
230
259
|
Base.clearLoadedStyleNames();
|
|
231
260
|
service_default.on('theme:change', callback);
|
|
232
261
|
},
|
|
262
|
+
_removeThemeListeners: function _removeThemeListeners() {
|
|
263
|
+
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
264
|
+
service_default.off('theme:change', instance.$loadStyles);
|
|
265
|
+
},
|
|
233
266
|
_hook: function _hook(directiveName, hookName, el, binding, vnode, prevVnode) {
|
|
234
267
|
var _binding$value, _config$pt;
|
|
235
268
|
var name = "on".concat(toCapitalCase(hookName));
|
|
@@ -246,7 +279,7 @@ var BaseDirective = {
|
|
|
246
279
|
selfHook === null || selfHook === void 0 || selfHook(instance, options);
|
|
247
280
|
defaultHook === null || defaultHook === void 0 || defaultHook(instance, options);
|
|
248
281
|
},
|
|
249
|
-
_mergeProps: function _mergeProps() {
|
|
282
|
+
/* eslint-disable-next-line no-unused-vars */_mergeProps: function _mergeProps() {
|
|
250
283
|
var fn = arguments.length > 1 ? arguments[1] : undefined;
|
|
251
284
|
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key2 = 2; _key2 < _len; _key2++) {
|
|
252
285
|
args[_key2 - 2] = arguments[_key2];
|
|
@@ -256,7 +289,7 @@ var BaseDirective = {
|
|
|
256
289
|
_extend: function _extend(name) {
|
|
257
290
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
258
291
|
var handleHook = function handleHook(hook, el, binding, vnode, prevVnode) {
|
|
259
|
-
var _el$$pd, _el$$instance$hook, _el$$
|
|
292
|
+
var _el$$pd, _el$$instance$hook, _el$$instance, _el$$pd2;
|
|
260
293
|
el._$instances = el._$instances || {};
|
|
261
294
|
var config = BaseDirective._getConfig(binding, vnode);
|
|
262
295
|
var $prevInstance = el._$instances[name] || {};
|
|
@@ -274,7 +307,7 @@ var BaseDirective = {
|
|
|
274
307
|
inlineStyles: undefined,
|
|
275
308
|
load: function load() {},
|
|
276
309
|
loadCSS: function loadCSS() {},
|
|
277
|
-
|
|
310
|
+
loadStyle: function loadStyle() {}
|
|
278
311
|
}, options === null || options === void 0 ? void 0 : options.style),
|
|
279
312
|
$primevueConfig: config,
|
|
280
313
|
$attrSelector: (_el$$pd = el.$pd) === null || _el$$pd === void 0 || (_el$$pd = _el$$pd[name]) === null || _el$$pd === void 0 ? void 0 : _el$$pd.attrSelector,
|
|
@@ -286,76 +319,90 @@ var BaseDirective = {
|
|
|
286
319
|
});
|
|
287
320
|
},
|
|
288
321
|
isUnstyled: function isUnstyled() {
|
|
289
|
-
var _el
|
|
290
|
-
return ((_el
|
|
322
|
+
var _el$_$instances$name, _el$_$instances$name2;
|
|
323
|
+
return ((_el$_$instances$name = el._$instances[name]) === null || _el$_$instances$name === void 0 || (_el$_$instances$name = _el$_$instances$name.$binding) === null || _el$_$instances$name === void 0 || (_el$_$instances$name = _el$_$instances$name.value) === null || _el$_$instances$name === void 0 ? void 0 : _el$_$instances$name.unstyled) !== undefined ? (_el$_$instances$name2 = el._$instances[name]) === null || _el$_$instances$name2 === void 0 || (_el$_$instances$name2 = _el$_$instances$name2.$binding) === null || _el$_$instances$name2 === void 0 || (_el$_$instances$name2 = _el$_$instances$name2.value) === null || _el$_$instances$name2 === void 0 ? void 0 : _el$_$instances$name2.unstyled : config === null || config === void 0 ? void 0 : config.unstyled;
|
|
291
324
|
},
|
|
292
325
|
theme: function theme() {
|
|
293
|
-
var _el
|
|
294
|
-
return (_el
|
|
326
|
+
var _el$_$instances$name3;
|
|
327
|
+
return (_el$_$instances$name3 = el._$instances[name]) === null || _el$_$instances$name3 === void 0 || (_el$_$instances$name3 = _el$_$instances$name3.$primevueConfig) === null || _el$_$instances$name3 === void 0 ? void 0 : _el$_$instances$name3.theme;
|
|
295
328
|
},
|
|
296
329
|
preset: function preset() {
|
|
297
|
-
var _el
|
|
298
|
-
return (_el
|
|
330
|
+
var _el$_$instances$name4;
|
|
331
|
+
return (_el$_$instances$name4 = el._$instances[name]) === null || _el$_$instances$name4 === void 0 || (_el$_$instances$name4 = _el$_$instances$name4.$binding) === null || _el$_$instances$name4 === void 0 || (_el$_$instances$name4 = _el$_$instances$name4.value) === null || _el$_$instances$name4 === void 0 ? void 0 : _el$_$instances$name4.dt;
|
|
299
332
|
},
|
|
300
333
|
/* instance's methods */
|
|
301
334
|
ptm: function ptm() {
|
|
302
|
-
var _el
|
|
335
|
+
var _el$_$instances$name5;
|
|
303
336
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
304
337
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
305
|
-
return BaseDirective._getPTValue(el
|
|
338
|
+
return BaseDirective._getPTValue(el._$instances[name], (_el$_$instances$name5 = el._$instances[name]) === null || _el$_$instances$name5 === void 0 || (_el$_$instances$name5 = _el$_$instances$name5.$binding) === null || _el$_$instances$name5 === void 0 || (_el$_$instances$name5 = _el$_$instances$name5.value) === null || _el$_$instances$name5 === void 0 ? void 0 : _el$_$instances$name5.pt, key, _objectSpread$2({}, params));
|
|
306
339
|
},
|
|
307
340
|
ptmo: function ptmo() {
|
|
308
341
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
309
342
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
310
343
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
311
|
-
return BaseDirective._getPTValue(el
|
|
344
|
+
return BaseDirective._getPTValue(el._$instances[name], obj, key, params, false);
|
|
312
345
|
},
|
|
313
346
|
cx: function cx() {
|
|
314
|
-
var _el
|
|
347
|
+
var _el$_$instances$name6, _el$_$instances$name7;
|
|
315
348
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
316
349
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
317
|
-
return !((_el
|
|
350
|
+
return !((_el$_$instances$name6 = el._$instances[name]) !== null && _el$_$instances$name6 !== void 0 && _el$_$instances$name6.isUnstyled()) ? BaseDirective._getOptionValue((_el$_$instances$name7 = el._$instances[name]) === null || _el$_$instances$name7 === void 0 || (_el$_$instances$name7 = _el$_$instances$name7.$style) === null || _el$_$instances$name7 === void 0 ? void 0 : _el$_$instances$name7.classes, key, _objectSpread$2({}, params)) : undefined;
|
|
318
351
|
},
|
|
319
352
|
sx: function sx() {
|
|
320
|
-
var _el
|
|
353
|
+
var _el$_$instances$name8;
|
|
321
354
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
322
355
|
var when = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
323
356
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
324
|
-
return when ? BaseDirective._getOptionValue((_el
|
|
357
|
+
return when ? BaseDirective._getOptionValue((_el$_$instances$name8 = el._$instances[name]) === null || _el$_$instances$name8 === void 0 || (_el$_$instances$name8 = _el$_$instances$name8.$style) === null || _el$_$instances$name8 === void 0 ? void 0 : _el$_$instances$name8.inlineStyles, key, _objectSpread$2({}, params)) : undefined;
|
|
325
358
|
}
|
|
326
359
|
}, $options);
|
|
327
360
|
el.$instance = el._$instances[name]; // pass instance data to hooks
|
|
328
|
-
(_el$$instance$hook = (_el$$
|
|
361
|
+
(_el$$instance$hook = (_el$$instance = el.$instance)[hook]) === null || _el$$instance$hook === void 0 || _el$$instance$hook.call(_el$$instance, el, binding, vnode, prevVnode); // handle hook in directive implementation
|
|
329
362
|
el["$".concat(name)] = el.$instance; // expose all options with $<directive_name>
|
|
330
363
|
BaseDirective._hook(name, hook, el, binding, vnode, prevVnode); // handle hooks during directive uses (global and self-definition)
|
|
331
364
|
|
|
332
365
|
el.$pd || (el.$pd = {});
|
|
333
366
|
el.$pd[name] = _objectSpread$2(_objectSpread$2({}, (_el$$pd2 = el.$pd) === null || _el$$pd2 === void 0 ? void 0 : _el$$pd2[name]), {}, {
|
|
334
367
|
name: name,
|
|
335
|
-
instance: el
|
|
368
|
+
instance: el._$instances[name]
|
|
336
369
|
});
|
|
337
370
|
};
|
|
338
|
-
var
|
|
339
|
-
var
|
|
340
|
-
var
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
PrimeVueService.on('config:change', function (_ref8) {
|
|
345
|
-
var _watchers$config2;
|
|
371
|
+
var handleWatchers = function handleWatchers(el) {
|
|
372
|
+
var _watchers$config2, _watchers$configRipp2, _instance$$primevueCo3;
|
|
373
|
+
var instance = el._$instances[name];
|
|
374
|
+
var watchers = instance === null || instance === void 0 ? void 0 : instance.watch;
|
|
375
|
+
var handleWatchConfig = function handleWatchConfig(_ref8) {
|
|
376
|
+
var _watchers$config;
|
|
346
377
|
var newValue = _ref8.newValue,
|
|
347
378
|
oldValue = _ref8.oldValue;
|
|
348
|
-
return watchers === null || watchers === void 0 || (_watchers$
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
watchers === null || watchers === void 0 || (_watchers$configRipp = watchers['config.ripple']) === null || _watchers$configRipp === void 0 || _watchers$configRipp.call(el.$instance, (_el$$instance12 = el.$instance) === null || _el$$instance12 === void 0 || (_el$$instance12 = _el$$instance12.$primevueConfig) === null || _el$$instance12 === void 0 ? void 0 : _el$$instance12.ripple);
|
|
353
|
-
PrimeVueService.on('config:ripple:change', function (_ref9) {
|
|
354
|
-
var _watchers$configRipp2;
|
|
379
|
+
return watchers === null || watchers === void 0 || (_watchers$config = watchers['config']) === null || _watchers$config === void 0 ? void 0 : _watchers$config.call(instance, newValue, oldValue);
|
|
380
|
+
};
|
|
381
|
+
var handleWatchConfigRipple = function handleWatchConfigRipple(_ref9) {
|
|
382
|
+
var _watchers$configRipp;
|
|
355
383
|
var newValue = _ref9.newValue,
|
|
356
384
|
oldValue = _ref9.oldValue;
|
|
357
|
-
return watchers === null || watchers === void 0 || (_watchers$
|
|
358
|
-
}
|
|
385
|
+
return watchers === null || watchers === void 0 || (_watchers$configRipp = watchers['config.ripple']) === null || _watchers$configRipp === void 0 ? void 0 : _watchers$configRipp.call(instance, newValue, oldValue);
|
|
386
|
+
};
|
|
387
|
+
instance.$watchersCallback = {
|
|
388
|
+
config: handleWatchConfig,
|
|
389
|
+
'config.ripple': handleWatchConfigRipple
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
// for 'config'
|
|
393
|
+
watchers === null || watchers === void 0 || (_watchers$config2 = watchers['config']) === null || _watchers$config2 === void 0 || _watchers$config2.call(instance, instance === null || instance === void 0 ? void 0 : instance.$primevueConfig);
|
|
394
|
+
PrimeVueService.on('config:change', handleWatchConfig);
|
|
395
|
+
|
|
396
|
+
// for 'config.ripple'
|
|
397
|
+
watchers === null || watchers === void 0 || (_watchers$configRipp2 = watchers['config.ripple']) === null || _watchers$configRipp2 === void 0 || _watchers$configRipp2.call(instance, instance === null || instance === void 0 || (_instance$$primevueCo3 = instance.$primevueConfig) === null || _instance$$primevueCo3 === void 0 ? void 0 : _instance$$primevueCo3.ripple);
|
|
398
|
+
PrimeVueService.on('config:ripple:change', handleWatchConfigRipple);
|
|
399
|
+
};
|
|
400
|
+
var stopWatchers = function stopWatchers(el) {
|
|
401
|
+
var watchers = el._$instances[name].$watchersCallback;
|
|
402
|
+
if (watchers) {
|
|
403
|
+
PrimeVueService.off('config:change', watchers.config);
|
|
404
|
+
PrimeVueService.off('config:ripple:change', watchers['config.ripple']);
|
|
405
|
+
}
|
|
359
406
|
};
|
|
360
407
|
return {
|
|
361
408
|
created: function created(el, binding, vnode, prevVnode) {
|
|
@@ -367,27 +414,33 @@ var BaseDirective = {
|
|
|
367
414
|
handleHook('created', el, binding, vnode, prevVnode);
|
|
368
415
|
},
|
|
369
416
|
beforeMount: function beforeMount(el, binding, vnode, prevVnode) {
|
|
370
|
-
|
|
417
|
+
var _el$$pd$name;
|
|
418
|
+
BaseDirective._loadStyles((_el$$pd$name = el.$pd[name]) === null || _el$$pd$name === void 0 ? void 0 : _el$$pd$name.instance, binding, vnode);
|
|
371
419
|
handleHook('beforeMount', el, binding, vnode, prevVnode);
|
|
372
|
-
|
|
420
|
+
handleWatchers(el);
|
|
373
421
|
},
|
|
374
422
|
mounted: function mounted(el, binding, vnode, prevVnode) {
|
|
375
|
-
|
|
423
|
+
var _el$$pd$name2;
|
|
424
|
+
BaseDirective._loadStyles((_el$$pd$name2 = el.$pd[name]) === null || _el$$pd$name2 === void 0 ? void 0 : _el$$pd$name2.instance, binding, vnode);
|
|
376
425
|
handleHook('mounted', el, binding, vnode, prevVnode);
|
|
377
426
|
},
|
|
378
427
|
beforeUpdate: function beforeUpdate(el, binding, vnode, prevVnode) {
|
|
379
428
|
handleHook('beforeUpdate', el, binding, vnode, prevVnode);
|
|
380
429
|
},
|
|
381
430
|
updated: function updated(el, binding, vnode, prevVnode) {
|
|
382
|
-
|
|
431
|
+
var _el$$pd$name3;
|
|
432
|
+
BaseDirective._loadStyles((_el$$pd$name3 = el.$pd[name]) === null || _el$$pd$name3 === void 0 ? void 0 : _el$$pd$name3.instance, binding, vnode);
|
|
383
433
|
handleHook('updated', el, binding, vnode, prevVnode);
|
|
384
434
|
},
|
|
385
435
|
beforeUnmount: function beforeUnmount(el, binding, vnode, prevVnode) {
|
|
436
|
+
var _el$$pd$name4;
|
|
437
|
+
stopWatchers(el);
|
|
438
|
+
BaseDirective._removeThemeListeners((_el$$pd$name4 = el.$pd[name]) === null || _el$$pd$name4 === void 0 ? void 0 : _el$$pd$name4.instance);
|
|
386
439
|
handleHook('beforeUnmount', el, binding, vnode, prevVnode);
|
|
387
440
|
},
|
|
388
441
|
unmounted: function unmounted(el, binding, vnode, prevVnode) {
|
|
389
|
-
var _el$$
|
|
390
|
-
(_el$$
|
|
442
|
+
var _el$$pd$name5;
|
|
443
|
+
(_el$$pd$name5 = el.$pd[name]) === null || _el$$pd$name5 === void 0 || (_el$$pd$name5 = _el$$pd$name5.instance) === null || _el$$pd$name5 === void 0 || (_el$$pd$name5 = _el$$pd$name5.scopedStyleEl) === null || _el$$pd$name5 === void 0 || (_el$$pd$name5 = _el$$pd$name5.value) === null || _el$$pd$name5 === void 0 || _el$$pd$name5.remove();
|
|
391
444
|
handleHook('unmounted', el, binding, vnode, prevVnode);
|
|
392
445
|
}
|
|
393
446
|
};
|
|
@@ -412,16 +465,14 @@ var BaseDirective = {
|
|
|
412
465
|
|
|
413
466
|
/* Injected with object hook! */
|
|
414
467
|
|
|
415
|
-
var
|
|
416
|
-
|
|
417
|
-
return "\n.p-ink {\n display: block;\n position: absolute;\n background: ".concat(dt('ripple.background'), ";\n border-radius: 100%;\n transform: scale(0);\n pointer-events: none;\n}\n\n.p-ink-active {\n animation: ripple 0.4s linear;\n}\n\n@keyframes ripple {\n 100% {\n opacity: 0;\n transform: scale(2.5);\n }\n}\n");
|
|
418
|
-
};
|
|
468
|
+
var style$2=({dt:n})=>`\n.p-ink {\n display: block;\n position: absolute;\n background: ${n("ripple.background")};\n border-radius: 100%;\n transform: scale(0);\n pointer-events: none;\n}\n\n.p-ink-active {\n animation: ripple 0.4s linear;\n}\n\n@keyframes ripple {\n 100% {\n opacity: 0;\n transform: scale(2.5);\n }\n}\n`;/* Injected with object hook! */
|
|
469
|
+
|
|
419
470
|
var classes$2 = {
|
|
420
471
|
root: 'p-ink'
|
|
421
472
|
};
|
|
422
473
|
var RippleStyle = BaseStyle.extend({
|
|
423
474
|
name: 'ripple-directive',
|
|
424
|
-
|
|
475
|
+
style: style$2,
|
|
425
476
|
classes: classes$2
|
|
426
477
|
});
|
|
427
478
|
|
|
@@ -432,16 +483,16 @@ var BaseRipple = BaseDirective.extend({
|
|
|
432
483
|
style: RippleStyle
|
|
433
484
|
});
|
|
434
485
|
|
|
435
|
-
function _typeof$
|
|
486
|
+
function _typeof$5(o) { "@babel/helpers - typeof"; return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$5(o); }
|
|
436
487
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread(); }
|
|
437
488
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
438
489
|
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
439
490
|
function _iterableToArray$1(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
440
491
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray$1(r); }
|
|
441
492
|
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
442
|
-
function _defineProperty$
|
|
443
|
-
function _toPropertyKey$
|
|
444
|
-
function _toPrimitive$
|
|
493
|
+
function _defineProperty$5(e, r, t) { return (r = _toPropertyKey$5(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
494
|
+
function _toPropertyKey$5(t) { var i = _toPrimitive$5(t, "string"); return "symbol" == _typeof$5(i) ? i : i + ""; }
|
|
495
|
+
function _toPrimitive$5(t, r) { if ("object" != _typeof$5(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$5(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
445
496
|
var Ripple = BaseRipple.extend('ripple', {
|
|
446
497
|
watch: {
|
|
447
498
|
'config.ripple': function configRipple(newValue) {
|
|
@@ -469,16 +520,19 @@ var Ripple = BaseRipple.extend('ripple', {
|
|
|
469
520
|
el.removeEventListener('mousedown', this.onMouseDown.bind(this));
|
|
470
521
|
},
|
|
471
522
|
createRipple: function createRipple(el) {
|
|
472
|
-
var ink =
|
|
473
|
-
|
|
474
|
-
'
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
523
|
+
var ink = this.getInk(el);
|
|
524
|
+
if (!ink) {
|
|
525
|
+
ink = createElement('span', _defineProperty$5(_defineProperty$5({
|
|
526
|
+
role: 'presentation',
|
|
527
|
+
'aria-hidden': true,
|
|
528
|
+
'data-p-ink': true,
|
|
529
|
+
'data-p-ink-active': false,
|
|
530
|
+
"class": !this.isUnstyled() && this.cx('root'),
|
|
531
|
+
onAnimationEnd: this.onAnimationEnd.bind(this)
|
|
532
|
+
}, this.$attrSelector, ''), 'p-bind', this.ptm('root')));
|
|
533
|
+
el.appendChild(ink);
|
|
534
|
+
this.$el = ink;
|
|
535
|
+
}
|
|
482
536
|
},
|
|
483
537
|
remove: function remove(el) {
|
|
484
538
|
var ink = this.getInk(el);
|
|
@@ -534,13 +588,22 @@ var Ripple = BaseRipple.extend('ripple', {
|
|
|
534
588
|
});
|
|
535
589
|
|
|
536
590
|
|
|
591
|
+
/* Injected with object hook! */
|
|
592
|
+
|
|
593
|
+
function useAttrSelector() {
|
|
594
|
+
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pc';
|
|
595
|
+
var idx = useId();
|
|
596
|
+
return "".concat(prefix).concat(idx.replace('v-', '').replaceAll('-', '_'));
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
|
|
537
600
|
/* Injected with object hook! */
|
|
538
601
|
|
|
539
602
|
var BaseComponentStyle = BaseStyle.extend({
|
|
540
603
|
name: 'common'
|
|
541
604
|
});
|
|
542
605
|
|
|
543
|
-
function _typeof$
|
|
606
|
+
function _typeof$4(o) { "@babel/helpers - typeof"; return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$4(o); }
|
|
544
607
|
function _toArray(r) { return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest(); }
|
|
545
608
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
546
609
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
@@ -550,10 +613,10 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
550
613
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = true, o = false; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = true, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
551
614
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
552
615
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
553
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty$
|
|
554
|
-
function _defineProperty$
|
|
555
|
-
function _toPropertyKey$
|
|
556
|
-
function _toPrimitive$
|
|
616
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty$4(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
617
|
+
function _defineProperty$4(e, r, t) { return (r = _toPropertyKey$4(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
618
|
+
function _toPropertyKey$4(t) { var i = _toPrimitive$4(t, "string"); return "symbol" == _typeof$4(i) ? i : i + ""; }
|
|
619
|
+
function _toPrimitive$4(t, r) { if ("object" != _typeof$4(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$4(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
557
620
|
var script$5 = {
|
|
558
621
|
name: 'BaseComponent',
|
|
559
622
|
props: {
|
|
@@ -583,6 +646,7 @@ var script$5 = {
|
|
|
583
646
|
isUnstyled: {
|
|
584
647
|
immediate: true,
|
|
585
648
|
handler: function handler(newValue) {
|
|
649
|
+
service_default.off('theme:change', this._loadCoreStyles);
|
|
586
650
|
if (!newValue) {
|
|
587
651
|
this._loadCoreStyles();
|
|
588
652
|
this._themeChangeListener(this._loadCoreStyles); // update styles with theme settings
|
|
@@ -591,13 +655,15 @@ var script$5 = {
|
|
|
591
655
|
},
|
|
592
656
|
dt: {
|
|
593
657
|
immediate: true,
|
|
594
|
-
handler: function handler(newValue) {
|
|
658
|
+
handler: function handler(newValue, oldValue) {
|
|
595
659
|
var _this = this;
|
|
660
|
+
service_default.off('theme:change', this._themeScopedListener);
|
|
596
661
|
if (newValue) {
|
|
597
662
|
this._loadScopedThemeStyles(newValue);
|
|
598
|
-
this.
|
|
663
|
+
this._themeScopedListener = function () {
|
|
599
664
|
return _this._loadScopedThemeStyles(newValue);
|
|
600
|
-
}
|
|
665
|
+
};
|
|
666
|
+
this._themeChangeListener(this._themeScopedListener);
|
|
601
667
|
} else {
|
|
602
668
|
this._unloadScopedThemeStyles();
|
|
603
669
|
}
|
|
@@ -606,6 +672,7 @@ var script$5 = {
|
|
|
606
672
|
},
|
|
607
673
|
scopedStyleEl: undefined,
|
|
608
674
|
rootEl: undefined,
|
|
675
|
+
uid: undefined,
|
|
609
676
|
$attrSelector: undefined,
|
|
610
677
|
beforeCreate: function beforeCreate() {
|
|
611
678
|
var _this$pt, _this$pt2, _this$pt3, _ref, _ref$onBeforeCreate, _this$$primevueConfig, _this$$primevue, _this$$primevue2, _this$$primevue3, _ref2, _ref2$onBeforeCreate;
|
|
@@ -617,16 +684,17 @@ var script$5 = {
|
|
|
617
684
|
var originalValueInConfig = _useptInConfig ? (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.pt) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.originalValue : undefined;
|
|
618
685
|
var valueInConfig = _useptInConfig ? (_this$$primevue2 = this.$primevue) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.config) === null || _this$$primevue2 === void 0 || (_this$$primevue2 = _this$$primevue2.pt) === null || _this$$primevue2 === void 0 ? void 0 : _this$$primevue2.value : (_this$$primevue3 = this.$primevue) === null || _this$$primevue3 === void 0 || (_this$$primevue3 = _this$$primevue3.config) === null || _this$$primevue3 === void 0 ? void 0 : _this$$primevue3.pt;
|
|
619
686
|
(_ref2 = valueInConfig || originalValueInConfig) === null || _ref2 === void 0 || (_ref2 = _ref2[this.$.type.name]) === null || _ref2 === void 0 || (_ref2 = _ref2.hooks) === null || _ref2 === void 0 || (_ref2$onBeforeCreate = _ref2['onBeforeCreate']) === null || _ref2$onBeforeCreate === void 0 || _ref2$onBeforeCreate.call(_ref2);
|
|
620
|
-
this.$attrSelector =
|
|
687
|
+
this.$attrSelector = useAttrSelector();
|
|
688
|
+
this.uid = this.$attrs.id || this.$attrSelector.replace('pc', 'pv_id_');
|
|
621
689
|
},
|
|
622
690
|
created: function created() {
|
|
623
691
|
this._hook('onCreated');
|
|
624
692
|
},
|
|
625
693
|
beforeMount: function beforeMount() {
|
|
626
|
-
|
|
627
|
-
|
|
694
|
+
var _this$$el;
|
|
695
|
+
// @deprecated - remove in v5
|
|
696
|
+
this.rootEl = findSingle(isElement(this.$el) ? this.$el : (_this$$el = this.$el) === null || _this$$el === void 0 ? void 0 : _this$$el.parentElement, "[".concat(this.$attrSelector, "]"));
|
|
628
697
|
if (this.rootEl) {
|
|
629
|
-
this.$attrSelector && !this.rootEl.hasAttribute(this.$attrSelector) && this.rootEl.setAttribute(this.$attrSelector, '');
|
|
630
698
|
this.rootEl.$pc = _objectSpread$1({
|
|
631
699
|
name: this.$.type.name,
|
|
632
700
|
attrSelector: this.$attrSelector
|
|
@@ -648,6 +716,7 @@ var script$5 = {
|
|
|
648
716
|
this._hook('onBeforeUnmount');
|
|
649
717
|
},
|
|
650
718
|
unmounted: function unmounted() {
|
|
719
|
+
this._removeThemeListeners();
|
|
651
720
|
this._unloadScopedThemeStyles();
|
|
652
721
|
this._hook('onUnmounted');
|
|
653
722
|
},
|
|
@@ -666,19 +735,18 @@ var script$5 = {
|
|
|
666
735
|
}
|
|
667
736
|
return isFunction$1(fn) ? fn.apply(void 0, args) : mergeProps.apply(void 0, args);
|
|
668
737
|
},
|
|
738
|
+
_load: function _load() {
|
|
739
|
+
// @todo
|
|
740
|
+
if (!Base.isStyleNameLoaded('base')) {
|
|
741
|
+
BaseStyle.loadCSS(this.$styleOptions);
|
|
742
|
+
this._loadGlobalStyles();
|
|
743
|
+
Base.setLoadedStyleName('base');
|
|
744
|
+
}
|
|
745
|
+
this._loadThemeStyles();
|
|
746
|
+
},
|
|
669
747
|
_loadStyles: function _loadStyles() {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
// @todo
|
|
673
|
-
if (!Base.isStyleNameLoaded('base')) {
|
|
674
|
-
BaseStyle.loadCSS(_this2.$styleOptions);
|
|
675
|
-
_this2._loadGlobalStyles();
|
|
676
|
-
Base.setLoadedStyleName('base');
|
|
677
|
-
}
|
|
678
|
-
_this2._loadThemeStyles();
|
|
679
|
-
};
|
|
680
|
-
_load();
|
|
681
|
-
this._themeChangeListener(_load);
|
|
748
|
+
this._load();
|
|
749
|
+
this._themeChangeListener(this._load);
|
|
682
750
|
},
|
|
683
751
|
_loadCoreStyles: function _loadCoreStyles() {
|
|
684
752
|
var _this$$style, _this$$style2;
|
|
@@ -725,7 +793,7 @@ var script$5 = {
|
|
|
725
793
|
BaseStyle.load(global === null || global === void 0 ? void 0 : global.css, _objectSpread$1({
|
|
726
794
|
name: 'global-variables'
|
|
727
795
|
}, this.$styleOptions));
|
|
728
|
-
BaseStyle.
|
|
796
|
+
BaseStyle.loadStyle(_objectSpread$1({
|
|
729
797
|
name: 'global-style'
|
|
730
798
|
}, this.$styleOptions), style);
|
|
731
799
|
config_default.setLoadedStyleName('common');
|
|
@@ -740,7 +808,7 @@ var script$5 = {
|
|
|
740
808
|
(_this$$style7 = this.$style) === null || _this$$style7 === void 0 || _this$$style7.load(css, _objectSpread$1({
|
|
741
809
|
name: "".concat(this.$style.name, "-variables")
|
|
742
810
|
}, this.$styleOptions));
|
|
743
|
-
(_this$$style8 = this.$style) === null || _this$$style8 === void 0 || _this$$style8.
|
|
811
|
+
(_this$$style8 = this.$style) === null || _this$$style8 === void 0 || _this$$style8.loadStyle(_objectSpread$1({
|
|
744
812
|
name: "".concat(this.$style.name, "-style")
|
|
745
813
|
}, this.$styleOptions), _style);
|
|
746
814
|
config_default.setLoadedStyleName(this.$style.name);
|
|
@@ -775,6 +843,11 @@ var script$5 = {
|
|
|
775
843
|
Base.clearLoadedStyleNames();
|
|
776
844
|
service_default.on('theme:change', callback);
|
|
777
845
|
},
|
|
846
|
+
_removeThemeListeners: function _removeThemeListeners() {
|
|
847
|
+
service_default.off('theme:change', this._loadCoreStyles);
|
|
848
|
+
service_default.off('theme:change', this._load);
|
|
849
|
+
service_default.off('theme:change', this._themeScopedListener);
|
|
850
|
+
},
|
|
778
851
|
_getHostInstance: function _getHostInstance(instance) {
|
|
779
852
|
return instance ? this.$options.hostName ? instance.$.type.name === this.$options.hostName ? instance : this._getHostInstance(instance.$parentInstance) : instance.$parentInstance : undefined;
|
|
780
853
|
},
|
|
@@ -821,7 +894,7 @@ var script$5 = {
|
|
|
821
894
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
822
895
|
var datasetPrefix = 'data-pc-';
|
|
823
896
|
var isExtended = key === 'root' && isNotEmpty((_this$pt4 = this.pt) === null || _this$pt4 === void 0 ? void 0 : _this$pt4['data-pc-section']);
|
|
824
|
-
return key !== 'transition' && _objectSpread$1(_objectSpread$1({}, key === 'root' && _objectSpread$1(_objectSpread$1(_defineProperty$
|
|
897
|
+
return key !== 'transition' && _objectSpread$1(_objectSpread$1({}, key === 'root' && _objectSpread$1(_objectSpread$1(_defineProperty$4({}, "".concat(datasetPrefix, "name"), toFlatCase(isExtended ? (_this$pt5 = this.pt) === null || _this$pt5 === void 0 ? void 0 : _this$pt5['data-pc-section'] : this.$.type.name)), isExtended && _defineProperty$4({}, "".concat(datasetPrefix, "extend"), toFlatCase(this.$.type.name))), {}, _defineProperty$4({}, "".concat(this.$attrSelector), ''))), {}, _defineProperty$4({}, "".concat(datasetPrefix, "section"), toFlatCase(key)));
|
|
825
898
|
},
|
|
826
899
|
_getPTClassValue: function _getPTClassValue() {
|
|
827
900
|
var value = this._getOptionValue.apply(this, arguments);
|
|
@@ -830,16 +903,16 @@ var script$5 = {
|
|
|
830
903
|
} : value;
|
|
831
904
|
},
|
|
832
905
|
_getPT: function _getPT(pt) {
|
|
833
|
-
var
|
|
906
|
+
var _this2 = this;
|
|
834
907
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
835
908
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
836
909
|
var getValue = function getValue(value) {
|
|
837
|
-
var
|
|
910
|
+
var _ref8;
|
|
838
911
|
var checkSameKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
839
912
|
var computedValue = callback ? callback(value) : value;
|
|
840
913
|
var _key = toFlatCase(key);
|
|
841
|
-
var _cKey = toFlatCase(
|
|
842
|
-
return (
|
|
914
|
+
var _cKey = toFlatCase(_this2.$name);
|
|
915
|
+
return (_ref8 = checkSameKey ? _key !== _cKey ? computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key] : undefined : computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) !== null && _ref8 !== void 0 ? _ref8 : computedValue;
|
|
843
916
|
};
|
|
844
917
|
return pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept') ? {
|
|
845
918
|
_usept: pt['_usept'],
|
|
@@ -853,11 +926,11 @@ var script$5 = {
|
|
|
853
926
|
};
|
|
854
927
|
if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
|
|
855
928
|
var _this$$primevueConfig3;
|
|
856
|
-
var
|
|
857
|
-
|
|
858
|
-
mergeSections =
|
|
859
|
-
|
|
860
|
-
useMergeProps =
|
|
929
|
+
var _ref9 = pt['_usept'] || ((_this$$primevueConfig3 = this.$primevueConfig) === null || _this$$primevueConfig3 === void 0 ? void 0 : _this$$primevueConfig3.ptOptions) || {},
|
|
930
|
+
_ref9$mergeSections = _ref9.mergeSections,
|
|
931
|
+
mergeSections = _ref9$mergeSections === void 0 ? true : _ref9$mergeSections,
|
|
932
|
+
_ref9$mergeProps = _ref9.mergeProps,
|
|
933
|
+
useMergeProps = _ref9$mergeProps === void 0 ? false : _ref9$mergeProps;
|
|
861
934
|
var originalValue = fn(pt.originalValue);
|
|
862
935
|
var value = fn(pt.value);
|
|
863
936
|
if (originalValue === undefined && value === undefined) return undefined;else if (isString$1(value)) return value;else if (isString$1(originalValue)) return originalValue;
|
|
@@ -877,10 +950,13 @@ var script$5 = {
|
|
|
877
950
|
return this._getPTValue(this.pt, key, _objectSpread$1(_objectSpread$1({}, this.$params), params));
|
|
878
951
|
},
|
|
879
952
|
ptmi: function ptmi() {
|
|
953
|
+
var _attrs$id;
|
|
880
954
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
881
955
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
882
956
|
// inheritAttrs:true
|
|
883
|
-
|
|
957
|
+
var attrs = mergeProps(this.$_attrsWithoutPT, this.ptm(key, params));
|
|
958
|
+
(attrs === null || attrs === void 0 ? void 0 : attrs.hasOwnProperty('id')) && ((_attrs$id = attrs.id) !== null && _attrs$id !== void 0 ? _attrs$id : attrs.id = this.$id);
|
|
959
|
+
return attrs;
|
|
884
960
|
},
|
|
885
961
|
ptmo: function ptmo() {
|
|
886
962
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -910,30 +986,33 @@ var script$5 = {
|
|
|
910
986
|
computed: {
|
|
911
987
|
globalPT: function globalPT() {
|
|
912
988
|
var _this$$primevueConfig4,
|
|
913
|
-
|
|
989
|
+
_this3 = this;
|
|
914
990
|
return this._getPT((_this$$primevueConfig4 = this.$primevueConfig) === null || _this$$primevueConfig4 === void 0 ? void 0 : _this$$primevueConfig4.pt, undefined, function (value) {
|
|
915
991
|
return resolve(value, {
|
|
916
|
-
instance:
|
|
992
|
+
instance: _this3
|
|
917
993
|
});
|
|
918
994
|
});
|
|
919
995
|
},
|
|
920
996
|
defaultPT: function defaultPT() {
|
|
921
997
|
var _this$$primevueConfig5,
|
|
922
|
-
|
|
998
|
+
_this4 = this;
|
|
923
999
|
return this._getPT((_this$$primevueConfig5 = this.$primevueConfig) === null || _this$$primevueConfig5 === void 0 ? void 0 : _this$$primevueConfig5.pt, undefined, function (value) {
|
|
924
|
-
return
|
|
1000
|
+
return _this4._getOptionValue(value, _this4.$name, _objectSpread$1({}, _this4.$params)) || resolve(value, _objectSpread$1({}, _this4.$params));
|
|
925
1001
|
});
|
|
926
1002
|
},
|
|
927
1003
|
isUnstyled: function isUnstyled() {
|
|
928
1004
|
var _this$$primevueConfig6;
|
|
929
1005
|
return this.unstyled !== undefined ? this.unstyled : (_this$$primevueConfig6 = this.$primevueConfig) === null || _this$$primevueConfig6 === void 0 ? void 0 : _this$$primevueConfig6.unstyled;
|
|
930
1006
|
},
|
|
1007
|
+
$id: function $id() {
|
|
1008
|
+
return this.$attrs.id || this.uid;
|
|
1009
|
+
},
|
|
931
1010
|
$inProps: function $inProps() {
|
|
932
1011
|
var _this$$$vnode;
|
|
933
1012
|
var nodePropKeys = Object.keys(((_this$$$vnode = this.$.vnode) === null || _this$$$vnode === void 0 ? void 0 : _this$$$vnode.props) || {});
|
|
934
|
-
return Object.fromEntries(Object.entries(this.$props).filter(function (
|
|
935
|
-
var
|
|
936
|
-
k =
|
|
1013
|
+
return Object.fromEntries(Object.entries(this.$props).filter(function (_ref10) {
|
|
1014
|
+
var _ref11 = _slicedToArray(_ref10, 1),
|
|
1015
|
+
k = _ref11[0];
|
|
937
1016
|
return nodePropKeys === null || nodePropKeys === void 0 ? void 0 : nodePropKeys.includes(k);
|
|
938
1017
|
}));
|
|
939
1018
|
},
|
|
@@ -947,7 +1026,7 @@ var script$5 = {
|
|
|
947
1026
|
inlineStyles: undefined,
|
|
948
1027
|
load: function load() {},
|
|
949
1028
|
loadCSS: function loadCSS() {},
|
|
950
|
-
|
|
1029
|
+
loadStyle: function loadStyle() {}
|
|
951
1030
|
}, (this._getHostInstance(this) || {}).$style), this.$options.style);
|
|
952
1031
|
},
|
|
953
1032
|
$styleOptions: function $styleOptions() {
|
|
@@ -979,14 +1058,14 @@ var script$5 = {
|
|
|
979
1058
|
};
|
|
980
1059
|
},
|
|
981
1060
|
$_attrsPT: function $_attrsPT() {
|
|
982
|
-
return Object.entries(this.$attrs || {}).filter(function (
|
|
983
|
-
var
|
|
984
|
-
key =
|
|
1061
|
+
return Object.entries(this.$attrs || {}).filter(function (_ref12) {
|
|
1062
|
+
var _ref13 = _slicedToArray(_ref12, 1),
|
|
1063
|
+
key = _ref13[0];
|
|
985
1064
|
return key === null || key === void 0 ? void 0 : key.startsWith('pt:');
|
|
986
|
-
}).reduce(function (result,
|
|
987
|
-
var
|
|
988
|
-
key =
|
|
989
|
-
value =
|
|
1065
|
+
}).reduce(function (result, _ref14) {
|
|
1066
|
+
var _ref15 = _slicedToArray(_ref14, 2),
|
|
1067
|
+
key = _ref15[0],
|
|
1068
|
+
value = _ref15[1];
|
|
990
1069
|
var _key$split = key.split(':'),
|
|
991
1070
|
_key$split2 = _toArray(_key$split),
|
|
992
1071
|
rest = _key$split2.slice(1);
|
|
@@ -998,14 +1077,14 @@ var script$5 = {
|
|
|
998
1077
|
}, {});
|
|
999
1078
|
},
|
|
1000
1079
|
$_attrsWithoutPT: function $_attrsWithoutPT() {
|
|
1001
|
-
return Object.entries(this.$attrs || {}).filter(function (
|
|
1002
|
-
var
|
|
1003
|
-
key =
|
|
1080
|
+
return Object.entries(this.$attrs || {}).filter(function (_ref16) {
|
|
1081
|
+
var _ref17 = _slicedToArray(_ref16, 1),
|
|
1082
|
+
key = _ref17[0];
|
|
1004
1083
|
return !(key !== null && key !== void 0 && key.startsWith('pt:'));
|
|
1005
|
-
}).reduce(function (acc,
|
|
1006
|
-
var
|
|
1007
|
-
key =
|
|
1008
|
-
value =
|
|
1084
|
+
}).reduce(function (acc, _ref18) {
|
|
1085
|
+
var _ref19 = _slicedToArray(_ref18, 2),
|
|
1086
|
+
key = _ref19[0],
|
|
1087
|
+
value = _ref19[1];
|
|
1009
1088
|
acc[key] = value;
|
|
1010
1089
|
return acc;
|
|
1011
1090
|
}, {});
|
|
@@ -1624,26 +1703,6 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
1624
1703
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
1625
1704
|
};
|
|
1626
1705
|
|
|
1627
|
-
const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
|
1628
|
-
|
|
1629
|
-
const DIGIT = '0123456789';
|
|
1630
|
-
|
|
1631
|
-
const ALPHABET = {
|
|
1632
|
-
DIGIT,
|
|
1633
|
-
ALPHA,
|
|
1634
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
1635
|
-
};
|
|
1636
|
-
|
|
1637
|
-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
1638
|
-
let str = '';
|
|
1639
|
-
const {length} = alphabet;
|
|
1640
|
-
while (size--) {
|
|
1641
|
-
str += alphabet[Math.random() * length|0];
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
return str;
|
|
1645
|
-
};
|
|
1646
|
-
|
|
1647
1706
|
/**
|
|
1648
1707
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
1649
1708
|
*
|
|
@@ -1771,8 +1830,6 @@ const utils$1 = {
|
|
|
1771
1830
|
findKey,
|
|
1772
1831
|
global: _global,
|
|
1773
1832
|
isContextDefined,
|
|
1774
|
-
ALPHABET,
|
|
1775
|
-
generateString,
|
|
1776
1833
|
isSpecCompliantForm,
|
|
1777
1834
|
toJSONObject,
|
|
1778
1835
|
isAsyncFn,
|
|
@@ -3322,8 +3379,9 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
3322
3379
|
*
|
|
3323
3380
|
* @returns {string} The combined full path
|
|
3324
3381
|
*/
|
|
3325
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
3326
|
-
|
|
3382
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
3383
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
3384
|
+
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
3327
3385
|
return combineURLs(baseURL, requestedURL);
|
|
3328
3386
|
}
|
|
3329
3387
|
return requestedURL;
|
|
@@ -3442,7 +3500,7 @@ const resolveConfig = (config) => {
|
|
|
3442
3500
|
|
|
3443
3501
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
3444
3502
|
|
|
3445
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
3503
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
3446
3504
|
|
|
3447
3505
|
// HTTP basic authentication
|
|
3448
3506
|
if (auth) {
|
|
@@ -4182,7 +4240,7 @@ function dispatchRequest(config) {
|
|
|
4182
4240
|
|
|
4183
4241
|
/* Injected with object hook! */
|
|
4184
4242
|
|
|
4185
|
-
const VERSION$1 = "1.
|
|
4243
|
+
const VERSION$1 = "1.8.3";
|
|
4186
4244
|
/* Injected with object hook! */
|
|
4187
4245
|
|
|
4188
4246
|
const validators$1 = {};
|
|
@@ -4370,6 +4428,13 @@ let Axios$1 = class Axios {
|
|
|
4370
4428
|
}
|
|
4371
4429
|
}
|
|
4372
4430
|
|
|
4431
|
+
// Set config.allowAbsoluteUrls
|
|
4432
|
+
if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
|
|
4433
|
+
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
4434
|
+
} else {
|
|
4435
|
+
config.allowAbsoluteUrls = true;
|
|
4436
|
+
}
|
|
4437
|
+
|
|
4373
4438
|
validator.assertOptions(config, {
|
|
4374
4439
|
baseUrl: validators.spelling('baseURL'),
|
|
4375
4440
|
withXsrfToken: validators.spelling('withXSRFToken')
|
|
@@ -4465,7 +4530,7 @@ let Axios$1 = class Axios {
|
|
|
4465
4530
|
|
|
4466
4531
|
getUri(config) {
|
|
4467
4532
|
config = mergeConfig$1(this.defaults, config);
|
|
4468
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
4533
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
4469
4534
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
4470
4535
|
}
|
|
4471
4536
|
};
|
|
@@ -4853,12 +4918,12 @@ var BaseIconStyle = BaseStyle.extend({
|
|
|
4853
4918
|
|
|
4854
4919
|
/* Injected with object hook! */
|
|
4855
4920
|
|
|
4856
|
-
function _typeof$
|
|
4921
|
+
function _typeof$3(o) { "@babel/helpers - typeof"; return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$3(o); }
|
|
4857
4922
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4858
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty$
|
|
4859
|
-
function _defineProperty$
|
|
4860
|
-
function _toPropertyKey$
|
|
4861
|
-
function _toPrimitive$
|
|
4923
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty$3(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4924
|
+
function _defineProperty$3(e, r, t) { return (r = _toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
4925
|
+
function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == _typeof$3(i) ? i : i + ""; }
|
|
4926
|
+
function _toPrimitive$3(t, r) { if ("object" != _typeof$3(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$3(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4862
4927
|
var script$4 = {
|
|
4863
4928
|
name: 'BaseIcon',
|
|
4864
4929
|
"extends": script$5,
|
|
@@ -4921,14 +4986,12 @@ script$3.render = render$2;
|
|
|
4921
4986
|
|
|
4922
4987
|
/* Injected with object hook! */
|
|
4923
4988
|
|
|
4924
|
-
var
|
|
4925
|
-
|
|
4926
|
-
return "\n.p-badge {\n display: inline-flex;\n border-radius: ".concat(dt('badge.border.radius'), ";\n align-items: center;\n justify-content: center;\n padding: ").concat(dt('badge.padding'), ";\n background: ").concat(dt('badge.primary.background'), ";\n color: ").concat(dt('badge.primary.color'), ";\n font-size: ").concat(dt('badge.font.size'), ";\n font-weight: ").concat(dt('badge.font.weight'), ";\n min-width: ").concat(dt('badge.min.width'), ";\n height: ").concat(dt('badge.height'), ";\n}\n\n.p-badge-dot {\n width: ").concat(dt('badge.dot.size'), ";\n min-width: ").concat(dt('badge.dot.size'), ";\n height: ").concat(dt('badge.dot.size'), ";\n border-radius: 50%;\n padding: 0;\n}\n\n.p-badge-circle {\n padding: 0;\n border-radius: 50%;\n}\n\n.p-badge-secondary {\n background: ").concat(dt('badge.secondary.background'), ";\n color: ").concat(dt('badge.secondary.color'), ";\n}\n\n.p-badge-success {\n background: ").concat(dt('badge.success.background'), ";\n color: ").concat(dt('badge.success.color'), ";\n}\n\n.p-badge-info {\n background: ").concat(dt('badge.info.background'), ";\n color: ").concat(dt('badge.info.color'), ";\n}\n\n.p-badge-warn {\n background: ").concat(dt('badge.warn.background'), ";\n color: ").concat(dt('badge.warn.color'), ";\n}\n\n.p-badge-danger {\n background: ").concat(dt('badge.danger.background'), ";\n color: ").concat(dt('badge.danger.color'), ";\n}\n\n.p-badge-contrast {\n background: ").concat(dt('badge.contrast.background'), ";\n color: ").concat(dt('badge.contrast.color'), ";\n}\n\n.p-badge-sm {\n font-size: ").concat(dt('badge.sm.font.size'), ";\n min-width: ").concat(dt('badge.sm.min.width'), ";\n height: ").concat(dt('badge.sm.height'), ";\n}\n\n.p-badge-lg {\n font-size: ").concat(dt('badge.lg.font.size'), ";\n min-width: ").concat(dt('badge.lg.min.width'), ";\n height: ").concat(dt('badge.lg.height'), ";\n}\n\n.p-badge-xl {\n font-size: ").concat(dt('badge.xl.font.size'), ";\n min-width: ").concat(dt('badge.xl.min.width'), ";\n height: ").concat(dt('badge.xl.height'), ";\n}\n");
|
|
4927
|
-
};
|
|
4989
|
+
var style$1=({dt:n})=>`\n.p-badge {\n display: inline-flex;\n border-radius: ${n("badge.border.radius")};\n align-items: center;\n justify-content: center;\n padding: ${n("badge.padding")};\n background: ${n("badge.primary.background")};\n color: ${n("badge.primary.color")};\n font-size: ${n("badge.font.size")};\n font-weight: ${n("badge.font.weight")};\n min-width: ${n("badge.min.width")};\n height: ${n("badge.height")};\n}\n\n.p-badge-dot {\n width: ${n("badge.dot.size")};\n min-width: ${n("badge.dot.size")};\n height: ${n("badge.dot.size")};\n border-radius: 50%;\n padding: 0;\n}\n\n.p-badge-circle {\n padding: 0;\n border-radius: 50%;\n}\n\n.p-badge-secondary {\n background: ${n("badge.secondary.background")};\n color: ${n("badge.secondary.color")};\n}\n\n.p-badge-success {\n background: ${n("badge.success.background")};\n color: ${n("badge.success.color")};\n}\n\n.p-badge-info {\n background: ${n("badge.info.background")};\n color: ${n("badge.info.color")};\n}\n\n.p-badge-warn {\n background: ${n("badge.warn.background")};\n color: ${n("badge.warn.color")};\n}\n\n.p-badge-danger {\n background: ${n("badge.danger.background")};\n color: ${n("badge.danger.color")};\n}\n\n.p-badge-contrast {\n background: ${n("badge.contrast.background")};\n color: ${n("badge.contrast.color")};\n}\n\n.p-badge-sm {\n font-size: ${n("badge.sm.font.size")};\n min-width: ${n("badge.sm.min.width")};\n height: ${n("badge.sm.height")};\n}\n\n.p-badge-lg {\n font-size: ${n("badge.lg.font.size")};\n min-width: ${n("badge.lg.min.width")};\n height: ${n("badge.lg.height")};\n}\n\n.p-badge-xl {\n font-size: ${n("badge.xl.font.size")};\n min-width: ${n("badge.xl.min.width")};\n height: ${n("badge.xl.height")};\n}\n`;/* Injected with object hook! */
|
|
4990
|
+
|
|
4928
4991
|
var classes$1 = {
|
|
4929
|
-
root: function root(
|
|
4930
|
-
var props =
|
|
4931
|
-
instance =
|
|
4992
|
+
root: function root(_ref) {
|
|
4993
|
+
var props = _ref.props,
|
|
4994
|
+
instance = _ref.instance;
|
|
4932
4995
|
return ['p-badge p-component', {
|
|
4933
4996
|
'p-badge-circle': isNotEmpty(props.value) && String(props.value).length === 1,
|
|
4934
4997
|
'p-badge-dot': isEmpty(props.value) && !instance.$slots["default"],
|
|
@@ -4946,7 +5009,7 @@ var classes$1 = {
|
|
|
4946
5009
|
};
|
|
4947
5010
|
var BadgeStyle = BaseStyle.extend({
|
|
4948
5011
|
name: 'badge',
|
|
4949
|
-
|
|
5012
|
+
style: style$1,
|
|
4950
5013
|
classes: classes$1
|
|
4951
5014
|
});
|
|
4952
5015
|
|
|
@@ -4979,18 +5042,32 @@ var script$1$1 = {
|
|
|
4979
5042
|
}
|
|
4980
5043
|
};
|
|
4981
5044
|
|
|
5045
|
+
function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
|
|
5046
|
+
function _defineProperty$2(e, r, t) { return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
5047
|
+
function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : i + ""; }
|
|
5048
|
+
function _toPrimitive$2(t, r) { if ("object" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4982
5049
|
var script$2 = {
|
|
4983
5050
|
name: 'Badge',
|
|
4984
5051
|
"extends": script$1$1,
|
|
4985
|
-
inheritAttrs: false
|
|
5052
|
+
inheritAttrs: false,
|
|
5053
|
+
computed: {
|
|
5054
|
+
dataP: function dataP() {
|
|
5055
|
+
return cn(_defineProperty$2(_defineProperty$2({
|
|
5056
|
+
circle: this.value != null && String(this.value).length === 1,
|
|
5057
|
+
empty: this.value == null && !this.$slots["default"]
|
|
5058
|
+
}, this.severity, this.severity), this.size, this.size));
|
|
5059
|
+
}
|
|
5060
|
+
}
|
|
4986
5061
|
};
|
|
4987
5062
|
|
|
5063
|
+
var _hoisted_1$1 = ["data-p"];
|
|
4988
5064
|
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4989
5065
|
return openBlock(), createElementBlock("span", mergeProps({
|
|
4990
|
-
"class": _ctx.cx('root')
|
|
5066
|
+
"class": _ctx.cx('root'),
|
|
5067
|
+
"data-p": $options.dataP
|
|
4991
5068
|
}, _ctx.ptmi('root')), [renderSlot(_ctx.$slots, "default", {}, function () {
|
|
4992
5069
|
return [createTextVNode(toDisplayString(_ctx.value), 1)];
|
|
4993
|
-
})], 16);
|
|
5070
|
+
})], 16, _hoisted_1$1);
|
|
4994
5071
|
}
|
|
4995
5072
|
|
|
4996
5073
|
script$2.render = render$1;
|
|
@@ -4998,19 +5075,17 @@ script$2.render = render$1;
|
|
|
4998
5075
|
|
|
4999
5076
|
/* Injected with object hook! */
|
|
5000
5077
|
|
|
5001
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5002
|
-
|
|
5003
|
-
function
|
|
5004
|
-
function
|
|
5005
|
-
var
|
|
5006
|
-
|
|
5007
|
-
return "\n.p-button {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n color: ".concat(dt('button.primary.color'), ";\n background: ").concat(dt('button.primary.background'), ";\n border: 1px solid ").concat(dt('button.primary.border.color'), ";\n padding: ").concat(dt('button.padding.y'), " ").concat(dt('button.padding.x'), ";\n font-size: 1rem;\n font-family: inherit;\n font-feature-settings: inherit;\n transition: background ").concat(dt('button.transition.duration'), ", color ").concat(dt('button.transition.duration'), ", border-color ").concat(dt('button.transition.duration'), ",\n outline-color ").concat(dt('button.transition.duration'), ", box-shadow ").concat(dt('button.transition.duration'), ";\n border-radius: ").concat(dt('button.border.radius'), ";\n outline-color: transparent;\n gap: ").concat(dt('button.gap'), ";\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button-icon-right:dir(rtl) {\n order: -1;\n}\n\n.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {\n order: 1;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-icon-only {\n width: ").concat(dt('button.icon.only.width'), ";\n padding-inline-start: 0;\n padding-inline-end: 0;\n gap: 0;\n}\n\n.p-button-icon-only.p-button-rounded {\n border-radius: 50%;\n height: ").concat(dt('button.icon.only.width'), ";\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n}\n\n.p-button-sm {\n font-size: ").concat(dt('button.sm.font.size'), ";\n padding: ").concat(dt('button.sm.padding.y'), " ").concat(dt('button.sm.padding.x'), ";\n}\n\n.p-button-sm .p-button-icon {\n font-size: ").concat(dt('button.sm.font.size'), ";\n}\n\n.p-button-lg {\n font-size: ").concat(dt('button.lg.font.size'), ";\n padding: ").concat(dt('button.lg.padding.y'), " ").concat(dt('button.lg.padding.x'), ";\n}\n\n.p-button-lg .p-button-icon {\n font-size: ").concat(dt('button.lg.font.size'), ";\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-label {\n font-weight: ").concat(dt('button.label.font.weight'), ";\n}\n\n.p-button-fluid {\n width: 100%;\n}\n\n.p-button-fluid.p-button-icon-only {\n width: ").concat(dt('button.icon.only.width'), ";\n}\n\n.p-button:not(:disabled):hover {\n background: ").concat(dt('button.primary.hover.background'), ";\n border: 1px solid ").concat(dt('button.primary.hover.border.color'), ";\n color: ").concat(dt('button.primary.hover.color'), ";\n}\n\n.p-button:not(:disabled):active {\n background: ").concat(dt('button.primary.active.background'), ";\n border: 1px solid ").concat(dt('button.primary.active.border.color'), ";\n color: ").concat(dt('button.primary.active.color'), ";\n}\n\n.p-button:focus-visible {\n box-shadow: ").concat(dt('button.primary.focus.ring.shadow'), ";\n outline: ").concat(dt('button.focus.ring.width'), " ").concat(dt('button.focus.ring.style'), " ").concat(dt('button.primary.focus.ring.color'), ";\n outline-offset: ").concat(dt('button.focus.ring.offset'), ";\n}\n\n.p-button .p-badge {\n min-width: ").concat(dt('button.badge.size'), ";\n height: ").concat(dt('button.badge.size'), ";\n line-height: ").concat(dt('button.badge.size'), ";\n}\n\n.p-button-raised {\n box-shadow: ").concat(dt('button.raised.shadow'), ";\n}\n\n.p-button-rounded {\n border-radius: ").concat(dt('button.rounded.border.radius'), ";\n}\n\n.p-button-secondary {\n background: ").concat(dt('button.secondary.background'), ";\n border: 1px solid ").concat(dt('button.secondary.border.color'), ";\n color: ").concat(dt('button.secondary.color'), ";\n}\n\n.p-button-secondary:not(:disabled):hover {\n background: ").concat(dt('button.secondary.hover.background'), ";\n border: 1px solid ").concat(dt('button.secondary.hover.border.color'), ";\n color: ").concat(dt('button.secondary.hover.color'), ";\n}\n\n.p-button-secondary:not(:disabled):active {\n background: ").concat(dt('button.secondary.active.background'), ";\n border: 1px solid ").concat(dt('button.secondary.active.border.color'), ";\n color: ").concat(dt('button.secondary.active.color'), ";\n}\n\n.p-button-secondary:focus-visible {\n outline-color: ").concat(dt('button.secondary.focus.ring.color'), ";\n box-shadow: ").concat(dt('button.secondary.focus.ring.shadow'), ";\n}\n\n.p-button-success {\n background: ").concat(dt('button.success.background'), ";\n border: 1px solid ").concat(dt('button.success.border.color'), ";\n color: ").concat(dt('button.success.color'), ";\n}\n\n.p-button-success:not(:disabled):hover {\n background: ").concat(dt('button.success.hover.background'), ";\n border: 1px solid ").concat(dt('button.success.hover.border.color'), ";\n color: ").concat(dt('button.success.hover.color'), ";\n}\n\n.p-button-success:not(:disabled):active {\n background: ").concat(dt('button.success.active.background'), ";\n border: 1px solid ").concat(dt('button.success.active.border.color'), ";\n color: ").concat(dt('button.success.active.color'), ";\n}\n\n.p-button-success:focus-visible {\n outline-color: ").concat(dt('button.success.focus.ring.color'), ";\n box-shadow: ").concat(dt('button.success.focus.ring.shadow'), ";\n}\n\n.p-button-info {\n background: ").concat(dt('button.info.background'), ";\n border: 1px solid ").concat(dt('button.info.border.color'), ";\n color: ").concat(dt('button.info.color'), ";\n}\n\n.p-button-info:not(:disabled):hover {\n background: ").concat(dt('button.info.hover.background'), ";\n border: 1px solid ").concat(dt('button.info.hover.border.color'), ";\n color: ").concat(dt('button.info.hover.color'), ";\n}\n\n.p-button-info:not(:disabled):active {\n background: ").concat(dt('button.info.active.background'), ";\n border: 1px solid ").concat(dt('button.info.active.border.color'), ";\n color: ").concat(dt('button.info.active.color'), ";\n}\n\n.p-button-info:focus-visible {\n outline-color: ").concat(dt('button.info.focus.ring.color'), ";\n box-shadow: ").concat(dt('button.info.focus.ring.shadow'), ";\n}\n\n.p-button-warn {\n background: ").concat(dt('button.warn.background'), ";\n border: 1px solid ").concat(dt('button.warn.border.color'), ";\n color: ").concat(dt('button.warn.color'), ";\n}\n\n.p-button-warn:not(:disabled):hover {\n background: ").concat(dt('button.warn.hover.background'), ";\n border: 1px solid ").concat(dt('button.warn.hover.border.color'), ";\n color: ").concat(dt('button.warn.hover.color'), ";\n}\n\n.p-button-warn:not(:disabled):active {\n background: ").concat(dt('button.warn.active.background'), ";\n border: 1px solid ").concat(dt('button.warn.active.border.color'), ";\n color: ").concat(dt('button.warn.active.color'), ";\n}\n\n.p-button-warn:focus-visible {\n outline-color: ").concat(dt('button.warn.focus.ring.color'), ";\n box-shadow: ").concat(dt('button.warn.focus.ring.shadow'), ";\n}\n\n.p-button-help {\n background: ").concat(dt('button.help.background'), ";\n border: 1px solid ").concat(dt('button.help.border.color'), ";\n color: ").concat(dt('button.help.color'), ";\n}\n\n.p-button-help:not(:disabled):hover {\n background: ").concat(dt('button.help.hover.background'), ";\n border: 1px solid ").concat(dt('button.help.hover.border.color'), ";\n color: ").concat(dt('button.help.hover.color'), ";\n}\n\n.p-button-help:not(:disabled):active {\n background: ").concat(dt('button.help.active.background'), ";\n border: 1px solid ").concat(dt('button.help.active.border.color'), ";\n color: ").concat(dt('button.help.active.color'), ";\n}\n\n.p-button-help:focus-visible {\n outline-color: ").concat(dt('button.help.focus.ring.color'), ";\n box-shadow: ").concat(dt('button.help.focus.ring.shadow'), ";\n}\n\n.p-button-danger {\n background: ").concat(dt('button.danger.background'), ";\n border: 1px solid ").concat(dt('button.danger.border.color'), ";\n color: ").concat(dt('button.danger.color'), ";\n}\n\n.p-button-danger:not(:disabled):hover {\n background: ").concat(dt('button.danger.hover.background'), ";\n border: 1px solid ").concat(dt('button.danger.hover.border.color'), ";\n color: ").concat(dt('button.danger.hover.color'), ";\n}\n\n.p-button-danger:not(:disabled):active {\n background: ").concat(dt('button.danger.active.background'), ";\n border: 1px solid ").concat(dt('button.danger.active.border.color'), ";\n color: ").concat(dt('button.danger.active.color'), ";\n}\n\n.p-button-danger:focus-visible {\n outline-color: ").concat(dt('button.danger.focus.ring.color'), ";\n box-shadow: ").concat(dt('button.danger.focus.ring.shadow'), ";\n}\n\n.p-button-contrast {\n background: ").concat(dt('button.contrast.background'), ";\n border: 1px solid ").concat(dt('button.contrast.border.color'), ";\n color: ").concat(dt('button.contrast.color'), ";\n}\n\n.p-button-contrast:not(:disabled):hover {\n background: ").concat(dt('button.contrast.hover.background'), ";\n border: 1px solid ").concat(dt('button.contrast.hover.border.color'), ";\n color: ").concat(dt('button.contrast.hover.color'), ";\n}\n\n.p-button-contrast:not(:disabled):active {\n background: ").concat(dt('button.contrast.active.background'), ";\n border: 1px solid ").concat(dt('button.contrast.active.border.color'), ";\n color: ").concat(dt('button.contrast.active.color'), ";\n}\n\n.p-button-contrast:focus-visible {\n outline-color: ").concat(dt('button.contrast.focus.ring.color'), ";\n box-shadow: ").concat(dt('button.contrast.focus.ring.shadow'), ";\n}\n\n.p-button-outlined {\n background: transparent;\n border-color: ").concat(dt('button.outlined.primary.border.color'), ";\n color: ").concat(dt('button.outlined.primary.color'), ";\n}\n\n.p-button-outlined:not(:disabled):hover {\n background: ").concat(dt('button.outlined.primary.hover.background'), ";\n border-color: ").concat(dt('button.outlined.primary.border.color'), ";\n color: ").concat(dt('button.outlined.primary.color'), ";\n}\n\n.p-button-outlined:not(:disabled):active {\n background: ").concat(dt('button.outlined.primary.active.background'), ";\n border-color: ").concat(dt('button.outlined.primary.border.color'), ";\n color: ").concat(dt('button.outlined.primary.color'), ";\n}\n\n.p-button-outlined.p-button-secondary {\n border-color: ").concat(dt('button.outlined.secondary.border.color'), ";\n color: ").concat(dt('button.outlined.secondary.color'), ";\n}\n\n.p-button-outlined.p-button-secondary:not(:disabled):hover {\n background: ").concat(dt('button.outlined.secondary.hover.background'), ";\n border-color: ").concat(dt('button.outlined.secondary.border.color'), ";\n color: ").concat(dt('button.outlined.secondary.color'), ";\n}\n\n.p-button-outlined.p-button-secondary:not(:disabled):active {\n background: ").concat(dt('button.outlined.secondary.active.background'), ";\n border-color: ").concat(dt('button.outlined.secondary.border.color'), ";\n color: ").concat(dt('button.outlined.secondary.color'), ";\n}\n\n.p-button-outlined.p-button-success {\n border-color: ").concat(dt('button.outlined.success.border.color'), ";\n color: ").concat(dt('button.outlined.success.color'), ";\n}\n\n.p-button-outlined.p-button-success:not(:disabled):hover {\n background: ").concat(dt('button.outlined.success.hover.background'), ";\n border-color: ").concat(dt('button.outlined.success.border.color'), ";\n color: ").concat(dt('button.outlined.success.color'), ";\n}\n\n.p-button-outlined.p-button-success:not(:disabled):active {\n background: ").concat(dt('button.outlined.success.active.background'), ";\n border-color: ").concat(dt('button.outlined.success.border.color'), ";\n color: ").concat(dt('button.outlined.success.color'), ";\n}\n\n.p-button-outlined.p-button-info {\n border-color: ").concat(dt('button.outlined.info.border.color'), ";\n color: ").concat(dt('button.outlined.info.color'), ";\n}\n\n.p-button-outlined.p-button-info:not(:disabled):hover {\n background: ").concat(dt('button.outlined.info.hover.background'), ";\n border-color: ").concat(dt('button.outlined.info.border.color'), ";\n color: ").concat(dt('button.outlined.info.color'), ";\n}\n\n.p-button-outlined.p-button-info:not(:disabled):active {\n background: ").concat(dt('button.outlined.info.active.background'), ";\n border-color: ").concat(dt('button.outlined.info.border.color'), ";\n color: ").concat(dt('button.outlined.info.color'), ";\n}\n\n.p-button-outlined.p-button-warn {\n border-color: ").concat(dt('button.outlined.warn.border.color'), ";\n color: ").concat(dt('button.outlined.warn.color'), ";\n}\n\n.p-button-outlined.p-button-warn:not(:disabled):hover {\n background: ").concat(dt('button.outlined.warn.hover.background'), ";\n border-color: ").concat(dt('button.outlined.warn.border.color'), ";\n color: ").concat(dt('button.outlined.warn.color'), ";\n}\n\n.p-button-outlined.p-button-warn:not(:disabled):active {\n background: ").concat(dt('button.outlined.warn.active.background'), ";\n border-color: ").concat(dt('button.outlined.warn.border.color'), ";\n color: ").concat(dt('button.outlined.warn.color'), ";\n}\n\n.p-button-outlined.p-button-help {\n border-color: ").concat(dt('button.outlined.help.border.color'), ";\n color: ").concat(dt('button.outlined.help.color'), ";\n}\n\n.p-button-outlined.p-button-help:not(:disabled):hover {\n background: ").concat(dt('button.outlined.help.hover.background'), ";\n border-color: ").concat(dt('button.outlined.help.border.color'), ";\n color: ").concat(dt('button.outlined.help.color'), ";\n}\n\n.p-button-outlined.p-button-help:not(:disabled):active {\n background: ").concat(dt('button.outlined.help.active.background'), ";\n border-color: ").concat(dt('button.outlined.help.border.color'), ";\n color: ").concat(dt('button.outlined.help.color'), ";\n}\n\n.p-button-outlined.p-button-danger {\n border-color: ").concat(dt('button.outlined.danger.border.color'), ";\n color: ").concat(dt('button.outlined.danger.color'), ";\n}\n\n.p-button-outlined.p-button-danger:not(:disabled):hover {\n background: ").concat(dt('button.outlined.danger.hover.background'), ";\n border-color: ").concat(dt('button.outlined.danger.border.color'), ";\n color: ").concat(dt('button.outlined.danger.color'), ";\n}\n\n.p-button-outlined.p-button-danger:not(:disabled):active {\n background: ").concat(dt('button.outlined.danger.active.background'), ";\n border-color: ").concat(dt('button.outlined.danger.border.color'), ";\n color: ").concat(dt('button.outlined.danger.color'), ";\n}\n\n.p-button-outlined.p-button-contrast {\n border-color: ").concat(dt('button.outlined.contrast.border.color'), ";\n color: ").concat(dt('button.outlined.contrast.color'), ";\n}\n\n.p-button-outlined.p-button-contrast:not(:disabled):hover {\n background: ").concat(dt('button.outlined.contrast.hover.background'), ";\n border-color: ").concat(dt('button.outlined.contrast.border.color'), ";\n color: ").concat(dt('button.outlined.contrast.color'), ";\n}\n\n.p-button-outlined.p-button-contrast:not(:disabled):active {\n background: ").concat(dt('button.outlined.contrast.active.background'), ";\n border-color: ").concat(dt('button.outlined.contrast.border.color'), ";\n color: ").concat(dt('button.outlined.contrast.color'), ";\n}\n\n.p-button-outlined.p-button-plain {\n border-color: ").concat(dt('button.outlined.plain.border.color'), ";\n color: ").concat(dt('button.outlined.plain.color'), ";\n}\n\n.p-button-outlined.p-button-plain:not(:disabled):hover {\n background: ").concat(dt('button.outlined.plain.hover.background'), ";\n border-color: ").concat(dt('button.outlined.plain.border.color'), ";\n color: ").concat(dt('button.outlined.plain.color'), ";\n}\n\n.p-button-outlined.p-button-plain:not(:disabled):active {\n background: ").concat(dt('button.outlined.plain.active.background'), ";\n border-color: ").concat(dt('button.outlined.plain.border.color'), ";\n color: ").concat(dt('button.outlined.plain.color'), ";\n}\n\n.p-button-text {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.text.primary.color'), ";\n}\n\n.p-button-text:not(:disabled):hover {\n background: ").concat(dt('button.text.primary.hover.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.primary.color'), ";\n}\n\n.p-button-text:not(:disabled):active {\n background: ").concat(dt('button.text.primary.active.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.primary.color'), ";\n}\n\n.p-button-text.p-button-secondary {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.text.secondary.color'), ";\n}\n\n.p-button-text.p-button-secondary:not(:disabled):hover {\n background: ").concat(dt('button.text.secondary.hover.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.secondary.color'), ";\n}\n\n.p-button-text.p-button-secondary:not(:disabled):active {\n background: ").concat(dt('button.text.secondary.active.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.secondary.color'), ";\n}\n\n.p-button-text.p-button-success {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.text.success.color'), ";\n}\n\n.p-button-text.p-button-success:not(:disabled):hover {\n background: ").concat(dt('button.text.success.hover.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.success.color'), ";\n}\n\n.p-button-text.p-button-success:not(:disabled):active {\n background: ").concat(dt('button.text.success.active.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.success.color'), ";\n}\n\n.p-button-text.p-button-info {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.text.info.color'), ";\n}\n\n.p-button-text.p-button-info:not(:disabled):hover {\n background: ").concat(dt('button.text.info.hover.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.info.color'), ";\n}\n\n.p-button-text.p-button-info:not(:disabled):active {\n background: ").concat(dt('button.text.info.active.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.info.color'), ";\n}\n\n.p-button-text.p-button-warn {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.text.warn.color'), ";\n}\n\n.p-button-text.p-button-warn:not(:disabled):hover {\n background: ").concat(dt('button.text.warn.hover.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.warn.color'), ";\n}\n\n.p-button-text.p-button-warn:not(:disabled):active {\n background: ").concat(dt('button.text.warn.active.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.warn.color'), ";\n}\n\n.p-button-text.p-button-help {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.text.help.color'), ";\n}\n\n.p-button-text.p-button-help:not(:disabled):hover {\n background: ").concat(dt('button.text.help.hover.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.help.color'), ";\n}\n\n.p-button-text.p-button-help:not(:disabled):active {\n background: ").concat(dt('button.text.help.active.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.help.color'), ";\n}\n\n.p-button-text.p-button-danger {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.text.danger.color'), ";\n}\n\n.p-button-text.p-button-danger:not(:disabled):hover {\n background: ").concat(dt('button.text.danger.hover.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.danger.color'), ";\n}\n\n.p-button-text.p-button-danger:not(:disabled):active {\n background: ").concat(dt('button.text.danger.active.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.danger.color'), ";\n}\n\n.p-button-text.p-button-contrast {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.text.contrast.color'), ";\n}\n\n.p-button-text.p-button-contrast:not(:disabled):hover {\n background: ").concat(dt('button.text.contrast.hover.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.contrast.color'), ";\n}\n\n.p-button-text.p-button-contrast:not(:disabled):active {\n background: ").concat(dt('button.text.contrast.active.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.contrast.color'), ";\n}\n\n.p-button-text.p-button-plain {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.text.plain.color'), ";\n}\n\n.p-button-text.p-button-plain:not(:disabled):hover {\n background: ").concat(dt('button.text.plain.hover.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.plain.color'), ";\n}\n\n.p-button-text.p-button-plain:not(:disabled):active {\n background: ").concat(dt('button.text.plain.active.background'), ";\n border-color: transparent;\n color: ").concat(dt('button.text.plain.color'), ";\n}\n\n.p-button-link {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.link.color'), ";\n}\n\n.p-button-link:not(:disabled):hover {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.link.hover.color'), ";\n}\n\n.p-button-link:not(:disabled):hover .p-button-label {\n text-decoration: underline;\n}\n\n.p-button-link:not(:disabled):active {\n background: transparent;\n border-color: transparent;\n color: ").concat(dt('button.link.active.color'), ";\n}\n");
|
|
5008
|
-
};
|
|
5078
|
+
var style=({dt:o})=>`\n.p-button {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n color: ${o("button.primary.color")};\n background: ${o("button.primary.background")};\n border: 1px solid ${o("button.primary.border.color")};\n padding: ${o("button.padding.y")} ${o("button.padding.x")};\n font-size: 1rem;\n font-family: inherit;\n font-feature-settings: inherit;\n transition: background ${o("button.transition.duration")}, color ${o("button.transition.duration")}, border-color ${o("button.transition.duration")},\n outline-color ${o("button.transition.duration")}, box-shadow ${o("button.transition.duration")};\n border-radius: ${o("button.border.radius")};\n outline-color: transparent;\n gap: ${o("button.gap")};\n}\n\n.p-button:disabled {\n cursor: default;\n}\n\n.p-button-icon-right {\n order: 1;\n}\n\n.p-button-icon-right:dir(rtl) {\n order: -1;\n}\n\n.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {\n order: 1;\n}\n\n.p-button-icon-bottom {\n order: 2;\n}\n\n.p-button-icon-only {\n width: ${o("button.icon.only.width")};\n padding-inline-start: 0;\n padding-inline-end: 0;\n gap: 0;\n}\n\n.p-button-icon-only.p-button-rounded {\n border-radius: 50%;\n height: ${o("button.icon.only.width")};\n}\n\n.p-button-icon-only .p-button-label {\n visibility: hidden;\n width: 0;\n}\n\n.p-button-sm {\n font-size: ${o("button.sm.font.size")};\n padding: ${o("button.sm.padding.y")} ${o("button.sm.padding.x")};\n}\n\n.p-button-sm .p-button-icon {\n font-size: ${o("button.sm.font.size")};\n}\n\n.p-button-sm.p-button-icon-only {\n width: ${o("button.sm.icon.only.width")};\n}\n\n.p-button-sm.p-button-icon-only.p-button-rounded {\n height: ${o("button.sm.icon.only.width")};\n}\n\n.p-button-lg {\n font-size: ${o("button.lg.font.size")};\n padding: ${o("button.lg.padding.y")} ${o("button.lg.padding.x")};\n}\n\n.p-button-lg .p-button-icon {\n font-size: ${o("button.lg.font.size")};\n}\n\n.p-button-lg.p-button-icon-only {\n width: ${o("button.lg.icon.only.width")};\n}\n\n.p-button-lg.p-button-icon-only.p-button-rounded {\n height: ${o("button.lg.icon.only.width")};\n}\n\n.p-button-vertical {\n flex-direction: column;\n}\n\n.p-button-label {\n font-weight: ${o("button.label.font.weight")};\n}\n\n.p-button-fluid {\n width: 100%;\n}\n\n.p-button-fluid.p-button-icon-only {\n width: ${o("button.icon.only.width")};\n}\n\n.p-button:not(:disabled):hover {\n background: ${o("button.primary.hover.background")};\n border: 1px solid ${o("button.primary.hover.border.color")};\n color: ${o("button.primary.hover.color")};\n}\n\n.p-button:not(:disabled):active {\n background: ${o("button.primary.active.background")};\n border: 1px solid ${o("button.primary.active.border.color")};\n color: ${o("button.primary.active.color")};\n}\n\n.p-button:focus-visible {\n box-shadow: ${o("button.primary.focus.ring.shadow")};\n outline: ${o("button.focus.ring.width")} ${o("button.focus.ring.style")} ${o("button.primary.focus.ring.color")};\n outline-offset: ${o("button.focus.ring.offset")};\n}\n\n.p-button .p-badge {\n min-width: ${o("button.badge.size")};\n height: ${o("button.badge.size")};\n line-height: ${o("button.badge.size")};\n}\n\n.p-button-raised {\n box-shadow: ${o("button.raised.shadow")};\n}\n\n.p-button-rounded {\n border-radius: ${o("button.rounded.border.radius")};\n}\n\n.p-button-secondary {\n background: ${o("button.secondary.background")};\n border: 1px solid ${o("button.secondary.border.color")};\n color: ${o("button.secondary.color")};\n}\n\n.p-button-secondary:not(:disabled):hover {\n background: ${o("button.secondary.hover.background")};\n border: 1px solid ${o("button.secondary.hover.border.color")};\n color: ${o("button.secondary.hover.color")};\n}\n\n.p-button-secondary:not(:disabled):active {\n background: ${o("button.secondary.active.background")};\n border: 1px solid ${o("button.secondary.active.border.color")};\n color: ${o("button.secondary.active.color")};\n}\n\n.p-button-secondary:focus-visible {\n outline-color: ${o("button.secondary.focus.ring.color")};\n box-shadow: ${o("button.secondary.focus.ring.shadow")};\n}\n\n.p-button-success {\n background: ${o("button.success.background")};\n border: 1px solid ${o("button.success.border.color")};\n color: ${o("button.success.color")};\n}\n\n.p-button-success:not(:disabled):hover {\n background: ${o("button.success.hover.background")};\n border: 1px solid ${o("button.success.hover.border.color")};\n color: ${o("button.success.hover.color")};\n}\n\n.p-button-success:not(:disabled):active {\n background: ${o("button.success.active.background")};\n border: 1px solid ${o("button.success.active.border.color")};\n color: ${o("button.success.active.color")};\n}\n\n.p-button-success:focus-visible {\n outline-color: ${o("button.success.focus.ring.color")};\n box-shadow: ${o("button.success.focus.ring.shadow")};\n}\n\n.p-button-info {\n background: ${o("button.info.background")};\n border: 1px solid ${o("button.info.border.color")};\n color: ${o("button.info.color")};\n}\n\n.p-button-info:not(:disabled):hover {\n background: ${o("button.info.hover.background")};\n border: 1px solid ${o("button.info.hover.border.color")};\n color: ${o("button.info.hover.color")};\n}\n\n.p-button-info:not(:disabled):active {\n background: ${o("button.info.active.background")};\n border: 1px solid ${o("button.info.active.border.color")};\n color: ${o("button.info.active.color")};\n}\n\n.p-button-info:focus-visible {\n outline-color: ${o("button.info.focus.ring.color")};\n box-shadow: ${o("button.info.focus.ring.shadow")};\n}\n\n.p-button-warn {\n background: ${o("button.warn.background")};\n border: 1px solid ${o("button.warn.border.color")};\n color: ${o("button.warn.color")};\n}\n\n.p-button-warn:not(:disabled):hover {\n background: ${o("button.warn.hover.background")};\n border: 1px solid ${o("button.warn.hover.border.color")};\n color: ${o("button.warn.hover.color")};\n}\n\n.p-button-warn:not(:disabled):active {\n background: ${o("button.warn.active.background")};\n border: 1px solid ${o("button.warn.active.border.color")};\n color: ${o("button.warn.active.color")};\n}\n\n.p-button-warn:focus-visible {\n outline-color: ${o("button.warn.focus.ring.color")};\n box-shadow: ${o("button.warn.focus.ring.shadow")};\n}\n\n.p-button-help {\n background: ${o("button.help.background")};\n border: 1px solid ${o("button.help.border.color")};\n color: ${o("button.help.color")};\n}\n\n.p-button-help:not(:disabled):hover {\n background: ${o("button.help.hover.background")};\n border: 1px solid ${o("button.help.hover.border.color")};\n color: ${o("button.help.hover.color")};\n}\n\n.p-button-help:not(:disabled):active {\n background: ${o("button.help.active.background")};\n border: 1px solid ${o("button.help.active.border.color")};\n color: ${o("button.help.active.color")};\n}\n\n.p-button-help:focus-visible {\n outline-color: ${o("button.help.focus.ring.color")};\n box-shadow: ${o("button.help.focus.ring.shadow")};\n}\n\n.p-button-danger {\n background: ${o("button.danger.background")};\n border: 1px solid ${o("button.danger.border.color")};\n color: ${o("button.danger.color")};\n}\n\n.p-button-danger:not(:disabled):hover {\n background: ${o("button.danger.hover.background")};\n border: 1px solid ${o("button.danger.hover.border.color")};\n color: ${o("button.danger.hover.color")};\n}\n\n.p-button-danger:not(:disabled):active {\n background: ${o("button.danger.active.background")};\n border: 1px solid ${o("button.danger.active.border.color")};\n color: ${o("button.danger.active.color")};\n}\n\n.p-button-danger:focus-visible {\n outline-color: ${o("button.danger.focus.ring.color")};\n box-shadow: ${o("button.danger.focus.ring.shadow")};\n}\n\n.p-button-contrast {\n background: ${o("button.contrast.background")};\n border: 1px solid ${o("button.contrast.border.color")};\n color: ${o("button.contrast.color")};\n}\n\n.p-button-contrast:not(:disabled):hover {\n background: ${o("button.contrast.hover.background")};\n border: 1px solid ${o("button.contrast.hover.border.color")};\n color: ${o("button.contrast.hover.color")};\n}\n\n.p-button-contrast:not(:disabled):active {\n background: ${o("button.contrast.active.background")};\n border: 1px solid ${o("button.contrast.active.border.color")};\n color: ${o("button.contrast.active.color")};\n}\n\n.p-button-contrast:focus-visible {\n outline-color: ${o("button.contrast.focus.ring.color")};\n box-shadow: ${o("button.contrast.focus.ring.shadow")};\n}\n\n.p-button-outlined {\n background: transparent;\n border-color: ${o("button.outlined.primary.border.color")};\n color: ${o("button.outlined.primary.color")};\n}\n\n.p-button-outlined:not(:disabled):hover {\n background: ${o("button.outlined.primary.hover.background")};\n border-color: ${o("button.outlined.primary.border.color")};\n color: ${o("button.outlined.primary.color")};\n}\n\n.p-button-outlined:not(:disabled):active {\n background: ${o("button.outlined.primary.active.background")};\n border-color: ${o("button.outlined.primary.border.color")};\n color: ${o("button.outlined.primary.color")};\n}\n\n.p-button-outlined.p-button-secondary {\n border-color: ${o("button.outlined.secondary.border.color")};\n color: ${o("button.outlined.secondary.color")};\n}\n\n.p-button-outlined.p-button-secondary:not(:disabled):hover {\n background: ${o("button.outlined.secondary.hover.background")};\n border-color: ${o("button.outlined.secondary.border.color")};\n color: ${o("button.outlined.secondary.color")};\n}\n\n.p-button-outlined.p-button-secondary:not(:disabled):active {\n background: ${o("button.outlined.secondary.active.background")};\n border-color: ${o("button.outlined.secondary.border.color")};\n color: ${o("button.outlined.secondary.color")};\n}\n\n.p-button-outlined.p-button-success {\n border-color: ${o("button.outlined.success.border.color")};\n color: ${o("button.outlined.success.color")};\n}\n\n.p-button-outlined.p-button-success:not(:disabled):hover {\n background: ${o("button.outlined.success.hover.background")};\n border-color: ${o("button.outlined.success.border.color")};\n color: ${o("button.outlined.success.color")};\n}\n\n.p-button-outlined.p-button-success:not(:disabled):active {\n background: ${o("button.outlined.success.active.background")};\n border-color: ${o("button.outlined.success.border.color")};\n color: ${o("button.outlined.success.color")};\n}\n\n.p-button-outlined.p-button-info {\n border-color: ${o("button.outlined.info.border.color")};\n color: ${o("button.outlined.info.color")};\n}\n\n.p-button-outlined.p-button-info:not(:disabled):hover {\n background: ${o("button.outlined.info.hover.background")};\n border-color: ${o("button.outlined.info.border.color")};\n color: ${o("button.outlined.info.color")};\n}\n\n.p-button-outlined.p-button-info:not(:disabled):active {\n background: ${o("button.outlined.info.active.background")};\n border-color: ${o("button.outlined.info.border.color")};\n color: ${o("button.outlined.info.color")};\n}\n\n.p-button-outlined.p-button-warn {\n border-color: ${o("button.outlined.warn.border.color")};\n color: ${o("button.outlined.warn.color")};\n}\n\n.p-button-outlined.p-button-warn:not(:disabled):hover {\n background: ${o("button.outlined.warn.hover.background")};\n border-color: ${o("button.outlined.warn.border.color")};\n color: ${o("button.outlined.warn.color")};\n}\n\n.p-button-outlined.p-button-warn:not(:disabled):active {\n background: ${o("button.outlined.warn.active.background")};\n border-color: ${o("button.outlined.warn.border.color")};\n color: ${o("button.outlined.warn.color")};\n}\n\n.p-button-outlined.p-button-help {\n border-color: ${o("button.outlined.help.border.color")};\n color: ${o("button.outlined.help.color")};\n}\n\n.p-button-outlined.p-button-help:not(:disabled):hover {\n background: ${o("button.outlined.help.hover.background")};\n border-color: ${o("button.outlined.help.border.color")};\n color: ${o("button.outlined.help.color")};\n}\n\n.p-button-outlined.p-button-help:not(:disabled):active {\n background: ${o("button.outlined.help.active.background")};\n border-color: ${o("button.outlined.help.border.color")};\n color: ${o("button.outlined.help.color")};\n}\n\n.p-button-outlined.p-button-danger {\n border-color: ${o("button.outlined.danger.border.color")};\n color: ${o("button.outlined.danger.color")};\n}\n\n.p-button-outlined.p-button-danger:not(:disabled):hover {\n background: ${o("button.outlined.danger.hover.background")};\n border-color: ${o("button.outlined.danger.border.color")};\n color: ${o("button.outlined.danger.color")};\n}\n\n.p-button-outlined.p-button-danger:not(:disabled):active {\n background: ${o("button.outlined.danger.active.background")};\n border-color: ${o("button.outlined.danger.border.color")};\n color: ${o("button.outlined.danger.color")};\n}\n\n.p-button-outlined.p-button-contrast {\n border-color: ${o("button.outlined.contrast.border.color")};\n color: ${o("button.outlined.contrast.color")};\n}\n\n.p-button-outlined.p-button-contrast:not(:disabled):hover {\n background: ${o("button.outlined.contrast.hover.background")};\n border-color: ${o("button.outlined.contrast.border.color")};\n color: ${o("button.outlined.contrast.color")};\n}\n\n.p-button-outlined.p-button-contrast:not(:disabled):active {\n background: ${o("button.outlined.contrast.active.background")};\n border-color: ${o("button.outlined.contrast.border.color")};\n color: ${o("button.outlined.contrast.color")};\n}\n\n.p-button-outlined.p-button-plain {\n border-color: ${o("button.outlined.plain.border.color")};\n color: ${o("button.outlined.plain.color")};\n}\n\n.p-button-outlined.p-button-plain:not(:disabled):hover {\n background: ${o("button.outlined.plain.hover.background")};\n border-color: ${o("button.outlined.plain.border.color")};\n color: ${o("button.outlined.plain.color")};\n}\n\n.p-button-outlined.p-button-plain:not(:disabled):active {\n background: ${o("button.outlined.plain.active.background")};\n border-color: ${o("button.outlined.plain.border.color")};\n color: ${o("button.outlined.plain.color")};\n}\n\n.p-button-text {\n background: transparent;\n border-color: transparent;\n color: ${o("button.text.primary.color")};\n}\n\n.p-button-text:not(:disabled):hover {\n background: ${o("button.text.primary.hover.background")};\n border-color: transparent;\n color: ${o("button.text.primary.color")};\n}\n\n.p-button-text:not(:disabled):active {\n background: ${o("button.text.primary.active.background")};\n border-color: transparent;\n color: ${o("button.text.primary.color")};\n}\n\n.p-button-text.p-button-secondary {\n background: transparent;\n border-color: transparent;\n color: ${o("button.text.secondary.color")};\n}\n\n.p-button-text.p-button-secondary:not(:disabled):hover {\n background: ${o("button.text.secondary.hover.background")};\n border-color: transparent;\n color: ${o("button.text.secondary.color")};\n}\n\n.p-button-text.p-button-secondary:not(:disabled):active {\n background: ${o("button.text.secondary.active.background")};\n border-color: transparent;\n color: ${o("button.text.secondary.color")};\n}\n\n.p-button-text.p-button-success {\n background: transparent;\n border-color: transparent;\n color: ${o("button.text.success.color")};\n}\n\n.p-button-text.p-button-success:not(:disabled):hover {\n background: ${o("button.text.success.hover.background")};\n border-color: transparent;\n color: ${o("button.text.success.color")};\n}\n\n.p-button-text.p-button-success:not(:disabled):active {\n background: ${o("button.text.success.active.background")};\n border-color: transparent;\n color: ${o("button.text.success.color")};\n}\n\n.p-button-text.p-button-info {\n background: transparent;\n border-color: transparent;\n color: ${o("button.text.info.color")};\n}\n\n.p-button-text.p-button-info:not(:disabled):hover {\n background: ${o("button.text.info.hover.background")};\n border-color: transparent;\n color: ${o("button.text.info.color")};\n}\n\n.p-button-text.p-button-info:not(:disabled):active {\n background: ${o("button.text.info.active.background")};\n border-color: transparent;\n color: ${o("button.text.info.color")};\n}\n\n.p-button-text.p-button-warn {\n background: transparent;\n border-color: transparent;\n color: ${o("button.text.warn.color")};\n}\n\n.p-button-text.p-button-warn:not(:disabled):hover {\n background: ${o("button.text.warn.hover.background")};\n border-color: transparent;\n color: ${o("button.text.warn.color")};\n}\n\n.p-button-text.p-button-warn:not(:disabled):active {\n background: ${o("button.text.warn.active.background")};\n border-color: transparent;\n color: ${o("button.text.warn.color")};\n}\n\n.p-button-text.p-button-help {\n background: transparent;\n border-color: transparent;\n color: ${o("button.text.help.color")};\n}\n\n.p-button-text.p-button-help:not(:disabled):hover {\n background: ${o("button.text.help.hover.background")};\n border-color: transparent;\n color: ${o("button.text.help.color")};\n}\n\n.p-button-text.p-button-help:not(:disabled):active {\n background: ${o("button.text.help.active.background")};\n border-color: transparent;\n color: ${o("button.text.help.color")};\n}\n\n.p-button-text.p-button-danger {\n background: transparent;\n border-color: transparent;\n color: ${o("button.text.danger.color")};\n}\n\n.p-button-text.p-button-danger:not(:disabled):hover {\n background: ${o("button.text.danger.hover.background")};\n border-color: transparent;\n color: ${o("button.text.danger.color")};\n}\n\n.p-button-text.p-button-danger:not(:disabled):active {\n background: ${o("button.text.danger.active.background")};\n border-color: transparent;\n color: ${o("button.text.danger.color")};\n}\n\n.p-button-text.p-button-contrast {\n background: transparent;\n border-color: transparent;\n color: ${o("button.text.contrast.color")};\n}\n\n.p-button-text.p-button-contrast:not(:disabled):hover {\n background: ${o("button.text.contrast.hover.background")};\n border-color: transparent;\n color: ${o("button.text.contrast.color")};\n}\n\n.p-button-text.p-button-contrast:not(:disabled):active {\n background: ${o("button.text.contrast.active.background")};\n border-color: transparent;\n color: ${o("button.text.contrast.color")};\n}\n\n.p-button-text.p-button-plain {\n background: transparent;\n border-color: transparent;\n color: ${o("button.text.plain.color")};\n}\n\n.p-button-text.p-button-plain:not(:disabled):hover {\n background: ${o("button.text.plain.hover.background")};\n border-color: transparent;\n color: ${o("button.text.plain.color")};\n}\n\n.p-button-text.p-button-plain:not(:disabled):active {\n background: ${o("button.text.plain.active.background")};\n border-color: transparent;\n color: ${o("button.text.plain.color")};\n}\n\n.p-button-link {\n background: transparent;\n border-color: transparent;\n color: ${o("button.link.color")};\n}\n\n.p-button-link:not(:disabled):hover {\n background: transparent;\n border-color: transparent;\n color: ${o("button.link.hover.color")};\n}\n\n.p-button-link:not(:disabled):hover .p-button-label {\n text-decoration: underline;\n}\n\n.p-button-link:not(:disabled):active {\n background: transparent;\n border-color: transparent;\n color: ${o("button.link.active.color")};\n}\n`;/* Injected with object hook! */
|
|
5079
|
+
|
|
5080
|
+
function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
|
|
5081
|
+
function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
5082
|
+
function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
|
|
5083
|
+
function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5009
5084
|
var classes = {
|
|
5010
|
-
root: function root(
|
|
5011
|
-
var instance =
|
|
5012
|
-
props =
|
|
5013
|
-
return ['p-button p-component', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
5085
|
+
root: function root(_ref) {
|
|
5086
|
+
var instance = _ref.instance,
|
|
5087
|
+
props = _ref.props;
|
|
5088
|
+
return ['p-button p-component', _defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1({
|
|
5014
5089
|
'p-button-icon-only': instance.hasIcon && !props.label && !props.badge,
|
|
5015
5090
|
'p-button-vertical': (props.iconPos === 'top' || props.iconPos === 'bottom') && props.label,
|
|
5016
5091
|
'p-button-loading': props.loading,
|
|
@@ -5018,15 +5093,15 @@ var classes = {
|
|
|
5018
5093
|
}, "p-button-".concat(props.severity), props.severity), 'p-button-raised', props.raised), 'p-button-rounded', props.rounded), 'p-button-text', props.text || props.variant === 'text'), 'p-button-outlined', props.outlined || props.variant === 'outlined'), 'p-button-sm', props.size === 'small'), 'p-button-lg', props.size === 'large'), 'p-button-plain', props.plain), 'p-button-fluid', instance.hasFluid)];
|
|
5019
5094
|
},
|
|
5020
5095
|
loadingIcon: 'p-button-loading-icon',
|
|
5021
|
-
icon: function icon(
|
|
5022
|
-
var props =
|
|
5023
|
-
return ['p-button-icon', _defineProperty({}, "p-button-icon-".concat(props.iconPos), props.label)];
|
|
5096
|
+
icon: function icon(_ref3) {
|
|
5097
|
+
var props = _ref3.props;
|
|
5098
|
+
return ['p-button-icon', _defineProperty$1({}, "p-button-icon-".concat(props.iconPos), props.label)];
|
|
5024
5099
|
},
|
|
5025
5100
|
label: 'p-button-label'
|
|
5026
5101
|
};
|
|
5027
5102
|
var ButtonStyle = BaseStyle.extend({
|
|
5028
5103
|
name: 'button',
|
|
5029
|
-
|
|
5104
|
+
style: style,
|
|
5030
5105
|
classes: classes
|
|
5031
5106
|
});
|
|
5032
5107
|
|
|
@@ -5131,6 +5206,10 @@ var script$1 = {
|
|
|
5131
5206
|
}
|
|
5132
5207
|
};
|
|
5133
5208
|
|
|
5209
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
5210
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e; }
|
|
5211
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
5212
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5134
5213
|
var script = {
|
|
5135
5214
|
name: 'Button',
|
|
5136
5215
|
"extends": script$1,
|
|
@@ -5179,6 +5258,15 @@ var script = {
|
|
|
5179
5258
|
},
|
|
5180
5259
|
hasFluid: function hasFluid() {
|
|
5181
5260
|
return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;
|
|
5261
|
+
},
|
|
5262
|
+
dataP: function dataP() {
|
|
5263
|
+
return cn(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, this.size, this.size), 'icon-only', this.hasIcon && !this.label && !this.badge), "loading", this.loading), "fluid", this.hasFluid), "rounded", this.rounded), "raised", this.raised), "outlined", this.outlined || this.variant === 'outlined'), "text", this.text || this.variant === 'text'), "link", this.link || this.variant === 'link'), "vertical", (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label));
|
|
5264
|
+
},
|
|
5265
|
+
dataIconP: function dataIconP() {
|
|
5266
|
+
return cn(_defineProperty(_defineProperty({}, this.iconPos, this.iconPos), this.size, this.size));
|
|
5267
|
+
},
|
|
5268
|
+
dataLabelP: function dataLabelP() {
|
|
5269
|
+
return cn(_defineProperty(_defineProperty({}, this.size, this.size), 'icon-only', this.hasIcon && !this.label && !this.badge));
|
|
5182
5270
|
}
|
|
5183
5271
|
},
|
|
5184
5272
|
components: {
|
|
@@ -5190,13 +5278,16 @@ var script = {
|
|
|
5190
5278
|
}
|
|
5191
5279
|
};
|
|
5192
5280
|
|
|
5281
|
+
var _hoisted_1 = ["data-p"];
|
|
5282
|
+
var _hoisted_2 = ["data-p"];
|
|
5193
5283
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5194
5284
|
var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
|
|
5195
5285
|
var _component_Badge = resolveComponent("Badge");
|
|
5196
5286
|
var _directive_ripple = resolveDirective("ripple");
|
|
5197
5287
|
return !_ctx.asChild ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(_ctx.as), mergeProps({
|
|
5198
5288
|
key: 0,
|
|
5199
|
-
"class": _ctx.cx('root')
|
|
5289
|
+
"class": _ctx.cx('root'),
|
|
5290
|
+
"data-p": $options.dataP
|
|
5200
5291
|
}, $options.attrs), {
|
|
5201
5292
|
"default": withCtx(function () {
|
|
5202
5293
|
return [renderSlot(_ctx.$slots, "default", {}, function () {
|
|
@@ -5218,11 +5309,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5218
5309
|
}, _ctx.ptm('icon')), function () {
|
|
5219
5310
|
return [_ctx.icon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
5220
5311
|
key: 0,
|
|
5221
|
-
"class": [_ctx.cx('icon'), _ctx.icon, _ctx.iconClass]
|
|
5222
|
-
|
|
5312
|
+
"class": [_ctx.cx('icon'), _ctx.icon, _ctx.iconClass],
|
|
5313
|
+
"data-p": $options.dataIconP
|
|
5314
|
+
}, _ctx.ptm('icon')), null, 16, _hoisted_1)) : createCommentVNode("", true)];
|
|
5223
5315
|
}), createBaseVNode("span", mergeProps({
|
|
5224
5316
|
"class": _ctx.cx('label')
|
|
5225
|
-
}, _ctx.ptm('label')
|
|
5317
|
+
}, _ctx.ptm('label'), {
|
|
5318
|
+
"data-p": $options.dataLabelP
|
|
5319
|
+
}), toDisplayString(_ctx.label || ' '), 17, _hoisted_2), _ctx.badge ? (openBlock(), createBlock(_component_Badge, {
|
|
5226
5320
|
key: 2,
|
|
5227
5321
|
value: _ctx.badge,
|
|
5228
5322
|
"class": normalizeClass(_ctx.badgeClass),
|
|
@@ -5233,7 +5327,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5233
5327
|
})];
|
|
5234
5328
|
}),
|
|
5235
5329
|
_: 3
|
|
5236
|
-
}, 16, ["class"])), [[_directive_ripple]]) : renderSlot(_ctx.$slots, "default", {
|
|
5330
|
+
}, 16, ["class", "data-p"])), [[_directive_ripple]]) : renderSlot(_ctx.$slots, "default", {
|
|
5237
5331
|
key: 1,
|
|
5238
5332
|
"class": normalizeClass(_ctx.cx('root')),
|
|
5239
5333
|
a11yAttrs: $options.a11yAttrs
|
|
@@ -5245,456 +5339,264 @@ script.render = render;
|
|
|
5245
5339
|
|
|
5246
5340
|
/* Injected with object hook! */
|
|
5247
5341
|
|
|
5248
|
-
const
|
|
5249
|
-
|
|
5250
|
-
name: "splitpanes",
|
|
5251
|
-
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
5342
|
+
const Pe = {
|
|
5343
|
+
__name: "splitpanes",
|
|
5252
5344
|
props: {
|
|
5253
5345
|
horizontal: { type: Boolean },
|
|
5254
5346
|
pushOtherPanes: { type: Boolean, default: true },
|
|
5255
|
-
|
|
5347
|
+
maximizePanes: { type: Boolean, default: true },
|
|
5348
|
+
// Maximize pane on splitter double click/tap.
|
|
5256
5349
|
rtl: { type: Boolean, default: false },
|
|
5257
5350
|
// Right to left direction.
|
|
5258
5351
|
firstSplitter: { type: Boolean }
|
|
5259
5352
|
},
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5353
|
+
emits: [
|
|
5354
|
+
"ready",
|
|
5355
|
+
"resize",
|
|
5356
|
+
"resized",
|
|
5357
|
+
"pane-click",
|
|
5358
|
+
"pane-maximize",
|
|
5359
|
+
"pane-add",
|
|
5360
|
+
"pane-remove",
|
|
5361
|
+
"splitter-click",
|
|
5362
|
+
"splitter-dblclick"
|
|
5363
|
+
],
|
|
5364
|
+
setup(D, { emit: p }) {
|
|
5365
|
+
const _ = p, u = D, k = useSlots(), l = ref([]), M = computed(() => l.value.reduce((e, n) => (e[~~n.id] = n) && e, {})), m = computed(() => l.value.length), x = ref(null), S = ref(false), c = ref({
|
|
5273
5366
|
mouseDown: false,
|
|
5274
5367
|
dragging: false,
|
|
5275
|
-
activeSplitter: null
|
|
5276
|
-
|
|
5277
|
-
|
|
5368
|
+
activeSplitter: null,
|
|
5369
|
+
cursorOffset: 0
|
|
5370
|
+
// Cursor offset within the splitter.
|
|
5371
|
+
}), d = ref({
|
|
5278
5372
|
// Used to detect double click on touch devices.
|
|
5279
5373
|
splitter: null,
|
|
5280
5374
|
timeoutId: null
|
|
5281
|
-
}
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
},
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
})
|
|
5301
|
-
|
|
5302
|
-
bindEvents() {
|
|
5303
|
-
document.addEventListener("mousemove", this.onMouseMove, { passive: false }), document.addEventListener("mouseup", this.onMouseUp), "ontouchstart" in window && (document.addEventListener("touchmove", this.onMouseMove, { passive: false }), document.addEventListener("touchend", this.onMouseUp));
|
|
5304
|
-
},
|
|
5305
|
-
unbindEvents() {
|
|
5306
|
-
document.removeEventListener("mousemove", this.onMouseMove, { passive: false }), document.removeEventListener("mouseup", this.onMouseUp), "ontouchstart" in window && (document.removeEventListener("touchmove", this.onMouseMove, { passive: false }), document.removeEventListener("touchend", this.onMouseUp));
|
|
5307
|
-
},
|
|
5308
|
-
onMouseDown(e, i) {
|
|
5309
|
-
this.bindEvents(), this.touch.mouseDown = true, this.touch.activeSplitter = i;
|
|
5310
|
-
},
|
|
5311
|
-
onMouseMove(e) {
|
|
5312
|
-
this.touch.mouseDown && (e.preventDefault(), this.touch.dragging = true, this.calculatePanesSize(this.getCurrentMouseDrag(e)), this.$emit("resize", this.panes.map((i) => ({ min: i.min, max: i.max, size: i.size }))));
|
|
5313
|
-
},
|
|
5314
|
-
onMouseUp() {
|
|
5315
|
-
this.touch.dragging && this.$emit("resized", this.panes.map((e) => ({ min: e.min, max: e.max, size: e.size }))), this.touch.mouseDown = false, setTimeout(() => {
|
|
5316
|
-
this.touch.dragging = false, this.unbindEvents();
|
|
5375
|
+
}), y = computed(() => ({
|
|
5376
|
+
[`splitpanes splitpanes--${u.horizontal ? "horizontal" : "vertical"}`]: true,
|
|
5377
|
+
"splitpanes--dragging": c.value.dragging
|
|
5378
|
+
})), R = () => {
|
|
5379
|
+
document.addEventListener("mousemove", r, { passive: false }), document.addEventListener("mouseup", P), "ontouchstart" in window && (document.addEventListener("touchmove", r, { passive: false }), document.addEventListener("touchend", P));
|
|
5380
|
+
}, O = () => {
|
|
5381
|
+
document.removeEventListener("mousemove", r, { passive: false }), document.removeEventListener("mouseup", P), "ontouchstart" in window && (document.removeEventListener("touchmove", r, { passive: false }), document.removeEventListener("touchend", P));
|
|
5382
|
+
}, b = (e, n) => {
|
|
5383
|
+
const t = e.target.closest(".splitpanes__splitter");
|
|
5384
|
+
if (t) {
|
|
5385
|
+
const { left: i, top: s } = t.getBoundingClientRect(), { clientX: a, clientY: o } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
5386
|
+
c.value.cursorOffset = u.horizontal ? o - s : a - i;
|
|
5387
|
+
}
|
|
5388
|
+
R(), c.value.mouseDown = true, c.value.activeSplitter = n;
|
|
5389
|
+
}, r = (e) => {
|
|
5390
|
+
c.value.mouseDown && (e.preventDefault(), c.value.dragging = true, requestAnimationFrame(() => {
|
|
5391
|
+
K(I(e)), f("resize", { event: e }, true);
|
|
5392
|
+
}));
|
|
5393
|
+
}, P = (e) => {
|
|
5394
|
+
c.value.dragging && f("resized", { event: e }, true), c.value.mouseDown = false, c.value.activeSplitter = null, setTimeout(() => {
|
|
5395
|
+
c.value.dragging = false, O();
|
|
5317
5396
|
}, 100);
|
|
5318
|
-
},
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
// Get the cursor position relative to the splitpane container.
|
|
5334
|
-
getCurrentMouseDrag(e) {
|
|
5335
|
-
const i = this.container.getBoundingClientRect(), { clientX: s, clientY: n } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
5397
|
+
}, A = (e, n) => {
|
|
5398
|
+
"ontouchstart" in window && (e.preventDefault(), d.value.splitter === n ? (clearTimeout(d.value.timeoutId), d.value.timeoutId = null, U(e, n), d.value.splitter = null) : (d.value.splitter = n, d.value.timeoutId = setTimeout(() => d.value.splitter = null, 500))), c.value.dragging || f("splitter-click", { event: e, index: n }, true);
|
|
5399
|
+
}, U = (e, n) => {
|
|
5400
|
+
if (f("splitter-dblclick", { event: e, index: n }, true), u.maximizePanes) {
|
|
5401
|
+
let t = 0;
|
|
5402
|
+
l.value = l.value.map((i, s) => (i.size = s === n ? i.max : i.min, s !== n && (t += i.min), i)), l.value[n].size -= t, f("pane-maximize", { event: e, index: n, pane: l.value[n] }), f("resized", { event: e, index: n }, true);
|
|
5403
|
+
}
|
|
5404
|
+
}, W = (e, n) => {
|
|
5405
|
+
f("pane-click", {
|
|
5406
|
+
event: e,
|
|
5407
|
+
index: M.value[n].index,
|
|
5408
|
+
pane: M.value[n]
|
|
5409
|
+
});
|
|
5410
|
+
}, I = (e) => {
|
|
5411
|
+
const n = x.value.getBoundingClientRect(), { clientX: t, clientY: i } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
5336
5412
|
return {
|
|
5337
|
-
x:
|
|
5338
|
-
y:
|
|
5413
|
+
x: t - (u.horizontal ? 0 : c.value.cursorOffset) - n.left,
|
|
5414
|
+
y: i - (u.horizontal ? c.value.cursorOffset : 0) - n.top
|
|
5339
5415
|
};
|
|
5340
|
-
},
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
e = e
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
let s = {
|
|
5350
|
-
prevPanesSize: this.sumPrevPanesSize(i),
|
|
5351
|
-
nextPanesSize: this.sumNextPanesSize(i),
|
|
5416
|
+
}, J = (e) => {
|
|
5417
|
+
e = e[u.horizontal ? "y" : "x"];
|
|
5418
|
+
const n = x.value[u.horizontal ? "clientHeight" : "clientWidth"];
|
|
5419
|
+
return u.rtl && !u.horizontal && (e = n - e), e * 100 / n;
|
|
5420
|
+
}, K = (e) => {
|
|
5421
|
+
const n = c.value.activeSplitter;
|
|
5422
|
+
let t = {
|
|
5423
|
+
prevPanesSize: $(n),
|
|
5424
|
+
nextPanesSize: N(n),
|
|
5352
5425
|
prevReachedMinPanes: 0,
|
|
5353
5426
|
nextReachedMinPanes: 0
|
|
5354
5427
|
};
|
|
5355
|
-
const
|
|
5356
|
-
let
|
|
5357
|
-
const
|
|
5358
|
-
if (
|
|
5359
|
-
|
|
5428
|
+
const i = 0 + (u.pushOtherPanes ? 0 : t.prevPanesSize), s = 100 - (u.pushOtherPanes ? 0 : t.nextPanesSize), a = Math.max(Math.min(J(e), s), i);
|
|
5429
|
+
let o = [n, n + 1], v = l.value[o[0]] || null, z = l.value[o[1]] || null;
|
|
5430
|
+
const H = v.max < 100 && a >= v.max + t.prevPanesSize, ue = z.max < 100 && a <= 100 - (z.max + N(n + 1));
|
|
5431
|
+
if (H || ue) {
|
|
5432
|
+
H ? (v.size = v.max, z.size = Math.max(100 - v.max - t.prevPanesSize - t.nextPanesSize, 0)) : (v.size = Math.max(100 - z.max - t.prevPanesSize - N(n + 1), 0), z.size = z.max);
|
|
5360
5433
|
return;
|
|
5361
5434
|
}
|
|
5362
|
-
if (
|
|
5363
|
-
const
|
|
5364
|
-
if (!
|
|
5365
|
-
(({ sums:
|
|
5435
|
+
if (u.pushOtherPanes) {
|
|
5436
|
+
const j = Q(t, a);
|
|
5437
|
+
if (!j) return;
|
|
5438
|
+
(({ sums: t, panesToResize: o } = j)), v = l.value[o[0]] || null, z = l.value[o[1]] || null;
|
|
5366
5439
|
}
|
|
5367
|
-
|
|
5368
|
-
},
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
sumNextPanesSize(e) {
|
|
5385
|
-
return this.panes.reduce((i, s, n) => i + (n > e + 1 ? s.size : 0), 0);
|
|
5386
|
-
},
|
|
5387
|
-
// Return the previous pane from siblings which has a size (width for vert or height for horz) of more than 0.
|
|
5388
|
-
findPrevExpandedPane(e) {
|
|
5389
|
-
return [...this.panes].reverse().find((s) => s.index < e && s.size > s.min) || {};
|
|
5390
|
-
},
|
|
5391
|
-
// Return the next pane from siblings which has a size (width for vert or height for horz) of more than 0.
|
|
5392
|
-
findNextExpandedPane(e) {
|
|
5393
|
-
return this.panes.find((s) => s.index > e + 1 && s.size > s.min) || {};
|
|
5394
|
-
},
|
|
5395
|
-
checkSplitpanesNodes() {
|
|
5396
|
-
Array.from(this.container.children).forEach((i) => {
|
|
5397
|
-
const s = i.classList.contains("splitpanes__pane"), n = i.classList.contains("splitpanes__splitter");
|
|
5398
|
-
!s && !n && (i.parentNode.removeChild(i), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
|
|
5440
|
+
v !== null && (v.size = Math.min(Math.max(a - t.prevPanesSize - t.prevReachedMinPanes, v.min), v.max)), z !== null && (z.size = Math.min(Math.max(100 - a - t.nextPanesSize - t.nextReachedMinPanes, z.min), z.max));
|
|
5441
|
+
}, Q = (e, n) => {
|
|
5442
|
+
const t = c.value.activeSplitter, i = [t, t + 1];
|
|
5443
|
+
return n < e.prevPanesSize + l.value[i[0]].min && (i[0] = V(t).index, e.prevReachedMinPanes = 0, i[0] < t && l.value.forEach((s, a) => {
|
|
5444
|
+
a > i[0] && a <= t && (s.size = s.min, e.prevReachedMinPanes += s.min);
|
|
5445
|
+
}), e.prevPanesSize = $(i[0]), i[0] === void 0) ? (e.prevReachedMinPanes = 0, l.value[0].size = l.value[0].min, l.value.forEach((s, a) => {
|
|
5446
|
+
a > 0 && a <= t && (s.size = s.min, e.prevReachedMinPanes += s.min);
|
|
5447
|
+
}), l.value[i[1]].size = 100 - e.prevReachedMinPanes - l.value[0].min - e.prevPanesSize - e.nextPanesSize, null) : n > 100 - e.nextPanesSize - l.value[i[1]].min && (i[1] = Z(t).index, e.nextReachedMinPanes = 0, i[1] > t + 1 && l.value.forEach((s, a) => {
|
|
5448
|
+
a > t && a < i[1] && (s.size = s.min, e.nextReachedMinPanes += s.min);
|
|
5449
|
+
}), e.nextPanesSize = N(i[1] - 1), i[1] === void 0) ? (e.nextReachedMinPanes = 0, l.value.forEach((s, a) => {
|
|
5450
|
+
a < m.value - 1 && a >= t + 1 && (s.size = s.min, e.nextReachedMinPanes += s.min);
|
|
5451
|
+
}), l.value[i[0]].size = 100 - e.prevPanesSize - N(i[0] - 1), null) : { sums: e, panesToResize: i };
|
|
5452
|
+
}, $ = (e) => l.value.reduce((n, t, i) => n + (i < e ? t.size : 0), 0), N = (e) => l.value.reduce((n, t, i) => n + (i > e + 1 ? t.size : 0), 0), V = (e) => [...l.value].reverse().find((t) => t.index < e && t.size > t.min) || {}, Z = (e) => l.value.find((t) => t.index > e + 1 && t.size > t.min) || {}, ee = () => {
|
|
5453
|
+
var n;
|
|
5454
|
+
Array.from(((n = x.value) == null ? void 0 : n.children) || []).forEach((t) => {
|
|
5455
|
+
const i = t.classList.contains("splitpanes__pane"), s = t.classList.contains("splitpanes__splitter");
|
|
5456
|
+
!i && !s && (t.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
|
|
5399
5457
|
});
|
|
5400
|
-
},
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
e.forEach((s) => {
|
|
5411
|
-
s.className.includes("splitpanes__splitter") && this.removeSplitter(s);
|
|
5458
|
+
}, F = (e, n, t = false) => {
|
|
5459
|
+
const i = e - 1, s = document.createElement("div");
|
|
5460
|
+
s.classList.add("splitpanes__splitter"), t || (s.onmousedown = (a) => b(a, i), typeof window < "u" && "ontouchstart" in window && (s.ontouchstart = (a) => b(a, i)), s.onclick = (a) => A(a, i + 1)), s.ondblclick = (a) => U(a, i + 1), n.parentNode.insertBefore(s, n);
|
|
5461
|
+
}, ne = (e) => {
|
|
5462
|
+
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.remove();
|
|
5463
|
+
}, C = () => {
|
|
5464
|
+
var t;
|
|
5465
|
+
const e = Array.from(((t = x.value) == null ? void 0 : t.children) || []);
|
|
5466
|
+
e.forEach((i) => {
|
|
5467
|
+
i.className.includes("splitpanes__splitter") && ne(i);
|
|
5412
5468
|
});
|
|
5413
|
-
let
|
|
5414
|
-
e.forEach((
|
|
5415
|
-
|
|
5469
|
+
let n = 0;
|
|
5470
|
+
e.forEach((i) => {
|
|
5471
|
+
i.className.includes("splitpanes__pane") && (!n && u.firstSplitter ? F(n, i, true) : n && F(n, i), n++);
|
|
5416
5472
|
});
|
|
5417
|
-
},
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
Array.from(e.$el.parentNode.children).some((t) => (t.className.includes("splitpanes__pane") && i++, t === e.$el));
|
|
5426
|
-
const s = parseFloat(e.minSize), n = parseFloat(e.maxSize);
|
|
5427
|
-
this.panes.splice(i, 0, {
|
|
5428
|
-
id: e._.uid,
|
|
5429
|
-
index: i,
|
|
5430
|
-
min: isNaN(s) ? 0 : s,
|
|
5431
|
-
max: isNaN(n) ? 100 : n,
|
|
5432
|
-
size: e.size === null ? null : parseFloat(e.size),
|
|
5433
|
-
givenSize: e.size,
|
|
5434
|
-
update: e.update
|
|
5435
|
-
}), this.panes.forEach((t, a) => t.index = a), this.ready && this.$nextTick(() => {
|
|
5436
|
-
this.redoSplitters(), this.resetPaneSizes({ addedPane: this.panes[i] }), this.$emit("pane-add", { index: i, panes: this.panes.map((t) => ({ min: t.min, max: t.max, size: t.size })) });
|
|
5473
|
+
}, ie = ({ uid: e, ...n }) => {
|
|
5474
|
+
const t = M.value[e];
|
|
5475
|
+
Object.entries(n).forEach(([i, s]) => t[i] = s);
|
|
5476
|
+
}, te = (e) => {
|
|
5477
|
+
var t;
|
|
5478
|
+
let n = -1;
|
|
5479
|
+
Array.from(((t = x.value) == null ? void 0 : t.children) || []).some((i) => (i.className.includes("splitpanes__pane") && n++, i.isSameNode(e.el))), l.value.splice(n, 0, { ...e, index: n }), l.value.forEach((i, s) => i.index = s), S.value && nextTick(() => {
|
|
5480
|
+
C(), L({ addedPane: l.value[n] }), f("pane-add", { pane: l.value[n] });
|
|
5437
5481
|
});
|
|
5438
|
-
},
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5482
|
+
}, se = (e) => {
|
|
5483
|
+
const n = l.value.findIndex((i) => i.id === e);
|
|
5484
|
+
l.value[n].el = null;
|
|
5485
|
+
const t = l.value.splice(n, 1)[0];
|
|
5486
|
+
l.value.forEach((i, s) => i.index = s), nextTick(() => {
|
|
5487
|
+
C(), f("pane-remove", { pane: t }), L({ removedPane: { ...t } });
|
|
5443
5488
|
});
|
|
5444
|
-
},
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
equalize() {
|
|
5449
|
-
const e = 100 / this.panesCount;
|
|
5450
|
-
let i = 0;
|
|
5451
|
-
const s = [], n = [];
|
|
5452
|
-
this.panes.forEach((t) => {
|
|
5453
|
-
t.size = Math.max(Math.min(e, t.max), t.min), i -= t.size, t.size >= t.max && s.push(t.id), t.size <= t.min && n.push(t.id);
|
|
5454
|
-
}), i > 0.1 && this.readjustSizes(i, s, n);
|
|
5455
|
-
},
|
|
5456
|
-
initialPanesSizing() {
|
|
5457
|
-
let e = 100;
|
|
5458
|
-
const i = [], s = [];
|
|
5489
|
+
}, L = (e = {}) => {
|
|
5490
|
+
!e.addedPane && !e.removedPane ? le() : l.value.some((n) => n.givenSize !== null || n.min || n.max < 100) ? oe(e) : ae(), S.value && f("resized");
|
|
5491
|
+
}, ae = () => {
|
|
5492
|
+
const e = 100 / m.value;
|
|
5459
5493
|
let n = 0;
|
|
5460
|
-
|
|
5461
|
-
|
|
5494
|
+
const t = [], i = [];
|
|
5495
|
+
l.value.forEach((s) => {
|
|
5496
|
+
s.size = Math.max(Math.min(e, s.max), s.min), n -= s.size, s.size >= s.max && t.push(s.id), s.size <= s.min && i.push(s.id);
|
|
5497
|
+
}), n > 0.1 && q(n, t, i);
|
|
5498
|
+
}, le = () => {
|
|
5499
|
+
let e = 100;
|
|
5500
|
+
const n = [], t = [];
|
|
5501
|
+
let i = 0;
|
|
5502
|
+
l.value.forEach((a) => {
|
|
5503
|
+
e -= a.size, a.givenSize !== null && i++, a.size >= a.max && n.push(a.id), a.size <= a.min && t.push(a.id);
|
|
5462
5504
|
});
|
|
5463
|
-
let
|
|
5464
|
-
e > 0.1 && (
|
|
5465
|
-
a.
|
|
5466
|
-
}),
|
|
5467
|
-
},
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
// (next or prev) in 2.
|
|
5485
|
-
// if (addedPane && addedPane.size === null) {
|
|
5486
|
-
// if (addedPane.min) addedPane.size = addedPane.min
|
|
5487
|
-
// else {
|
|
5488
|
-
// const paneToDivide = this.panes[addedPane.index + 1] || this.panes[addedPane.index - 1]
|
|
5489
|
-
// if (paneToDivide) {
|
|
5490
|
-
// // @todo: Dividing that pane in 2 could be incorrect if becoming lower than its min size.
|
|
5491
|
-
// addedPane.size = paneToDivide.size / 2
|
|
5492
|
-
// paneToDivide.size /= 2
|
|
5493
|
-
// }
|
|
5494
|
-
// }
|
|
5495
|
-
// }
|
|
5496
|
-
|
|
5497
|
-
this.panes.forEach((pane, i) => {
|
|
5498
|
-
// Added pane - reduce the size of the next pane.
|
|
5499
|
-
if (addedPane && addedPane.index + 1 === i) {
|
|
5500
|
-
pane.size = Math.max(Math.min(100 - this.sumPrevPanesSize(i) - this.sumNextPanesSize(i + 1), pane.max), pane.min)
|
|
5501
|
-
// @todo: if could not allocate correctly, try to allocate in the next pane straight away,
|
|
5502
|
-
// then still do the second loop if not correct.
|
|
5503
|
-
}
|
|
5504
|
-
|
|
5505
|
-
// Removed pane - increase the size of the next pane.
|
|
5506
|
-
else if (removedPane && removedPane.index === i) {
|
|
5507
|
-
pane.size = Math.max(Math.min(100 - this.sumPrevPanesSize(i) - this.sumNextPanesSize(i + 1), pane.max), pane.min)
|
|
5508
|
-
// @todo: if could not allocate correctly, try to allocate in the next pane straight away,
|
|
5509
|
-
// then still do the second loop if not correct.
|
|
5510
|
-
}
|
|
5511
|
-
|
|
5512
|
-
// Initial load and on demand recalculation.
|
|
5513
|
-
else if (!addedPane && !removedPane && pane.size === null) {
|
|
5514
|
-
pane.size = Math.max(Math.min(equalSpaceToAllocate, pane.max), pane.min)
|
|
5515
|
-
}
|
|
5516
|
-
|
|
5517
|
-
leftToAllocate -= pane.size
|
|
5518
|
-
|
|
5519
|
-
if (pane.size >= pane.max) ungrowable.push(pane.id)
|
|
5520
|
-
if (pane.size <= pane.min) unshrinkable.push(pane.id)
|
|
5521
|
-
})
|
|
5522
|
-
|
|
5523
|
-
// Do one more loop to adjust sizes if still wrong.
|
|
5524
|
-
// > 0.1: Prevent maths rounding issues due to bytes.
|
|
5525
|
-
if (Math.abs(leftToAllocate) > 0.1) this.readjustSizes(leftToAllocate, ungrowable, unshrinkable)
|
|
5526
|
-
}, */
|
|
5527
|
-
// Second loop to adjust sizes now that we know more about the panes constraints.
|
|
5528
|
-
readjustSizes(e, i, s) {
|
|
5529
|
-
let n;
|
|
5530
|
-
e > 0 ? n = e / (this.panesCount - i.length) : n = e / (this.panesCount - s.length), this.panes.forEach((t, a) => {
|
|
5531
|
-
if (e > 0 && !i.includes(t.id)) {
|
|
5532
|
-
const r = Math.max(Math.min(t.size + n, t.max), t.min), o = r - t.size;
|
|
5533
|
-
e -= o, t.size = r;
|
|
5534
|
-
} else if (!s.includes(t.id)) {
|
|
5535
|
-
const r = Math.max(Math.min(t.size + n, t.max), t.min), o = r - t.size;
|
|
5536
|
-
e -= o, t.size = r;
|
|
5505
|
+
let s = 100;
|
|
5506
|
+
e > 0.1 && (l.value.forEach((a) => {
|
|
5507
|
+
a.givenSize === null && (a.size = Math.max(Math.min(e / (m.value - i), a.max), a.min)), s -= a.size;
|
|
5508
|
+
}), s > 0.1 && q(s, n, t));
|
|
5509
|
+
}, oe = ({ addedPane: e, removedPane: n } = {}) => {
|
|
5510
|
+
let t = 100 / m.value, i = 0;
|
|
5511
|
+
const s = [], a = [];
|
|
5512
|
+
((e == null ? void 0 : e.givenSize) ?? null) !== null && (t = (100 - e.givenSize) / (m.value - 1)), l.value.forEach((o) => {
|
|
5513
|
+
i -= o.size, o.size >= o.max && s.push(o.id), o.size <= o.min && a.push(o.id);
|
|
5514
|
+
}), !(Math.abs(i) < 0.1) && (l.value.forEach((o) => {
|
|
5515
|
+
(e == null ? void 0 : e.givenSize) !== null && (e == null ? void 0 : e.id) === o.id || (o.size = Math.max(Math.min(t, o.max), o.min)), i -= o.size, o.size >= o.max && s.push(o.id), o.size <= o.min && a.push(o.id);
|
|
5516
|
+
}), i > 0.1 && q(i, s, a));
|
|
5517
|
+
}, q = (e, n, t) => {
|
|
5518
|
+
let i;
|
|
5519
|
+
e > 0 ? i = e / (m.value - n.length) : i = e / (m.value - t.length), l.value.forEach((s, a) => {
|
|
5520
|
+
if (e > 0 && !n.includes(s.id)) {
|
|
5521
|
+
const o = Math.max(Math.min(s.size + i, s.max), s.min), v = o - s.size;
|
|
5522
|
+
e -= v, s.size = o;
|
|
5523
|
+
} else if (!t.includes(s.id)) {
|
|
5524
|
+
const o = Math.max(Math.min(s.size + i, s.max), s.min), v = o - s.size;
|
|
5525
|
+
e -= v, s.size = o;
|
|
5537
5526
|
}
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
});
|
|
5541
|
-
}), Math.abs(e) > 0.1 && this.$nextTick(() => {
|
|
5542
|
-
this.ready && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
5527
|
+
}), Math.abs(e) > 0.1 && nextTick(() => {
|
|
5528
|
+
S.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
5543
5529
|
});
|
|
5544
|
-
}
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
if (!pane.size) collapsedPanesCount++
|
|
5556
|
-
else growableAmount += pane.max - pane.size
|
|
5557
|
-
})
|
|
5558
|
-
|
|
5559
|
-
// If the blank space to distribute is too great for the expanded panes, also expand collapsed ones.
|
|
5560
|
-
let expandCollapsedPanes = growableAmount < spaceToDistribute
|
|
5561
|
-
|
|
5562
|
-
// New space to distribute equally.
|
|
5563
|
-
let growablePanesCount = (growablePanes.length - (expandCollapsedPanes ? 0 : collapsedPanesCount))
|
|
5564
|
-
let equalSpaceToDistribute = spaceToDistribute / growablePanesCount
|
|
5565
|
-
// if (growablePanesCount === 1) equalSpace = 100 / this.panesCount
|
|
5566
|
-
let spaceLeftToDistribute = spaceToDistribute
|
|
5567
|
-
|
|
5568
|
-
// Now add the equalSpaceToDistribute to each pane size accordingly.
|
|
5569
|
-
growablePanes.forEach(pane => {
|
|
5570
|
-
if (pane.size < pane.max && (pane.size || (!pane.size && expandCollapsedPanes))) {
|
|
5571
|
-
const newSize = Math.min(pane.size + equalSpaceToDistribute, pane.max)
|
|
5572
|
-
let allocatedSpace = (newSize - pane.size)
|
|
5573
|
-
spaceLeftToDistribute -= allocatedSpace
|
|
5574
|
-
pane.size = newSize
|
|
5575
|
-
// If the equalSpaceToDistribute is not fully added to the current pane, distribute the remainder
|
|
5576
|
-
// to the next panes.
|
|
5577
|
-
// Also fix decimal issue due to bites - E.g. calculating 8.33 and getting 8.3299999999999
|
|
5578
|
-
if (equalSpaceToDistribute - allocatedSpace > 0.1) equalSpaceToDistribute = spaceLeftToDistribute / (--growablePanesCount)
|
|
5579
|
-
}
|
|
5580
|
-
})
|
|
5581
|
-
|
|
5582
|
-
/* Disabled otherwise will show up on hot reload.
|
|
5583
|
-
// if there is still space to allocate show warning message.
|
|
5584
|
-
if (this.panesCount && ~~spaceLeftToDistribute) {
|
|
5585
|
-
// eslint-disable-next-line no-console
|
|
5586
|
-
console.warn('Splitpanes: Could not distribute all the empty space between panes due to their constraints.')
|
|
5587
|
-
} *\/
|
|
5588
|
-
|
|
5589
|
-
this.$emit('resized', this.panes.map(pane => ({ min: pane.min, max: pane.max, size: pane.size })))
|
|
5590
|
-
} */
|
|
5591
|
-
},
|
|
5592
|
-
watch: {
|
|
5593
|
-
panes: {
|
|
5594
|
-
// Every time a pane is updated, update the panes accordingly.
|
|
5595
|
-
deep: true,
|
|
5596
|
-
immediate: false,
|
|
5597
|
-
handler() {
|
|
5598
|
-
this.updatePaneComponents();
|
|
5599
|
-
}
|
|
5600
|
-
},
|
|
5601
|
-
horizontal() {
|
|
5602
|
-
this.updatePaneComponents();
|
|
5603
|
-
},
|
|
5604
|
-
firstSplitter() {
|
|
5605
|
-
this.redoSplitters();
|
|
5606
|
-
},
|
|
5607
|
-
dblClickSplitter(e) {
|
|
5608
|
-
[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((s, n) => {
|
|
5609
|
-
s.ondblclick = e ? (t) => this.onSplitterDblClick(t, n) : void 0;
|
|
5530
|
+
}, f = (e, n = void 0, t = false) => {
|
|
5531
|
+
const i = (n == null ? void 0 : n.index) ?? c.value.activeSplitter ?? null;
|
|
5532
|
+
_(e, {
|
|
5533
|
+
...n,
|
|
5534
|
+
...i !== null && { index: i },
|
|
5535
|
+
...t && i !== null && {
|
|
5536
|
+
prevPane: l.value[i - (u.firstSplitter ? 1 : 0)],
|
|
5537
|
+
nextPane: l.value[i + (u.firstSplitter ? 0 : 1)]
|
|
5538
|
+
},
|
|
5539
|
+
panes: l.value.map((s) => ({ min: s.min, max: s.max, size: s.size }))
|
|
5610
5540
|
});
|
|
5611
|
-
}
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
class: [
|
|
5625
|
-
"splitpanes",
|
|
5626
|
-
`splitpanes--${this.horizontal ? "horizontal" : "vertical"}`,
|
|
5627
|
-
{
|
|
5628
|
-
"splitpanes--dragging": this.touch.dragging
|
|
5629
|
-
}
|
|
5630
|
-
]
|
|
5631
|
-
},
|
|
5632
|
-
this.$slots.default()
|
|
5633
|
-
);
|
|
5541
|
+
};
|
|
5542
|
+
watch(() => u.firstSplitter, () => C()), onMounted(() => {
|
|
5543
|
+
ee(), C(), L(), f("ready"), S.value = true;
|
|
5544
|
+
}), onBeforeUnmount(() => S.value = false);
|
|
5545
|
+
const re = () => {
|
|
5546
|
+
var e;
|
|
5547
|
+
return h(
|
|
5548
|
+
"div",
|
|
5549
|
+
{ ref: x, class: y.value },
|
|
5550
|
+
(e = k.default) == null ? void 0 : e.call(k)
|
|
5551
|
+
);
|
|
5552
|
+
};
|
|
5553
|
+
return provide("panes", l), provide("indexedPanes", M), provide("horizontal", computed(() => u.horizontal)), provide("requestUpdate", ie), provide("onPaneAdd", te), provide("onPaneRemove", se), provide("onPaneClick", W), (e, n) => (openBlock(), createBlock(resolveDynamicComponent(re)));
|
|
5634
5554
|
}
|
|
5635
|
-
},
|
|
5636
|
-
|
|
5637
|
-
for (const [n, t] of i)
|
|
5638
|
-
s[n] = t;
|
|
5639
|
-
return s;
|
|
5640
|
-
}, x = {
|
|
5641
|
-
// eslint-disable-next-line vue/multi-word-component-names
|
|
5642
|
-
name: "pane",
|
|
5643
|
-
inject: ["requestUpdate", "onPaneAdd", "onPaneRemove", "onPaneClick"],
|
|
5555
|
+
}, ge = {
|
|
5556
|
+
__name: "pane",
|
|
5644
5557
|
props: {
|
|
5645
|
-
size: { type: [Number, String]
|
|
5558
|
+
size: { type: [Number, String] },
|
|
5646
5559
|
minSize: { type: [Number, String], default: 0 },
|
|
5647
5560
|
maxSize: { type: [Number, String], default: 100 }
|
|
5648
5561
|
},
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
},
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
}
|
|
5562
|
+
setup(D) {
|
|
5563
|
+
var b;
|
|
5564
|
+
const p = D, _ = inject("requestUpdate"), u = inject("onPaneAdd"), k = inject("horizontal"), l = inject("onPaneRemove"), M = inject("onPaneClick"), m = (b = getCurrentInstance()) == null ? void 0 : b.uid, x = inject("indexedPanes"), S = computed(() => x.value[m]), c = ref(null), d = computed(() => {
|
|
5565
|
+
const r = isNaN(p.size) || p.size === void 0 ? 0 : parseFloat(p.size);
|
|
5566
|
+
return Math.max(Math.min(r, R.value), y.value);
|
|
5567
|
+
}), y = computed(() => {
|
|
5568
|
+
const r = parseFloat(p.minSize);
|
|
5569
|
+
return isNaN(r) ? 0 : r;
|
|
5570
|
+
}), R = computed(() => {
|
|
5571
|
+
const r = parseFloat(p.maxSize);
|
|
5572
|
+
return isNaN(r) ? 100 : r;
|
|
5573
|
+
}), O = computed(() => {
|
|
5574
|
+
var r;
|
|
5575
|
+
return `${k.value ? "height" : "width"}: ${(r = S.value) == null ? void 0 : r.size}%`;
|
|
5576
|
+
});
|
|
5577
|
+
return watch(() => d.value, (r) => _({ uid: m, size: r })), watch(() => y.value, (r) => _({ uid: m, min: r })), watch(() => R.value, (r) => _({ uid: m, max: r })), onMounted(() => {
|
|
5578
|
+
u({
|
|
5579
|
+
id: m,
|
|
5580
|
+
el: c.value,
|
|
5581
|
+
min: y.value,
|
|
5582
|
+
max: R.value,
|
|
5583
|
+
// The given size (useful to know the user intention).
|
|
5584
|
+
givenSize: p.size === void 0 ? null : d.value,
|
|
5585
|
+
size: d.value
|
|
5586
|
+
// The computed current size at any time.
|
|
5587
|
+
});
|
|
5588
|
+
}), onBeforeUnmount(() => l(m)), (r, P) => (openBlock(), createElementBlock("div", {
|
|
5589
|
+
ref_key: "paneEl",
|
|
5590
|
+
ref: c,
|
|
5591
|
+
class: "splitpanes__pane",
|
|
5592
|
+
onClick: P[0] || (P[0] = (A) => unref(M)(A, r._.uid)),
|
|
5593
|
+
style: normalizeStyle(O.value)
|
|
5594
|
+
}, [
|
|
5595
|
+
renderSlot(r.$slots, "default")
|
|
5596
|
+
], 4));
|
|
5685
5597
|
}
|
|
5686
5598
|
};
|
|
5687
|
-
function P(e, i, s, n, t, a) {
|
|
5688
|
-
return openBlock(), createElementBlock("div", {
|
|
5689
|
-
class: "splitpanes__pane",
|
|
5690
|
-
onClick: i[0] || (i[0] = (r) => a.onPaneClick(r, e._.uid)),
|
|
5691
|
-
style: normalizeStyle(e.style)
|
|
5692
|
-
}, [
|
|
5693
|
-
renderSlot(e.$slots, "default")
|
|
5694
|
-
], 4);
|
|
5695
|
-
}
|
|
5696
|
-
const g = /* @__PURE__ */ S(x, [["render", P]]);
|
|
5697
5599
|
|
|
5698
5600
|
/* Injected with object hook! */
|
|
5699
5601
|
|
|
5700
|
-
export {
|
|
5602
|
+
export { Pe as P, Ripple as R, script$4 as a, script as b, cn as c, axios as d, ge as g, script$5 as s };
|