@things-factory/board-ui 4.0.4 → 4.0.9

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.
@@ -2,7 +2,7 @@
2
2
  * @license Copyright © HatioLab Inc. All rights reserved.
3
3
  */
4
4
 
5
- import { LitElement, html } from 'lit-element'
5
+ import { html, LitElement } from 'lit-element'
6
6
 
7
7
  import { style } from './edit-toolbar-style'
8
8
 
@@ -446,19 +446,7 @@ class EditToolbar extends LitElement {
446
446
 
447
447
  if (!copied) return
448
448
 
449
- var textArea = document.createElement('textarea')
450
- textArea.style.position = 'absolute'
451
- textArea.style.opacity = '0'
452
- textArea.value = copied
453
- document.body.appendChild(textArea)
454
-
455
- setTimeout(() => {
456
- textArea.select()
457
-
458
- let succeess = document.execCommand('copy')
459
- document.body.removeChild(textArea)
460
- }, 100)
461
-
449
+ navigator.clipboard.writeText(copied)
462
450
  this.cliped = copied
463
451
  }
464
452
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/board-ui",
3
- "version": "4.0.4",
3
+ "version": "4.0.9",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,9 +24,9 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@material/mwc-list": "^0.22.1",
28
- "@material/mwc-select": "^0.22.1",
29
- "@operato/board": "^0.2.18",
27
+ "@material/mwc-list": "^0.25.3",
28
+ "@material/mwc-select": "^0.25.3",
29
+ "@operato/board": "^0.2.35",
30
30
  "@polymer/iron-icon": "^3.0.1",
31
31
  "@polymer/iron-icons": "^3.0.1",
32
32
  "@polymer/paper-button": "^3.0.1",
@@ -38,13 +38,13 @@
38
38
  "@polymer/paper-listbox": "^3.0.1",
39
39
  "@polymer/paper-menu-button": "^3.0.1",
40
40
  "@polymer/paper-slider": "^3.0.1",
41
- "@things-factory/barcode-base": "^4.0.4",
42
- "@things-factory/grist-ui": "^4.0.1",
43
- "@things-factory/help": "^4.0.4",
44
- "@things-factory/i18n-base": "^4.0.4",
45
- "@things-factory/modeller-ui": "^4.0.4",
41
+ "@things-factory/barcode-base": "^4.0.9",
42
+ "@things-factory/grist-ui": "^4.0.9",
43
+ "@things-factory/help": "^4.0.9",
44
+ "@things-factory/i18n-base": "^4.0.9",
45
+ "@things-factory/modeller-ui": "^4.0.9",
46
46
  "file-saver": "^2.0.2",
47
47
  "sortablejs": "^1.10.2"
48
48
  },
49
- "gitHead": "292d7c4e2675d228d6be474ea6a0525d26ac1657"
49
+ "gitHead": "81c8ae24487cfe79da62717f12bb6752761911ae"
50
50
  }