@thinkpixellab-public/px-vue 3.0.13 → 3.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,22 +29,22 @@ export default {
29
29
  }, this.resizeDebounceValue)
30
30
  : null;
31
31
 
32
- const resizeFn = entries => {
32
+ const resizeFn = () => {
33
33
  // debounced version
34
34
  if (resizeDebouncedFn) {
35
35
  if (!this.resizing) {
36
36
  this.resizing = true;
37
37
  if (this.resizeStarted) {
38
- this.resizeStarted(entries[0]);
38
+ this.resizeStarted();
39
39
  }
40
40
  }
41
- resizeDebouncedFn(entries[0]);
41
+ resizeDebouncedFn();
42
42
  }
43
43
 
44
44
  // regular version
45
45
  else {
46
46
  if (this.resize) {
47
- this.resize(entries[0]);
47
+ this.resize();
48
48
  }
49
49
  }
50
50
  };
@@ -18,6 +18,7 @@
18
18
  :width="contain.width"
19
19
  :height="contain.height"
20
20
  :scale="contain.scale"
21
+ :enabled="contain.enabled"
21
22
  ></slot>
22
23
  </div>
23
24
  </template>
@@ -487,12 +487,14 @@ export default {
487
487
  if (typeof reference == 'string') {
488
488
  // previous sibling
489
489
  if (reference == 'previous') {
490
- reference = this.$el.previousSibling;
490
+ reference = this.$el.previousElementSibling;
491
+ console.log(reference);
491
492
  }
492
493
 
493
494
  // next sibling
494
495
  else if (reference == 'next') {
495
- reference = this.$el.nextSibling;
496
+ reference = this.$el.nextElementSibling;
497
+ console.log(reference);
496
498
  }
497
499
 
498
500
  // selector
@@ -574,6 +576,20 @@ $d: 0.4s;
574
576
  }
575
577
  }
576
578
 
579
+ &--menu & {
580
+ &__popup {
581
+ display: flex;
582
+ flex-direction: column;
583
+ @include css-map(
584
+ popup(
585
+ (
586
+ padding: 0,
587
+ )
588
+ )
589
+ );
590
+ }
591
+ }
592
+
577
593
  // sizes
578
594
 
579
595
  &--sm & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkpixellab-public/px-vue",
3
- "version": "3.0.13",
3
+ "version": "3.0.14",
4
4
  "description": "General purpose Vue components and helpers that can be used across projects.",
5
5
  "author": "Pixel Lab",
6
6
  "license": "MIT",
package/plugins/common.js CHANGED
@@ -23,6 +23,9 @@ export default {
23
23
  Vue.prototype.cssUrl = cssUrl;
24
24
 
25
25
  // filters
26
+ // note: filters can be called as methods with something like
27
+ // this.$options.filters.slug('Make me a slug.');
28
+
26
29
  Vue.filter('aspect', aspect);
27
30
  Vue.filter('kebab', kebab);
28
31
  Vue.filter('slug', slug);