@valaxyjs/devtools 0.22.13 → 0.22.14
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-CgkSOjeY.js} +1 -1
- package/dist/client/assets/{categories-qSfQ0X1a.js → categories-BXROh8ng.js} +1 -1
- package/dist/client/assets/{index-CBcmQosO.css → index-CxI6E8SF.css} +1 -1
- package/dist/client/assets/{index-ChxUjQc_.js → index-DJcG2Wan.js} +3787 -9148
- package/dist/client/assets/{index-ES59byhe.js → index-rmI9AYWY.js} +212 -176
- package/dist/client/assets/{migration-BPggtrZx.js → migration-Di-eZP-L.js} +5 -5
- package/dist/client/assets/{splitpanes.es-oE07QrQG.js → splitpanes.es-C2INEjqc.js} +428 -582
- package/dist/client/assets/{tags-BQz02NM_.js → tags-D5c5WiJx.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +12 -12
|
@@ -1,9 +1,9 @@
|
|
|
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-DJcG2Wan.js';
|
|
2
2
|
|
|
3
3
|
// src/uuid/index.ts
|
|
4
4
|
var lastIds = {};
|
|
5
5
|
function uuid(prefix = "pui_id_") {
|
|
6
|
-
if (!
|
|
6
|
+
if (!Object.hasOwn(lastIds, prefix)) {
|
|
7
7
|
lastIds[prefix] = 0;
|
|
8
8
|
}
|
|
9
9
|
lastIds[prefix]++;
|
|
@@ -95,7 +95,7 @@ var BaseDirective = {
|
|
|
95
95
|
var _key = toFlatCase(key);
|
|
96
96
|
return (_computedValue$_key = computedValue === null || computedValue === void 0 ? void 0 : computedValue[_key]) !== null && _computedValue$_key !== void 0 ? _computedValue$_key : computedValue;
|
|
97
97
|
};
|
|
98
|
-
return pt
|
|
98
|
+
return pt && Object.hasOwn(pt, '_usept') ? {
|
|
99
99
|
_usept: pt['_usept'],
|
|
100
100
|
originalValue: getValue(pt.originalValue),
|
|
101
101
|
value: getValue(pt.value)
|
|
@@ -110,7 +110,7 @@ var BaseDirective = {
|
|
|
110
110
|
var fn = function fn(value) {
|
|
111
111
|
return callback(value, key, params);
|
|
112
112
|
};
|
|
113
|
-
if (pt
|
|
113
|
+
if (pt && Object.hasOwn(pt, '_usept')) {
|
|
114
114
|
var _instance$$primevueCo2;
|
|
115
115
|
var _ref4 = pt['_usept'] || ((_instance$$primevueCo2 = instance.$primevueConfig) === null || _instance$$primevueCo2 === void 0 ? void 0 : _instance$$primevueCo2.ptOptions) || {},
|
|
116
116
|
_ref4$mergeSections = _ref4.mergeSections,
|
|
@@ -132,18 +132,23 @@ var BaseDirective = {
|
|
|
132
132
|
var params = arguments.length > 4 ? arguments[4] : undefined;
|
|
133
133
|
return BaseDirective._usePT(instance, defaultPT, callback, key, params);
|
|
134
134
|
},
|
|
135
|
-
_loadStyles: function _loadStyles(
|
|
135
|
+
_loadStyles: function _loadStyles() {
|
|
136
136
|
var _config$csp;
|
|
137
|
+
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
138
|
+
var binding = arguments.length > 1 ? arguments[1] : undefined;
|
|
139
|
+
var vnode = arguments.length > 2 ? arguments[2] : undefined;
|
|
137
140
|
var config = BaseDirective._getConfig(binding, vnode);
|
|
138
141
|
var useStyleOptions = {
|
|
139
142
|
nonce: config === null || config === void 0 || (_config$csp = config.csp) === null || _config$csp === void 0 ? void 0 : _config$csp.nonce
|
|
140
143
|
};
|
|
141
|
-
BaseDirective._loadCoreStyles(
|
|
142
|
-
BaseDirective._loadThemeStyles(
|
|
143
|
-
BaseDirective._loadScopedThemeStyles(
|
|
144
|
-
BaseDirective.
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
BaseDirective._loadCoreStyles(instance, useStyleOptions);
|
|
145
|
+
BaseDirective._loadThemeStyles(instance, useStyleOptions);
|
|
146
|
+
BaseDirective._loadScopedThemeStyles(instance, useStyleOptions);
|
|
147
|
+
BaseDirective._removeThemeListeners(instance);
|
|
148
|
+
instance.$loadStyles = function () {
|
|
149
|
+
return BaseDirective._loadThemeStyles(instance, useStyleOptions);
|
|
150
|
+
};
|
|
151
|
+
BaseDirective._themeChangeListener(instance.$loadStyles);
|
|
147
152
|
},
|
|
148
153
|
_loadCoreStyles: function _loadCoreStyles() {
|
|
149
154
|
var _instance$$style, _instance$$style2;
|
|
@@ -179,7 +184,7 @@ var BaseDirective = {
|
|
|
179
184
|
BaseStyle.load(global === null || global === void 0 ? void 0 : global.css, _objectSpread$2({
|
|
180
185
|
name: 'global-variables'
|
|
181
186
|
}, useStyleOptions));
|
|
182
|
-
BaseStyle.
|
|
187
|
+
BaseStyle.loadStyle(_objectSpread$2({
|
|
183
188
|
name: 'global-style'
|
|
184
189
|
}, useStyleOptions), style);
|
|
185
190
|
config_default.setLoadedStyleName('common');
|
|
@@ -194,7 +199,7 @@ var BaseDirective = {
|
|
|
194
199
|
(_instance$$style8 = instance.$style) === null || _instance$$style8 === void 0 || _instance$$style8.load(css, _objectSpread$2({
|
|
195
200
|
name: "".concat(instance.$style.name, "-variables")
|
|
196
201
|
}, useStyleOptions));
|
|
197
|
-
(_instance$$style9 = instance.$style) === null || _instance$$style9 === void 0 || _instance$$style9.
|
|
202
|
+
(_instance$$style9 = instance.$style) === null || _instance$$style9 === void 0 || _instance$$style9.loadStyle(_objectSpread$2({
|
|
198
203
|
name: "".concat(instance.$style.name, "-style")
|
|
199
204
|
}, useStyleOptions), _style);
|
|
200
205
|
config_default.setLoadedStyleName(instance.$style.name);
|
|
@@ -230,6 +235,10 @@ var BaseDirective = {
|
|
|
230
235
|
Base.clearLoadedStyleNames();
|
|
231
236
|
service_default.on('theme:change', callback);
|
|
232
237
|
},
|
|
238
|
+
_removeThemeListeners: function _removeThemeListeners() {
|
|
239
|
+
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
240
|
+
service_default.off('theme:change', instance.$loadStyles);
|
|
241
|
+
},
|
|
233
242
|
_hook: function _hook(directiveName, hookName, el, binding, vnode, prevVnode) {
|
|
234
243
|
var _binding$value, _config$pt;
|
|
235
244
|
var name = "on".concat(toCapitalCase(hookName));
|
|
@@ -246,7 +255,7 @@ var BaseDirective = {
|
|
|
246
255
|
selfHook === null || selfHook === void 0 || selfHook(instance, options);
|
|
247
256
|
defaultHook === null || defaultHook === void 0 || defaultHook(instance, options);
|
|
248
257
|
},
|
|
249
|
-
_mergeProps: function _mergeProps() {
|
|
258
|
+
/* eslint-disable-next-line no-unused-vars */_mergeProps: function _mergeProps() {
|
|
250
259
|
var fn = arguments.length > 1 ? arguments[1] : undefined;
|
|
251
260
|
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key2 = 2; _key2 < _len; _key2++) {
|
|
252
261
|
args[_key2 - 2] = arguments[_key2];
|
|
@@ -256,7 +265,7 @@ var BaseDirective = {
|
|
|
256
265
|
_extend: function _extend(name) {
|
|
257
266
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
258
267
|
var handleHook = function handleHook(hook, el, binding, vnode, prevVnode) {
|
|
259
|
-
var _el$$pd, _el$$instance$hook, _el$$
|
|
268
|
+
var _el$$pd, _el$$instance$hook, _el$$instance, _el$$pd2;
|
|
260
269
|
el._$instances = el._$instances || {};
|
|
261
270
|
var config = BaseDirective._getConfig(binding, vnode);
|
|
262
271
|
var $prevInstance = el._$instances[name] || {};
|
|
@@ -274,7 +283,7 @@ var BaseDirective = {
|
|
|
274
283
|
inlineStyles: undefined,
|
|
275
284
|
load: function load() {},
|
|
276
285
|
loadCSS: function loadCSS() {},
|
|
277
|
-
|
|
286
|
+
loadStyle: function loadStyle() {}
|
|
278
287
|
}, options === null || options === void 0 ? void 0 : options.style),
|
|
279
288
|
$primevueConfig: config,
|
|
280
289
|
$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 +295,90 @@ var BaseDirective = {
|
|
|
286
295
|
});
|
|
287
296
|
},
|
|
288
297
|
isUnstyled: function isUnstyled() {
|
|
289
|
-
var _el
|
|
290
|
-
return ((_el
|
|
298
|
+
var _el$_$instances$name, _el$_$instances$name2;
|
|
299
|
+
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
300
|
},
|
|
292
301
|
theme: function theme() {
|
|
293
|
-
var _el
|
|
294
|
-
return (_el
|
|
302
|
+
var _el$_$instances$name3;
|
|
303
|
+
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
304
|
},
|
|
296
305
|
preset: function preset() {
|
|
297
|
-
var _el
|
|
298
|
-
return (_el
|
|
306
|
+
var _el$_$instances$name4;
|
|
307
|
+
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
308
|
},
|
|
300
309
|
/* instance's methods */
|
|
301
310
|
ptm: function ptm() {
|
|
302
|
-
var _el
|
|
311
|
+
var _el$_$instances$name5;
|
|
303
312
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
304
313
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
305
|
-
return BaseDirective._getPTValue(el
|
|
314
|
+
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
315
|
},
|
|
307
316
|
ptmo: function ptmo() {
|
|
308
317
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
309
318
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
310
319
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
311
|
-
return BaseDirective._getPTValue(el
|
|
320
|
+
return BaseDirective._getPTValue(el._$instances[name], obj, key, params, false);
|
|
312
321
|
},
|
|
313
322
|
cx: function cx() {
|
|
314
|
-
var _el
|
|
323
|
+
var _el$_$instances$name6, _el$_$instances$name7;
|
|
315
324
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
316
325
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
317
|
-
return !((_el
|
|
326
|
+
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
327
|
},
|
|
319
328
|
sx: function sx() {
|
|
320
|
-
var _el
|
|
329
|
+
var _el$_$instances$name8;
|
|
321
330
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
322
331
|
var when = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
323
332
|
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
324
|
-
return when ? BaseDirective._getOptionValue((_el
|
|
333
|
+
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
334
|
}
|
|
326
335
|
}, $options);
|
|
327
336
|
el.$instance = el._$instances[name]; // pass instance data to hooks
|
|
328
|
-
(_el$$instance$hook = (_el$$
|
|
337
|
+
(_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
338
|
el["$".concat(name)] = el.$instance; // expose all options with $<directive_name>
|
|
330
339
|
BaseDirective._hook(name, hook, el, binding, vnode, prevVnode); // handle hooks during directive uses (global and self-definition)
|
|
331
340
|
|
|
332
341
|
el.$pd || (el.$pd = {});
|
|
333
342
|
el.$pd[name] = _objectSpread$2(_objectSpread$2({}, (_el$$pd2 = el.$pd) === null || _el$$pd2 === void 0 ? void 0 : _el$$pd2[name]), {}, {
|
|
334
343
|
name: name,
|
|
335
|
-
instance: el
|
|
344
|
+
instance: el._$instances[name]
|
|
336
345
|
});
|
|
337
346
|
};
|
|
338
|
-
var
|
|
339
|
-
var
|
|
340
|
-
var
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
PrimeVueService.on('config:change', function (_ref8) {
|
|
345
|
-
var _watchers$config2;
|
|
347
|
+
var handleWatchers = function handleWatchers(el) {
|
|
348
|
+
var _watchers$config2, _watchers$configRipp2, _instance$$primevueCo3;
|
|
349
|
+
var instance = el._$instances[name];
|
|
350
|
+
var watchers = instance === null || instance === void 0 ? void 0 : instance.watch;
|
|
351
|
+
var handleWatchConfig = function handleWatchConfig(_ref8) {
|
|
352
|
+
var _watchers$config;
|
|
346
353
|
var newValue = _ref8.newValue,
|
|
347
354
|
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;
|
|
355
|
+
return watchers === null || watchers === void 0 || (_watchers$config = watchers['config']) === null || _watchers$config === void 0 ? void 0 : _watchers$config.call(instance, newValue, oldValue);
|
|
356
|
+
};
|
|
357
|
+
var handleWatchConfigRipple = function handleWatchConfigRipple(_ref9) {
|
|
358
|
+
var _watchers$configRipp;
|
|
355
359
|
var newValue = _ref9.newValue,
|
|
356
360
|
oldValue = _ref9.oldValue;
|
|
357
|
-
return watchers === null || watchers === void 0 || (_watchers$
|
|
358
|
-
}
|
|
361
|
+
return watchers === null || watchers === void 0 || (_watchers$configRipp = watchers['config.ripple']) === null || _watchers$configRipp === void 0 ? void 0 : _watchers$configRipp.call(instance, newValue, oldValue);
|
|
362
|
+
};
|
|
363
|
+
instance.$watchersCallback = {
|
|
364
|
+
config: handleWatchConfig,
|
|
365
|
+
'config.ripple': handleWatchConfigRipple
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
// for 'config'
|
|
369
|
+
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);
|
|
370
|
+
PrimeVueService.on('config:change', handleWatchConfig);
|
|
371
|
+
|
|
372
|
+
// for 'config.ripple'
|
|
373
|
+
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);
|
|
374
|
+
PrimeVueService.on('config:ripple:change', handleWatchConfigRipple);
|
|
375
|
+
};
|
|
376
|
+
var stopWatchers = function stopWatchers(el) {
|
|
377
|
+
var watchers = el._$instances[name].$watchersCallback;
|
|
378
|
+
if (watchers) {
|
|
379
|
+
PrimeVueService.off('config:change', watchers.config);
|
|
380
|
+
PrimeVueService.off('config:ripple:change', watchers['config.ripple']);
|
|
381
|
+
}
|
|
359
382
|
};
|
|
360
383
|
return {
|
|
361
384
|
created: function created(el, binding, vnode, prevVnode) {
|
|
@@ -367,27 +390,33 @@ var BaseDirective = {
|
|
|
367
390
|
handleHook('created', el, binding, vnode, prevVnode);
|
|
368
391
|
},
|
|
369
392
|
beforeMount: function beforeMount(el, binding, vnode, prevVnode) {
|
|
370
|
-
|
|
393
|
+
var _el$$pd$name;
|
|
394
|
+
BaseDirective._loadStyles((_el$$pd$name = el.$pd[name]) === null || _el$$pd$name === void 0 ? void 0 : _el$$pd$name.instance, binding, vnode);
|
|
371
395
|
handleHook('beforeMount', el, binding, vnode, prevVnode);
|
|
372
|
-
|
|
396
|
+
handleWatchers(el);
|
|
373
397
|
},
|
|
374
398
|
mounted: function mounted(el, binding, vnode, prevVnode) {
|
|
375
|
-
|
|
399
|
+
var _el$$pd$name2;
|
|
400
|
+
BaseDirective._loadStyles((_el$$pd$name2 = el.$pd[name]) === null || _el$$pd$name2 === void 0 ? void 0 : _el$$pd$name2.instance, binding, vnode);
|
|
376
401
|
handleHook('mounted', el, binding, vnode, prevVnode);
|
|
377
402
|
},
|
|
378
403
|
beforeUpdate: function beforeUpdate(el, binding, vnode, prevVnode) {
|
|
379
404
|
handleHook('beforeUpdate', el, binding, vnode, prevVnode);
|
|
380
405
|
},
|
|
381
406
|
updated: function updated(el, binding, vnode, prevVnode) {
|
|
382
|
-
|
|
407
|
+
var _el$$pd$name3;
|
|
408
|
+
BaseDirective._loadStyles((_el$$pd$name3 = el.$pd[name]) === null || _el$$pd$name3 === void 0 ? void 0 : _el$$pd$name3.instance, binding, vnode);
|
|
383
409
|
handleHook('updated', el, binding, vnode, prevVnode);
|
|
384
410
|
},
|
|
385
411
|
beforeUnmount: function beforeUnmount(el, binding, vnode, prevVnode) {
|
|
412
|
+
var _el$$pd$name4;
|
|
413
|
+
stopWatchers(el);
|
|
414
|
+
BaseDirective._removeThemeListeners((_el$$pd$name4 = el.$pd[name]) === null || _el$$pd$name4 === void 0 ? void 0 : _el$$pd$name4.instance);
|
|
386
415
|
handleHook('beforeUnmount', el, binding, vnode, prevVnode);
|
|
387
416
|
},
|
|
388
417
|
unmounted: function unmounted(el, binding, vnode, prevVnode) {
|
|
389
|
-
var _el$$
|
|
390
|
-
(_el$$
|
|
418
|
+
var _el$$pd$name5;
|
|
419
|
+
(_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
420
|
handleHook('unmounted', el, binding, vnode, prevVnode);
|
|
392
421
|
}
|
|
393
422
|
};
|
|
@@ -412,16 +441,14 @@ var BaseDirective = {
|
|
|
412
441
|
|
|
413
442
|
/* Injected with object hook! */
|
|
414
443
|
|
|
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
|
-
};
|
|
444
|
+
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! */
|
|
445
|
+
|
|
419
446
|
var classes$2 = {
|
|
420
447
|
root: 'p-ink'
|
|
421
448
|
};
|
|
422
449
|
var RippleStyle = BaseStyle.extend({
|
|
423
450
|
name: 'ripple-directive',
|
|
424
|
-
|
|
451
|
+
style: style$2,
|
|
425
452
|
classes: classes$2
|
|
426
453
|
});
|
|
427
454
|
|
|
@@ -469,16 +496,19 @@ var Ripple = BaseRipple.extend('ripple', {
|
|
|
469
496
|
el.removeEventListener('mousedown', this.onMouseDown.bind(this));
|
|
470
497
|
},
|
|
471
498
|
createRipple: function createRipple(el) {
|
|
472
|
-
var ink =
|
|
473
|
-
|
|
474
|
-
'
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
499
|
+
var ink = this.getInk(el);
|
|
500
|
+
if (!ink) {
|
|
501
|
+
ink = createElement('span', _defineProperty$3(_defineProperty$3({
|
|
502
|
+
role: 'presentation',
|
|
503
|
+
'aria-hidden': true,
|
|
504
|
+
'data-p-ink': true,
|
|
505
|
+
'data-p-ink-active': false,
|
|
506
|
+
"class": !this.isUnstyled() && this.cx('root'),
|
|
507
|
+
onAnimationEnd: this.onAnimationEnd.bind(this)
|
|
508
|
+
}, this.$attrSelector, ''), 'p-bind', this.ptm('root')));
|
|
509
|
+
el.appendChild(ink);
|
|
510
|
+
this.$el = ink;
|
|
511
|
+
}
|
|
482
512
|
},
|
|
483
513
|
remove: function remove(el) {
|
|
484
514
|
var ink = this.getInk(el);
|
|
@@ -534,6 +564,15 @@ var Ripple = BaseRipple.extend('ripple', {
|
|
|
534
564
|
});
|
|
535
565
|
|
|
536
566
|
|
|
567
|
+
/* Injected with object hook! */
|
|
568
|
+
|
|
569
|
+
function useAttrSelector() {
|
|
570
|
+
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pc';
|
|
571
|
+
var idx = useId();
|
|
572
|
+
return "".concat(prefix).concat(idx.replace('v-', '').replaceAll('-', '_'));
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
|
|
537
576
|
/* Injected with object hook! */
|
|
538
577
|
|
|
539
578
|
var BaseComponentStyle = BaseStyle.extend({
|
|
@@ -583,6 +622,7 @@ var script$5 = {
|
|
|
583
622
|
isUnstyled: {
|
|
584
623
|
immediate: true,
|
|
585
624
|
handler: function handler(newValue) {
|
|
625
|
+
service_default.off('theme:change', this._loadCoreStyles);
|
|
586
626
|
if (!newValue) {
|
|
587
627
|
this._loadCoreStyles();
|
|
588
628
|
this._themeChangeListener(this._loadCoreStyles); // update styles with theme settings
|
|
@@ -591,13 +631,15 @@ var script$5 = {
|
|
|
591
631
|
},
|
|
592
632
|
dt: {
|
|
593
633
|
immediate: true,
|
|
594
|
-
handler: function handler(newValue) {
|
|
634
|
+
handler: function handler(newValue, oldValue) {
|
|
595
635
|
var _this = this;
|
|
636
|
+
service_default.off('theme:change', this._themeScopedListener);
|
|
596
637
|
if (newValue) {
|
|
597
638
|
this._loadScopedThemeStyles(newValue);
|
|
598
|
-
this.
|
|
639
|
+
this._themeScopedListener = function () {
|
|
599
640
|
return _this._loadScopedThemeStyles(newValue);
|
|
600
|
-
}
|
|
641
|
+
};
|
|
642
|
+
this._themeChangeListener(this._themeScopedListener);
|
|
601
643
|
} else {
|
|
602
644
|
this._unloadScopedThemeStyles();
|
|
603
645
|
}
|
|
@@ -606,6 +648,7 @@ var script$5 = {
|
|
|
606
648
|
},
|
|
607
649
|
scopedStyleEl: undefined,
|
|
608
650
|
rootEl: undefined,
|
|
651
|
+
uid: undefined,
|
|
609
652
|
$attrSelector: undefined,
|
|
610
653
|
beforeCreate: function beforeCreate() {
|
|
611
654
|
var _this$pt, _this$pt2, _this$pt3, _ref, _ref$onBeforeCreate, _this$$primevueConfig, _this$$primevue, _this$$primevue2, _this$$primevue3, _ref2, _ref2$onBeforeCreate;
|
|
@@ -617,16 +660,17 @@ var script$5 = {
|
|
|
617
660
|
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
661
|
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
662
|
(_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 =
|
|
663
|
+
this.$attrSelector = useAttrSelector();
|
|
664
|
+
this.uid = this.$attrs.id || this.$attrSelector.replace('pc', 'pv_id_');
|
|
621
665
|
},
|
|
622
666
|
created: function created() {
|
|
623
667
|
this._hook('onCreated');
|
|
624
668
|
},
|
|
625
669
|
beforeMount: function beforeMount() {
|
|
626
|
-
|
|
627
|
-
|
|
670
|
+
var _this$$el;
|
|
671
|
+
// @deprecated - remove in v5
|
|
672
|
+
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
673
|
if (this.rootEl) {
|
|
629
|
-
this.$attrSelector && !this.rootEl.hasAttribute(this.$attrSelector) && this.rootEl.setAttribute(this.$attrSelector, '');
|
|
630
674
|
this.rootEl.$pc = _objectSpread$1({
|
|
631
675
|
name: this.$.type.name,
|
|
632
676
|
attrSelector: this.$attrSelector
|
|
@@ -648,6 +692,7 @@ var script$5 = {
|
|
|
648
692
|
this._hook('onBeforeUnmount');
|
|
649
693
|
},
|
|
650
694
|
unmounted: function unmounted() {
|
|
695
|
+
this._removeThemeListeners();
|
|
651
696
|
this._unloadScopedThemeStyles();
|
|
652
697
|
this._hook('onUnmounted');
|
|
653
698
|
},
|
|
@@ -666,19 +711,18 @@ var script$5 = {
|
|
|
666
711
|
}
|
|
667
712
|
return isFunction$1(fn) ? fn.apply(void 0, args) : mergeProps.apply(void 0, args);
|
|
668
713
|
},
|
|
714
|
+
_load: function _load() {
|
|
715
|
+
// @todo
|
|
716
|
+
if (!Base.isStyleNameLoaded('base')) {
|
|
717
|
+
BaseStyle.loadCSS(this.$styleOptions);
|
|
718
|
+
this._loadGlobalStyles();
|
|
719
|
+
Base.setLoadedStyleName('base');
|
|
720
|
+
}
|
|
721
|
+
this._loadThemeStyles();
|
|
722
|
+
},
|
|
669
723
|
_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);
|
|
724
|
+
this._load();
|
|
725
|
+
this._themeChangeListener(this._load);
|
|
682
726
|
},
|
|
683
727
|
_loadCoreStyles: function _loadCoreStyles() {
|
|
684
728
|
var _this$$style, _this$$style2;
|
|
@@ -725,7 +769,7 @@ var script$5 = {
|
|
|
725
769
|
BaseStyle.load(global === null || global === void 0 ? void 0 : global.css, _objectSpread$1({
|
|
726
770
|
name: 'global-variables'
|
|
727
771
|
}, this.$styleOptions));
|
|
728
|
-
BaseStyle.
|
|
772
|
+
BaseStyle.loadStyle(_objectSpread$1({
|
|
729
773
|
name: 'global-style'
|
|
730
774
|
}, this.$styleOptions), style);
|
|
731
775
|
config_default.setLoadedStyleName('common');
|
|
@@ -740,7 +784,7 @@ var script$5 = {
|
|
|
740
784
|
(_this$$style7 = this.$style) === null || _this$$style7 === void 0 || _this$$style7.load(css, _objectSpread$1({
|
|
741
785
|
name: "".concat(this.$style.name, "-variables")
|
|
742
786
|
}, this.$styleOptions));
|
|
743
|
-
(_this$$style8 = this.$style) === null || _this$$style8 === void 0 || _this$$style8.
|
|
787
|
+
(_this$$style8 = this.$style) === null || _this$$style8 === void 0 || _this$$style8.loadStyle(_objectSpread$1({
|
|
744
788
|
name: "".concat(this.$style.name, "-style")
|
|
745
789
|
}, this.$styleOptions), _style);
|
|
746
790
|
config_default.setLoadedStyleName(this.$style.name);
|
|
@@ -775,6 +819,11 @@ var script$5 = {
|
|
|
775
819
|
Base.clearLoadedStyleNames();
|
|
776
820
|
service_default.on('theme:change', callback);
|
|
777
821
|
},
|
|
822
|
+
_removeThemeListeners: function _removeThemeListeners() {
|
|
823
|
+
service_default.off('theme:change', this._loadCoreStyles);
|
|
824
|
+
service_default.off('theme:change', this._load);
|
|
825
|
+
service_default.off('theme:change', this._themeScopedListener);
|
|
826
|
+
},
|
|
778
827
|
_getHostInstance: function _getHostInstance(instance) {
|
|
779
828
|
return instance ? this.$options.hostName ? instance.$.type.name === this.$options.hostName ? instance : this._getHostInstance(instance.$parentInstance) : instance.$parentInstance : undefined;
|
|
780
829
|
},
|
|
@@ -821,7 +870,7 @@ var script$5 = {
|
|
|
821
870
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
822
871
|
var datasetPrefix = 'data-pc-';
|
|
823
872
|
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$2({}, "".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$2({}, "".concat(datasetPrefix, "extend"), toFlatCase(this.$.type.name))),
|
|
873
|
+
return key !== 'transition' && _objectSpread$1(_objectSpread$1({}, key === 'root' && _objectSpread$1(_objectSpread$1(_defineProperty$2({}, "".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$2({}, "".concat(datasetPrefix, "extend"), toFlatCase(this.$.type.name))), {}, _defineProperty$2({}, "".concat(this.$attrSelector), ''))), {}, _defineProperty$2({}, "".concat(datasetPrefix, "section"), toFlatCase(key)));
|
|
825
874
|
},
|
|
826
875
|
_getPTClassValue: function _getPTClassValue() {
|
|
827
876
|
var value = this._getOptionValue.apply(this, arguments);
|
|
@@ -830,16 +879,16 @@ var script$5 = {
|
|
|
830
879
|
} : value;
|
|
831
880
|
},
|
|
832
881
|
_getPT: function _getPT(pt) {
|
|
833
|
-
var
|
|
882
|
+
var _this2 = this;
|
|
834
883
|
var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
835
884
|
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
836
885
|
var getValue = function getValue(value) {
|
|
837
|
-
var
|
|
886
|
+
var _ref8;
|
|
838
887
|
var checkSameKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
839
888
|
var computedValue = callback ? callback(value) : value;
|
|
840
889
|
var _key = toFlatCase(key);
|
|
841
|
-
var _cKey = toFlatCase(
|
|
842
|
-
return (
|
|
890
|
+
var _cKey = toFlatCase(_this2.$name);
|
|
891
|
+
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
892
|
};
|
|
844
893
|
return pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept') ? {
|
|
845
894
|
_usept: pt['_usept'],
|
|
@@ -853,11 +902,11 @@ var script$5 = {
|
|
|
853
902
|
};
|
|
854
903
|
if (pt !== null && pt !== void 0 && pt.hasOwnProperty('_usept')) {
|
|
855
904
|
var _this$$primevueConfig3;
|
|
856
|
-
var
|
|
857
|
-
|
|
858
|
-
mergeSections =
|
|
859
|
-
|
|
860
|
-
useMergeProps =
|
|
905
|
+
var _ref9 = pt['_usept'] || ((_this$$primevueConfig3 = this.$primevueConfig) === null || _this$$primevueConfig3 === void 0 ? void 0 : _this$$primevueConfig3.ptOptions) || {},
|
|
906
|
+
_ref9$mergeSections = _ref9.mergeSections,
|
|
907
|
+
mergeSections = _ref9$mergeSections === void 0 ? true : _ref9$mergeSections,
|
|
908
|
+
_ref9$mergeProps = _ref9.mergeProps,
|
|
909
|
+
useMergeProps = _ref9$mergeProps === void 0 ? false : _ref9$mergeProps;
|
|
861
910
|
var originalValue = fn(pt.originalValue);
|
|
862
911
|
var value = fn(pt.value);
|
|
863
912
|
if (originalValue === undefined && value === undefined) return undefined;else if (isString$1(value)) return value;else if (isString$1(originalValue)) return originalValue;
|
|
@@ -877,10 +926,13 @@ var script$5 = {
|
|
|
877
926
|
return this._getPTValue(this.pt, key, _objectSpread$1(_objectSpread$1({}, this.$params), params));
|
|
878
927
|
},
|
|
879
928
|
ptmi: function ptmi() {
|
|
929
|
+
var _attrs$id;
|
|
880
930
|
var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
881
931
|
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
882
932
|
// inheritAttrs:true
|
|
883
|
-
|
|
933
|
+
var attrs = mergeProps(this.$_attrsWithoutPT, this.ptm(key, params));
|
|
934
|
+
(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);
|
|
935
|
+
return attrs;
|
|
884
936
|
},
|
|
885
937
|
ptmo: function ptmo() {
|
|
886
938
|
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -910,30 +962,33 @@ var script$5 = {
|
|
|
910
962
|
computed: {
|
|
911
963
|
globalPT: function globalPT() {
|
|
912
964
|
var _this$$primevueConfig4,
|
|
913
|
-
|
|
965
|
+
_this3 = this;
|
|
914
966
|
return this._getPT((_this$$primevueConfig4 = this.$primevueConfig) === null || _this$$primevueConfig4 === void 0 ? void 0 : _this$$primevueConfig4.pt, undefined, function (value) {
|
|
915
967
|
return resolve(value, {
|
|
916
|
-
instance:
|
|
968
|
+
instance: _this3
|
|
917
969
|
});
|
|
918
970
|
});
|
|
919
971
|
},
|
|
920
972
|
defaultPT: function defaultPT() {
|
|
921
973
|
var _this$$primevueConfig5,
|
|
922
|
-
|
|
974
|
+
_this4 = this;
|
|
923
975
|
return this._getPT((_this$$primevueConfig5 = this.$primevueConfig) === null || _this$$primevueConfig5 === void 0 ? void 0 : _this$$primevueConfig5.pt, undefined, function (value) {
|
|
924
|
-
return
|
|
976
|
+
return _this4._getOptionValue(value, _this4.$name, _objectSpread$1({}, _this4.$params)) || resolve(value, _objectSpread$1({}, _this4.$params));
|
|
925
977
|
});
|
|
926
978
|
},
|
|
927
979
|
isUnstyled: function isUnstyled() {
|
|
928
980
|
var _this$$primevueConfig6;
|
|
929
981
|
return this.unstyled !== undefined ? this.unstyled : (_this$$primevueConfig6 = this.$primevueConfig) === null || _this$$primevueConfig6 === void 0 ? void 0 : _this$$primevueConfig6.unstyled;
|
|
930
982
|
},
|
|
983
|
+
$id: function $id() {
|
|
984
|
+
return this.$attrs.id || this.uid;
|
|
985
|
+
},
|
|
931
986
|
$inProps: function $inProps() {
|
|
932
987
|
var _this$$$vnode;
|
|
933
988
|
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 =
|
|
989
|
+
return Object.fromEntries(Object.entries(this.$props).filter(function (_ref10) {
|
|
990
|
+
var _ref11 = _slicedToArray(_ref10, 1),
|
|
991
|
+
k = _ref11[0];
|
|
937
992
|
return nodePropKeys === null || nodePropKeys === void 0 ? void 0 : nodePropKeys.includes(k);
|
|
938
993
|
}));
|
|
939
994
|
},
|
|
@@ -947,7 +1002,7 @@ var script$5 = {
|
|
|
947
1002
|
inlineStyles: undefined,
|
|
948
1003
|
load: function load() {},
|
|
949
1004
|
loadCSS: function loadCSS() {},
|
|
950
|
-
|
|
1005
|
+
loadStyle: function loadStyle() {}
|
|
951
1006
|
}, (this._getHostInstance(this) || {}).$style), this.$options.style);
|
|
952
1007
|
},
|
|
953
1008
|
$styleOptions: function $styleOptions() {
|
|
@@ -979,14 +1034,14 @@ var script$5 = {
|
|
|
979
1034
|
};
|
|
980
1035
|
},
|
|
981
1036
|
$_attrsPT: function $_attrsPT() {
|
|
982
|
-
return Object.entries(this.$attrs || {}).filter(function (
|
|
983
|
-
var
|
|
984
|
-
key =
|
|
1037
|
+
return Object.entries(this.$attrs || {}).filter(function (_ref12) {
|
|
1038
|
+
var _ref13 = _slicedToArray(_ref12, 1),
|
|
1039
|
+
key = _ref13[0];
|
|
985
1040
|
return key === null || key === void 0 ? void 0 : key.startsWith('pt:');
|
|
986
|
-
}).reduce(function (result,
|
|
987
|
-
var
|
|
988
|
-
key =
|
|
989
|
-
value =
|
|
1041
|
+
}).reduce(function (result, _ref14) {
|
|
1042
|
+
var _ref15 = _slicedToArray(_ref14, 2),
|
|
1043
|
+
key = _ref15[0],
|
|
1044
|
+
value = _ref15[1];
|
|
990
1045
|
var _key$split = key.split(':'),
|
|
991
1046
|
_key$split2 = _toArray(_key$split),
|
|
992
1047
|
rest = _key$split2.slice(1);
|
|
@@ -998,14 +1053,14 @@ var script$5 = {
|
|
|
998
1053
|
}, {});
|
|
999
1054
|
},
|
|
1000
1055
|
$_attrsWithoutPT: function $_attrsWithoutPT() {
|
|
1001
|
-
return Object.entries(this.$attrs || {}).filter(function (
|
|
1002
|
-
var
|
|
1003
|
-
key =
|
|
1056
|
+
return Object.entries(this.$attrs || {}).filter(function (_ref16) {
|
|
1057
|
+
var _ref17 = _slicedToArray(_ref16, 1),
|
|
1058
|
+
key = _ref17[0];
|
|
1004
1059
|
return !(key !== null && key !== void 0 && key.startsWith('pt:'));
|
|
1005
|
-
}).reduce(function (acc,
|
|
1006
|
-
var
|
|
1007
|
-
key =
|
|
1008
|
-
value =
|
|
1060
|
+
}).reduce(function (acc, _ref18) {
|
|
1061
|
+
var _ref19 = _slicedToArray(_ref18, 2),
|
|
1062
|
+
key = _ref19[0],
|
|
1063
|
+
value = _ref19[1];
|
|
1009
1064
|
acc[key] = value;
|
|
1010
1065
|
return acc;
|
|
1011
1066
|
}, {});
|
|
@@ -1624,26 +1679,6 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
1624
1679
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
1625
1680
|
};
|
|
1626
1681
|
|
|
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
1682
|
/**
|
|
1648
1683
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
1649
1684
|
*
|
|
@@ -1771,8 +1806,6 @@ const utils$1 = {
|
|
|
1771
1806
|
findKey,
|
|
1772
1807
|
global: _global,
|
|
1773
1808
|
isContextDefined,
|
|
1774
|
-
ALPHABET,
|
|
1775
|
-
generateString,
|
|
1776
1809
|
isSpecCompliantForm,
|
|
1777
1810
|
toJSONObject,
|
|
1778
1811
|
isAsyncFn,
|
|
@@ -3322,8 +3355,9 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
3322
3355
|
*
|
|
3323
3356
|
* @returns {string} The combined full path
|
|
3324
3357
|
*/
|
|
3325
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
3326
|
-
|
|
3358
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
3359
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
3360
|
+
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
3327
3361
|
return combineURLs(baseURL, requestedURL);
|
|
3328
3362
|
}
|
|
3329
3363
|
return requestedURL;
|
|
@@ -4182,7 +4216,7 @@ function dispatchRequest(config) {
|
|
|
4182
4216
|
|
|
4183
4217
|
/* Injected with object hook! */
|
|
4184
4218
|
|
|
4185
|
-
const VERSION$1 = "1.
|
|
4219
|
+
const VERSION$1 = "1.8.2";
|
|
4186
4220
|
/* Injected with object hook! */
|
|
4187
4221
|
|
|
4188
4222
|
const validators$1 = {};
|
|
@@ -4370,6 +4404,13 @@ let Axios$1 = class Axios {
|
|
|
4370
4404
|
}
|
|
4371
4405
|
}
|
|
4372
4406
|
|
|
4407
|
+
// Set config.allowAbsoluteUrls
|
|
4408
|
+
if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
|
|
4409
|
+
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
4410
|
+
} else {
|
|
4411
|
+
config.allowAbsoluteUrls = true;
|
|
4412
|
+
}
|
|
4413
|
+
|
|
4373
4414
|
validator.assertOptions(config, {
|
|
4374
4415
|
baseUrl: validators.spelling('baseURL'),
|
|
4375
4416
|
withXsrfToken: validators.spelling('withXSRFToken')
|
|
@@ -4465,7 +4506,7 @@ let Axios$1 = class Axios {
|
|
|
4465
4506
|
|
|
4466
4507
|
getUri(config) {
|
|
4467
4508
|
config = mergeConfig$1(this.defaults, config);
|
|
4468
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
4509
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
4469
4510
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
4470
4511
|
}
|
|
4471
4512
|
};
|
|
@@ -4921,14 +4962,12 @@ script$3.render = render$2;
|
|
|
4921
4962
|
|
|
4922
4963
|
/* Injected with object hook! */
|
|
4923
4964
|
|
|
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
|
-
};
|
|
4965
|
+
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! */
|
|
4966
|
+
|
|
4928
4967
|
var classes$1 = {
|
|
4929
|
-
root: function root(
|
|
4930
|
-
var props =
|
|
4931
|
-
instance =
|
|
4968
|
+
root: function root(_ref) {
|
|
4969
|
+
var props = _ref.props,
|
|
4970
|
+
instance = _ref.instance;
|
|
4932
4971
|
return ['p-badge p-component', {
|
|
4933
4972
|
'p-badge-circle': isNotEmpty(props.value) && String(props.value).length === 1,
|
|
4934
4973
|
'p-badge-dot': isEmpty(props.value) && !instance.$slots["default"],
|
|
@@ -4946,7 +4985,7 @@ var classes$1 = {
|
|
|
4946
4985
|
};
|
|
4947
4986
|
var BadgeStyle = BaseStyle.extend({
|
|
4948
4987
|
name: 'badge',
|
|
4949
|
-
|
|
4988
|
+
style: style$1,
|
|
4950
4989
|
classes: classes$1
|
|
4951
4990
|
});
|
|
4952
4991
|
|
|
@@ -4998,18 +5037,16 @@ script$2.render = render$1;
|
|
|
4998
5037
|
|
|
4999
5038
|
/* Injected with object hook! */
|
|
5000
5039
|
|
|
5040
|
+
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! */
|
|
5041
|
+
|
|
5001
5042
|
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
5043
|
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; }
|
|
5003
5044
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
5004
5045
|
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); }
|
|
5005
|
-
var theme = function theme(_ref) {
|
|
5006
|
-
var dt = _ref.dt;
|
|
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
|
-
};
|
|
5009
5046
|
var classes = {
|
|
5010
|
-
root: function root(
|
|
5011
|
-
var instance =
|
|
5012
|
-
props =
|
|
5047
|
+
root: function root(_ref) {
|
|
5048
|
+
var instance = _ref.instance,
|
|
5049
|
+
props = _ref.props;
|
|
5013
5050
|
return ['p-button p-component', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
5014
5051
|
'p-button-icon-only': instance.hasIcon && !props.label && !props.badge,
|
|
5015
5052
|
'p-button-vertical': (props.iconPos === 'top' || props.iconPos === 'bottom') && props.label,
|
|
@@ -5018,15 +5055,15 @@ var classes = {
|
|
|
5018
5055
|
}, "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
5056
|
},
|
|
5020
5057
|
loadingIcon: 'p-button-loading-icon',
|
|
5021
|
-
icon: function icon(
|
|
5022
|
-
var props =
|
|
5058
|
+
icon: function icon(_ref3) {
|
|
5059
|
+
var props = _ref3.props;
|
|
5023
5060
|
return ['p-button-icon', _defineProperty({}, "p-button-icon-".concat(props.iconPos), props.label)];
|
|
5024
5061
|
},
|
|
5025
5062
|
label: 'p-button-label'
|
|
5026
5063
|
};
|
|
5027
5064
|
var ButtonStyle = BaseStyle.extend({
|
|
5028
5065
|
name: 'button',
|
|
5029
|
-
|
|
5066
|
+
style: style,
|
|
5030
5067
|
classes: classes
|
|
5031
5068
|
});
|
|
5032
5069
|
|
|
@@ -5220,10 +5257,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5220
5257
|
key: 0,
|
|
5221
5258
|
"class": [_ctx.cx('icon'), _ctx.icon, _ctx.iconClass]
|
|
5222
5259
|
}, _ctx.ptm('icon')), null, 16)) : createCommentVNode("", true)];
|
|
5223
|
-
}),
|
|
5224
|
-
"class": _ctx.cx('label')
|
|
5225
|
-
}, _ctx.ptm('label')), toDisplayString(_ctx.label || ' '), 17), _ctx.badge ? (openBlock(), createBlock(_component_Badge, {
|
|
5260
|
+
}), !$options.hasIcon || !!_ctx.label ? (openBlock(), createElementBlock("span", mergeProps({
|
|
5226
5261
|
key: 2,
|
|
5262
|
+
"class": _ctx.cx('label')
|
|
5263
|
+
}, _ctx.ptm('label')), toDisplayString(_ctx.label || ' '), 17)) : createCommentVNode("", true), _ctx.badge ? (openBlock(), createBlock(_component_Badge, {
|
|
5264
|
+
key: 3,
|
|
5227
5265
|
value: _ctx.badge,
|
|
5228
5266
|
"class": normalizeClass(_ctx.badgeClass),
|
|
5229
5267
|
severity: _ctx.badgeSeverity,
|
|
@@ -5245,456 +5283,264 @@ script.render = render;
|
|
|
5245
5283
|
|
|
5246
5284
|
/* Injected with object hook! */
|
|
5247
5285
|
|
|
5248
|
-
const
|
|
5249
|
-
|
|
5250
|
-
name: "splitpanes",
|
|
5251
|
-
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
5286
|
+
const Pe = {
|
|
5287
|
+
__name: "splitpanes",
|
|
5252
5288
|
props: {
|
|
5253
5289
|
horizontal: { type: Boolean },
|
|
5254
5290
|
pushOtherPanes: { type: Boolean, default: true },
|
|
5255
|
-
|
|
5291
|
+
maximizePanes: { type: Boolean, default: true },
|
|
5292
|
+
// Maximize pane on splitter double click/tap.
|
|
5256
5293
|
rtl: { type: Boolean, default: false },
|
|
5257
5294
|
// Right to left direction.
|
|
5258
5295
|
firstSplitter: { type: Boolean }
|
|
5259
5296
|
},
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5297
|
+
emits: [
|
|
5298
|
+
"ready",
|
|
5299
|
+
"resize",
|
|
5300
|
+
"resized",
|
|
5301
|
+
"pane-click",
|
|
5302
|
+
"pane-maximize",
|
|
5303
|
+
"pane-add",
|
|
5304
|
+
"pane-remove",
|
|
5305
|
+
"splitter-click",
|
|
5306
|
+
"splitter-dblclick"
|
|
5307
|
+
],
|
|
5308
|
+
setup(D, { emit: p }) {
|
|
5309
|
+
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
5310
|
mouseDown: false,
|
|
5274
5311
|
dragging: false,
|
|
5275
|
-
activeSplitter: null
|
|
5276
|
-
|
|
5277
|
-
|
|
5312
|
+
activeSplitter: null,
|
|
5313
|
+
cursorOffset: 0
|
|
5314
|
+
// Cursor offset within the splitter.
|
|
5315
|
+
}), d = ref({
|
|
5278
5316
|
// Used to detect double click on touch devices.
|
|
5279
5317
|
splitter: null,
|
|
5280
5318
|
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();
|
|
5319
|
+
}), y = computed(() => ({
|
|
5320
|
+
[`splitpanes splitpanes--${u.horizontal ? "horizontal" : "vertical"}`]: true,
|
|
5321
|
+
"splitpanes--dragging": c.value.dragging
|
|
5322
|
+
})), R = () => {
|
|
5323
|
+
document.addEventListener("mousemove", r, { passive: false }), document.addEventListener("mouseup", P), "ontouchstart" in window && (document.addEventListener("touchmove", r, { passive: false }), document.addEventListener("touchend", P));
|
|
5324
|
+
}, O = () => {
|
|
5325
|
+
document.removeEventListener("mousemove", r, { passive: false }), document.removeEventListener("mouseup", P), "ontouchstart" in window && (document.removeEventListener("touchmove", r, { passive: false }), document.removeEventListener("touchend", P));
|
|
5326
|
+
}, b = (e, n) => {
|
|
5327
|
+
const t = e.target.closest(".splitpanes__splitter");
|
|
5328
|
+
if (t) {
|
|
5329
|
+
const { left: i, top: s } = t.getBoundingClientRect(), { clientX: a, clientY: o } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
5330
|
+
c.value.cursorOffset = u.horizontal ? o - s : a - i;
|
|
5331
|
+
}
|
|
5332
|
+
R(), c.value.mouseDown = true, c.value.activeSplitter = n;
|
|
5333
|
+
}, r = (e) => {
|
|
5334
|
+
c.value.mouseDown && (e.preventDefault(), c.value.dragging = true, requestAnimationFrame(() => {
|
|
5335
|
+
K(I(e)), f("resize", { event: e }, true);
|
|
5336
|
+
}));
|
|
5337
|
+
}, P = (e) => {
|
|
5338
|
+
c.value.dragging && f("resized", { event: e }, true), c.value.mouseDown = false, c.value.activeSplitter = null, setTimeout(() => {
|
|
5339
|
+
c.value.dragging = false, O();
|
|
5317
5340
|
}, 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;
|
|
5341
|
+
}, A = (e, n) => {
|
|
5342
|
+
"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);
|
|
5343
|
+
}, U = (e, n) => {
|
|
5344
|
+
if (f("splitter-dblclick", { event: e, index: n }, true), u.maximizePanes) {
|
|
5345
|
+
let t = 0;
|
|
5346
|
+
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);
|
|
5347
|
+
}
|
|
5348
|
+
}, W = (e, n) => {
|
|
5349
|
+
f("pane-click", {
|
|
5350
|
+
event: e,
|
|
5351
|
+
index: M.value[n].index,
|
|
5352
|
+
pane: M.value[n]
|
|
5353
|
+
});
|
|
5354
|
+
}, I = (e) => {
|
|
5355
|
+
const n = x.value.getBoundingClientRect(), { clientX: t, clientY: i } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
5336
5356
|
return {
|
|
5337
|
-
x:
|
|
5338
|
-
y:
|
|
5357
|
+
x: t - (u.horizontal ? 0 : c.value.cursorOffset) - n.left,
|
|
5358
|
+
y: i - (u.horizontal ? c.value.cursorOffset : 0) - n.top
|
|
5339
5359
|
};
|
|
5340
|
-
},
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
e = e
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
let s = {
|
|
5350
|
-
prevPanesSize: this.sumPrevPanesSize(i),
|
|
5351
|
-
nextPanesSize: this.sumNextPanesSize(i),
|
|
5360
|
+
}, J = (e) => {
|
|
5361
|
+
e = e[u.horizontal ? "y" : "x"];
|
|
5362
|
+
const n = x.value[u.horizontal ? "clientHeight" : "clientWidth"];
|
|
5363
|
+
return u.rtl && !u.horizontal && (e = n - e), e * 100 / n;
|
|
5364
|
+
}, K = (e) => {
|
|
5365
|
+
const n = c.value.activeSplitter;
|
|
5366
|
+
let t = {
|
|
5367
|
+
prevPanesSize: $(n),
|
|
5368
|
+
nextPanesSize: N(n),
|
|
5352
5369
|
prevReachedMinPanes: 0,
|
|
5353
5370
|
nextReachedMinPanes: 0
|
|
5354
5371
|
};
|
|
5355
|
-
const
|
|
5356
|
-
let
|
|
5357
|
-
const
|
|
5358
|
-
if (
|
|
5359
|
-
|
|
5372
|
+
const i = 0 + (u.pushOtherPanes ? 0 : t.prevPanesSize), s = 100 - (u.pushOtherPanes ? 0 : t.nextPanesSize), a = Math.max(Math.min(J(e), s), i);
|
|
5373
|
+
let o = [n, n + 1], v = l.value[o[0]] || null, z = l.value[o[1]] || null;
|
|
5374
|
+
const H = v.max < 100 && a >= v.max + t.prevPanesSize, ue = z.max < 100 && a <= 100 - (z.max + N(n + 1));
|
|
5375
|
+
if (H || ue) {
|
|
5376
|
+
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
5377
|
return;
|
|
5361
5378
|
}
|
|
5362
|
-
if (
|
|
5363
|
-
const
|
|
5364
|
-
if (!
|
|
5365
|
-
(({ sums:
|
|
5379
|
+
if (u.pushOtherPanes) {
|
|
5380
|
+
const j = Q(t, a);
|
|
5381
|
+
if (!j) return;
|
|
5382
|
+
(({ sums: t, panesToResize: o } = j)), v = l.value[o[0]] || null, z = l.value[o[1]] || null;
|
|
5366
5383
|
}
|
|
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."));
|
|
5384
|
+
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));
|
|
5385
|
+
}, Q = (e, n) => {
|
|
5386
|
+
const t = c.value.activeSplitter, i = [t, t + 1];
|
|
5387
|
+
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) => {
|
|
5388
|
+
a > i[0] && a <= t && (s.size = s.min, e.prevReachedMinPanes += s.min);
|
|
5389
|
+
}), e.prevPanesSize = $(i[0]), i[0] === void 0) ? (e.prevReachedMinPanes = 0, l.value[0].size = l.value[0].min, l.value.forEach((s, a) => {
|
|
5390
|
+
a > 0 && a <= t && (s.size = s.min, e.prevReachedMinPanes += s.min);
|
|
5391
|
+
}), 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) => {
|
|
5392
|
+
a > t && a < i[1] && (s.size = s.min, e.nextReachedMinPanes += s.min);
|
|
5393
|
+
}), e.nextPanesSize = N(i[1] - 1), i[1] === void 0) ? (e.nextReachedMinPanes = 0, l.value.forEach((s, a) => {
|
|
5394
|
+
a < m.value - 1 && a >= t + 1 && (s.size = s.min, e.nextReachedMinPanes += s.min);
|
|
5395
|
+
}), l.value[i[0]].size = 100 - e.prevPanesSize - N(i[0] - 1), null) : { sums: e, panesToResize: i };
|
|
5396
|
+
}, $ = (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 = () => {
|
|
5397
|
+
var n;
|
|
5398
|
+
Array.from(((n = x.value) == null ? void 0 : n.children) || []).forEach((t) => {
|
|
5399
|
+
const i = t.classList.contains("splitpanes__pane"), s = t.classList.contains("splitpanes__splitter");
|
|
5400
|
+
!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
5401
|
});
|
|
5400
|
-
},
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
e.forEach((s) => {
|
|
5411
|
-
s.className.includes("splitpanes__splitter") && this.removeSplitter(s);
|
|
5402
|
+
}, F = (e, n, t = false) => {
|
|
5403
|
+
const i = e - 1, s = document.createElement("div");
|
|
5404
|
+
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);
|
|
5405
|
+
}, ne = (e) => {
|
|
5406
|
+
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.remove();
|
|
5407
|
+
}, C = () => {
|
|
5408
|
+
var t;
|
|
5409
|
+
const e = Array.from(((t = x.value) == null ? void 0 : t.children) || []);
|
|
5410
|
+
e.forEach((i) => {
|
|
5411
|
+
i.className.includes("splitpanes__splitter") && ne(i);
|
|
5412
5412
|
});
|
|
5413
|
-
let
|
|
5414
|
-
e.forEach((
|
|
5415
|
-
|
|
5413
|
+
let n = 0;
|
|
5414
|
+
e.forEach((i) => {
|
|
5415
|
+
i.className.includes("splitpanes__pane") && (!n && u.firstSplitter ? F(n, i, true) : n && F(n, i), n++);
|
|
5416
5416
|
});
|
|
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 })) });
|
|
5417
|
+
}, ie = ({ uid: e, ...n }) => {
|
|
5418
|
+
const t = M.value[e];
|
|
5419
|
+
Object.entries(n).forEach(([i, s]) => t[i] = s);
|
|
5420
|
+
}, te = (e) => {
|
|
5421
|
+
var t;
|
|
5422
|
+
let n = -1;
|
|
5423
|
+
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(() => {
|
|
5424
|
+
C(), L({ addedPane: l.value[n] }), f("pane-add", { pane: l.value[n] });
|
|
5437
5425
|
});
|
|
5438
|
-
},
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5426
|
+
}, se = (e) => {
|
|
5427
|
+
const n = l.value.findIndex((i) => i.id === e);
|
|
5428
|
+
l.value[n].el = null;
|
|
5429
|
+
const t = l.value.splice(n, 1)[0];
|
|
5430
|
+
l.value.forEach((i, s) => i.index = s), nextTick(() => {
|
|
5431
|
+
C(), f("pane-remove", { pane: t }), L({ removedPane: { ...t } });
|
|
5443
5432
|
});
|
|
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 = [];
|
|
5433
|
+
}, L = (e = {}) => {
|
|
5434
|
+
!e.addedPane && !e.removedPane ? le() : l.value.some((n) => n.givenSize !== null || n.min || n.max < 100) ? oe(e) : ae(), S.value && f("resized");
|
|
5435
|
+
}, ae = () => {
|
|
5436
|
+
const e = 100 / m.value;
|
|
5459
5437
|
let n = 0;
|
|
5460
|
-
|
|
5461
|
-
|
|
5438
|
+
const t = [], i = [];
|
|
5439
|
+
l.value.forEach((s) => {
|
|
5440
|
+
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);
|
|
5441
|
+
}), n > 0.1 && q(n, t, i);
|
|
5442
|
+
}, le = () => {
|
|
5443
|
+
let e = 100;
|
|
5444
|
+
const n = [], t = [];
|
|
5445
|
+
let i = 0;
|
|
5446
|
+
l.value.forEach((a) => {
|
|
5447
|
+
e -= a.size, a.givenSize !== null && i++, a.size >= a.max && n.push(a.id), a.size <= a.min && t.push(a.id);
|
|
5462
5448
|
});
|
|
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;
|
|
5449
|
+
let s = 100;
|
|
5450
|
+
e > 0.1 && (l.value.forEach((a) => {
|
|
5451
|
+
a.givenSize === null && (a.size = Math.max(Math.min(e / (m.value - i), a.max), a.min)), s -= a.size;
|
|
5452
|
+
}), s > 0.1 && q(s, n, t));
|
|
5453
|
+
}, oe = ({ addedPane: e, removedPane: n } = {}) => {
|
|
5454
|
+
let t = 100 / m.value, i = 0;
|
|
5455
|
+
const s = [], a = [];
|
|
5456
|
+
((e == null ? void 0 : e.givenSize) ?? null) !== null && (t = (100 - e.givenSize) / (m.value - 1)), l.value.forEach((o) => {
|
|
5457
|
+
i -= o.size, o.size >= o.max && s.push(o.id), o.size <= o.min && a.push(o.id);
|
|
5458
|
+
}), !(Math.abs(i) < 0.1) && (l.value.forEach((o) => {
|
|
5459
|
+
(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);
|
|
5460
|
+
}), i > 0.1 && q(i, s, a));
|
|
5461
|
+
}, q = (e, n, t) => {
|
|
5462
|
+
let i;
|
|
5463
|
+
e > 0 ? i = e / (m.value - n.length) : i = e / (m.value - t.length), l.value.forEach((s, a) => {
|
|
5464
|
+
if (e > 0 && !n.includes(s.id)) {
|
|
5465
|
+
const o = Math.max(Math.min(s.size + i, s.max), s.min), v = o - s.size;
|
|
5466
|
+
e -= v, s.size = o;
|
|
5467
|
+
} else if (!t.includes(s.id)) {
|
|
5468
|
+
const o = Math.max(Math.min(s.size + i, s.max), s.min), v = o - s.size;
|
|
5469
|
+
e -= v, s.size = o;
|
|
5537
5470
|
}
|
|
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.");
|
|
5471
|
+
}), Math.abs(e) > 0.1 && nextTick(() => {
|
|
5472
|
+
S.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
5543
5473
|
});
|
|
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;
|
|
5474
|
+
}, f = (e, n = void 0, t = false) => {
|
|
5475
|
+
const i = (n == null ? void 0 : n.index) ?? c.value.activeSplitter ?? null;
|
|
5476
|
+
_(e, {
|
|
5477
|
+
...n,
|
|
5478
|
+
...i !== null && { index: i },
|
|
5479
|
+
...t && i !== null && {
|
|
5480
|
+
prevPane: l.value[i - (u.firstSplitter ? 1 : 0)],
|
|
5481
|
+
nextPane: l.value[i + (u.firstSplitter ? 0 : 1)]
|
|
5482
|
+
},
|
|
5483
|
+
panes: l.value.map((s) => ({ min: s.min, max: s.max, size: s.size }))
|
|
5610
5484
|
});
|
|
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
|
-
);
|
|
5485
|
+
};
|
|
5486
|
+
watch(() => u.firstSplitter, () => C()), onMounted(() => {
|
|
5487
|
+
ee(), C(), L(), f("ready"), S.value = true;
|
|
5488
|
+
}), onBeforeUnmount(() => S.value = false);
|
|
5489
|
+
const re = () => {
|
|
5490
|
+
var e;
|
|
5491
|
+
return h(
|
|
5492
|
+
"div",
|
|
5493
|
+
{ ref: x, class: y.value },
|
|
5494
|
+
(e = k.default) == null ? void 0 : e.call(k)
|
|
5495
|
+
);
|
|
5496
|
+
};
|
|
5497
|
+
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
5498
|
}
|
|
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"],
|
|
5499
|
+
}, ge = {
|
|
5500
|
+
__name: "pane",
|
|
5644
5501
|
props: {
|
|
5645
|
-
size: { type: [Number, String]
|
|
5502
|
+
size: { type: [Number, String] },
|
|
5646
5503
|
minSize: { type: [Number, String], default: 0 },
|
|
5647
5504
|
maxSize: { type: [Number, String], default: 100 }
|
|
5648
5505
|
},
|
|
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
|
-
}
|
|
5506
|
+
setup(D) {
|
|
5507
|
+
var b;
|
|
5508
|
+
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(() => {
|
|
5509
|
+
const r = isNaN(p.size) || p.size === void 0 ? 0 : parseFloat(p.size);
|
|
5510
|
+
return Math.max(Math.min(r, R.value), y.value);
|
|
5511
|
+
}), y = computed(() => {
|
|
5512
|
+
const r = parseFloat(p.minSize);
|
|
5513
|
+
return isNaN(r) ? 0 : r;
|
|
5514
|
+
}), R = computed(() => {
|
|
5515
|
+
const r = parseFloat(p.maxSize);
|
|
5516
|
+
return isNaN(r) ? 100 : r;
|
|
5517
|
+
}), O = computed(() => {
|
|
5518
|
+
var r;
|
|
5519
|
+
return `${k.value ? "height" : "width"}: ${(r = S.value) == null ? void 0 : r.size}%`;
|
|
5520
|
+
});
|
|
5521
|
+
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(() => {
|
|
5522
|
+
u({
|
|
5523
|
+
id: m,
|
|
5524
|
+
el: c.value,
|
|
5525
|
+
min: y.value,
|
|
5526
|
+
max: R.value,
|
|
5527
|
+
// The given size (useful to know the user intention).
|
|
5528
|
+
givenSize: p.size === void 0 ? null : d.value,
|
|
5529
|
+
size: d.value
|
|
5530
|
+
// The computed current size at any time.
|
|
5531
|
+
});
|
|
5532
|
+
}), onBeforeUnmount(() => l(m)), (r, P) => (openBlock(), createElementBlock("div", {
|
|
5533
|
+
ref_key: "paneEl",
|
|
5534
|
+
ref: c,
|
|
5535
|
+
class: "splitpanes__pane",
|
|
5536
|
+
onClick: P[0] || (P[0] = (A) => unref(M)(A, r._.uid)),
|
|
5537
|
+
style: normalizeStyle(O.value)
|
|
5538
|
+
}, [
|
|
5539
|
+
renderSlot(r.$slots, "default")
|
|
5540
|
+
], 4));
|
|
5685
5541
|
}
|
|
5686
5542
|
};
|
|
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
5543
|
|
|
5698
5544
|
/* Injected with object hook! */
|
|
5699
5545
|
|
|
5700
|
-
export {
|
|
5546
|
+
export { Pe as P, Ripple as R, script$4 as a, script as b, axios as c, ge as g, script$5 as s };
|