@94ai/nf-search-form 3.2.39 → 3.2.43

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.
@@ -1435,7 +1435,7 @@ function lastChild(el, selector) {
1435
1435
  }
1436
1436
  return last || null;
1437
1437
  }
1438
- function index(el, selector) {
1438
+ function index$1(el, selector) {
1439
1439
  var index2 = 0;
1440
1440
  if (!el || !el.parentNode) {
1441
1441
  return -1;
@@ -1502,7 +1502,7 @@ function isRectEqual(rect1, rect2) {
1502
1502
  return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
1503
1503
  }
1504
1504
  var _throttleTimeout;
1505
- function throttle(callback, ms) {
1505
+ function throttle$1(callback, ms) {
1506
1506
  return function() {
1507
1507
  if (!_throttleTimeout) {
1508
1508
  var args = arguments, _this = this;
@@ -2052,8 +2052,8 @@ Sortable.prototype = /** @lends Sortable.prototype */
2052
2052
  if (lastDownEl === target) {
2053
2053
  return;
2054
2054
  }
2055
- oldIndex = index(target);
2056
- oldDraggableIndex = index(target, options.draggable);
2055
+ oldIndex = index$1(target);
2056
+ oldDraggableIndex = index$1(target, options.draggable);
2057
2057
  if (typeof filter === "function") {
2058
2058
  if (filter.call(this, evt, target, this)) {
2059
2059
  _dispatchEvent({
@@ -2476,8 +2476,8 @@ Sortable.prototype = /** @lends Sortable.prototype */
2476
2476
  return completedFired = true;
2477
2477
  }
2478
2478
  function changed() {
2479
- newIndex = index(dragEl);
2480
- newDraggableIndex = index(dragEl, options.draggable);
2479
+ newIndex = index$1(dragEl);
2480
+ newDraggableIndex = index$1(dragEl, options.draggable);
2481
2481
  _dispatchEvent({
2482
2482
  sortable: _this,
2483
2483
  name: "change",
@@ -2547,7 +2547,7 @@ Sortable.prototype = /** @lends Sortable.prototype */
2547
2547
  direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
2548
2548
  var sibling;
2549
2549
  if (direction !== 0) {
2550
- var dragIndex = index(dragEl);
2550
+ var dragIndex = index$1(dragEl);
2551
2551
  do {
2552
2552
  dragIndex -= direction;
2553
2553
  sibling = parentEl.children[dragIndex];
@@ -2609,14 +2609,14 @@ Sortable.prototype = /** @lends Sortable.prototype */
2609
2609
  },
2610
2610
  _onDrop: function _onDrop(evt) {
2611
2611
  var el = this.el, options = this.options;
2612
- newIndex = index(dragEl);
2613
- newDraggableIndex = index(dragEl, options.draggable);
2612
+ newIndex = index$1(dragEl);
2613
+ newDraggableIndex = index$1(dragEl, options.draggable);
2614
2614
  pluginEvent2("drop", this, {
2615
2615
  evt
2616
2616
  });
2617
2617
  parentEl = dragEl && dragEl.parentNode;
2618
- newIndex = index(dragEl);
2619
- newDraggableIndex = index(dragEl, options.draggable);
2618
+ newIndex = index$1(dragEl);
2619
+ newDraggableIndex = index$1(dragEl, options.draggable);
2620
2620
  if (Sortable.eventCanceled) {
2621
2621
  this._nulling();
2622
2622
  return;
@@ -2956,7 +2956,7 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
2956
2956
  return 0;
2957
2957
  }
2958
2958
  function _getInsertDirection(target) {
2959
- if (index(dragEl) < index(target)) {
2959
+ if (index$1(dragEl) < index$1(target)) {
2960
2960
  return 1;
2961
2961
  } else {
2962
2962
  return -1;
@@ -3000,11 +3000,11 @@ Sortable.utils = {
3000
3000
  return !!closest(el, selector, el, false);
3001
3001
  },
3002
3002
  extend,
3003
- throttle,
3003
+ throttle: throttle$1,
3004
3004
  closest,
3005
3005
  toggleClass,
3006
3006
  clone,
3007
- index,
3007
+ index: index$1,
3008
3008
  nextTick: _nextTick,
3009
3009
  cancelNextTick: _cancelNextTick,
3010
3010
  detectDirection: _detectDirection,
@@ -3130,7 +3130,7 @@ function clearAutoScrolls() {
3130
3130
  function clearPointerElemChangedInterval() {
3131
3131
  clearInterval(pointerElemChangedInterval);
3132
3132
  }
3133
- var autoScroll = throttle(function(evt, options, rootEl2, isFallback) {
3133
+ var autoScroll = throttle$1(function(evt, options, rootEl2, isFallback) {
3134
3134
  if (!options.scroll)
3135
3135
  return;
3136
3136
  var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, sens = options.scrollSensitivity, speed = options.scrollSpeed, winScroller = getWindowScrollingElement();
@@ -3321,8 +3321,8 @@ function swapNodes(n1, n2) {
3321
3321
  var p1 = n1.parentNode, p2 = n2.parentNode, i1, i2;
3322
3322
  if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1))
3323
3323
  return;
3324
- i1 = index(n1);
3325
- i2 = index(n2);
3324
+ i1 = index$1(n1);
3325
+ i2 = index$1(n2);
3326
3326
  if (p1.isEqualNode(p2) && i1 < i2) {
3327
3327
  i2++;
3328
3328
  }
@@ -3432,7 +3432,7 @@ function MultiDragPlugin() {
3432
3432
  multiDragSortable.multiDrag._deselectMultiDrag();
3433
3433
  }
3434
3434
  multiDragElements.forEach(function(multiDragElement) {
3435
- multiDragElement.sortableIndex = index(multiDragElement);
3435
+ multiDragElement.sortableIndex = index$1(multiDragElement);
3436
3436
  });
3437
3437
  multiDragElements = multiDragElements.sort(function(a, b) {
3438
3438
  return a.sortableIndex - b.sortableIndex;
@@ -3578,7 +3578,7 @@ function MultiDragPlugin() {
3578
3578
  originalEvt: evt
3579
3579
  });
3580
3580
  if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {
3581
- var lastIndex = index(lastMultiDragSelect), currentIndex = index(dragEl$1);
3581
+ var lastIndex = index$1(lastMultiDragSelect), currentIndex = index$1(dragEl$1);
3582
3582
  if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {
3583
3583
  var n, i;
3584
3584
  if (currentIndex > lastIndex) {
@@ -3620,7 +3620,7 @@ function MultiDragPlugin() {
3620
3620
  }
3621
3621
  if (dragStarted && this.isMultiDrag) {
3622
3622
  if ((parentEl2[expando].options.sort || parentEl2 !== rootEl2) && multiDragElements.length > 1) {
3623
- var dragRect = getRect(dragEl$1), multiDragIndex = index(dragEl$1, ":not(." + this.options.selectedClass + ")");
3623
+ var dragRect = getRect(dragEl$1), multiDragIndex = index$1(dragEl$1, ":not(." + this.options.selectedClass + ")");
3624
3624
  if (!initialFolding && options.animation)
3625
3625
  dragEl$1.thisAnimationDuration = null;
3626
3626
  toSortable.captureAnimationState();
@@ -3648,10 +3648,10 @@ function MultiDragPlugin() {
3648
3648
  }
3649
3649
  multiDragIndex++;
3650
3650
  });
3651
- if (oldIndex2 === index(dragEl$1)) {
3651
+ if (oldIndex2 === index$1(dragEl$1)) {
3652
3652
  var update = false;
3653
3653
  multiDragElements.forEach(function(multiDragElement) {
3654
- if (multiDragElement.sortableIndex !== index(multiDragElement)) {
3654
+ if (multiDragElement.sortableIndex !== index$1(multiDragElement)) {
3655
3655
  update = true;
3656
3656
  return;
3657
3657
  }
@@ -3762,9 +3762,9 @@ function MultiDragPlugin() {
3762
3762
  if (folding && multiDragElement !== dragEl$1) {
3763
3763
  newIndex2 = -1;
3764
3764
  } else if (folding) {
3765
- newIndex2 = index(multiDragElement, ":not(." + _this3.options.selectedClass + ")");
3765
+ newIndex2 = index$1(multiDragElement, ":not(." + _this3.options.selectedClass + ")");
3766
3766
  } else {
3767
- newIndex2 = index(multiDragElement);
3767
+ newIndex2 = index$1(multiDragElement);
3768
3768
  }
3769
3769
  newIndicies.push({
3770
3770
  multiDragElement,
@@ -6438,6 +6438,502 @@ var _sfc_render$1 = function render5() {
6438
6438
  var _sfc_staticRenderFns$1 = [];
6439
6439
  var __component__$1 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
6440
6440
  const ColumnCheckDrawer = __component__$1.exports;
6441
+ var MapShim = function() {
6442
+ if (typeof Map !== "undefined") {
6443
+ return Map;
6444
+ }
6445
+ function getIndex(arr, key) {
6446
+ var result = -1;
6447
+ arr.some(function(entry, index2) {
6448
+ if (entry[0] === key) {
6449
+ result = index2;
6450
+ return true;
6451
+ }
6452
+ return false;
6453
+ });
6454
+ return result;
6455
+ }
6456
+ return (
6457
+ /** @class */
6458
+ function() {
6459
+ function class_1() {
6460
+ this.__entries__ = [];
6461
+ }
6462
+ Object.defineProperty(class_1.prototype, "size", {
6463
+ /**
6464
+ * @returns {boolean}
6465
+ */
6466
+ get: function() {
6467
+ return this.__entries__.length;
6468
+ },
6469
+ enumerable: true,
6470
+ configurable: true
6471
+ });
6472
+ class_1.prototype.get = function(key) {
6473
+ var index2 = getIndex(this.__entries__, key);
6474
+ var entry = this.__entries__[index2];
6475
+ return entry && entry[1];
6476
+ };
6477
+ class_1.prototype.set = function(key, value) {
6478
+ var index2 = getIndex(this.__entries__, key);
6479
+ if (~index2) {
6480
+ this.__entries__[index2][1] = value;
6481
+ } else {
6482
+ this.__entries__.push([key, value]);
6483
+ }
6484
+ };
6485
+ class_1.prototype.delete = function(key) {
6486
+ var entries = this.__entries__;
6487
+ var index2 = getIndex(entries, key);
6488
+ if (~index2) {
6489
+ entries.splice(index2, 1);
6490
+ }
6491
+ };
6492
+ class_1.prototype.has = function(key) {
6493
+ return !!~getIndex(this.__entries__, key);
6494
+ };
6495
+ class_1.prototype.clear = function() {
6496
+ this.__entries__.splice(0);
6497
+ };
6498
+ class_1.prototype.forEach = function(callback, ctx) {
6499
+ if (ctx === void 0) {
6500
+ ctx = null;
6501
+ }
6502
+ for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
6503
+ var entry = _a[_i];
6504
+ callback.call(ctx, entry[1], entry[0]);
6505
+ }
6506
+ };
6507
+ return class_1;
6508
+ }()
6509
+ );
6510
+ }();
6511
+ var isBrowser = typeof window !== "undefined" && typeof document !== "undefined" && window.document === document;
6512
+ var global$1 = function() {
6513
+ if (typeof global !== "undefined" && global.Math === Math) {
6514
+ return global;
6515
+ }
6516
+ if (typeof self !== "undefined" && self.Math === Math) {
6517
+ return self;
6518
+ }
6519
+ if (typeof window !== "undefined" && window.Math === Math) {
6520
+ return window;
6521
+ }
6522
+ return Function("return this")();
6523
+ }();
6524
+ var requestAnimationFrame$1 = function() {
6525
+ if (typeof requestAnimationFrame === "function") {
6526
+ return requestAnimationFrame.bind(global$1);
6527
+ }
6528
+ return function(callback) {
6529
+ return setTimeout(function() {
6530
+ return callback(Date.now());
6531
+ }, 1e3 / 60);
6532
+ };
6533
+ }();
6534
+ var trailingTimeout = 2;
6535
+ function throttle(callback, delay) {
6536
+ var leadingCall = false, trailingCall = false, lastCallTime = 0;
6537
+ function resolvePending() {
6538
+ if (leadingCall) {
6539
+ leadingCall = false;
6540
+ callback();
6541
+ }
6542
+ if (trailingCall) {
6543
+ proxy();
6544
+ }
6545
+ }
6546
+ function timeoutCallback() {
6547
+ requestAnimationFrame$1(resolvePending);
6548
+ }
6549
+ function proxy() {
6550
+ var timeStamp = Date.now();
6551
+ if (leadingCall) {
6552
+ if (timeStamp - lastCallTime < trailingTimeout) {
6553
+ return;
6554
+ }
6555
+ trailingCall = true;
6556
+ } else {
6557
+ leadingCall = true;
6558
+ trailingCall = false;
6559
+ setTimeout(timeoutCallback, delay);
6560
+ }
6561
+ lastCallTime = timeStamp;
6562
+ }
6563
+ return proxy;
6564
+ }
6565
+ var REFRESH_DELAY = 20;
6566
+ var transitionKeys = ["top", "right", "bottom", "left", "width", "height", "size", "weight"];
6567
+ var mutationObserverSupported = typeof MutationObserver !== "undefined";
6568
+ var ResizeObserverController = (
6569
+ /** @class */
6570
+ function() {
6571
+ function ResizeObserverController2() {
6572
+ this.connected_ = false;
6573
+ this.mutationEventsAdded_ = false;
6574
+ this.mutationsObserver_ = null;
6575
+ this.observers_ = [];
6576
+ this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
6577
+ this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
6578
+ }
6579
+ ResizeObserverController2.prototype.addObserver = function(observer) {
6580
+ if (!~this.observers_.indexOf(observer)) {
6581
+ this.observers_.push(observer);
6582
+ }
6583
+ if (!this.connected_) {
6584
+ this.connect_();
6585
+ }
6586
+ };
6587
+ ResizeObserverController2.prototype.removeObserver = function(observer) {
6588
+ var observers2 = this.observers_;
6589
+ var index2 = observers2.indexOf(observer);
6590
+ if (~index2) {
6591
+ observers2.splice(index2, 1);
6592
+ }
6593
+ if (!observers2.length && this.connected_) {
6594
+ this.disconnect_();
6595
+ }
6596
+ };
6597
+ ResizeObserverController2.prototype.refresh = function() {
6598
+ var changesDetected = this.updateObservers_();
6599
+ if (changesDetected) {
6600
+ this.refresh();
6601
+ }
6602
+ };
6603
+ ResizeObserverController2.prototype.updateObservers_ = function() {
6604
+ var activeObservers = this.observers_.filter(function(observer) {
6605
+ return observer.gatherActive(), observer.hasActive();
6606
+ });
6607
+ activeObservers.forEach(function(observer) {
6608
+ return observer.broadcastActive();
6609
+ });
6610
+ return activeObservers.length > 0;
6611
+ };
6612
+ ResizeObserverController2.prototype.connect_ = function() {
6613
+ if (!isBrowser || this.connected_) {
6614
+ return;
6615
+ }
6616
+ document.addEventListener("transitionend", this.onTransitionEnd_);
6617
+ window.addEventListener("resize", this.refresh);
6618
+ if (mutationObserverSupported) {
6619
+ this.mutationsObserver_ = new MutationObserver(this.refresh);
6620
+ this.mutationsObserver_.observe(document, {
6621
+ attributes: true,
6622
+ childList: true,
6623
+ characterData: true,
6624
+ subtree: true
6625
+ });
6626
+ } else {
6627
+ document.addEventListener("DOMSubtreeModified", this.refresh);
6628
+ this.mutationEventsAdded_ = true;
6629
+ }
6630
+ this.connected_ = true;
6631
+ };
6632
+ ResizeObserverController2.prototype.disconnect_ = function() {
6633
+ if (!isBrowser || !this.connected_) {
6634
+ return;
6635
+ }
6636
+ document.removeEventListener("transitionend", this.onTransitionEnd_);
6637
+ window.removeEventListener("resize", this.refresh);
6638
+ if (this.mutationsObserver_) {
6639
+ this.mutationsObserver_.disconnect();
6640
+ }
6641
+ if (this.mutationEventsAdded_) {
6642
+ document.removeEventListener("DOMSubtreeModified", this.refresh);
6643
+ }
6644
+ this.mutationsObserver_ = null;
6645
+ this.mutationEventsAdded_ = false;
6646
+ this.connected_ = false;
6647
+ };
6648
+ ResizeObserverController2.prototype.onTransitionEnd_ = function(_a) {
6649
+ var _b = _a.propertyName, propertyName = _b === void 0 ? "" : _b;
6650
+ var isReflowProperty = transitionKeys.some(function(key) {
6651
+ return !!~propertyName.indexOf(key);
6652
+ });
6653
+ if (isReflowProperty) {
6654
+ this.refresh();
6655
+ }
6656
+ };
6657
+ ResizeObserverController2.getInstance = function() {
6658
+ if (!this.instance_) {
6659
+ this.instance_ = new ResizeObserverController2();
6660
+ }
6661
+ return this.instance_;
6662
+ };
6663
+ ResizeObserverController2.instance_ = null;
6664
+ return ResizeObserverController2;
6665
+ }()
6666
+ );
6667
+ var defineConfigurable = function(target, props) {
6668
+ for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
6669
+ var key = _a[_i];
6670
+ Object.defineProperty(target, key, {
6671
+ value: props[key],
6672
+ enumerable: false,
6673
+ writable: false,
6674
+ configurable: true
6675
+ });
6676
+ }
6677
+ return target;
6678
+ };
6679
+ var getWindowOf = function(target) {
6680
+ var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
6681
+ return ownerGlobal || global$1;
6682
+ };
6683
+ var emptyRect = createRectInit(0, 0, 0, 0);
6684
+ function toFloat(value) {
6685
+ return parseFloat(value) || 0;
6686
+ }
6687
+ function getBordersSize(styles) {
6688
+ var positions = [];
6689
+ for (var _i = 1; _i < arguments.length; _i++) {
6690
+ positions[_i - 1] = arguments[_i];
6691
+ }
6692
+ return positions.reduce(function(size, position) {
6693
+ var value = styles["border-" + position + "-width"];
6694
+ return size + toFloat(value);
6695
+ }, 0);
6696
+ }
6697
+ function getPaddings(styles) {
6698
+ var positions = ["top", "right", "bottom", "left"];
6699
+ var paddings = {};
6700
+ for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
6701
+ var position = positions_1[_i];
6702
+ var value = styles["padding-" + position];
6703
+ paddings[position] = toFloat(value);
6704
+ }
6705
+ return paddings;
6706
+ }
6707
+ function getSVGContentRect(target) {
6708
+ var bbox = target.getBBox();
6709
+ return createRectInit(0, 0, bbox.width, bbox.height);
6710
+ }
6711
+ function getHTMLElementContentRect(target) {
6712
+ var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
6713
+ if (!clientWidth && !clientHeight) {
6714
+ return emptyRect;
6715
+ }
6716
+ var styles = getWindowOf(target).getComputedStyle(target);
6717
+ var paddings = getPaddings(styles);
6718
+ var horizPad = paddings.left + paddings.right;
6719
+ var vertPad = paddings.top + paddings.bottom;
6720
+ var width = toFloat(styles.width), height = toFloat(styles.height);
6721
+ if (styles.boxSizing === "border-box") {
6722
+ if (Math.round(width + horizPad) !== clientWidth) {
6723
+ width -= getBordersSize(styles, "left", "right") + horizPad;
6724
+ }
6725
+ if (Math.round(height + vertPad) !== clientHeight) {
6726
+ height -= getBordersSize(styles, "top", "bottom") + vertPad;
6727
+ }
6728
+ }
6729
+ if (!isDocumentElement(target)) {
6730
+ var vertScrollbar = Math.round(width + horizPad) - clientWidth;
6731
+ var horizScrollbar = Math.round(height + vertPad) - clientHeight;
6732
+ if (Math.abs(vertScrollbar) !== 1) {
6733
+ width -= vertScrollbar;
6734
+ }
6735
+ if (Math.abs(horizScrollbar) !== 1) {
6736
+ height -= horizScrollbar;
6737
+ }
6738
+ }
6739
+ return createRectInit(paddings.left, paddings.top, width, height);
6740
+ }
6741
+ var isSVGGraphicsElement = function() {
6742
+ if (typeof SVGGraphicsElement !== "undefined") {
6743
+ return function(target) {
6744
+ return target instanceof getWindowOf(target).SVGGraphicsElement;
6745
+ };
6746
+ }
6747
+ return function(target) {
6748
+ return target instanceof getWindowOf(target).SVGElement && typeof target.getBBox === "function";
6749
+ };
6750
+ }();
6751
+ function isDocumentElement(target) {
6752
+ return target === getWindowOf(target).document.documentElement;
6753
+ }
6754
+ function getContentRect(target) {
6755
+ if (!isBrowser) {
6756
+ return emptyRect;
6757
+ }
6758
+ if (isSVGGraphicsElement(target)) {
6759
+ return getSVGContentRect(target);
6760
+ }
6761
+ return getHTMLElementContentRect(target);
6762
+ }
6763
+ function createReadOnlyRect(_a) {
6764
+ var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
6765
+ var Constr = typeof DOMRectReadOnly !== "undefined" ? DOMRectReadOnly : Object;
6766
+ var rect = Object.create(Constr.prototype);
6767
+ defineConfigurable(rect, {
6768
+ x,
6769
+ y,
6770
+ width,
6771
+ height,
6772
+ top: y,
6773
+ right: x + width,
6774
+ bottom: height + y,
6775
+ left: x
6776
+ });
6777
+ return rect;
6778
+ }
6779
+ function createRectInit(x, y, width, height) {
6780
+ return {
6781
+ x,
6782
+ y,
6783
+ width,
6784
+ height
6785
+ };
6786
+ }
6787
+ var ResizeObservation = (
6788
+ /** @class */
6789
+ function() {
6790
+ function ResizeObservation2(target) {
6791
+ this.broadcastWidth = 0;
6792
+ this.broadcastHeight = 0;
6793
+ this.contentRect_ = createRectInit(0, 0, 0, 0);
6794
+ this.target = target;
6795
+ }
6796
+ ResizeObservation2.prototype.isActive = function() {
6797
+ var rect = getContentRect(this.target);
6798
+ this.contentRect_ = rect;
6799
+ return rect.width !== this.broadcastWidth || rect.height !== this.broadcastHeight;
6800
+ };
6801
+ ResizeObservation2.prototype.broadcastRect = function() {
6802
+ var rect = this.contentRect_;
6803
+ this.broadcastWidth = rect.width;
6804
+ this.broadcastHeight = rect.height;
6805
+ return rect;
6806
+ };
6807
+ return ResizeObservation2;
6808
+ }()
6809
+ );
6810
+ var ResizeObserverEntry = (
6811
+ /** @class */
6812
+ function() {
6813
+ function ResizeObserverEntry2(target, rectInit) {
6814
+ var contentRect = createReadOnlyRect(rectInit);
6815
+ defineConfigurable(this, {
6816
+ target,
6817
+ contentRect
6818
+ });
6819
+ }
6820
+ return ResizeObserverEntry2;
6821
+ }()
6822
+ );
6823
+ var ResizeObserverSPI = (
6824
+ /** @class */
6825
+ function() {
6826
+ function ResizeObserverSPI2(callback, controller, callbackCtx) {
6827
+ this.activeObservations_ = [];
6828
+ this.observations_ = new MapShim();
6829
+ if (typeof callback !== "function") {
6830
+ throw new TypeError("The callback provided as parameter 1 is not a function.");
6831
+ }
6832
+ this.callback_ = callback;
6833
+ this.controller_ = controller;
6834
+ this.callbackCtx_ = callbackCtx;
6835
+ }
6836
+ ResizeObserverSPI2.prototype.observe = function(target) {
6837
+ if (!arguments.length) {
6838
+ throw new TypeError("1 argument required, but only 0 present.");
6839
+ }
6840
+ if (typeof Element === "undefined" || !(Element instanceof Object)) {
6841
+ return;
6842
+ }
6843
+ if (!(target instanceof getWindowOf(target).Element)) {
6844
+ throw new TypeError('parameter 1 is not of type "Element".');
6845
+ }
6846
+ var observations = this.observations_;
6847
+ if (observations.has(target)) {
6848
+ return;
6849
+ }
6850
+ observations.set(target, new ResizeObservation(target));
6851
+ this.controller_.addObserver(this);
6852
+ this.controller_.refresh();
6853
+ };
6854
+ ResizeObserverSPI2.prototype.unobserve = function(target) {
6855
+ if (!arguments.length) {
6856
+ throw new TypeError("1 argument required, but only 0 present.");
6857
+ }
6858
+ if (typeof Element === "undefined" || !(Element instanceof Object)) {
6859
+ return;
6860
+ }
6861
+ if (!(target instanceof getWindowOf(target).Element)) {
6862
+ throw new TypeError('parameter 1 is not of type "Element".');
6863
+ }
6864
+ var observations = this.observations_;
6865
+ if (!observations.has(target)) {
6866
+ return;
6867
+ }
6868
+ observations.delete(target);
6869
+ if (!observations.size) {
6870
+ this.controller_.removeObserver(this);
6871
+ }
6872
+ };
6873
+ ResizeObserverSPI2.prototype.disconnect = function() {
6874
+ this.clearActive();
6875
+ this.observations_.clear();
6876
+ this.controller_.removeObserver(this);
6877
+ };
6878
+ ResizeObserverSPI2.prototype.gatherActive = function() {
6879
+ var _this = this;
6880
+ this.clearActive();
6881
+ this.observations_.forEach(function(observation) {
6882
+ if (observation.isActive()) {
6883
+ _this.activeObservations_.push(observation);
6884
+ }
6885
+ });
6886
+ };
6887
+ ResizeObserverSPI2.prototype.broadcastActive = function() {
6888
+ if (!this.hasActive()) {
6889
+ return;
6890
+ }
6891
+ var ctx = this.callbackCtx_;
6892
+ var entries = this.activeObservations_.map(function(observation) {
6893
+ return new ResizeObserverEntry(observation.target, observation.broadcastRect());
6894
+ });
6895
+ this.callback_.call(ctx, entries, ctx);
6896
+ this.clearActive();
6897
+ };
6898
+ ResizeObserverSPI2.prototype.clearActive = function() {
6899
+ this.activeObservations_.splice(0);
6900
+ };
6901
+ ResizeObserverSPI2.prototype.hasActive = function() {
6902
+ return this.activeObservations_.length > 0;
6903
+ };
6904
+ return ResizeObserverSPI2;
6905
+ }()
6906
+ );
6907
+ var observers = typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : new MapShim();
6908
+ var ResizeObserver = (
6909
+ /** @class */
6910
+ function() {
6911
+ function ResizeObserver2(callback) {
6912
+ if (!(this instanceof ResizeObserver2)) {
6913
+ throw new TypeError("Cannot call a class as a function.");
6914
+ }
6915
+ if (!arguments.length) {
6916
+ throw new TypeError("1 argument required, but only 0 present.");
6917
+ }
6918
+ var controller = ResizeObserverController.getInstance();
6919
+ var observer = new ResizeObserverSPI(callback, controller, this);
6920
+ observers.set(this, observer);
6921
+ }
6922
+ return ResizeObserver2;
6923
+ }()
6924
+ );
6925
+ ["observe", "unobserve", "disconnect"].forEach(function(method) {
6926
+ ResizeObserver.prototype[method] = function() {
6927
+ var _a;
6928
+ return (_a = observers.get(this))[method].apply(_a, arguments);
6929
+ };
6930
+ });
6931
+ var index = function() {
6932
+ if (typeof global$1.ResizeObserver !== "undefined") {
6933
+ return global$1.ResizeObserver;
6934
+ }
6935
+ return ResizeObserver;
6936
+ }();
6441
6937
  const __sfc_main = vueDemi.defineComponent({
6442
6938
  name: "nf-search-form"
6443
6939
  });
@@ -7233,16 +7729,31 @@ __sfc_main.setup = (__props, __ctx) => {
7233
7729
  await vueDemi.nextTick();
7234
7730
  onResize();
7235
7731
  };
7236
- const onResize = () => {
7732
+ const domWidth = vueDemi.ref();
7733
+ const topDom = vueDemi.ref();
7734
+ const onResize = (params = {}) => {
7735
+ console.log(params, "resize");
7736
+ const {
7737
+ width
7738
+ } = params || {};
7739
+ if (width && domWidth.value && width === domWidth.value) {
7740
+ return;
7741
+ }
7237
7742
  if (props.btnModel === "inline" && !props.btnBoxLabel && props.labelPosition === "top") {
7238
7743
  if (nfSearchFormRef.value.$el.getBoundingClientRect().left === defaultButtonSlot.value.$el.getBoundingClientRect().left) {
7239
7744
  showBtnBoxLabel.value = "";
7240
7745
  } else {
7241
- showBtnBoxLabel.value = "...";
7746
+ showBtnBoxLabel.value = ".";
7242
7747
  }
7243
7748
  }
7244
7749
  };
7245
- const calcColumns = () => {
7750
+ const calcColumns = (params = {}) => {
7751
+ const {
7752
+ width
7753
+ } = params || {};
7754
+ if (width && domWidth.value && width === domWidth.value) {
7755
+ return;
7756
+ }
7246
7757
  if (props.columns) {
7247
7758
  newColumns.value = props.columns;
7248
7759
  return;
@@ -7260,18 +7771,23 @@ __sfc_main.setup = (__props, __ctx) => {
7260
7771
  }, 0);
7261
7772
  newColumns.value = count;
7262
7773
  };
7263
- const debounceResize = debounce(onResize, 100, false);
7264
- const debounceCalcColumns = debounce(calcColumns, 100, false);
7774
+ const resizeOpterate = (params) => {
7775
+ onResize(params);
7776
+ calcColumns(params);
7777
+ };
7778
+ const debounceResize = debounce(resizeOpterate, 100, false);
7779
+ const observer = vueDemi.ref();
7265
7780
  vueDemi.onMounted(async () => {
7266
- window.addEventListener("resize", debounceResize);
7267
- window.addEventListener("resize", debounceCalcColumns);
7268
7781
  await vueDemi.nextTick();
7269
- onResize();
7270
- calcColumns();
7782
+ observer.value = new index(debounceResize);
7783
+ observer.value.observe(topDom.value, {
7784
+ box: "border-box"
7785
+ });
7786
+ domWidth.value = topDom.value.offsetWidth;
7271
7787
  });
7272
- vueDemi.onUnmounted(() => {
7273
- window.removeEventListener("resize", debounceResize);
7274
- window.removeEventListener("resize", debounceCalcColumns);
7788
+ vueDemi.onBeforeUnmount(() => {
7789
+ var _a2;
7790
+ (_a2 = observer.value) == null ? void 0 : _a2.unobserve(topDom.value);
7275
7791
  });
7276
7792
  const resetNfSearchFormModel = () => {
7277
7793
  var _a2;
@@ -7367,6 +7883,7 @@ __sfc_main.setup = (__props, __ctx) => {
7367
7883
  itemIsShow,
7368
7884
  showBtnBoxLabel,
7369
7885
  isCollapseChange,
7886
+ topDom,
7370
7887
  resetNfSearchFormModel,
7371
7888
  onNfSearchFormSearch,
7372
7889
  onNfSearchFormExport,
@@ -7459,6 +7976,7 @@ var _sfc_render = function render6() {
7459
7976
  var _vm = this, _c = _vm._self._c;
7460
7977
  _vm._self._setupProxy;
7461
7978
  return _c("div", {
7979
+ ref: "topDom",
7462
7980
  staticClass: "nf-search-form"
7463
7981
  }, [_c("nf-form", {
7464
7982
  ref: "nfSearchFormRef",