uikit 3.17.1 → 3.17.2-dev.a0d91caa0

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +1 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +44 -8
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +50 -26
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +51 -29
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +2 -4
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +43 -5
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +46 -14
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +46 -14
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +45 -7
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +3 -7
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +37 -83
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +100 -168
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +4 -4
  43. package/src/js/api/observables.js +2 -1
  44. package/src/js/components/filter.js +2 -6
  45. package/src/js/components/lightbox-panel.js +1 -3
  46. package/src/js/components/lightbox.js +1 -3
  47. package/src/js/components/notification.js +1 -4
  48. package/src/js/components/parallax.js +1 -3
  49. package/src/js/components/sortable.js +3 -5
  50. package/src/js/core/accordion.js +1 -3
  51. package/src/js/core/cover.js +6 -6
  52. package/src/js/core/dropnav.js +1 -3
  53. package/src/js/core/form-custom.js +1 -3
  54. package/src/js/core/height-match.js +3 -4
  55. package/src/js/core/leader.js +1 -3
  56. package/src/js/core/navbar.js +4 -9
  57. package/src/js/core/offcanvas.js +7 -15
  58. package/src/js/core/overflow-auto.js +2 -6
  59. package/src/js/core/scrollspy-nav.js +2 -4
  60. package/src/js/core/scrollspy.js +1 -3
  61. package/src/js/core/sticky.js +1 -3
  62. package/src/js/core/switcher.js +4 -8
  63. package/src/js/core/toggle.js +1 -1
  64. package/src/js/mixin/modal.js +1 -3
  65. package/src/js/mixin/slider-nav.js +2 -6
  66. package/src/js/mixin/slider.js +2 -6
  67. package/src/js/mixin/togglable.js +3 -6
  68. package/src/js/util/viewport.js +1 -1
package/dist/js/uikit.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.17.1 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.17.2-dev.a0d91caa0 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -1256,7 +1256,7 @@
1256
1256
  return 0.5 * (1 - Math.cos(Math.PI * k));
1257
1257
  }
1258
1258
  function findFixedElement(target) {
1259
- return target.ownerDocument.elementsFromPoint(0, 0).find(
1259
+ return target.ownerDocument.elementsFromPoint(offset(target).left, 0).find(
1260
1260
  (el) => ["fixed", "sticky"].includes(css(el, "position")) && !el.contains(target)
1261
1261
  );
1262
1262
  }
@@ -1855,6 +1855,56 @@
1855
1855
  return isArray(value) ? value : isString(value) ? value.split(/,(?![^(]*\))/).map((value2) => isNumeric(value2) ? toNumber(value2) : toBoolean(value2.trim())) : [value];
1856
1856
  }
1857
1857
 
1858
+ function initUpdates(instance) {
1859
+ instance._data = {};
1860
+ instance._updates = [...instance.$options.update || []];
1861
+ }
1862
+ function prependUpdate(instance, update) {
1863
+ instance._updates.unshift(update);
1864
+ }
1865
+ function clearUpdateData(instance) {
1866
+ delete instance._data;
1867
+ }
1868
+ function callUpdate(instance, e = "update") {
1869
+ if (!instance._connected) {
1870
+ return;
1871
+ }
1872
+ if (!instance._updates.length) {
1873
+ return;
1874
+ }
1875
+ if (!instance._queued) {
1876
+ instance._queued = /* @__PURE__ */ new Set();
1877
+ fastdom.read(() => {
1878
+ if (instance._connected) {
1879
+ runUpdates(instance, instance._queued);
1880
+ }
1881
+ delete instance._queued;
1882
+ });
1883
+ }
1884
+ instance._queued.add(e.type || e);
1885
+ }
1886
+ function runUpdates(instance, types) {
1887
+ for (const { read, write, events = [] } of instance._updates) {
1888
+ if (!types.has("update") && !events.some((type) => types.has(type))) {
1889
+ continue;
1890
+ }
1891
+ let result;
1892
+ if (read) {
1893
+ result = read.call(instance, instance._data, types);
1894
+ if (result && isPlainObject(result)) {
1895
+ assign(instance._data, result);
1896
+ }
1897
+ }
1898
+ if (write && result !== false) {
1899
+ fastdom.write(() => {
1900
+ if (instance._connected) {
1901
+ write.call(instance, instance._data, types);
1902
+ }
1903
+ });
1904
+ }
1905
+ }
1906
+ }
1907
+
1858
1908
  function resize(options) {
1859
1909
  return observe(observeResize, options, "resize");
1860
1910
  }
@@ -1922,7 +1972,7 @@
1922
1972
  return {
1923
1973
  observe: observe2,
1924
1974
  handler() {
1925
- this.$emit(emit);
1975
+ callUpdate(this, emit);
1926
1976
  },
1927
1977
  ...options
1928
1978
  };
@@ -2247,12 +2297,8 @@
2247
2297
  duration: 250
2248
2298
  },
2249
2299
  computed: {
2250
- toggles({ attrItem }, $el) {
2251
- return $$(`[${attrItem}],[data-${attrItem}]`, $el);
2252
- },
2253
- children({ target }, $el) {
2254
- return $$(`${target} > *`, $el);
2255
- }
2300
+ children: ({ target }, $el) => $$(`${target} > *`, $el),
2301
+ toggles: ({ attrItem }, $el) => $$(`[${attrItem}],[data-${attrItem}]`, $el)
2256
2302
  },
2257
2303
  watch: {
2258
2304
  toggles(toggles) {
@@ -2449,12 +2495,8 @@
2449
2495
  clsLeave: "uk-togglabe-leave"
2450
2496
  },
2451
2497
  computed: {
2452
- hasAnimation({ animation }) {
2453
- return !!animation[0];
2454
- },
2455
- hasTransition({ animation }) {
2456
- return ["slide", "reveal"].some((transition) => startsWith(animation[0], transition));
2457
- }
2498
+ hasAnimation: ({ animation }) => !!animation[0],
2499
+ hasTransition: ({ animation }) => ["slide", "reveal"].some((transition) => startsWith(animation[0], transition))
2458
2500
  },
2459
2501
  methods: {
2460
2502
  async toggleElement(targets, toggle, animate) {
@@ -2632,9 +2674,7 @@
2632
2674
  role: "dialog"
2633
2675
  },
2634
2676
  computed: {
2635
- panel({ selPanel }, $el) {
2636
- return $(selPanel, $el);
2637
- },
2677
+ panel: ({ selPanel }, $el) => $(selPanel, $el),
2638
2678
  transitionElement() {
2639
2679
  return this.panel;
2640
2680
  },
@@ -3137,56 +3177,6 @@
3137
3177
  return css(el, "userSelect") !== "none" && toArray(el.childNodes).some((el2) => el2.nodeType === 3 && el2.textContent.trim());
3138
3178
  }
3139
3179
 
3140
- function initUpdates(instance) {
3141
- instance._data = {};
3142
- instance._updates = [...instance.$options.update || []];
3143
- }
3144
- function prependUpdate(instance, update) {
3145
- instance._updates.unshift(update);
3146
- }
3147
- function clearUpdateData(instance) {
3148
- delete instance._data;
3149
- }
3150
- function callUpdate(instance, e = "update") {
3151
- if (!instance._connected) {
3152
- return;
3153
- }
3154
- if (!instance._updates.length) {
3155
- return;
3156
- }
3157
- if (!instance._queued) {
3158
- instance._queued = /* @__PURE__ */ new Set();
3159
- fastdom.read(() => {
3160
- if (instance._connected) {
3161
- runUpdates(instance, instance._queued);
3162
- }
3163
- delete instance._queued;
3164
- });
3165
- }
3166
- instance._queued.add(e.type || e);
3167
- }
3168
- function runUpdates(instance, types) {
3169
- for (const { read, write, events = [] } of instance._updates) {
3170
- if (!types.has("update") && !events.some((type) => types.has(type))) {
3171
- continue;
3172
- }
3173
- let result;
3174
- if (read) {
3175
- result = read.call(instance, instance._data, types);
3176
- if (result && isPlainObject(result)) {
3177
- assign(instance._data, result);
3178
- }
3179
- }
3180
- if (write && result !== false) {
3181
- fastdom.write(() => {
3182
- if (instance._connected) {
3183
- write.call(instance, instance._data, types);
3184
- }
3185
- });
3186
- }
3187
- }
3188
- }
3189
-
3190
3180
  function initWatches(instance) {
3191
3181
  instance._watches = [];
3192
3182
  for (const watches of instance.$options.watch || []) {
@@ -3523,7 +3513,7 @@
3523
3513
  };
3524
3514
  App.util = util;
3525
3515
  App.options = {};
3526
- App.version = "3.17.1";
3516
+ App.version = "3.17.2-dev.a0d91caa0";
3527
3517
 
3528
3518
  const PREFIX = "uk-";
3529
3519
  const DATA = "__uikit__";
@@ -3703,15 +3693,11 @@
3703
3693
  role: "region"
3704
3694
  },
3705
3695
  computed: {
3706
- nav({ selNav }, $el) {
3707
- return $(selNav, $el);
3708
- },
3696
+ nav: ({ selNav }, $el) => $(selNav, $el),
3709
3697
  navChildren() {
3710
3698
  return children(this.nav);
3711
3699
  },
3712
- selNavItem({ attrItem }) {
3713
- return `[${attrItem}],[data-${attrItem}]`;
3714
- },
3700
+ selNavItem: ({ attrItem }) => `[${attrItem}],[data-${attrItem}]`,
3715
3701
  navItems(_, $el) {
3716
3702
  return $$(this.selNavItem, $el);
3717
3703
  }
@@ -3891,12 +3877,8 @@
3891
3877
  removeClass(this.slides, this.clsActive);
3892
3878
  },
3893
3879
  computed: {
3894
- duration({ velocity }, $el) {
3895
- return speedUp($el.offsetWidth / velocity);
3896
- },
3897
- list({ selList }, $el) {
3898
- return $(selList, $el);
3899
- },
3880
+ duration: ({ velocity }, $el) => speedUp($el.offsetWidth / velocity),
3881
+ list: ({ selList }, $el) => $(selList, $el),
3900
3882
  maxIndex() {
3901
3883
  return this.length - 1;
3902
3884
  },
@@ -4111,9 +4093,7 @@
4111
4093
  this.$mount(append(this.container, $el));
4112
4094
  },
4113
4095
  computed: {
4114
- caption({ selCaption }, $el) {
4115
- return $(selCaption, $el);
4116
- }
4096
+ caption: ({ selCaption }, $el) => $(selCaption, $el)
4117
4097
  },
4118
4098
  events: [
4119
4099
  {
@@ -4326,9 +4306,7 @@
4326
4306
  props: { toggle: String },
4327
4307
  data: { toggle: "a" },
4328
4308
  computed: {
4329
- toggles({ toggle }, $el) {
4330
- return $$(toggle, $el);
4331
- }
4309
+ toggles: ({ toggle }, $el) => $$(toggle, $el)
4332
4310
  },
4333
4311
  watch: {
4334
4312
  toggles(toggles) {
@@ -4401,9 +4379,7 @@
4401
4379
  },
4402
4380
  install: install$2,
4403
4381
  computed: {
4404
- marginProp({ pos }) {
4405
- return `margin${startsWith(pos, "top") ? "Top" : "Bottom"}`;
4406
- },
4382
+ marginProp: ({ pos }) => `margin-${pos.match(/[a-z]+(?=-)/)[0]}`,
4407
4383
  startProps() {
4408
4384
  return { opacity: 0, [this.marginProp]: -this.$el.offsetHeight };
4409
4385
  }
@@ -4853,9 +4829,7 @@
4853
4829
  end: 0
4854
4830
  },
4855
4831
  computed: {
4856
- target({ target }, $el) {
4857
- return getOffsetElement(target && query(target, $el) || $el);
4858
- },
4832
+ target: ({ target }, $el) => getOffsetElement(target && query(target, $el) || $el),
4859
4833
  start({ start }) {
4860
4834
  return toPx(start, "height", this.target, true);
4861
4835
  },
@@ -5547,17 +5521,15 @@
5547
5521
  handler: "init"
5548
5522
  },
5549
5523
  computed: {
5550
- target() {
5551
- return (this.$el.tBodies || [this.$el])[0];
5552
- },
5524
+ target: (_, $el) => ($el.tBodies || [$el])[0],
5553
5525
  items() {
5554
5526
  return children(this.target);
5555
5527
  },
5556
5528
  isEmpty() {
5557
5529
  return isEmpty(this.items);
5558
5530
  },
5559
- handles({ handle }, el) {
5560
- return handle ? $$(handle, el) : this.items;
5531
+ handles({ handle }, $el) {
5532
+ return handle ? $$(handle, $el) : this.items;
5561
5533
  }
5562
5534
  },
5563
5535
  watch: {
@@ -6334,9 +6306,7 @@
6334
6306
  offset: 0
6335
6307
  },
6336
6308
  computed: {
6337
- items({ targets }, $el) {
6338
- return $$(targets, $el);
6339
- },
6309
+ items: ({ targets }, $el) => $$(targets, $el),
6340
6310
  toggles({ toggle }) {
6341
6311
  return this.items.map((item) => $(toggle, item));
6342
6312
  },
@@ -6600,14 +6570,11 @@
6600
6570
  },
6601
6571
  observe: resize({
6602
6572
  target: ({ $el }) => [getPositionedParent($el) || parent($el)],
6603
- filter: ({ _useObjectFit }) => !_useObjectFit
6573
+ filter: ({ $el }) => !useObjectFit($el)
6604
6574
  }),
6605
- connected() {
6606
- this._useObjectFit = isTag(this.$el, "img", "video");
6607
- },
6608
6575
  update: {
6609
6576
  read() {
6610
- if (this._useObjectFit) {
6577
+ if (useObjectFit(this.$el)) {
6611
6578
  return;
6612
6579
  }
6613
6580
  const { ratio, cover } = Dimensions;
@@ -6649,6 +6616,9 @@
6649
6616
  }
6650
6617
  }
6651
6618
  }
6619
+ function useObjectFit(el) {
6620
+ return isTag(el, "img", "video");
6621
+ }
6652
6622
 
6653
6623
  let active;
6654
6624
  var drop = {
@@ -7064,9 +7034,7 @@
7064
7034
  selNavItem: "> li > a, > ul > li > a"
7065
7035
  },
7066
7036
  computed: {
7067
- dropbarAnchor({ dropbarAnchor }, $el) {
7068
- return query(dropbarAnchor, $el) || $el;
7069
- },
7037
+ dropbarAnchor: ({ dropbarAnchor }, $el) => query(dropbarAnchor, $el) || $el,
7070
7038
  dropbar({ dropbar }) {
7071
7039
  if (!dropbar) {
7072
7040
  return null;
@@ -7365,9 +7333,7 @@
7365
7333
  target: false
7366
7334
  },
7367
7335
  computed: {
7368
- input(_, $el) {
7369
- return $(selInput, $el);
7370
- },
7336
+ input: (_, $el) => $(selInput, $el),
7371
7337
  state() {
7372
7338
  return this.input.nextElementSibling;
7373
7339
  },
@@ -7578,12 +7544,10 @@
7578
7544
  row: true
7579
7545
  },
7580
7546
  computed: {
7581
- elements({ target }, $el) {
7582
- return $$(target, $el);
7583
- }
7547
+ elements: ({ target }, $el) => $$(target, $el)
7584
7548
  },
7585
7549
  observe: resize({
7586
- target: ({ $el, elements }) => [$el, ...elements]
7550
+ target: ({ $el, elements }) => elements.reduce((elements2, el) => elements2.concat(el, ...el.children), [$el])
7587
7551
  }),
7588
7552
  update: {
7589
7553
  read() {
@@ -8104,9 +8068,7 @@
8104
8068
  attrFill: "data-fill"
8105
8069
  },
8106
8070
  computed: {
8107
- fill({ fill }) {
8108
- return fill || css(this.$el, "--uk-leader-fill-content");
8109
- }
8071
+ fill: ({ fill }, $el) => fill || css($el, "--uk-leader-fill-content")
8110
8072
  },
8111
8073
  connected() {
8112
8074
  [this.wrapper] = wrapInner(this.$el, `<span class="${this.clsWrapper}">`);
@@ -8255,12 +8217,8 @@
8255
8217
  dropbarTransparentMode: false
8256
8218
  },
8257
8219
  computed: {
8258
- dropbarOffset() {
8259
- return this.dropbarTransparentMode === "behind" ? this.$el.offsetHeight : 0;
8260
- },
8261
- navbarContainer() {
8262
- return closest(this.$el, ".uk-navbar-container");
8263
- }
8220
+ navbarContainer: (_, $el) => closest($el, ".uk-navbar-container"),
8221
+ dropbarOffset: ({ dropbarTransparentMode }, $el) => dropbarTransparentMode === "behind" ? $el.offsetHeight : 0
8264
8222
  },
8265
8223
  watch: {
8266
8224
  items() {
@@ -8287,9 +8245,7 @@
8287
8245
  observe: [
8288
8246
  mutation({
8289
8247
  target: ({ navbarContainer }) => navbarContainer,
8290
- handler() {
8291
- this.registerColorListener();
8292
- },
8248
+ handler: "registerColorListener",
8293
8249
  options: { attributes: true, attributeFilter: ["class"], attributeOldValue: true }
8294
8250
  }),
8295
8251
  intersection({
@@ -8453,21 +8409,11 @@
8453
8409
  swiping: true
8454
8410
  },
8455
8411
  computed: {
8456
- clsFlip({ flip, clsFlip }) {
8457
- return flip ? clsFlip : "";
8458
- },
8459
- clsOverlay({ overlay, clsOverlay }) {
8460
- return overlay ? clsOverlay : "";
8461
- },
8462
- clsMode({ mode, clsMode }) {
8463
- return `${clsMode}-${mode}`;
8464
- },
8465
- clsSidebarAnimation({ mode, clsSidebarAnimation }) {
8466
- return mode === "none" || mode === "reveal" ? "" : clsSidebarAnimation;
8467
- },
8468
- clsContainerAnimation({ mode, clsContainerAnimation }) {
8469
- return mode !== "push" && mode !== "reveal" ? "" : clsContainerAnimation;
8470
- },
8412
+ clsFlip: ({ flip, clsFlip }) => flip ? clsFlip : "",
8413
+ clsOverlay: ({ overlay, clsOverlay }) => overlay ? clsOverlay : "",
8414
+ clsMode: ({ mode, clsMode }) => `${clsMode}-${mode}`,
8415
+ clsSidebarAnimation: ({ mode, clsSidebarAnimation }) => mode === "none" || mode === "reveal" ? "" : clsSidebarAnimation,
8416
+ clsContainerAnimation: ({ mode, clsContainerAnimation }) => mode !== "push" && mode !== "reveal" ? "" : clsContainerAnimation,
8471
8417
  transitionElement({ mode }) {
8472
8418
  return mode === "reveal" ? parent(this.panel) : this.panel;
8473
8419
  }
@@ -8574,12 +8520,8 @@
8574
8520
  minHeight: 150
8575
8521
  },
8576
8522
  computed: {
8577
- container({ selContainer }, $el) {
8578
- return closest($el, selContainer);
8579
- },
8580
- content({ selContent }, $el) {
8581
- return closest($el, selContent);
8582
- }
8523
+ container: ({ selContainer }, $el) => closest($el, selContainer),
8524
+ content: ({ selContent }, $el) => closest($el, selContent)
8583
8525
  },
8584
8526
  observe: resize({
8585
8527
  target: ({ container, content }) => [container, content]
@@ -8702,9 +8644,7 @@
8702
8644
  inViewClass: "uk-scrollspy-inview"
8703
8645
  }),
8704
8646
  computed: {
8705
- elements({ target }, $el) {
8706
- return target ? $$(target, $el) : [$el];
8707
- }
8647
+ elements: ({ target }, $el) => target ? $$(target, $el) : [$el]
8708
8648
  },
8709
8649
  watch: {
8710
8650
  elements(elements) {
@@ -8805,9 +8745,7 @@
8805
8745
  offset: 0
8806
8746
  },
8807
8747
  computed: {
8808
- links(_, $el) {
8809
- return $$('a[href*="#"]', $el).filter((el) => el.hash && isSameSiteAnchor(el));
8810
- },
8748
+ links: (_, $el) => $$('a[href*="#"]', $el).filter((el) => el.hash && isSameSiteAnchor(el)),
8811
8749
  elements({ closest: selector }) {
8812
8750
  return this.links.map((el) => closest(el, selector || "*"));
8813
8751
  }
@@ -8865,7 +8803,7 @@
8865
8803
  ]
8866
8804
  };
8867
8805
  function findFixedElement(target) {
8868
- return target.ownerDocument.elementsFromPoint(1, 1).find((el) => ["fixed", "sticky"].includes(css(el, "position")) && !el.contains(target));
8806
+ return target.ownerDocument.elementsFromPoint(offset(target).left, 1).find((el) => ["fixed", "sticky"].includes(css(el, "position")) && !el.contains(target));
8869
8807
  }
8870
8808
 
8871
8809
  var sticky = {
@@ -8905,9 +8843,7 @@
8905
8843
  targetOffset: false
8906
8844
  },
8907
8845
  computed: {
8908
- selTarget({ selTarget }, $el) {
8909
- return selTarget && $(selTarget, $el) || $el;
8910
- }
8846
+ selTarget: ({ selTarget }, $el) => selTarget && $(selTarget, $el) || $el
8911
8847
  },
8912
8848
  connected() {
8913
8849
  this.start = coerce(this.start || this.top);
@@ -9342,17 +9278,13 @@
9342
9278
  swiping: true
9343
9279
  },
9344
9280
  computed: {
9345
- connects({ connect }, $el) {
9346
- return queryAll(connect, $el);
9347
- },
9281
+ connects: ({ connect }, $el) => queryAll(connect, $el),
9348
9282
  connectChildren() {
9349
9283
  return this.connects.map((el) => children(el)).flat();
9350
9284
  },
9351
- toggles({ toggle }, $el) {
9352
- return $$(toggle, $el);
9353
- },
9354
- children() {
9355
- return children(this.$el).filter(
9285
+ toggles: ({ toggle }, $el) => $$(toggle, $el),
9286
+ children(_, $el) {
9287
+ return children($el).filter(
9356
9288
  (child) => this.toggles.some((toggle) => within(toggle, child))
9357
9289
  );
9358
9290
  }
@@ -9533,7 +9465,7 @@
9533
9465
  computed: {
9534
9466
  target({ target }, $el) {
9535
9467
  target = queryAll(target || $el.hash, $el);
9536
- return target.length && target || [$el];
9468
+ return target.length ? target : [$el];
9537
9469
  }
9538
9470
  },
9539
9471
  connected() {