@thinkpixellab-public/px-vue 3.0.38 → 3.0.40

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.
@@ -7,14 +7,14 @@
7
7
  <!-- html -->
8
8
  <component
9
9
  v-if="hasHtml"
10
- :class="bem('inner', { html: true })"
10
+ :class="[bem('inner', { html: true }), innerClass]"
11
11
  :is="innerTag"
12
12
  ref="text"
13
13
  v-html="html"
14
14
  />
15
15
 
16
16
  <!-- slot -->
17
- <component v-else :class="bem('inner')" :is="innerTag" ref="text">
17
+ <component v-else :class="[bem('inner'), innerClass]" :is="innerTag" ref="text">
18
18
  <slot />
19
19
  </component>
20
20
  </component>
@@ -35,6 +35,9 @@ export default {
35
35
  // the inner tag element
36
36
  innerTag: { type: String, default: 'span' },
37
37
 
38
+ // the inner tag element
39
+ innerClass: { type: String, default: null },
40
+
38
41
  // html that gets set on the inner tag element
39
42
  html: { type: String, default: null },
40
43
 
@@ -273,6 +273,13 @@ export default {
273
273
  document.removeEventListener('keydown', this.onKey);
274
274
  }
275
275
 
276
+ if (nv) {
277
+ let reference = this.getReferenceElement();
278
+ let popup = this.$refs.popup;
279
+
280
+ this.updatePosition(reference, popup);
281
+ }
282
+
276
283
  // delayed actions (settimeout seems to work but $nextTick doesn't)
277
284
 
278
285
  setTimeout(() => {
@@ -100,8 +100,8 @@ export default {
100
100
  },
101
101
  methods: {
102
102
  transform(svg) {
103
- if (!svg) {
104
- return;
103
+ if (!svg?.viewBox) {
104
+ return svg;
105
105
  }
106
106
  // only a valid viewbox if it has both width/height
107
107
  let viewBox =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkpixellab-public/px-vue",
3
- "version": "3.0.38",
3
+ "version": "3.0.40",
4
4
  "description": "General purpose Vue components and helpers that can be used across projects.",
5
5
  "author": "Pixel Lab",
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "@floating-ui/dom": "^1.0.1",
16
16
  "@popperjs/core": "^2.11.5",
17
- "@thinkpixellab-public/px-styles": "^3.7.6",
17
+ "@thinkpixellab-public/px-styles": "^3.7.8",
18
18
  "@thinkpixellab-public/px-vue-tester": "^2.0.0",
19
19
  "@thinkpixellab-public/vue-resize-directive": "^1.2.2",
20
20
  "body-scroll-lock": "^3.1.5",