jtui3.0 1.0.58 → 1.0.60

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.
@@ -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
 
@@ -84097,7 +85885,7 @@ const ElInputNumber = withInstall(InputNumber);
84097
85885
 
84098
85886
  ;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/input/style/css.mjs
84099
85887
 
84100
- ;// 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/form/index.vue?vue&type=template&id=56e398d0&scoped=true
85888
+ ;// 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/form/index.vue?vue&type=template&id=ce667812&scoped=true
84101
85889
  /* unplugin-vue-components disabled */
84102
85890
 
84103
85891
 
@@ -84119,35 +85907,35 @@ const ElInputNumber = withInstall(InputNumber);
84119
85907
 
84120
85908
 
84121
85909
 
84122
- const _withScopeId = n => (_pushScopeId("data-v-56e398d0"), n = n(), _popScopeId(), n);
85910
+ const _withScopeId = n => (_pushScopeId("data-v-ce667812"), n = n(), _popScopeId(), n);
84123
85911
 
84124
- const formvue_type_template_id_56e398d0_scoped_true_hoisted_1 = {
85912
+ const formvue_type_template_id_ce667812_scoped_true_hoisted_1 = {
84125
85913
  key: 3,
84126
85914
  class: "ht-text"
84127
85915
  };
84128
- const formvue_type_template_id_56e398d0_scoped_true_hoisted_2 = ["onClick"];
84129
- const formvue_type_template_id_56e398d0_scoped_true_hoisted_3 = {
85916
+ const formvue_type_template_id_ce667812_scoped_true_hoisted_2 = ["onClick"];
85917
+ const formvue_type_template_id_ce667812_scoped_true_hoisted_3 = {
84130
85918
  key: 12,
84131
85919
  style: {
84132
85920
  "margin-right": "5px"
84133
85921
  }
84134
85922
  };
84135
- const formvue_type_template_id_56e398d0_scoped_true_hoisted_4 = {
85923
+ const formvue_type_template_id_ce667812_scoped_true_hoisted_4 = {
84136
85924
  key: 14,
84137
85925
  style: {
84138
85926
  "margin-left": "5px"
84139
85927
  }
84140
85928
  };
84141
- const formvue_type_template_id_56e398d0_scoped_true_hoisted_5 = {
85929
+ const formvue_type_template_id_ce667812_scoped_true_hoisted_5 = {
84142
85930
  class: "cell-item"
84143
85931
  };
84144
- const formvue_type_template_id_56e398d0_scoped_true_hoisted_6 = {
85932
+ const formvue_type_template_id_ce667812_scoped_true_hoisted_6 = {
84145
85933
  key: 0,
84146
85934
  style: {
84147
85935
  "color": "red"
84148
85936
  }
84149
85937
  };
84150
- const formvue_type_template_id_56e398d0_scoped_true_hoisted_7 = {
85938
+ const formvue_type_template_id_ce667812_scoped_true_hoisted_7 = {
84151
85939
  key: 3,
84152
85940
  class: "ht-text"
84153
85941
  };
@@ -84246,7 +86034,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
84246
86034
  placeholder: item.placeholder ? item.placeholder : ''
84247
86035
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])]),
84248
86036
  _: 2
84249
- }, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'text' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", formvue_type_template_id_56e398d0_scoped_true_hoisted_1, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.model[item.modelKey]), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'input' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_input, {
86037
+ }, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'text' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", formvue_type_template_id_ce667812_scoped_true_hoisted_1, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.model[item.modelKey]), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'input' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_input, {
84250
86038
  key: 4,
84251
86039
  style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
84252
86040
  width: item.width ? item.width + 'px' : 'auto'
@@ -84263,7 +86051,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
84263
86051
  key: 0,
84264
86052
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["jtIcon", item.isPwd ? 'iconyincangmima' : 'iconxianshimima']),
84265
86053
  onClick: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)($event => $setup.eyeClick(item), ["stop"])
84266
- }, null, 10, formvue_type_template_id_56e398d0_scoped_true_hoisted_2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
86054
+ }, null, 10, formvue_type_template_id_ce667812_scoped_true_hoisted_2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
84267
86055
  _: 2
84268
86056
  }, 1032, ["style", "placeholder", "type", "disabled", "modelValue", "onUpdate:modelValue", "onFocus", "onBlur"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'textarea' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_input, {
84269
86057
  key: 5,
@@ -84378,7 +86166,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
84378
86166
  onFocus: $setup.handleFocus,
84379
86167
  onCalendarChange: $setup.handleChange,
84380
86168
  "end-placeholder": "结束日期",
84381
- placeholder: "选择日期"
86169
+ placeholder: "选择日期",
86170
+ "range-separator": "至"
84382
86171
  }, null, 8, ["modelValue", "onUpdate:modelValue", "shortcuts", "style", "disabled", "type", "value-format", "format", "disabled-date", "onFocus", "onCalendarChange"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'time' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_time_picker, {
84383
86172
  key: 11,
84384
86173
  modelValue: $setup.modelRemote[item.modelKey],
@@ -84389,7 +86178,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
84389
86178
  "value-format": "HH:mm:ss",
84390
86179
  disabled: item.disabled ? item.disabled : false,
84391
86180
  placeholder: item.placeholder ? item.placeholder : '请选择时间'
84392
- }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "placeholder"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'switch' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", formvue_type_template_id_56e398d0_scoped_true_hoisted_3, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.bText), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'switch' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_switch, {
86181
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "style", "disabled", "placeholder"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'switch' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", formvue_type_template_id_ce667812_scoped_true_hoisted_3, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.bText), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'switch' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_switch, {
84393
86182
  key: 13,
84394
86183
  modelValue: $setup.modelRemote[item.modelKey],
84395
86184
  "onUpdate:modelValue": $event => $setup.modelRemote[item.modelKey] = $event,
@@ -84399,7 +86188,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
84399
86188
  "active-color": "#13ce66",
84400
86189
  onChange: $event => $setup.switchChange(arguments, item.modelKey),
84401
86190
  "inactive-color": "#ff4949"
84402
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "active-text", "inactive-text", "onChange"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'switch' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", formvue_type_template_id_56e398d0_scoped_true_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.fText), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'checkbox' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_checkbox_group, {
86191
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "active-text", "inactive-text", "onChange"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'switch' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", formvue_type_template_id_ce667812_scoped_true_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.fText), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'checkbox' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_checkbox_group, {
84403
86192
  key: 15,
84404
86193
  modelValue: $setup.modelRemote[item.modelKey],
84405
86194
  "onUpdate:modelValue": $event => $setup.modelRemote[item.modelKey] = $event
@@ -84456,7 +86245,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
84456
86245
  "label-align": item.align || 'center',
84457
86246
  key: index
84458
86247
  }, {
84459
- label: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", formvue_type_template_id_56e398d0_scoped_true_hoisted_5, [item.modelKey in $props.rules ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", formvue_type_template_id_56e398d0_scoped_true_hoisted_6, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)(" " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.label), 1)])]),
86248
+ label: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", formvue_type_template_id_ce667812_scoped_true_hoisted_5, [item.modelKey in $props.rules ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", formvue_type_template_id_ce667812_scoped_true_hoisted_6, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)(" " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(item.label), 1)])]),
84460
86249
  default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_form_item, {
84461
86250
  prop: item.modelKey,
84462
86251
  style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)([{
@@ -84483,7 +86272,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
84483
86272
  placeholder: item.placeholder ? item.placeholder : ''
84484
86273
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])]),
84485
86274
  _: 2
84486
- }, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'text' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", formvue_type_template_id_56e398d0_scoped_true_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.model[item.modelKey]), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'input' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_input, {
86275
+ }, 1024)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'text' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", formvue_type_template_id_ce667812_scoped_true_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($props.model[item.modelKey]), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), item.type === 'input' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_input, {
84487
86276
  key: 4,
84488
86277
  style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeStyle)({
84489
86278
  width: item.width ? item.width + 'px' : 'auto'
@@ -84693,7 +86482,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
84693
86482
  _: 3
84694
86483
  }, 8, ["locale"]);
84695
86484
  }
84696
- ;// CONCATENATED MODULE: ./packages/form/index.vue?vue&type=template&id=56e398d0&scoped=true
86485
+ ;// CONCATENATED MODULE: ./packages/form/index.vue?vue&type=template&id=ce667812&scoped=true
84697
86486
  /* unplugin-vue-components disabled */
84698
86487
  ;// CONCATENATED MODULE: ./packages/form/validate.js
84699
86488
 
@@ -85267,8 +87056,8 @@ const formvue_type_script_lang_js_default_ = {
85267
87056
 
85268
87057
  const __injectCSSVars__ = () => {
85269
87058
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)(_ctx => ({
85270
- "1ec97822": _ctx.labelWidth,
85271
- "3674e14d": _ctx.labelPosition
87059
+ "7cb781e8": _ctx.labelWidth,
87060
+ "70728bba": _ctx.labelPosition
85272
87061
  }));
85273
87062
  };
85274
87063
 
@@ -85281,10 +87070,10 @@ formvue_type_script_lang_js_default_.setup = __setup__ ? (props, ctx) => {
85281
87070
  /* harmony default export */ var formvue_type_script_lang_js = (formvue_type_script_lang_js_default_);
85282
87071
  ;// CONCATENATED MODULE: ./packages/form/index.vue?vue&type=script&lang=js
85283
87072
  /* unplugin-vue-components disabled */
85284
- ;// 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/form/index.vue?vue&type=style&index=0&id=56e398d0&lang=scss&scoped=true
87073
+ ;// 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/form/index.vue?vue&type=style&index=0&id=ce667812&lang=scss&scoped=true
85285
87074
  /* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
85286
87075
 
85287
- ;// CONCATENATED MODULE: ./packages/form/index.vue?vue&type=style&index=0&id=56e398d0&lang=scss&scoped=true
87076
+ ;// CONCATENATED MODULE: ./packages/form/index.vue?vue&type=style&index=0&id=ce667812&lang=scss&scoped=true
85288
87077
  /* unplugin-vue-components disabled */
85289
87078
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
85290
87079
  var exportHelper = __webpack_require__(1620);
@@ -85296,7 +87085,7 @@ var exportHelper = __webpack_require__(1620);
85296
87085
  ;
85297
87086
 
85298
87087
 
85299
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(formvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-56e398d0"]])
87088
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(formvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-ce667812"]])
85300
87089
 
85301
87090
  /* harmony default export */ var packages_form = (__exports__);
85302
87091
  ;// CONCATENATED MODULE: ./packages/form/index.js
@@ -98837,7 +100626,7 @@ const ElColorPicker = _ColorPicker;
98837
100626
 
98838
100627
  ;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/color-picker/style/css.mjs
98839
100628
 
98840
- ;// 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=195b5eaf&scoped=true
100629
+ ;// 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
98841
100630
  /* unplugin-vue-components disabled */
98842
100631
 
98843
100632
 
@@ -98847,26 +100636,26 @@ const ElColorPicker = _ColorPicker;
98847
100636
 
98848
100637
 
98849
100638
 
98850
- const echartsvue_type_template_id_195b5eaf_scoped_true_withScopeId = n => (_pushScopeId("data-v-195b5eaf"), n = n(), _popScopeId(), n);
100639
+ const echartsvue_type_template_id_04f62cec_scoped_true_withScopeId = n => (_pushScopeId("data-v-04f62cec"), n = n(), _popScopeId(), n);
98851
100640
 
98852
- const echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_1 = {
100641
+ const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_1 = {
98853
100642
  class: "echarts-wapper"
98854
100643
  };
98855
- const echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_2 = ["id"];
100644
+ const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_2 = ["id"];
98856
100645
 
98857
- const echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_3 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
100646
+ const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_3 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
98858
100647
 
98859
- const echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
100648
+ const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
98860
100649
 
98861
- const echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
100650
+ const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
98862
100651
 
98863
- const echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
100652
+ const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
98864
100653
 
98865
- const echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
100654
+ const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
98866
100655
 
98867
- const echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
100656
+ const echartsvue_type_template_id_04f62cec_scoped_true_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
98868
100657
 
98869
- function echartsvue_type_template_id_195b5eaf_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
100658
+ function echartsvue_type_template_id_04f62cec_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
98870
100659
  const _component_el_switch = ElSwitch;
98871
100660
 
98872
100661
  const _component_el_form_item = ElFormItem;
@@ -98881,11 +100670,11 @@ function echartsvue_type_template_id_195b5eaf_scoped_true_render(_ctx, _cache, $
98881
100670
 
98882
100671
  const _component_el_dialog = ElDialog;
98883
100672
 
98884
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
100673
+ 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", {
98885
100674
  ref: el => $setup.setRef(el),
98886
100675
  id: $props.id,
98887
100676
  class: "jt-chart-vm"
98888
- }, null, 8, echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
100677
+ }, null, 8, echartsvue_type_template_id_04f62cec_scoped_true_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
98889
100678
  class: "jtIcon iconpeizhi41 eitid-icon",
98890
100679
  onClick: _cache[0] || (_cache[0] = $event => $setup.dialogVisible = true)
98891
100680
  }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_dialog, {
@@ -98968,21 +100757,21 @@ function echartsvue_type_template_id_195b5eaf_scoped_true_render(_ctx, _cache, $
98968
100757
  "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => $setup.gridLineConfig.lineType = $event),
98969
100758
  label: "solid"
98970
100759
  }, {
98971
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_3]),
100760
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_3]),
98972
100761
  _: 1
98973
100762
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
98974
100763
  modelValue: $setup.gridLineConfig.lineType,
98975
100764
  "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => $setup.gridLineConfig.lineType = $event),
98976
100765
  label: "dashed"
98977
100766
  }, {
98978
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_4]),
100767
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_4]),
98979
100768
  _: 1
98980
100769
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
98981
100770
  modelValue: $setup.gridLineConfig.lineType,
98982
100771
  "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => $setup.gridLineConfig.lineType = $event),
98983
100772
  label: "dotted"
98984
100773
  }, {
98985
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_5]),
100774
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_5]),
98986
100775
  _: 1
98987
100776
  }, 8, ["modelValue"])]),
98988
100777
  _: 1
@@ -99029,21 +100818,21 @@ function echartsvue_type_template_id_195b5eaf_scoped_true_render(_ctx, _cache, $
99029
100818
  "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => $setup.tickLineConfig.lineType = $event),
99030
100819
  label: "solid"
99031
100820
  }, {
99032
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_6]),
100821
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_6]),
99033
100822
  _: 1
99034
100823
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
99035
100824
  modelValue: $setup.tickLineConfig.lineType,
99036
100825
  "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => $setup.tickLineConfig.lineType = $event),
99037
100826
  label: "dashed"
99038
100827
  }, {
99039
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_7]),
100828
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_7]),
99040
100829
  _: 1
99041
100830
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
99042
100831
  modelValue: $setup.tickLineConfig.lineType,
99043
100832
  "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => $setup.tickLineConfig.lineType = $event),
99044
100833
  label: "dotted"
99045
100834
  }, {
99046
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_195b5eaf_scoped_true_hoisted_8]),
100835
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_04f62cec_scoped_true_hoisted_8]),
99047
100836
  _: 1
99048
100837
  }, 8, ["modelValue"])]),
99049
100838
  _: 1
@@ -99053,7 +100842,7 @@ function echartsvue_type_template_id_195b5eaf_scoped_true_render(_ctx, _cache, $
99053
100842
  _: 1
99054
100843
  }, 8, ["modelValue"])]);
99055
100844
  }
99056
- ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=195b5eaf&scoped=true
100845
+ ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=04f62cec&scoped=true
99057
100846
  /* unplugin-vue-components disabled */
99058
100847
  ;// CONCATENATED MODULE: ./node_modules/echarts/node_modules/tslib/tslib.es6.js
99059
100848
 
@@ -217549,11 +219338,16 @@ function getInterval(min, max, total) {
217549
219338
 
217550
219339
  return obj;
217551
219340
  }
219341
+ // EXTERNAL MODULE: ./node_modules/element-resize-detector/src/element-resize-detector.js
219342
+ var element_resize_detector = __webpack_require__(498);
219343
+ var element_resize_detector_default = /*#__PURE__*/__webpack_require__.n(element_resize_detector);
217552
219344
  ;// 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
217553
219345
  /* unplugin-vue-components disabled */
217554
219346
 
217555
219347
 
217556
219348
 
219349
+
219350
+ const erd = element_resize_detector_default()();
217557
219351
  /* harmony default export */ var echartsvue_type_script_lang_js = ({
217558
219352
  name: "jt-chart",
217559
219353
  props: {
@@ -217729,9 +219523,12 @@ function getInterval(min, max, total) {
217729
219523
  computedTimeInterval(timeRange.value);
217730
219524
  } else {
217731
219525
  chartVM.setOption(option);
217732
- }
219526
+ } // window.addEventListener('resize',() => {
219527
+ // chartVM.resize()
219528
+ // })
219529
+
217733
219530
 
217734
- window.addEventListener('resize', () => {
219531
+ erd.listenTo(activeRef.value, () => {
217735
219532
  chartVM.resize();
217736
219533
  });
217737
219534
  }); //监听外部时间选择
@@ -217890,10 +219687,10 @@ function getInterval(min, max, total) {
217890
219687
  });
217891
219688
  ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=script&lang=js
217892
219689
  /* unplugin-vue-components disabled */
217893
- ;// 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=195b5eaf&lang=scss&scoped=true
219690
+ ;// 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
217894
219691
  /* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
217895
219692
 
217896
- ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=195b5eaf&lang=scss&scoped=true
219693
+ ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=04f62cec&lang=scss&scoped=true
217897
219694
  /* unplugin-vue-components disabled */
217898
219695
  ;// CONCATENATED MODULE: ./packages/echarts/index.vue
217899
219696
  /* unplugin-vue-components disabled */
@@ -217903,7 +219700,7 @@ function getInterval(min, max, total) {
217903
219700
  ;
217904
219701
 
217905
219702
 
217906
- const echarts_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(echartsvue_type_script_lang_js, [['render',echartsvue_type_template_id_195b5eaf_scoped_true_render],['__scopeId',"data-v-195b5eaf"]])
219703
+ 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"]])
217907
219704
 
217908
219705
  /* harmony default export */ var echarts = (echarts_exports_);
217909
219706
  ;// CONCATENATED MODULE: ./packages/echarts/index.js