@node-projects/web-component-designer 0.1.57 → 0.1.59

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.
@@ -32,6 +32,8 @@ export function calculateGridInformation(designItem) {
32
32
  let rw = 0;
33
33
  let xOffset = transformedCornerPoints[0].x;
34
34
  let yOffset = transformedCornerPoints[0].y;
35
+ xOffset += parseFloat(computedStyle.borderLeftWidth);
36
+ yOffset += parseFloat(computedStyle.borderTopWidth);
35
37
  let gridA = null;
36
38
  if (computedStyle.gridTemplateAreas && computedStyle.gridTemplateAreas !== 'none')
37
39
  gridA = computedStyle.gridTemplateAreas.split('\"');
@@ -11,5 +11,11 @@
11
11
  },
12
12
  "@material/web": {
13
13
  "import": "@material/web/all.js"
14
+ },
15
+ "@stencil/core": {
16
+ "map": {
17
+ "@stencil/core/internal/client": "internal/client/index.js",
18
+ "@stencil/core/internal/app-data": "internal/app-data/index.js"
19
+ }
14
20
  }
15
21
  }
@@ -338,6 +338,12 @@ export class NpmPackageLoader {
338
338
  console.warn('package: ' + baseUrl + 'no main import found');
339
339
  }
340
340
  importMap.imports[packageJsonObj.name + '/'] = baseUrl;
341
+ if (packageHacks[packageJsonObj.name]?.map) {
342
+ for (let h in packageHacks[packageJsonObj.name]?.map)
343
+ [
344
+ importMap.imports[h] = baseUrl + packageHacks[packageJsonObj.name].map[h]
345
+ ];
346
+ }
341
347
  //@ts-ignore
342
348
  importShim.addImportMap(importMap);
343
349
  }
@@ -20,6 +20,7 @@ export class PaletteView extends BaseCustomWebComponentLazyAppend {
20
20
  this.shadowRoot.appendChild(this._designerTabControl);
21
21
  }
22
22
  async loadControls(serviceContainer, elementsServices) {
23
+ this._designerTabControl.innerHTML = '';
23
24
  for (const s of elementsServices) {
24
25
  try {
25
26
  let elements = await s.getElements();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "A UI designer for Polymer apps",
3
3
  "name": "@node-projects/web-component-designer",
4
- "version": "0.1.57",
4
+ "version": "0.1.59",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",