jtui3.0 1.0.59 → 1.0.61
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/lib/jtui3.0.common.js +1896 -91
- package/lib/jtui3.0.css +1 -1
- package/lib/jtui3.0.umd.js +1896 -91
- package/lib/jtui3.0.umd.min.js +6 -6
- package/package.json +2 -1
package/lib/jtui3.0.umd.js
CHANGED
|
@@ -2842,6 +2842,177 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2842
2842
|
// extracted by mini-css-extract-plugin
|
|
2843
2843
|
|
|
2844
2844
|
|
|
2845
|
+
/***/ }),
|
|
2846
|
+
|
|
2847
|
+
/***/ 5365:
|
|
2848
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2849
|
+
|
|
2850
|
+
"use strict";
|
|
2851
|
+
|
|
2852
|
+
|
|
2853
|
+
var utils = __webpack_require__(5628);
|
|
2854
|
+
|
|
2855
|
+
module.exports = function batchProcessorMaker(options) {
|
|
2856
|
+
options = options || {};
|
|
2857
|
+
var reporter = options.reporter;
|
|
2858
|
+
var asyncProcess = utils.getOption(options, "async", true);
|
|
2859
|
+
var autoProcess = utils.getOption(options, "auto", true);
|
|
2860
|
+
|
|
2861
|
+
if (autoProcess && !asyncProcess) {
|
|
2862
|
+
reporter && reporter.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true.");
|
|
2863
|
+
asyncProcess = true;
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
var batch = Batch();
|
|
2867
|
+
var asyncFrameHandler;
|
|
2868
|
+
var isProcessing = false;
|
|
2869
|
+
|
|
2870
|
+
function addFunction(level, fn) {
|
|
2871
|
+
if (!isProcessing && autoProcess && asyncProcess && batch.size() === 0) {
|
|
2872
|
+
// Since this is async, it is guaranteed to be executed after that the fn is added to the batch.
|
|
2873
|
+
// This needs to be done before, since we're checking the size of the batch to be 0.
|
|
2874
|
+
processBatchAsync();
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
batch.add(level, fn);
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
function processBatch() {
|
|
2881
|
+
// Save the current batch, and create a new batch so that incoming functions are not added into the currently processing batch.
|
|
2882
|
+
// Continue processing until the top-level batch is empty (functions may be added to the new batch while processing, and so on).
|
|
2883
|
+
isProcessing = true;
|
|
2884
|
+
|
|
2885
|
+
while (batch.size()) {
|
|
2886
|
+
var processingBatch = batch;
|
|
2887
|
+
batch = Batch();
|
|
2888
|
+
processingBatch.process();
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
isProcessing = false;
|
|
2892
|
+
}
|
|
2893
|
+
|
|
2894
|
+
function forceProcessBatch(localAsyncProcess) {
|
|
2895
|
+
if (isProcessing) {
|
|
2896
|
+
return;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
if (localAsyncProcess === undefined) {
|
|
2900
|
+
localAsyncProcess = asyncProcess;
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
if (asyncFrameHandler) {
|
|
2904
|
+
cancelFrame(asyncFrameHandler);
|
|
2905
|
+
asyncFrameHandler = null;
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
if (localAsyncProcess) {
|
|
2909
|
+
processBatchAsync();
|
|
2910
|
+
} else {
|
|
2911
|
+
processBatch();
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2915
|
+
function processBatchAsync() {
|
|
2916
|
+
asyncFrameHandler = requestFrame(processBatch);
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
function clearBatch() {
|
|
2920
|
+
batch = {};
|
|
2921
|
+
batchSize = 0;
|
|
2922
|
+
topLevel = 0;
|
|
2923
|
+
bottomLevel = 0;
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
function cancelFrame(listener) {
|
|
2927
|
+
// var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.clearTimeout;
|
|
2928
|
+
var cancel = clearTimeout;
|
|
2929
|
+
return cancel(listener);
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
function requestFrame(callback) {
|
|
2933
|
+
// var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function(fn) { return window.setTimeout(fn, 20); };
|
|
2934
|
+
var raf = function (fn) {
|
|
2935
|
+
return setTimeout(fn, 0);
|
|
2936
|
+
};
|
|
2937
|
+
|
|
2938
|
+
return raf(callback);
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
return {
|
|
2942
|
+
add: addFunction,
|
|
2943
|
+
force: forceProcessBatch
|
|
2944
|
+
};
|
|
2945
|
+
};
|
|
2946
|
+
|
|
2947
|
+
function Batch() {
|
|
2948
|
+
var batch = {};
|
|
2949
|
+
var size = 0;
|
|
2950
|
+
var topLevel = 0;
|
|
2951
|
+
var bottomLevel = 0;
|
|
2952
|
+
|
|
2953
|
+
function add(level, fn) {
|
|
2954
|
+
if (!fn) {
|
|
2955
|
+
fn = level;
|
|
2956
|
+
level = 0;
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
if (level > topLevel) {
|
|
2960
|
+
topLevel = level;
|
|
2961
|
+
} else if (level < bottomLevel) {
|
|
2962
|
+
bottomLevel = level;
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
if (!batch[level]) {
|
|
2966
|
+
batch[level] = [];
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
batch[level].push(fn);
|
|
2970
|
+
size++;
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
function process() {
|
|
2974
|
+
for (var level = bottomLevel; level <= topLevel; level++) {
|
|
2975
|
+
var fns = batch[level];
|
|
2976
|
+
|
|
2977
|
+
for (var i = 0; i < fns.length; i++) {
|
|
2978
|
+
var fn = fns[i];
|
|
2979
|
+
fn();
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
function getSize() {
|
|
2985
|
+
return size;
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
return {
|
|
2989
|
+
add: add,
|
|
2990
|
+
process: process,
|
|
2991
|
+
size: getSize
|
|
2992
|
+
};
|
|
2993
|
+
}
|
|
2994
|
+
|
|
2995
|
+
/***/ }),
|
|
2996
|
+
|
|
2997
|
+
/***/ 5628:
|
|
2998
|
+
/***/ (function(module) {
|
|
2999
|
+
|
|
3000
|
+
"use strict";
|
|
3001
|
+
|
|
3002
|
+
|
|
3003
|
+
var utils = module.exports = {};
|
|
3004
|
+
utils.getOption = getOption;
|
|
3005
|
+
|
|
3006
|
+
function getOption(options, name, defaultValue) {
|
|
3007
|
+
var value = options[name];
|
|
3008
|
+
|
|
3009
|
+
if ((value === undefined || value === null) && defaultValue !== undefined) {
|
|
3010
|
+
return defaultValue;
|
|
3011
|
+
}
|
|
3012
|
+
|
|
3013
|
+
return value;
|
|
3014
|
+
}
|
|
3015
|
+
|
|
2845
3016
|
/***/ }),
|
|
2846
3017
|
|
|
2847
3018
|
/***/ 7013:
|
|
@@ -4174,6 +4345,1623 @@ __webpack_require__(1703);
|
|
|
4174
4345
|
|
|
4175
4346
|
/***/ }),
|
|
4176
4347
|
|
|
4348
|
+
/***/ 2294:
|
|
4349
|
+
/***/ (function(module) {
|
|
4350
|
+
|
|
4351
|
+
"use strict";
|
|
4352
|
+
|
|
4353
|
+
|
|
4354
|
+
var detector = module.exports = {};
|
|
4355
|
+
|
|
4356
|
+
detector.isIE = function (version) {
|
|
4357
|
+
function isAnyIeVersion() {
|
|
4358
|
+
var agent = navigator.userAgent.toLowerCase();
|
|
4359
|
+
return agent.indexOf("msie") !== -1 || agent.indexOf("trident") !== -1 || agent.indexOf(" edge/") !== -1;
|
|
4360
|
+
}
|
|
4361
|
+
|
|
4362
|
+
if (!isAnyIeVersion()) {
|
|
4363
|
+
return false;
|
|
4364
|
+
}
|
|
4365
|
+
|
|
4366
|
+
if (!version) {
|
|
4367
|
+
return true;
|
|
4368
|
+
} //Shamelessly stolen from https://gist.github.com/padolsey/527683
|
|
4369
|
+
|
|
4370
|
+
|
|
4371
|
+
var ieVersion = function () {
|
|
4372
|
+
var undef,
|
|
4373
|
+
v = 3,
|
|
4374
|
+
div = document.createElement("div"),
|
|
4375
|
+
all = div.getElementsByTagName("i");
|
|
4376
|
+
|
|
4377
|
+
do {
|
|
4378
|
+
div.innerHTML = "<!--[if gt IE " + ++v + "]><i></i><![endif]-->";
|
|
4379
|
+
} while (all[0]);
|
|
4380
|
+
|
|
4381
|
+
return v > 4 ? v : undef;
|
|
4382
|
+
}();
|
|
4383
|
+
|
|
4384
|
+
return version === ieVersion;
|
|
4385
|
+
};
|
|
4386
|
+
|
|
4387
|
+
detector.isLegacyOpera = function () {
|
|
4388
|
+
return !!window.opera;
|
|
4389
|
+
};
|
|
4390
|
+
|
|
4391
|
+
/***/ }),
|
|
4392
|
+
|
|
4393
|
+
/***/ 6495:
|
|
4394
|
+
/***/ (function(module) {
|
|
4395
|
+
|
|
4396
|
+
"use strict";
|
|
4397
|
+
|
|
4398
|
+
|
|
4399
|
+
var utils = module.exports = {};
|
|
4400
|
+
/**
|
|
4401
|
+
* Loops through the collection and calls the callback for each element. if the callback returns truthy, the loop is broken and returns the same value.
|
|
4402
|
+
* @public
|
|
4403
|
+
* @param {*} collection The collection to loop through. Needs to have a length property set and have indices set from 0 to length - 1.
|
|
4404
|
+
* @param {function} callback The callback to be called for each element. The element will be given as a parameter to the callback. If this callback returns truthy, the loop is broken and the same value is returned.
|
|
4405
|
+
* @returns {*} The value that a callback has returned (if truthy). Otherwise nothing.
|
|
4406
|
+
*/
|
|
4407
|
+
|
|
4408
|
+
utils.forEach = function (collection, callback) {
|
|
4409
|
+
for (var i = 0; i < collection.length; i++) {
|
|
4410
|
+
var result = callback(collection[i]);
|
|
4411
|
+
|
|
4412
|
+
if (result) {
|
|
4413
|
+
return result;
|
|
4414
|
+
}
|
|
4415
|
+
}
|
|
4416
|
+
};
|
|
4417
|
+
|
|
4418
|
+
/***/ }),
|
|
4419
|
+
|
|
4420
|
+
/***/ 9000:
|
|
4421
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4422
|
+
|
|
4423
|
+
"use strict";
|
|
4424
|
+
/**
|
|
4425
|
+
* Resize detection strategy that injects objects to elements in order to detect resize events.
|
|
4426
|
+
* Heavily inspired by: http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/
|
|
4427
|
+
*/
|
|
4428
|
+
|
|
4429
|
+
|
|
4430
|
+
__webpack_require__(1703);
|
|
4431
|
+
|
|
4432
|
+
var browserDetector = __webpack_require__(2294);
|
|
4433
|
+
|
|
4434
|
+
module.exports = function (options) {
|
|
4435
|
+
options = options || {};
|
|
4436
|
+
var reporter = options.reporter;
|
|
4437
|
+
var batchProcessor = options.batchProcessor;
|
|
4438
|
+
var getState = options.stateHandler.getState;
|
|
4439
|
+
|
|
4440
|
+
if (!reporter) {
|
|
4441
|
+
throw new Error("Missing required dependency: reporter.");
|
|
4442
|
+
}
|
|
4443
|
+
/**
|
|
4444
|
+
* Adds a resize event listener to the element.
|
|
4445
|
+
* @public
|
|
4446
|
+
* @param {element} element The element that should have the listener added.
|
|
4447
|
+
* @param {function} listener The listener callback to be called for each resize event of the element. The element will be given as a parameter to the listener callback.
|
|
4448
|
+
*/
|
|
4449
|
+
|
|
4450
|
+
|
|
4451
|
+
function addListener(element, listener) {
|
|
4452
|
+
function listenerProxy() {
|
|
4453
|
+
listener(element);
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4456
|
+
if (browserDetector.isIE(8)) {
|
|
4457
|
+
//IE 8 does not support object, but supports the resize event directly on elements.
|
|
4458
|
+
getState(element).object = {
|
|
4459
|
+
proxy: listenerProxy
|
|
4460
|
+
};
|
|
4461
|
+
element.attachEvent("onresize", listenerProxy);
|
|
4462
|
+
} else {
|
|
4463
|
+
var object = getObject(element);
|
|
4464
|
+
|
|
4465
|
+
if (!object) {
|
|
4466
|
+
throw new Error("Element is not detectable by this strategy.");
|
|
4467
|
+
}
|
|
4468
|
+
|
|
4469
|
+
object.contentDocument.defaultView.addEventListener("resize", listenerProxy);
|
|
4470
|
+
}
|
|
4471
|
+
}
|
|
4472
|
+
|
|
4473
|
+
function buildCssTextString(rules) {
|
|
4474
|
+
var seperator = options.important ? " !important; " : "; ";
|
|
4475
|
+
return (rules.join(seperator) + seperator).trim();
|
|
4476
|
+
}
|
|
4477
|
+
/**
|
|
4478
|
+
* Makes an element detectable and ready to be listened for resize events. Will call the callback when the element is ready to be listened for resize changes.
|
|
4479
|
+
* @private
|
|
4480
|
+
* @param {object} options Optional options object.
|
|
4481
|
+
* @param {element} element The element to make detectable
|
|
4482
|
+
* @param {function} callback The callback to be called when the element is ready to be listened for resize changes. Will be called with the element as first parameter.
|
|
4483
|
+
*/
|
|
4484
|
+
|
|
4485
|
+
|
|
4486
|
+
function makeDetectable(options, element, callback) {
|
|
4487
|
+
if (!callback) {
|
|
4488
|
+
callback = element;
|
|
4489
|
+
element = options;
|
|
4490
|
+
options = null;
|
|
4491
|
+
}
|
|
4492
|
+
|
|
4493
|
+
options = options || {};
|
|
4494
|
+
var debug = options.debug;
|
|
4495
|
+
|
|
4496
|
+
function injectObject(element, callback) {
|
|
4497
|
+
var OBJECT_STYLE = buildCssTextString(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none"]); //The target element needs to be positioned (everything except static) so the absolute positioned object will be positioned relative to the target element.
|
|
4498
|
+
// Position altering may be performed directly or on object load, depending on if style resolution is possible directly or not.
|
|
4499
|
+
|
|
4500
|
+
var positionCheckPerformed = false; // The element may not yet be attached to the DOM, and therefore the style object may be empty in some browsers.
|
|
4501
|
+
// Since the style object is a reference, it will be updated as soon as the element is attached to the DOM.
|
|
4502
|
+
|
|
4503
|
+
var style = window.getComputedStyle(element);
|
|
4504
|
+
var width = element.offsetWidth;
|
|
4505
|
+
var height = element.offsetHeight;
|
|
4506
|
+
getState(element).startSize = {
|
|
4507
|
+
width: width,
|
|
4508
|
+
height: height
|
|
4509
|
+
};
|
|
4510
|
+
|
|
4511
|
+
function mutateDom() {
|
|
4512
|
+
function alterPositionStyles() {
|
|
4513
|
+
if (style.position === "static") {
|
|
4514
|
+
element.style.setProperty("position", "relative", options.important ? "important" : "");
|
|
4515
|
+
|
|
4516
|
+
var removeRelativeStyles = function (reporter, element, style, property) {
|
|
4517
|
+
function getNumericalValue(value) {
|
|
4518
|
+
return value.replace(/[^-\d\.]/g, "");
|
|
4519
|
+
}
|
|
4520
|
+
|
|
4521
|
+
var value = style[property];
|
|
4522
|
+
|
|
4523
|
+
if (value !== "auto" && getNumericalValue(value) !== "0") {
|
|
4524
|
+
reporter.warn("An element that is positioned static has style." + property + "=" + value + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + property + " will be set to 0. Element: ", element);
|
|
4525
|
+
element.style.setProperty(property, "0", options.important ? "important" : "");
|
|
4526
|
+
}
|
|
4527
|
+
}; //Check so that there are no accidental styles that will make the element styled differently now that is is relative.
|
|
4528
|
+
//If there are any, set them to 0 (this should be okay with the user since the style properties did nothing before [since the element was positioned static] anyway).
|
|
4529
|
+
|
|
4530
|
+
|
|
4531
|
+
removeRelativeStyles(reporter, element, style, "top");
|
|
4532
|
+
removeRelativeStyles(reporter, element, style, "right");
|
|
4533
|
+
removeRelativeStyles(reporter, element, style, "bottom");
|
|
4534
|
+
removeRelativeStyles(reporter, element, style, "left");
|
|
4535
|
+
}
|
|
4536
|
+
}
|
|
4537
|
+
|
|
4538
|
+
function onObjectLoad() {
|
|
4539
|
+
// The object has been loaded, which means that the element now is guaranteed to be attached to the DOM.
|
|
4540
|
+
if (!positionCheckPerformed) {
|
|
4541
|
+
alterPositionStyles();
|
|
4542
|
+
}
|
|
4543
|
+
/*jshint validthis: true */
|
|
4544
|
+
|
|
4545
|
+
|
|
4546
|
+
function getDocument(element, callback) {
|
|
4547
|
+
//Opera 12 seem to call the object.onload before the actual document has been created.
|
|
4548
|
+
//So if it is not present, poll it with an timeout until it is present.
|
|
4549
|
+
//TODO: Could maybe be handled better with object.onreadystatechange or similar.
|
|
4550
|
+
if (!element.contentDocument) {
|
|
4551
|
+
var state = getState(element);
|
|
4552
|
+
|
|
4553
|
+
if (state.checkForObjectDocumentTimeoutId) {
|
|
4554
|
+
window.clearTimeout(state.checkForObjectDocumentTimeoutId);
|
|
4555
|
+
}
|
|
4556
|
+
|
|
4557
|
+
state.checkForObjectDocumentTimeoutId = setTimeout(function checkForObjectDocument() {
|
|
4558
|
+
state.checkForObjectDocumentTimeoutId = 0;
|
|
4559
|
+
getDocument(element, callback);
|
|
4560
|
+
}, 100);
|
|
4561
|
+
return;
|
|
4562
|
+
}
|
|
4563
|
+
|
|
4564
|
+
callback(element.contentDocument);
|
|
4565
|
+
} //Mutating the object element here seems to fire another load event.
|
|
4566
|
+
//Mutating the inner document of the object element is fine though.
|
|
4567
|
+
|
|
4568
|
+
|
|
4569
|
+
var objectElement = this; //Create the style element to be added to the object.
|
|
4570
|
+
|
|
4571
|
+
getDocument(objectElement, function onObjectDocumentReady(objectDocument) {
|
|
4572
|
+
//Notify that the element is ready to be listened to.
|
|
4573
|
+
callback(element);
|
|
4574
|
+
});
|
|
4575
|
+
} // The element may be detached from the DOM, and some browsers does not support style resolving of detached elements.
|
|
4576
|
+
// The alterPositionStyles needs to be delayed until we know the element has been attached to the DOM (which we are sure of when the onObjectLoad has been fired), if style resolution is not possible.
|
|
4577
|
+
|
|
4578
|
+
|
|
4579
|
+
if (style.position !== "") {
|
|
4580
|
+
alterPositionStyles(style);
|
|
4581
|
+
positionCheckPerformed = true;
|
|
4582
|
+
} //Add an object element as a child to the target element that will be listened to for resize events.
|
|
4583
|
+
|
|
4584
|
+
|
|
4585
|
+
var object = document.createElement("object");
|
|
4586
|
+
object.style.cssText = OBJECT_STYLE;
|
|
4587
|
+
object.tabIndex = -1;
|
|
4588
|
+
object.type = "text/html";
|
|
4589
|
+
object.setAttribute("aria-hidden", "true");
|
|
4590
|
+
object.onload = onObjectLoad; //Safari: This must occur before adding the object to the DOM.
|
|
4591
|
+
//IE: Does not like that this happens before, even if it is also added after.
|
|
4592
|
+
|
|
4593
|
+
if (!browserDetector.isIE()) {
|
|
4594
|
+
object.data = "about:blank";
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
if (!getState(element)) {
|
|
4598
|
+
// The element has been uninstalled before the actual loading happened.
|
|
4599
|
+
return;
|
|
4600
|
+
}
|
|
4601
|
+
|
|
4602
|
+
element.appendChild(object);
|
|
4603
|
+
getState(element).object = object; //IE: This must occur after adding the object to the DOM.
|
|
4604
|
+
|
|
4605
|
+
if (browserDetector.isIE()) {
|
|
4606
|
+
object.data = "about:blank";
|
|
4607
|
+
}
|
|
4608
|
+
}
|
|
4609
|
+
|
|
4610
|
+
if (batchProcessor) {
|
|
4611
|
+
batchProcessor.add(mutateDom);
|
|
4612
|
+
} else {
|
|
4613
|
+
mutateDom();
|
|
4614
|
+
}
|
|
4615
|
+
}
|
|
4616
|
+
|
|
4617
|
+
if (browserDetector.isIE(8)) {
|
|
4618
|
+
//IE 8 does not support objects properly. Luckily they do support the resize event.
|
|
4619
|
+
//So do not inject the object and notify that the element is already ready to be listened to.
|
|
4620
|
+
//The event handler for the resize event is attached in the utils.addListener instead.
|
|
4621
|
+
callback(element);
|
|
4622
|
+
} else {
|
|
4623
|
+
injectObject(element, callback);
|
|
4624
|
+
}
|
|
4625
|
+
}
|
|
4626
|
+
/**
|
|
4627
|
+
* Returns the child object of the target element.
|
|
4628
|
+
* @private
|
|
4629
|
+
* @param {element} element The target element.
|
|
4630
|
+
* @returns The object element of the target.
|
|
4631
|
+
*/
|
|
4632
|
+
|
|
4633
|
+
|
|
4634
|
+
function getObject(element) {
|
|
4635
|
+
return getState(element).object;
|
|
4636
|
+
}
|
|
4637
|
+
|
|
4638
|
+
function uninstall(element) {
|
|
4639
|
+
if (!getState(element)) {
|
|
4640
|
+
return;
|
|
4641
|
+
}
|
|
4642
|
+
|
|
4643
|
+
var object = getObject(element);
|
|
4644
|
+
|
|
4645
|
+
if (!object) {
|
|
4646
|
+
return;
|
|
4647
|
+
}
|
|
4648
|
+
|
|
4649
|
+
if (browserDetector.isIE(8)) {
|
|
4650
|
+
element.detachEvent("onresize", object.proxy);
|
|
4651
|
+
} else {
|
|
4652
|
+
element.removeChild(object);
|
|
4653
|
+
}
|
|
4654
|
+
|
|
4655
|
+
if (getState(element).checkForObjectDocumentTimeoutId) {
|
|
4656
|
+
window.clearTimeout(getState(element).checkForObjectDocumentTimeoutId);
|
|
4657
|
+
}
|
|
4658
|
+
|
|
4659
|
+
delete getState(element).object;
|
|
4660
|
+
}
|
|
4661
|
+
|
|
4662
|
+
return {
|
|
4663
|
+
makeDetectable: makeDetectable,
|
|
4664
|
+
addListener: addListener,
|
|
4665
|
+
uninstall: uninstall
|
|
4666
|
+
};
|
|
4667
|
+
};
|
|
4668
|
+
|
|
4669
|
+
/***/ }),
|
|
4670
|
+
|
|
4671
|
+
/***/ 1254:
|
|
4672
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4673
|
+
|
|
4674
|
+
"use strict";
|
|
4675
|
+
/**
|
|
4676
|
+
* Resize detection strategy that injects divs to elements in order to detect resize events on scroll events.
|
|
4677
|
+
* Heavily inspired by: https://github.com/marcj/css-element-queries/blob/master/src/ResizeSensor.js
|
|
4678
|
+
*/
|
|
4679
|
+
|
|
4680
|
+
|
|
4681
|
+
__webpack_require__(1703);
|
|
4682
|
+
|
|
4683
|
+
var forEach = (__webpack_require__(6495).forEach);
|
|
4684
|
+
|
|
4685
|
+
module.exports = function (options) {
|
|
4686
|
+
options = options || {};
|
|
4687
|
+
var reporter = options.reporter;
|
|
4688
|
+
var batchProcessor = options.batchProcessor;
|
|
4689
|
+
var getState = options.stateHandler.getState;
|
|
4690
|
+
var hasState = options.stateHandler.hasState;
|
|
4691
|
+
var idHandler = options.idHandler;
|
|
4692
|
+
|
|
4693
|
+
if (!batchProcessor) {
|
|
4694
|
+
throw new Error("Missing required dependency: batchProcessor");
|
|
4695
|
+
}
|
|
4696
|
+
|
|
4697
|
+
if (!reporter) {
|
|
4698
|
+
throw new Error("Missing required dependency: reporter.");
|
|
4699
|
+
} //TODO: Could this perhaps be done at installation time?
|
|
4700
|
+
|
|
4701
|
+
|
|
4702
|
+
var scrollbarSizes = getScrollbarSizes();
|
|
4703
|
+
var styleId = "erd_scroll_detection_scrollbar_style";
|
|
4704
|
+
var detectionContainerClass = "erd_scroll_detection_container";
|
|
4705
|
+
|
|
4706
|
+
function initDocument(targetDocument) {
|
|
4707
|
+
// Inject the scrollbar styling that prevents them from appearing sometimes in Chrome.
|
|
4708
|
+
// The injected container needs to have a class, so that it may be styled with CSS (pseudo elements).
|
|
4709
|
+
injectScrollStyle(targetDocument, styleId, detectionContainerClass);
|
|
4710
|
+
}
|
|
4711
|
+
|
|
4712
|
+
initDocument(window.document);
|
|
4713
|
+
|
|
4714
|
+
function buildCssTextString(rules) {
|
|
4715
|
+
var seperator = options.important ? " !important; " : "; ";
|
|
4716
|
+
return (rules.join(seperator) + seperator).trim();
|
|
4717
|
+
}
|
|
4718
|
+
|
|
4719
|
+
function getScrollbarSizes() {
|
|
4720
|
+
var width = 500;
|
|
4721
|
+
var height = 500;
|
|
4722
|
+
var child = document.createElement("div");
|
|
4723
|
+
child.style.cssText = buildCssTextString(["position: absolute", "width: " + width * 2 + "px", "height: " + height * 2 + "px", "visibility: hidden", "margin: 0", "padding: 0"]);
|
|
4724
|
+
var container = document.createElement("div");
|
|
4725
|
+
container.style.cssText = buildCssTextString(["position: absolute", "width: " + width + "px", "height: " + height + "px", "overflow: scroll", "visibility: none", "top: " + -width * 3 + "px", "left: " + -height * 3 + "px", "visibility: hidden", "margin: 0", "padding: 0"]);
|
|
4726
|
+
container.appendChild(child);
|
|
4727
|
+
document.body.insertBefore(container, document.body.firstChild);
|
|
4728
|
+
var widthSize = width - container.clientWidth;
|
|
4729
|
+
var heightSize = height - container.clientHeight;
|
|
4730
|
+
document.body.removeChild(container);
|
|
4731
|
+
return {
|
|
4732
|
+
width: widthSize,
|
|
4733
|
+
height: heightSize
|
|
4734
|
+
};
|
|
4735
|
+
}
|
|
4736
|
+
|
|
4737
|
+
function injectScrollStyle(targetDocument, styleId, containerClass) {
|
|
4738
|
+
function injectStyle(style, method) {
|
|
4739
|
+
method = method || function (element) {
|
|
4740
|
+
targetDocument.head.appendChild(element);
|
|
4741
|
+
};
|
|
4742
|
+
|
|
4743
|
+
var styleElement = targetDocument.createElement("style");
|
|
4744
|
+
styleElement.innerHTML = style;
|
|
4745
|
+
styleElement.id = styleId;
|
|
4746
|
+
method(styleElement);
|
|
4747
|
+
return styleElement;
|
|
4748
|
+
}
|
|
4749
|
+
|
|
4750
|
+
if (!targetDocument.getElementById(styleId)) {
|
|
4751
|
+
var containerAnimationClass = containerClass + "_animation";
|
|
4752
|
+
var containerAnimationActiveClass = containerClass + "_animation_active";
|
|
4753
|
+
var style = "/* Created by the element-resize-detector library. */\n";
|
|
4754
|
+
style += "." + containerClass + " > div::-webkit-scrollbar { " + buildCssTextString(["display: none"]) + " }\n\n";
|
|
4755
|
+
style += "." + containerAnimationActiveClass + " { " + buildCssTextString(["-webkit-animation-duration: 0.1s", "animation-duration: 0.1s", "-webkit-animation-name: " + containerAnimationClass, "animation-name: " + containerAnimationClass]) + " }\n";
|
|
4756
|
+
style += "@-webkit-keyframes " + containerAnimationClass + " { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n";
|
|
4757
|
+
style += "@keyframes " + containerAnimationClass + " { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }";
|
|
4758
|
+
injectStyle(style);
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
|
|
4762
|
+
function addAnimationClass(element) {
|
|
4763
|
+
element.className += " " + detectionContainerClass + "_animation_active";
|
|
4764
|
+
}
|
|
4765
|
+
|
|
4766
|
+
function addEvent(el, name, cb) {
|
|
4767
|
+
if (el.addEventListener) {
|
|
4768
|
+
el.addEventListener(name, cb);
|
|
4769
|
+
} else if (el.attachEvent) {
|
|
4770
|
+
el.attachEvent("on" + name, cb);
|
|
4771
|
+
} else {
|
|
4772
|
+
return reporter.error("[scroll] Don't know how to add event listeners.");
|
|
4773
|
+
}
|
|
4774
|
+
}
|
|
4775
|
+
|
|
4776
|
+
function removeEvent(el, name, cb) {
|
|
4777
|
+
if (el.removeEventListener) {
|
|
4778
|
+
el.removeEventListener(name, cb);
|
|
4779
|
+
} else if (el.detachEvent) {
|
|
4780
|
+
el.detachEvent("on" + name, cb);
|
|
4781
|
+
} else {
|
|
4782
|
+
return reporter.error("[scroll] Don't know how to remove event listeners.");
|
|
4783
|
+
}
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
function getExpandElement(element) {
|
|
4787
|
+
return getState(element).container.childNodes[0].childNodes[0].childNodes[0];
|
|
4788
|
+
}
|
|
4789
|
+
|
|
4790
|
+
function getShrinkElement(element) {
|
|
4791
|
+
return getState(element).container.childNodes[0].childNodes[0].childNodes[1];
|
|
4792
|
+
}
|
|
4793
|
+
/**
|
|
4794
|
+
* Adds a resize event listener to the element.
|
|
4795
|
+
* @public
|
|
4796
|
+
* @param {element} element The element that should have the listener added.
|
|
4797
|
+
* @param {function} listener The listener callback to be called for each resize event of the element. The element will be given as a parameter to the listener callback.
|
|
4798
|
+
*/
|
|
4799
|
+
|
|
4800
|
+
|
|
4801
|
+
function addListener(element, listener) {
|
|
4802
|
+
var listeners = getState(element).listeners;
|
|
4803
|
+
|
|
4804
|
+
if (!listeners.push) {
|
|
4805
|
+
throw new Error("Cannot add listener to an element that is not detectable.");
|
|
4806
|
+
}
|
|
4807
|
+
|
|
4808
|
+
getState(element).listeners.push(listener);
|
|
4809
|
+
}
|
|
4810
|
+
/**
|
|
4811
|
+
* Makes an element detectable and ready to be listened for resize events. Will call the callback when the element is ready to be listened for resize changes.
|
|
4812
|
+
* @private
|
|
4813
|
+
* @param {object} options Optional options object.
|
|
4814
|
+
* @param {element} element The element to make detectable
|
|
4815
|
+
* @param {function} callback The callback to be called when the element is ready to be listened for resize changes. Will be called with the element as first parameter.
|
|
4816
|
+
*/
|
|
4817
|
+
|
|
4818
|
+
|
|
4819
|
+
function makeDetectable(options, element, callback) {
|
|
4820
|
+
if (!callback) {
|
|
4821
|
+
callback = element;
|
|
4822
|
+
element = options;
|
|
4823
|
+
options = null;
|
|
4824
|
+
}
|
|
4825
|
+
|
|
4826
|
+
options = options || {};
|
|
4827
|
+
|
|
4828
|
+
function debug() {
|
|
4829
|
+
if (options.debug) {
|
|
4830
|
+
var args = Array.prototype.slice.call(arguments);
|
|
4831
|
+
args.unshift(idHandler.get(element), "Scroll: ");
|
|
4832
|
+
|
|
4833
|
+
if (reporter.log.apply) {
|
|
4834
|
+
reporter.log.apply(null, args);
|
|
4835
|
+
} else {
|
|
4836
|
+
for (var i = 0; i < args.length; i++) {
|
|
4837
|
+
reporter.log(args[i]);
|
|
4838
|
+
}
|
|
4839
|
+
}
|
|
4840
|
+
}
|
|
4841
|
+
}
|
|
4842
|
+
|
|
4843
|
+
function isDetached(element) {
|
|
4844
|
+
function isInDocument(element) {
|
|
4845
|
+
var isInShadowRoot = element.getRootNode && element.getRootNode().contains(element);
|
|
4846
|
+
return element === element.ownerDocument.body || element.ownerDocument.body.contains(element) || isInShadowRoot;
|
|
4847
|
+
}
|
|
4848
|
+
|
|
4849
|
+
if (!isInDocument(element)) {
|
|
4850
|
+
return true;
|
|
4851
|
+
} // FireFox returns null style in hidden iframes. See https://github.com/wnr/element-resize-detector/issues/68 and https://bugzilla.mozilla.org/show_bug.cgi?id=795520
|
|
4852
|
+
|
|
4853
|
+
|
|
4854
|
+
if (window.getComputedStyle(element) === null) {
|
|
4855
|
+
return true;
|
|
4856
|
+
}
|
|
4857
|
+
|
|
4858
|
+
return false;
|
|
4859
|
+
}
|
|
4860
|
+
|
|
4861
|
+
function isUnrendered(element) {
|
|
4862
|
+
// Check the absolute positioned container since the top level container is display: inline.
|
|
4863
|
+
var container = getState(element).container.childNodes[0];
|
|
4864
|
+
var style = window.getComputedStyle(container);
|
|
4865
|
+
return !style.width || style.width.indexOf("px") === -1; //Can only compute pixel value when rendered.
|
|
4866
|
+
}
|
|
4867
|
+
|
|
4868
|
+
function getStyle() {
|
|
4869
|
+
// Some browsers only force layouts when actually reading the style properties of the style object, so make sure that they are all read here,
|
|
4870
|
+
// so that the user of the function can be sure that it will perform the layout here, instead of later (important for batching).
|
|
4871
|
+
var elementStyle = window.getComputedStyle(element);
|
|
4872
|
+
var style = {};
|
|
4873
|
+
style.position = elementStyle.position;
|
|
4874
|
+
style.width = element.offsetWidth;
|
|
4875
|
+
style.height = element.offsetHeight;
|
|
4876
|
+
style.top = elementStyle.top;
|
|
4877
|
+
style.right = elementStyle.right;
|
|
4878
|
+
style.bottom = elementStyle.bottom;
|
|
4879
|
+
style.left = elementStyle.left;
|
|
4880
|
+
style.widthCSS = elementStyle.width;
|
|
4881
|
+
style.heightCSS = elementStyle.height;
|
|
4882
|
+
return style;
|
|
4883
|
+
}
|
|
4884
|
+
|
|
4885
|
+
function storeStartSize() {
|
|
4886
|
+
var style = getStyle();
|
|
4887
|
+
getState(element).startSize = {
|
|
4888
|
+
width: style.width,
|
|
4889
|
+
height: style.height
|
|
4890
|
+
};
|
|
4891
|
+
debug("Element start size", getState(element).startSize);
|
|
4892
|
+
}
|
|
4893
|
+
|
|
4894
|
+
function initListeners() {
|
|
4895
|
+
getState(element).listeners = [];
|
|
4896
|
+
}
|
|
4897
|
+
|
|
4898
|
+
function storeStyle() {
|
|
4899
|
+
debug("storeStyle invoked.");
|
|
4900
|
+
|
|
4901
|
+
if (!getState(element)) {
|
|
4902
|
+
debug("Aborting because element has been uninstalled");
|
|
4903
|
+
return;
|
|
4904
|
+
}
|
|
4905
|
+
|
|
4906
|
+
var style = getStyle();
|
|
4907
|
+
getState(element).style = style;
|
|
4908
|
+
}
|
|
4909
|
+
|
|
4910
|
+
function storeCurrentSize(element, width, height) {
|
|
4911
|
+
getState(element).lastWidth = width;
|
|
4912
|
+
getState(element).lastHeight = height;
|
|
4913
|
+
}
|
|
4914
|
+
|
|
4915
|
+
function getExpandChildElement(element) {
|
|
4916
|
+
return getExpandElement(element).childNodes[0];
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4919
|
+
function getWidthOffset() {
|
|
4920
|
+
return 2 * scrollbarSizes.width + 1;
|
|
4921
|
+
}
|
|
4922
|
+
|
|
4923
|
+
function getHeightOffset() {
|
|
4924
|
+
return 2 * scrollbarSizes.height + 1;
|
|
4925
|
+
}
|
|
4926
|
+
|
|
4927
|
+
function getExpandWidth(width) {
|
|
4928
|
+
return width + 10 + getWidthOffset();
|
|
4929
|
+
}
|
|
4930
|
+
|
|
4931
|
+
function getExpandHeight(height) {
|
|
4932
|
+
return height + 10 + getHeightOffset();
|
|
4933
|
+
}
|
|
4934
|
+
|
|
4935
|
+
function getShrinkWidth(width) {
|
|
4936
|
+
return width * 2 + getWidthOffset();
|
|
4937
|
+
}
|
|
4938
|
+
|
|
4939
|
+
function getShrinkHeight(height) {
|
|
4940
|
+
return height * 2 + getHeightOffset();
|
|
4941
|
+
}
|
|
4942
|
+
|
|
4943
|
+
function positionScrollbars(element, width, height) {
|
|
4944
|
+
var expand = getExpandElement(element);
|
|
4945
|
+
var shrink = getShrinkElement(element);
|
|
4946
|
+
var expandWidth = getExpandWidth(width);
|
|
4947
|
+
var expandHeight = getExpandHeight(height);
|
|
4948
|
+
var shrinkWidth = getShrinkWidth(width);
|
|
4949
|
+
var shrinkHeight = getShrinkHeight(height);
|
|
4950
|
+
expand.scrollLeft = expandWidth;
|
|
4951
|
+
expand.scrollTop = expandHeight;
|
|
4952
|
+
shrink.scrollLeft = shrinkWidth;
|
|
4953
|
+
shrink.scrollTop = shrinkHeight;
|
|
4954
|
+
}
|
|
4955
|
+
|
|
4956
|
+
function injectContainerElement() {
|
|
4957
|
+
var container = getState(element).container;
|
|
4958
|
+
|
|
4959
|
+
if (!container) {
|
|
4960
|
+
container = document.createElement("div");
|
|
4961
|
+
container.className = detectionContainerClass;
|
|
4962
|
+
container.style.cssText = buildCssTextString(["visibility: hidden", "display: inline", "width: 0px", "height: 0px", "z-index: -1", "overflow: hidden", "margin: 0", "padding: 0"]);
|
|
4963
|
+
getState(element).container = container;
|
|
4964
|
+
addAnimationClass(container);
|
|
4965
|
+
element.appendChild(container);
|
|
4966
|
+
|
|
4967
|
+
var onAnimationStart = function () {
|
|
4968
|
+
getState(element).onRendered && getState(element).onRendered();
|
|
4969
|
+
};
|
|
4970
|
+
|
|
4971
|
+
addEvent(container, "animationstart", onAnimationStart); // Store the event handler here so that they may be removed when uninstall is called.
|
|
4972
|
+
// See uninstall function for an explanation why it is needed.
|
|
4973
|
+
|
|
4974
|
+
getState(element).onAnimationStart = onAnimationStart;
|
|
4975
|
+
}
|
|
4976
|
+
|
|
4977
|
+
return container;
|
|
4978
|
+
}
|
|
4979
|
+
|
|
4980
|
+
function injectScrollElements() {
|
|
4981
|
+
function alterPositionStyles() {
|
|
4982
|
+
var style = getState(element).style;
|
|
4983
|
+
|
|
4984
|
+
if (style.position === "static") {
|
|
4985
|
+
element.style.setProperty("position", "relative", options.important ? "important" : "");
|
|
4986
|
+
|
|
4987
|
+
var removeRelativeStyles = function (reporter, element, style, property) {
|
|
4988
|
+
function getNumericalValue(value) {
|
|
4989
|
+
return value.replace(/[^-\d\.]/g, "");
|
|
4990
|
+
}
|
|
4991
|
+
|
|
4992
|
+
var value = style[property];
|
|
4993
|
+
|
|
4994
|
+
if (value !== "auto" && getNumericalValue(value) !== "0") {
|
|
4995
|
+
reporter.warn("An element that is positioned static has style." + property + "=" + value + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + property + " will be set to 0. Element: ", element);
|
|
4996
|
+
element.style[property] = 0;
|
|
4997
|
+
}
|
|
4998
|
+
}; //Check so that there are no accidental styles that will make the element styled differently now that is is relative.
|
|
4999
|
+
//If there are any, set them to 0 (this should be okay with the user since the style properties did nothing before [since the element was positioned static] anyway).
|
|
5000
|
+
|
|
5001
|
+
|
|
5002
|
+
removeRelativeStyles(reporter, element, style, "top");
|
|
5003
|
+
removeRelativeStyles(reporter, element, style, "right");
|
|
5004
|
+
removeRelativeStyles(reporter, element, style, "bottom");
|
|
5005
|
+
removeRelativeStyles(reporter, element, style, "left");
|
|
5006
|
+
}
|
|
5007
|
+
}
|
|
5008
|
+
|
|
5009
|
+
function getLeftTopBottomRightCssText(left, top, bottom, right) {
|
|
5010
|
+
left = !left ? "0" : left + "px";
|
|
5011
|
+
top = !top ? "0" : top + "px";
|
|
5012
|
+
bottom = !bottom ? "0" : bottom + "px";
|
|
5013
|
+
right = !right ? "0" : right + "px";
|
|
5014
|
+
return ["left: " + left, "top: " + top, "right: " + right, "bottom: " + bottom];
|
|
5015
|
+
}
|
|
5016
|
+
|
|
5017
|
+
debug("Injecting elements");
|
|
5018
|
+
|
|
5019
|
+
if (!getState(element)) {
|
|
5020
|
+
debug("Aborting because element has been uninstalled");
|
|
5021
|
+
return;
|
|
5022
|
+
}
|
|
5023
|
+
|
|
5024
|
+
alterPositionStyles();
|
|
5025
|
+
var rootContainer = getState(element).container;
|
|
5026
|
+
|
|
5027
|
+
if (!rootContainer) {
|
|
5028
|
+
rootContainer = injectContainerElement();
|
|
5029
|
+
} // Due to this WebKit bug https://bugs.webkit.org/show_bug.cgi?id=80808 (currently fixed in Blink, but still present in WebKit browsers such as Safari),
|
|
5030
|
+
// we need to inject two containers, one that is width/height 100% and another that is left/top -1px so that the final container always is 1x1 pixels bigger than
|
|
5031
|
+
// the targeted element.
|
|
5032
|
+
// When the bug is resolved, "containerContainer" may be removed.
|
|
5033
|
+
// The outer container can occasionally be less wide than the targeted when inside inline elements element in WebKit (see https://bugs.webkit.org/show_bug.cgi?id=152980).
|
|
5034
|
+
// This should be no problem since the inner container either way makes sure the injected scroll elements are at least 1x1 px.
|
|
5035
|
+
|
|
5036
|
+
|
|
5037
|
+
var scrollbarWidth = scrollbarSizes.width;
|
|
5038
|
+
var scrollbarHeight = scrollbarSizes.height;
|
|
5039
|
+
var containerContainerStyle = buildCssTextString(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%", "left: 0px", "top: 0px"]);
|
|
5040
|
+
var containerStyle = buildCssTextString(["position: absolute", "flex: none", "overflow: hidden", "z-index: -1", "visibility: hidden"].concat(getLeftTopBottomRightCssText(-(1 + scrollbarWidth), -(1 + scrollbarHeight), -scrollbarHeight, -scrollbarWidth)));
|
|
5041
|
+
var expandStyle = buildCssTextString(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]);
|
|
5042
|
+
var shrinkStyle = buildCssTextString(["position: absolute", "flex: none", "overflow: scroll", "z-index: -1", "visibility: hidden", "width: 100%", "height: 100%"]);
|
|
5043
|
+
var expandChildStyle = buildCssTextString(["position: absolute", "left: 0", "top: 0"]);
|
|
5044
|
+
var shrinkChildStyle = buildCssTextString(["position: absolute", "width: 200%", "height: 200%"]);
|
|
5045
|
+
var containerContainer = document.createElement("div");
|
|
5046
|
+
var container = document.createElement("div");
|
|
5047
|
+
var expand = document.createElement("div");
|
|
5048
|
+
var expandChild = document.createElement("div");
|
|
5049
|
+
var shrink = document.createElement("div");
|
|
5050
|
+
var shrinkChild = document.createElement("div"); // Some browsers choke on the resize system being rtl, so force it to ltr. https://github.com/wnr/element-resize-detector/issues/56
|
|
5051
|
+
// However, dir should not be set on the top level container as it alters the dimensions of the target element in some browsers.
|
|
5052
|
+
|
|
5053
|
+
containerContainer.dir = "ltr";
|
|
5054
|
+
containerContainer.style.cssText = containerContainerStyle;
|
|
5055
|
+
containerContainer.className = detectionContainerClass;
|
|
5056
|
+
container.className = detectionContainerClass;
|
|
5057
|
+
container.style.cssText = containerStyle;
|
|
5058
|
+
expand.style.cssText = expandStyle;
|
|
5059
|
+
expandChild.style.cssText = expandChildStyle;
|
|
5060
|
+
shrink.style.cssText = shrinkStyle;
|
|
5061
|
+
shrinkChild.style.cssText = shrinkChildStyle;
|
|
5062
|
+
expand.appendChild(expandChild);
|
|
5063
|
+
shrink.appendChild(shrinkChild);
|
|
5064
|
+
container.appendChild(expand);
|
|
5065
|
+
container.appendChild(shrink);
|
|
5066
|
+
containerContainer.appendChild(container);
|
|
5067
|
+
rootContainer.appendChild(containerContainer);
|
|
5068
|
+
|
|
5069
|
+
function onExpandScroll() {
|
|
5070
|
+
var state = getState(element);
|
|
5071
|
+
|
|
5072
|
+
if (state && state.onExpand) {
|
|
5073
|
+
state.onExpand();
|
|
5074
|
+
} else {
|
|
5075
|
+
debug("Aborting expand scroll handler: element has been uninstalled");
|
|
5076
|
+
}
|
|
5077
|
+
}
|
|
5078
|
+
|
|
5079
|
+
function onShrinkScroll() {
|
|
5080
|
+
var state = getState(element);
|
|
5081
|
+
|
|
5082
|
+
if (state && state.onShrink) {
|
|
5083
|
+
state.onShrink();
|
|
5084
|
+
} else {
|
|
5085
|
+
debug("Aborting shrink scroll handler: element has been uninstalled");
|
|
5086
|
+
}
|
|
5087
|
+
}
|
|
5088
|
+
|
|
5089
|
+
addEvent(expand, "scroll", onExpandScroll);
|
|
5090
|
+
addEvent(shrink, "scroll", onShrinkScroll); // Store the event handlers here so that they may be removed when uninstall is called.
|
|
5091
|
+
// See uninstall function for an explanation why it is needed.
|
|
5092
|
+
|
|
5093
|
+
getState(element).onExpandScroll = onExpandScroll;
|
|
5094
|
+
getState(element).onShrinkScroll = onShrinkScroll;
|
|
5095
|
+
}
|
|
5096
|
+
|
|
5097
|
+
function registerListenersAndPositionElements() {
|
|
5098
|
+
function updateChildSizes(element, width, height) {
|
|
5099
|
+
var expandChild = getExpandChildElement(element);
|
|
5100
|
+
var expandWidth = getExpandWidth(width);
|
|
5101
|
+
var expandHeight = getExpandHeight(height);
|
|
5102
|
+
expandChild.style.setProperty("width", expandWidth + "px", options.important ? "important" : "");
|
|
5103
|
+
expandChild.style.setProperty("height", expandHeight + "px", options.important ? "important" : "");
|
|
5104
|
+
}
|
|
5105
|
+
|
|
5106
|
+
function updateDetectorElements(done) {
|
|
5107
|
+
var width = element.offsetWidth;
|
|
5108
|
+
var height = element.offsetHeight; // Check whether the size has actually changed since last time the algorithm ran. If not, some steps may be skipped.
|
|
5109
|
+
|
|
5110
|
+
var sizeChanged = width !== getState(element).lastWidth || height !== getState(element).lastHeight;
|
|
5111
|
+
debug("Storing current size", width, height); // Store the size of the element sync here, so that multiple scroll events may be ignored in the event listeners.
|
|
5112
|
+
// Otherwise the if-check in handleScroll is useless.
|
|
5113
|
+
|
|
5114
|
+
storeCurrentSize(element, width, height); // Since we delay the processing of the batch, there is a risk that uninstall has been called before the batch gets to execute.
|
|
5115
|
+
// Since there is no way to cancel the fn executions, we need to add an uninstall guard to all fns of the batch.
|
|
5116
|
+
|
|
5117
|
+
batchProcessor.add(0, function performUpdateChildSizes() {
|
|
5118
|
+
if (!sizeChanged) {
|
|
5119
|
+
return;
|
|
5120
|
+
}
|
|
5121
|
+
|
|
5122
|
+
if (!getState(element)) {
|
|
5123
|
+
debug("Aborting because element has been uninstalled");
|
|
5124
|
+
return;
|
|
5125
|
+
}
|
|
5126
|
+
|
|
5127
|
+
if (!areElementsInjected()) {
|
|
5128
|
+
debug("Aborting because element container has not been initialized");
|
|
5129
|
+
return;
|
|
5130
|
+
}
|
|
5131
|
+
|
|
5132
|
+
if (options.debug) {
|
|
5133
|
+
var w = element.offsetWidth;
|
|
5134
|
+
var h = element.offsetHeight;
|
|
5135
|
+
|
|
5136
|
+
if (w !== width || h !== height) {
|
|
5137
|
+
reporter.warn(idHandler.get(element), "Scroll: Size changed before updating detector elements.");
|
|
5138
|
+
}
|
|
5139
|
+
}
|
|
5140
|
+
|
|
5141
|
+
updateChildSizes(element, width, height);
|
|
5142
|
+
});
|
|
5143
|
+
batchProcessor.add(1, function updateScrollbars() {
|
|
5144
|
+
// This function needs to be invoked event though the size is unchanged. The element could have been resized very quickly and then
|
|
5145
|
+
// been restored to the original size, which will have changed the scrollbar positions.
|
|
5146
|
+
if (!getState(element)) {
|
|
5147
|
+
debug("Aborting because element has been uninstalled");
|
|
5148
|
+
return;
|
|
5149
|
+
}
|
|
5150
|
+
|
|
5151
|
+
if (!areElementsInjected()) {
|
|
5152
|
+
debug("Aborting because element container has not been initialized");
|
|
5153
|
+
return;
|
|
5154
|
+
}
|
|
5155
|
+
|
|
5156
|
+
positionScrollbars(element, width, height);
|
|
5157
|
+
});
|
|
5158
|
+
|
|
5159
|
+
if (sizeChanged && done) {
|
|
5160
|
+
batchProcessor.add(2, function () {
|
|
5161
|
+
if (!getState(element)) {
|
|
5162
|
+
debug("Aborting because element has been uninstalled");
|
|
5163
|
+
return;
|
|
5164
|
+
}
|
|
5165
|
+
|
|
5166
|
+
if (!areElementsInjected()) {
|
|
5167
|
+
debug("Aborting because element container has not been initialized");
|
|
5168
|
+
return;
|
|
5169
|
+
}
|
|
5170
|
+
|
|
5171
|
+
done();
|
|
5172
|
+
});
|
|
5173
|
+
}
|
|
5174
|
+
}
|
|
5175
|
+
|
|
5176
|
+
function areElementsInjected() {
|
|
5177
|
+
return !!getState(element).container;
|
|
5178
|
+
}
|
|
5179
|
+
|
|
5180
|
+
function notifyListenersIfNeeded() {
|
|
5181
|
+
function isFirstNotify() {
|
|
5182
|
+
return getState(element).lastNotifiedWidth === undefined;
|
|
5183
|
+
}
|
|
5184
|
+
|
|
5185
|
+
debug("notifyListenersIfNeeded invoked");
|
|
5186
|
+
var state = getState(element); // Don't notify if the current size is the start size, and this is the first notification.
|
|
5187
|
+
|
|
5188
|
+
if (isFirstNotify() && state.lastWidth === state.startSize.width && state.lastHeight === state.startSize.height) {
|
|
5189
|
+
return debug("Not notifying: Size is the same as the start size, and there has been no notification yet.");
|
|
5190
|
+
} // Don't notify if the size already has been notified.
|
|
5191
|
+
|
|
5192
|
+
|
|
5193
|
+
if (state.lastWidth === state.lastNotifiedWidth && state.lastHeight === state.lastNotifiedHeight) {
|
|
5194
|
+
return debug("Not notifying: Size already notified");
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5197
|
+
debug("Current size not notified, notifying...");
|
|
5198
|
+
state.lastNotifiedWidth = state.lastWidth;
|
|
5199
|
+
state.lastNotifiedHeight = state.lastHeight;
|
|
5200
|
+
forEach(getState(element).listeners, function (listener) {
|
|
5201
|
+
listener(element);
|
|
5202
|
+
});
|
|
5203
|
+
}
|
|
5204
|
+
|
|
5205
|
+
function handleRender() {
|
|
5206
|
+
debug("startanimation triggered.");
|
|
5207
|
+
|
|
5208
|
+
if (isUnrendered(element)) {
|
|
5209
|
+
debug("Ignoring since element is still unrendered...");
|
|
5210
|
+
return;
|
|
5211
|
+
}
|
|
5212
|
+
|
|
5213
|
+
debug("Element rendered.");
|
|
5214
|
+
var expand = getExpandElement(element);
|
|
5215
|
+
var shrink = getShrinkElement(element);
|
|
5216
|
+
|
|
5217
|
+
if (expand.scrollLeft === 0 || expand.scrollTop === 0 || shrink.scrollLeft === 0 || shrink.scrollTop === 0) {
|
|
5218
|
+
debug("Scrollbars out of sync. Updating detector elements...");
|
|
5219
|
+
updateDetectorElements(notifyListenersIfNeeded);
|
|
5220
|
+
}
|
|
5221
|
+
}
|
|
5222
|
+
|
|
5223
|
+
function handleScroll() {
|
|
5224
|
+
debug("Scroll detected.");
|
|
5225
|
+
|
|
5226
|
+
if (isUnrendered(element)) {
|
|
5227
|
+
// Element is still unrendered. Skip this scroll event.
|
|
5228
|
+
debug("Scroll event fired while unrendered. Ignoring...");
|
|
5229
|
+
return;
|
|
5230
|
+
}
|
|
5231
|
+
|
|
5232
|
+
updateDetectorElements(notifyListenersIfNeeded);
|
|
5233
|
+
}
|
|
5234
|
+
|
|
5235
|
+
debug("registerListenersAndPositionElements invoked.");
|
|
5236
|
+
|
|
5237
|
+
if (!getState(element)) {
|
|
5238
|
+
debug("Aborting because element has been uninstalled");
|
|
5239
|
+
return;
|
|
5240
|
+
}
|
|
5241
|
+
|
|
5242
|
+
getState(element).onRendered = handleRender;
|
|
5243
|
+
getState(element).onExpand = handleScroll;
|
|
5244
|
+
getState(element).onShrink = handleScroll;
|
|
5245
|
+
var style = getState(element).style;
|
|
5246
|
+
updateChildSizes(element, style.width, style.height);
|
|
5247
|
+
}
|
|
5248
|
+
|
|
5249
|
+
function finalizeDomMutation() {
|
|
5250
|
+
debug("finalizeDomMutation invoked.");
|
|
5251
|
+
|
|
5252
|
+
if (!getState(element)) {
|
|
5253
|
+
debug("Aborting because element has been uninstalled");
|
|
5254
|
+
return;
|
|
5255
|
+
}
|
|
5256
|
+
|
|
5257
|
+
var style = getState(element).style;
|
|
5258
|
+
storeCurrentSize(element, style.width, style.height);
|
|
5259
|
+
positionScrollbars(element, style.width, style.height);
|
|
5260
|
+
}
|
|
5261
|
+
|
|
5262
|
+
function ready() {
|
|
5263
|
+
callback(element);
|
|
5264
|
+
}
|
|
5265
|
+
|
|
5266
|
+
function install() {
|
|
5267
|
+
debug("Installing...");
|
|
5268
|
+
initListeners();
|
|
5269
|
+
storeStartSize();
|
|
5270
|
+
batchProcessor.add(0, storeStyle);
|
|
5271
|
+
batchProcessor.add(1, injectScrollElements);
|
|
5272
|
+
batchProcessor.add(2, registerListenersAndPositionElements);
|
|
5273
|
+
batchProcessor.add(3, finalizeDomMutation);
|
|
5274
|
+
batchProcessor.add(4, ready);
|
|
5275
|
+
}
|
|
5276
|
+
|
|
5277
|
+
debug("Making detectable...");
|
|
5278
|
+
|
|
5279
|
+
if (isDetached(element)) {
|
|
5280
|
+
debug("Element is detached");
|
|
5281
|
+
injectContainerElement();
|
|
5282
|
+
debug("Waiting until element is attached...");
|
|
5283
|
+
|
|
5284
|
+
getState(element).onRendered = function () {
|
|
5285
|
+
debug("Element is now attached");
|
|
5286
|
+
install();
|
|
5287
|
+
};
|
|
5288
|
+
} else {
|
|
5289
|
+
install();
|
|
5290
|
+
}
|
|
5291
|
+
}
|
|
5292
|
+
|
|
5293
|
+
function uninstall(element) {
|
|
5294
|
+
var state = getState(element);
|
|
5295
|
+
|
|
5296
|
+
if (!state) {
|
|
5297
|
+
// Uninstall has been called on a non-erd element.
|
|
5298
|
+
return;
|
|
5299
|
+
} // Uninstall may have been called in the following scenarios:
|
|
5300
|
+
// (1) Right between the sync code and async batch (here state.busy = true, but nothing have been registered or injected).
|
|
5301
|
+
// (2) In the ready callback of the last level of the batch by another element (here, state.busy = true, but all the stuff has been injected).
|
|
5302
|
+
// (3) After the installation process (here, state.busy = false and all the stuff has been injected).
|
|
5303
|
+
// So to be on the safe side, let's check for each thing before removing.
|
|
5304
|
+
// We need to remove the event listeners, because otherwise the event might fire on an uninstall element which results in an error when trying to get the state of the element.
|
|
5305
|
+
|
|
5306
|
+
|
|
5307
|
+
state.onExpandScroll && removeEvent(getExpandElement(element), "scroll", state.onExpandScroll);
|
|
5308
|
+
state.onShrinkScroll && removeEvent(getShrinkElement(element), "scroll", state.onShrinkScroll);
|
|
5309
|
+
state.onAnimationStart && removeEvent(state.container, "animationstart", state.onAnimationStart);
|
|
5310
|
+
state.container && element.removeChild(state.container);
|
|
5311
|
+
}
|
|
5312
|
+
|
|
5313
|
+
return {
|
|
5314
|
+
makeDetectable: makeDetectable,
|
|
5315
|
+
addListener: addListener,
|
|
5316
|
+
uninstall: uninstall,
|
|
5317
|
+
initDocument: initDocument
|
|
5318
|
+
};
|
|
5319
|
+
};
|
|
5320
|
+
|
|
5321
|
+
/***/ }),
|
|
5322
|
+
|
|
5323
|
+
/***/ 498:
|
|
5324
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5325
|
+
|
|
5326
|
+
"use strict";
|
|
5327
|
+
|
|
5328
|
+
|
|
5329
|
+
__webpack_require__(1703);
|
|
5330
|
+
|
|
5331
|
+
var forEach = (__webpack_require__(6495).forEach);
|
|
5332
|
+
|
|
5333
|
+
var elementUtilsMaker = __webpack_require__(1547);
|
|
5334
|
+
|
|
5335
|
+
var listenerHandlerMaker = __webpack_require__(284);
|
|
5336
|
+
|
|
5337
|
+
var idGeneratorMaker = __webpack_require__(9110);
|
|
5338
|
+
|
|
5339
|
+
var idHandlerMaker = __webpack_require__(535);
|
|
5340
|
+
|
|
5341
|
+
var reporterMaker = __webpack_require__(6256);
|
|
5342
|
+
|
|
5343
|
+
var browserDetector = __webpack_require__(2294);
|
|
5344
|
+
|
|
5345
|
+
var batchProcessorMaker = __webpack_require__(5365);
|
|
5346
|
+
|
|
5347
|
+
var stateHandler = __webpack_require__(7613); //Detection strategies.
|
|
5348
|
+
|
|
5349
|
+
|
|
5350
|
+
var objectStrategyMaker = __webpack_require__(9000);
|
|
5351
|
+
|
|
5352
|
+
var scrollStrategyMaker = __webpack_require__(1254);
|
|
5353
|
+
|
|
5354
|
+
function isCollection(obj) {
|
|
5355
|
+
return Array.isArray(obj) || obj.length !== undefined;
|
|
5356
|
+
}
|
|
5357
|
+
|
|
5358
|
+
function toArray(collection) {
|
|
5359
|
+
if (!Array.isArray(collection)) {
|
|
5360
|
+
var array = [];
|
|
5361
|
+
forEach(collection, function (obj) {
|
|
5362
|
+
array.push(obj);
|
|
5363
|
+
});
|
|
5364
|
+
return array;
|
|
5365
|
+
} else {
|
|
5366
|
+
return collection;
|
|
5367
|
+
}
|
|
5368
|
+
}
|
|
5369
|
+
|
|
5370
|
+
function isElement(obj) {
|
|
5371
|
+
return obj && obj.nodeType === 1;
|
|
5372
|
+
}
|
|
5373
|
+
/**
|
|
5374
|
+
* @typedef idHandler
|
|
5375
|
+
* @type {object}
|
|
5376
|
+
* @property {function} get Gets the resize detector id of the element.
|
|
5377
|
+
* @property {function} set Generate and sets the resize detector id of the element.
|
|
5378
|
+
*/
|
|
5379
|
+
|
|
5380
|
+
/**
|
|
5381
|
+
* @typedef Options
|
|
5382
|
+
* @type {object}
|
|
5383
|
+
* @property {boolean} callOnAdd Determines if listeners should be called when they are getting added.
|
|
5384
|
+
Default is true. If true, the listener is guaranteed to be called when it has been added.
|
|
5385
|
+
If false, the listener will not be guarenteed to be called when it has been added (does not prevent it from being called).
|
|
5386
|
+
* @property {idHandler} idHandler A custom id handler that is responsible for generating, setting and retrieving id's for elements.
|
|
5387
|
+
If not provided, a default id handler will be used.
|
|
5388
|
+
* @property {reporter} reporter A custom reporter that handles reporting logs, warnings and errors.
|
|
5389
|
+
If not provided, a default id handler will be used.
|
|
5390
|
+
If set to false, then nothing will be reported.
|
|
5391
|
+
* @property {boolean} debug If set to true, the the system will report debug messages as default for the listenTo method.
|
|
5392
|
+
*/
|
|
5393
|
+
|
|
5394
|
+
/**
|
|
5395
|
+
* Creates an element resize detector instance.
|
|
5396
|
+
* @public
|
|
5397
|
+
* @param {Options?} options Optional global options object that will decide how this instance will work.
|
|
5398
|
+
*/
|
|
5399
|
+
|
|
5400
|
+
|
|
5401
|
+
module.exports = function (options) {
|
|
5402
|
+
options = options || {}; //idHandler is currently not an option to the listenTo function, so it should not be added to globalOptions.
|
|
5403
|
+
|
|
5404
|
+
var idHandler;
|
|
5405
|
+
|
|
5406
|
+
if (options.idHandler) {
|
|
5407
|
+
// To maintain compatability with idHandler.get(element, readonly), make sure to wrap the given idHandler
|
|
5408
|
+
// so that readonly flag always is true when it's used here. This may be removed next major version bump.
|
|
5409
|
+
idHandler = {
|
|
5410
|
+
get: function (element) {
|
|
5411
|
+
return options.idHandler.get(element, true);
|
|
5412
|
+
},
|
|
5413
|
+
set: options.idHandler.set
|
|
5414
|
+
};
|
|
5415
|
+
} else {
|
|
5416
|
+
var idGenerator = idGeneratorMaker();
|
|
5417
|
+
var defaultIdHandler = idHandlerMaker({
|
|
5418
|
+
idGenerator: idGenerator,
|
|
5419
|
+
stateHandler: stateHandler
|
|
5420
|
+
});
|
|
5421
|
+
idHandler = defaultIdHandler;
|
|
5422
|
+
} //reporter is currently not an option to the listenTo function, so it should not be added to globalOptions.
|
|
5423
|
+
|
|
5424
|
+
|
|
5425
|
+
var reporter = options.reporter;
|
|
5426
|
+
|
|
5427
|
+
if (!reporter) {
|
|
5428
|
+
//If options.reporter is false, then the reporter should be quiet.
|
|
5429
|
+
var quiet = reporter === false;
|
|
5430
|
+
reporter = reporterMaker(quiet);
|
|
5431
|
+
} //batchProcessor is currently not an option to the listenTo function, so it should not be added to globalOptions.
|
|
5432
|
+
|
|
5433
|
+
|
|
5434
|
+
var batchProcessor = getOption(options, "batchProcessor", batchProcessorMaker({
|
|
5435
|
+
reporter: reporter
|
|
5436
|
+
})); //Options to be used as default for the listenTo function.
|
|
5437
|
+
|
|
5438
|
+
var globalOptions = {};
|
|
5439
|
+
globalOptions.callOnAdd = !!getOption(options, "callOnAdd", true);
|
|
5440
|
+
globalOptions.debug = !!getOption(options, "debug", false);
|
|
5441
|
+
var eventListenerHandler = listenerHandlerMaker(idHandler);
|
|
5442
|
+
var elementUtils = elementUtilsMaker({
|
|
5443
|
+
stateHandler: stateHandler
|
|
5444
|
+
}); //The detection strategy to be used.
|
|
5445
|
+
|
|
5446
|
+
var detectionStrategy;
|
|
5447
|
+
var desiredStrategy = getOption(options, "strategy", "object");
|
|
5448
|
+
var importantCssRules = getOption(options, "important", false);
|
|
5449
|
+
var strategyOptions = {
|
|
5450
|
+
reporter: reporter,
|
|
5451
|
+
batchProcessor: batchProcessor,
|
|
5452
|
+
stateHandler: stateHandler,
|
|
5453
|
+
idHandler: idHandler,
|
|
5454
|
+
important: importantCssRules
|
|
5455
|
+
};
|
|
5456
|
+
|
|
5457
|
+
if (desiredStrategy === "scroll") {
|
|
5458
|
+
if (browserDetector.isLegacyOpera()) {
|
|
5459
|
+
reporter.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy.");
|
|
5460
|
+
desiredStrategy = "object";
|
|
5461
|
+
} else if (browserDetector.isIE(9)) {
|
|
5462
|
+
reporter.warn("Scroll strategy is not supported on IE9. Changing to object strategy.");
|
|
5463
|
+
desiredStrategy = "object";
|
|
5464
|
+
}
|
|
5465
|
+
}
|
|
5466
|
+
|
|
5467
|
+
if (desiredStrategy === "scroll") {
|
|
5468
|
+
detectionStrategy = scrollStrategyMaker(strategyOptions);
|
|
5469
|
+
} else if (desiredStrategy === "object") {
|
|
5470
|
+
detectionStrategy = objectStrategyMaker(strategyOptions);
|
|
5471
|
+
} else {
|
|
5472
|
+
throw new Error("Invalid strategy name: " + desiredStrategy);
|
|
5473
|
+
} //Calls can be made to listenTo with elements that are still being installed.
|
|
5474
|
+
//Also, same elements can occur in the elements list in the listenTo function.
|
|
5475
|
+
//With this map, the ready callbacks can be synchronized between the calls
|
|
5476
|
+
//so that the ready callback can always be called when an element is ready - even if
|
|
5477
|
+
//it wasn't installed from the function itself.
|
|
5478
|
+
|
|
5479
|
+
|
|
5480
|
+
var onReadyCallbacks = {};
|
|
5481
|
+
/**
|
|
5482
|
+
* Makes the given elements resize-detectable and starts listening to resize events on the elements. Calls the event callback for each event for each element.
|
|
5483
|
+
* @public
|
|
5484
|
+
* @param {Options?} options Optional options object. These options will override the global options. Some options may not be overriden, such as idHandler.
|
|
5485
|
+
* @param {element[]|element} elements The given array of elements to detect resize events of. Single element is also valid.
|
|
5486
|
+
* @param {function} listener The callback to be executed for each resize event for each element.
|
|
5487
|
+
*/
|
|
5488
|
+
|
|
5489
|
+
function listenTo(options, elements, listener) {
|
|
5490
|
+
function onResizeCallback(element) {
|
|
5491
|
+
var listeners = eventListenerHandler.get(element);
|
|
5492
|
+
forEach(listeners, function callListenerProxy(listener) {
|
|
5493
|
+
listener(element);
|
|
5494
|
+
});
|
|
5495
|
+
}
|
|
5496
|
+
|
|
5497
|
+
function addListener(callOnAdd, element, listener) {
|
|
5498
|
+
eventListenerHandler.add(element, listener);
|
|
5499
|
+
|
|
5500
|
+
if (callOnAdd) {
|
|
5501
|
+
listener(element);
|
|
5502
|
+
}
|
|
5503
|
+
} //Options object may be omitted.
|
|
5504
|
+
|
|
5505
|
+
|
|
5506
|
+
if (!listener) {
|
|
5507
|
+
listener = elements;
|
|
5508
|
+
elements = options;
|
|
5509
|
+
options = {};
|
|
5510
|
+
}
|
|
5511
|
+
|
|
5512
|
+
if (!elements) {
|
|
5513
|
+
throw new Error("At least one element required.");
|
|
5514
|
+
}
|
|
5515
|
+
|
|
5516
|
+
if (!listener) {
|
|
5517
|
+
throw new Error("Listener required.");
|
|
5518
|
+
}
|
|
5519
|
+
|
|
5520
|
+
if (isElement(elements)) {
|
|
5521
|
+
// A single element has been passed in.
|
|
5522
|
+
elements = [elements];
|
|
5523
|
+
} else if (isCollection(elements)) {
|
|
5524
|
+
// Convert collection to array for plugins.
|
|
5525
|
+
// TODO: May want to check so that all the elements in the collection are valid elements.
|
|
5526
|
+
elements = toArray(elements);
|
|
5527
|
+
} else {
|
|
5528
|
+
return reporter.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");
|
|
5529
|
+
}
|
|
5530
|
+
|
|
5531
|
+
var elementsReady = 0;
|
|
5532
|
+
var callOnAdd = getOption(options, "callOnAdd", globalOptions.callOnAdd);
|
|
5533
|
+
var onReadyCallback = getOption(options, "onReady", function noop() {});
|
|
5534
|
+
var debug = getOption(options, "debug", globalOptions.debug);
|
|
5535
|
+
forEach(elements, function attachListenerToElement(element) {
|
|
5536
|
+
if (!stateHandler.getState(element)) {
|
|
5537
|
+
stateHandler.initState(element);
|
|
5538
|
+
idHandler.set(element);
|
|
5539
|
+
}
|
|
5540
|
+
|
|
5541
|
+
var id = idHandler.get(element);
|
|
5542
|
+
debug && reporter.log("Attaching listener to element", id, element);
|
|
5543
|
+
|
|
5544
|
+
if (!elementUtils.isDetectable(element)) {
|
|
5545
|
+
debug && reporter.log(id, "Not detectable.");
|
|
5546
|
+
|
|
5547
|
+
if (elementUtils.isBusy(element)) {
|
|
5548
|
+
debug && reporter.log(id, "System busy making it detectable"); //The element is being prepared to be detectable. Do not make it detectable.
|
|
5549
|
+
//Just add the listener, because the element will soon be detectable.
|
|
5550
|
+
|
|
5551
|
+
addListener(callOnAdd, element, listener);
|
|
5552
|
+
onReadyCallbacks[id] = onReadyCallbacks[id] || [];
|
|
5553
|
+
onReadyCallbacks[id].push(function onReady() {
|
|
5554
|
+
elementsReady++;
|
|
5555
|
+
|
|
5556
|
+
if (elementsReady === elements.length) {
|
|
5557
|
+
onReadyCallback();
|
|
5558
|
+
}
|
|
5559
|
+
});
|
|
5560
|
+
return;
|
|
5561
|
+
}
|
|
5562
|
+
|
|
5563
|
+
debug && reporter.log(id, "Making detectable..."); //The element is not prepared to be detectable, so do prepare it and add a listener to it.
|
|
5564
|
+
|
|
5565
|
+
elementUtils.markBusy(element, true);
|
|
5566
|
+
return detectionStrategy.makeDetectable({
|
|
5567
|
+
debug: debug,
|
|
5568
|
+
important: importantCssRules
|
|
5569
|
+
}, element, function onElementDetectable(element) {
|
|
5570
|
+
debug && reporter.log(id, "onElementDetectable");
|
|
5571
|
+
|
|
5572
|
+
if (stateHandler.getState(element)) {
|
|
5573
|
+
elementUtils.markAsDetectable(element);
|
|
5574
|
+
elementUtils.markBusy(element, false);
|
|
5575
|
+
detectionStrategy.addListener(element, onResizeCallback);
|
|
5576
|
+
addListener(callOnAdd, element, listener); // Since the element size might have changed since the call to "listenTo", we need to check for this change,
|
|
5577
|
+
// so that a resize event may be emitted.
|
|
5578
|
+
// Having the startSize object is optional (since it does not make sense in some cases such as unrendered elements), so check for its existance before.
|
|
5579
|
+
// Also, check the state existance before since the element may have been uninstalled in the installation process.
|
|
5580
|
+
|
|
5581
|
+
var state = stateHandler.getState(element);
|
|
5582
|
+
|
|
5583
|
+
if (state && state.startSize) {
|
|
5584
|
+
var width = element.offsetWidth;
|
|
5585
|
+
var height = element.offsetHeight;
|
|
5586
|
+
|
|
5587
|
+
if (state.startSize.width !== width || state.startSize.height !== height) {
|
|
5588
|
+
onResizeCallback(element);
|
|
5589
|
+
}
|
|
5590
|
+
}
|
|
5591
|
+
|
|
5592
|
+
if (onReadyCallbacks[id]) {
|
|
5593
|
+
forEach(onReadyCallbacks[id], function (callback) {
|
|
5594
|
+
callback();
|
|
5595
|
+
});
|
|
5596
|
+
}
|
|
5597
|
+
} else {
|
|
5598
|
+
// The element has been unisntalled before being detectable.
|
|
5599
|
+
debug && reporter.log(id, "Element uninstalled before being detectable.");
|
|
5600
|
+
}
|
|
5601
|
+
|
|
5602
|
+
delete onReadyCallbacks[id];
|
|
5603
|
+
elementsReady++;
|
|
5604
|
+
|
|
5605
|
+
if (elementsReady === elements.length) {
|
|
5606
|
+
onReadyCallback();
|
|
5607
|
+
}
|
|
5608
|
+
});
|
|
5609
|
+
}
|
|
5610
|
+
|
|
5611
|
+
debug && reporter.log(id, "Already detecable, adding listener."); //The element has been prepared to be detectable and is ready to be listened to.
|
|
5612
|
+
|
|
5613
|
+
addListener(callOnAdd, element, listener);
|
|
5614
|
+
elementsReady++;
|
|
5615
|
+
});
|
|
5616
|
+
|
|
5617
|
+
if (elementsReady === elements.length) {
|
|
5618
|
+
onReadyCallback();
|
|
5619
|
+
}
|
|
5620
|
+
}
|
|
5621
|
+
|
|
5622
|
+
function uninstall(elements) {
|
|
5623
|
+
if (!elements) {
|
|
5624
|
+
return reporter.error("At least one element is required.");
|
|
5625
|
+
}
|
|
5626
|
+
|
|
5627
|
+
if (isElement(elements)) {
|
|
5628
|
+
// A single element has been passed in.
|
|
5629
|
+
elements = [elements];
|
|
5630
|
+
} else if (isCollection(elements)) {
|
|
5631
|
+
// Convert collection to array for plugins.
|
|
5632
|
+
// TODO: May want to check so that all the elements in the collection are valid elements.
|
|
5633
|
+
elements = toArray(elements);
|
|
5634
|
+
} else {
|
|
5635
|
+
return reporter.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");
|
|
5636
|
+
}
|
|
5637
|
+
|
|
5638
|
+
forEach(elements, function (element) {
|
|
5639
|
+
eventListenerHandler.removeAllListeners(element);
|
|
5640
|
+
detectionStrategy.uninstall(element);
|
|
5641
|
+
stateHandler.cleanState(element);
|
|
5642
|
+
});
|
|
5643
|
+
}
|
|
5644
|
+
|
|
5645
|
+
function initDocument(targetDocument) {
|
|
5646
|
+
detectionStrategy.initDocument && detectionStrategy.initDocument(targetDocument);
|
|
5647
|
+
}
|
|
5648
|
+
|
|
5649
|
+
return {
|
|
5650
|
+
listenTo: listenTo,
|
|
5651
|
+
removeListener: eventListenerHandler.removeListener,
|
|
5652
|
+
removeAllListeners: eventListenerHandler.removeAllListeners,
|
|
5653
|
+
uninstall: uninstall,
|
|
5654
|
+
initDocument: initDocument
|
|
5655
|
+
};
|
|
5656
|
+
};
|
|
5657
|
+
|
|
5658
|
+
function getOption(options, name, defaultValue) {
|
|
5659
|
+
var value = options[name];
|
|
5660
|
+
|
|
5661
|
+
if ((value === undefined || value === null) && defaultValue !== undefined) {
|
|
5662
|
+
return defaultValue;
|
|
5663
|
+
}
|
|
5664
|
+
|
|
5665
|
+
return value;
|
|
5666
|
+
}
|
|
5667
|
+
|
|
5668
|
+
/***/ }),
|
|
5669
|
+
|
|
5670
|
+
/***/ 1547:
|
|
5671
|
+
/***/ (function(module) {
|
|
5672
|
+
|
|
5673
|
+
"use strict";
|
|
5674
|
+
|
|
5675
|
+
|
|
5676
|
+
module.exports = function (options) {
|
|
5677
|
+
var getState = options.stateHandler.getState;
|
|
5678
|
+
/**
|
|
5679
|
+
* Tells if the element has been made detectable and ready to be listened for resize events.
|
|
5680
|
+
* @public
|
|
5681
|
+
* @param {element} The element to check.
|
|
5682
|
+
* @returns {boolean} True or false depending on if the element is detectable or not.
|
|
5683
|
+
*/
|
|
5684
|
+
|
|
5685
|
+
function isDetectable(element) {
|
|
5686
|
+
var state = getState(element);
|
|
5687
|
+
return state && !!state.isDetectable;
|
|
5688
|
+
}
|
|
5689
|
+
/**
|
|
5690
|
+
* Marks the element that it has been made detectable and ready to be listened for resize events.
|
|
5691
|
+
* @public
|
|
5692
|
+
* @param {element} The element to mark.
|
|
5693
|
+
*/
|
|
5694
|
+
|
|
5695
|
+
|
|
5696
|
+
function markAsDetectable(element) {
|
|
5697
|
+
getState(element).isDetectable = true;
|
|
5698
|
+
}
|
|
5699
|
+
/**
|
|
5700
|
+
* Tells if the element is busy or not.
|
|
5701
|
+
* @public
|
|
5702
|
+
* @param {element} The element to check.
|
|
5703
|
+
* @returns {boolean} True or false depending on if the element is busy or not.
|
|
5704
|
+
*/
|
|
5705
|
+
|
|
5706
|
+
|
|
5707
|
+
function isBusy(element) {
|
|
5708
|
+
return !!getState(element).busy;
|
|
5709
|
+
}
|
|
5710
|
+
/**
|
|
5711
|
+
* Marks the object is busy and should not be made detectable.
|
|
5712
|
+
* @public
|
|
5713
|
+
* @param {element} element The element to mark.
|
|
5714
|
+
* @param {boolean} busy If the element is busy or not.
|
|
5715
|
+
*/
|
|
5716
|
+
|
|
5717
|
+
|
|
5718
|
+
function markBusy(element, busy) {
|
|
5719
|
+
getState(element).busy = !!busy;
|
|
5720
|
+
}
|
|
5721
|
+
|
|
5722
|
+
return {
|
|
5723
|
+
isDetectable: isDetectable,
|
|
5724
|
+
markAsDetectable: markAsDetectable,
|
|
5725
|
+
isBusy: isBusy,
|
|
5726
|
+
markBusy: markBusy
|
|
5727
|
+
};
|
|
5728
|
+
};
|
|
5729
|
+
|
|
5730
|
+
/***/ }),
|
|
5731
|
+
|
|
5732
|
+
/***/ 9110:
|
|
5733
|
+
/***/ (function(module) {
|
|
5734
|
+
|
|
5735
|
+
"use strict";
|
|
5736
|
+
|
|
5737
|
+
|
|
5738
|
+
module.exports = function () {
|
|
5739
|
+
var idCount = 1;
|
|
5740
|
+
/**
|
|
5741
|
+
* Generates a new unique id in the context.
|
|
5742
|
+
* @public
|
|
5743
|
+
* @returns {number} A unique id in the context.
|
|
5744
|
+
*/
|
|
5745
|
+
|
|
5746
|
+
function generate() {
|
|
5747
|
+
return idCount++;
|
|
5748
|
+
}
|
|
5749
|
+
|
|
5750
|
+
return {
|
|
5751
|
+
generate: generate
|
|
5752
|
+
};
|
|
5753
|
+
};
|
|
5754
|
+
|
|
5755
|
+
/***/ }),
|
|
5756
|
+
|
|
5757
|
+
/***/ 535:
|
|
5758
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5759
|
+
|
|
5760
|
+
"use strict";
|
|
5761
|
+
|
|
5762
|
+
|
|
5763
|
+
__webpack_require__(1703);
|
|
5764
|
+
|
|
5765
|
+
module.exports = function (options) {
|
|
5766
|
+
var idGenerator = options.idGenerator;
|
|
5767
|
+
var getState = options.stateHandler.getState;
|
|
5768
|
+
/**
|
|
5769
|
+
* Gets the resize detector id of the element.
|
|
5770
|
+
* @public
|
|
5771
|
+
* @param {element} element The target element to get the id of.
|
|
5772
|
+
* @returns {string|number|null} The id of the element. Null if it has no id.
|
|
5773
|
+
*/
|
|
5774
|
+
|
|
5775
|
+
function getId(element) {
|
|
5776
|
+
var state = getState(element);
|
|
5777
|
+
|
|
5778
|
+
if (state && state.id !== undefined) {
|
|
5779
|
+
return state.id;
|
|
5780
|
+
}
|
|
5781
|
+
|
|
5782
|
+
return null;
|
|
5783
|
+
}
|
|
5784
|
+
/**
|
|
5785
|
+
* Sets the resize detector id of the element. Requires the element to have a resize detector state initialized.
|
|
5786
|
+
* @public
|
|
5787
|
+
* @param {element} element The target element to set the id of.
|
|
5788
|
+
* @returns {string|number|null} The id of the element.
|
|
5789
|
+
*/
|
|
5790
|
+
|
|
5791
|
+
|
|
5792
|
+
function setId(element) {
|
|
5793
|
+
var state = getState(element);
|
|
5794
|
+
|
|
5795
|
+
if (!state) {
|
|
5796
|
+
throw new Error("setId required the element to have a resize detection state.");
|
|
5797
|
+
}
|
|
5798
|
+
|
|
5799
|
+
var id = idGenerator.generate();
|
|
5800
|
+
state.id = id;
|
|
5801
|
+
return id;
|
|
5802
|
+
}
|
|
5803
|
+
|
|
5804
|
+
return {
|
|
5805
|
+
get: getId,
|
|
5806
|
+
set: setId
|
|
5807
|
+
};
|
|
5808
|
+
};
|
|
5809
|
+
|
|
5810
|
+
/***/ }),
|
|
5811
|
+
|
|
5812
|
+
/***/ 284:
|
|
5813
|
+
/***/ (function(module) {
|
|
5814
|
+
|
|
5815
|
+
"use strict";
|
|
5816
|
+
|
|
5817
|
+
|
|
5818
|
+
module.exports = function (idHandler) {
|
|
5819
|
+
var eventListeners = {};
|
|
5820
|
+
/**
|
|
5821
|
+
* Gets all listeners for the given element.
|
|
5822
|
+
* @public
|
|
5823
|
+
* @param {element} element The element to get all listeners for.
|
|
5824
|
+
* @returns All listeners for the given element.
|
|
5825
|
+
*/
|
|
5826
|
+
|
|
5827
|
+
function getListeners(element) {
|
|
5828
|
+
var id = idHandler.get(element);
|
|
5829
|
+
|
|
5830
|
+
if (id === undefined) {
|
|
5831
|
+
return [];
|
|
5832
|
+
}
|
|
5833
|
+
|
|
5834
|
+
return eventListeners[id] || [];
|
|
5835
|
+
}
|
|
5836
|
+
/**
|
|
5837
|
+
* Stores the given listener for the given element. Will not actually add the listener to the element.
|
|
5838
|
+
* @public
|
|
5839
|
+
* @param {element} element The element that should have the listener added.
|
|
5840
|
+
* @param {function} listener The callback that the element has added.
|
|
5841
|
+
*/
|
|
5842
|
+
|
|
5843
|
+
|
|
5844
|
+
function addListener(element, listener) {
|
|
5845
|
+
var id = idHandler.get(element);
|
|
5846
|
+
|
|
5847
|
+
if (!eventListeners[id]) {
|
|
5848
|
+
eventListeners[id] = [];
|
|
5849
|
+
}
|
|
5850
|
+
|
|
5851
|
+
eventListeners[id].push(listener);
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5854
|
+
function removeListener(element, listener) {
|
|
5855
|
+
var listeners = getListeners(element);
|
|
5856
|
+
|
|
5857
|
+
for (var i = 0, len = listeners.length; i < len; ++i) {
|
|
5858
|
+
if (listeners[i] === listener) {
|
|
5859
|
+
listeners.splice(i, 1);
|
|
5860
|
+
break;
|
|
5861
|
+
}
|
|
5862
|
+
}
|
|
5863
|
+
}
|
|
5864
|
+
|
|
5865
|
+
function removeAllListeners(element) {
|
|
5866
|
+
var listeners = getListeners(element);
|
|
5867
|
+
|
|
5868
|
+
if (!listeners) {
|
|
5869
|
+
return;
|
|
5870
|
+
}
|
|
5871
|
+
|
|
5872
|
+
listeners.length = 0;
|
|
5873
|
+
}
|
|
5874
|
+
|
|
5875
|
+
return {
|
|
5876
|
+
get: getListeners,
|
|
5877
|
+
add: addListener,
|
|
5878
|
+
removeListener: removeListener,
|
|
5879
|
+
removeAllListeners: removeAllListeners
|
|
5880
|
+
};
|
|
5881
|
+
};
|
|
5882
|
+
|
|
5883
|
+
/***/ }),
|
|
5884
|
+
|
|
5885
|
+
/***/ 6256:
|
|
5886
|
+
/***/ (function(module) {
|
|
5887
|
+
|
|
5888
|
+
"use strict";
|
|
5889
|
+
|
|
5890
|
+
/* global console: false */
|
|
5891
|
+
|
|
5892
|
+
/**
|
|
5893
|
+
* Reporter that handles the reporting of logs, warnings and errors.
|
|
5894
|
+
* @public
|
|
5895
|
+
* @param {boolean} quiet Tells if the reporter should be quiet or not.
|
|
5896
|
+
*/
|
|
5897
|
+
|
|
5898
|
+
module.exports = function (quiet) {
|
|
5899
|
+
function noop() {//Does nothing.
|
|
5900
|
+
}
|
|
5901
|
+
|
|
5902
|
+
var reporter = {
|
|
5903
|
+
log: noop,
|
|
5904
|
+
warn: noop,
|
|
5905
|
+
error: noop
|
|
5906
|
+
};
|
|
5907
|
+
|
|
5908
|
+
if (!quiet && window.console) {
|
|
5909
|
+
var attachFunction = function (reporter, name) {
|
|
5910
|
+
//The proxy is needed to be able to call the method with the console context,
|
|
5911
|
+
//since we cannot use bind.
|
|
5912
|
+
reporter[name] = function reporterProxy() {
|
|
5913
|
+
var f = console[name];
|
|
5914
|
+
|
|
5915
|
+
if (f.apply) {
|
|
5916
|
+
//IE9 does not support console.log.apply :)
|
|
5917
|
+
f.apply(console, arguments);
|
|
5918
|
+
} else {
|
|
5919
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
5920
|
+
f(arguments[i]);
|
|
5921
|
+
}
|
|
5922
|
+
}
|
|
5923
|
+
};
|
|
5924
|
+
};
|
|
5925
|
+
|
|
5926
|
+
attachFunction(reporter, "log");
|
|
5927
|
+
attachFunction(reporter, "warn");
|
|
5928
|
+
attachFunction(reporter, "error");
|
|
5929
|
+
}
|
|
5930
|
+
|
|
5931
|
+
return reporter;
|
|
5932
|
+
};
|
|
5933
|
+
|
|
5934
|
+
/***/ }),
|
|
5935
|
+
|
|
5936
|
+
/***/ 7613:
|
|
5937
|
+
/***/ (function(module) {
|
|
5938
|
+
|
|
5939
|
+
"use strict";
|
|
5940
|
+
|
|
5941
|
+
|
|
5942
|
+
var prop = "_erd";
|
|
5943
|
+
|
|
5944
|
+
function initState(element) {
|
|
5945
|
+
element[prop] = {};
|
|
5946
|
+
return getState(element);
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5949
|
+
function getState(element) {
|
|
5950
|
+
return element[prop];
|
|
5951
|
+
}
|
|
5952
|
+
|
|
5953
|
+
function cleanState(element) {
|
|
5954
|
+
delete element[prop];
|
|
5955
|
+
}
|
|
5956
|
+
|
|
5957
|
+
module.exports = {
|
|
5958
|
+
initState: initState,
|
|
5959
|
+
getState: getState,
|
|
5960
|
+
cleanState: cleanState
|
|
5961
|
+
};
|
|
5962
|
+
|
|
5963
|
+
/***/ }),
|
|
5964
|
+
|
|
4177
5965
|
/***/ 2495:
|
|
4178
5966
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4179
5967
|
|
|
@@ -85317,18 +87105,18 @@ packages_form.install = function (Vue) {
|
|
|
85317
87105
|
|
|
85318
87106
|
|
|
85319
87107
|
/* harmony default export */ var packages_form_0 = (packages_form);
|
|
85320
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-base.vue?vue&type=template&id=
|
|
87108
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-base.vue?vue&type=template&id=bb47cbb8&scoped=true
|
|
85321
87109
|
/* unplugin-vue-components disabled */
|
|
85322
87110
|
|
|
85323
|
-
const
|
|
87111
|
+
const table_basevue_type_template_id_bb47cbb8_scoped_true_withScopeId = n => (_pushScopeId("data-v-bb47cbb8"), n = n(), _popScopeId(), n);
|
|
85324
87112
|
|
|
85325
|
-
const
|
|
87113
|
+
const table_basevue_type_template_id_bb47cbb8_scoped_true_hoisted_1 = {
|
|
85326
87114
|
key: 0,
|
|
85327
87115
|
style: {
|
|
85328
87116
|
"position": "relative"
|
|
85329
87117
|
}
|
|
85330
87118
|
};
|
|
85331
|
-
function
|
|
87119
|
+
function table_basevue_type_template_id_bb47cbb8_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
85332
87120
|
const _component_vxe_toolbar = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-toolbar");
|
|
85333
87121
|
|
|
85334
87122
|
const _component_vxe_column = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-column");
|
|
@@ -85343,7 +87131,7 @@ function table_basevue_type_template_id_9433e080_scoped_true_render(_ctx, _cache
|
|
|
85343
87131
|
|
|
85344
87132
|
const _component_vxe_table = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-table");
|
|
85345
87133
|
|
|
85346
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, [_ctx.isTool ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
87134
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, [_ctx.isTool ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", table_basevue_type_template_id_bb47cbb8_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_toolbar, {
|
|
85347
87135
|
class: "jt-toolbar",
|
|
85348
87136
|
ref: "jtToolbarRef",
|
|
85349
87137
|
custom: {
|
|
@@ -85411,18 +87199,19 @@ function table_basevue_type_template_id_9433e080_scoped_true_render(_ctx, _cache
|
|
|
85411
87199
|
_: 3
|
|
85412
87200
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_table_handler_column, {
|
|
85413
87201
|
data: _ctx.data[0],
|
|
85414
|
-
onHandlerColClick: _ctx.handlerColClick
|
|
85415
|
-
|
|
87202
|
+
onHandlerColClick: _ctx.handlerColClick,
|
|
87203
|
+
"show-btn": _ctx.showBtn
|
|
87204
|
+
}, null, 8, ["data", "onHandlerColClick", "show-btn"])]),
|
|
85416
87205
|
_: 3
|
|
85417
87206
|
}, 16, ["class", "sort-config", "show-footer", "footer-method", "footer-span-method", "data", "stripe", "span-method", "onCheckboxChange", "onCheckboxAll", "onRadioChange", "onCellClick", "onKeydown"])], 64);
|
|
85418
87207
|
}
|
|
85419
|
-
;// CONCATENATED MODULE: ./packages/tables/table-base.vue?vue&type=template&id=
|
|
87208
|
+
;// CONCATENATED MODULE: ./packages/tables/table-base.vue?vue&type=template&id=bb47cbb8&scoped=true
|
|
85420
87209
|
/* unplugin-vue-components disabled */
|
|
85421
87210
|
;// CONCATENATED MODULE: ./packages/tables/publicProps.js
|
|
85422
87211
|
/*
|
|
85423
87212
|
* @Author: leevan
|
|
85424
87213
|
* @Date: 2022-07-01 13:48:04
|
|
85425
|
-
* @LastEditTime: 2023-
|
|
87214
|
+
* @LastEditTime: 2023-11-10 11:25:39
|
|
85426
87215
|
* @LastEditors: leevan
|
|
85427
87216
|
* @FilePath: /jtui3.0/packages/tables/publicProps.js
|
|
85428
87217
|
*/
|
|
@@ -85539,6 +87328,11 @@ function table_basevue_type_template_id_9433e080_scoped_true_render(_ctx, _cache
|
|
|
85539
87328
|
type: Boolean,
|
|
85540
87329
|
default: false
|
|
85541
87330
|
},
|
|
87331
|
+
//按钮隐藏:
|
|
87332
|
+
showBtn: {
|
|
87333
|
+
type: Function,
|
|
87334
|
+
default: () => true
|
|
87335
|
+
},
|
|
85542
87336
|
axios: {
|
|
85543
87337
|
type: Function
|
|
85544
87338
|
}
|
|
@@ -92155,20 +93949,20 @@ const ElDropdownMenu = withNoopInstall(DropdownMenu);
|
|
|
92155
93949
|
|
|
92156
93950
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/button/style/css.mjs
|
|
92157
93951
|
|
|
92158
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/components/table-handler-column.vue?vue&type=template&id=
|
|
93952
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/components/table-handler-column.vue?vue&type=template&id=ca1ea180
|
|
92159
93953
|
/* unplugin-vue-components disabled */
|
|
92160
93954
|
|
|
92161
93955
|
|
|
92162
93956
|
|
|
92163
93957
|
|
|
92164
93958
|
|
|
92165
|
-
const
|
|
93959
|
+
const table_handler_columnvue_type_template_id_ca1ea180_hoisted_1 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)(" 更多操作");
|
|
92166
93960
|
|
|
92167
|
-
const
|
|
93961
|
+
const table_handler_columnvue_type_template_id_ca1ea180_hoisted_2 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("i", {
|
|
92168
93962
|
class: "jtIcon iconjiantouxia el-icon--right"
|
|
92169
93963
|
}, null, -1);
|
|
92170
93964
|
|
|
92171
|
-
function
|
|
93965
|
+
function table_handler_columnvue_type_template_id_ca1ea180_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92172
93966
|
const _component_el_button = ElButton;
|
|
92173
93967
|
|
|
92174
93968
|
const _component_el_dropdown_item = ElDropdownItem;
|
|
@@ -92217,14 +94011,14 @@ function table_handler_columnvue_type_template_id_1954c48c_render(_ctx, _cache,
|
|
|
92217
94011
|
size: "small",
|
|
92218
94012
|
type: "primary"
|
|
92219
94013
|
}, {
|
|
92220
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
94014
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [table_handler_columnvue_type_template_id_ca1ea180_hoisted_1, table_handler_columnvue_type_template_id_ca1ea180_hoisted_2]),
|
|
92221
94015
|
_: 1
|
|
92222
94016
|
})]),
|
|
92223
94017
|
_: 2
|
|
92224
94018
|
}, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), !$setup.handlerConfig.btnGroup ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, {
|
|
92225
94019
|
key: 1
|
|
92226
94020
|
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)($props.data.retjson.inBottons, (item, index) => {
|
|
92227
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_button, {
|
|
94021
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_button, {
|
|
92228
94022
|
type: "primary",
|
|
92229
94023
|
link: "",
|
|
92230
94024
|
key: index,
|
|
@@ -92246,7 +94040,7 @@ function table_handler_columnvue_type_template_id_1954c48c_render(_ctx, _cache,
|
|
|
92246
94040
|
})
|
|
92247
94041
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.name), 5)]),
|
|
92248
94042
|
_: 2
|
|
92249
|
-
}, 1032, ["disabled", "onClick", "style"]);
|
|
94043
|
+
}, 1032, ["disabled", "onClick", "style"])), [[external_commonjs_vue_commonjs2_vue_root_Vue_.vShow, $props.showBtn(row, item.funcode)]]);
|
|
92250
94044
|
}), 128)), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderList)(row.inBottons, (item, index) => {
|
|
92251
94045
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withDirectives)(((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_button, {
|
|
92252
94046
|
link: "",
|
|
@@ -92273,13 +94067,13 @@ function table_handler_columnvue_type_template_id_1954c48c_render(_ctx, _cache,
|
|
|
92273
94067
|
_: 1
|
|
92274
94068
|
}, 8, ["visible", "align", "width", "fixed"]);
|
|
92275
94069
|
}
|
|
92276
|
-
;// CONCATENATED MODULE: ./packages/tables/components/table-handler-column.vue?vue&type=template&id=
|
|
94070
|
+
;// CONCATENATED MODULE: ./packages/tables/components/table-handler-column.vue?vue&type=template&id=ca1ea180
|
|
92277
94071
|
/* unplugin-vue-components disabled */
|
|
92278
94072
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/components/table-handler-column.vue?vue&type=script&lang=js
|
|
92279
94073
|
/* unplugin-vue-components disabled */
|
|
92280
94074
|
/* harmony default export */ var table_handler_columnvue_type_script_lang_js = ({
|
|
92281
94075
|
name: "table-handler-column",
|
|
92282
|
-
props: ['data'],
|
|
94076
|
+
props: ['data', 'showBtn'],
|
|
92283
94077
|
|
|
92284
94078
|
setup(props, {
|
|
92285
94079
|
emit
|
|
@@ -92323,7 +94117,7 @@ function table_handler_columnvue_type_template_id_1954c48c_render(_ctx, _cache,
|
|
|
92323
94117
|
|
|
92324
94118
|
|
|
92325
94119
|
;
|
|
92326
|
-
const table_handler_column_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(table_handler_columnvue_type_script_lang_js, [['render',
|
|
94120
|
+
const table_handler_column_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(table_handler_columnvue_type_script_lang_js, [['render',table_handler_columnvue_type_template_id_ca1ea180_render]])
|
|
92327
94121
|
|
|
92328
94122
|
/* harmony default export */ var table_handler_column = (table_handler_column_exports_);
|
|
92329
94123
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/components/table-expand-row.vue?vue&type=template&id=4b24c7d8
|
|
@@ -92486,9 +94280,9 @@ const table_basevue_type_script_lang_js_default_ = {
|
|
|
92486
94280
|
|
|
92487
94281
|
const table_basevue_type_script_lang_js_injectCSSVars_ = () => {
|
|
92488
94282
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(_ctx => ({
|
|
92489
|
-
"
|
|
92490
|
-
"
|
|
92491
|
-
"
|
|
94283
|
+
"115f6cc0": _ctx.headerBg,
|
|
94284
|
+
"b66f5140": _ctx.stripeBg,
|
|
94285
|
+
"26a23b70": _ctx.currentBg
|
|
92492
94286
|
}));
|
|
92493
94287
|
};
|
|
92494
94288
|
|
|
@@ -92501,10 +94295,10 @@ table_basevue_type_script_lang_js_default_.setup = table_basevue_type_script_lan
|
|
|
92501
94295
|
/* harmony default export */ var table_basevue_type_script_lang_js = (table_basevue_type_script_lang_js_default_);
|
|
92502
94296
|
;// CONCATENATED MODULE: ./packages/tables/table-base.vue?vue&type=script&lang=js
|
|
92503
94297
|
/* unplugin-vue-components disabled */
|
|
92504
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-base.vue?vue&type=style&index=0&id=
|
|
94298
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-base.vue?vue&type=style&index=0&id=bb47cbb8&lang=scss&scoped=true
|
|
92505
94299
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
92506
94300
|
|
|
92507
|
-
;// CONCATENATED MODULE: ./packages/tables/table-base.vue?vue&type=style&index=0&id=
|
|
94301
|
+
;// CONCATENATED MODULE: ./packages/tables/table-base.vue?vue&type=style&index=0&id=bb47cbb8&lang=scss&scoped=true
|
|
92508
94302
|
/* unplugin-vue-components disabled */
|
|
92509
94303
|
;// CONCATENATED MODULE: ./packages/tables/table-base.vue
|
|
92510
94304
|
/* unplugin-vue-components disabled */
|
|
@@ -92514,12 +94308,12 @@ table_basevue_type_script_lang_js_default_.setup = table_basevue_type_script_lan
|
|
|
92514
94308
|
;
|
|
92515
94309
|
|
|
92516
94310
|
|
|
92517
|
-
const table_base_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(table_basevue_type_script_lang_js, [['render',
|
|
94311
|
+
const table_base_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(table_basevue_type_script_lang_js, [['render',table_basevue_type_template_id_bb47cbb8_scoped_true_render],['__scopeId',"data-v-bb47cbb8"]])
|
|
92518
94312
|
|
|
92519
94313
|
/* harmony default export */ var table_base = (table_base_exports_);
|
|
92520
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-group.vue?vue&type=template&id=
|
|
94314
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-group.vue?vue&type=template&id=7d725444&scoped=true
|
|
92521
94315
|
/* unplugin-vue-components disabled */
|
|
92522
|
-
function
|
|
94316
|
+
function table_groupvue_type_template_id_7d725444_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92523
94317
|
const _component_vxe_table_column = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-table-column");
|
|
92524
94318
|
|
|
92525
94319
|
const _component_vxe_column = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-column");
|
|
@@ -92566,12 +94360,13 @@ function table_groupvue_type_template_id_a69147b6_scoped_true_render(_ctx, _cach
|
|
|
92566
94360
|
}), null, 16, ["tree-node", "cellRender", "align"]);
|
|
92567
94361
|
}), 128)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_table_handler_column, {
|
|
92568
94362
|
data: _ctx.data[0],
|
|
92569
|
-
onHandlerColClick: _ctx.handlerColClick
|
|
92570
|
-
|
|
94363
|
+
onHandlerColClick: _ctx.handlerColClick,
|
|
94364
|
+
"show-btn": _ctx.showBtn
|
|
94365
|
+
}, null, 8, ["data", "onHandlerColClick", "show-btn"])]),
|
|
92571
94366
|
_: 1
|
|
92572
94367
|
}, 16, ["class", "sort-config", "data", "cell-class-name", "row-class-name", "onCheckboxChange", "onCheckboxAll", "onRadioChange", "onCellClick", "tree-config"]);
|
|
92573
94368
|
}
|
|
92574
|
-
;// CONCATENATED MODULE: ./packages/tables/table-group.vue?vue&type=template&id=
|
|
94369
|
+
;// CONCATENATED MODULE: ./packages/tables/table-group.vue?vue&type=template&id=7d725444&scoped=true
|
|
92575
94370
|
/* unplugin-vue-components disabled */
|
|
92576
94371
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-group.vue?vue&type=script&lang=js
|
|
92577
94372
|
/* unplugin-vue-components disabled */
|
|
@@ -92669,9 +94464,9 @@ const table_groupvue_type_script_lang_js_default_ = {
|
|
|
92669
94464
|
|
|
92670
94465
|
const table_groupvue_type_script_lang_js_injectCSSVars_ = () => {
|
|
92671
94466
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(_ctx => ({
|
|
92672
|
-
"
|
|
92673
|
-
"
|
|
92674
|
-
"
|
|
94467
|
+
"6b4930af": _ctx.headerBg,
|
|
94468
|
+
"18c13e6f": _ctx.stripeBg,
|
|
94469
|
+
"31c63641": _ctx.currentBg
|
|
92675
94470
|
}));
|
|
92676
94471
|
};
|
|
92677
94472
|
|
|
@@ -92684,10 +94479,10 @@ table_groupvue_type_script_lang_js_default_.setup = table_groupvue_type_script_l
|
|
|
92684
94479
|
/* harmony default export */ var table_groupvue_type_script_lang_js = (table_groupvue_type_script_lang_js_default_);
|
|
92685
94480
|
;// CONCATENATED MODULE: ./packages/tables/table-group.vue?vue&type=script&lang=js
|
|
92686
94481
|
/* unplugin-vue-components disabled */
|
|
92687
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-group.vue?vue&type=style&index=0&id=
|
|
94482
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-group.vue?vue&type=style&index=0&id=7d725444&lang=scss&scoped=true
|
|
92688
94483
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
92689
94484
|
|
|
92690
|
-
;// CONCATENATED MODULE: ./packages/tables/table-group.vue?vue&type=style&index=0&id=
|
|
94485
|
+
;// CONCATENATED MODULE: ./packages/tables/table-group.vue?vue&type=style&index=0&id=7d725444&lang=scss&scoped=true
|
|
92691
94486
|
/* unplugin-vue-components disabled */
|
|
92692
94487
|
;// CONCATENATED MODULE: ./packages/tables/table-group.vue
|
|
92693
94488
|
/* unplugin-vue-components disabled */
|
|
@@ -92697,21 +94492,21 @@ table_groupvue_type_script_lang_js_default_.setup = table_groupvue_type_script_l
|
|
|
92697
94492
|
;
|
|
92698
94493
|
|
|
92699
94494
|
|
|
92700
|
-
const table_group_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(table_groupvue_type_script_lang_js, [['render',
|
|
94495
|
+
const table_group_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(table_groupvue_type_script_lang_js, [['render',table_groupvue_type_template_id_7d725444_scoped_true_render],['__scopeId',"data-v-7d725444"]])
|
|
92701
94496
|
|
|
92702
94497
|
/* harmony default export */ var table_group = (table_group_exports_);
|
|
92703
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-big-data.vue?vue&type=template&id=
|
|
94498
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-big-data.vue?vue&type=template&id=f60cf5ba&scoped=true
|
|
92704
94499
|
/* unplugin-vue-components disabled */
|
|
92705
94500
|
|
|
92706
|
-
const
|
|
94501
|
+
const table_big_datavue_type_template_id_f60cf5ba_scoped_true_withScopeId = n => (_pushScopeId("data-v-f60cf5ba"), n = n(), _popScopeId(), n);
|
|
92707
94502
|
|
|
92708
|
-
const
|
|
94503
|
+
const table_big_datavue_type_template_id_f60cf5ba_scoped_true_hoisted_1 = {
|
|
92709
94504
|
key: 0,
|
|
92710
94505
|
style: {
|
|
92711
94506
|
"position": "relative"
|
|
92712
94507
|
}
|
|
92713
94508
|
};
|
|
92714
|
-
function
|
|
94509
|
+
function table_big_datavue_type_template_id_f60cf5ba_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92715
94510
|
const _component_vxe_toolbar = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-toolbar");
|
|
92716
94511
|
|
|
92717
94512
|
const _component_vxe_column = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-column");
|
|
@@ -92728,7 +94523,7 @@ function table_big_datavue_type_template_id_7e5f547a_scoped_true_render(_ctx, _c
|
|
|
92728
94523
|
|
|
92729
94524
|
const _directive_vxe_table_infinite_scroll = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveDirective)("vxe-table-infinite-scroll");
|
|
92730
94525
|
|
|
92731
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, [_ctx.isTool ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
94526
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, [_ctx.isTool ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", table_big_datavue_type_template_id_f60cf5ba_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_toolbar, {
|
|
92732
94527
|
class: "jt-toolbar",
|
|
92733
94528
|
ref: "jtToolbarRef",
|
|
92734
94529
|
custom: {
|
|
@@ -92799,12 +94594,13 @@ function table_big_datavue_type_template_id_7e5f547a_scoped_true_render(_ctx, _c
|
|
|
92799
94594
|
_: 3
|
|
92800
94595
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_table_handler_column, {
|
|
92801
94596
|
data: _ctx.data[0],
|
|
92802
|
-
onHandlerColClick: _ctx.handlerColClick
|
|
92803
|
-
|
|
94597
|
+
onHandlerColClick: _ctx.handlerColClick,
|
|
94598
|
+
"show-btn": _ctx.showBtn
|
|
94599
|
+
}, null, 8, ["data", "onHandlerColClick", "show-btn"])]),
|
|
92804
94600
|
_: 3
|
|
92805
94601
|
}, 16, ["class", "sort-config", "show-footer", "footer-method", "footer-span-method", "stripe", "span-method", "onCheckboxChange", "onCheckboxAll", "onRadioChange", "onCellClick", "onKeydown"])), [[_directive_vxe_table_infinite_scroll, $setup.loadMethod]])], 64);
|
|
92806
94602
|
}
|
|
92807
|
-
;// CONCATENATED MODULE: ./packages/tables/table-big-data.vue?vue&type=template&id=
|
|
94603
|
+
;// CONCATENATED MODULE: ./packages/tables/table-big-data.vue?vue&type=template&id=f60cf5ba&scoped=true
|
|
92808
94604
|
/* unplugin-vue-components disabled */
|
|
92809
94605
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-big-data.vue?vue&type=script&lang=js
|
|
92810
94606
|
/* unplugin-vue-components disabled */
|
|
@@ -92912,9 +94708,9 @@ const table_big_datavue_type_script_lang_js_default_ = {
|
|
|
92912
94708
|
|
|
92913
94709
|
const table_big_datavue_type_script_lang_js_injectCSSVars_ = () => {
|
|
92914
94710
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(_ctx => ({
|
|
92915
|
-
"
|
|
92916
|
-
"
|
|
92917
|
-
"
|
|
94711
|
+
"2cc6c0f9": _ctx.headerBg,
|
|
94712
|
+
"4b82628e": _ctx.stripeBg,
|
|
94713
|
+
"c00aa192": _ctx.currentBg
|
|
92918
94714
|
}));
|
|
92919
94715
|
};
|
|
92920
94716
|
|
|
@@ -92927,10 +94723,10 @@ table_big_datavue_type_script_lang_js_default_.setup = table_big_datavue_type_sc
|
|
|
92927
94723
|
/* harmony default export */ var table_big_datavue_type_script_lang_js = (table_big_datavue_type_script_lang_js_default_);
|
|
92928
94724
|
;// CONCATENATED MODULE: ./packages/tables/table-big-data.vue?vue&type=script&lang=js
|
|
92929
94725
|
/* unplugin-vue-components disabled */
|
|
92930
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-big-data.vue?vue&type=style&index=0&id=
|
|
94726
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/table-big-data.vue?vue&type=style&index=0&id=f60cf5ba&lang=scss&scoped=true
|
|
92931
94727
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
92932
94728
|
|
|
92933
|
-
;// CONCATENATED MODULE: ./packages/tables/table-big-data.vue?vue&type=style&index=0&id=
|
|
94729
|
+
;// CONCATENATED MODULE: ./packages/tables/table-big-data.vue?vue&type=style&index=0&id=f60cf5ba&lang=scss&scoped=true
|
|
92934
94730
|
/* unplugin-vue-components disabled */
|
|
92935
94731
|
;// CONCATENATED MODULE: ./packages/tables/table-big-data.vue
|
|
92936
94732
|
/* unplugin-vue-components disabled */
|
|
@@ -92940,22 +94736,22 @@ table_big_datavue_type_script_lang_js_default_.setup = table_big_datavue_type_sc
|
|
|
92940
94736
|
;
|
|
92941
94737
|
|
|
92942
94738
|
|
|
92943
|
-
const table_big_data_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(table_big_datavue_type_script_lang_js, [['render',
|
|
94739
|
+
const table_big_data_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(table_big_datavue_type_script_lang_js, [['render',table_big_datavue_type_template_id_f60cf5ba_scoped_true_render],['__scopeId',"data-v-f60cf5ba"]])
|
|
92944
94740
|
|
|
92945
94741
|
/* harmony default export */ var table_big_data = (table_big_data_exports_);
|
|
92946
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/tree-table.vue?vue&type=template&id=
|
|
94742
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/tree-table.vue?vue&type=template&id=0d2b741c&scoped=true
|
|
92947
94743
|
/* unplugin-vue-components disabled */
|
|
92948
94744
|
|
|
92949
|
-
const
|
|
94745
|
+
const tree_tablevue_type_template_id_0d2b741c_scoped_true_withScopeId = n => (_pushScopeId("data-v-0d2b741c"), n = n(), _popScopeId(), n);
|
|
92950
94746
|
|
|
92951
|
-
const
|
|
94747
|
+
const tree_tablevue_type_template_id_0d2b741c_scoped_true_hoisted_1 = {
|
|
92952
94748
|
key: 0,
|
|
92953
94749
|
style: {
|
|
92954
94750
|
"position": "relative"
|
|
92955
94751
|
}
|
|
92956
94752
|
};
|
|
92957
|
-
const
|
|
92958
|
-
function
|
|
94753
|
+
const tree_tablevue_type_template_id_0d2b741c_scoped_true_hoisted_2 = ["onClick"];
|
|
94754
|
+
function tree_tablevue_type_template_id_0d2b741c_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92959
94755
|
const _component_vxe_toolbar = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-toolbar");
|
|
92960
94756
|
|
|
92961
94757
|
const _component_vxe_column = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-column");
|
|
@@ -92970,7 +94766,7 @@ function tree_tablevue_type_template_id_02453d44_scoped_true_render(_ctx, _cache
|
|
|
92970
94766
|
|
|
92971
94767
|
const _component_vxe_table = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-table");
|
|
92972
94768
|
|
|
92973
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, [_ctx.isTool ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
94769
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_.Fragment, null, [_ctx.isTool ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", tree_tablevue_type_template_id_0d2b741c_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_vxe_toolbar, {
|
|
92974
94770
|
class: "jt-toolbar",
|
|
92975
94771
|
ref: "jtToolbarRef",
|
|
92976
94772
|
custom: {
|
|
@@ -93055,7 +94851,7 @@ function tree_tablevue_type_template_id_02453d44_scoped_true_render(_ctx, _cache
|
|
|
93055
94851
|
}, null, 2)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("i", {
|
|
93056
94852
|
key: 1,
|
|
93057
94853
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["jtIcon jt-iconFile", row.icon ? row.icon : 'icon21file'])
|
|
93058
|
-
}, null, 2)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(row[item.prop]), 1)], 8,
|
|
94854
|
+
}, null, 2)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(row[item.prop]), 1)], 8, tree_tablevue_type_template_id_0d2b741c_scoped_true_hoisted_2)])
|
|
93059
94855
|
} : undefined]), 1040, ["tree-node", "cellRender"]);
|
|
93060
94856
|
}), 128)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_table_expand_row, null, {
|
|
93061
94857
|
expandContent: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(row => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "expandContent", {
|
|
@@ -93064,12 +94860,13 @@ function tree_tablevue_type_template_id_02453d44_scoped_true_render(_ctx, _cache
|
|
|
93064
94860
|
_: 3
|
|
93065
94861
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_table_handler_column, {
|
|
93066
94862
|
data: _ctx.data[0],
|
|
93067
|
-
onHandlerColClick: _ctx.handlerColClick
|
|
93068
|
-
|
|
94863
|
+
onHandlerColClick: _ctx.handlerColClick,
|
|
94864
|
+
"show-btn": _ctx.showBtn
|
|
94865
|
+
}, null, 8, ["data", "onHandlerColClick", "show-btn"])]),
|
|
93069
94866
|
_: 3
|
|
93070
94867
|
}, 16, ["class", "sort-config", "data", "tree-config", "show-header", "onCheckboxChange", "onCheckboxAll", "onRadioChange", "onCellClick", "onKeydown"])], 64);
|
|
93071
94868
|
}
|
|
93072
|
-
;// CONCATENATED MODULE: ./packages/tables/tree-table.vue?vue&type=template&id=
|
|
94869
|
+
;// CONCATENATED MODULE: ./packages/tables/tree-table.vue?vue&type=template&id=0d2b741c&scoped=true
|
|
93073
94870
|
/* unplugin-vue-components disabled */
|
|
93074
94871
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/tree-table.vue?vue&type=script&lang=js
|
|
93075
94872
|
/* unplugin-vue-components disabled */
|
|
@@ -93222,9 +95019,9 @@ const tree_tablevue_type_script_lang_js_default_ = {
|
|
|
93222
95019
|
|
|
93223
95020
|
const tree_tablevue_type_script_lang_js_injectCSSVars_ = () => {
|
|
93224
95021
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(_ctx => ({
|
|
93225
|
-
"
|
|
93226
|
-
"
|
|
93227
|
-
"
|
|
95022
|
+
"0ac07f8a": _ctx.headerBg,
|
|
95023
|
+
"afd0640a": _ctx.stripeBg,
|
|
95024
|
+
"e57ccf96": _ctx.currentBg
|
|
93228
95025
|
}));
|
|
93229
95026
|
};
|
|
93230
95027
|
|
|
@@ -93237,10 +95034,10 @@ tree_tablevue_type_script_lang_js_default_.setup = tree_tablevue_type_script_lan
|
|
|
93237
95034
|
/* harmony default export */ var tree_tablevue_type_script_lang_js = (tree_tablevue_type_script_lang_js_default_);
|
|
93238
95035
|
;// CONCATENATED MODULE: ./packages/tables/tree-table.vue?vue&type=script&lang=js
|
|
93239
95036
|
/* unplugin-vue-components disabled */
|
|
93240
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/tree-table.vue?vue&type=style&index=0&id=
|
|
95037
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/tables/tree-table.vue?vue&type=style&index=0&id=0d2b741c&lang=scss&scoped=true
|
|
93241
95038
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
93242
95039
|
|
|
93243
|
-
;// CONCATENATED MODULE: ./packages/tables/tree-table.vue?vue&type=style&index=0&id=
|
|
95040
|
+
;// CONCATENATED MODULE: ./packages/tables/tree-table.vue?vue&type=style&index=0&id=0d2b741c&lang=scss&scoped=true
|
|
93244
95041
|
/* unplugin-vue-components disabled */
|
|
93245
95042
|
;// CONCATENATED MODULE: ./packages/tables/tree-table.vue
|
|
93246
95043
|
/* unplugin-vue-components disabled */
|
|
@@ -93250,7 +95047,7 @@ tree_tablevue_type_script_lang_js_default_.setup = tree_tablevue_type_script_lan
|
|
|
93250
95047
|
;
|
|
93251
95048
|
|
|
93252
95049
|
|
|
93253
|
-
const tree_table_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tree_tablevue_type_script_lang_js, [['render',
|
|
95050
|
+
const tree_table_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tree_tablevue_type_script_lang_js, [['render',tree_tablevue_type_template_id_0d2b741c_scoped_true_render],['__scopeId',"data-v-0d2b741c"]])
|
|
93254
95051
|
|
|
93255
95052
|
/* harmony default export */ var tree_table = (tree_table_exports_);
|
|
93256
95053
|
// EXTERNAL MODULE: ./node_modules/vxe-table/lib/v-x-e-table/style/index.js
|
|
@@ -98838,7 +100635,7 @@ const ElColorPicker = _ColorPicker;
|
|
|
98838
100635
|
|
|
98839
100636
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/color-picker/style/css.mjs
|
|
98840
100637
|
|
|
98841
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=template&id=
|
|
100638
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=template&id=04f62cec&scoped=true
|
|
98842
100639
|
/* unplugin-vue-components disabled */
|
|
98843
100640
|
|
|
98844
100641
|
|
|
@@ -98848,26 +100645,26 @@ const ElColorPicker = _ColorPicker;
|
|
|
98848
100645
|
|
|
98849
100646
|
|
|
98850
100647
|
|
|
98851
|
-
const
|
|
100648
|
+
const echartsvue_type_template_id_04f62cec_scoped_true_withScopeId = n => (_pushScopeId("data-v-04f62cec"), n = n(), _popScopeId(), n);
|
|
98852
100649
|
|
|
98853
|
-
const
|
|
100650
|
+
const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_1 = {
|
|
98854
100651
|
class: "echarts-wapper"
|
|
98855
100652
|
};
|
|
98856
|
-
const
|
|
100653
|
+
const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_2 = ["id"];
|
|
98857
100654
|
|
|
98858
|
-
const
|
|
100655
|
+
const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_3 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
|
|
98859
100656
|
|
|
98860
|
-
const
|
|
100657
|
+
const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
|
|
98861
100658
|
|
|
98862
|
-
const
|
|
100659
|
+
const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
|
|
98863
100660
|
|
|
98864
|
-
const
|
|
100661
|
+
const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
|
|
98865
100662
|
|
|
98866
|
-
const
|
|
100663
|
+
const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
|
|
98867
100664
|
|
|
98868
|
-
const
|
|
100665
|
+
const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
|
|
98869
100666
|
|
|
98870
|
-
function
|
|
100667
|
+
function echartsvue_type_template_id_04f62cec_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
98871
100668
|
const _component_el_switch = ElSwitch;
|
|
98872
100669
|
|
|
98873
100670
|
const _component_el_form_item = ElFormItem;
|
|
@@ -98882,11 +100679,11 @@ function echartsvue_type_template_id_195b5eaf_scoped_true_render(_ctx, _cache, $
|
|
|
98882
100679
|
|
|
98883
100680
|
const _component_el_dialog = ElDialog;
|
|
98884
100681
|
|
|
98885
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
100682
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", echartsvue_type_template_id_04f62cec_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
98886
100683
|
ref: el => $setup.setRef(el),
|
|
98887
100684
|
id: $props.id,
|
|
98888
100685
|
class: "jt-chart-vm"
|
|
98889
|
-
}, null, 8,
|
|
100686
|
+
}, null, 8, echartsvue_type_template_id_04f62cec_scoped_true_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
98890
100687
|
class: "jtIcon iconpeizhi41 eitid-icon",
|
|
98891
100688
|
onClick: _cache[0] || (_cache[0] = $event => $setup.dialogVisible = true)
|
|
98892
100689
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_dialog, {
|
|
@@ -98969,21 +100766,21 @@ function echartsvue_type_template_id_195b5eaf_scoped_true_render(_ctx, _cache, $
|
|
|
98969
100766
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => $setup.gridLineConfig.lineType = $event),
|
|
98970
100767
|
label: "solid"
|
|
98971
100768
|
}, {
|
|
98972
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
100769
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_3]),
|
|
98973
100770
|
_: 1
|
|
98974
100771
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
98975
100772
|
modelValue: $setup.gridLineConfig.lineType,
|
|
98976
100773
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => $setup.gridLineConfig.lineType = $event),
|
|
98977
100774
|
label: "dashed"
|
|
98978
100775
|
}, {
|
|
98979
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
100776
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_4]),
|
|
98980
100777
|
_: 1
|
|
98981
100778
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
98982
100779
|
modelValue: $setup.gridLineConfig.lineType,
|
|
98983
100780
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => $setup.gridLineConfig.lineType = $event),
|
|
98984
100781
|
label: "dotted"
|
|
98985
100782
|
}, {
|
|
98986
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
100783
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_5]),
|
|
98987
100784
|
_: 1
|
|
98988
100785
|
}, 8, ["modelValue"])]),
|
|
98989
100786
|
_: 1
|
|
@@ -99030,21 +100827,21 @@ function echartsvue_type_template_id_195b5eaf_scoped_true_render(_ctx, _cache, $
|
|
|
99030
100827
|
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => $setup.tickLineConfig.lineType = $event),
|
|
99031
100828
|
label: "solid"
|
|
99032
100829
|
}, {
|
|
99033
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
100830
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_6]),
|
|
99034
100831
|
_: 1
|
|
99035
100832
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
99036
100833
|
modelValue: $setup.tickLineConfig.lineType,
|
|
99037
100834
|
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => $setup.tickLineConfig.lineType = $event),
|
|
99038
100835
|
label: "dashed"
|
|
99039
100836
|
}, {
|
|
99040
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
100837
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_7]),
|
|
99041
100838
|
_: 1
|
|
99042
100839
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
99043
100840
|
modelValue: $setup.tickLineConfig.lineType,
|
|
99044
100841
|
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => $setup.tickLineConfig.lineType = $event),
|
|
99045
100842
|
label: "dotted"
|
|
99046
100843
|
}, {
|
|
99047
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
100844
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_8]),
|
|
99048
100845
|
_: 1
|
|
99049
100846
|
}, 8, ["modelValue"])]),
|
|
99050
100847
|
_: 1
|
|
@@ -99054,7 +100851,7 @@ function echartsvue_type_template_id_195b5eaf_scoped_true_render(_ctx, _cache, $
|
|
|
99054
100851
|
_: 1
|
|
99055
100852
|
}, 8, ["modelValue"])]);
|
|
99056
100853
|
}
|
|
99057
|
-
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=
|
|
100854
|
+
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=04f62cec&scoped=true
|
|
99058
100855
|
/* unplugin-vue-components disabled */
|
|
99059
100856
|
;// CONCATENATED MODULE: ./node_modules/echarts/node_modules/tslib/tslib.es6.js
|
|
99060
100857
|
|
|
@@ -217550,11 +219347,16 @@ function getInterval(min, max, total) {
|
|
|
217550
219347
|
|
|
217551
219348
|
return obj;
|
|
217552
219349
|
}
|
|
219350
|
+
// EXTERNAL MODULE: ./node_modules/element-resize-detector/src/element-resize-detector.js
|
|
219351
|
+
var element_resize_detector = __webpack_require__(498);
|
|
219352
|
+
var element_resize_detector_default = /*#__PURE__*/__webpack_require__.n(element_resize_detector);
|
|
217553
219353
|
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=script&lang=js
|
|
217554
219354
|
/* unplugin-vue-components disabled */
|
|
217555
219355
|
|
|
217556
219356
|
|
|
217557
219357
|
|
|
219358
|
+
|
|
219359
|
+
const erd = element_resize_detector_default()();
|
|
217558
219360
|
/* harmony default export */ var echartsvue_type_script_lang_js = ({
|
|
217559
219361
|
name: "jt-chart",
|
|
217560
219362
|
props: {
|
|
@@ -217730,9 +219532,12 @@ function getInterval(min, max, total) {
|
|
|
217730
219532
|
computedTimeInterval(timeRange.value);
|
|
217731
219533
|
} else {
|
|
217732
219534
|
chartVM.setOption(option);
|
|
217733
|
-
}
|
|
219535
|
+
} // window.addEventListener('resize',() => {
|
|
219536
|
+
// chartVM.resize()
|
|
219537
|
+
// })
|
|
219538
|
+
|
|
217734
219539
|
|
|
217735
|
-
|
|
219540
|
+
erd.listenTo(activeRef.value, () => {
|
|
217736
219541
|
chartVM.resize();
|
|
217737
219542
|
});
|
|
217738
219543
|
}); //监听外部时间选择
|
|
@@ -217891,10 +219696,10 @@ function getInterval(min, max, total) {
|
|
|
217891
219696
|
});
|
|
217892
219697
|
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=script&lang=js
|
|
217893
219698
|
/* unplugin-vue-components disabled */
|
|
217894
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=style&index=0&id=
|
|
219699
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=style&index=0&id=04f62cec&lang=scss&scoped=true
|
|
217895
219700
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
217896
219701
|
|
|
217897
|
-
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=
|
|
219702
|
+
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=04f62cec&lang=scss&scoped=true
|
|
217898
219703
|
/* unplugin-vue-components disabled */
|
|
217899
219704
|
;// CONCATENATED MODULE: ./packages/echarts/index.vue
|
|
217900
219705
|
/* unplugin-vue-components disabled */
|
|
@@ -217904,7 +219709,7 @@ function getInterval(min, max, total) {
|
|
|
217904
219709
|
;
|
|
217905
219710
|
|
|
217906
219711
|
|
|
217907
|
-
const echarts_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(echartsvue_type_script_lang_js, [['render',
|
|
219712
|
+
const echarts_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(echartsvue_type_script_lang_js, [['render',echartsvue_type_template_id_04f62cec_scoped_true_render],['__scopeId',"data-v-04f62cec"]])
|
|
217908
219713
|
|
|
217909
219714
|
/* harmony default export */ var echarts = (echarts_exports_);
|
|
217910
219715
|
;// CONCATENATED MODULE: ./packages/echarts/index.js
|