@things-factory/barcode-ui 7.0.0-alpha.8 → 7.0.0

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.
@@ -1,62 +0,0 @@
1
- import './barcode-tag'
2
-
3
- import { css, html, LitElement } from 'lit'
4
-
5
- export class BarcodeInput extends LitElement {
6
- static get properties() {
7
- return {
8
- bcid: String,
9
- bcWidth: Number,
10
- bcheight: Number,
11
- bcScale: Number,
12
- value: String
13
- }
14
- }
15
-
16
- static get styles() {
17
- return [
18
- css`
19
- :host {
20
- display: flex;
21
- flex-direction: column;
22
- align-items: center;
23
-
24
- padding: initial;
25
- border: 0;
26
- }
27
-
28
- :host * {
29
- align-self: stretch;
30
- }
31
-
32
- input {
33
- margin: 5px 0;
34
- }
35
-
36
- barcode-tag {
37
- margin: 5px 0;
38
- }
39
- `
40
- ]
41
- }
42
-
43
- render() {
44
- return html`
45
- <input type="text" @change=${this.onchange.bind(this)} .value=${this.value} />
46
- <barcode-tag
47
- .bcid=${this.bcid}
48
- .value=${this.value}
49
- .bcWidth=${this.bcWidth}
50
- .bcHeight=${this.bcHeight}
51
- .bcScale=${this.bcScale}
52
- ></barcode-tag>
53
- `
54
- }
55
-
56
- onchange(e) {
57
- this.value = e.target.value
58
- this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }))
59
- }
60
- }
61
-
62
- customElements.define('barcode-input', BarcodeInput)
package/client/route.js DELETED
@@ -1,7 +0,0 @@
1
- export default function route(page) {
2
- switch (page) {
3
- case 'barcode-ui-test':
4
- import('./pages/barcode-ui-test-page')
5
- return page
6
- }
7
- }
File without changes